Commit 7efbb5df by Lyan

个人中心bug修改

parent 8057eef9
...@@ -66,8 +66,9 @@ function fetch(options) { ...@@ -66,8 +66,9 @@ function fetch(options) {
if (ResponseCode.success.indexOf(code) !== -1) { if (ResponseCode.success.indexOf(code) !== -1) {
// console.log(resData, '响应数据的拦截2'); // console.log(resData, '响应数据的拦截2');
resolve(resData) resolve(resData)
} else if (checkResponseCodeTokenError(code)) { } else if (code==401) {
if (getToken()) { // } else if (checkResponseCodeTokenError(code)) {
// if (getToken()) {
window.localStorage.clear() window.localStorage.clear()
removeToken() removeToken()
...@@ -82,7 +83,7 @@ function fetch(options) { ...@@ -82,7 +83,7 @@ function fetch(options) {
}, 500) }, 500)
} }
}) })
} // }
} else if (checkResponseCodeAuthUnPermitted(code)) { } else if (checkResponseCodeAuthUnPermitted(code)) {
// if (window.location.pathname !== "/404") { // if (window.location.pathname !== "/404") {
// window.location.href = "/404" // window.location.href = "/404"
......
...@@ -3,7 +3,9 @@ window.CodeTable || (window.CodeTable = {}) ...@@ -3,7 +3,9 @@ window.CodeTable || (window.CodeTable = {})
const EconomicCategoryCode = {"head":[{"type":"string","label":"label"},{"type":"number","label":"value"}],"body":[["内资","100"],["国有全资","110"],["集体全资","120"],["股份合作","130"],["联营","140"],["国有联营","141"],["集体联营","142"],["国有与集体联营","143"],["其它联营","149"],["有限责任(公司)","150"],["国有独资(公司)","151"],["其它有限责任(公司)","159"],["股份有限(公司)","160"],["私有","170"],["私有独资","171"],["私有合伙","172"],["私营有限责任(公司)","173"],["私营股份有限(公司)","174"],["个体经济","175"],["其它私有","179"],["其它内资","190"],["港、澳、台投资","200"],["内地和港、澳、台合资","210"],["内地和港、澳、台合作","220"],["港、澳、台独资","230"],["港、澳、台投资股份有限公司","240"],["其它港、澳、台投资","290"],["国外投资","300"],["中外合资","310"],["中外合作","320"],["外资","330"],["国外投资股份有限(公司)","340"],["其它国外投资","390"],["其它","900"]]} const EconomicCategoryCode = {"head":[{"type":"string","label":"label"},{"type":"number","label":"value"}],"body":[["内资","100"],["国有全资","110"],["集体全资","120"],["股份合作","130"],["联营","140"],["国有联营","141"],["集体联营","142"],["国有与集体联营","143"],["其它联营","149"],["有限责任(公司)","150"],["国有独资(公司)","151"],["其它有限责任(公司)","159"],["股份有限(公司)","160"],["私有","170"],["私有独资","171"],["私有合伙","172"],["私营有限责任(公司)","173"],["私营股份有限(公司)","174"],["个体经济","175"],["其它私有","179"],["其它内资","190"],["港、澳、台投资","200"],["内地和港、澳、台合资","210"],["内地和港、澳、台合作","220"],["港、澳、台独资","230"],["港、澳、台投资股份有限公司","240"],["其它港、澳、台投资","290"],["国外投资","300"],["中外合资","310"],["中外合作","320"],["外资","330"],["国外投资股份有限(公司)","340"],["其它国外投资","390"],["其它","900"]]}
const EconomicCategoryCodeHandle = EconomicCategoryCode.body.map(item => ({label: item[0], value: item[1]})) const EconomicCategoryCodeHandle = EconomicCategoryCode.body.map(item => ({label: item[0], value: item[1]}))
window.CodeTable.EconomicCategoryCodeHandle = EconomicCategoryCodeHandle window.CodeTable.EconomicCategoryCodeHandle = EconomicCategoryCodeHandle
window.CodeTable.getEconomicCategoryCodeHandle = (code) => {
return (EconomicCategoryCodeHandle.find(item => String(item.value) === String(code)) || {label: '--'}).label
}
//************************************************************************* //*************************************************************************
//国民经济行业分类代码 //国民经济行业分类代码
...@@ -11,6 +13,9 @@ const NationalIndustryClassificationCode = {"head":[{"type":"string","label":"la ...@@ -11,6 +13,9 @@ const NationalIndustryClassificationCode = {"head":[{"type":"string","label":"la
// 适用element选择框(列表对象数据) // 适用element选择框(列表对象数据)
const NationalIndustryClassificationCodeHandle = NationalIndustryClassificationCode.body.map(item => ({label: item[0], value: item[1]})) const NationalIndustryClassificationCodeHandle = NationalIndustryClassificationCode.body.map(item => ({label: item[0], value: item[1]}))
window.CodeTable.NationalIndustryClassificationCodeHandle = NationalIndustryClassificationCodeHandle window.CodeTable.NationalIndustryClassificationCodeHandle = NationalIndustryClassificationCodeHandle
window.CodeTable.getNationalIndustryClassificationCodeHandle = (code) => {
return (NationalIndustryClassificationCodeHandle.find(item => String(item.value) === String(code)) || {label: '--'}).label
}
window.CodeTable.NationalIndustryClassificationCodeCategory = NationalIndustryClassificationCode.body.filter(item => ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'].indexOf(item[1]) >= 0).sort((a, b) => { return a[1].charCodeAt(0) - b[1].charCodeAt(0) }) window.CodeTable.NationalIndustryClassificationCodeCategory = NationalIndustryClassificationCode.body.filter(item => ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'].indexOf(item[1]) >= 0).sort((a, b) => { return a[1].charCodeAt(0) - b[1].charCodeAt(0) })
const findCategory = function (code, length, arr) { const findCategory = function (code, length, arr) {
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<el-button class="plain-with-border" v-if="reset">重置</el-button> <el-button class="plain-with-border" v-if="reset">重置</el-button>
</div> </div>
<el-image <el-image
id="image" ref="image"
style="width: 10px; height: 10px;opacity: 0;" style="width: 10px; height: 10px;opacity: 0;"
:src="url" :src="url"
:preview-src-list="srcList"> :preview-src-list="srcList">
...@@ -443,9 +443,16 @@ export default { ...@@ -443,9 +443,16 @@ export default {
}, },
showImage(form) { showImage(form) {
const result = this.$api.myManage.tycpdmfirmReturnFile(form) const result = this.$api.myManage.tycpdmfirmReturnFile(form)
if(result){
this.url = result this.url = result
this.srcList = [result] this.srcList = [result]
document.getElementById('image').click() this.$refs.image.clickHandler()
}else{
this.$message.error(result.returnMsg)
}
// document.getElementById('image').click()
}, },
getBranchLabel(branchCode) { getBranchLabel(branchCode) {
return (this.branchList.find(item => item.value === branchCode) || {label: '--'}).label return (this.branchList.find(item => item.value === branchCode) || {label: '--'}).label
...@@ -498,9 +505,19 @@ export default { ...@@ -498,9 +505,19 @@ export default {
this.branchCode = this.detailInfo.branchcode this.branchCode = this.detailInfo.branchcode
this.subCenterName = this.getBranchLabel(this.branchCode) this.subCenterName = this.getBranchLabel(this.branchCode)
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.entInfoFields.forEach(item => {
if (item.key && filterFields.indexOf(item.key) < 0) {
if (item.key === 'dm') {
item.value = window.CodeTable.getEconomicCategoryCodeHandle(this.detailInfo['dm'])
}else if (item.key === 'tjdm') {
item.value = window.CodeTable.getNationalIndustryClassificationCodeHandle(this.detailInfo['tjdm'])
} else {
item.value = this.detailInfo[item.key]
}
}
})
this.handlerInfoFields.forEach(item => { this.handlerInfoFields.forEach(item => {
if (item.key && filterFields.indexOf(item.key) < 0) { if (item.key && filterFields.indexOf(item.key) < 0) {
if (item.key === 'contactmanctqh') { if (item.key === 'contactmanctqh') {
......
...@@ -200,6 +200,7 @@ export default { ...@@ -200,6 +200,7 @@ export default {
}, },
handleEntNameCheck(row) { handleEntNameCheck(row) {
console.log(row) console.log(row)
this.checkDetail = row
}, },
getIcon(status) { getIcon(status) {
status = status.logoutFlag status = status.logoutFlag
......
<template>
</template>
<script>
export default {
name: "index"
}
</script>
<style scoped>
</style>
...@@ -355,6 +355,7 @@ export default { ...@@ -355,6 +355,7 @@ export default {
await this.getTycpdmFirmInfo() await this.getTycpdmFirmInfo()
}, },
initFormData(tycpdmFirmInfo) { initFormData(tycpdmFirmInfo) {
this.form.political = [tycpdmFirmInfo.political] this.form.political = [tycpdmFirmInfo.political]
this.form.political = window.CodeTable.getRegionLabelByCode(this.form.political) this.form.political = window.CodeTable.getRegionLabelByCode(this.form.political)
console.log(window.CodeTable.getRegionLabelByCode(this.form.political)) console.log(window.CodeTable.getRegionLabelByCode(this.form.political))
......
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
} }
}, },
initIsShowGDS() { initIsShowGDS() {
if (this.loginInfo.carno) this.isShowGDS = true // 有条码卡号可以进行GDS跳转 if (this.loginInfo.carno && this.loginInfo.carno!=='') this.isShowGDS = true // 有条码卡号可以进行GDS跳转
if (this.loginInfo.isQY) this.isShowGDS = true // 官网用户已进行实名厂商认证可以进行GDS跳转 if (this.loginInfo.isQY) this.isShowGDS = true // 官网用户已进行实名厂商认证可以进行GDS跳转
} }
}, },
......
...@@ -140,13 +140,16 @@ ...@@ -140,13 +140,16 @@
</template> </template>
<script> <script>
export default { export default {
name: "index", name: "index",
data () { data () {
return { return {
isShowGDS: false, isShowGDS: false,
memberInfo: {}, memberInfo: {},
tycpdmFirmInfo: {}, tycpdmFirmInfo: {
logoutFlag:null
},
loginInfo: { loginInfo: {
carno: '', // 条码卡号 carno: '', // 条码卡号
id: 16, // 用户ID id: 16, // 用户ID
...@@ -158,39 +161,51 @@ export default { ...@@ -158,39 +161,51 @@ export default {
} }
}, },
methods: { methods: {
//业务大厅跳转
async redirectYWDT() { async redirectYWDT() {
const params = {userType: this.loginInfo.userType, id: this.loginInfo.id} const params = {userType: this.loginInfo.userType, id: this.loginInfo.id}
const result = await this.$api.myManage.redirectYWDT(params) const result = await this.$api.myManage.redirectYWDT(params)
if (result.success) { if (result.success) {
// window.open(result.data, '_black')
window.open(result.data, '_blank')
} else { } else {
this.$message.error(result.returnMsg) this.$message.error(result.returnMsg)
} }
}, },
// 跳转
async redirectGDS() { async redirectGDS() {
const params = {userType: this.loginInfo.userType, id: this.loginInfo.id, carno: this.loginInfo.carno} 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, '_blank')
} else { } else {
this.$message.error(result.returnMsg) this.$message.error(result.returnMsg)
} }
}, },
// 跳转
async redirectGLN() { async redirectGLN() {
const result = await this.$api.myManage.redirectGLN() const result = await this.$api.myManage.redirectGLN()
if (result.success) { if (result.success) {
// window.open(result.data, '_black') window.open(result.data, '_blank')
} else { } else {
this.$message.error(result.returnMsg) this.$message.error(result.returnMsg)
} }
}, },
// 初始化实名认证显示内容
initIsShowGDS() { initIsShowGDS() {
if (this.loginInfo.carno) this.isShowGDS = true // 有条码卡号可以进行GDS跳转 if (this.loginInfo.carno) this.isShowGDS = true // 有条码卡号可以进行GDS跳转
if (this.loginInfo.isQY) this.isShowGDS = true // 官网用户已进行实名厂商认证可以进行GDS跳转 if (this.loginInfo.isQY) this.isShowGDS = true // 官网用户已进行实名厂商认证可以进行GDS跳转
}, },
async getTycpdmFirmInfo() { async getTycpdmFirmInfo() {
const result = await this.$api.myManage.tycpdmFirmInfoNoAuth({name: this.memberInfo.username}) const result = await this.$api.myManage.tycpdmFirmInfoNoAuth({name: this.memberInfo.username})
if(result.data){
this.tycpdmFirmInfo = result.data this.tycpdmFirmInfo = result.data
}else{
this.tycpdmFirmInfo.logoutFlag=null
}
}, },
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
...@@ -199,6 +214,7 @@ export default { ...@@ -199,6 +214,7 @@ export default {
}, },
mounted() { mounted() {
this.loginInfo = JSON.parse(localStorage.getItem('loginInfo')) this.loginInfo = JSON.parse(localStorage.getItem('loginInfo'))
console.log(this.loginInfo)
this.initIsShowGDS() this.initIsShowGDS()
this.getMemberInfo() this.getMemberInfo()
} }
......
...@@ -145,13 +145,17 @@ export default { ...@@ -145,13 +145,17 @@ export default {
return { return {
loginInfo: {}, loginInfo: {},
memberInfo: {}, memberInfo: {},
tycpdmFirmInfo: {} tycpdmFirmInfo: {},
registerAddStr:''
} }
}, },
methods: { methods: {
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
// this.registerAddStr = window.CodeTable.getRegionLabelByCode(result.data.data.political)
this.tycpdmFirmInfo.dm=window.CodeTable.getEconomicCategoryCodeHandle(result.data.data.dm)
this.tycpdmFirmInfo.tjdm=window.CodeTable.getNationalIndustryClassificationCodeHandle(result.data.data.tjdm)
}, },
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
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-image <el-image
id="image" id="image"
style="width: 10px; height: 10px;opacity: 0;" style="width: 10px; height: 10px;opacity: 0;"
...@@ -98,9 +99,11 @@ export default { ...@@ -98,9 +99,11 @@ export default {
this.$message.error('文件不存在') this.$message.error('文件不存在')
} else { } else {
const result = this.$api.myManage.tycpdmfirmReturnFile(form) const result = this.$api.myManage.tycpdmfirmReturnFile(form)
console.log(result)
this.imagePreview.url = result this.imagePreview.url = result
this.imagePreview.srcList = [result] this.imagePreview.srcList = [result]
if (document.getElementById('image')) document.getElementById('image').click() window.open(this.imagePreview.url,'_blank')
// if (document.getElementById('image')) document.getElementById('image').click()
} }
}, },
async getTycpdmFirmInfo() { async getTycpdmFirmInfo() {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</div> </div>
<div class="content"> <div class="content">
<div class="title"> <div class="title">
{{status === 2 ? '变更厂商实名认证信息' : '厂商实名认证——填写实名信息'}} {{status == 2 ? '变更厂商实名认证信息' : '厂商实名认证——填写实名信息'}}
<a v-if="status !== 2" href="/MyManage/UnVerify/index">返回我的首页</a> <a v-if="status !== 2" href="/MyManage/UnVerify/index">返回我的首页</a>
<a v-else href="/MyManage/UnVerify/vendorModify">修改企业信息</a> <a v-else href="/MyManage/UnVerify/vendorModify">修改企业信息</a>
</div> </div>
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
message: '不能为空', message: '不能为空',
}]"> }]">
<el-input v-model='form.firmName' autocomplete='off' placeholder="请输入企业中文名称"></el-input> <el-input v-model='form.firmName' autocomplete='off' placeholder="请输入企业中文名称"></el-input>
<span class="form-item-tip form-item-tip2">若厂商已为系统成员,请直接使用条码卡账号登录,无需再次实名认证!</span>
</el-form-item> </el-form-item>
<el-form-item label='企业名称(英文):' <el-form-item label='企业名称(英文):'
prop='firmName1' prop='firmName1'
...@@ -50,6 +51,7 @@ ...@@ -50,6 +51,7 @@
placeholder="请选择" style="width: 100%;" placeholder="请选择" style="width: 100%;"
v-model="form.political" v-model="form.political"
:options="cascadeRegion" :options="cascadeRegion"
:show-all-levels="false"
:props="{ expandTrigger: 'hover', label: 'label', value: 'code' }" :props="{ expandTrigger: 'hover', label: 'label', value: 'code' }"
size="medium" size="medium"
@change="politicalChangeEvent"></el-cascader> @change="politicalChangeEvent"></el-cascader>
...@@ -65,9 +67,13 @@ ...@@ -65,9 +67,13 @@
required: true, required: true,
message: '不能为空', message: '不能为空',
}]"> }]">
<el-select v-model="form.branchCode" :disabled="status === 2" placeholder="请选择所属分支机构" > <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>
<ul class="branchListStyle" :style="{'margin-top':marginTop}">
<li v-for="(item,i) in branchList" :key="i" ><a :href="`/Org/BranchMsg?branchCode=${item.value}`" target="_blank">{{item.label}}</a></li>
</ul>
</el-form-item> </el-form-item>
<el-form-item label='注册地址(英文):' <el-form-item label='注册地址(英文):'
prop='registerAddress1' prop='registerAddress1'
...@@ -89,7 +95,11 @@ ...@@ -89,7 +95,11 @@
message: '不能为空', message: '不能为空',
}]"> }]">
<el-input v-model='form.address' autocomplete='off' placeholder="请输入办公地址"></el-input> <el-input v-model='form.address' autocomplete='off' placeholder="请输入办公地址"></el-input>
<span class="form-item-tip">
<el-checkbox @change="changeAdress">同上注册地址</el-checkbox>
</span>
</el-form-item> </el-form-item>
<el-form-item label='办公地址(英文):' <el-form-item label='办公地址(英文):'
prop='address1' prop='address1'
> >
...@@ -292,12 +302,18 @@ ...@@ -292,12 +302,18 @@
<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 <el-image
ref="image"
id="image" id="image"
style="width: 10px; height: 10px;opacity: 0;" lazy
fit="scale-down"
style="width: 90%; margin:0 5%"
:src="imagePreview.url" :src="imagePreview.url"
:preview-src-list="imagePreview.srcList"> :preview-src-list="imagePreview.srcList">
</el-image> </el-image>
</div> </div>
</template> </template>
...@@ -411,7 +427,8 @@ export default { ...@@ -411,7 +427,8 @@ export default {
branchList: [], branchList: [],
AdministrativeDivisionCode: window.CodeTable.AdministrativeDivisionCodeHandle, AdministrativeDivisionCode: window.CodeTable.AdministrativeDivisionCodeHandle,
EconomicCategoryCode: window.CodeTable.EconomicCategoryCodeHandle, EconomicCategoryCode: window.CodeTable.EconomicCategoryCodeHandle,
NationalIndustryClassificationCode: window.CodeTable.NationalIndustryClassificationCodeHandle NationalIndustryClassificationCode: window.CodeTable.NationalIndustryClassificationCodeHandle,
marginTop:'10px'
} }
}, },
methods: { methods: {
...@@ -451,6 +468,7 @@ export default { ...@@ -451,6 +468,7 @@ export default {
_form.political = this.form.political[this.form.political.length - 1] _form.political = this.form.political[this.form.political.length - 1]
_form.contactmanTele = this.form.contactmanCtqh.substr(this.form.contactmanCtqh.indexOf('-')+1) _form.contactmanTele = this.form.contactmanCtqh.substr(this.form.contactmanCtqh.indexOf('-')+1)
_form.contactmanCtqh = this.form.contactmanCtqh.substr(0, this.form.contactmanCtqh.indexOf('-')) _form.contactmanCtqh = this.form.contactmanCtqh.substr(0, this.form.contactmanCtqh.indexOf('-'))
_form.registerAddress=window.CodeTable.getRegionLabelByCode(_form.political)+this.form.registerAddress
this.saveTycpdmFirmInfo(_form) this.saveTycpdmFirmInfo(_form)
} else { } else {
return false; return false;
...@@ -471,11 +489,16 @@ export default { ...@@ -471,11 +489,16 @@ export default {
this.dialogVisible = false this.dialogVisible = false
}, },
politicalChangeEvent() { politicalChangeEvent() {
if (this.status === 2) return // if (this.status === 2) return
console.log(this.form.political) console.log(this.form.political)
this.form.branchCode = '' this.form.branchCode = ''
this.branchList = window.CodeTable.getBranches(this.form.political[this.form.political.length - 1]) this.branchList = window.CodeTable.getBranches(this.form.political[this.form.political.length - 1])
this.branchList.length > 0 && (this.form.branchCode = this.branchList[0].value) this.branchList.length > 0 && (this.form.branchCode = this.branchList[0].value)
if(this.branchList.length > 1){
this.marginTop='-3px'
}else{
this.marginTop='10px'
}
}, },
async upload(form) { async upload(form) {
this.uploading = true this.uploading = true
...@@ -521,7 +544,9 @@ export default { ...@@ -521,7 +544,9 @@ export default {
const result = this.$api.myManage.tycpdmfirmReturnFile(form) const result = this.$api.myManage.tycpdmfirmReturnFile(form)
this.imagePreview.url = result this.imagePreview.url = result
this.imagePreview.srcList = [result] this.imagePreview.srcList = [result]
if (document.getElementById('image')) document.getElementById('image').click() // this.$refs.image.clickHandler()
window.open(this.imagePreview.url,'_blank')
// if (document.getElementById('image')) document.getElementById('image').click()
} }
}, },
async saveTycpdmFirmInfo(form) { async saveTycpdmFirmInfo(form) {
...@@ -544,6 +569,7 @@ export default { ...@@ -544,6 +569,7 @@ export default {
if (tycpdmFirmInfo.logoutFlag === -1) { // logoutFlag如果为null表示未提交书面材料 if (tycpdmFirmInfo.logoutFlag === -1) { // logoutFlag如果为null表示未提交书面材料
this.form.fid = tycpdmFirmInfo.fid this.form.fid = tycpdmFirmInfo.fid
this.form.id = tycpdmFirmInfo.id this.form.id = tycpdmFirmInfo.id
this.status = result.data.status this.status = result.data.status
this.initFormData(tycpdmFirmInfo) this.initFormData(tycpdmFirmInfo)
// await this.$router.replace({path: '/MyManage/UnVerify/uploadvendor'}) // 第二步没有提交是可以修改第一步的实名信息的 // await this.$router.replace({path: '/MyManage/UnVerify/uploadvendor'}) // 第二步没有提交是可以修改第一步的实名信息的
...@@ -580,6 +606,21 @@ export default { ...@@ -580,6 +606,21 @@ export default {
} }
}) })
this.form.contactmanCtqh = tycpdmFirmInfo['contactmanctqh'] + '-' + tycpdmFirmInfo['contactmantele'] this.form.contactmanCtqh = tycpdmFirmInfo['contactmanctqh'] + '-' + tycpdmFirmInfo['contactmantele']
let registerStr=window.CodeTable.getRegionLabelByCode(tycpdmFirmInfo['political'])
this.form.registerAddress=this.form.registerAddress.slice(registerStr.length)
},
changeAdress(e){
if(e){
console.log(this.form.political)
let registerStr=window.CodeTable.getRegionLabelByCode(this.form.political[this.form.political.length - 1])+this.form.registerAddress
this.form.address = registerStr;
this.form.address1 = this.form.registerAddress1;
this.form.postcode1 = this.form.postcode;
}else{
this.form.address='';
this.form.address1='';
this.form.postcode1='';
}
} }
}, },
mounted() { mounted() {
...@@ -589,7 +630,8 @@ export default { ...@@ -589,7 +630,8 @@ export default {
destroyed() { destroyed() {
const fileElement = document.getElementById('file') const fileElement = document.getElementById('file')
fileElement && document.body.removeChild(fileElement) fileElement && document.body.removeChild(fileElement)
} },
} }
</script> </script>
...@@ -747,10 +789,44 @@ export default { ...@@ -747,10 +789,44 @@ export default {
} }
.form-item-tip { .form-item-tip {
position: absolute; position: absolute;
margin: 10px 0 0 5px; margin:10px 0 0 5px;
width: 200px;
line-height: 26px;
font-size: 13px;
color: #F56C6C;
}
/deep/.el-checkbox__label{
font-size: 13px;
color: #F56C6C;
}
.branchListStyle{
display: inline-block;
position: absolute;
margin:10px 0 0 25px;
width: 200px; width: 200px;
line-height: 26px;
font-size: 13px; font-size: 13px;
color: #F56C6C; color: #F56C6C;
li{
list-style-type: disc;
}
a{
color: #F56C6C;
}
}
.form-item-tip2{
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
&:hover{
cursor: pointer;
margin:0px 0 0 5px;
width: 250px;
white-space:normal;
word-wrap: break-word;
word-break: break-all;
}
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="container2"> <div class="container2">
<div class="content"> <div class="content">
<div class="title">厂商实名认证——审核状态 <a href="/MyManage/UnVerify/index">返回我的首页</a></div> <div class="title">{{status == 2 ? '变更厂商实名认证——审核状态' : '厂商实名认证——审核状态'}} <a href="/MyManage/UnVerify/index">返回我的首页</a></div>
<div class="content-list"> <div class="content-list">
<p > <p >
<span>1.填写实名信息</span> <span>1.填写实名信息</span>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div class="cnt"> <div class="cnt">
<div class="fail" v-if="tycpdmFirmInfo.logoutFlag === 2"> <div class="fail" v-if="tycpdmFirmInfo.logoutFlag === 2">
<img src="../../../assets/image/mymanage/fail.png" alt=""> <img src="../../../assets/image/mymanage/fail.png" alt="">
<span>很抱歉!您未通过中国物品编码中心实名认证。以下为您所在的 <a href="#" target="_blank">分支机构</a> 审核意见:</span> <span>很抱歉!您未通过中国物品编码中心实名认证{{status == 2 ? '变更' : ''}} 。以下为您所在的 <a href="#" target="_blank">分支机构</a> 审核意见:</span>
<p>{{tycpdmFirmInfo.approveContent}}</p> <p>{{tycpdmFirmInfo.approveContent}}</p>
<p class="btn-p"> <p class="btn-p">
<el-button @click="modifyInfoBtn" type="primary" style="width: 192px">重新修改企业资料</el-button> <el-button @click="modifyInfoBtn" type="primary" style="width: 192px">重新修改企业资料</el-button>
...@@ -36,7 +36,8 @@ export default { ...@@ -36,7 +36,8 @@ export default {
return { return {
loginInfo: {}, loginInfo: {},
memberInfo: {}, memberInfo: {},
tycpdmFirmInfo: {} tycpdmFirmInfo: {},
status: 0, // 1: 新增 2: 变更
} }
}, },
methods: { methods: {
...@@ -46,6 +47,7 @@ export default { ...@@ -46,6 +47,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})
this.tycpdmFirmInfo = result.data.data this.tycpdmFirmInfo = result.data.data
this.status = result.data.status
}, },
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
......
...@@ -8,9 +8,16 @@ ...@@ -8,9 +8,16 @@
</div> </div>
<div class="content_box" v-html="newsInfo.content" v-if="newsInfo.content"></div> <div class="content_box" v-html="newsInfo.content" v-if="newsInfo.content"></div>
<div class="videoStyle" v-if="preTitle === '在线视频'"> <div class="videoStyle" v-if="preTitle === '在线视频'">
<video class="video" controls width="100%" height="100%" > <!-- <video class="video" controls width="100%" height="100%" >
<source :src="newsInfo.wavname" type="video/mp4"> <source :src="newsInfo.wavname" type="video/mp4">
</video> </video> -->
<video
controls="controls"
:src="newsInfo.wavname"
width="100%"
height="100%"
webkit-playsinline=""
></video>
</div> </div>
<div class="source_box">{{newsInfo && newsInfo.source ? newsInfo.source : ''}}</div> <div class="source_box">{{newsInfo && newsInfo.source ? newsInfo.source : ''}}</div>
......
...@@ -30,8 +30,8 @@ export default { ...@@ -30,8 +30,8 @@ export default {
children: [ children: [
{ {
name: "物品编码标识技术", name: "物品编码标识技术",
path: "", path: "/News/ECommerce",
active: "", active: "ECommerce",
}, },
{ {
name: "采用GS1统一物品编码的好处", name: "采用GS1统一物品编码的好处",
......
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