|
|
@@ -1,408 +1,580 @@
|
|
|
<template>
|
|
|
- <div class="settleIn">
|
|
|
- <div class="form-part">
|
|
|
- <van-form>
|
|
|
- <van-field
|
|
|
- class="input-item"
|
|
|
- label="*企业名称"
|
|
|
- input-align="right"
|
|
|
- placeholder="用户名"
|
|
|
- />
|
|
|
-
|
|
|
- <van-field
|
|
|
- class="input-item picker-item"
|
|
|
- readonly
|
|
|
- clickable
|
|
|
- :value="reqFrom.enterpriseTypeName"
|
|
|
- input-align="right"
|
|
|
- label="企业类型"
|
|
|
- @click="showPicker_enterpriseType = true"
|
|
|
- >
|
|
|
- <template #button>
|
|
|
- <i class="iconfont icon-zuo"></i>
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
- <van-popup v-model="showPicker_enterpriseType" position="bottom">
|
|
|
- <van-picker
|
|
|
- show-toolbar
|
|
|
- :columns="dickData.enterpriseType"
|
|
|
- @confirm="(value) => onConfirm(value, 'enterpriseType')"
|
|
|
- @cancel="showPicker_enterpriseType = false"
|
|
|
- />
|
|
|
- </van-popup>
|
|
|
-
|
|
|
- <van-field
|
|
|
- class="input-item picker-item"
|
|
|
- readonly
|
|
|
- clickable
|
|
|
- :value="reqFrom.isHeadName"
|
|
|
- input-align="right"
|
|
|
- label="是否总部"
|
|
|
- @click="showPicker_isHead = true"
|
|
|
- >
|
|
|
- <template #button>
|
|
|
- <i class="iconfont icon-zuo"></i>
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
- <van-popup v-model="showPicker_isHead" position="bottom">
|
|
|
- <van-picker
|
|
|
- show-toolbar
|
|
|
- :columns="dickData.yesOrNo"
|
|
|
- @confirm="(value) => onConfirm(value, 'isHead')"
|
|
|
- @cancel="showPicker_isHead = false"
|
|
|
- />
|
|
|
- </van-popup>
|
|
|
-
|
|
|
- <van-field
|
|
|
- class="input-item picker-item"
|
|
|
- readonly
|
|
|
- clickable
|
|
|
- :value="reqFrom.isForeignName"
|
|
|
- input-align="right"
|
|
|
- label="是否外资"
|
|
|
- @click="showPicker_isForeign = true"
|
|
|
- >
|
|
|
- <template #button>
|
|
|
- <i class="iconfont icon-zuo"></i>
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
- <van-popup v-model="showPicker_isForeign" position="bottom">
|
|
|
- <van-picker
|
|
|
- show-toolbar
|
|
|
- :columns="dickData.yesOrNo"
|
|
|
- @confirm="(value) => onConfirm(value, 'isForeign')"
|
|
|
- @cancel="showPicker_isForeign = false"
|
|
|
- />
|
|
|
- </van-popup>
|
|
|
-
|
|
|
- <van-field
|
|
|
- class="input-item picker-item"
|
|
|
- readonly
|
|
|
- clickable
|
|
|
- :value="reqFrom.isImoutName"
|
|
|
- input-align="right"
|
|
|
- label="是否进出口"
|
|
|
- @click="showPicker_isImout = true"
|
|
|
- >
|
|
|
- <template #button>
|
|
|
- <i class="iconfont icon-zuo"></i>
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
- <van-popup v-model="showPicker_isImout" position="bottom">
|
|
|
- <van-picker
|
|
|
- show-toolbar
|
|
|
- :columns="dickData.yesOrNo"
|
|
|
- @confirm="(value) => onConfirm(value, 'isImout')"
|
|
|
- @cancel="showPicker_isImout = false"
|
|
|
- />
|
|
|
- </van-popup>
|
|
|
-
|
|
|
- <van-field
|
|
|
- class="input-item picker-item"
|
|
|
- readonly
|
|
|
- clickable
|
|
|
- :value="reqFrom.industryName"
|
|
|
- input-align="right"
|
|
|
- label="行业类型"
|
|
|
- @click="showPicker_industry = true"
|
|
|
- >
|
|
|
- <template #button>
|
|
|
- <i class="iconfont icon-zuo"></i>
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
- <van-popup v-model="showPicker_industry" position="bottom">
|
|
|
- <van-picker
|
|
|
- show-toolbar
|
|
|
- :columns="dickData.industry"
|
|
|
- @confirm="(value) => onConfirm(value, 'industry')"
|
|
|
- @cancel="showPicker_industry = false"
|
|
|
- />
|
|
|
- </van-popup>
|
|
|
-
|
|
|
- <van-field
|
|
|
- class="input-item picker-item"
|
|
|
- readonly
|
|
|
- clickable
|
|
|
- :value="reqFrom.registrationCodeName"
|
|
|
- input-align="right"
|
|
|
- label="注册标识"
|
|
|
- @click="showPicker_registrationCode = true"
|
|
|
- >
|
|
|
- <template #button>
|
|
|
- <i class="iconfont icon-zuo"></i>
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
- <van-popup v-model="showPicker_registrationCode" position="bottom">
|
|
|
- <van-picker
|
|
|
- show-toolbar
|
|
|
- :columns="dickData.yesOrNo"
|
|
|
- @confirm="(value) => onConfirm(value, 'registrationCode')"
|
|
|
- @cancel="showPicker_registrationCode = false"
|
|
|
- />
|
|
|
- </van-popup>
|
|
|
-
|
|
|
- <van-field
|
|
|
- class="input-item"
|
|
|
- v-model="reqFrom.registerAmount"
|
|
|
- label="*注册资金(万元)"
|
|
|
- input-align="right"
|
|
|
- placeholder="请填写"
|
|
|
- /><van-field
|
|
|
- class="input-item"
|
|
|
- label="*统一社会信用代码"
|
|
|
- input-align="right"
|
|
|
- placeholder="请填写"
|
|
|
- />
|
|
|
-
|
|
|
- <van-field
|
|
|
- class="input-item"
|
|
|
- readonly
|
|
|
- clickable
|
|
|
- input-align="right"
|
|
|
- name="datetimePicker"
|
|
|
- :value="reqFrom.registerTime"
|
|
|
- label="*注册时间"
|
|
|
- placeholder="请选择"
|
|
|
- @click="showPicker_registerTime = true"
|
|
|
- />
|
|
|
- <van-popup v-model="showPicker_registerTime" position="bottom">
|
|
|
- <van-datetime-picker
|
|
|
- type="date"
|
|
|
- @confirm="(value) => onDateConfirm(value, 'registerTime')"
|
|
|
- @cancel="showPicker_registerTime = false"
|
|
|
- />
|
|
|
- </van-popup>
|
|
|
-
|
|
|
- <van-field
|
|
|
- class="input-item"
|
|
|
- label="*法定代表"
|
|
|
- v-model="reqFrom.legalUser"
|
|
|
- input-align="right"
|
|
|
- placeholder="请填写"
|
|
|
- />
|
|
|
-
|
|
|
- <van-field
|
|
|
- class="input-item-warp input-item"
|
|
|
- label="*经营范围"
|
|
|
- v-model="reqFrom.manageRange"
|
|
|
- placeholder="请填写"
|
|
|
- />
|
|
|
- <van-field
|
|
|
- class="input-item-warp input-item"
|
|
|
- label="*注册地址"
|
|
|
- v-model="reqFrom.manageAddress"
|
|
|
- placeholder="请填写"
|
|
|
- style="margin-bottom: 1px"
|
|
|
- />
|
|
|
-
|
|
|
- <van-field
|
|
|
- class="input-item"
|
|
|
- label="*联系人"
|
|
|
- input-align="right"
|
|
|
- v-model="reqFrom.contacts"
|
|
|
- placeholder="请填写"
|
|
|
- />
|
|
|
- <van-field
|
|
|
- class="input-item"
|
|
|
- label="*联系电话"
|
|
|
- v-model="reqFrom.phone"
|
|
|
- input-align="right"
|
|
|
- placeholder="请填写"
|
|
|
- />
|
|
|
-
|
|
|
- <van-field
|
|
|
- class="input-item input-item-warp input-up"
|
|
|
- name="uploader"
|
|
|
- label="*营业执照副本"
|
|
|
- >
|
|
|
- <template #input>
|
|
|
- <van-uploader v-model="uploader" :after-read="afterRead" />
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
- </van-form>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="white-bottom">
|
|
|
- <div class="two-button">
|
|
|
- <div class="btn" @click="submit(1)">保存</div>
|
|
|
- <div class="btn" @click="submit(0)">提交</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- 弹框 -->
|
|
|
- <van-popup v-model="show1" class="tip-popup">
|
|
|
- <div class="popup-body">
|
|
|
- <div class="popup-header">
|
|
|
- <div class="title">消息</div>
|
|
|
- <div class="close" @click="show1 = false">
|
|
|
- <i class="iconfont icon-guanbi"></i>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="popup-center">
|
|
|
- 感谢您的入驻!您的申请已提交,请等待工作人员联系。您也可以通过我的-企业认证查看认证审核情况!
|
|
|
- </div>
|
|
|
- <div class="popup-foot">去查看</div>
|
|
|
- </div>
|
|
|
- </van-popup>
|
|
|
-
|
|
|
- <van-popup v-model="show2" class="tip-popup">
|
|
|
- <div class="popup-body">
|
|
|
- <div class="popup-header">
|
|
|
- <div class="title">消息</div>
|
|
|
- <div class="close" @click="show2 = false">
|
|
|
- <i class="iconfont icon-guanbi"></i>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="popup-center">
|
|
|
- 感谢您的入驻!您的申请已提交,请等待工作人员联系。您也可以通过我的-企业认证查看认证审核情况!
|
|
|
- </div>
|
|
|
- <div class="popup-foot">去查看</div>
|
|
|
- </div></van-popup
|
|
|
- >
|
|
|
- </div>
|
|
|
+ <div class="settleIn">
|
|
|
+ <div class="top-status">
|
|
|
+ <div class="left">
|
|
|
+ <span class="title">认证状态:</span>
|
|
|
+ <span class="normal-tip z-bg">{{ rzzt }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <span class="title">认证结果:</span>
|
|
|
+ <span class="normal-tip z-br">{{ shzt }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form-part">
|
|
|
+ <van-form>
|
|
|
+ <van-field
|
|
|
+ v-model="reqFrom.enterpriseName"
|
|
|
+ class="input-item"
|
|
|
+ input-align="right"
|
|
|
+ label="*企业名称"
|
|
|
+ placeholder="企业名称"
|
|
|
+ />
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ v-model="reqFrom.enterpriseCode"
|
|
|
+ class="input-item"
|
|
|
+ input-align="right"
|
|
|
+ label="*统一社会信用代码"
|
|
|
+ placeholder="请填写"
|
|
|
+ />
|
|
|
+ <!-- <van-field
|
|
|
+ class="input-item"
|
|
|
+ label="机构代码"
|
|
|
+ v-model="reqFrom.enterpriseCode"
|
|
|
+ input-align="right"
|
|
|
+ placeholder="机构代码"
|
|
|
+ /> -->
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ :value="reqFrom.enterpriseTypeName"
|
|
|
+ class="input-item picker-item"
|
|
|
+ clickable
|
|
|
+ input-align="right"
|
|
|
+ label="企业类型"
|
|
|
+ readonly
|
|
|
+ @click="showPicker_enterpriseType = true"
|
|
|
+ >
|
|
|
+ <template #button>
|
|
|
+ <i class="iconfont icon-zuo"></i>
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ <van-popup v-model="showPicker_enterpriseType" position="bottom">
|
|
|
+ <van-picker
|
|
|
+ :columns="dickData.enterpriseType"
|
|
|
+ show-toolbar
|
|
|
+ @cancel="showPicker_enterpriseType = false"
|
|
|
+ @confirm="(value) => onConfirm(value, 'enterpriseType')"
|
|
|
+ />
|
|
|
+ </van-popup>
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ :value="reqFrom.isHeadName"
|
|
|
+ class="input-item picker-item"
|
|
|
+ clickable
|
|
|
+ input-align="right"
|
|
|
+ label="是否总部"
|
|
|
+ readonly
|
|
|
+ @click="showPicker_isHead = true"
|
|
|
+ >
|
|
|
+ <template #button>
|
|
|
+ <i class="iconfont icon-zuo"></i>
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ <van-popup v-model="showPicker_isHead" position="bottom">
|
|
|
+ <van-picker
|
|
|
+ :columns="dickData.yesOrNo"
|
|
|
+ show-toolbar
|
|
|
+ @cancel="showPicker_isHead = false"
|
|
|
+ @confirm="(value) => onConfirm(value, 'isHead')"
|
|
|
+ />
|
|
|
+ </van-popup>
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ :value="reqFrom.isForeignName"
|
|
|
+ class="input-item picker-item"
|
|
|
+ clickable
|
|
|
+ input-align="right"
|
|
|
+ label="是否外资"
|
|
|
+ readonly
|
|
|
+ @click="showPicker_isForeign = true"
|
|
|
+ >
|
|
|
+ <template #button>
|
|
|
+ <i class="iconfont icon-zuo"></i>
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ <van-popup v-model="showPicker_isForeign" position="bottom">
|
|
|
+ <van-picker
|
|
|
+ :columns="dickData.yesOrNo"
|
|
|
+ show-toolbar
|
|
|
+ @cancel="showPicker_isForeign = false"
|
|
|
+ @confirm="(value) => onConfirm(value, 'isForeign')"
|
|
|
+ />
|
|
|
+ </van-popup>
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ :value="reqFrom.isImoutName"
|
|
|
+ class="input-item picker-item"
|
|
|
+ clickable
|
|
|
+ input-align="right"
|
|
|
+ label="是否进出口"
|
|
|
+ readonly
|
|
|
+ @click="showPicker_isImout = true"
|
|
|
+ >
|
|
|
+ <template #button>
|
|
|
+ <i class="iconfont icon-zuo"></i>
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ <van-popup v-model="showPicker_isImout" position="bottom">
|
|
|
+ <van-picker
|
|
|
+ :columns="dickData.yesOrNo"
|
|
|
+ show-toolbar
|
|
|
+ @cancel="showPicker_isImout = false"
|
|
|
+ @confirm="(value) => onConfirm(value, 'isImout')"
|
|
|
+ />
|
|
|
+ </van-popup>
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ :value="reqFrom.industryName"
|
|
|
+ class="input-item picker-item"
|
|
|
+ clickable
|
|
|
+ input-align="right"
|
|
|
+ label="行业类型"
|
|
|
+ readonly
|
|
|
+ @click="showPicker_industry = true"
|
|
|
+ >
|
|
|
+ <template #button>
|
|
|
+ <i class="iconfont icon-zuo"></i>
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ <van-popup v-model="showPicker_industry" position="bottom">
|
|
|
+ <van-picker
|
|
|
+ :columns="dickData.industry"
|
|
|
+ show-toolbar
|
|
|
+ @cancel="showPicker_industry = false"
|
|
|
+ @confirm="(value) => onConfirm(value, 'industry')"
|
|
|
+ />
|
|
|
+ </van-popup>
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ :value="reqFrom.registrationCodeName"
|
|
|
+ class="input-item picker-item"
|
|
|
+ clickable
|
|
|
+ input-align="right"
|
|
|
+ label="注册标识"
|
|
|
+ readonly
|
|
|
+ @click="showPicker_registrationCode = true"
|
|
|
+ >
|
|
|
+ <template #button>
|
|
|
+ <i class="iconfont icon-zuo"></i>
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ <van-popup v-model="showPicker_registrationCode" position="bottom">
|
|
|
+ <van-picker
|
|
|
+ :columns="dickData.yesOrNo"
|
|
|
+ show-toolbar
|
|
|
+ @cancel="showPicker_registrationCode = false"
|
|
|
+ @confirm="(value) => onConfirm(value, 'registrationCode')"
|
|
|
+ />
|
|
|
+ </van-popup>
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ v-model="reqFrom.registerAmount"
|
|
|
+ class="input-item"
|
|
|
+ input-align="right"
|
|
|
+ label="*注册资金(万元)"
|
|
|
+ placeholder="请填写"
|
|
|
+ />
|
|
|
+ <!-- <van-field
|
|
|
+ class="input-item"
|
|
|
+ v-model="reqFrom.socialCreditCode"
|
|
|
+ label="*统一社会信用代码"
|
|
|
+ input-align="right"
|
|
|
+ placeholder="请填写"
|
|
|
+ /> -->
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ :value="reqFrom.registerTime"
|
|
|
+ class="input-item"
|
|
|
+ clickable
|
|
|
+ input-align="right"
|
|
|
+ label="*注册时间"
|
|
|
+ name="datetimePicker"
|
|
|
+ placeholder="请选择"
|
|
|
+ readonly
|
|
|
+ @click="showPicker_registerTime = true"
|
|
|
+ />
|
|
|
+ <van-popup v-model="showPicker_registerTime" position="bottom">
|
|
|
+ <van-datetime-picker
|
|
|
+ type="date"
|
|
|
+ @cancel="showPicker_registerTime = false"
|
|
|
+ @confirm="(value) => onDateConfirm(value, 'registerTime')"
|
|
|
+ />
|
|
|
+ </van-popup>
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ v-model="reqFrom.legalUser"
|
|
|
+ class="input-item"
|
|
|
+ input-align="right"
|
|
|
+ label="*法定代表"
|
|
|
+ placeholder="请填写"
|
|
|
+ />
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ v-model="reqFrom.manageRange"
|
|
|
+ class="input-item-warp input-item"
|
|
|
+ label="*经营范围"
|
|
|
+ placeholder="请填写"
|
|
|
+ />
|
|
|
+ <van-field
|
|
|
+ v-model="reqFrom.manageAddress"
|
|
|
+ class="input-item-warp input-item"
|
|
|
+ label="*注册地址"
|
|
|
+ placeholder="请填写"
|
|
|
+ style="margin-bottom: 1px"
|
|
|
+ />
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ v-model="reqFrom.contacts"
|
|
|
+ class="input-item"
|
|
|
+ input-align="right"
|
|
|
+ label="*联系人"
|
|
|
+ placeholder="请填写"
|
|
|
+ />
|
|
|
+ <van-field
|
|
|
+ v-model="reqFrom.phone"
|
|
|
+ class="input-item"
|
|
|
+ input-align="right"
|
|
|
+ label="*联系电话"
|
|
|
+ placeholder="请填写"
|
|
|
+ />
|
|
|
+
|
|
|
+ <van-field
|
|
|
+ class="input-item input-item-warp input-up"
|
|
|
+ label="*营业执照副本"
|
|
|
+ name="uploader"
|
|
|
+ >
|
|
|
+ <template #input>
|
|
|
+ <van-uploader
|
|
|
+ v-model="componentsFileUrlList"
|
|
|
+ :after-read="afterRead"
|
|
|
+ :before-delete="beforeDelete"
|
|
|
+ :max-count="6"
|
|
|
+ :multiple="true"
|
|
|
+ ></van-uploader>
|
|
|
+ <!--<van-uploader v-model="uploader" :after-read="afterRead" />-->
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ </van-form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div v-if="this.reqFrom.state != 2" class="white-bottom">
|
|
|
+ <div class="two-button">
|
|
|
+ <!-- 1 -->
|
|
|
+ <div v-if="this.reqFrom.state != 3" class="btn" @click="submit(1)">
|
|
|
+ 保存
|
|
|
+ </div>
|
|
|
+ <div v-if="this.reqFrom.state != 3" class="btn" @click="submit(2)">
|
|
|
+ 提交
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 3 -->
|
|
|
+ <div
|
|
|
+ v-if="this.reqFrom.state == 3 && this.reqFrom.isSava == 1"
|
|
|
+ class="btn"
|
|
|
+ style="margin-right: 0"
|
|
|
+ @click="submit(2)"
|
|
|
+ >
|
|
|
+ 变更提交
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="this.reqFrom.state == 3 && this.reqFrom.isSava == 2"
|
|
|
+ class="btn"
|
|
|
+ style="margin-right: 0"
|
|
|
+ @click="submit(1)"
|
|
|
+ >
|
|
|
+ 重新提交
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 弹框 -->
|
|
|
+ <!-- <van-popup v-model="show1" class="tip-popup">
|
|
|
+ <div class="popup-body">
|
|
|
+ <div class="popup-header">
|
|
|
+ <div class="title">消息</div>
|
|
|
+ <div class="close" @click="show1 = false">
|
|
|
+ <i class="iconfont icon-guanbi"></i>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="popup-center">
|
|
|
+ 您的申请已保存, 管理员将不会收到你的信息, 如需提交请点击提交按钮!
|
|
|
+ </div>
|
|
|
+ <div class="popup-foot">去查看</div>
|
|
|
+ </div>
|
|
|
+ </van-popup> -->
|
|
|
+ <van-popup v-model="show2" class="tip-popup">
|
|
|
+ <div class="popup-body">
|
|
|
+ <div class="popup-header">
|
|
|
+ <div class="title">消息</div>
|
|
|
+ <div class="close" @click="show2 = false">
|
|
|
+ <i class="iconfont icon-guanbi"></i>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="popup-center">
|
|
|
+ 感谢您的入驻!您的申请已提交,请等待工作人员联系。您也可以通过我的-企业认证查看认证审核情况!
|
|
|
+ </div>
|
|
|
+ <div class="popup-foot" @click="$router.go(-1)">返回首页</div>
|
|
|
+ </div>
|
|
|
+ </van-popup
|
|
|
+ >
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import Base from "@/pages/base/base";
|
|
|
-import { reserve, getProveDetial } from "@/api/parkProve";
|
|
|
+import { Toast } from 'vant'
|
|
|
+import Base from '@/pages/base/base'
|
|
|
+import { getProveDetial, reserve } from '@/api/parkProve'
|
|
|
+import axios from 'axios'
|
|
|
+import auth from '@/service/auth'
|
|
|
+
|
|
|
export default {
|
|
|
- mixins: [Base],
|
|
|
- data() {
|
|
|
- return {
|
|
|
- //登陆人Id
|
|
|
- createdId: "1",
|
|
|
- proveType: "1",
|
|
|
-
|
|
|
- reqFrom: {},
|
|
|
- dc_key: ["yesOrNo", "industry", "enterpriseType"],
|
|
|
- dickData: {},
|
|
|
- showPicker_enterpriseType: false,
|
|
|
- showPicker_isHead: false,
|
|
|
- showPicker_isForeign: false,
|
|
|
- showPicker_isImout: false,
|
|
|
- showPicker_industry: false,
|
|
|
- showPicker_registrationCode: false,
|
|
|
- showPicker_registerTime: false,
|
|
|
- show1: false,
|
|
|
- show2: false,
|
|
|
- uploader: [{ url: "https://img01.yzcdn.cn/vant/leaf.jpg" }],
|
|
|
- };
|
|
|
- },
|
|
|
-
|
|
|
- mounted() {
|
|
|
- this.initDict(this.dc_key).then((res) => {
|
|
|
- this.initDickData();
|
|
|
- this.getParkProve();
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
- methods: {
|
|
|
- onConfirm(value, type) {
|
|
|
- this.reqFrom[type + "Name"] = value.text;
|
|
|
- this.reqFrom[type] = value.value;
|
|
|
- this["showPicker_" + type] = false;
|
|
|
- },
|
|
|
- onDateConfirm(value, type) {
|
|
|
- this.reqFrom[type] = this.dateFormat("YYYY-mm-dd", value);
|
|
|
- this["showPicker_" + type] = false;
|
|
|
- },
|
|
|
- //处理字典数据
|
|
|
- initDickData() {
|
|
|
- this.dc_key.forEach((element) => {
|
|
|
- let itemData = [];
|
|
|
- this.dc_data[element].forEach((item) => {
|
|
|
- item.text = item.label;
|
|
|
- itemData.push(item);
|
|
|
- });
|
|
|
- this.dickData[element] = itemData;
|
|
|
- });
|
|
|
- },
|
|
|
- dateFormat(fmt, date) {
|
|
|
- let ret;
|
|
|
- const opt = {
|
|
|
- "Y+": date.getFullYear().toString(), // 年
|
|
|
- "m+": (date.getMonth() + 1).toString(), // 月
|
|
|
- "d+": date.getDate().toString(), // 日
|
|
|
- "H+": date.getHours().toString(), // 时
|
|
|
- "M+": date.getMinutes().toString(), // 分
|
|
|
- "S+": date.getSeconds().toString(), // 秒
|
|
|
- };
|
|
|
- for (let k in opt) {
|
|
|
- ret = new RegExp("(" + k + ")").exec(fmt);
|
|
|
- if (ret) {
|
|
|
- fmt = fmt.replace(
|
|
|
- ret[1],
|
|
|
- ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, "0")
|
|
|
- );
|
|
|
- }
|
|
|
- }
|
|
|
- return fmt;
|
|
|
- },
|
|
|
- afterRead(file) {
|
|
|
- console.log("回调文件——:", file);
|
|
|
- let formData = new FormData();
|
|
|
- formData.file = file.file;
|
|
|
- uploadFile(formData).then((res) => {
|
|
|
- console.log("上传文件回调_:", res);
|
|
|
- // console.log(res.data)
|
|
|
- // this.brietData = res.data
|
|
|
- // this.context = res.data.content
|
|
|
- let imgs = JSON.parse(this.uploader);
|
|
|
- this.reqFrom.businessLicense = imgs;
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
- //提交
|
|
|
- submit(isSava) {
|
|
|
- this.reqFrom.isSava = isSava;
|
|
|
- this.reqFrom.createdId = this.createdId;
|
|
|
- this.reqFrom.proveType = this.proveType;
|
|
|
- reserve(this.reqFrom).then((res) => {
|
|
|
- if (res.key == 200) {
|
|
|
- if (isSava == 0) {
|
|
|
- this.show2 = true;
|
|
|
- } else {
|
|
|
- this.show1 = true;
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
- //获取认证信息
|
|
|
- getParkProve() {
|
|
|
- let reqData = {
|
|
|
- userId: this.createdId,
|
|
|
- };
|
|
|
- getProveDetial(reqData).then((res) => {
|
|
|
- console.log("详情——:", res);
|
|
|
- if (res.data) {
|
|
|
- this.proveType = "2";
|
|
|
- this.getItemJson(res.data);
|
|
|
- } else {
|
|
|
- this.proveType = "1";
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
- getItemJson(item) {
|
|
|
- item.industryName = this.dc_map.industry[item.industry];
|
|
|
- item.enterpriseTypeName = this.dc_map.enterpriseType[item.enterpriseType];
|
|
|
- item.isHeadName = this.dc_map.yesOrNo[item.isHead];
|
|
|
- item.isImoutName = this.dc_map.yesOrNo[item.isImout];
|
|
|
- item.isForeignName = this.dc_map.yesOrNo[item.isForeign];
|
|
|
- item.registrationCodeName = this.dc_map.yesOrNo[item.registrationCode];
|
|
|
- this.reqFrom = item;
|
|
|
- },
|
|
|
- },
|
|
|
-};
|
|
|
+ mixins: [Base],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ myFileList: [],
|
|
|
+ // 登陆人Id
|
|
|
+ currUser: {},
|
|
|
+ createdId: '5',
|
|
|
+ proveType: '1',
|
|
|
+ componentsFileUrlList: [],
|
|
|
+ groupId: '870261874875170816',
|
|
|
+ // buttonDisabled: false,
|
|
|
+ fileUrlList: [],
|
|
|
+ reqFrom: {},
|
|
|
+ dc_key: ['yesOrNo', 'industry', 'enterpriseType'],
|
|
|
+ dickData: {},
|
|
|
+ showPicker_enterpriseType: false,
|
|
|
+ showPicker_isHead: false,
|
|
|
+ showPicker_isForeign: false,
|
|
|
+ showPicker_isImout: false,
|
|
|
+ showPicker_industry: false,
|
|
|
+ showPicker_registrationCode: false,
|
|
|
+ showPicker_registerTime: false,
|
|
|
+ // show1: false,
|
|
|
+ show2: false,
|
|
|
+ uploader: [],
|
|
|
+ rzzt: '',
|
|
|
+ shzt: ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ mounted() {
|
|
|
+ this.currUser = auth.currUser()
|
|
|
+ this.createdId = this.currUser.id
|
|
|
+
|
|
|
+ this.initDict(this.dc_key).then((res) => {
|
|
|
+ this.initDickData()
|
|
|
+ this.getParkProve()
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ methods: {
|
|
|
+ beforeDelete(file, detail) {
|
|
|
+ // this.handleImagUrlList = []
|
|
|
+ console.log(file, detail)
|
|
|
+ const vm = this
|
|
|
+ // name.index代表图片的索引
|
|
|
+ vm.myFileList.splice(detail.index, 1)
|
|
|
+ return (file, name) => {
|
|
|
+ const fileIndex = name.index
|
|
|
+ vm.myFileList[detail.index].splice(fileIndex, 1)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onConfirm(value, type) {
|
|
|
+ this.reqFrom[type + 'Name'] = value.text
|
|
|
+ this.reqFrom[type] = value.value
|
|
|
+ this['showPicker_' + type] = false
|
|
|
+ },
|
|
|
+ onDateConfirm(value, type) {
|
|
|
+ this.reqFrom[type] = this.dateFormat('YYYY-mm-dd', value)
|
|
|
+ this['showPicker_' + type] = false
|
|
|
+ },
|
|
|
+ // 处理字典数据
|
|
|
+ initDickData() {
|
|
|
+ this.dc_key.forEach((element) => {
|
|
|
+ const itemData = []
|
|
|
+ this.dc_data[element].forEach((item) => {
|
|
|
+ item.text = item.label
|
|
|
+ itemData.push(item)
|
|
|
+ })
|
|
|
+ this.dickData[element] = itemData
|
|
|
+ })
|
|
|
+ },
|
|
|
+ dateFormat(fmt, date) {
|
|
|
+ let ret
|
|
|
+ const opt = {
|
|
|
+ 'Y+': date.getFullYear().toString(), // 年
|
|
|
+ 'm+': (date.getMonth() + 1).toString(), // 月
|
|
|
+ 'd+': date.getDate().toString(), // 日
|
|
|
+ 'H+': date.getHours().toString(), // 时
|
|
|
+ 'M+': date.getMinutes().toString(), // 分
|
|
|
+ 'S+': date.getSeconds().toString() // 秒
|
|
|
+ }
|
|
|
+ for (const k in opt) {
|
|
|
+ ret = new RegExp('(' + k + ')').exec(fmt)
|
|
|
+ if (ret) {
|
|
|
+ fmt = fmt.replace(
|
|
|
+ ret[1],
|
|
|
+ ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return fmt
|
|
|
+ },
|
|
|
+ async afterRead(file) {
|
|
|
+ const myFileList = []
|
|
|
+ const data = await this.$common.uploadImg(file)
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
+ myFileList.push(data[i])
|
|
|
+ }
|
|
|
+ console.log(myFileList)
|
|
|
+ this.myFileList = myFileList
|
|
|
+ this.$forceUpdate()
|
|
|
+ },
|
|
|
+
|
|
|
+ // 上传文件
|
|
|
+ uploadImg(file) {
|
|
|
+ const _this = this
|
|
|
+ const formParam = new FormData() // 创建form对象
|
|
|
+ formParam.append('file', file.file) // 通过append向form对象添加数据
|
|
|
+ console.log(formParam.get('file')) // FormData私有类对象,访问不到,可以通过get判断值是否传进去
|
|
|
+ const config = {
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'multipart/form-data',
|
|
|
+ 'MVVM-Key': String(new Date().getTime()),
|
|
|
+ xx: 'anything'
|
|
|
+ } // 这里是重点,需要和后台沟通好请求头,Content-Type不一定是这个值
|
|
|
+ } // 添加请求头
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ axios
|
|
|
+ .post(
|
|
|
+ '/smartParkH5Server/wx/fileController/upload',
|
|
|
+ formParam,
|
|
|
+ config
|
|
|
+ )
|
|
|
+ .then((response) => {
|
|
|
+ console.log(response)
|
|
|
+ let files = response.data.data[0].substring(
|
|
|
+ 1,
|
|
|
+ response.data.data.length
|
|
|
+ )
|
|
|
+ files = files.substring(0, files.length - 1)
|
|
|
+ const fileItem = _this.$common.castEval(files)
|
|
|
+ fileItem.isImage = true
|
|
|
+ // console.log("图片长度——:", _this.uploader.length)
|
|
|
+ _this.uploader[_this.uploader.length - 1] = fileItem
|
|
|
+ console.log('图片上传——:', _this.uploader)
|
|
|
+ // _this.uploader.push(fileItem)
|
|
|
+ // console.log("图片上传——:", _this.fileUrlList)
|
|
|
+ // console.log("图片上传2——:",JSON.stringify(_this.fileUrlList));
|
|
|
+ })
|
|
|
+ .catch((err, x) => {
|
|
|
+ reject(err, x)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ // 提交
|
|
|
+ submit(state) {
|
|
|
+ // if(this.buttonDisabled){
|
|
|
+ // Toast("请先等待管理人员审核!");
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ this.reqFrom.state = state
|
|
|
+ this.reqFrom.createdId = this.createdId
|
|
|
+ this.reqFrom.proveType = this.proveType
|
|
|
+ this.reqFrom.groupId = this.groupId
|
|
|
+ this.reqFrom.businessLicense = this.myFileList.join(',')
|
|
|
+ reserve(this.reqFrom).then((res) => {
|
|
|
+ if (res.key == 200) {
|
|
|
+ this.getParkProve()
|
|
|
+ if (state == 1) {
|
|
|
+ // this.show1 = true;
|
|
|
+ Toast('保存成功!')
|
|
|
+ } else {
|
|
|
+ this.show2 = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ // 获取认证信息
|
|
|
+ getParkProve() {
|
|
|
+ const reqData = {
|
|
|
+ userId: this.createdId
|
|
|
+ }
|
|
|
+ getProveDetial(reqData).then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ this.getItemJson(res.data)
|
|
|
+ // if(null == this.reqFrom.state || 0 == this.reqFrom.state || undefined == this.reqFrom.state){
|
|
|
+ // this.buttonDisabled = true;
|
|
|
+ // }else{
|
|
|
+ // this.buttonDisabled = false;
|
|
|
+ // }
|
|
|
+ this.rzzt = this.reqFrom.stateDesc
|
|
|
+ this.shzt = this.reqFrom.resultDesc
|
|
|
+ if (this.reqFrom.state == '1') this.shzt = ''
|
|
|
+ if (this.reqFrom.state == '3') {
|
|
|
+ if (this.reqFrom.isSava == '1') this.proveType = '2'
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.rzzt = ''
|
|
|
+ this.shzt = ''
|
|
|
+ // this.proveType = "1";
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ getItemJson(item) {
|
|
|
+ item.industryName = this.dc_map.industry[item.industry]
|
|
|
+ item.enterpriseTypeName = this.dc_map.enterpriseType[item.enterpriseType]
|
|
|
+ item.isHeadName = this.dc_map.yesOrNo[item.isHead]
|
|
|
+ item.isImoutName = this.dc_map.yesOrNo[item.isImout]
|
|
|
+ item.isForeignName = this.dc_map.yesOrNo[item.isForeign]
|
|
|
+ item.registrationCodeName = this.dc_map.yesOrNo[item.registrationCode]
|
|
|
+ this.reqFrom = item
|
|
|
+ this.componentsFileUrlList = item.businessLicense.split(',').map((e) => {
|
|
|
+ return {
|
|
|
+ url: process.env.VUE_APP_API_URL + '/FileController/download/' + e,
|
|
|
+ isImage: true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(this.componentsFileUrlListe)
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" type="text/scss" scoped>
|
|
|
+<style lang="scss" scoped type="text/scss">
|
|
|
.settleIn {
|
|
|
- padding: 0 0 140px;
|
|
|
- overflow-y: auto;
|
|
|
- .form-part {
|
|
|
- padding: 10px 0;
|
|
|
- }
|
|
|
+ padding: 0 0 140px;
|
|
|
+ overflow-y: auto;
|
|
|
+
|
|
|
+ .form-part {
|
|
|
+ padding: 10px 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .top-status {
|
|
|
+ padding: 30px;
|
|
|
+ background: #fff;
|
|
|
+ @include flex;
|
|
|
+
|
|
|
+ .left,
|
|
|
+ .right {
|
|
|
+ @include flex;
|
|
|
+
|
|
|
+ .title {
|
|
|
+ font-size: 28px;
|
|
|
+ color: #333;
|
|
|
+ }
|
|
|
+
|
|
|
+ .normal-tip {
|
|
|
+ font-size: 26px;
|
|
|
+ line-height: 50px;
|
|
|
+ padding: 0 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|