index.vue 42 KB

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