companyDetailsEdit.vue 40 KB

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