index.vue 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256
  1. <template>
  2. <div class="app-cont">
  3. <el-row :gutter="10" class="mb8 roiyy">
  4. <el-col :span="1.5">
  5. <el-button
  6. type="primary"
  7. @click="submitCtion"
  8. v-hasPermi="['system:config:add']"
  9. >提交</el-button>
  10. </el-col>
  11. <el-col :span="1.5">
  12. <el-button
  13. type="primary"
  14. @click="emporary"
  15. v-hasPermi="['system:config:edit']"
  16. >暂存</el-button>
  17. </el-col>
  18. <el-col :span="1.5" :offset="18">
  19. <el-button
  20. type="danger"
  21. @click="handleUpdate"
  22. v-hasPermi="['system:config:edit']"
  23. v-if="tab == 0"
  24. >确认审核</el-button>
  25. </el-col>
  26. </el-row>
  27. <!-- 内容的显示隐藏 -->
  28. <div class="mation" >
  29. <div class="nvestor">
  30. <p>投资方 <i>*</i></p>
  31. </div>
  32. <p class="enterprise">企业</p>
  33. <p class="enterprise_tw" @click="handleAdd"><i class="el-icon-circle-plus-outline"></i>添加企业</p>
  34. <el-table v-loading="loading" :data="configList" >
  35. <!-- <el-table-column type="selection" width="55" align="center" /> -->
  36. <el-table-column label="企业名称" align="center" prop="companyName" />
  37. <el-table-column label="企业所在地" align="center" prop="companyAddress" :show-overflow-tooltip="true" />
  38. <el-table-column label="法人代表姓名" align="center" prop="companyLegal" :show-overflow-tooltip="true" />
  39. <el-table-column label="统一社会信用代码" align="center" prop="companyCode" />
  40. <el-table-column label="联系方式" align="center" prop="phone" />
  41. <!-- <el-table-column label="操作" align="center" prop="remark" :show-overflow-tooltip="true" /> -->
  42. <el-table-column label="操作" align="center" >
  43. <!-- class-name="small-padding fixed-width" -->
  44. <template slot-scope="scope">
  45. <el-button
  46. size="mini"
  47. type="warning"
  48. @click="handleUpdate(scope.row)"
  49. v-hasPermi="['system:config:edit']"
  50. >修改</el-button>
  51. <el-button
  52. size="mini"
  53. type="danger"
  54. @click="handleDelete(scope.row)"
  55. v-hasPermi="['system:config:remove']"
  56. >删除</el-button>
  57. </template>
  58. </el-table-column>
  59. </el-table>
  60. <p class="enterprise">自然人</p>
  61. <p class="enterprise_tw" @click="handleAddtwo"><i class="el-icon-circle-plus-outline"></i>添加自然人</p>
  62. <el-table v-loading="loading" :data="configListtwoL" >
  63. <!-- <el-table-column type="selection" width="55" align="center" /> -->
  64. <el-table-column label="姓名" align="center" prop="name" />
  65. <el-table-column label="自然人所在地" align="center" prop="address" :show-overflow-tooltip="true" />
  66. <el-table-column label="身份证号码" align="center" prop="idCode" :show-overflow-tooltip="true" />
  67. <el-table-column label="联系方式" align="center" prop="phone" />
  68. <!-- <el-table-column label="联系方式" align="center" prop="configType" :formatter="typeFormat" /> -->
  69. <!-- <el-table-column label="操作" align="center" prop="remark" :show-overflow-tooltip="true" /> -->
  70. <el-table-column label="操作" align="center" >
  71. <!-- class-name="small-padding fixed-width" -->
  72. <template slot-scope="scope">
  73. <el-button
  74. size="mini"
  75. type="warning"
  76. @click="handleUpdatetwo(scope.row)"
  77. v-hasPermi="['system:config:edit']"
  78. >修改</el-button>
  79. <el-button
  80. size="mini"
  81. type="danger"
  82. @click="handleDeletetwo(scope.row)"
  83. v-hasPermi="['system:config:remove']"
  84. >删除</el-button>
  85. </template>
  86. </el-table-column>
  87. </el-table>
  88. <el-form :model="queryParams" :rules="queryForm" ref="queryParams" :inline="true" v-show="showSearch" label-width="115px" label-position="center" class="manager_form">
  89. <!-- <el-form ref="queryForm" :model="queryParams" :rules="queryForm" label-width="115px" label-position="center" class="manager_form"> -->
  90. <el-form-item label="投资方联系人" prop="contactor">
  91. <el-input
  92. v-model="queryParams.contactor"
  93. placeholder="请输入投资方联系人"
  94. clearable
  95. size="small"
  96. style="width: 223px"
  97. />
  98. </el-form-item>
  99. <el-form-item label="投资方联系方式:" prop="phone">
  100. <el-input
  101. v-model="queryParams.phone"
  102. placeholder="请输入联系方式"
  103. clearable
  104. size="small"
  105. style="width: 223px"
  106. />
  107. </el-form-item>
  108. <div class="nvestor">
  109. <p>引荐方 <i>*</i></p>
  110. </div>
  111. <div v-for="(item,index) in queryParams.referralList " :key="index" v-if="queryParams.referralList !== null">
  112. <el-form-item label="引荐单位:" prop="item.sysdeptId">
  113. <el-select v-model="item.sysdeptId" placeholder="系统内置" clearable size="small" style="width: 188px">
  114. <el-option
  115. v-for="dict in typeOptionstwo"
  116. :key="dict.deptId"
  117. :label="dict.deptName"
  118. :value="dict.deptId"
  119. />
  120. </el-select>
  121. </el-form-item>
  122. <el-form-item label="投资分配额:" prop="item.investmentAllcocation">
  123. <el-input
  124. v-model="item.investmentAllcocation"
  125. placeholder="输入数字"
  126. clearable
  127. size="small"
  128. style="width: 98px"
  129. @keyup.enter.native="handleQuery"
  130. />
  131. <span class="souu">%</span>
  132. </el-form-item>
  133. <el-form-item label="引荐方联系人:" prop="item.referral">
  134. <el-input
  135. v-model="item.referral"
  136. placeholder="请输入"
  137. clearable
  138. size="small"
  139. style="width: 98px"
  140. @keyup.enter.native="handleQuery"
  141. />
  142. </el-form-item>
  143. <el-form-item label="引荐方联系方式:" prop="item.referralPhone">
  144. <el-input
  145. v-model="item.referralPhone"
  146. placeholder="请输入联系方式"
  147. clearable
  148. size="small"
  149. style="width: 153px"
  150. @keyup.enter.native="handleQuery"
  151. />
  152. </el-form-item>
  153. </div>
  154. <div v-if="queryParams.referralList == null">
  155. <el-form-item label="引荐单位:" prop="sysdeptId">
  156. <el-select v-model="queryParams.referralList[0].sysdeptId" placeholder="系统内置" clearable size="small" style="width: 188px">
  157. <el-option
  158. v-for="dict in typeOptionstwo"
  159. :key="dict.deptId"
  160. :label="dict.deptName"
  161. :value="dict.deptId"
  162. />
  163. </el-select>
  164. </el-form-item>
  165. <el-form-item label="投资分配额:" prop="investmentAllcocation">
  166. <el-input
  167. v-model="queryParams.referralList[0].investmentAllcocation"
  168. placeholder="输入数字"
  169. clearable
  170. size="small"
  171. style="width: 98px"
  172. @keyup.enter.native="handleQuery"
  173. />
  174. <span class="souu">%</span>
  175. </el-form-item>
  176. <el-form-item label="引荐方联系人:" prop="referral">
  177. <el-input
  178. v-model="queryParams.referralList[0].referral"
  179. placeholder="请输入"
  180. clearable
  181. size="small"
  182. style="width: 98px"
  183. @keyup.enter.native="handleQuery"
  184. />
  185. </el-form-item>
  186. <el-form-item label="引荐方联系方式:" prop="referralPhone">
  187. <el-input
  188. v-model="queryParams.referralList[0].referralPhone"
  189. placeholder="请输入联系方式"
  190. clearable
  191. size="small"
  192. style="width: 153px"
  193. @keyup.enter.native="handleQuery"
  194. />
  195. </el-form-item>
  196. <el-form-item label="引荐单位:" prop="sysdeptId">
  197. <el-select v-model="queryParams.referralList[1].sysdeptId" placeholder="系统内置" clearable size="small" style="width: 188px">
  198. <el-option
  199. v-for="dict in typeOptionstwo"
  200. :key="dict.deptId"
  201. :label="dict.deptName"
  202. :value="dict.deptId"
  203. />
  204. </el-select>
  205. </el-form-item>
  206. <el-form-item label="投资分配额:" prop="investmentAllcocation">
  207. <el-input
  208. v-model="queryParams.referralList[0].investmentAllcocation"
  209. placeholder="输入数字"
  210. clearable
  211. size="small"
  212. style="width: 98px"
  213. @keyup.enter.native="handleQuery"
  214. />
  215. <span class="souu">%</span>
  216. </el-form-item>
  217. <el-form-item label="引荐方联系人:" prop="referral">
  218. <el-input
  219. v-model="queryParams.referralList[0].referral"
  220. placeholder="请输入"
  221. clearable
  222. size="small"
  223. style="width: 98px"
  224. @keyup.enter.native="handleQuery"
  225. />
  226. </el-form-item>
  227. <el-form-item label="引荐方联系方式:" prop="referralPhone">
  228. <el-input
  229. v-model="queryParams.referralList[1].referralPhone"
  230. placeholder="请输入联系方式"
  231. clearable
  232. size="small"
  233. style="width: 153px"
  234. @keyup.enter.native="handleQuery"
  235. />
  236. </el-form-item>
  237. </div>
  238. <div class="nvestor">
  239. <p>项目基本信息 <i>*</i></p>
  240. </div>
  241. <el-form-item label="预计投资额" prop="needAmt">
  242. <el-input
  243. v-model="queryParams.needAmt"
  244. placeholder="请输入预计投资额"
  245. clearable
  246. size="small"
  247. style="width: 223px"
  248. @keyup.enter.native="handleQuery"
  249. />
  250. </el-form-item>
  251. <el-form-item label="其中 固定资产投资:" prop="fixedAssets" class="manager_lab" >
  252. <el-input
  253. v-model="queryParams.fixedAssets"
  254. placeholder="请输入"
  255. clearable
  256. size="small"
  257. style="width: 223px"
  258. @keyup.enter.native="handleQuery"
  259. />
  260. </el-form-item>
  261. <div class="lage_div">
  262. <span>项目主营产品</span>
  263. <el-form-item label="产品名称:" prop="productName" class="maneg_lar">
  264. <el-input
  265. v-model="queryParams.productName"
  266. placeholder="请输入产品名称"
  267. clearable
  268. size="small"
  269. style="width: 470px"
  270. @keyup.enter.native="handleQuery"
  271. />
  272. </el-form-item>
  273. </div>
  274. <el-form-item label="设计产能:" prop="productQty" class="manager_labtwo" >
  275. <el-input
  276. v-model="queryParams.productQty"
  277. placeholder="请输入设计产能"
  278. clearable
  279. size="small"
  280. style="width: 470px"
  281. @keyup.enter.native="handleQuery"
  282. />
  283. </el-form-item>
  284. <div class="lage_div">
  285. <span>项目预计收益</span>
  286. <el-form-item label="预计产值:" prop="productPrice" class="maneg_lar">
  287. <el-input
  288. v-model="queryParams.productPrice"
  289. placeholder="请输入预计产值"
  290. clearable
  291. size="small"
  292. style="width: 470px"
  293. @keyup.enter.native="handleQuery"
  294. />
  295. </el-form-item>
  296. </div>
  297. <el-form-item label="预计税收:" prop="productTax" class="manager_labtwo" >
  298. <el-input
  299. v-model="queryParams.productTax"
  300. placeholder="请输入预计税收"
  301. clearable
  302. size="small"
  303. style="width: 470px"
  304. @keyup.enter.native="handleQuery"
  305. />
  306. </el-form-item>
  307. <el-form-item label="预计用工:" prop="productEmp" class="manager_labtwo" >
  308. <el-input
  309. v-model="queryParams.productEmp"
  310. placeholder="请输入预计用工"
  311. size="small"
  312. style="width: 470px"
  313. />
  314. </el-form-item>
  315. <div class="nvestor">
  316. <p>项目基本需求 </p>
  317. </div>
  318. <el-form-item label="项目计划用地:" prop="plannedLand" class="manager_labthre">
  319. <el-input
  320. v-model="queryParams.plannedLand"
  321. placeholder="请输入"
  322. clearable
  323. size="small"
  324. style="width: 207px"
  325. @keyup.enter.native="handleQuery"
  326. />
  327. <span class="souu">亩</span>
  328. </el-form-item>
  329. <el-form-item label="其中 独立供地:" prop="independentLand">
  330. <el-input
  331. v-model="queryParams.independentLand"
  332. placeholder="请输入"
  333. clearable
  334. size="small"
  335. style="width: 207px"
  336. @keyup.enter.native="handleQuery"
  337. />
  338. <span class="souu">亩</span>
  339. </el-form-item>
  340. <el-form-item label="流转土地:" prop="circulationLan" class="mage_ter">
  341. <el-input
  342. v-model="queryParams.circulationLan"
  343. placeholder="请输入"
  344. clearable
  345. size="small"
  346. style="width: 207px"
  347. @keyup.enter.native="handleQuery"
  348. />
  349. <span class="souu">亩</span>
  350. </el-form-item>
  351. <el-form-item label="项目计划租赁用房:" prop="needRoom" class="manager_labthre">
  352. <el-input
  353. v-model="queryParams.needRoom"
  354. placeholder="请输入"
  355. clearable
  356. size="small"
  357. style="width: 207px"
  358. @keyup.enter.native="handleQuery"
  359. />
  360. <span class="souu">亩</span>
  361. </el-form-item>
  362. <el-form-item label="其中 厂房:" prop="needFactoryRoom">
  363. <el-input
  364. v-model="queryParams.needFactoryRoom"
  365. placeholder="请输入"
  366. clearable
  367. size="small"
  368. style="width: 207px"
  369. @keyup.enter.native="handleQuery"
  370. />
  371. <span class="souu">亩</span>
  372. </el-form-item>
  373. <el-form-item label="办公生活用房:" prop="needBusRoom" class="mage_ter">
  374. <el-input
  375. v-model="queryParams.needBusRoom"
  376. placeholder="请输入"
  377. clearable
  378. size="small"
  379. style="width: 207px"
  380. @keyup.enter.native="handleQuery"
  381. />
  382. <span class="souu">亩</span>
  383. </el-form-item>
  384. <el-form-item label="其他需求:" prop="other" class="maget_ty">
  385. <el-input
  386. v-model="queryParams.other"
  387. placeholder="请输入项目概况"
  388. clearable
  389. type="textarea"
  390. size="small"
  391. style="width: 480px;height: 78px;"
  392. class="ieuyr"
  393. @keyup.enter.native="handleQuery"
  394. />
  395. </el-form-item>
  396. <el-form-item label="拟落户地点:" prop="address">
  397. <el-select v-model="queryParams.address" placeholder="系统内置" clearable size="small" style="width: 188px">
  398. <el-option
  399. v-for="dict in typeOptions"
  400. :key="dict.dictValue"
  401. :label="dict.dictLabel"
  402. :value="dict.dictValue"
  403. />
  404. </el-select>
  405. </el-form-item>
  406. <el-form-item label="是否签订框架协议:" prop="isFrameorder" class="maget_ty">
  407. <el-select v-model="queryParams.isFrameorder" placeholder="系统内置" clearable size="small" style="width: 298px">
  408. <el-option
  409. v-for="dict in typeOptions"
  410. :key="dict.dictValue"
  411. :label="dict.dictLabel"
  412. :value="dict.dictValue"
  413. />
  414. </el-select>
  415. </el-form-item>
  416. <el-form-item label="添加附件:" prop="configType" class="maget_ty">
  417. <div class="forieu" style="width: 618px;">
  418. <div class="bure burert">
  419. <el-upload
  420. action="http://192.168.101.11:8080/common/upload"
  421. :auto-upload="false"
  422. ref="upload"
  423. :before-upload="beforeAvatarUpload"
  424. list-type="picture-card"
  425. :on-preview="handlePictureCardPreview"
  426. :on-remove="handleRemove"
  427. :on-success="handleSuccntry"
  428. :multiple="true"
  429. :file-list="fileList">
  430. <!-- <i slot="default" class="el-icon-plus"></i> -->
  431. <div class="ijeut">
  432. <el-button plain slot="trigger" size="small" type="primary" >选择图片</el-button>
  433. <!-- margin-top: 15%; transform: translateY(-50%); -->
  434. </div>
  435. <!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> -->
  436. </el-upload>
  437. <div class="ijeut"><el-button style="margin-left: 10px; height: 32px;" size="small" type="primary" @click="submitUpload">开始上传</el-button></div>
  438. </div>
  439. </div>
  440. </el-form-item>
  441. <el-form-item label="备注:" prop="description" class="maget_ty">
  442. <el-input
  443. v-model="queryParams.description"
  444. placeholder="请输入备注"
  445. clearable
  446. type="textarea"
  447. size="small"
  448. style="width: 480px;height: 78px;"
  449. class="ieuyr"
  450. @keyup.enter.native="handleQuery"
  451. />
  452. </el-form-item>
  453. </el-form>
  454. </div>
  455. <!-- </div> -->
  456. <!-- 添加或修改参数配置对话框 -->
  457. <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
  458. <el-form ref="form" :model="form" :rules="rules" label-width="150px">
  459. <el-form-item label="企业名称" prop="companyName">
  460. <el-input v-model="form.companyName" placeholder="请输入企业名称" />
  461. </el-form-item>
  462. <el-form-item label="企业所在地" prop="companyAddress">
  463. <el-input v-model="form.companyAddress" placeholder="请输入参数键名" />
  464. </el-form-item>
  465. <el-form-item label="法人代表姓名" prop="companyLegal">
  466. <el-input v-model="form.companyLegal" placeholder="请输入参数键值" />
  467. </el-form-item>
  468. <el-form-item label="系统内置" prop="configType">
  469. <el-radio-group v-model="form.configType">
  470. <el-radio
  471. v-for="dict in typeOptions"
  472. :key="dict.dictValue"
  473. :label="dict.dictValue"
  474. >{{dict.dictLabel}}</el-radio>
  475. </el-radio-group>
  476. </el-form-item>
  477. <el-form-item label="统一社会信用代码" prop="companyCode">
  478. <el-input v-model="form.companyCode" placeholder="请输入统一社会信用代码" />
  479. </el-form-item>
  480. <el-form-item label="联系方式" prop="phone">
  481. <el-input v-model="form.phone" placeholder="请输入联系方式" />
  482. </el-form-item>
  483. </el-form>
  484. <div slot="footer" class="dialog-footer">
  485. <el-button type="primary" @click="submitForm">确 定</el-button>
  486. <el-button @click="cancel">取 消</el-button>
  487. </div>
  488. </el-dialog>
  489. <el-dialog :title="titletwo" :visible.sync="opentwo" width="800px" append-to-body>
  490. <el-form ref="formtwo" :model="formtwo" :rules="rules" label-width="150px">
  491. <el-form-item label="姓名" prop="name">
  492. <el-input v-model="formtwo.name" placeholder="请输入企业名称" />
  493. </el-form-item>
  494. <el-form-item label="自然人所在地" prop="address">
  495. <el-input v-model="formtwo.address" placeholder="请输入参数键名" />
  496. </el-form-item>
  497. <el-form-item label="身份证号码" prop="idCode">
  498. <el-input v-model="formtwo.idCode" placeholder="请输入参数键值" />
  499. </el-form-item>
  500. <el-form-item label="系统内置" prop="configType">
  501. <el-radio-group v-model="form.configType">
  502. <el-radio
  503. v-for="dict in typeOptions"
  504. :key="dict.dictValue"
  505. :label="dict.dictValue"
  506. >{{dict.dictLabel}}</el-radio>
  507. </el-radio-group>
  508. </el-form-item>
  509. <el-form-item label="联系方式" prop="phone">
  510. <el-input v-model="formtwo.phone" placeholder="请输入联系方式" />
  511. </el-form-item>
  512. </el-form>
  513. <div slot="footer" class="dialog-footer">
  514. <el-button type="primary" @click="submitFormtwo">确 定</el-button>
  515. <el-button @click="cancel">取 消</el-button>
  516. </div>
  517. </el-dialog>
  518. <el-dialog :visible.sync="dialogVisible">
  519. <img width="100%" :src="dialogImageUrl" alt="">
  520. </el-dialog>
  521. </div>
  522. </template>
  523. <script>
  524. import { listConfig, listConfigtwo, listConfigthert, listConfigfour, listConfigfieu, getConfig, getConfigKeytwo, delConfig, delConfigtwo, addConfig, addConfigtwo, addConfigalking, updateConfig, updateConfigtwo, updateConfigalking, exportConfig, clearCache } from "@/api/system/config";
  525. export default {
  526. name: "Config",
  527. props:{
  528. // queryParams: Object,
  529. tabIndex: Number
  530. },
  531. data() {
  532. return {
  533. // 遮罩层
  534. loading: true,
  535. //步骤条
  536. naueactive:2,
  537. tab:1,
  538. tabNume:['线索信息','签约信息','在建信息','投产信息'],
  539. // 选中数组
  540. ids: [],
  541. // 非单个禁用
  542. single: true,
  543. // 非多个禁用
  544. multiple: true,
  545. // 显示搜索条件
  546. showSearch: true,
  547. // 总条数
  548. total: 0,
  549. // 参数表格数据
  550. configList: [],
  551. configListtwoL:[],
  552. // 弹出层标题
  553. title: "",
  554. titletwo:'',
  555. // 是否显示弹出层
  556. open: false,
  557. opentwo:false,
  558. // 类型数据字典
  559. typeOptions: [],
  560. typeOptionstwo:[],
  561. // 日期范围
  562. dateRange: [],
  563. // 查询参数
  564. queryParams: {
  565. 'contactor':'',
  566. 'phone':'',
  567. referralList:[
  568. {
  569. "bmProjectId":'',
  570. "sysdeptId":'',
  571. "investmentAllcocation":'',
  572. "referral":"",
  573. "referralPhone":""
  574. },
  575. ]
  576. },
  577. dialogImageUrl: '',
  578. dialogVisible: false,
  579. disabled: false,
  580. bmProjectId:0,
  581. // 表单参数
  582. form: {},
  583. formtwo:{},
  584. fileList:[],
  585. fileListhye:[],
  586. // 表单校验
  587. rules: {
  588. configName: [
  589. { required: true, message: "参数名称不能为空", trigger: "blur" }
  590. ],
  591. configKey: [
  592. { required: true, message: "参数键名不能为空", trigger: "blur" }
  593. ],
  594. configValue: [
  595. { required: true, message: "参数键值不能为空", trigger: "blur" }
  596. ]
  597. },
  598. queryForm:{
  599. needAmt: [
  600. { required: true, message: "参数名称不能为空", trigger: "blur" }
  601. ],
  602. configKey: [
  603. { required: true, message: "参数键名不能为空", trigger: "blur" }
  604. ],
  605. configValue: [
  606. { required: true, message: "参数键值不能为空", trigger: "blur" }
  607. ]
  608. },
  609. ntry:[],
  610. // 判断是修改还是增加
  611. sbuen:0,//0 新增 1 修改
  612. // id:0
  613. };
  614. },
  615. created() {
  616. this.bmProjectId = this.$route.query.setid
  617. // this.id = this.$route.query.setrd
  618. console.log(this.bmProjectId)
  619. this.getList();
  620. this.getListtwo();
  621. this.getListther();
  622. this.getDicts("sys_yes_no").then(response => {
  623. this.typeOptions = response.data;
  624. });
  625. this.getListthuy()
  626. console.log( this.queryParams)
  627. },
  628. methods: {
  629. submitUpload() {
  630. this.$refs.upload.submit();
  631. },
  632. handleRemove(file) {
  633. console.log(file,87);
  634. },
  635. handlePictureCardPreview(file) {
  636. this.dialogImageUrl = file.url;
  637. this.dialogVisible = true;
  638. },
  639. handleDownload(file) {
  640. console.log(file);
  641. },
  642. handleSuccntry(response, file, fileList){
  643. // this.ontract = []
  644. this.ntry.push(file.response.url)
  645. this.queryParams.attachment = this.ntry.join(',')
  646. },
  647. beforeAvatarUpload(file) {
  648. console.log(file.type)
  649. const isJPG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/jpg';
  650. const isPNG = file.type === 'image/png';
  651. const isLt2M = file.size / 1024 / 1024 < 2;
  652. if (!isJPG) {
  653. this.$message.error('图片只能是 JPG 格式! 或者 PNG 格式!');
  654. }
  655. // if(!isPNG){
  656. // this.$message.error('图片只能是 JPG 格式! 或者 PNG 格式!');
  657. // }
  658. if (!isLt2M) {
  659. this.$message.error('图片大小不能超过 2MB!');
  660. }
  661. return isJPG && isLt2M;
  662. },
  663. /** 查询参数列表 */
  664. getList() {
  665. this.loading = true;
  666. listConfigtwo(this.bmProjectId).then(response => {
  667. console.log(response)
  668. // if(response.data == undefined){
  669. // console.log(876)
  670. // //新增
  671. // this.sbuen = 0
  672. // this.queryParams = {
  673. // referralList:[
  674. // {
  675. // "bmProjectId":this.bmProjectId,
  676. // "sysdeptId":'',
  677. // "investmentAllcocation":'',
  678. // "referral":"",
  679. // "referralPhone":""
  680. // },
  681. // {
  682. // "bmProjectId":this.bmProjectId,
  683. // "sysdeptId":'',
  684. // "investmentAllcocation":'',
  685. // "referral":"",
  686. // "referralPhone":""
  687. // },
  688. // ]
  689. // },
  690. // this.queryParams.bmProjectId = this.bmProjectId
  691. // }else if(response.data !== undefined){
  692. //修改
  693. this.sbuen = 1
  694. this.queryParams = response.data;
  695. this.queryParams.phone = 987
  696. console.log(this.queryParams,98755)
  697. // this.queryParams = this.queryParams.bmProjectId
  698. this.fileListhye = this.queryParams.attachment.split(',')
  699. for(var i = 0 ; i < this.fileListhye.length; i++){
  700. this.fileList.push({name:this.fileListhye[i],url:this.fileListhye[i]})
  701. }
  702. // this.fileList.push({name:this.queryParams.attachment,url:this.queryParams.attachment})
  703. // }
  704. // this.fileList = this.queryParams.attachment
  705. // this.total = response.total;
  706. this.loading = false;
  707. }
  708. );
  709. },
  710. //企业列表
  711. getListtwo() {
  712. this.loading = true;
  713. listConfigthert().then(response => {
  714. console.log(response)
  715. this.configList = response.rows;
  716. // this.fileList = this.queryParams.attachment
  717. // this.total = response.total;
  718. this.loading = false;
  719. }
  720. );
  721. },
  722. //自然人列表
  723. getListther() {
  724. this.loading = true;
  725. listConfigfour(this.bmProjectId).then(response => {
  726. console.log(response)
  727. this.configListtwoL = response.rows;
  728. // this.fileList = this.queryParams.attachment
  729. // this.total = response.total;
  730. this.loading = false;
  731. }
  732. );
  733. },
  734. //部门列表
  735. getListthuy() {
  736. this.loading = true;
  737. listConfigfieu().then(response => {
  738. console.log(response)
  739. this.typeOptionstwo = response.data;
  740. // this.fileList = this.queryParams.attachment
  741. // this.total = response.total;
  742. this.loading = false;
  743. }
  744. );
  745. },
  746. // 参数系统内置字典翻译
  747. typeFormat(row, column) {
  748. return this.selectDictLabel(this.typeOptions, row.configType);
  749. },
  750. // 取消按钮
  751. cancel() {
  752. this.open = false;
  753. this.opentwo = false
  754. this.reset();
  755. },
  756. // 表单重置
  757. reset() {
  758. this.form = {
  759. // configId: undefined,
  760. // configName: undefined,
  761. // configKey: undefined,
  762. // configValue: undefined,
  763. // configType: "Y",
  764. // remark: undefined
  765. };
  766. this.resetForm("form");
  767. },
  768. resettwo() {
  769. this.formtwo = {
  770. // configId: undefined,
  771. // configName: undefined,
  772. // configKey: undefined,
  773. // configValue: undefined,
  774. // configType: "Y",
  775. // remark: undefined
  776. };
  777. this.resetForm("form");
  778. },
  779. /** 搜索按钮操作 */
  780. handleQuery() {
  781. this.queryParams.pageNum = 1;
  782. this.getList();
  783. },
  784. /** 重置按钮操作 */
  785. resetQuery() {
  786. this.dateRange = [];
  787. this.resetForm("queryForm");
  788. this.handleQuery();
  789. },
  790. /** 新增按钮操作 */
  791. handleAdd() {
  792. this.reset();
  793. this.open = true;
  794. this.opentwo = true
  795. this.title = "添加参数";
  796. this.titletwo = "添加参数";
  797. },
  798. handleAddtwo() {
  799. this.resettwo();
  800. // this.open = true;
  801. this.opentwo = true
  802. // this.title = "添加参数";
  803. this.titletwo = "添加参数";
  804. },
  805. // 多选框选中数据
  806. handleSelectionChange(selection) {
  807. this.ids = selection.map(item => item.configId)
  808. this.single = selection.length!=1
  809. this.multiple = !selection.length
  810. },
  811. /** 修改按钮操作 */
  812. handleUpdate(row) {
  813. this.reset();
  814. const id = row.id
  815. getConfig(id).then(response => {
  816. console.log(345)
  817. this.form = response.data;
  818. this.open = true;
  819. // this.opentwo = true
  820. this.title = "修改参数";
  821. // this.titletwo = "修改参数";
  822. });
  823. },
  824. handleUpdatetwo(row) {
  825. this.reset();
  826. const id = row.id
  827. getConfigKeytwo(id).then(response => {
  828. console.log(345)
  829. this.formtwo = response.data;
  830. // this.open = true;
  831. this.opentwo = true
  832. // this.title = "修改参数";
  833. this.titletwo = "修改参数";
  834. });
  835. },
  836. /** 提交按钮 */
  837. submitForm: function() {
  838. this.$refs["form"].validate(valid => {
  839. if (valid) {
  840. if ( this.form.id != undefined ) {
  841. updateConfig(this.form).then(response => {
  842. this.msgSuccess("修改成功");
  843. this.open = false;
  844. this.getListtwo();
  845. });
  846. } else {
  847. this.form.bmProjectId = this.bmProjectId
  848. addConfig(this.form).then(response => {
  849. this.msgSuccess("新增成功");
  850. this.open = false;
  851. this.getListtwo();
  852. });
  853. }
  854. }
  855. });
  856. },
  857. /** 提交按钮 */
  858. submitFormtwo: function() {
  859. this.$refs["formtwo"].validate(valid => {
  860. if (valid) {
  861. if (this.formtwo.id != undefined) {
  862. updateConfigtwo(this.formtwo).then(response => {
  863. this.msgSuccess("修改成功");
  864. this.opentwo = false;
  865. this.getListther();
  866. });
  867. } else {
  868. this.formtwo.bmProjectId = this.bmProjectId
  869. addConfigtwo(this.formtwo).then(response => {
  870. this.msgSuccess("新增成功");
  871. this.opentwo = false;
  872. this.getListther();
  873. });
  874. }
  875. }
  876. });
  877. },
  878. // 暂存接口
  879. emporary(){
  880. this.$refs["queryForm"].validate(valid => {
  881. if (valid) {
  882. if ( this.sbuen ==1 ) {
  883. updateConfigalking(this.queryParams).then(response => {
  884. this.msgSuccess("修改成功");
  885. this.open = false;
  886. this.getListtwo();
  887. });
  888. } else {
  889. // this.queryParams.bmProjectId = this.bmProjectId
  890. console.log(this.queryParams,87)
  891. addConfigalking(this.queryParams).then(response => {
  892. console.log(response)
  893. this.msgSuccess("新增成功");
  894. this.open = false;
  895. this.getListtwo();
  896. });
  897. }
  898. }
  899. });
  900. },
  901. submitCtion(){
  902. console.log(this.queryParams)
  903. },
  904. /** 删除按钮操作 */
  905. handleDelete(row) {
  906. const configIds = row.id ;
  907. this.$confirm('是否确认删除"' + row.companyName + '"的数据项?', "警告", {
  908. confirmButtonText: "确定",
  909. cancelButtonText: "取消",
  910. type: "warning"
  911. }).then(function() {
  912. return delConfig(configIds);
  913. }).then(() => {
  914. this.getListtwo();
  915. this.msgSuccess("删除成功");
  916. })
  917. },
  918. handleDeletetwo(row) {
  919. const configIds = row.id ;
  920. this.$confirm('是否确认删除"' + row.name + '"的数据项?', "警告", {
  921. confirmButtonText: "确定",
  922. cancelButtonText: "取消",
  923. type: "warning"
  924. }).then(function() {
  925. return delConfigtwo(configIds);
  926. }).then(() => {
  927. this.getListther();
  928. this.msgSuccess("删除成功");
  929. })
  930. },
  931. /** 导出按钮操作 */
  932. handleExport() {
  933. const queryParams = this.queryParams;
  934. this.$confirm('是否确认导出所有参数数据项?', "警告", {
  935. confirmButtonText: "确定",
  936. cancelButtonText: "取消",
  937. type: "warning"
  938. }).then(function() {
  939. return exportConfig(queryParams);
  940. }).then(response => {
  941. this.download(response.msg);
  942. })
  943. },
  944. /** 清理缓存按钮操作 */
  945. handleClearCache() {
  946. clearCache().then(response => {
  947. this.msgSuccess("清理成功");
  948. });
  949. },
  950. //tab
  951. changeTab(index){
  952. this.$emit('changeTab', index)
  953. // this.tab = index
  954. }
  955. }
  956. };
  957. </script>
  958. <style rel="stylesheet/scss" lang="scss">
  959. .roiyy{
  960. position: fixed;
  961. top:180px;
  962. left:0;
  963. width: 100%;
  964. padding-left: 230px;
  965. padding-right: 30px;
  966. box-sizing: border-box;
  967. z-index: 44;
  968. }
  969. .manager_form{
  970. .manager_lab{
  971. .el-form-item__label{
  972. width: 145px !important;
  973. }
  974. }
  975. .maneg_lar{
  976. position: relative;
  977. .el-form-item__label{
  978. width: 134px !important;
  979. }
  980. span{
  981. position: absolute;
  982. left: -95%;
  983. }
  984. }
  985. .manager_labtwo{
  986. .el-form-item__label{
  987. width: 244px !important;
  988. }
  989. }
  990. .manager_labthre{
  991. // .el-form-item{
  992. .el-form-item__label{
  993. width: 130px !important;
  994. }
  995. margin-right: 40px !important;
  996. // }
  997. }
  998. .ieuyr{
  999. .el-textarea__inner{
  1000. height: 80px !important;
  1001. }
  1002. }
  1003. .mage_ter{
  1004. .el-form-item__label{
  1005. width: 513px !important;
  1006. }
  1007. }
  1008. .maget_ty{
  1009. .el-form-item__label{
  1010. width: 135px !important;
  1011. }
  1012. }
  1013. .forieu{
  1014. border: 1px solid #DCDFE6;
  1015. border-radius: 4px;
  1016. width: 480px;
  1017. height: 90px;
  1018. position: relative;
  1019. .bure{
  1020. position: absolute;
  1021. right: 20px;
  1022. top: 50%;
  1023. transform: translateY(-50%);
  1024. }
  1025. .burert{
  1026. .el-upload--picture-card{
  1027. height: 78px;
  1028. line-height: 78px;
  1029. width: 80px;
  1030. vertical-align:center;
  1031. border: 0 !important;
  1032. background-color: #fff;
  1033. }
  1034. .el-upload-list--picture-card .el-upload-list__item{
  1035. height: 78px !important;
  1036. width: 78px !important;
  1037. }
  1038. }
  1039. }
  1040. }
  1041. .lage_div{
  1042. padding-left: 15px;
  1043. display: flex;
  1044. align-items: center;
  1045. margin-bottom: 22px;
  1046. .el-form-item{
  1047. margin-bottom: 0 !important;
  1048. }
  1049. }
  1050. .app-cont{
  1051. .header{
  1052. padding-left: 22px;
  1053. height: 45px;
  1054. line-height: 40px;
  1055. background-color: #F1F1F1;
  1056. font-size: 18px;
  1057. color: #343434;
  1058. margin-bottom: 40px;
  1059. }
  1060. // .naue{
  1061. // border: 1px solid #DADADA;
  1062. // padding: 20px;
  1063. // margin-top: 40px;
  1064. .nuae_wtu{
  1065. display: flex;
  1066. justify-content: center;
  1067. align-content: center;
  1068. .naue_one{
  1069. width: 30%;
  1070. p{
  1071. font-size: 12px;
  1072. font-family: PingFang SC;
  1073. font-weight: 400;
  1074. color: #343434;
  1075. }
  1076. .naue_name{
  1077. font-size: 14px;
  1078. font-family: PingFang SC;
  1079. font-weight: bold;
  1080. color: #0669B2;
  1081. margin-bottom: 30px;
  1082. }
  1083. }
  1084. .naue_two{
  1085. flex: 1;
  1086. padding-top: 20px;
  1087. // display: flex;
  1088. // align-items: center;
  1089. // justify-content: center;
  1090. }
  1091. }
  1092. //tab
  1093. .naue_tab{
  1094. border-bottom: 1px solid #CDCDCD;
  1095. display: flex;
  1096. margin-top: 30px;
  1097. padding: 0 10px;
  1098. margin-bottom: 30px;
  1099. p{
  1100. font-size: 12px;
  1101. font-family: PingFang SC;
  1102. font-weight: 400;
  1103. color: #343434;
  1104. padding: 11px 15px;
  1105. margin: 0;
  1106. }
  1107. .p{
  1108. border-bottom: 2px solid #1C84C6;
  1109. margin-bottom: -1px;
  1110. }
  1111. }
  1112. .mation{
  1113. .enterprise{
  1114. font-size: 14px;
  1115. font-family: PingFang SC;
  1116. font-weight: bold;
  1117. color: #1C84C6;
  1118. margin-top: 25px;
  1119. margin-bottom: 20px;
  1120. }
  1121. .enterprise_tw{
  1122. i{
  1123. margin-right: 5px;
  1124. }
  1125. font-size: 14px;
  1126. font-family: PingFang SC;
  1127. font-weight: 600;
  1128. color: #666666;
  1129. }
  1130. }
  1131. // }
  1132. .nvestor{
  1133. margin-bottom: 10px;
  1134. p{
  1135. margin:0;
  1136. font-size: 14px;
  1137. font-family: PingFang SC;
  1138. font-weight: bold;
  1139. color: #343434;
  1140. height: 24px;
  1141. line-height: 24px;
  1142. border-left: 3px solid #1C84C6;
  1143. padding-left: 13px;
  1144. i{
  1145. color: red;
  1146. }
  1147. }
  1148. }
  1149. .souu{
  1150. font-size: 14px;
  1151. font-family: PingFang SC;
  1152. font-weight: 400;
  1153. color: #343434;
  1154. margin-left: 5px;
  1155. }
  1156. }
  1157. //在建项目
  1158. .nstruction{
  1159. display: flex;
  1160. align-items: center;
  1161. .nstruction_nav{
  1162. display: flex;
  1163. align-items: center;
  1164. p:nth-child(1){
  1165. margin-right: 10px;
  1166. span{
  1167. font-size: 14px;
  1168. font-family: PingFang SC;
  1169. font-weight: bold;
  1170. color: #343434;
  1171. }
  1172. span:nth-child(1){
  1173. color: #DF0024;
  1174. }
  1175. }
  1176. p:nth-child(2){
  1177. width: 233px;
  1178. height: 30px;
  1179. line-height: 30px;
  1180. border: 1px solid #CDCDCD;
  1181. border-radius: 3px;
  1182. padding-left: 14px;
  1183. }
  1184. }
  1185. .nstruction_navne{
  1186. margin-left: 50px;
  1187. display: flex;
  1188. align-items: center;
  1189. p:nth-child(1){
  1190. margin-right: 10px;
  1191. span{
  1192. font-size: 14px;
  1193. font-family: PingFang SC;
  1194. font-weight: bold;
  1195. color: #343434;
  1196. }
  1197. span:nth-child(1){
  1198. color: #DF0024;
  1199. }
  1200. }
  1201. p:nth-child(2){
  1202. width: 233px;
  1203. height: 30px;
  1204. line-height: 30px;
  1205. border: 1px solid #CDCDCD;
  1206. border-radius: 3px;
  1207. padding-left: 14px;
  1208. }
  1209. }
  1210. }
  1211. .kaieu{
  1212. padding-left: 60px;
  1213. font-size: 14px;
  1214. font-family: PingFang SC;
  1215. font-weight: 800;
  1216. color: #343434;
  1217. }
  1218. .kaieu_tw{
  1219. padding-left: 60px;
  1220. font-size: 14px;
  1221. font-family: PingFang SC;
  1222. font-weight: 500;
  1223. color: #666666;
  1224. }
  1225. </style>