mineInfo.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985
  1. <template>
  2. <div class="enterprise">
  3. <div class="firstPage">
  4. <div class="title">
  5. 尊敬的 &nbsp;<span class="impotTips comName">{{
  6. company.qymc
  7. }}</span>
  8. &nbsp; 企业用户,你好!
  9. </div>
  10. <div class="titMsg" v-if="isnew">
  11. 欢迎你首次登录“园区企业服务平台”,为了更好地为企业提供相关服务,请先<span
  12. class="impotTips"
  13. >完善贵公司的相关企业信息</span
  14. >,并提交登记!
  15. </div>
  16. <div class="titMsg" v-if="isnew">
  17. 后续信息
  18. <span class="impotTips">如有变动,请及时在“企业信息”中维护更新</span>。
  19. 感谢您的支持与配合!
  20. </div>
  21. <div class="titMsg" v-if="!isnew">
  22. 企业信息
  23. <span class="impotTips">如有变动,请及时在“企业信息”中维护更新</span>。
  24. 感谢您的支持与配合!
  25. </div>
  26. </div>
  27. <div class="secendPage">
  28. <ul>
  29. <li class="titleLi">
  30. <div>
  31. <span class="required">*</span>
  32. 统一社会信用代码:
  33. </div>
  34. <input
  35. type="text"
  36. placeholder="请填写"
  37. v-model="company.shxydm"
  38. readonly
  39. />
  40. </li>
  41. <li class="titleLi">
  42. <div>
  43. <span class="required">*</span>
  44. 注册资金(万元):
  45. </div>
  46. <input
  47. type="text"
  48. placeholder="请填写"
  49. v-model="company.zczj"
  50. />
  51. </li>
  52. <li class="titleLi">
  53. <div>
  54. <span class="required">*</span>
  55. 注册时间:
  56. </div>
  57. <input
  58. type="text"
  59. placeholder="请选择"
  60. readonly
  61. v-model="company.zcsj"
  62. />
  63. </li>
  64. <li class="titleLi">
  65. <div>
  66. <span class="required">*</span>
  67. 法定代表人:
  68. </div>
  69. <input
  70. type="text"
  71. placeholder="请填写"
  72. v-model="company.fddbr"
  73. />
  74. </li>
  75. <li class="titleLi">
  76. 法人电话:
  77. <input
  78. type="text"
  79. placeholder="请填写"
  80. v-model="company.legalPersonPhone"
  81. />
  82. </li>
  83. <li class="titleLi">
  84. <div>
  85. <span class="required">*</span>
  86. 企业联系人:
  87. </div>
  88. <input
  89. type="text"
  90. placeholder="请填写"
  91. v-model="company.qylxr"
  92. />
  93. </li>
  94. <li class="titleLi">
  95. <div>
  96. <span class="required">*</span>
  97. 联系人手机:
  98. </div>
  99. <input
  100. type="text"
  101. placeholder="请填写"
  102. v-model="company.lxdh"
  103. />
  104. </li>
  105. <li class="titleLi">
  106. <div>
  107. <span class="required">*</span>
  108. 联系人邮箱:
  109. </div>
  110. <input
  111. type="text"
  112. placeholder="请填写"
  113. v-model="company.email"
  114. />
  115. </li>
  116. <li class="titleLi">
  117. <div>
  118. <span class="required">*</span>
  119. 财务负责人:
  120. </div>
  121. <input
  122. type="text"
  123. placeholder="请填写"
  124. v-model="company.cwfzr"
  125. />
  126. </li>
  127. <li class="titleLi">
  128. <div>
  129. <span class="required">*</span>
  130. 负责人电话:
  131. </div>
  132. <input
  133. type="text"
  134. placeholder="请填写"
  135. v-model="company.cwfzrdh"
  136. />
  137. </li>
  138. <li class="titleLi">
  139. <div>
  140. <span class="required">*</span>
  141. 注册地址:
  142. </div>
  143. <input
  144. type="text"
  145. placeholder="请填写"
  146. v-model="company.zcdz"
  147. />
  148. </li>
  149. <li class="titleLi">
  150. <div>
  151. <span class="required">*</span>
  152. 经营地址:
  153. </div>
  154. <input
  155. type="text"
  156. placeholder="请填写"
  157. v-model="company.jydz"
  158. />
  159. </li>
  160. <li class="titleLi area-Li">
  161. 经营范围:
  162. <textarea
  163. class="text-area"
  164. type="text"
  165. rows="4"
  166. placeholder="请说明"
  167. v-model="company.jyfw"
  168. />
  169. </li>
  170. <li class="titleLi titleLiLast">
  171. <div>
  172. <span class="required">*</span>
  173. 营业执照副本(限1张):
  174. </div>
  175. </li>
  176. <li class="titleLi titleLiUploader">
  177. <van-uploader
  178. v-model="fileList"
  179. multiple
  180. max-count="1"
  181. :after-read="afterRead"
  182. :before-delete="beforeDelete"
  183. >
  184. </van-uploader>
  185. </li>
  186. <li class="titleLi titleLiLast">
  187. 荣誉信息(限6张):
  188. </li>
  189. <li class="titleLi area-Li titleLiLast " style="padding: 0;margin: 0">
  190. <textarea
  191. class="text-area"
  192. type="text"
  193. rows="6"
  194. placeholder="请说明"
  195. v-model="company.honorInformation"
  196. style="margin: 0"
  197. />
  198. </li>
  199. <li class="titleLi titleLiUploader2">
  200. <van-uploader
  201. v-model="fileList2"
  202. multiple
  203. max-count="6"
  204. :after-read="afterRead2"
  205. :before-delete="beforeDelete2"
  206. />
  207. </li>
  208. <li class="titleLi titleLiLast">
  209. 法人身份证:
  210. </li>
  211. <li class="titleLi titleLiLast titleLiUploader">
  212. <div>
  213. <van-uploader
  214. v-model="fileList3"
  215. multiple
  216. max-count="1"
  217. :after-read="afterRead3"
  218. :before-delete="beforeDelete3"
  219. >
  220. <img src="https://www.idea-co-sf.com/gardenProduct/image/zm.png" class="sfzImg">
  221. </van-uploader>
  222. <van-uploader
  223. v-model="fileList4"
  224. multiple
  225. max-count="1"
  226. :after-read="afterRead4"
  227. :before-delete="beforeDelete4"
  228. >
  229. <img src="https://www.idea-co-sf.com/gardenProduct/image/fm.png" class="sfzImg">
  230. </van-uploader>
  231. </div>
  232. </li>
  233. </ul>
  234. </div>
  235. <div class="buttonBox" v-if="btnShow">
  236. <button class="turnOff" @click="commit">暂存</button>
  237. <button class="preservation btn2" @click="submit">
  238. 提交
  239. </button>
  240. </div>
  241. <div v-if="!btnShow" style="padding: 5vw 0;color: orangered;text-align: center">
  242. 入库审核中......
  243. </div>
  244. <!-- 时间弹框 -->
  245. <van-popup v-model="show" position="bottom" :style="{ height: '50%' }">
  246. <van-datetime-picker
  247. v-model="currentDate"
  248. type="date"
  249. title="选择年月日"
  250. :min-date="minDate"
  251. :max-date="maxDate"
  252. @cancel="show = false"
  253. @confirm="selectTime"
  254. /></van-popup>
  255. <van-popup v-model="show2" position="bottom" :style="{ height: '50%' }">
  256. <van-datetime-picker
  257. v-model="currentDate"
  258. type="date"
  259. title="选择年月日"
  260. :min-date="minDate"
  261. :max-date="maxDate"
  262. @cancel="show2 = false"
  263. @confirm="selectTime2"
  264. /></van-popup>
  265. </div>
  266. </template>
  267. <script>
  268. import { isFinishComInfo, getById, addCompanyExamine,upload,getUserLocalStorageInfo } from "@/js_sdk/http.js"
  269. // import auth from '@/js_sdk/auth.js'
  270. import constant from '@/pages/utils/constant.js'
  271. export default {
  272. data() {
  273. return {
  274. isnew: true,
  275. radio: '1',
  276. fileList: [],
  277. fileList2: [],
  278. fileIdList2: [],
  279. fileIdList3: [],
  280. fileIdList4: [],
  281. fileIdList5: [],
  282. fileList3: [],
  283. fileList4: [],
  284. frsfzzm: '',
  285. frsfzfm: '',
  286. selectTag: 0,
  287. tagList: [
  288. ],
  289. checkBoxList: [
  290. ],
  291. company: {
  292. id: '',
  293. qymc: '',
  294. shxydm: '',
  295. zcsj: '',
  296. zczj: '',
  297. fddbr: '',
  298. jyfw: '',
  299. qylxr: '',
  300. lxdh: '',
  301. rzsj: '',
  302. ssztmc: '',
  303. qylbbq: '',
  304. yyzzfbzp: '',
  305. ryxxzp: '',
  306. legalPersonPhone: '',
  307. email: '',
  308. cwfzr: '',
  309. cwfzrdh: '',
  310. zcdz: '',
  311. jydz: '',
  312. honorInformation: '',
  313. rdInvestment: '',
  314. jgInvestment: '',
  315. fourOpennessAmount: '',
  316. fourConsultAmount: '',
  317. fourServiceAmount: '',
  318. fourTransferenceAmount: '',
  319. qybq: ''
  320. },
  321. show: false,
  322. show2: false,
  323. minDate: new Date(1980, 0, 1),
  324. maxDate: new Date(2025, 10, 1),
  325. currentDate: new Date(),
  326. selectTagId: '',
  327. btnShow: true,
  328. qybqList: []
  329. }
  330. },
  331. mounted() {
  332. // this.getCommit()
  333. },
  334. methods: {
  335. takeshow() {
  336. if (this.isnew) {
  337. this.show = true
  338. }
  339. },
  340. takeshow2() {
  341. if (this.isnew) {
  342. // console.log(123)
  343. this.show2 = true
  344. }
  345. },
  346. turnOff() {
  347. this.$router.push('/home/home')
  348. },
  349. getInfo() {
  350. getById({ id: auth.currUser().id }).then(res => {
  351. console.log('res', res)
  352. if (res && res.key == 200) {
  353. this.company = res.data
  354. this.qybqList = this.company.qybq.split(',')
  355. // this.getTagList()
  356. if (res.data.yyzzfbzp) {
  357. const a = res.data.yyzzfbzp.split(',')
  358. this.fileList.push(
  359. JSON.parse(
  360. '{"url":"' +
  361. constant.BASE_URI +
  362. '/wx/fileController/download/' +
  363. a +
  364. '","isImage": true}'
  365. )
  366. )
  367. }
  368. if (res.data.ryxxzp) {
  369. this.fileIdList2 = res.data.ryxxzp.split(',')
  370. // console.log(this.fileIdList2);
  371. this.fileIdList2.forEach(item => {
  372. this.fileList2.push(
  373. JSON.parse(
  374. '{"url":"' +
  375. constant.BASE_URI +
  376. '/wx/fileController/download/' +
  377. item +
  378. '","isImage": true}'
  379. )
  380. )
  381. })
  382. }
  383. if (res.data.frsfzh) {
  384. this.fileIdList5 = res.data.frsfzh.split(',')
  385. this.frsfzzm = this.fileIdList5[0]
  386. this.fileList3.push(
  387. JSON.parse(
  388. '{"url":"' +
  389. constant.BASE_URI +
  390. '/wx/fileController/download/' +
  391. this.frsfzzm +
  392. '","isImage": true}'
  393. )
  394. )
  395. if (this.fileIdList5[1]) {
  396. this.frsfzfm = this.fileIdList5[1]
  397. this.fileList4.push(
  398. JSON.parse(
  399. '{"url":"' +
  400. constant.BASE_URI +
  401. '/wx/fileController/download/' +
  402. this.frsfzfm +
  403. '","isImage": true}'
  404. )
  405. )
  406. }
  407. }
  408. } else if (res.key == 426) {
  409. Toast(res.msg)
  410. this.$router.push('/login')
  411. } else {
  412. Toast(res.msg)
  413. }
  414. if (this.company.shxydm && this.company.rzsj) {
  415. this.isnew = false
  416. }
  417. }).then(() => {
  418. isFinishComInfo({ comId: auth.currUser().id }).then(res => {
  419. if (res.errno === 0) {
  420. this.btnShow = false
  421. } else if (res.errno === -1) {
  422. this.btnShow = true
  423. }
  424. })
  425. })
  426. },
  427. // 获取企业标签信息
  428. // getTagList() {
  429. // getTagInfo().then(res => {
  430. // this.tagList = res.data
  431. // this.checkBoxList = res.data[0].children
  432. // this.checkBoxList.forEach(item => {
  433. // if (this.qybqList.findIndex(e => e == item.id) !== -1) {
  434. // item.checked = true
  435. // }
  436. // })
  437. // })
  438. // },
  439. // clickTag(item, index) {
  440. // this.selectTag = index
  441. // this.selectTagId = item.id
  442. // this.tagList.forEach(item => {
  443. // if (this.selectTagId == item.id) {
  444. // this.checkBoxList = item.children
  445. // }
  446. // })
  447. // this.checkBoxList.forEach(item => {
  448. // if (this.company.qybq.split(',').findIndex(e => e == item.id) !== -1) {
  449. // item.checked = true
  450. // }
  451. // })
  452. // },
  453. // changeCheck(item) {
  454. // console.log(this.qybqList)
  455. // if (item.checked == true) {
  456. // if (this.qybqList.findIndex(e => e == item.id) == -1) {
  457. // this.qybqList.push(item.id)
  458. // }
  459. // } else {
  460. // const i = this.qybqList.findIndex(e => e == item.id)
  461. // if (i !== -1) {
  462. // this.qybqList.splice(i, 1)
  463. // }
  464. // }
  465. // this.$nextTick(() => {
  466. // this.company.qybq = this.qybqList.toString()
  467. // console.log(this.company.qybq)
  468. // })
  469. // },
  470. getCommit() {
  471. const local = localStorage.getItem('company' + auth.currUser().id)
  472. if (local) {
  473. this.company = JSON.parse(local)
  474. this.qybqList = this.company.qybq.split(',')
  475. // this.getTagList()
  476. if (this.company.yyzzfbzp) {
  477. const a = this.company.yyzzfbzp.split(',')
  478. console.log(this.company.yyzzfbzp)
  479. this.fileList.push(
  480. JSON.parse(
  481. '{"url":"' +
  482. constant.BASE_URI +
  483. '/wx/fileController/download/' +
  484. a +
  485. '","isImage": true}'
  486. )
  487. )
  488. }
  489. if (this.company.ryxxzp) {
  490. this.fileIdList2 = this.company.ryxxzp.split(',')
  491. // console.log(this.fileIdList2);
  492. this.fileIdList2.forEach(item => {
  493. this.fileList2.push(
  494. JSON.parse(
  495. '{"url":"' +
  496. constant.BASE_URI +
  497. '/wx/fileController/download/' +
  498. item +
  499. '","isImage": true}'
  500. )
  501. )
  502. })
  503. }
  504. if (this.company.frsfzh) {
  505. this.fileIdList5 = this.company.frsfzh.split(',')
  506. this.frsfzzm = this.fileIdList5[0]
  507. this.fileList3.push(
  508. JSON.parse(
  509. '{"url":"' +
  510. constant.BASE_URI +
  511. '/wx/fileController/download/' +
  512. this.frsfzzm +
  513. '","isImage": true}'
  514. )
  515. )
  516. if (this.fileIdList5[1]) {
  517. this.frsfzfm = this.fileIdList5[1]
  518. this.fileList4.push(
  519. JSON.parse(
  520. '{"url":"' +
  521. constant.BASE_URI +
  522. '/wx/fileController/download/' +
  523. this.frsfzfm +
  524. '","isImage": true}'
  525. )
  526. )
  527. }
  528. }
  529. } else {
  530. this.getInfo()
  531. }
  532. },
  533. // 暂存本地
  534. commit() {
  535. if (this.frsfzzm || this.frsfzfm) {
  536. this.company.frsfzh = this.frsfzzm + ',' + this.frsfzfm
  537. } else {
  538. this.company.frsfzh = null
  539. }
  540. this.company.czrid = auth.currUser().id
  541. this.company.czr = auth.currUser().qymc
  542. this.$delete(this.company, 'czsj')
  543. localStorage.setItem('company' + auth.currUser().id, JSON.stringify(this.company))
  544. this.$nextTick(() => {
  545. const local = localStorage.getItem('company' + auth.currUser().id)
  546. if (local) {
  547. Toast('暂存成功')
  548. } else {
  549. Toast('暂存失败')
  550. }
  551. })
  552. },
  553. // 提交
  554. submit() {
  555. // console.log(this.company.frsfzh)
  556. if (!this.company.shxydm) {
  557. Toast('请填写统一社会信用代码')
  558. } else if (!this.company.zczj) {
  559. Toast('请填写注册资金')
  560. } else if (!this.company.zcsj) {
  561. Toast('请填写注册时间')
  562. } else if (!this.company.fddbr) {
  563. Toast('请填写法定代表人')
  564. } else if (!this.company.qylxr) {
  565. Toast('请填写企业联系人')
  566. } else if (!this.company.lxdh) {
  567. Toast('请填写手机号')
  568. } else if (!this.company.email) {
  569. Toast('请填写联系人邮箱')
  570. } else if (!this.company.cwfzr) {
  571. Toast('请填写财务负责人')
  572. } else if (!this.company.cwfzrdh) {
  573. Toast('请填写财务负责人电话')
  574. } else if (!this.company.zcdz) {
  575. Toast('请填写注册地址')
  576. } else if (!this.company.jydz) {
  577. Toast('请填写经营地址')
  578. } else if (this.fileList.length == 0) {
  579. Toast('请上传营业执照副本')
  580. } else if (!this.frsfzzm) {
  581. Toast('请上传法人身份证正面')
  582. } else if (!this.frsfzfm) {
  583. Toast('请上传法人身份证反面')
  584. } else {
  585. this.company.frsfzh = this.frsfzzm + ',' + this.frsfzfm
  586. this.company.czrid = auth.currUser().id
  587. this.company.czr = auth.currUser().qymc
  588. this.$delete(this.company, 'czsj')
  589. this.$delete(this.company, 'gxsj')
  590. add(this.company).then(res => {
  591. if (res.key == 200) {
  592. Toast('提交成功')
  593. this.btnShow = false
  594. localStorage.removeItem('company' + auth.currUser().id)
  595. } else {
  596. Toast(res.msg)
  597. }
  598. })
  599. }
  600. },
  601. selectTime(e) {
  602. const dayjs = require('dayjs')
  603. this.company.zcsj = dayjs(e).format('YYYY-MM-DD')
  604. this.show = false
  605. },
  606. selectTime2(e) {
  607. const dayjs = require('dayjs')
  608. this.company.rzsj = dayjs(e).format('YYYY-MM-DD')
  609. this.show2 = false
  610. },
  611. afterRead(file) {
  612. Toast.loading({
  613. message: '上传中...',
  614. forbidClick: true,
  615. duration: 0
  616. })
  617. if (file instanceof Array) {
  618. file.map(v => {
  619. this.uploadImg(v)
  620. })
  621. } else {
  622. this.uploadImg(file)
  623. }
  624. },
  625. afterRead2(file) {
  626. Toast.loading({
  627. message: '上传中...',
  628. forbidClick: true,
  629. duration: 0
  630. })
  631. if (file instanceof Array) {
  632. file.map(v => {
  633. this.uploadImg2(v)
  634. })
  635. } else {
  636. this.uploadImg2(file)
  637. }
  638. },
  639. afterRead3(file) {
  640. Toast.loading({
  641. message: '上传中...',
  642. forbidClick: true,
  643. duration: 0
  644. })
  645. if (file instanceof Array) {
  646. file.map(v => {
  647. this.uploadImg3(v)
  648. })
  649. } else {
  650. this.uploadImg3(file)
  651. }
  652. },
  653. afterRead4(file) {
  654. Toast.loading({
  655. message: '上传中...',
  656. forbidClick: true,
  657. duration: 0
  658. })
  659. if (file instanceof Array) {
  660. file.map(v => {
  661. this.uploadImg4(v)
  662. })
  663. } else {
  664. this.uploadImg4(file)
  665. }
  666. },
  667. beforeDelete(file, detail) {
  668. const vm = this
  669. // name.index代表图片的索引
  670. vm.company.yyzzfbzp = ''
  671. this.fileList = []
  672. },
  673. beforeDelete2(file, detail) {
  674. const vm = this
  675. // name.index代表图片的索引
  676. vm.fileIdList2.splice(detail.index, 1)
  677. vm.company.ryxxzp = vm.fileIdList2.toString()
  678. console.log(vm.company.ryxxzp)
  679. return (file, name) => {
  680. const fileIndex = name.index
  681. vm.fileIdList2[detail.index].splice(fileIndex, 1)
  682. }
  683. },
  684. beforeDelete3(file, detail) {
  685. const vm = this
  686. // name.index代表图片的索引
  687. vm.frsfzzm = ''
  688. this.fileList3 = []
  689. this.fileIdList3 = []
  690. },
  691. beforeDelete4(file, detail) {
  692. const vm = this
  693. // name.index代表图片的索引
  694. vm.frsfzfm = ''
  695. this.fileList4 = []
  696. this.fileIdList4 = []
  697. },
  698. uploadImg(file) {
  699. const _this = this
  700. const formParam = new FormData() // 创建form对象
  701. formParam.append('file', file.file) // 通过append向form对象添加数据
  702. const config = {
  703. headers: {
  704. 'Content-Type': 'multipart/form-data',
  705. 'MVVM-Key': String(new Date().getTime()),
  706. xx: 'anything'
  707. } // 这里是重点,需要和后台沟通好请求头,Content-Type不一定是这个值
  708. } // 添加请求头
  709. return new Promise((resolve, reject) => {
  710. // axios.post('http://121.228.7.226:9001/wx/fileController/upload', formParam, config)
  711. upload(formParam, config)
  712. .then(response => {
  713. if (response.data.length) {
  714. _this.company.yyzzfbzp = response.data[0]
  715. }
  716. Toast.clear()
  717. })
  718. .catch((err, x) => {
  719. reject(err, x)
  720. })
  721. })
  722. },
  723. uploadImg2(file) {
  724. const _this = this
  725. const formParam = new FormData() // 创建form对象
  726. formParam.append('file', file.file) // 通过append向form对象添加数据
  727. const config = {
  728. headers: {
  729. 'Content-Type': 'multipart/form-data',
  730. 'MVVM-Key': String(new Date().getTime()),
  731. xx: 'anything'
  732. } // 这里是重点,需要和后台沟通好请求头,Content-Type不一定是这个值
  733. } // 添加请求头
  734. return new Promise((resolve, reject) => {
  735. // axios.post('http://121.228.7.226:9001/wx/fileController/upload', formParam, config)
  736. upload(formParam, config)
  737. .then(response => {
  738. if (response.data.length) {
  739. response.data.forEach(element => {
  740. _this.fileIdList2.push(element)
  741. })
  742. _this.company.ryxxzp = _this.fileIdList2.toString()
  743. // console.log(_this.company.ryxxzp);
  744. }
  745. Toast.clear()
  746. })
  747. .catch((err, x) => {
  748. reject(err, x)
  749. })
  750. })
  751. },
  752. uploadImg3(file) {
  753. const _this = this
  754. const formParam = new FormData() // 创建form对象
  755. formParam.append('file', file.file) // 通过append向form对象添加数据
  756. const config = {
  757. headers: {
  758. 'Content-Type': 'multipart/form-data',
  759. 'MVVM-Key': String(new Date().getTime()),
  760. xx: 'anything'
  761. } // 这里是重点,需要和后台沟通好请求头,Content-Type不一定是这个值
  762. } // 添加请求头
  763. return new Promise((resolve, reject) => {
  764. // axios.post('http://121.228.7.226:9001/wx/fileController/upload', formParam, config)
  765. upload(formParam, config)
  766. .then(response => {
  767. if (response.data.length) {
  768. response.data.forEach(element => {
  769. _this.fileIdList3.push(element)
  770. })
  771. _this.frsfzzm = _this.fileIdList3.toString()
  772. }
  773. Toast.clear()
  774. })
  775. .catch((err, x) => {
  776. reject(err, x)
  777. })
  778. })
  779. },
  780. uploadImg4(file) {
  781. const _this = this
  782. const formParam = new FormData() // 创建form对象
  783. formParam.append('file', file.file) // 通过append向form对象添加数据
  784. const config = {
  785. headers: {
  786. 'Content-Type': 'multipart/form-data',
  787. 'MVVM-Key': String(new Date().getTime()),
  788. xx: 'anything'
  789. } // 这里是重点,需要和后台沟通好请求头,Content-Type不一定是这个值
  790. } // 添加请求头
  791. return new Promise((resolve, reject) => {
  792. // axios.post('http://121.228.7.226:9001/wx/fileController/upload', formParam, config)
  793. upload(formParam, config)
  794. .then(response => {
  795. if (response.data.length) {
  796. response.data.forEach(element => {
  797. _this.fileIdList4.push(element)
  798. })
  799. _this.frsfzfm = _this.fileIdList4.toString()
  800. }
  801. Toast.clear()
  802. })
  803. .catch((err, x) => {
  804. reject(err, x)
  805. })
  806. })
  807. }
  808. }
  809. }
  810. </script>
  811. <style lang="scss">
  812. .enterprise {
  813. font-size: 4vw;
  814. margin: 5vw 2vw;
  815. .firstPage {
  816. background: white;
  817. padding: 3vw 3vw 3vw 3vw;
  818. margin-top: 5vw;
  819. border-radius: 15px;
  820. .title {
  821. height: 10vw;
  822. // display: inline-flex;
  823. align-items: center;
  824. border-bottom: 1px solid rgb(243, 236, 236);
  825. margin-bottom: 3vw;
  826. }
  827. .titMsg {
  828. text-indent: 8vw;
  829. line-height: 6vw;
  830. }
  831. .impotTips {
  832. color: rgb(0, 47, 167);
  833. }
  834. .comName {
  835. white-space: nowrap;
  836. }
  837. input {
  838. width: 80%;
  839. }
  840. li {
  841. display: flex;
  842. align-items: center;
  843. height: 10vw;
  844. padding: 5vw 0;
  845. border-bottom: 1px solid rgb(243, 236, 236);
  846. }
  847. }
  848. .secendPage {
  849. background: white;
  850. padding: 3vw 3vw 3vw 3vw;
  851. margin-top: 5vw;
  852. border-radius: 15px;
  853. li {
  854. display: flex;
  855. align-items: center;
  856. justify-content: space-between;
  857. height: 10vw;
  858. padding: 3vw 0;
  859. border-bottom: 1px solid rgb(243, 236, 236);
  860. }
  861. .titleLi {
  862. font-size: 3.5vw;
  863. //font-weight: 700;
  864. white-space: nowrap;
  865. color: #333333;
  866. .required {
  867. color: red;
  868. }
  869. .van-uploader {
  870. padding: 3vw 0;
  871. }
  872. }
  873. .titleLiRadio {
  874. .van-radio-group {
  875. display: flex;
  876. width: 100%;
  877. justify-content: space-evenly;
  878. }
  879. }
  880. .titleLiLast {
  881. border-bottom: none;
  882. padding-bottom: 0;
  883. }
  884. .titleLiUploader {
  885. padding: 10vw 0;
  886. }
  887. .titleLiUploader2 {
  888. padding: 20vw 0;
  889. }
  890. .van-uploader {
  891. padding: 10vw 0;
  892. }
  893. input {
  894. padding: 15px 0 15px 20px;
  895. width: 60%;
  896. }
  897. textarea {
  898. padding: 15px 0 15px 20px;
  899. }
  900. }
  901. .buttonBox {
  902. //background: white;
  903. display: flex;
  904. align-items: center;
  905. justify-content: space-evenly;
  906. margin-top: 3vw;
  907. margin-bottom: 0;
  908. padding: 5vw 0;
  909. button {
  910. padding: 2vw 10vw;
  911. border-radius: 15px;
  912. }
  913. .turnOff {
  914. background: white;
  915. border: 1px solid rgb(0, 47, 167);
  916. color: rgb(0, 47, 167);
  917. }
  918. .btn2 {
  919. background-color: rgb(0, 47, 167);
  920. color: white;
  921. border: white solid 1px;
  922. }
  923. }
  924. input::placeholder {
  925. color: #777777;
  926. }
  927. .area-Li{
  928. height: auto !important;
  929. flex-direction: column;
  930. align-items: flex-start !important;
  931. .text-area{
  932. background: #F9F9F9;
  933. width: 95%;
  934. margin-top: 2vw;
  935. resize: none;
  936. &::placeholder{
  937. color:#AAAAAA
  938. }
  939. }
  940. }
  941. .upLoadImg{
  942. width: 10vw;
  943. }
  944. .sfzImg{
  945. width: 18vw;
  946. height: 16vw;
  947. margin: 0vw 2vw 2vw 2vw
  948. }
  949. .myTag{
  950. width: 20vw;
  951. height: 7vw;
  952. display: flex;
  953. font-size: 3.5vw;
  954. font-weight: 400;
  955. justify-content: center;
  956. align-items: center;
  957. color: #777777;
  958. border: 1px solid rgba(204, 204, 204, 0.51);
  959. border-radius: 5px;
  960. margin: 1vw 0;
  961. box-sizing: border-box;
  962. }
  963. .selectTag{
  964. width: 20vw;
  965. height: 7vw;
  966. display: flex;
  967. font-size: 3.5vw;
  968. font-weight: 400;
  969. justify-content: center;
  970. align-items: center;
  971. color: #1D18BC;
  972. background: rgba(29, 24, 188, 0.05);
  973. border-radius: 5px;
  974. margin: 1vw 0;
  975. }
  976. .checkBoxContant{
  977. font-size: 3.5vw;
  978. color: rgba(119, 119, 119, 1);
  979. line-height: 5vw;
  980. padding-left: 8vw;
  981. }
  982. }
  983. </style>