Commit 62707bf3 by tang

Merge remote-tracking branch 'origin/master'

parents 49f96980 3442ed21
...@@ -58,6 +58,10 @@ const tycpdmfirmupdateSystem = (params = {}) => { ...@@ -58,6 +58,10 @@ const tycpdmfirmupdateSystem = (params = {}) => {
const tycpdmfirmReturnFile = (params = {}) => { const tycpdmfirmReturnFile = (params = {}) => {
return `${hostUrl}/office/tycpdmfirm/api/returnFile?status=${params.status}&fileType=${params.fileType}&id=${params.id}` return `${hostUrl}/office/tycpdmfirm/api/returnFile?status=${params.status}&fileType=${params.fileType}&id=${params.id}`
} }
// 获取认证图片是否存在接口
const tycpdmfirmReturnFileIsExistence = (params = {}) => {
return POST(`${hostUrl}/office/tycpdmfirm/authApi/returnFileUrl`, params)
}
// 个人中心首页 业务大厅页面跳转 // 个人中心首页 业务大厅页面跳转
const redirectYWDT = (params = {}) => { const redirectYWDT = (params = {}) => {
return POST(`${Prefix}/office/tycpdmfirm/authApi/redirectBusinessHall`, params) return POST(`${Prefix}/office/tycpdmfirm/authApi/redirectBusinessHall`, params)
...@@ -100,6 +104,7 @@ export default { ...@@ -100,6 +104,7 @@ export default {
tycpdmfirmChangeAuditList, tycpdmfirmChangeAuditList,
tycpdmfirmupdateSystem, tycpdmfirmupdateSystem,
tycpdmfirmReturnFile, tycpdmfirmReturnFile,
tycpdmfirmReturnFileIsExistence,
redirectYWDT, redirectYWDT,
redirectGDS, redirectGDS,
redirectGLN, redirectGLN,
......
...@@ -187,7 +187,7 @@ export default { ...@@ -187,7 +187,7 @@ export default {
async getFaqListByTypeName() { async getFaqListByTypeName() {
const params = { const params = {
typeName: this.search.typeName, typeName: this.search.typeName,
name: this.search.name, cxnr: this.search.name,
pageNo: this.pageParams.currPage, pageNo: this.pageParams.currPage,
pageSize: this.pageParams.pageSize, pageSize: this.pageParams.pageSize,
}; };
......
...@@ -501,7 +501,15 @@ export default { ...@@ -501,7 +501,15 @@ export default {
const filterFields = ['firmbusinesslicensefile', 'firmArchivesfile'] const filterFields = ['firmbusinesslicensefile', 'firmArchivesfile']
this.entInfoFields.forEach(item => (item.key && filterFields.indexOf(item.key) < 0) && (item.value = this.detailInfo[item.key])) this.entInfoFields.forEach(item => (item.key && filterFields.indexOf(item.key) < 0) && (item.value = this.detailInfo[item.key]))
this.handlerInfoFields.forEach(item => (item.key && filterFields.indexOf(item.key) < 0) && (item.value = this.detailInfo[item.key])) this.handlerInfoFields.forEach(item => {
if (item.key && filterFields.indexOf(item.key) < 0) {
if (item.key === 'contactmanctqh') {
item.value = this.detailInfo[item.key] + '-' + this.detailInfo['contactmantele']
} else {
item.value = this.detailInfo[item.key]
}
}
})
this.businessFields.forEach(item => item.key && (item.value = this.detailInfo[item.key])) this.businessFields.forEach(item => item.key && (item.value = this.detailInfo[item.key]))
} }
}, },
......
...@@ -200,6 +200,7 @@ export default { ...@@ -200,6 +200,7 @@ export default {
handleBack() { handleBack() {
this.checkDetail = null this.checkDetail = null
this.getAuditList() this.getAuditList()
this.$emit('refresh')
}, },
handleEntNameCheck(row) { handleEntNameCheck(row) {
console.log(row) console.log(row)
......
...@@ -339,8 +339,8 @@ export default { ...@@ -339,8 +339,8 @@ export default {
this.branchList.length > 0 && (this.form.branchCode = this.branchList[0].value) this.branchList.length > 0 && (this.form.branchCode = this.branchList[0].value)
}, },
async getTycpdmFirmInfo() { async getTycpdmFirmInfo() {
const result = await this.$api.myManage.tycpdmFirmInfo({userName: this.memberInfo.username}) const result = await this.$api.myManage.tycpdmFirmInfoNoAuth({name: this.memberInfo.username})
const tycpdmFirmInfo = result.data.data const tycpdmFirmInfo = result.data
this.initFormData(tycpdmFirmInfo) this.initFormData(tycpdmFirmInfo)
}, },
async getMemberInfo() { async getMemberInfo() {
......
...@@ -91,7 +91,8 @@ export default { ...@@ -91,7 +91,8 @@ export default {
name: "index", name: "index",
data() { data() {
return { return {
loginInfo: {} loginInfo: {},
isShowGDS: false
} }
}, },
methods: { methods: {
...@@ -105,7 +106,7 @@ export default { ...@@ -105,7 +106,7 @@ export default {
} }
}, },
async redirectGDS() { async redirectGDS() {
const params = {userType: this.loginInfo.userType, id: this.loginInfo.id} const params = {userType: this.loginInfo.userType, id: this.loginInfo.id, carno: this.loginInfo.carno}
const result = await this.$api.myManage.redirectGDS(params) const result = await this.$api.myManage.redirectGDS(params)
if (result.success) { if (result.success) {
window.open(result.data, '_black') window.open(result.data, '_black')
...@@ -114,8 +115,13 @@ export default { ...@@ -114,8 +115,13 @@ export default {
} }
} }
}, },
initIsShowGDS() {
if (this.loginInfo.carno) this.isShowGDS = true // 有条码卡号可以进行GDS跳转
if (this.loginInfo.isQY) this.isShowGDS = true // 官网用户已进行实名厂商认证可以进行GDS跳转
},
mounted() { mounted() {
this.loginInfo = JSON.parse(localStorage.getItem('loginInfo')) this.loginInfo = JSON.parse(localStorage.getItem('loginInfo'))
this.initIsShowGDS()
} }
} }
</script> </script>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<ul> <ul>
<li> <li>
<p class="content-title">商品条码相关业务</p> <p class="content-title">商品条码相关业务</p>
<p>请直接登录<a @click="redirectYWDT">网上业务大厅</a>办理商品条码</p> <p>请直接登录<a @click="redirectYWDT">网上业务大厅</a>办理商品条码</p>
</li> </li>
<!-- 厂商实名认证已认证 --> <!-- 厂商实名认证已认证 -->
<li v-if="loginInfo.isQY === 1"> <li v-if="loginInfo.isQY === 1">
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<i class="bi bi-check-circle-fill"></i <i class="bi bi-check-circle-fill"></i
>您已成为中国物品编码中心实名认证企业! >您已成为中国物品编码中心实名认证企业!
</p> </p>
<p style="padding-left:24px"> <p v-if="isShowGDS" style="padding-left:24px">
您可以——前往 您可以——前往
<a @click="redirectGDS">中国商品信息服务平台</a> <a @click="redirectGDS">中国商品信息服务平台</a>
办理 办理
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<p class="list-cnt"> <p class="list-cnt">
快速申请、维护GLN信息,并对外提供GLN信息查询验证。帮助企业在EDI、GDSN、海关、追溯等应用场景中,有效识别企业主体与地理位置等信息。 快速申请、维护GLN信息,并对外提供GLN信息查询验证。帮助企业在EDI、GDSN、海关、追溯等应用场景中,有效识别企业主体与地理位置等信息。
</p> </p>
<div class="list-img row"> <div v-if="!tycpdmFirmInfo || (tycpdmFirmInfo.logoutFlag === -1 || tycpdmFirmInfo.logoutFlag === null)" class="list-img row">
<div class="img-p col-lg-4"> <div class="img-p col-lg-4">
<a href="/MyManage/UnVerify/vendor"> <a href="/MyManage/UnVerify/vendor">
<img src="../../../assets/image/mymanage/tx.png" alt="" /> <img src="../../../assets/image/mymanage/tx.png" alt="" />
...@@ -57,13 +57,13 @@ ...@@ -57,13 +57,13 @@
</a> </a>
</div> </div>
<div class="img-p col-lg-4"> <div class="img-p col-lg-4">
<a href="/MyManage/UnVerify/uploadvendor"> <a href="/MyManage/UnVerify/vendor">
<img src="../../../assets/image/mymanage/tj.png" alt="" /> <img src="../../../assets/image/mymanage/tj.png" alt="" />
<p>提交书面材料</p> <p>提交书面材料</p>
</a> </a>
</div> </div>
<div class="img-p col-lg-4"> <div class="img-p col-lg-4">
<a href="/MyManage/UnVerify/shvendor"> <a href="/MyManage/UnVerify/vendor">
<img src="../../../assets/image/mymanage/sh.png" alt="" /> <img src="../../../assets/image/mymanage/sh.png" alt="" />
<p>审核状态</p> <p>审核状态</p>
</a> </a>
...@@ -142,6 +142,9 @@ export default { ...@@ -142,6 +142,9 @@ export default {
name: "index", name: "index",
data () { data () {
return { return {
isShowGDS: false,
memberInfo: {},
tycpdmFirmInfo: {},
loginInfo: { loginInfo: {
carno: '', // 条码卡号 carno: '', // 条码卡号
id: 16, // 用户ID id: 16, // 用户ID
...@@ -163,7 +166,7 @@ export default { ...@@ -163,7 +166,7 @@ export default {
} }
}, },
async redirectGDS() { async redirectGDS() {
const params = {userType: this.loginInfo.userType, id: this.loginInfo.id} const params = {userType: this.loginInfo.userType, id: this.loginInfo.id, carno: this.loginInfo.carno}
const result = await this.$api.myManage.redirectGDS(params) const result = await this.$api.myManage.redirectGDS(params)
if (result.success) { if (result.success) {
window.open(result.data, '_black') window.open(result.data, '_black')
...@@ -178,10 +181,24 @@ export default { ...@@ -178,10 +181,24 @@ export default {
} else { } else {
this.$message.error(result.returnMsg) this.$message.error(result.returnMsg)
} }
},
initIsShowGDS() {
if (this.loginInfo.carno) this.isShowGDS = true // 有条码卡号可以进行GDS跳转
if (this.loginInfo.isQY) this.isShowGDS = true // 官网用户已进行实名厂商认证可以进行GDS跳转
},
async getTycpdmFirmInfo() {
const result = await this.$api.myManage.tycpdmFirmInfoNoAuth({name: this.memberInfo.username})
this.tycpdmFirmInfo = result.data
},
async getMemberInfo() {
this.memberInfo = (await this.$api.myManage.memberInfo({id: this.loginInfo.id})).data
await this.getTycpdmFirmInfo()
} }
}, },
mounted() { mounted() {
this.loginInfo = JSON.parse(localStorage.getItem('loginInfo')) this.loginInfo = JSON.parse(localStorage.getItem('loginInfo'))
this.initIsShowGDS()
this.getMemberInfo()
} }
} }
</script> </script>
......
...@@ -17,14 +17,19 @@ ...@@ -17,14 +17,19 @@
<div class="uploadcss"> <div class="uploadcss">
<span class="icon ">上传加盖公章的《实名认证注册登记表》影印件:</span> <span class="icon ">上传加盖公章的《实名认证注册登记表》影印件:</span>
<span class="btn " > <span class="btn " >
<el-button type="primary" @click="uploadEvent" style="width: 110px">上传</el-button>查看实名认证历史上传文件 <el-button type="primary" @click="uploadEvent" style="width: 110px">上传</el-button><span @click="showImage">查看实名认证历史上传文件</span>
<p style="margin-top:10px;">支持png,bmp,jpg格式,大小不限</p> <p style="margin-top:10px;">支持png,bmp,jpg格式,大小不限</p>
</span> </span>
</div> </div>
</div> </div>
</div> </div>
<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>
<script> <script>
...@@ -35,7 +40,11 @@ export default { ...@@ -35,7 +40,11 @@ export default {
uploading: false, uploading: false,
loginInfo: {}, loginInfo: {},
memberInfo: {}, memberInfo: {},
tycpdmFirmInfo: {} tycpdmFirmInfo: {},
imagePreview: {
url: '',
srcList: []
}
} }
}, },
methods: { methods: {
...@@ -78,6 +87,22 @@ export default { ...@@ -78,6 +87,22 @@ export default {
inputObj.click() inputObj.click()
}).catch(() => {}); }).catch(() => {});
}, },
async showImage() {
const form = {
status: this.tycpdmFirmInfo.status,
fileType: '2', //1.第一步文件 2.第二步文件
id: this.tycpdmFirmInfo.status === 1 ? this.tycpdmFirmInfo.fid : this.tycpdmFirmInfo.id
}
const isExistence = await this.$api.myManage.tycpdmfirmReturnFileIsExistence(form)
if (isExistence.data === '不存在') {
this.$message.error('文件不存在')
} else {
const result = this.$api.myManage.tycpdmfirmReturnFile(form)
this.imagePreview.url = result
this.imagePreview.srcList = [result]
if (document.getElementById('image')) document.getElementById('image').click()
}
},
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})
this.tycpdmFirmInfo = result.data.data this.tycpdmFirmInfo = result.data.data
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
required: true, required: true,
message: '不能为空', message: '不能为空',
}]"> }]">
<el-select v-model="form.branchCode" placeholder="请选择所属分支机构" > <el-select v-model="form.branchCode" :disabled="status === 2" placeholder="请选择所属分支机构" >
<el-option v-for="item in branchList" :label="item.label" :value="item.value" :key="item.value"></el-option> <el-option v-for="item in branchList" :label="item.label" :value="item.value" :key="item.value"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
}]"> }]">
<el-input v-model='form.firmBusinessLicenseFile' autocomplete='off' 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><br/> <el-button @click="uploadEvent" type="primary" style="width: 110px;height: 36px;">上传</el-button><br/>
<span style="margin-right: 15px;cursor: pointer;color: #0D6EFD;">查看历史上传文件</span> <span @click="showImage" style="margin-right: 15px;cursor: pointer;color: #0D6EFD;">查看历史上传文件</span>
<el-popover <el-popover
placement="bottom" placement="bottom"
width="300" width="300"
...@@ -316,6 +316,7 @@ export default { ...@@ -316,6 +316,7 @@ export default {
uploadTipVisible: false, uploadTipVisible: false,
loginInfo: {}, loginInfo: {},
memberInfo: {}, memberInfo: {},
tycpdmFirmInfo: {},
imagePreview: { imagePreview: {
url: '', url: '',
srcList: [] srcList: []
...@@ -445,11 +446,12 @@ export default { ...@@ -445,11 +446,12 @@ export default {
this.$refs['ruleForm'].validate((valid) => { this.$refs['ruleForm'].validate((valid) => {
if (valid) { if (valid) {
console.log(this.form) console.log(this.form)
this.form.political = this.form.political[this.form.political.length - 1]
this.form.contactmanTele = this.form.contactmanCtqh.substr(this.form.contactmanCtqh.indexOf('-')+1)
this.form.contactmanCtqh = this.form.contactmanCtqh.substr(0, this.form.contactmanCtqh.indexOf('-'))
this.form.status = this.status this.form.status = this.status
this.saveTycpdmFirmInfo() const _form = JSON.parse(JSON.stringify(this.form))
_form.political = this.form.political[this.form.political.length - 1]
_form.contactmanTele = this.form.contactmanCtqh.substr(this.form.contactmanCtqh.indexOf('-')+1)
_form.contactmanCtqh = this.form.contactmanCtqh.substr(0, this.form.contactmanCtqh.indexOf('-'))
this.saveTycpdmFirmInfo(_form)
} else { } else {
return false; return false;
} }
...@@ -505,9 +507,25 @@ export default { ...@@ -505,9 +507,25 @@ export default {
} }
inputObj.click() inputObj.click()
}, },
async saveTycpdmFirmInfo() { async showImage() {
const form = {
status: this.status,
fileType: '1', //1.第一步文件 2.第二步文件
id: this.status === 1 ? this.tycpdmFirmInfo.fid : this.tycpdmFirmInfo.id
}
const isExistence = await this.$api.myManage.tycpdmfirmReturnFileIsExistence(form)
if (isExistence.data === '不存在') {
this.$message.error('文件不存在')
} else {
const result = this.$api.myManage.tycpdmfirmReturnFile(form)
this.imagePreview.url = result
this.imagePreview.srcList = [result]
if (document.getElementById('image')) document.getElementById('image').click()
}
},
async saveTycpdmFirmInfo(form) {
let _form = {} let _form = {}
Object.keys(this.form).forEach(key => { _form[key.toLowerCase()] = this.form[key] }) Object.keys(form).forEach(key => { _form[key.toLowerCase()] = form[key] })
_form['baseUser'] = this.memberInfo.username _form['baseUser'] = this.memberInfo.username
const result = await this.$api.myManage.saveTycpdmFirmInfo(_form) const result = await this.$api.myManage.saveTycpdmFirmInfo(_form)
if (result.success) { if (result.success) {
...@@ -520,6 +538,7 @@ export default { ...@@ -520,6 +538,7 @@ export default {
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})
const tycpdmFirmInfo = result.data.data const tycpdmFirmInfo = result.data.data
this.tycpdmFirmInfo = tycpdmFirmInfo
if (tycpdmFirmInfo) { // tycpdmFirmInfo不为null则已完成第一步填写实名信息 if (tycpdmFirmInfo) { // tycpdmFirmInfo不为null则已完成第一步填写实名信息
if (tycpdmFirmInfo.logoutFlag === -1) { // logoutFlag如果为null表示未提交书面材料 if (tycpdmFirmInfo.logoutFlag === -1) { // logoutFlag如果为null表示未提交书面材料
this.form.fid = tycpdmFirmInfo.fid this.form.fid = tycpdmFirmInfo.fid
......
...@@ -49,8 +49,13 @@ export default { ...@@ -49,8 +49,13 @@ export default {
methods: { methods: {
async getMemberInfo() { async getMemberInfo() {
this.memberInfo = (await this.$api.myManage.memberInfo({id: this.loginInfo.id})).data this.memberInfo = (await this.$api.myManage.memberInfo({id: this.loginInfo.id})).data
if (this.loginInfo.userType === 1) {
this.userName = this.loginInfo.username
this.phone = this.loginInfo.phone
} else {
this.userName = this.memberInfo.username this.userName = this.memberInfo.username
this.phone = this.memberInfo.phone this.phone = this.memberInfo.phone
}
if (this.loginInfo.carno) { if (this.loginInfo.carno) {
this.nocardNo = '已申请条码卡' this.nocardNo = '已申请条码卡'
this.cardNo = this.loginInfo.carno this.cardNo = this.loginInfo.carno
......
...@@ -199,13 +199,13 @@ export default { ...@@ -199,13 +199,13 @@ export default {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "企业实名认证", name: "企业实名认证",
index: 0, index: 0,
link: "/MyManage/admin/check?menu=1", link: "/MyManage/admin/check?type=new&status=3",
}, },
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "企业实名认证变更", name: "企业实名认证变更",
index: 1, index: 1,
link: "/MyManage/admin/check?menu=2", link: "/MyManage/admin/check?type=change&status=3",
}, },
], ],
} }
......
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