addCompany.vue 36 KB

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