companyDetailsEdit.vue 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209
  1. <template>
  2. <div class="housedetailsedit">
  3. <div class="list">
  4. <div class="list-row" style="padding-top: 0; padding-bottom: 500rpx">
  5. <uni-collapse v-model="value" style="width: 100%">
  6. <uni-collapse-item title="基础信息">
  7. <div style="height: auto">
  8. <view
  9. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  10. >
  11. <view class="input_title float_left">公司名称:</view>
  12. <input
  13. style="color: #777"
  14. class="input_value float_left"
  15. placeholder="暂无"
  16. v-model="form.qymc"
  17. />
  18. </view>
  19. <view
  20. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  21. >
  22. <view class="input_title float_left">统一社会信用代码:</view>
  23. <input
  24. style="color: #777"
  25. class="input_value float_left"
  26. placeholder="暂无"
  27. v-model="form.shxydm"
  28. />
  29. </view>
  30. <view
  31. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  32. >
  33. <view class="input_title float_left">注册资金(万元):</view>
  34. <input
  35. style="color: #777"
  36. class="input_value float_left"
  37. placeholder="暂无"
  38. v-model="form.zczj"
  39. />
  40. </view>
  41. <view
  42. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  43. >
  44. <view class="input_title float_left">币别:</view>
  45. <picker
  46. style="float: left; width: 360rpx; height: 40rpx; color: #777"
  47. @change="getBizhongtype"
  48. range-key="label"
  49. :range="dic_SelectList.CURRENCY"
  50. >
  51. <div style="width: 315rpx; float: left">
  52. {{
  53. bizhongIndex == null
  54. ? "请选择"
  55. : dic_SelectList.CURRENCY[bizhongIndex].label
  56. }}
  57. </div>
  58. <img
  59. class="height40rpx width40rpx float_left"
  60. src="../../../static/mine/youjiantou.png"
  61. alt=""
  62. />
  63. </picker>
  64. </view>
  65. <view
  66. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  67. >
  68. <view class="input_title float_left">注册时间:</view>
  69. <picker
  70. style="float: left; width: 360rpx; height: 40rpx; color: #777"
  71. mode="date"
  72. :value="form.zcsj"
  73. @change="getZcsj"
  74. >
  75. <div style="width: 315rpx; float: left">
  76. {{
  77. form.zcsj == "" || form.zcsj == null
  78. ? "请选择"
  79. : form.zcsj
  80. }}
  81. </div>
  82. <img
  83. class="height40rpx width40rpx float_left"
  84. src="../../../static/mine/youjiantou.png"
  85. alt=""
  86. />
  87. </picker>
  88. </view>
  89. <view
  90. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  91. >
  92. <view class="input_title float_left">法定代表人:</view>
  93. <input
  94. style="color: #777"
  95. class="input_value float_left"
  96. placeholder="暂无"
  97. v-model="form.fddbr"
  98. />
  99. </view>
  100. <view
  101. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  102. >
  103. <view class="input_title float_left">法人电话 :</view>
  104. <input
  105. style="color: #777"
  106. class="input_value float_left"
  107. placeholder="暂无"
  108. v-model="form.lxdh"
  109. />
  110. </view>
  111. <view
  112. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  113. >
  114. <view class="input_title float_left">法人邮箱 :</view>
  115. <input
  116. style="color: #777"
  117. class="input_value float_left"
  118. placeholder="暂无"
  119. v-model="form.frEmail"
  120. />
  121. </view>
  122. <view
  123. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date"
  124. style="height: 194rpx"
  125. >
  126. <view class="input_title">法人身份证:</view>
  127. <view class="width100" style="position: relative">
  128. <van-icon
  129. v-if="
  130. form.frsfzh_zhenmian != '../../../static/idzhengmian.png'
  131. "
  132. @click="splicefrsfzh_zhenmian()"
  133. name="cross"
  134. style="
  135. position: absolute;
  136. top: -5rpx;
  137. left: 133rpx;
  138. font-size: 42rpx;
  139. "
  140. />
  141. <van-icon
  142. v-if="
  143. form.frsfzh_fanmian != '../../../static/idfanmian.png'
  144. "
  145. @click="splicefrsfzh_fanmian()"
  146. name="cross"
  147. style="
  148. position: absolute;
  149. top: -5rpx;
  150. left: 300rpx;
  151. font-size: 23px;
  152. "
  153. />
  154. <img
  155. @click="choosefrsfzh_zhenmian()"
  156. :src="
  157. form.frsfzh_zhenmian == '../../../static/idzhengmian.png'
  158. ? form.frsfzh_zhenmian
  159. : BASE_URI +
  160. '/FileController/download/' +
  161. form.frsfzh_zhenmian
  162. "
  163. class="idclass margin12rpx float_left"
  164. placeholder="请输入"
  165. />
  166. <img
  167. @click="choosefrsfzh_fanmian()"
  168. :src="
  169. form.frsfzh_fanmian == '../../../static/idfanmian.png'
  170. ? form.frsfzh_fanmian
  171. : BASE_URI +
  172. '/FileController/download/' +
  173. form.frsfzh_fanmian
  174. "
  175. class="idclass margin12rpx float_left"
  176. placeholder="请输入"
  177. />
  178. </view>
  179. </view>
  180. <view
  181. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  182. >
  183. <view class="input_title float_left">主营业务:</view>
  184. <input
  185. style="color: #777"
  186. class="input_value float_left"
  187. placeholder="请输入"
  188. v-model="form.business"
  189. />
  190. </view>
  191. <view
  192. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  193. >
  194. <view class="input_title float_left">企业联系人</view>
  195. <input
  196. style="color: #777"
  197. class="input_value float_left"
  198. placeholder="暂无"
  199. v-model="form.qylxr"
  200. />
  201. </view>
  202. <view
  203. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  204. >
  205. <view class="input_title float_left">联系人电话:</view>
  206. <input
  207. style="color: #777"
  208. class="input_value float_left"
  209. placeholder="暂无"
  210. v-model="form.lxdh"
  211. />
  212. </view>
  213. <view
  214. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  215. >
  216. <view class="input_title float_left">联系人邮箱:</view>
  217. <input
  218. style="color: #777"
  219. class="input_value float_left"
  220. placeholder="暂无"
  221. v-model="form.email"
  222. />
  223. </view>
  224. <view
  225. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  226. >
  227. <view class="input_title float_left">财务负责人:</view>
  228. <input
  229. style="color: #777"
  230. class="input_value float_left"
  231. placeholder="暂无"
  232. v-model="form.cwfzr"
  233. />
  234. </view>
  235. <view
  236. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  237. >
  238. <view class="input_title float_left">负责人电话:</view>
  239. <input
  240. style="color: #777"
  241. class="input_value float_left"
  242. placeholder="暂无"
  243. v-model="form.cwfzrdh"
  244. />
  245. </view>
  246. <view
  247. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  248. >
  249. <view class="input_title float_left">入驻类型</view>
  250. <picker
  251. style="float: left; width: 300rpx; height: 40rpx; color: #777"
  252. @change="getSettleInType"
  253. range-key="label"
  254. :range="dic_SelectList.MNP_BUILDING_TYPE"
  255. >
  256. <span>
  257. {{
  258. settleInTypeIndex != -1
  259. ? dic_SelectList.MNP_BUILDING_TYPE[settleInTypeIndex]
  260. .label
  261. : "请选择"
  262. }}
  263. </span>
  264. </picker>
  265. </view>
  266. <view
  267. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  268. >
  269. <view
  270. class="input_title float_left"
  271. @click="getSelectUserTwo('selectDengjiren')"
  272. >招商经理:</view
  273. >
  274. <input
  275. @click="getSelectUserTwo('selectDengjiren')"
  276. disabled="true"
  277. style="color: #777"
  278. class="input_value float_left"
  279. placeholder="暂无"
  280. v-model="form.investmentManagerName"
  281. />
  282. </view>
  283. <view
  284. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  285. >
  286. <view class="input_title float_left">所属楼盘:</view>
  287. <input
  288. style="color: #777"
  289. class="input_value float_left"
  290. placeholder="暂无"
  291. v-model="form.area"
  292. />
  293. </view>
  294. <view
  295. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  296. >
  297. <view class="input_title float_left">注册地址:</view>
  298. <input
  299. style="color: #777"
  300. class="input_value float_left"
  301. placeholder="暂无"
  302. v-model="form.zcdz"
  303. />
  304. </view>
  305. <view
  306. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  307. >
  308. <view class="input_title float_left">经营地址:</view>
  309. <input
  310. style="color: #777"
  311. class="input_value float_left"
  312. placeholder="暂无"
  313. v-model="form.jydz"
  314. />
  315. </view>
  316. <view
  317. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height300rpxs"
  318. >
  319. <view class="input_title float_left">荣誉信息(限6张)</view>
  320. <textarea
  321. :maxlength="2000"
  322. placeholder="请输入"
  323. v-model="form.honorInformation"
  324. type="textarea"
  325. style="
  326. height: 270rpx;
  327. background: rgba(249, 249, 249, 1);
  328. padding: 20rpx;
  329. width: calc(100% - 40rpx);
  330. "
  331. />
  332. <div
  333. style="
  334. background: rgba(249, 249, 249, 1);
  335. text-align: right;
  336. padding-right: 10px;
  337. padding-bottom: 10rpx;
  338. margi-bottom: 10rpx;
  339. "
  340. >
  341. {{ form.honorInformation.length }}/2000
  342. </div>
  343. <view class="custom-image-box" style="margin-top: 20rpx">
  344. <van-uploader
  345. :max-count="6"
  346. @delete="deleteRYXXZP"
  347. :file-list="form.RYXXZPList"
  348. @after-read="uploadRYXXZP"
  349. :show-upload="true"
  350. />
  351. </view>
  352. </view>
  353. <view class="width100 mt24rpx padb24rpx list_date height300rpx">
  354. <view class="input_title mb16rpx">经营范围:</view>
  355. <textarea
  356. v-model="form.jyfw"
  357. :maxlength="2000"
  358. placeholder="请输入"
  359. type="textarea"
  360. style="
  361. height: 200rpx;
  362. background: rgba(249, 249, 249, 1);
  363. padding: 20rpx;
  364. width: calc(100% - 40rpx);
  365. "
  366. />
  367. <div
  368. style="
  369. background: rgba(249, 249, 249, 1);
  370. text-align: right;
  371. padding-right: 10px;
  372. padding-bottom: 10rpx;
  373. "
  374. >
  375. {{ form.jyfw.length }}/2000
  376. </div>
  377. </view>
  378. <view class="width100 mt24rpx list_date height40rpx">
  379. <view class="input_title float_left" style="width: 52%"
  380. >营业执照副本:(限1张)</view
  381. >
  382. </view>
  383. <view class="custom-image-box" style="position: relative">
  384. <van-icon
  385. v-if="form.YYZZFBZP != '../../../static/unuploadzhizhao.png'"
  386. @click="spliceYYZZFBZP()"
  387. name="cross"
  388. style="
  389. position: absolute;
  390. top: 0;
  391. left: 282rpx;
  392. font-size: 42rpx;
  393. "
  394. />
  395. <img
  396. @click="chooseYYZZFBZP()"
  397. :src="
  398. form.YYZZFBZP == '../../../static/unuploadzhizhao.png'
  399. ? form.YYZZFBZP
  400. : BASE_URI + '/FileController/download/' + form.YYZZFBZP
  401. "
  402. style="color: #777; width: 300rpx; height: 260rpx"
  403. placeholder="请输入"
  404. />
  405. </view>
  406. <view
  407. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  408. >
  409. <view class="input_title float_left height80rpx">
  410. 全年研发投入:
  411. <br />
  412. (万元)
  413. </view>
  414. <input
  415. style="color: #777; height: 80rpx; line-height: 80rpx"
  416. class="input_value float_left"
  417. placeholder="暂无"
  418. v-model="form.rdInvestment"
  419. />
  420. </view>
  421. <view
  422. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  423. >
  424. <view class="input_title float_left height80rpx"
  425. >全年技改投入:<br />(万元)</view
  426. >
  427. <input
  428. style="color: #777; height: 80rpx; line-height: 80rpx"
  429. class="input_value float_left"
  430. placeholder="暂无"
  431. v-model="form.jgInvestment"
  432. />
  433. </view>
  434. <view
  435. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  436. >
  437. <view class="input_title float_left height80rpx"
  438. >发明专利:<br />(件)</view
  439. >
  440. <input
  441. style="color: #777; height: 80rpx; line-height: 80rpx"
  442. class="input_value float_left"
  443. placeholder="请输入"
  444. v-model="form.inventionPatent"
  445. />
  446. </view>
  447. <view
  448. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  449. >
  450. <view class="input_title float_left height80rpx"
  451. >软件著作:<br />(件)</view
  452. >
  453. <input
  454. style="color: #777; height: 80rpx; line-height: 80rpx"
  455. class="input_value float_left"
  456. placeholder="请输入"
  457. v-model="form.softwareWorks"
  458. />
  459. </view>
  460. <view
  461. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  462. >
  463. <view class="input_title float_left height80rpx"
  464. >实用新型专利:<br />(件)</view
  465. >
  466. <input
  467. style="color: #777; height: 80rpx; line-height: 80rpx"
  468. class="input_value float_left"
  469. placeholder="请输入"
  470. v-model="form.utilityModel"
  471. />
  472. </view>
  473. <view
  474. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  475. >
  476. <view class="input_title float_left height80rpx"
  477. >集成电路布图设计<br />专有权:(件)</view
  478. >
  479. <input
  480. style="color: #777; height: 80rpx; line-height: 80rpx"
  481. class="input_value float_left"
  482. placeholder="请输入"
  483. v-model="form.integratedCircuit"
  484. />
  485. </view>
  486. <view
  487. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  488. >
  489. <view class="input_title float_left"
  490. >四技合同金额:<br />(技术开发)(万元)</view
  491. >
  492. <input
  493. style="color: #777; height: 80rpx; line-height: 80rpx"
  494. class="input_value float_left"
  495. placeholder="暂无"
  496. v-model="form.fourOpennessAmount"
  497. />
  498. </view>
  499. <view
  500. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  501. >
  502. <view class="input_title float_left"
  503. >四技合同金额:<br />(转让)(万元)</view
  504. >
  505. <input
  506. style="color: #777; height: 80rpx; line-height: 80rpx"
  507. class="input_value float_left"
  508. placeholder="暂无"
  509. v-model="form.fourTransferenceAmount"
  510. />
  511. </view>
  512. <view
  513. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  514. >
  515. <view class="input_title float_left"
  516. >四技合同金额:<br />(服务)(万元)</view
  517. >
  518. <input
  519. style="color: #777; height: 80rpx; line-height: 80rpx"
  520. class="input_value float_left"
  521. placeholder="暂无"
  522. v-model="form.fourServiceAmount"
  523. />
  524. </view>
  525. <view
  526. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  527. >
  528. <view class="input_title float_left">
  529. 四技合同金额:<br />(咨询)(万元)
  530. </view>
  531. <input
  532. style="color: #777"
  533. class="input_value float_left"
  534. placeholder="暂无"
  535. v-model="form.fourConsultAmount"
  536. />
  537. </view>
  538. <view
  539. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date"
  540. style="display: flex"
  541. @click="chosseAboutCompany()"
  542. >
  543. <view class="input_title float_left">关联企业:</view>
  544. <div style="color: #777; width: 60%" class="float_left">
  545. {{ form.associationCompanyName }}
  546. </div>
  547. </view>
  548. </div>
  549. </uni-collapse-item>
  550. </uni-collapse>
  551. </div>
  552. </div>
  553. <view class="‘btn-view‘">
  554. <div class="btn" @click="edit()">编辑</div>
  555. </view>
  556. <handle-report ref="handleReport" @changeActive="changeActive" />
  557. <select-dengjiren
  558. ref="selectDengjiren"
  559. :multiple="true"
  560. :range="range"
  561. :selectParent="true"
  562. :foldAll="true"
  563. rangeKey="name"
  564. idKey="id"
  565. @xiangmudengji="selectDengjiren"
  566. >
  567. </select-dengjiren>
  568. <multiple-select
  569. v-model="show"
  570. @getCompanyAll="getCompanyAll"
  571. :data="companyAllList"
  572. :default-selected="defaultSelected"
  573. @confirm="confirm"
  574. ref="multipleSelect"
  575. ></multiple-select>
  576. </div>
  577. </template>
  578. <script>
  579. const form = {
  580. id: "",
  581. YYZZFBZP: "../../../static/unuploadzhizhao.png",
  582. FRSFZHZM: "../../../static/idzhengmian.png",
  583. FRSFZHFM: "../../../static/idfanmian.png",
  584. frsfzh_zhenmian: "../../../static/idzhengmian.png",
  585. frsfzh_fanmian: "../../../static/idfanmian.png",
  586. RYXXZPList: [],
  587. id: "",
  588. qymc: "",
  589. shxydm: "",
  590. zczj: "",
  591. fddbr: "",
  592. lxdh: "",
  593. frsfzh: "",
  594. qylxr: "",
  595. lxdh: "",
  596. email: "",
  597. cwfzr: "",
  598. cwfzrdh: "",
  599. investmentManagerName: "",
  600. investmentManager: "",
  601. area: "",
  602. zcdz: "",
  603. jydz: "",
  604. ryxxzp: "",
  605. rdInvestment: "",
  606. jgInvestment: "",
  607. jgInvestment: "",
  608. fourOpennessAmount: "",
  609. fourTransferenceAmount: "",
  610. fourServiceAmount: "",
  611. fourConsultAmount: "",
  612. associationCompany: "",
  613. settleInType: "",
  614. frEmail: "",
  615. zscqgs: "",
  616. };
  617. import {
  618. getCompanyHouseDetails,
  619. getByCodes,
  620. companyECdit,
  621. interviewEscalationListAll,
  622. getSelectUserTwo,
  623. getCompanyAll,
  624. } from "@/js_sdk/http";
  625. // import multipleSelect from "../../subPackages/components/momo-multipleSelect/momo-multipleSelect";
  626. import multipleSelect from "./momo-multipleSelect.vue";
  627. import handleReport from "../companyreport/components/handlereport.vue";
  628. import selectDengjiren from "../../subPackages/components/select_dengjiren/tkitree.vue";
  629. import tools from "../../subPackages/components/tkitree/tools.js";
  630. export default {
  631. components: {
  632. handleReport,
  633. selectDengjiren,
  634. multipleSelect,
  635. },
  636. data() {
  637. return {
  638. show: false,
  639. bizhongIndex: null,
  640. BASE_URI: this.$constant.BASE_URI,
  641. range: [],
  642. companyAllList: [],
  643. settleInTypeIndex: null,
  644. id: "",
  645. interviewList: [],
  646. dic_key: [
  647. "MNP_BUILDING_TYPE",
  648. "SETTLE_IN_STATUS",
  649. "interviewType",
  650. "CURRENCY",
  651. ],
  652. dic_SelectList: {},
  653. activeNames: [],
  654. StatusBar: 0,
  655. search: {
  656. pageSize: 10,
  657. pageNum: 1,
  658. },
  659. form: {
  660. ...form,
  661. },
  662. value: true,
  663. value1: true,
  664. list: [],
  665. value: ["0"],
  666. modeIndex: -1,
  667. styleIndex: -1,
  668. current: 0,
  669. mode: "default",
  670. dotsStyles: {},
  671. swiperDotIndex: 0,
  672. };
  673. },
  674. onLoad(option) {
  675. this.id = option.id;
  676. this.getCompanyAll();
  677. this.getByCodes();
  678. },
  679. methods: {
  680. chosseAboutCompany() {
  681. this.show = true;
  682. this.$refs.multipleSelect.getAllList(this.companyAllList);
  683. },
  684. confirm(e) {
  685. console.log(e);
  686. var associationCompanyString = [];
  687. var associationCompany = [];
  688. for (var p in e) {
  689. associationCompanyString.push(e[p].label);
  690. associationCompany.push(e[p].value);
  691. }
  692. this.form.associationCompanyName = associationCompanyString.join(",");
  693. this.form.associationCompany = associationCompany.join(",");
  694. console.log(associationCompanyString.join(","));
  695. this.$forceUpdate();
  696. },
  697. async getCompanyAll() {
  698. let companyAllList = await getCompanyAll();
  699. this.companyAllList = companyAllList.map((e) => {
  700. return {
  701. label: e.qymc,
  702. value: e.id,
  703. };
  704. });
  705. },
  706. getBizhongtype(e) {
  707. let that = this;
  708. that.form.currency = that.dic_SelectList.CURRENCY[e.detail.value].value;
  709. that.bizhongIndex = e.detail.value;
  710. },
  711. uploadRYXXZP(event) {
  712. let that = this;
  713. const { file } = event.detail;
  714. uni.uploadFile({
  715. url: that.$constant.BASE_URI + "/wx/fileController/upload",
  716. filePath: file.url,
  717. name: "file",
  718. formData: { user: "test" },
  719. success(res) {
  720. // 上传完成需要更新 fileList
  721. let data = JSON.parse(res.data);
  722. that.form.RYXXZPList.push({
  723. imgUrl: "/FileController/download/" + data.data[0],
  724. id: data.data[0],
  725. url:
  726. that.$constant.BASE_URI +
  727. "/FileController/download/" +
  728. data.data[0],
  729. isImage: true,
  730. });
  731. that.$forceUpdate();
  732. },
  733. fail(res) {},
  734. });
  735. },
  736. splicefrsfzh_zhenmian() {
  737. this.form.frsfzh_zhenmian = form.FRSFZHZM;
  738. this.$forceUpdate();
  739. },
  740. splicefrsfzh_fanmian() {
  741. this.form.frsfzh_fanmian = form.FRSFZHFM;
  742. this.$forceUpdate();
  743. },
  744. choosefrsfzh_zhenmian() {
  745. let that = this;
  746. if (that.form.frsfzh_zhenmian == form.FRSFZHZM) {
  747. uni.chooseImage({
  748. count: 1, //默认9
  749. sizeType: "original", //可以指定是原图还是压缩图,默认二者都有
  750. success: function (res) {
  751. uni.uploadFile({
  752. url: that.$constant.BASE_URI + "/wx/fileController/upload",
  753. filePath: res.tempFilePaths[0],
  754. name: "file",
  755. formData: { user: "test" },
  756. success(res) {
  757. // 上传完成需要更新 fileList
  758. let data = JSON.parse(res.data);
  759. that.form.frsfzh_zhenmian = data.data[0];
  760. that.$forceUpdate();
  761. },
  762. fail(res) {},
  763. });
  764. },
  765. });
  766. } else {
  767. uni.previewImage({
  768. urls: [
  769. that.BASE_URI +
  770. "/FileController/download/" +
  771. that.form.frsfzh_zhenmian,
  772. ],
  773. longPressActions: {
  774. itemList: ["发送给朋友", "保存图片", "收藏"],
  775. success: function (data) {},
  776. fail: function (err) {},
  777. },
  778. });
  779. }
  780. },
  781. getZcsj: function (e) {
  782. this.form.zcsj = e.detail.value;
  783. },
  784. chooseYYZZFBZP() {
  785. let that = this;
  786. if (that.form.YYZZFBZP == "../../../static/unuploadzhizhao.png") {
  787. uni.chooseImage({
  788. count: 1, //默认9
  789. sizeType: "original", //可以指定是原图还是压缩图,默认二者都有
  790. success: function (res) {
  791. uni.uploadFile({
  792. url: that.$constant.BASE_URI + "/wx/fileController/upload",
  793. filePath: res.tempFilePaths[0],
  794. name: "file",
  795. formData: { user: "test" },
  796. success(res) {
  797. // 上传完成需要更新 fileList
  798. let data = JSON.parse(res.data);
  799. that.form.YYZZFBZP = data.data[0];
  800. that.$forceUpdate();
  801. },
  802. fail(res) {},
  803. });
  804. },
  805. });
  806. } else {
  807. uni.previewImage({
  808. urls: [
  809. this.BASE_URI + "/FileController/download/" + that.form.YYZZFBZP,
  810. ],
  811. longPressActions: {
  812. itemList: ["发送给朋友", "保存图片", "收藏"],
  813. success: function (data) {},
  814. fail: function (err) {},
  815. },
  816. });
  817. }
  818. },
  819. choosefrsfzh_fanmian() {
  820. let that = this;
  821. if (that.form.frsfzh_fanmian == form.FRSFZHFM) {
  822. uni.chooseImage({
  823. count: 1, //默认9
  824. sizeType: "original", //可以指定是原图还是压缩图,默认二者都有
  825. success: function (res) {
  826. uni.uploadFile({
  827. url: that.$constant.BASE_URI + "/wx/fileController/upload",
  828. filePath: res.tempFilePaths[0],
  829. name: "file",
  830. formData: { user: "test" },
  831. success(res) {
  832. // 上传完成需要更新 fileList
  833. let data = JSON.parse(res.data);
  834. that.form.frsfzh_fanmian = data.data[0];
  835. that.$forceUpdate();
  836. },
  837. fail(res) {},
  838. });
  839. },
  840. });
  841. } else {
  842. uni.previewImage({
  843. urls: [
  844. that.BASE_URI +
  845. "/FileController/download/" +
  846. that.form.frsfzh_fanmian,
  847. ],
  848. longPressActions: {
  849. itemList: ["发送给朋友", "保存图片", "收藏"],
  850. success: function (data) {},
  851. fail: function (err) {},
  852. },
  853. });
  854. }
  855. },
  856. checkFormValue() {
  857. let that = this;
  858. if (that.form.zcsj == "") {
  859. that.$showToast("请选择注册时间");
  860. return false;
  861. }
  862. if (that.form.qymc == "" || !that.form.qymc) {
  863. that.$showToast("请输入企业名称");
  864. return false;
  865. }
  866. if (that.form.shxydm == "" || !that.form.shxydm) {
  867. that.$showToast("请输入社会统一信用代码");
  868. return false;
  869. }
  870. if (that.form.qylxr == "" || !that.form.qylxr) {
  871. that.$showToast("请输入企业联系人");
  872. return false;
  873. }
  874. if (that.form.email == "" || !that.form.email) {
  875. that.$showToast("请输入企业邮箱");
  876. return false;
  877. }
  878. if (that.form.cwfzr == "" || !that.form.cwfzr) {
  879. that.$showToast("请输入财务负责人");
  880. return false;
  881. }
  882. if (that.form.cwfzrdh == "" || !that.form.cwfzrdh) {
  883. that.$showToast("请输入负责人电话");
  884. return false;
  885. }
  886. return true;
  887. },
  888. selectDengjiren(e) {
  889. var names = [];
  890. var ids = [];
  891. for (var p in e) {
  892. if (e[p].type == "u") {
  893. names.push(e[p].name);
  894. ids.push(e[p].id);
  895. }
  896. }
  897. this.form.investmentManagerName = names.join(",");
  898. this.form.investmentManager = ids.join(",");
  899. },
  900. async edit() {
  901. let that = this;
  902. if (!that.changeActive()) return;
  903. let formData = {
  904. id: that.form.id,
  905. qymc: that.form.qymc,
  906. shxydm: that.form.shxydm,
  907. zczj: that.form.zczj ? that.form.zczj : 0,
  908. fddbr: that.form.fddbr,
  909. lxdh: that.form.lxdh,
  910. frsfzh: that.form.frsfzh_zhenmian + "," + that.form.frsfzh_fanmian,
  911. qylxr: that.form.qylxr,
  912. lxdh: that.form.lxdh,
  913. email: that.form.email,
  914. cwfzr: that.form.cwfzr,
  915. cwfzrdh: that.form.cwfzrdh,
  916. investmentManagerName: that.form.investmentManagerName,
  917. investmentManager: that.form.investmentManager,
  918. area: that.form.area,
  919. zcdz: that.form.zcdz,
  920. jydz: that.form.jydz,
  921. ryxxzp: that.form.ryxxzp,
  922. rdInvestment: that.form.rdInvestment,
  923. jgInvestment: that.form.jgInvestment,
  924. jgInvestment: that.form.jgInvestment,
  925. fourOpennessAmount: that.form.fourOpennessAmount,
  926. fourTransferenceAmount: that.form.fourTransferenceAmount,
  927. fourServiceAmount: that.form.fourServiceAmount,
  928. fourConsultAmount: that.form.fourConsultAmount,
  929. associationCompany: that.form.associationCompany,
  930. settleInType: that.form.settleInType,
  931. zscqgs: !that.form.zscqgs ? 0 : that.form.zscqgs,
  932. frEmail: that.form.frEmail,
  933. };
  934. let RYXXZP = [];
  935. if (that.form.RYXXZPList.length > 0) {
  936. RYXXZP = that.form.RYXXZPList.map((e) => e.id);
  937. }
  938. formData.ryxxzp = RYXXZP.toString();
  939. let zm =
  940. that.form.frsfzh_zhenmian == form.FRSFZHZM
  941. ? ""
  942. : that.form.frsfzh_zhenmian;
  943. let fm =
  944. that.form.frsfzh_fanmian == form.FRSFZHFM
  945. ? ""
  946. : that.form.frsfzh_fanmian;
  947. that.form.yyzzfbzp = that.form.YYZZFBZP;
  948. formData.frsfzh = zm + "," + fm;
  949. if (!formData.rdInvestment) delete formData.rdInvestment;
  950. if (!formData.jgInvestment) delete formData.jgInvestment;
  951. if (!formData.fourOpennessAmount) delete formData.fourOpennessAmount;
  952. if (!formData.fourTransferenceAmount)
  953. delete formData.fourTransferenceAmount;
  954. if (!formData.fourServiceAmount) delete formData.fourServiceAmount;
  955. if (!formData.fourConsultAmount) delete formData.fourConsultAmount;
  956. let data = await companyECdit(formData);
  957. if (data.code == 200) {
  958. this.$showToast("修改成功");
  959. uni.navigateBack({});
  960. }
  961. },
  962. async getSelectUserTwo(key) {
  963. let that = this;
  964. let departmentList = await getSelectUserTwo("");
  965. that.range = tools.transData(
  966. departmentList.data,
  967. "id",
  968. "parentid",
  969. "children"
  970. );
  971. that.$refs[key]._show();
  972. },
  973. jumpEditCompanyDetails(e) {
  974. // uni.navigateTo({
  975. // url
  976. // })
  977. },
  978. jumpChosseTags() {
  979. uni.navigateTo({
  980. url: "/pages/subPackages/chooseCompanyTags/index",
  981. });
  982. },
  983. openHandleReportDialog(item) {
  984. let that = this;
  985. that.$refs.handleReport.openDianlog(item);
  986. },
  987. getSettleInType(e) {
  988. let that = this;
  989. that.form.settleInType =
  990. that.dic_SelectList.MNP_BUILDING_TYPE[e.detail.value].value;
  991. that.settleInTypeIndex = e.detail.value;
  992. },
  993. getDicTypeZoufang(value) {
  994. if (!value) return;
  995. let interviewType = this.dic_SelectList.interviewType;
  996. let index = interviewType.findIndex((e) => e.value == value);
  997. if (index != -1) return interviewType[index].label;
  998. },
  999. getDicType(type, value) {
  1000. if (type == "type" && this.dic_SelectList.MNP_BUILDING_TYPE) {
  1001. let MNP_BUILDING_TYPE = this.dic_SelectList.MNP_BUILDING_TYPE;
  1002. let index = MNP_BUILDING_TYPE.findIndex((e) => e.value == value);
  1003. if (index != -1) return MNP_BUILDING_TYPE[index].label;
  1004. else return "暂无";
  1005. }
  1006. if (type == "zt" && this.dic_SelectList.SETTLE_IN_STATUS) {
  1007. let SETTLE_IN_STATUS = this.dic_SelectList.SETTLE_IN_STATUS;
  1008. let index = SETTLE_IN_STATUS.findIndex((e) => e.value == value);
  1009. if (index != -1) return SETTLE_IN_STATUS[index].label;
  1010. else return "暂无";
  1011. }
  1012. },
  1013. async getByCodes() {
  1014. this.search.pageNum = 1;
  1015. let data = await getByCodes(JSON.stringify(this.dic_key));
  1016. this.dic_SelectList = this.$common.handleDicList(data);
  1017. this.getCompanyHouseDetails(this.id);
  1018. },
  1019. async changeActive() {
  1020. let interviewList = await interviewEscalationListAll(this.id);
  1021. this.interviewList = interviewList;
  1022. },
  1023. selectItems(e) {
  1024. this.$nextTick(() => {
  1025. this.$refs.collapse.resize();
  1026. });
  1027. },
  1028. async getCompanyHouseDetails(e) {
  1029. let that = this;
  1030. try {
  1031. let detail = await getCompanyHouseDetails(e);
  1032. let index = that.dic_SelectList.MNP_BUILDING_TYPE.findIndex(
  1033. (e) => e.value == detail.data.settleInType
  1034. );
  1035. that.settleInTypeIndex = index;
  1036. that.form = detail.data;
  1037. that.form.associationCompany = that.form.associationCompany.split(",");
  1038. if (detail.data.ryxxzp.length > 0) {
  1039. let ryxxzp = detail.data.ryxxzp.split(",");
  1040. // this.form.RYXXZPList
  1041. that.form.RYXXZPList = ryxxzp.map((e) => {
  1042. return {
  1043. imgUrl: "/FileController/download/" + e,
  1044. id: e,
  1045. url: that.$constant.BASE_URI + "/FileController/download/" + e,
  1046. isImage: true,
  1047. };
  1048. });
  1049. } else {
  1050. that.form.RYXXZPList = [];
  1051. }
  1052. try {
  1053. let bizhongIndex = this.dic_SelectList.CURRENCY.findIndex(
  1054. (e) => e.value == detail.data.currency
  1055. );
  1056. that.bizhongIndex = bizhongIndex == -1 ? null : bizhongIndex;
  1057. } catch (error) {}
  1058. that.form.YYZZFBZP =
  1059. !detail.data.yyzzfbzp || detail.data.yyzzfbzp == "undefined"
  1060. ? form.YYZZFBZP
  1061. : detail.data.yyzzfbzp;
  1062. if (detail.data.frsfzh.length > 0 && detail.data.frsfzh != ",") {
  1063. let sfzlist = detail.data.frsfzh.split(",");
  1064. that.form.frsfzh_fanmian = sfzlist[0];
  1065. that.form.frsfzh_zhenmian = sfzlist[1];
  1066. } else {
  1067. that.form.frsfzh_fanmian = form.FRSFZHFM;
  1068. that.form.frsfzh_zhenmian = form.FRSFZHZM;
  1069. }
  1070. } catch (error) {}
  1071. },
  1072. onChange(event) {
  1073. this.activeNames = event.detail;
  1074. },
  1075. },
  1076. };
  1077. </script>
  1078. <style scoped lang="scss">
  1079. .dengjibutton {
  1080. margin-top: 24rpx;
  1081. margin-left: 60rpx;
  1082. margin-right: 60rpx;
  1083. width: calc(100% - 120rpx);
  1084. height: 60rpx;
  1085. text-align: center;
  1086. background: #1d18bc;
  1087. color: white;
  1088. line-height: 60rpx;
  1089. }
  1090. .housedetailsedit {
  1091. margin-bottom: 200rpx;
  1092. }
  1093. .housedetailsedit {
  1094. .btn-view {
  1095. width: 100%;
  1096. height: 100rpx;
  1097. padding: 20rpx 10%;
  1098. background-color: #ffffff;
  1099. position: fixed;
  1100. bottom: 0;
  1101. z-index: 100;
  1102. left: 0;
  1103. }
  1104. .btn {
  1105. border-radius: 8rpx 8rpx 8rpx 8rpx;
  1106. width: 80%;
  1107. height: 90rpx;
  1108. // border-radius: 50rpx 50rpx 50rpx 50rpx;
  1109. background: #1d18bc;
  1110. line-height: 90rpx;
  1111. color: white;
  1112. text-align: center;
  1113. }
  1114. .detailstitle {
  1115. height: 42rpx;
  1116. font-size: 30rpx;
  1117. font-weight: 500;
  1118. color: #333333;
  1119. padding-bottom: 16rpx;
  1120. }
  1121. .typestitle {
  1122. height: 42rpx;
  1123. font-size: 24rpx;
  1124. font-weight: 500;
  1125. padding-bottom: 16rpx;
  1126. margin-bottom: 16rpx;
  1127. }
  1128. }
  1129. </style>
  1130. <style lang="scss">
  1131. ::v-deep .is-open + .uni-collapse-item__wrap {
  1132. height: auto !important;
  1133. }
  1134. ::v-deep .uni-collapse-item__wrap-content {
  1135. height: auto !important;
  1136. }
  1137. .pageconfig {
  1138. background: #ffffff;
  1139. padding: 32rpx;
  1140. }
  1141. .input_title {
  1142. width: 40%;
  1143. font-size: 28rpx;
  1144. height: 40rpx;
  1145. line-height: 40rpx;
  1146. color: #333333;
  1147. }
  1148. .input_value {
  1149. width: 60%;
  1150. font-size: 28rpx;
  1151. height: 40rpx;
  1152. line-height: 40rpx;
  1153. color: #777777;
  1154. }
  1155. .uni-collapse-item__title-box {
  1156. padding: 0 !important;
  1157. }
  1158. .uni-collapse-item__title-text {
  1159. color: #1d18bc !important;
  1160. font-size: 32rpx !important;
  1161. }
  1162. .idclass {
  1163. width: 147rpx;
  1164. height: 100rpx;
  1165. }
  1166. </style>