companyDetailsEdit.vue 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637
  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. <input
  242. style="color: #777"
  243. class="input_value float_left"
  244. placeholder="请输入"
  245. v-model="form.otherContact"
  246. />
  247. </view>
  248. <view
  249. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  250. >
  251. <view class="input_title float_left">股票代码:</view>
  252. <input
  253. style="color: #777"
  254. class="input_value float_left"
  255. placeholder="请输入"
  256. v-model="form.shareCertificateCode"
  257. />
  258. </view>
  259. <view
  260. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  261. >
  262. <view class="input_title float_left">土地面积:</view>
  263. <input
  264. style="color: #777"
  265. class="input_value float_left"
  266. placeholder="请输入"
  267. v-model="form.leaseArea"
  268. />
  269. </view>
  270. <view
  271. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  272. >
  273. <view class="input_title float_left">入驻类型</view>
  274. <picker
  275. style="float: left; width: 300rpx; height: 40rpx; color: #777"
  276. @change="getSettleInType"
  277. range-key="label"
  278. :range="dic_SelectList.MNP_BUILDING_TYPE"
  279. >
  280. <span>
  281. {{
  282. settleInTypeIndex != -1
  283. ? dic_SelectList.MNP_BUILDING_TYPE[settleInTypeIndex]
  284. .label
  285. : "请选择"
  286. }}
  287. </span>
  288. </picker>
  289. </view>
  290. <view
  291. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  292. >
  293. <view
  294. class="input_title float_left"
  295. @click="getSelectUserTwo('selectDengjiren')"
  296. >招商经理:</view
  297. >
  298. <input
  299. @click="getSelectUserTwo('selectDengjiren')"
  300. disabled="true"
  301. style="color: #777"
  302. class="input_value float_left"
  303. placeholder="暂无"
  304. v-model="form.investmentManagerName"
  305. />
  306. </view>
  307. <view
  308. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  309. >
  310. <view class="input_title float_left">所属楼盘:</view>
  311. <input
  312. style="color: #777"
  313. class="input_value float_left"
  314. placeholder="暂无"
  315. v-model="form.areaName"
  316. />
  317. </view>
  318. <view
  319. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  320. >
  321. <view class="input_title float_left">注册地址:</view>
  322. <input
  323. style="color: #777"
  324. class="input_value float_left"
  325. placeholder="暂无"
  326. v-model="form.zcdz"
  327. />
  328. </view>
  329. <!-- <view
  330. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
  331. >
  332. <view class="input_title float_left">经营地址:</view>
  333. <input
  334. style="color: #777"
  335. class="input_value float_left"
  336. placeholder="暂无"
  337. v-model="form.jydz"
  338. />
  339. </view> -->
  340. <view
  341. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height300rpxs"
  342. >
  343. <view class="input_title float_left">荣誉信息(限6张)</view>
  344. <textarea
  345. :maxlength="2000"
  346. placeholder="请输入"
  347. v-model="form.honorInformation"
  348. type="textarea"
  349. style="
  350. height: 270rpx;
  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. margin-bottom: 10rpx;
  363. "
  364. >
  365. {{
  366. form.honorInformation ? form.honorInformation.length : 0
  367. }}/2000
  368. </div>
  369. <view class="custom-image-box" style="margin-top: 20rpx">
  370. <van-uploader
  371. :max-count="6"
  372. @delete="deleteRYXXZP"
  373. :file-list="form.RYXXZPList"
  374. @after-read="uploadRYXXZP"
  375. :show-upload="true"
  376. />
  377. </view>
  378. </view>
  379. <view
  380. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date"
  381. style="display: flex"
  382. >
  383. <view class="input_title mb16rpx float_left" style="width: 30%"
  384. >经营范围:</view
  385. >
  386. <div style="width: 100%">
  387. <div
  388. style="display: flex; justify-self: flex-end"
  389. v-for="(item, index) in form.jyfwAry"
  390. :key="index"
  391. >
  392. <input
  393. style="color: #050505; width: 80%"
  394. class="input_value"
  395. placeholder="请输入"
  396. v-model="item.name"
  397. />
  398. <van-button
  399. v-if="index == 0"
  400. type="default"
  401. size="small"
  402. color="#1f1fbe"
  403. @click="addJyfw()"
  404. >添加</van-button
  405. >
  406. <van-button
  407. v-if="index != 0"
  408. type="default"
  409. size="small"
  410. color="rgba(236, 128, 141, 1)"
  411. @click="deleteJyfw(index)"
  412. >删除</van-button
  413. >
  414. </div>
  415. </div>
  416. </view>
  417. <view class="width100 mt24rpx list_date height40rpx">
  418. <view class="input_title float_left" style="width: 100%"
  419. >营业执照副本:(限1张)</view
  420. >
  421. </view>
  422. <view class="custom-image-box" style="position: relative">
  423. <van-icon
  424. v-if="form.YYZZFBZP"
  425. @click="spliceYYZZFBZP()"
  426. name="cross"
  427. style="
  428. position: absolute;
  429. top: 0;
  430. left: 282rpx;
  431. font-size: 42rpx;
  432. "
  433. />
  434. <img
  435. v-if="form.YYZZFBZP"
  436. @click="chooseYYZZFBZP()"
  437. :src="BASE_URI + '/FileController/download/' + form.YYZZFBZP"
  438. style="color: #777; width: 300rpx; height: 260rpx"
  439. placeholder="请输入"
  440. />
  441. <img
  442. v-else
  443. @click="chooseYYZZFBZP()"
  444. src="../../../static/unuploadzhizhao.png"
  445. style="color: #777; width: 300rpx; height: 260rpx"
  446. placeholder="请输入"
  447. />
  448. </view>
  449. <view
  450. class="width100 mt24rpx padb24rpx border_bottom_ccc list_date"
  451. style="display: flex"
  452. @click="chosseAboutCompany()"
  453. >
  454. <view class="input_title float_left">关联企业:</view>
  455. <div style="color: #777; width: 60%" class="float_left">
  456. {{
  457. form.associationCompanyName
  458. ? form.associationCompanyName
  459. : "请选择"
  460. }}
  461. </div>
  462. </view>
  463. <div class="form border_bottom_ccc">
  464. <div class="width100 mt24rpx padb24rpx list_date">附件:</div>
  465. <div
  466. class="width100 mt24rpx padb24rpx list_date _div data-v-6c6f8f24"
  467. >
  468. <div class="fujian">
  469. <van-uploader
  470. accept="all"
  471. :max-count="6"
  472. :file-list="form.fileList"
  473. @after-read="uploadFileList"
  474. :show-upload="false"
  475. >
  476. <van-button
  477. type="primary"
  478. size="small"
  479. style="margin-bottom: 15rpx"
  480. >文件选择</van-button
  481. >
  482. </van-uploader>
  483. <div
  484. @click="openFile(item)"
  485. class="file"
  486. v-for="(item, index) in form.fileList"
  487. :key="index"
  488. >
  489. <div class="filename">{{ item.name }}</div>
  490. <uni-icons
  491. type="closeempty"
  492. size="20"
  493. @click="deleteFileList(index)"
  494. ></uni-icons>
  495. </div>
  496. </div>
  497. </div>
  498. <div class="first_title" style="height: auto">
  499. 关联社会载体:
  500. </div>
  501. <div
  502. class="form_row pdt32 pdb32 border_bottom_ccc width100"
  503. style="display: flex; height: auto; align-items: center"
  504. >
  505. <div class="width30 first_title" style="height: auto">
  506. 自有:
  507. </div>
  508. <div
  509. @click="jumpChosseHouse('自有')"
  510. style="width: 65%"
  511. class="float_left font28rpx color292d98"
  512. >
  513. {{
  514. form.socialCarrierStrName
  515. ? form.socialCarrierStrName
  516. : "请选择"
  517. }}
  518. </div>
  519. <img
  520. @click="jumpChosseHouse('自有')"
  521. class="height40rpx width40rpx"
  522. src="../../../static/mine/youjiantou.png"
  523. alt=""
  524. />
  525. </div>
  526. <div
  527. class="form_row pdt32 pdb32 border_bottom_ccc width100"
  528. style="display: flex; height: auto; align-items: center"
  529. >
  530. <div class="width30 first_title" style="height: auto">
  531. 租赁:
  532. </div>
  533. <div
  534. @click="jumpChosseHouse('租赁')"
  535. style="width: 65%"
  536. class="float_left font28rpx color292d98"
  537. >
  538. {{
  539. form.socialCarrierLeaseStrName
  540. ? form.socialCarrierLeaseStrName
  541. : "请选择"
  542. }}
  543. </div>
  544. <img
  545. @click="jumpChosseHouse('租赁')"
  546. class="height40rpx width40rpx"
  547. src="../../../static/mine/youjiantou.png"
  548. alt=""
  549. />
  550. </div>
  551. <div
  552. class="form_row pdt32 pdb32 border_bottom_ccc width100"
  553. style="display: flex; height: auto; align-items: center"
  554. >
  555. <div class="width30 first_title" style="height: auto">
  556. 未确定:
  557. </div>
  558. <div
  559. @click="jumpChosseHouse('未确定')"
  560. style="width: 65%"
  561. class="float_left font28rpx color292d98"
  562. >
  563. {{
  564. form.socialCarrierNoTrueName
  565. ? form.socialCarrierNoTrueName
  566. : "请选择"
  567. }}
  568. </div>
  569. <img
  570. @click="jumpChosseHouse('未确定')"
  571. class="height40rpx width40rpx"
  572. src="../../../static/mine/youjiantou.png"
  573. alt=""
  574. />
  575. </div>
  576. <div
  577. class="first_title"
  578. style="height: auto; margin-top: 32rpx"
  579. >
  580. 关联自有载体:
  581. </div>
  582. <div
  583. class="form_row pdt32 pdb32 border_bottom_ccc width100"
  584. style="display: flex; height: auto"
  585. >
  586. <div class="width30 first_title">有合同</div>
  587. <div
  588. style="width: 60%"
  589. class="float_left font28rpx color292d98"
  590. >
  591. {{ form.socialCarrierName }}
  592. </div>
  593. </div>
  594. <div
  595. class="form_row pdt32 pdb32 border_bottom_ccc width100"
  596. style="display: flex; height: auto; align-items: center"
  597. >
  598. <div class="width30 first_title" style="height: auto">
  599. 无合同:
  600. </div>
  601. <div
  602. @click="jumpChosseHouse('无合同')"
  603. style="width: 65%"
  604. class="float_left font28rpx color292d98"
  605. >
  606. {{
  607. form.contractCarrierNoStrName
  608. ? form.contractCarrierNoStrName
  609. : "请选择"
  610. }}
  611. </div>
  612. <img
  613. @click="jumpChosseHouse('无合同')"
  614. class="height40rpx width40rpx"
  615. src="../../../static/mine/youjiantou.png"
  616. alt=""
  617. />
  618. </div>
  619. </div>
  620. </div>
  621. <div class="form">
  622. <!-- <div
  623. style="height: 45px; width: 500px; background: black"
  624. ></div> -->
  625. </div>
  626. </uni-collapse-item>
  627. </uni-collapse>
  628. </div>
  629. </div>
  630. <view class="‘btn-view‘">
  631. <div class="btn" @click="edit()">编辑</div>
  632. </view>
  633. <handle-report ref="handleReport" @changeActive="changeActive" />
  634. <select-dengjiren
  635. ref="selectDengjiren"
  636. :multiple="true"
  637. :range="range"
  638. :selectParent="true"
  639. :foldAll="true"
  640. rangeKey="name"
  641. idKey="id"
  642. @xiangmudengji="selectDengjiren"
  643. >
  644. </select-dengjiren>
  645. <multiple-select
  646. v-model="show"
  647. @getCompanyAll="getCompanyAll"
  648. :data="companyAllList"
  649. :default-selected="defaultSelected"
  650. @confirm="confirm"
  651. ref="multipleSelect"
  652. ></multiple-select>
  653. <zaiti-tree
  654. ref="zaitiTree"
  655. :multiple="true"
  656. :range="range"
  657. :selectParent="true"
  658. :foldAll="true"
  659. rangeKey="label"
  660. idKey="id"
  661. @confirm="selectZaiti"
  662. />
  663. </div>
  664. </template>
  665. <script>
  666. const form = {
  667. id: "",
  668. YYZZFBZP: null,
  669. FRSFZHZM: "../../../static/idzhengmian.png",
  670. FRSFZHFM: "../../../static/idfanmian.png",
  671. frsfzh_zhenmian: "../../../static/idzhengmian.png",
  672. frsfzh_fanmian: "../../../static/idfanmian.png",
  673. RYXXZPList: [],
  674. id: "",
  675. qymc: "",
  676. shxydm: "",
  677. zczj: "",
  678. fddbr: "",
  679. lxdh: "",
  680. frsfzh: "",
  681. qylxr: "",
  682. lxdh: "",
  683. email: "",
  684. cwfzr: "",
  685. cwfzrdh: "",
  686. investmentManagerName: "",
  687. investmentManager: "",
  688. area: "",
  689. zcdz: "",
  690. jydz: "",
  691. ryxxzp: "",
  692. rdInvestment: "",
  693. jgInvestment: "",
  694. jgInvestment: "",
  695. fourOpennessAmount: "",
  696. fourTransferenceAmount: "",
  697. fourServiceAmount: "",
  698. fourConsultAmount: "",
  699. associationCompany: "",
  700. settleInType: "",
  701. frEmail: "",
  702. zscqgs: "",
  703. fileLists: [],
  704. file: "",
  705. };
  706. import {
  707. getCompanyHouseDetails,
  708. getByCodes,
  709. companyECdit,
  710. interviewEscalationListAll,
  711. getSelectUserTwo,
  712. getCompanyAll,
  713. selectByCompanyId,
  714. getTreeData6,
  715. findRoomInfoListByIds,
  716. getRoomNameByCompanyId,
  717. } from "@/js_sdk/http";
  718. // import multipleSelect from "../../subPackages/components/momo-multipleSelect/momo-multipleSelect";
  719. import multipleSelect from "./momo-multipleSelect.vue";
  720. import zaitiTree from "@/components/zaiti-tree/index.vue";
  721. import handleReport from "../companyreport/components/handlereport.vue";
  722. import selectDengjiren from "../../subPackages/components/select_dengjiren/tkitree.vue";
  723. import tools from "../../subPackages/components/tkitree/tools.js";
  724. export default {
  725. components: {
  726. handleReport,
  727. selectDengjiren,
  728. multipleSelect,
  729. zaitiTree,
  730. },
  731. data() {
  732. return {
  733. show: false,
  734. bizhongIndex: null,
  735. BASE_URI: this.$constant.BASE_URI,
  736. range: [],
  737. companyAllList: [],
  738. settleInTypeIndex: null,
  739. id: "",
  740. interviewList: [],
  741. dic_key: [
  742. "MNP_BUILDING_TYPE",
  743. "SETTLE_IN_STATUS",
  744. "interviewType",
  745. "CURRENCY",
  746. ],
  747. dic_SelectList: {},
  748. activeNames: [],
  749. StatusBar: 0,
  750. search: {
  751. pageSize: 10,
  752. pageNum: 1,
  753. },
  754. form: {
  755. ...form,
  756. },
  757. value: true,
  758. value1: true,
  759. list: [],
  760. value: ["0"],
  761. modeIndex: -1,
  762. styleIndex: -1,
  763. current: 0,
  764. mode: "default",
  765. dotsStyles: {},
  766. swiperDotIndex: 0,
  767. };
  768. },
  769. onShow() {
  770. let that = this;
  771. uni.$on("getuser", function (e) {
  772. console.log(e);
  773. findRoomInfoListByIds(e.result.join(",")).then((data) => {
  774. let roomString = data.map((e) => {
  775. return e.roomString;
  776. });
  777. let ids = data.map((e) => {
  778. return e.id;
  779. });
  780. if (e.housetype == "自有") {
  781. that.form.socialCarrierStr = ids.join(",");
  782. that.form.socialCarrierStrName = roomString.join(",");
  783. console.log(roomString);
  784. }
  785. if (e.housetype == "租赁") {
  786. that.form.socialCarrierLeaseStr = ids.join(",");
  787. that.form.socialCarrierLeaseStrName = roomString.join(",");
  788. console.log(roomString);
  789. }
  790. if (e.housetype == "未确定") {
  791. that.form.socialCarrierNoTrue = ids.join(",");
  792. that.form.socialCarrierNoTrueName = roomString.join(",");
  793. console.log(roomString);
  794. }
  795. if (e.housetype == "无合同") {
  796. that.form.contractCarrierNoStr = ids.join(",");
  797. that.form.contractCarrierNoStrName = roomString.join(",");
  798. console.log("无合同", roomString);
  799. }
  800. });
  801. });
  802. },
  803. onLoad(option) {
  804. this.id = option.id;
  805. this.getCompanyAll();
  806. this.getByCodes();
  807. },
  808. methods: {
  809. openFile(item) {
  810. uni.downloadFile({
  811. url: item.url,
  812. success: function (res) {
  813. var filePath = res.tempFilePath;
  814. console.log("下载文件:", res);
  815. uni.openDocument({
  816. filePath: filePath,
  817. success: function (res) {
  818. console.log("打开文档成功");
  819. },
  820. fail: function (res) {
  821. console.log("uni.openDocument,fail");
  822. console.log(res);
  823. },
  824. complete: function (res) {
  825. console.log("uni.openDocument,complete");
  826. console.log(res);
  827. },
  828. });
  829. },
  830. fail: function (res) {
  831. console.log("uni.downloadFile,fail");
  832. console.log(res);
  833. },
  834. complete: function (res) {
  835. console.log("uni.downloadFile,complete");
  836. console.log(res);
  837. },
  838. });
  839. console.log(item);
  840. },
  841. jumpChosseHouse(e) {
  842. uni.navigateTo({
  843. url: "/pages/subPackages/chosseHouse/chosseHouse?housetype=" + e,
  844. });
  845. },
  846. spliceYYZZFBZP() {
  847. console.log("this.form.YYZZFBZP", this.form.YYZZFBZP);
  848. this.form.YYZZFBZP = null;
  849. this.form = { ...this.form };
  850. console.log("form.YYZZFBZP", this.form.YYZZFBZP);
  851. },
  852. async selectZaiti(e) {
  853. console.log(e);
  854. let ids = [];
  855. let names = [];
  856. for (let i = 0; i < e.length; i++) {
  857. ids.push(e[i].id);
  858. names.push(e[i].label);
  859. }
  860. // socialCarrierName
  861. // let selectedList = await selectByCom
  862. this.form.socialCarrierStr = ids.join(",");
  863. this.form.socialCarrierName = names.join(",");
  864. // console.log(selectedList);
  865. // this.form.investmentManagerString = names.join(",");
  866. // this.form.investmentManager = ids.join(",");
  867. },
  868. async openZaitiTree(key) {
  869. let that = this;
  870. let departmentList = await getTreeData6("");
  871. that.range = tools.transData(
  872. departmentList.data,
  873. "id",
  874. "parentid",
  875. "children"
  876. );
  877. that.$refs.zaitiTree._show();
  878. },
  879. async selectByCompanyId1() {
  880. let zaiti = await selectByCompanyId({ companyId: this.id });
  881. console.log("zaitizaitizaitizaiti", zaiti);
  882. let socialCarrierStr = [];
  883. let socialCarrierStrName = [];
  884. let socialCarrierLeaseStr = [];
  885. let socialCarrierLeaseStrName = [];
  886. let socialCarrierNoTrue = [];
  887. let socialCarrierNoTrueName = [];
  888. let contractCarrierNoStr = [];
  889. let contractCarrierNoStrName = [];
  890. for (let i = 0; i < zaiti.length; i++) {
  891. let item = zaiti[i];
  892. console.log(item.propertyNature, item.socialType);
  893. if (item.propertyNature === "2" && item.socialType === "1") {
  894. socialCarrierStr.push(item.houseId);
  895. socialCarrierStrName.push(
  896. item.discName + item.groupName + item.buildName + item.houseName
  897. );
  898. }
  899. if (item.propertyNature === "2" && item.socialType === "2") {
  900. socialCarrierLeaseStr.push(item.houseId);
  901. socialCarrierLeaseStrName.push(
  902. item.discName + item.groupName + item.buildName + item.houseName
  903. );
  904. }
  905. if (item.propertyNature === "2" && item.socialType === "3") {
  906. socialCarrierNoTrue.push(item.houseId);
  907. socialCarrierNoTrueName.push(
  908. item.discName + item.groupName + item.buildName + item.houseName
  909. );
  910. }
  911. if (item.propertyNature === "1" && item.ownType === "2") {
  912. contractCarrierNoStr.push(item.houseId);
  913. contractCarrierNoStrName.push(
  914. item.discName + item.groupName + item.buildName + item.houseName
  915. );
  916. }
  917. }
  918. this.form.socialCarrierStr = socialCarrierStr.join(",");
  919. this.form.socialCarrierStrName = socialCarrierStrName.join(",");
  920. this.form.socialCarrierLeaseStr = socialCarrierLeaseStr.join(",");
  921. this.form.socialCarrierLeaseStrName = socialCarrierLeaseStrName.join(",");
  922. this.form.socialCarrierNoTrue = socialCarrierNoTrue.join(",");
  923. this.form.socialCarrierNoTrueName = socialCarrierNoTrueName.join(",");
  924. this.form.contractCarrierNoStr = contractCarrierNoStr.join(",");
  925. this.form.contractCarrierNoStrName = contractCarrierNoStrName.join(",");
  926. },
  927. async getRoomNameByCompanyId() {
  928. let socialCarrierName = await getRoomNameByCompanyId({
  929. companyId: this.id,
  930. });
  931. this.form.socialCarrierName = socialCarrierName;
  932. },
  933. addJyfw() {
  934. console.log(this.form.jyfwAry);
  935. this.form.jyfwAry = [...this.form.jyfwAry, { name: "" }];
  936. this.$forceUpdate();
  937. },
  938. deleteJyfw(i) {
  939. this.form.jyfwAry.splice(i, 1);
  940. },
  941. chosseAboutCompany() {
  942. console.log(123);
  943. try {
  944. this.show = true;
  945. this.$refs.multipleSelect.getAllList(this.companyAllList);
  946. } catch (error) {
  947. console.log("error", error);
  948. }
  949. },
  950. confirm(e) {
  951. console.log(e);
  952. var associationCompanyString = [];
  953. var associationCompany = [];
  954. for (var p in e) {
  955. associationCompanyString.push(e[p].label);
  956. associationCompany.push(e[p].value);
  957. }
  958. this.form.associationCompanyName = associationCompanyString.join(",");
  959. this.form.associationCompany = associationCompany.join(",");
  960. console.log(associationCompanyString.join(","));
  961. this.$forceUpdate();
  962. },
  963. async getCompanyAll() {
  964. let companyAllList = await getCompanyAll();
  965. this.companyAllList = companyAllList.map((e) => {
  966. return {
  967. label: e.qymc,
  968. value: e.id,
  969. };
  970. });
  971. },
  972. deleteFileList(i) {
  973. this.form.fileList.splice(i, 1);
  974. },
  975. uploadFileList(event) {
  976. let that = this;
  977. that.form.fileList = !that.form.fileList ? [] : that.form.fileList;
  978. const { file } = event.detail;
  979. uni.uploadFile({
  980. url: that.$constant.BASE_URI + "/wx/fileController/upload2",
  981. filePath: file.url,
  982. name: "file",
  983. formData: { user: "test" },
  984. success(res) {
  985. try {
  986. // 上传完成需要更新 fileList
  987. let { data } = JSON.parse(res.data);
  988. console.log(data);
  989. let name = JSON.parse(data[0]).name;
  990. let size = JSON.parse(data[0]).size;
  991. that.form.fileList.push({
  992. name: name,
  993. size: size,
  994. imgUrl: "/FileController/download/" + data[1],
  995. id: data[1],
  996. url:
  997. that.$constant.BASE_URI + "/FileController/download/" + data[1],
  998. });
  999. console.log("that.form.fileList", that.form.fileList);
  1000. that.form = { ...that.form };
  1001. } catch (error) {
  1002. console.log(error);
  1003. }
  1004. },
  1005. fail(res) {},
  1006. });
  1007. },
  1008. getBizhongtype(e) {
  1009. let that = this;
  1010. that.form.currency = that.dic_SelectList.CURRENCY[e.detail.value].value;
  1011. that.bizhongIndex = e.detail.value;
  1012. },
  1013. uploadRYXXZP(event) {
  1014. let that = this;
  1015. const { file } = event.detail;
  1016. uni.uploadFile({
  1017. url: that.$constant.BASE_URI + "/wx/fileController/upload",
  1018. filePath: file.url,
  1019. name: "file",
  1020. formData: { user: "test" },
  1021. success(res) {
  1022. // 上传完成需要更新 fileList
  1023. let data = JSON.parse(res.data);
  1024. that.form.RYXXZPList.push({
  1025. imgUrl: "/FileController/download/" + data.data[0],
  1026. id: data.data[0],
  1027. url:
  1028. that.$constant.BASE_URI +
  1029. "/FileController/download/" +
  1030. data.data[0],
  1031. isImage: true,
  1032. });
  1033. that.$forceUpdate();
  1034. },
  1035. fail(res) {},
  1036. });
  1037. },
  1038. splicefrsfzh_zhenmian() {
  1039. this.form.frsfzh_zhenmian = form.FRSFZHZM;
  1040. this.$forceUpdate();
  1041. },
  1042. splicefrsfzh_fanmian() {
  1043. this.form.frsfzh_fanmian = form.FRSFZHFM;
  1044. this.$forceUpdate();
  1045. },
  1046. choosefrsfzh_zhenmian() {
  1047. let that = this;
  1048. if (that.form.frsfzh_zhenmian == form.FRSFZHZM) {
  1049. uni.chooseImage({
  1050. count: 1, //默认9
  1051. sizeType: "original", //可以指定是原图还是压缩图,默认二者都有
  1052. success: function (res) {
  1053. uni.uploadFile({
  1054. url: that.$constant.BASE_URI + "/wx/fileController/upload",
  1055. filePath: res.tempFilePaths[0],
  1056. name: "file",
  1057. formData: { user: "test" },
  1058. success(res) {
  1059. // 上传完成需要更新 fileList
  1060. let data = JSON.parse(res.data);
  1061. that.form.frsfzh_zhenmian = data.data[0];
  1062. that.$forceUpdate();
  1063. },
  1064. fail(res) {},
  1065. });
  1066. },
  1067. });
  1068. } else {
  1069. uni.previewImage({
  1070. urls: [
  1071. that.BASE_URI +
  1072. "/FileController/download/" +
  1073. that.form.frsfzh_zhenmian,
  1074. ],
  1075. longPressActions: {
  1076. itemList: ["发送给朋友", "保存图片", "收藏"],
  1077. success: function (data) {},
  1078. fail: function (err) {},
  1079. },
  1080. });
  1081. }
  1082. },
  1083. getZcsj: function (e) {
  1084. this.form.zcsj = e.detail.value;
  1085. },
  1086. chooseYYZZFBZP() {
  1087. let that = this;
  1088. console.log(that.form.YYZZFBZP);
  1089. if (!that.form.YYZZFBZP) {
  1090. uni.chooseImage({
  1091. count: 1, //默认9
  1092. sizeType: "original", //可以指定是原图还是压缩图,默认二者都有
  1093. success: function (res) {
  1094. uni.uploadFile({
  1095. url: that.$constant.BASE_URI + "/wx/fileController/upload",
  1096. filePath: res.tempFilePaths[0],
  1097. name: "file",
  1098. formData: { user: "test" },
  1099. success(res) {
  1100. // 上传完成需要更新 fileList
  1101. let data = JSON.parse(res.data);
  1102. that.form.YYZZFBZP = data.data[0];
  1103. that.$forceUpdate();
  1104. },
  1105. fail(res) {},
  1106. });
  1107. },
  1108. });
  1109. } else {
  1110. uni.previewImage({
  1111. urls: [
  1112. this.BASE_URI + "/FileController/download/" + that.form.YYZZFBZP,
  1113. ],
  1114. longPressActions: {
  1115. itemList: ["发送给朋友", "保存图片", "收藏"],
  1116. success: function (data) {},
  1117. fail: function (err) {},
  1118. },
  1119. });
  1120. }
  1121. },
  1122. choosefrsfzh_fanmian() {
  1123. let that = this;
  1124. if (that.form.frsfzh_fanmian == form.FRSFZHFM) {
  1125. uni.chooseImage({
  1126. count: 1, //默认9
  1127. sizeType: "original", //可以指定是原图还是压缩图,默认二者都有
  1128. success: function (res) {
  1129. uni.uploadFile({
  1130. url: that.$constant.BASE_URI + "/wx/fileController/upload",
  1131. filePath: res.tempFilePaths[0],
  1132. name: "file",
  1133. formData: { user: "test" },
  1134. success(res) {
  1135. // 上传完成需要更新 fileList
  1136. let data = JSON.parse(res.data);
  1137. that.form.frsfzh_fanmian = data.data[0];
  1138. that.$forceUpdate();
  1139. },
  1140. fail(res) {},
  1141. });
  1142. },
  1143. });
  1144. } else {
  1145. uni.previewImage({
  1146. urls: [
  1147. that.BASE_URI +
  1148. "/FileController/download/" +
  1149. that.form.frsfzh_fanmian,
  1150. ],
  1151. longPressActions: {
  1152. itemList: ["发送给朋友", "保存图片", "收藏"],
  1153. success: function (data) {},
  1154. fail: function (err) {},
  1155. },
  1156. });
  1157. }
  1158. },
  1159. checkFormValue() {
  1160. let that = this;
  1161. // if (that.form.zcsj == "") {
  1162. // that.$showToast("请选择注册时间");
  1163. // return false;
  1164. // }
  1165. if (that.form.fddbr == "" || !that.form.fddbr) {
  1166. that.$showToast("请输入法人电话");
  1167. return false;
  1168. }
  1169. if (that.form.fddbr == "" || !that.form.fddbr) {
  1170. that.$showToast("请输入法定代表人");
  1171. return false;
  1172. }
  1173. if (that.form.jyfwAry.length == 0 || !that.form.fddbr) {
  1174. that.$showToast("请输入主营业务");
  1175. return false;
  1176. }
  1177. if (that.form.qymc == "" || !that.form.qymc) {
  1178. that.$showToast("请输入企业名称");
  1179. return false;
  1180. }
  1181. if (that.form.shxydm == "" || !that.form.shxydm) {
  1182. that.$showToast("请输入社会统一信用代码");
  1183. return false;
  1184. }
  1185. if (that.form.qylxr == "" || !that.form.qylxr) {
  1186. that.$showToast("请输入企业联系人");
  1187. return false;
  1188. }
  1189. if (that.form.email == "" || !that.form.email) {
  1190. that.$showToast("请输入企业邮箱");
  1191. return false;
  1192. }
  1193. if (that.form.cwfzr == "" || !that.form.cwfzr) {
  1194. that.$showToast("请输入财务负责人");
  1195. return false;
  1196. }
  1197. if (that.form.cwfzrdh == "" || !that.form.cwfzrdh) {
  1198. that.$showToast("请输入负责人电话");
  1199. return false;
  1200. }
  1201. return true;
  1202. },
  1203. selectDengjiren(e) {
  1204. var names = [];
  1205. var ids = [];
  1206. for (var p in e) {
  1207. if (e[p].type == "u") {
  1208. names.push(e[p].name);
  1209. ids.push(e[p].id);
  1210. }
  1211. }
  1212. this.form.investmentManagerName = names.join(",");
  1213. this.form.investmentManager = ids.join(",");
  1214. },
  1215. async edit() {
  1216. let that = this;
  1217. if (!that.changeActive()) return;
  1218. let jyfwAry = [];
  1219. if (that.form.jyfwAry.length > 0) {
  1220. jyfwAry = that.form.jyfwAry.map((e) => e.name);
  1221. }
  1222. let fileList = [];
  1223. if (that.form.fileList.length > 0) {
  1224. fileList = that.form.fileList.map((e) => e.id);
  1225. }
  1226. that.form.file = fileList.toString();
  1227. let formData = {
  1228. id: that.form.id,
  1229. file: fileList,
  1230. socialCarrierStr: that.form.socialCarrierStr
  1231. ? that.form.socialCarrierStr
  1232. : "",
  1233. socialCarrierLeaseStr: that.form.socialCarrierLeaseStr
  1234. ? that.form.socialCarrierLeaseStr
  1235. : "",
  1236. socialCarrierNoTrue: that.form.socialCarrierNoTrue
  1237. ? that.form.socialCarrierNoTrue
  1238. : "",
  1239. contractCarrierNoStr: that.form.contractCarrierNoStr
  1240. ? that.form.contractCarrierNoStr
  1241. : "",
  1242. otherContact: that.form.otherContact ? that.form.otherContac : "",
  1243. shareCertificateCode: that.form.shareCertificateCode
  1244. ? that.form.shareCertificateCode
  1245. : "",
  1246. leaseArea: that.form.leaseArea ? that.form.leaseArea : 0,
  1247. zcdz: that.form.zcdz,
  1248. qymc: that.form.qymc,
  1249. shxydm: that.form.shxydm,
  1250. zczj: that.form.zczj ? that.form.zczj : 0,
  1251. fddbr: that.form.fddbr,
  1252. lxdh: that.form.lxdh,
  1253. jyfw: jyfwAry.join(","),
  1254. frsfzh: that.form.frsfzh_zhenmian + "," + that.form.frsfzh_fanmian,
  1255. qylxr: that.form.qylxr ? that.form.qylxr : "",
  1256. lxdh: that.form.lxdh,
  1257. email: that.form.email,
  1258. cwfzr: that.form.cwfzr,
  1259. cwfzrdh: that.form.cwfzrdh,
  1260. investmentManagerName: that.form.investmentManagerName,
  1261. investmentManager: that.form.investmentManager,
  1262. area: that.form.area,
  1263. zcdz: that.form.zcdz,
  1264. jydz: that.form.jydz,
  1265. ryxxzp: that.form.ryxxzp,
  1266. rdInvestment: that.form.rdInvestment,
  1267. jgInvestment: that.form.jgInvestment,
  1268. jgInvestment: that.form.jgInvestment,
  1269. fourOpennessAmount: that.form.fourOpennessAmount,
  1270. fourTransferenceAmount: that.form.fourTransferenceAmount,
  1271. fourServiceAmount: that.form.fourServiceAmount,
  1272. fourConsultAmount: that.form.fourConsultAmount,
  1273. associationCompany: that.form.associationCompany,
  1274. settleInType: that.form.settleInType,
  1275. zscqgs: !that.form.zscqgs ? 0 : that.form.zscqgs,
  1276. frEmail: that.form.frEmail ? that.form.frEmail : "",
  1277. };
  1278. let RYXXZP = [];
  1279. if (that.form.RYXXZPList.length > 0) {
  1280. RYXXZP = that.form.RYXXZPList.map((e) => e.id);
  1281. }
  1282. formData.ryxxzp = RYXXZP.toString();
  1283. let zm =
  1284. that.form.frsfzh_zhenmian == form.FRSFZHZM
  1285. ? ""
  1286. : that.form.frsfzh_zhenmian;
  1287. let fm =
  1288. that.form.frsfzh_fanmian == form.FRSFZHFM
  1289. ? ""
  1290. : that.form.frsfzh_fanmian;
  1291. that.form.yyzzfbzp = that.form.YYZZFBZP;
  1292. formData.frsfzh = zm + "," + fm;
  1293. if (!formData.rdInvestment) delete formData.rdInvestment;
  1294. if (!formData.jgInvestment) delete formData.jgInvestment;
  1295. if (!formData.fourOpennessAmount) delete formData.fourOpennessAmount;
  1296. if (!formData.fourTransferenceAmount)
  1297. delete formData.fourTransferenceAmount;
  1298. if (!formData.fourServiceAmount) delete formData.fourServiceAmount;
  1299. if (!formData.fourConsultAmount) delete formData.fourConsultAmount;
  1300. let data = await companyECdit(formData);
  1301. if (data.code == 200) {
  1302. this.$showToast("修改成功");
  1303. uni.navigateBack({});
  1304. }
  1305. },
  1306. async getSelectUserTwo(key) {
  1307. let that = this;
  1308. let departmentList = await getSelectUserTwo("");
  1309. that.range = tools.transData(
  1310. departmentList.data,
  1311. "id",
  1312. "parentid",
  1313. "children"
  1314. );
  1315. that.$refs[key]._show();
  1316. },
  1317. jumpEditCompanyDetails(e) {
  1318. // uni.navigateTo({
  1319. // url
  1320. // })
  1321. },
  1322. jumpChosseTags() {
  1323. uni.navigateTo({
  1324. url: "/pages/subPackages/chooseCompanyTags/index",
  1325. });
  1326. },
  1327. openHandleReportDialog(item) {
  1328. let that = this;
  1329. that.$refs.handleReport.openDianlog(item);
  1330. },
  1331. getSettleInType(e) {
  1332. let that = this;
  1333. that.form.settleInType =
  1334. that.dic_SelectList.MNP_BUILDING_TYPE[e.detail.value].value;
  1335. that.settleInTypeIndex = e.detail.value;
  1336. },
  1337. getDicTypeZoufang(value) {
  1338. if (!value) return;
  1339. if (!this.dic_SelectList.interviewType) return;
  1340. let interviewType = this.dic_SelectList.interviewType;
  1341. let index = interviewType.findIndex((e) => e.value == value);
  1342. if (index != -1) return interviewType[index].label;
  1343. },
  1344. getDicType(type, value) {
  1345. if (type == "type" && this.dic_SelectList.MNP_BUILDING_TYPE) {
  1346. let MNP_BUILDING_TYPE = this.dic_SelectList.MNP_BUILDING_TYPE;
  1347. let index = MNP_BUILDING_TYPE.findIndex((e) => e.value == value);
  1348. if (index != -1) return MNP_BUILDING_TYPE[index].label;
  1349. else return "暂无";
  1350. }
  1351. if (type == "zt" && this.dic_SelectList.SETTLE_IN_STATUS) {
  1352. let SETTLE_IN_STATUS = this.dic_SelectList.SETTLE_IN_STATUS;
  1353. let index = SETTLE_IN_STATUS.findIndex((e) => e.value == value);
  1354. if (index != -1) return SETTLE_IN_STATUS[index].label;
  1355. else return "暂无";
  1356. }
  1357. },
  1358. async getByCodes() {
  1359. this.search.pageNum = 1;
  1360. let data = await getByCodes(JSON.stringify(this.dic_key));
  1361. this.dic_SelectList = this.$common.handleDicList(data);
  1362. this.getCompanyHouseDetails(this.id);
  1363. },
  1364. async changeActive() {
  1365. let interviewList = await interviewEscalationListAll(this.id);
  1366. this.interviewList = interviewList;
  1367. },
  1368. selectItems(e) {
  1369. this.$nextTick(() => {
  1370. this.$refs.collapse.resize();
  1371. });
  1372. },
  1373. async selectByCompanyId() {
  1374. let zaiti = await selectByCompanyId({ companyId: this.id });
  1375. console.log({ zaiti });
  1376. let socialCarrierAry = zaiti.map((e) => {
  1377. return e.discName + e.groupName + e.buildName + e.houseName;
  1378. });
  1379. let socialCarrierName = socialCarrierAry.join(",");
  1380. this.form.socialCarrierName = socialCarrierName;
  1381. this.$forceUpdate();
  1382. console.log(this.form.socialCarrierName);
  1383. },
  1384. async getCompanyHouseDetails(e) {
  1385. let that = this;
  1386. try {
  1387. let detail = await getCompanyHouseDetails(e);
  1388. that.selectByCompanyId1();
  1389. that.getRoomNameByCompanyId();
  1390. let index = that.dic_SelectList.MNP_BUILDING_TYPE.findIndex(
  1391. (e) => e.value == detail.data.settleInType
  1392. );
  1393. if (detail.data.contractNumber > 0) {
  1394. this.getRoomNameByCompanyId();
  1395. }
  1396. that.settleInTypeIndex = index;
  1397. that.form = detail.data;
  1398. that.form.associationCompany = that.form.associationCompany
  1399. ? that.form.associationCompany.split(",")
  1400. : [];
  1401. if (detail.data.ryxxzp && detail.data.ryxxzp.length > 0) {
  1402. let ryxxzp = detail.data.ryxxzp.split(",");
  1403. // this.form.RYXXZPList
  1404. that.form.RYXXZPList = ryxxzp.map((e) => {
  1405. return {
  1406. imgUrl: "/FileController/download/" + e,
  1407. id: e,
  1408. url: that.$constant.BASE_URI + "/FileController/download/" + e,
  1409. isImage: true,
  1410. };
  1411. });
  1412. } else {
  1413. that.form.RYXXZPList = [];
  1414. }
  1415. if (detail.data.file && detail.data.file.length > 0) {
  1416. let file = detail.data.file.split(",");
  1417. // this.form.RYXXZPList
  1418. that.form.fileList = file.map((e) => {
  1419. return {
  1420. imgUrl: "/FileController/download/" + e,
  1421. id: e,
  1422. name: e,
  1423. url: that.$constant.BASE_URI + "/FileController/download/" + e,
  1424. isImage: true,
  1425. };
  1426. });
  1427. } else {
  1428. that.form.fileList = [];
  1429. }
  1430. let bizhongIndex = this.dic_SelectList.CURRENCY.findIndex(
  1431. (e) => e.value == detail.data.currency
  1432. );
  1433. that.bizhongIndex = bizhongIndex == -1 ? null : bizhongIndex;
  1434. that.form.YYZZFBZP =
  1435. !detail.data.yyzzfbzp || detail.data.yyzzfbzp == "undefined"
  1436. ? form.YYZZFBZP
  1437. : detail.data.yyzzfbzp;
  1438. console.log(
  1439. "detail.data.yyzzfbzp",
  1440. detail.data.yyzzfbzp,
  1441. detail.data.yyzzfbzp
  1442. );
  1443. if (
  1444. detail.data.frsfzh &&
  1445. detail.data.frsfzh.length > 0 &&
  1446. detail.data.frsfzh != ","
  1447. ) {
  1448. let sfzlist = detail.data.frsfzh.split(",");
  1449. that.form.frsfzh_fanmian = sfzlist[0];
  1450. that.form.frsfzh_zhenmian = sfzlist[1];
  1451. } else {
  1452. that.form.frsfzh_fanmian = form.FRSFZHFM;
  1453. that.form.frsfzh_zhenmian = form.FRSFZHZM;
  1454. }
  1455. if (detail.data.jyfw.length > 0) {
  1456. let jyfw = detail.data.jyfw.split(",").map((e) => {
  1457. return {
  1458. name: e,
  1459. };
  1460. });
  1461. that.form.jyfwAry = jyfw;
  1462. } else {
  1463. that.form.jyfwAry = [];
  1464. }
  1465. } catch (error) {
  1466. console.log(error);
  1467. }
  1468. },
  1469. onChange(event) {
  1470. this.activeNames = event.detail;
  1471. },
  1472. },
  1473. };
  1474. </script>
  1475. <style scoped lang="scss">
  1476. .dengjibutton {
  1477. margin-top: 24rpx;
  1478. margin-left: 60rpx;
  1479. margin-right: 60rpx;
  1480. width: calc(100% - 120rpx);
  1481. height: 60rpx;
  1482. text-align: center;
  1483. background: #1d18bc;
  1484. color: white;
  1485. line-height: 60rpx;
  1486. }
  1487. .housedetailsedit {
  1488. margin-bottom: 200rpx;
  1489. }
  1490. .housedetailsedit {
  1491. .btn-view {
  1492. width: 100%;
  1493. height: 100rpx;
  1494. padding: 20rpx 10%;
  1495. background-color: #ffffff;
  1496. position: fixed;
  1497. bottom: 0;
  1498. z-index: 100;
  1499. left: 0;
  1500. }
  1501. .btn {
  1502. width: 80%;
  1503. height: 90rpx;
  1504. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1505. background: #1d18bc;
  1506. line-height: 90rpx;
  1507. text-align: center;
  1508. color: white;
  1509. }
  1510. .detailstitle {
  1511. height: 42rpx;
  1512. font-size: 30rpx;
  1513. font-weight: 500;
  1514. color: #333333;
  1515. padding-bottom: 16rpx;
  1516. }
  1517. .typestitle {
  1518. height: 42rpx;
  1519. font-size: 24rpx;
  1520. font-weight: 500;
  1521. padding-bottom: 16rpx;
  1522. margin-bottom: 16rpx;
  1523. }
  1524. }
  1525. </style>
  1526. <style lang="scss">
  1527. .filename {
  1528. width: 80%;
  1529. overflow: hidden;
  1530. overflow: hidden;
  1531. white-space: nowrap;
  1532. text-overflow: ellipsis;
  1533. }
  1534. .fujian {
  1535. .van-uploader__preview {
  1536. display: none;
  1537. }
  1538. }
  1539. .file {
  1540. display: flex;
  1541. width: 100%;
  1542. flex: 1;
  1543. font-size: 14px;
  1544. color: #666;
  1545. /* margin-right: 25px; */
  1546. word-break: break-all;
  1547. word-wrap: break-word;
  1548. margin-bottom: 15rpx;
  1549. align-items: center;
  1550. justify-content: space-between;
  1551. }
  1552. .filename {
  1553. width: 80%;
  1554. overflow: hidden;
  1555. overflow: hidden;
  1556. white-space: nowrap;
  1557. text-overflow: ellipsis;
  1558. }
  1559. ::v-deep .is-open + .uni-collapse-item__wrap {
  1560. height: auto !important;
  1561. }
  1562. ::v-deep .uni-collapse-item__wrap-content {
  1563. height: auto !important;
  1564. }
  1565. .pageconfig {
  1566. background: #ffffff;
  1567. padding: 32rpx;
  1568. }
  1569. .input_title {
  1570. width: 40%;
  1571. font-size: 28rpx;
  1572. height: 40rpx;
  1573. line-height: 40rpx;
  1574. color: #333333;
  1575. }
  1576. .input_value {
  1577. width: 60%;
  1578. font-size: 28rpx;
  1579. height: 40rpx;
  1580. line-height: 40rpx;
  1581. color: #777777;
  1582. }
  1583. .uni-collapse-item__title-box {
  1584. padding: 0 !important;
  1585. }
  1586. .uni-collapse-item__title-text {
  1587. color: #1d18bc !important;
  1588. font-size: 32rpx !important;
  1589. }
  1590. .idclass {
  1591. width: 147rpx;
  1592. height: 100rpx;
  1593. }
  1594. </style>