companyDetailsEdit.vue 56 KB

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