addCompany.vue 36 KB

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