addCompany.vue 34 KB

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