Commit c3ae393c by Jianli Ou

bug处理

parent df4760e5
...@@ -51,27 +51,32 @@ export default { ...@@ -51,27 +51,32 @@ export default {
this.uploading = false this.uploading = false
}, },
uploadEvent() { uploadEvent() {
let inputObj = null this.$confirm('请核对企业信息。提交后,在管理员审核完成前,不能修改。', '提示', {
if (!document.getElementById('file')) { confirmButtonText: '确定',
inputObj = document.createElement('input') cancelButtonText: '取消'
inputObj.setAttribute('id', 'file') }).then(() => {
inputObj.setAttribute('type', 'file') let inputObj = null
inputObj.setAttribute('name', 'file') if (!document.getElementById('file')) {
inputObj.setAttribute('style', 'visibility:hidden') inputObj = document.createElement('input')
document.body.appendChild(inputObj) inputObj.setAttribute('id', 'file')
const that = this inputObj.setAttribute('type', 'file')
document.querySelector('#file').addEventListener('change', () => { inputObj.setAttribute('name', 'file')
const fileObj = document.getElementById('file').files[0] inputObj.setAttribute('style', 'visibility:hidden')
let form = new FormData() // FormData 对象 document.body.appendChild(inputObj)
form.append('file', fileObj) // 文件对象 const that = this
form.append('id', that.tycpdmFirmInfo.status === 1 ? that.tycpdmFirmInfo.fid : that.tycpdmFirmInfo.id) document.querySelector('#file').addEventListener('change', () => {
form.append('status', that.tycpdmFirmInfo.status) const fileObj = document.getElementById('file').files[0]
this.upload(form) let form = new FormData() // FormData 对象
}) form.append('file', fileObj) // 文件对象
} else { form.append('id', that.tycpdmFirmInfo.status === 1 ? that.tycpdmFirmInfo.fid : that.tycpdmFirmInfo.id)
inputObj = document.getElementById('file') form.append('status', that.tycpdmFirmInfo.status)
} this.upload(form)
inputObj.click() })
} else {
inputObj = document.getElementById('file')
}
inputObj.click()
}).catch(() => {});
}, },
async getTycpdmFirmInfo() { async getTycpdmFirmInfo() {
const result = await this.$api.myManage.tycpdmFirmInfo({userName: this.memberInfo.username}) const result = await this.$api.myManage.tycpdmFirmInfo({userName: this.memberInfo.username})
......
<template> <template>
<div class="container2" v-loading="uploading"> <div class="container2" v-loading="uploading">
<div class="header"> <div v-if="status === 2" class="header">
<p><i class="bi bi-exclamation-triangle-fill"></i>注:若您只是变更了不需要审核的信息(请查看 <a href="/MyManage/UnVerify/vendorModify">修改企业信息</a>),系统会默认通过审核。</p>
</div>
<div v-else class="header">
<p><i class="bi bi-exclamation-triangle-fill"></i>厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证)</p> <p><i class="bi bi-exclamation-triangle-fill"></i>厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证)</p>
</div> </div>
<div class="content"> <div class="content">
...@@ -34,6 +37,7 @@ ...@@ -34,6 +37,7 @@
prop='firmName1' prop='firmName1'
> >
<el-input v-model='form.firmName1' autocomplete='off' placeholder="请输入企业英文名称"></el-input> <el-input v-model='form.firmName1' autocomplete='off' placeholder="请输入企业英文名称"></el-input>
<span class="form-item-tip">对俄罗斯出口的企业,本项必填!</span>
</el-form-item> </el-form-item>
<el-form-item label='注册地址:' <el-form-item label='注册地址:'
prop='registerAddress' prop='registerAddress'
...@@ -199,8 +203,17 @@ ...@@ -199,8 +203,17 @@
required: true, required: true,
message: '不能为空', message: '不能为空',
}]"> }]">
<el-input v-model='form.firmBusinessLicenseFile' autocomplete='off' type="file" style="display:none"></el-input> <el-input v-model='form.firmBusinessLicenseFile' autocomplete='off' style="display:none"></el-input>
<el-button @click="uploadEvent" type="primary" style="width: 110px;height: 36px;">上传</el-button> <el-button @click="uploadEvent" type="primary" style="width: 110px;height: 36px;">上传</el-button><br/>
<span style="margin-right: 15px;cursor: pointer;color: #0D6EFD;">查看历史上传文件</span>
<el-popover
placement="bottom"
width="300"
trigger="hover"
v-model="uploadTipVisible">
<span slot="reference" style="cursor:pointer;">必须为清晰彩色原件扫描件或数码照,必须...</span>
必须为清晰彩色原件扫描件或数码照,必须在有效期内且年检章齐全(当年成立的公司可无年检章),支持png,bmp,jpg格式,大小不得超过3M
</el-popover>
</el-form-item> </el-form-item>
<p class="content-from-title">经办人信息填报</p> <p class="content-from-title">经办人信息填报</p>
...@@ -276,6 +289,12 @@ ...@@ -276,6 +289,12 @@
<t-j-dm-select @cancel="dialogVisible = false" :initSelect="form.TJDm" @confirm="confirmEvent"/> <t-j-dm-select @cancel="dialogVisible = false" :initSelect="form.TJDm" @confirm="confirmEvent"/>
</div> </div>
</el-dialog> </el-dialog>
<el-image
id="image"
style="width: 10px; height: 10px;opacity: 0;"
:src="imagePreview.url"
:preview-src-list="imagePreview.srcList">
</el-image>
</div> </div>
</template> </template>
...@@ -291,8 +310,13 @@ export default { ...@@ -291,8 +310,13 @@ export default {
return { return {
dialogVisible: false, dialogVisible: false,
uploading: false, uploading: false,
uploadTipVisible: false,
loginInfo: {}, loginInfo: {},
memberInfo: {}, memberInfo: {},
imagePreview: {
url: '',
srcList: []
},
hasSent: false, hasSent: false,
timer: null, timer: null,
time: 60, time: 60,
...@@ -671,6 +695,13 @@ export default { ...@@ -671,6 +695,13 @@ export default {
} }
} }
} }
.form-item-tip {
position: absolute;
margin: 10px 0 0 5px;
width: 200px;
font-size: 13px;
color: #F56C6C;
}
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
@media (max-width: 768px) { @media (max-width: 768px) {
......
<template> <template>
<div class="container2" v-loading="uploading"> <div class="container2" v-loading="uploading">
<div class="header">
<p><i class="bi bi-exclamation-triangle-fill"></i>注:若需对以下不可编辑的信息进行修改,必须申请 <a href="/MyManage/UnVerify/vendor">变更厂商实名认证信息 。</a></p>
</div>
<div class="content"> <div class="content">
<div class="title"> <div class="title">
修改企业信息 <a href="/MyManage/UnVerify/vendor">变更厂商实名认证信息</a> 修改企业信息 <a href="/MyManage/UnVerify/vendor">变更厂商实名认证信息</a>
......
...@@ -131,20 +131,26 @@ export default { ...@@ -131,20 +131,26 @@ export default {
}, },
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "修改登录密码", name: "企业信息",
index: 1, index: 1,
link: '/MyManage/SystemMember/companyInfo'
},
{
id: uuid("gs_nav"),
name: "修改登录密码",
index: 2,
link: "/MyManage/UnVerify/changePass", link: "/MyManage/UnVerify/changePass",
}, },
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "修改手机号码", name: "修改手机号码",
index: 2, index: 3,
link: "/MyManage/UnVerify/changePhone", link: "/MyManage/UnVerify/changePhone",
}, },
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "变更企业信息", name: "变更企业信息",
index: 1, index: 4,
link: "/MyManage/UnVerify/vendor", link: "/MyManage/UnVerify/vendor",
}, },
], ],
...@@ -185,34 +191,24 @@ export default { ...@@ -185,34 +191,24 @@ export default {
adminBranchRouterList: [ adminBranchRouterList: [
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "业务审核", name: "实名认证业务审核",
index: 0, index: 0,
link: "/MyManage/admin/check", link: "",
}, children: [
// { {
// id: uuid("gs_nav"), id: uuid("gs_nav"),
// name: "统一产品编码", name: "企业实名认证",
// index: 1, index: 0,
// link: "/MyManage/admin/code", link: "/MyManage/admin/check",
// }, },
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "审核状态修改", name: "企业实名认证变更",
index: 2, index: 1,
link: "/MyManage/admin/status_change", link: "/MyManage/admin/check",
}, },
{ ],
id: uuid("gs_nav"), }
name: "企业信息修改",
index: 3,
link: "/MyManage/admin/ent_info",
},
{
id: uuid("gs_nav"),
name: "日志查看",
index: 4,
link: "/MyManage/admin/log",
},
], ],
userType: ADMIN, userType: ADMIN,
loginInfo: JSON.parse(localStorage.getItem('loginInfo')) loginInfo: JSON.parse(localStorage.getItem('loginInfo'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment