companyDetailsEdit.vue 56 KB

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