mineInfo.vue 30 KB

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