companyDetailsEdit.vue 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158
  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.qylxr"
  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.lxdh"
  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.email"
  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.cwfzr"
  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.cwfzrdh"
  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. <picker
  240. style="float: left; width: 300rpx; height: 40rpx; color: #777"
  241. @change="getSettleInType"
  242. range-key="label"
  243. :range="dic_SelectList.MNP_BUILDING_TYPE"
  244. >
  245. <span>
  246. {{
  247. settleInTypeIndex != -1
  248. ? dic_SelectList.MNP_BUILDING_TYPE[settleInTypeIndex]
  249. .label
  250. : "请选择"
  251. }}
  252. </span>
  253. </picker>
  254. </view>
  255. <view
  256. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  257. >
  258. <view
  259. class="input_title float_left"
  260. @click="getSelectUserTwo('selectDengjiren')"
  261. >招商经理:</view
  262. >
  263. <input
  264. @click="getSelectUserTwo('selectDengjiren')"
  265. disabled="true"
  266. style="color: #777"
  267. class="input_value float_left"
  268. placeholder="暂无"
  269. v-model="form.investmentManagerName"
  270. />
  271. </view>
  272. <view
  273. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  274. >
  275. <view class="input_title float_left">所属楼盘:</view>
  276. <input
  277. style="color: #777"
  278. class="input_value float_left"
  279. placeholder="暂无"
  280. v-model="form.area"
  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.zcdz"
  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.jydz"
  303. />
  304. </view>
  305. <view
  306. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height300rpxs"
  307. >
  308. <view class="input_title float_left">荣誉信息(限6张)</view>
  309. <textarea
  310. :maxlength="2000"
  311. placeholder="请输入"
  312. v-model="form.honorInformation"
  313. type="textarea"
  314. style="
  315. height: 270rpx;
  316. background: rgba(249, 249, 249, 1);
  317. padding: 20rpx;
  318. width: calc(100% - 40rpx);
  319. "
  320. />
  321. <div
  322. style="
  323. background: rgba(249, 249, 249, 1);
  324. text-align: right;
  325. padding-right: 10px;
  326. padding-bottom: 10rpx;
  327. margi-bottom: 10rpx;
  328. "
  329. >
  330. {{ form.honorInformation.length }}/2000
  331. </div>
  332. <view class="custom-image-box" style="margin-top: 20rpx">
  333. <van-uploader
  334. :max-count="6"
  335. @delete="deleteRYXXZP"
  336. :file-list="form.RYXXZPList"
  337. @after-read="uploadRYXXZP"
  338. :show-upload="true"
  339. />
  340. </view>
  341. </view>
  342. <view class="width100 mt24rpx padb24rpx list_date height300rpx">
  343. <view class="input_title mb16rpx">经营范围:</view>
  344. <textarea
  345. v-model="form.jyfw"
  346. :maxlength="2000"
  347. placeholder="请输入"
  348. type="textarea"
  349. style="
  350. height: 200rpx;
  351. background: rgba(249, 249, 249, 1);
  352. padding: 20rpx;
  353. width: calc(100% - 40rpx);
  354. "
  355. />
  356. <div
  357. style="
  358. background: rgba(249, 249, 249, 1);
  359. text-align: right;
  360. padding-right: 10px;
  361. padding-bottom: 10rpx;
  362. "
  363. >
  364. {{ form.jyfw.length }}/2000
  365. </div>
  366. </view>
  367. <view class="width100 mt24rpx list_date height40rpx">
  368. <view class="input_title float_left" style="width: 52%"
  369. >营业执照副本:(限1张)</view
  370. >
  371. </view>
  372. <view class="custom-image-box" style="position: relative">
  373. <van-icon
  374. v-if="form.YYZZFBZP != '../../../static/unuploadzhizhao.png'"
  375. @click="spliceYYZZFBZP()"
  376. name="cross"
  377. style="
  378. position: absolute;
  379. top: 0;
  380. left: 282rpx;
  381. font-size: 42rpx;
  382. "
  383. />
  384. <img
  385. @click="chooseYYZZFBZP()"
  386. :src="
  387. form.YYZZFBZP == '../../../static/unuploadzhizhao.png'
  388. ? form.YYZZFBZP
  389. : BASE_URI + '/FileController/download/' + form.YYZZFBZP
  390. "
  391. style="color: #777; width: 300rpx; height: 260rpx"
  392. placeholder="请输入"
  393. />
  394. </view>
  395. <view
  396. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  397. >
  398. <view class="input_title float_left height80rpx">
  399. 全年研发投入:
  400. <br />
  401. (万元)
  402. </view>
  403. <input
  404. style="color: #777; height: 80rpx; line-height: 80rpx"
  405. class="input_value float_left"
  406. placeholder="暂无"
  407. v-model="form.rdInvestment"
  408. />
  409. </view>
  410. <view
  411. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  412. >
  413. <view class="input_title float_left height80rpx"
  414. >全年技改投入:<br />(万元)</view
  415. >
  416. <input
  417. style="color: #777; height: 80rpx; line-height: 80rpx"
  418. class="input_value float_left"
  419. placeholder="暂无"
  420. v-model="form.jgInvestment"
  421. />
  422. </view>
  423. <view
  424. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  425. >
  426. <view class="input_title float_left height80rpx"
  427. >拥有知识产权<br />(个数)</view
  428. >
  429. <input
  430. style="color: #777; height: 80rpx; line-height: 80rpx"
  431. class="input_value float_left"
  432. placeholder="暂无"
  433. v-model="form.zscqgs"
  434. />
  435. </view>
  436. <view
  437. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  438. >
  439. <view class="input_title float_left"
  440. >四技合同金额:<br />(技术开发)(万元)</view
  441. >
  442. <input
  443. style="color: #777; height: 80rpx; line-height: 80rpx"
  444. class="input_value float_left"
  445. placeholder="暂无"
  446. v-model="form.fourOpennessAmount"
  447. />
  448. </view>
  449. <view
  450. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  451. >
  452. <view class="input_title float_left"
  453. >四技合同金额:<br />(转让)(万元)</view
  454. >
  455. <input
  456. style="color: #777; height: 80rpx; line-height: 80rpx"
  457. class="input_value float_left"
  458. placeholder="暂无"
  459. v-model="form.fourTransferenceAmount"
  460. />
  461. </view>
  462. <view
  463. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  464. >
  465. <view class="input_title float_left"
  466. >四技合同金额:<br />(服务)(万元)</view
  467. >
  468. <input
  469. style="color: #777; height: 80rpx; line-height: 80rpx"
  470. class="input_value float_left"
  471. placeholder="暂无"
  472. v-model="form.fourServiceAmount"
  473. />
  474. </view>
  475. <view
  476. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
  477. >
  478. <view class="input_title float_left">
  479. 四技合同金额:<br />(咨询)(万元)
  480. </view>
  481. <input
  482. style="color: #777"
  483. class="input_value float_left"
  484. placeholder="暂无"
  485. v-model="form.fourConsultAmount"
  486. />
  487. </view>
  488. <view
  489. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date"
  490. style="display: flex"
  491. @click="chosseAboutCompany()"
  492. >
  493. <view class="input_title float_left">关联企业:</view>
  494. <div style="color: #777; width: 60%" class="float_left">
  495. {{ form.associationCompanyName }}
  496. </div>
  497. </view>
  498. </div>
  499. </uni-collapse-item>
  500. </uni-collapse>
  501. </div>
  502. </div>
  503. <view class="‘btn-view‘">
  504. <button class="btn" @click="edit()">编辑</button>
  505. </view>
  506. <handle-report ref="handleReport" @changeActive="changeActive" />
  507. <select-dengjiren
  508. ref="selectDengjiren"
  509. :multiple="true"
  510. :range="range"
  511. :selectParent="true"
  512. :foldAll="true"
  513. rangeKey="name"
  514. idKey="id"
  515. @xiangmudengji="selectDengjiren"
  516. >
  517. </select-dengjiren>
  518. <multiple-select
  519. v-model="show"
  520. @getCompanyAll="getCompanyAll"
  521. :data="companyAllList"
  522. :default-selected="defaultSelected"
  523. @confirm="confirm"
  524. ref="multipleSelect"
  525. ></multiple-select>
  526. </div>
  527. </template>
  528. <script>
  529. const form = {
  530. id: "",
  531. YYZZFBZP: "../../../static/unuploadzhizhao.png",
  532. FRSFZHZM: "../../../static/idzhengmian.png",
  533. FRSFZHFM: "../../../static/idfanmian.png",
  534. frsfzh_zhenmian: "../../../static/idzhengmian.png",
  535. frsfzh_fanmian: "../../../static/idfanmian.png",
  536. RYXXZPList: [],
  537. id: "",
  538. qymc: "",
  539. shxydm: "",
  540. zczj: "",
  541. fddbr: "",
  542. lxdh: "",
  543. frsfzh: "",
  544. qylxr: "",
  545. lxdh: "",
  546. email: "",
  547. cwfzr: "",
  548. cwfzrdh: "",
  549. investmentManagerName: "",
  550. investmentManager: "",
  551. area: "",
  552. zcdz: "",
  553. jydz: "",
  554. ryxxzp: "",
  555. rdInvestment: "",
  556. jgInvestment: "",
  557. jgInvestment: "",
  558. fourOpennessAmount: "",
  559. fourTransferenceAmount: "",
  560. fourServiceAmount: "",
  561. fourConsultAmount: "",
  562. associationCompany: "",
  563. settleInType: "",
  564. frEmail: "",
  565. zscqgs: "",
  566. };
  567. import {
  568. getCompanyHouseDetails,
  569. getByCodes,
  570. companyECdit,
  571. interviewEscalationListAll,
  572. getSelectUserTwo,
  573. getCompanyAll,
  574. } from "@/js_sdk/http";
  575. // import multipleSelect from "../../subPackages/components/momo-multipleSelect/momo-multipleSelect";
  576. import multipleSelect from "./momo-multipleSelect.vue";
  577. import handleReport from "../companyreport/components/handlereport.vue";
  578. import selectDengjiren from "../../subPackages/components/select_dengjiren/tkitree.vue";
  579. import tools from "../../subPackages/components/tkitree/tools.js";
  580. export default {
  581. components: {
  582. handleReport,
  583. selectDengjiren,
  584. multipleSelect,
  585. },
  586. data() {
  587. return {
  588. show: false,
  589. bizhongIndex: null,
  590. BASE_URI: this.$constant.BASE_URI,
  591. range: [],
  592. companyAllList: [],
  593. settleInTypeIndex: null,
  594. id: "",
  595. interviewList: [],
  596. dic_key: [
  597. "MNP_BUILDING_TYPE",
  598. "SETTLE_IN_STATUS",
  599. "interviewType",
  600. "CURRENCY",
  601. ],
  602. dic_SelectList: {},
  603. activeNames: [],
  604. StatusBar: 0,
  605. search: {
  606. pageSize: 10,
  607. pageNum: 1,
  608. },
  609. form: {
  610. ...form,
  611. },
  612. value: true,
  613. value1: true,
  614. list: [],
  615. value: ["0"],
  616. modeIndex: -1,
  617. styleIndex: -1,
  618. current: 0,
  619. mode: "default",
  620. dotsStyles: {},
  621. swiperDotIndex: 0,
  622. };
  623. },
  624. onLoad(option) {
  625. this.id = option.id;
  626. this.getCompanyAll();
  627. this.getByCodes();
  628. },
  629. methods: {
  630. chosseAboutCompany() {
  631. this.show = true;
  632. this.$refs.multipleSelect.getAllList(this.companyAllList);
  633. },
  634. confirm(e) {
  635. console.log(e);
  636. var associationCompanyString = [];
  637. var associationCompany = [];
  638. for (var p in e) {
  639. associationCompanyString.push(e[p].label);
  640. associationCompany.push(e[p].value);
  641. }
  642. this.form.associationCompanyName = associationCompanyString.join(",");
  643. this.form.associationCompany = associationCompany.join(",");
  644. console.log(associationCompanyString.join(","));
  645. this.$forceUpdate();
  646. },
  647. async getCompanyAll() {
  648. let companyAllList = await getCompanyAll();
  649. this.companyAllList = companyAllList.map((e) => {
  650. return {
  651. label: e.qymc,
  652. value: e.id,
  653. };
  654. });
  655. },
  656. getBizhongtype(e) {
  657. let that = this;
  658. that.form.currency = that.dic_SelectList.CURRENCY[e.detail.value].value;
  659. that.bizhongIndex = e.detail.value;
  660. },
  661. uploadRYXXZP(event) {
  662. let that = this;
  663. const { file } = event.detail;
  664. uni.uploadFile({
  665. url: that.$constant.BASE_URI + "/wx/fileController/upload",
  666. filePath: file.url,
  667. name: "file",
  668. formData: { user: "test" },
  669. success(res) {
  670. // 上传完成需要更新 fileList
  671. let data = JSON.parse(res.data);
  672. that.form.RYXXZPList.push({
  673. imgUrl: "/FileController/download/" + data.data[0],
  674. id: data.data[0],
  675. url:
  676. that.$constant.BASE_URI +
  677. "/FileController/download/" +
  678. data.data[0],
  679. isImage: true,
  680. });
  681. that.$forceUpdate();
  682. },
  683. fail(res) {},
  684. });
  685. },
  686. splicefrsfzh_zhenmian() {
  687. this.form.frsfzh_zhenmian = form.FRSFZHZM;
  688. this.$forceUpdate();
  689. },
  690. splicefrsfzh_fanmian() {
  691. this.form.frsfzh_fanmian = form.FRSFZHFM;
  692. this.$forceUpdate();
  693. },
  694. choosefrsfzh_zhenmian() {
  695. let that = this;
  696. if (that.form.frsfzh_zhenmian == form.FRSFZHZM) {
  697. uni.chooseImage({
  698. count: 1, //默认9
  699. sizeType: "original", //可以指定是原图还是压缩图,默认二者都有
  700. success: function (res) {
  701. uni.uploadFile({
  702. url: that.$constant.BASE_URI + "/wx/fileController/upload",
  703. filePath: res.tempFilePaths[0],
  704. name: "file",
  705. formData: { user: "test" },
  706. success(res) {
  707. // 上传完成需要更新 fileList
  708. let data = JSON.parse(res.data);
  709. that.form.frsfzh_zhenmian = data.data[0];
  710. that.$forceUpdate();
  711. },
  712. fail(res) {},
  713. });
  714. },
  715. });
  716. } else {
  717. uni.previewImage({
  718. urls: [
  719. that.BASE_URI +
  720. "/FileController/download/" +
  721. that.form.frsfzh_zhenmian,
  722. ],
  723. longPressActions: {
  724. itemList: ["发送给朋友", "保存图片", "收藏"],
  725. success: function (data) {},
  726. fail: function (err) {},
  727. },
  728. });
  729. }
  730. },
  731. getZcsj: function (e) {
  732. this.form.zcsj = e.detail.value;
  733. },
  734. chooseYYZZFBZP() {
  735. let that = this;
  736. if (that.form.YYZZFBZP == "../../../static/unuploadzhizhao.png") {
  737. uni.chooseImage({
  738. count: 1, //默认9
  739. sizeType: "original", //可以指定是原图还是压缩图,默认二者都有
  740. success: function (res) {
  741. uni.uploadFile({
  742. url: that.$constant.BASE_URI + "/wx/fileController/upload",
  743. filePath: res.tempFilePaths[0],
  744. name: "file",
  745. formData: { user: "test" },
  746. success(res) {
  747. // 上传完成需要更新 fileList
  748. let data = JSON.parse(res.data);
  749. that.form.YYZZFBZP = data.data[0];
  750. that.$forceUpdate();
  751. },
  752. fail(res) {},
  753. });
  754. },
  755. });
  756. } else {
  757. uni.previewImage({
  758. urls: [
  759. this.BASE_URI + "/FileController/download/" + that.form.YYZZFBZP,
  760. ],
  761. longPressActions: {
  762. itemList: ["发送给朋友", "保存图片", "收藏"],
  763. success: function (data) {},
  764. fail: function (err) {},
  765. },
  766. });
  767. }
  768. },
  769. choosefrsfzh_fanmian() {
  770. let that = this;
  771. if (that.form.frsfzh_fanmian == form.FRSFZHFM) {
  772. uni.chooseImage({
  773. count: 1, //默认9
  774. sizeType: "original", //可以指定是原图还是压缩图,默认二者都有
  775. success: function (res) {
  776. uni.uploadFile({
  777. url: that.$constant.BASE_URI + "/wx/fileController/upload",
  778. filePath: res.tempFilePaths[0],
  779. name: "file",
  780. formData: { user: "test" },
  781. success(res) {
  782. // 上传完成需要更新 fileList
  783. let data = JSON.parse(res.data);
  784. that.form.frsfzh_fanmian = data.data[0];
  785. that.$forceUpdate();
  786. },
  787. fail(res) {},
  788. });
  789. },
  790. });
  791. } else {
  792. uni.previewImage({
  793. urls: [
  794. that.BASE_URI +
  795. "/FileController/download/" +
  796. that.form.frsfzh_fanmian,
  797. ],
  798. longPressActions: {
  799. itemList: ["发送给朋友", "保存图片", "收藏"],
  800. success: function (data) {},
  801. fail: function (err) {},
  802. },
  803. });
  804. }
  805. },
  806. checkFormValue() {
  807. let that = this;
  808. if (that.form.zcsj == "") {
  809. that.$showToast("请选择注册时间");
  810. return false;
  811. }
  812. if (that.form.qymc == "" || !that.form.qymc) {
  813. that.$showToast("请输入企业名称");
  814. return false;
  815. }
  816. if (that.form.shxydm == "" || !that.form.shxydm) {
  817. that.$showToast("请输入社会统一信用代码");
  818. return false;
  819. }
  820. if (that.form.qylxr == "" || !that.form.qylxr) {
  821. that.$showToast("请输入企业联系人");
  822. return false;
  823. }
  824. if (that.form.email == "" || !that.form.email) {
  825. that.$showToast("请输入企业邮箱");
  826. return false;
  827. }
  828. if (that.form.cwfzr == "" || !that.form.cwfzr) {
  829. that.$showToast("请输入财务负责人");
  830. return false;
  831. }
  832. if (that.form.cwfzrdh == "" || !that.form.cwfzrdh) {
  833. that.$showToast("请输入负责人电话");
  834. return false;
  835. }
  836. return true;
  837. },
  838. selectDengjiren(e) {
  839. var names = [];
  840. var ids = [];
  841. for (var p in e) {
  842. if (e[p].type == "u") {
  843. names.push(e[p].name);
  844. ids.push(e[p].id);
  845. }
  846. }
  847. this.form.investmentManagerName = names.join(",");
  848. this.form.investmentManager = ids.join(",");
  849. },
  850. async edit() {
  851. let that = this;
  852. if (!that.changeActive()) return;
  853. let formData = {
  854. id: that.form.id,
  855. qymc: that.form.qymc,
  856. shxydm: that.form.shxydm,
  857. zczj: that.form.zczj ? that.form.zczj : 0,
  858. fddbr: that.form.fddbr,
  859. lxdh: that.form.lxdh,
  860. frsfzh: that.form.frsfzh_zhenmian + "," + that.form.frsfzh_fanmian,
  861. qylxr: that.form.qylxr,
  862. lxdh: that.form.lxdh,
  863. email: that.form.email,
  864. cwfzr: that.form.cwfzr,
  865. cwfzrdh: that.form.cwfzrdh,
  866. investmentManagerName: that.form.investmentManagerName,
  867. investmentManager: that.form.investmentManager,
  868. area: that.form.area,
  869. zcdz: that.form.zcdz,
  870. jydz: that.form.jydz,
  871. ryxxzp: that.form.ryxxzp,
  872. rdInvestment: that.form.rdInvestment,
  873. jgInvestment: that.form.jgInvestment,
  874. jgInvestment: that.form.jgInvestment,
  875. fourOpennessAmount: that.form.fourOpennessAmount,
  876. fourTransferenceAmount: that.form.fourTransferenceAmount,
  877. fourServiceAmount: that.form.fourServiceAmount,
  878. fourConsultAmount: that.form.fourConsultAmount,
  879. associationCompany: that.form.associationCompany,
  880. settleInType: that.form.settleInType,
  881. zscqgs: !that.form.zscqgs ? 0 : that.form.zscqgs,
  882. frEmail: that.form.frEmail,
  883. };
  884. let RYXXZP = [];
  885. if (that.form.RYXXZPList.length > 0) {
  886. RYXXZP = that.form.RYXXZPList.map((e) => e.id);
  887. }
  888. formData.ryxxzp = RYXXZP.toString();
  889. let zm =
  890. that.form.frsfzh_zhenmian == form.FRSFZHZM
  891. ? ""
  892. : that.form.frsfzh_zhenmian;
  893. let fm =
  894. that.form.frsfzh_fanmian == form.FRSFZHFM
  895. ? ""
  896. : that.form.frsfzh_fanmian;
  897. that.form.yyzzfbzp = that.form.YYZZFBZP;
  898. formData.frsfzh = zm + "," + fm;
  899. if (!formData.rdInvestment) delete formData.rdInvestment;
  900. if (!formData.jgInvestment) delete formData.jgInvestment;
  901. if (!formData.fourOpennessAmount) delete formData.fourOpennessAmount;
  902. if (!formData.fourTransferenceAmount)
  903. delete formData.fourTransferenceAmount;
  904. if (!formData.fourServiceAmount) delete formData.fourServiceAmount;
  905. if (!formData.fourConsultAmount) delete formData.fourConsultAmount;
  906. let data = await companyECdit(formData);
  907. if (data.code == 200) {
  908. this.$showToast("修改成功");
  909. uni.navigateBack({});
  910. }
  911. },
  912. async getSelectUserTwo(key) {
  913. let that = this;
  914. let departmentList = await getSelectUserTwo("");
  915. that.range = tools.transData(
  916. departmentList.data,
  917. "id",
  918. "parentid",
  919. "children"
  920. );
  921. that.$refs[key]._show();
  922. },
  923. jumpEditCompanyDetails(e) {
  924. // uni.navigateTo({
  925. // url
  926. // })
  927. },
  928. jumpChosseTags() {
  929. uni.navigateTo({
  930. url: "/pages/subPackages/chooseCompanyTags/index",
  931. });
  932. },
  933. openHandleReportDialog(item) {
  934. let that = this;
  935. that.$refs.handleReport.openDianlog(item);
  936. },
  937. getSettleInType(e) {
  938. let that = this;
  939. that.form.settleInType =
  940. that.dic_SelectList.MNP_BUILDING_TYPE[e.detail.value].value;
  941. that.settleInTypeIndex = e.detail.value;
  942. },
  943. getDicTypeZoufang(value) {
  944. if (!value) return;
  945. let interviewType = this.dic_SelectList.interviewType;
  946. let index = interviewType.findIndex((e) => e.value == value);
  947. if (index != -1) return interviewType[index].label;
  948. },
  949. getDicType(type, value) {
  950. if (type == "type" && this.dic_SelectList.MNP_BUILDING_TYPE) {
  951. let MNP_BUILDING_TYPE = this.dic_SelectList.MNP_BUILDING_TYPE;
  952. let index = MNP_BUILDING_TYPE.findIndex((e) => e.value == value);
  953. if (index != -1) return MNP_BUILDING_TYPE[index].label;
  954. else return "暂无";
  955. }
  956. if (type == "zt" && this.dic_SelectList.SETTLE_IN_STATUS) {
  957. let SETTLE_IN_STATUS = this.dic_SelectList.SETTLE_IN_STATUS;
  958. let index = SETTLE_IN_STATUS.findIndex((e) => e.value == value);
  959. if (index != -1) return SETTLE_IN_STATUS[index].label;
  960. else return "暂无";
  961. }
  962. },
  963. async getByCodes() {
  964. this.search.pageNum = 1;
  965. let data = await getByCodes(JSON.stringify(this.dic_key));
  966. this.dic_SelectList = this.$common.handleDicList(data);
  967. this.getCompanyHouseDetails(this.id);
  968. },
  969. async changeActive() {
  970. let interviewList = await interviewEscalationListAll(this.id);
  971. this.interviewList = interviewList;
  972. },
  973. selectItems(e) {
  974. this.$nextTick(() => {
  975. this.$refs.collapse.resize();
  976. });
  977. },
  978. async getCompanyHouseDetails(e) {
  979. let that = this;
  980. try {
  981. let detail = await getCompanyHouseDetails(e);
  982. let index = that.dic_SelectList.MNP_BUILDING_TYPE.findIndex(
  983. (e) => e.value == detail.data.settleInType
  984. );
  985. that.settleInTypeIndex = index;
  986. that.form = detail.data;
  987. that.form.associationCompany = that.form.associationCompany.split(",");
  988. if (detail.data.ryxxzp.length > 0) {
  989. let ryxxzp = detail.data.ryxxzp.split(",");
  990. // this.form.RYXXZPList
  991. that.form.RYXXZPList = ryxxzp.map((e) => {
  992. return {
  993. imgUrl: "/FileController/download/" + e,
  994. id: e,
  995. url: that.$constant.BASE_URI + "/FileController/download/" + e,
  996. isImage: true,
  997. };
  998. });
  999. } else {
  1000. that.form.RYXXZPList = [];
  1001. }
  1002. try {
  1003. let bizhongIndex = this.dic_SelectList.CURRENCY.findIndex(
  1004. (e) => e.value == detail.data.currency
  1005. );
  1006. that.bizhongIndex = bizhongIndex == -1 ? null : bizhongIndex;
  1007. } catch (error) {}
  1008. that.form.YYZZFBZP =
  1009. !detail.data.yyzzfbzp || detail.data.yyzzfbzp == "undefined"
  1010. ? form.YYZZFBZP
  1011. : detail.data.yyzzfbzp;
  1012. if (detail.data.frsfzh.length > 0 && detail.data.frsfzh != ",") {
  1013. let sfzlist = detail.data.frsfzh.split(",");
  1014. that.form.frsfzh_fanmian = sfzlist[0];
  1015. that.form.frsfzh_zhenmian = sfzlist[1];
  1016. } else {
  1017. that.form.frsfzh_fanmian = form.FRSFZHFM;
  1018. that.form.frsfzh_zhenmian = form.FRSFZHZM;
  1019. }
  1020. } catch (error) {}
  1021. },
  1022. onChange(event) {
  1023. this.activeNames = event.detail;
  1024. },
  1025. },
  1026. };
  1027. </script>
  1028. <style scoped lang="scss">
  1029. .dengjibutton {
  1030. margin-top: 24rpx;
  1031. margin-left: 60rpx;
  1032. margin-right: 60rpx;
  1033. width: calc(100% - 120rpx);
  1034. height: 60rpx;
  1035. text-align: center;
  1036. background: #1d18bc;
  1037. color: white;
  1038. line-height: 60rpx;
  1039. }
  1040. .housedetailsedit {
  1041. margin-bottom: 200rpx;
  1042. }
  1043. .housedetailsedit {
  1044. .btn-view {
  1045. width: 100%;
  1046. height: 100rpx;
  1047. padding: 20rpx 10%;
  1048. background-color: #ffffff;
  1049. position: fixed;
  1050. bottom: 0;
  1051. z-index: 100;
  1052. left: 0;
  1053. }
  1054. .btn {
  1055. width: 80%;
  1056. height: 90rpx;
  1057. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1058. background: #1d18bc;
  1059. line-height: 90rpx;
  1060. color: white;
  1061. }
  1062. .detailstitle {
  1063. height: 42rpx;
  1064. font-size: 30rpx;
  1065. font-weight: 500;
  1066. color: #333333;
  1067. padding-bottom: 16rpx;
  1068. }
  1069. .typestitle {
  1070. height: 42rpx;
  1071. font-size: 24rpx;
  1072. font-weight: 500;
  1073. padding-bottom: 16rpx;
  1074. margin-bottom: 16rpx;
  1075. }
  1076. }
  1077. </style>
  1078. <style lang="scss">
  1079. ::v-deep .is-open + .uni-collapse-item__wrap {
  1080. height: auto !important;
  1081. }
  1082. ::v-deep .uni-collapse-item__wrap-content {
  1083. height: auto !important;
  1084. }
  1085. .pageconfig {
  1086. background: #ffffff;
  1087. padding: 32rpx;
  1088. }
  1089. .input_title {
  1090. width: 40%;
  1091. font-size: 28rpx;
  1092. height: 40rpx;
  1093. line-height: 40rpx;
  1094. color: #333333;
  1095. }
  1096. .input_value {
  1097. width: 60%;
  1098. font-size: 28rpx;
  1099. height: 40rpx;
  1100. line-height: 40rpx;
  1101. color: #777777;
  1102. }
  1103. .uni-collapse-item__title-box {
  1104. padding: 0 !important;
  1105. }
  1106. .uni-collapse-item__title-text {
  1107. color: #1d18bc !important;
  1108. font-size: 32rpx !important;
  1109. }
  1110. .idclass {
  1111. width: 147rpx;
  1112. height: 100rpx;
  1113. }
  1114. </style>