Commit f863fa9f by Jianli Ou

对接审核接口,完成认证-审核-变更流程

parent 0574095d
...@@ -39,6 +39,14 @@ const tycpdmfirmLogoutFlagCount = (params = {}) => { ...@@ -39,6 +39,14 @@ const tycpdmfirmLogoutFlagCount = (params = {}) => {
} }
// 审核列表 // 审核列表
const tycpdmfirmAuditList = (params = {}) => { const tycpdmfirmAuditList = (params = {}) => {
return POST(`${Prefix}/office/tycpdmfirm/authApi/findlist`, params)
}
// 审核
const tycpdmfirmAudit = (params = {}) => {
return POST(`${Prefix}/office/tycpdmfirm/authApi/audit`, params)
}
// 审核变更列表
const tycpdmfirmChangeAuditList = (params = {}) => {
return POST(`${Prefix}/office/tycpdmfirmchange/authApi/findlist`, params) return POST(`${Prefix}/office/tycpdmfirmchange/authApi/findlist`, params)
} }
export default { export default {
...@@ -50,5 +58,7 @@ export default { ...@@ -50,5 +58,7 @@ export default {
tycpdmFirmInfo, tycpdmFirmInfo,
saveUpdatePass, saveUpdatePass,
tycpdmfirmLogoutFlagCount, tycpdmfirmLogoutFlagCount,
tycpdmfirmAuditList tycpdmfirmAuditList,
tycpdmfirmAudit,
tycpdmfirmChangeAuditList
} }
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
that.hotList = result that.hotList = result
}) })
// 活动报道 // 活动报道
this.initListFn(8,428).then(function(result) { this.initListFn(10,428).then(function(result) {
that.reportList = result that.reportList = result
}) })
//党史 //党史
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</div> </div>
<div class="col-lg-3"> <div class="col-lg-3">
<el-form-item label="状态:" label-width="50px"> <el-form-item label="状态:" label-width="50px">
<el-select size="small" style="width: 145px" v-model="search.logoutFlag"> <el-select size="small" style="width: 145px" clearable v-model="search.logout_flag">
<el-option <el-option
v-for="item in statusList" v-for="item in statusList"
:key="item.value" :key="item.value"
...@@ -39,13 +39,13 @@ ...@@ -39,13 +39,13 @@
</div> </div>
<div class="col-lg-2" style="text-align: right"> <div class="col-lg-2" style="text-align: right">
<el-form-item> <el-form-item>
<el-button type="primary" size="small">搜索</el-button> <el-button @click="getAuditList" type="primary" size="small">搜索</el-button>
</el-form-item> </el-form-item>
</div> </div>
</div> </div>
</el-form> </el-form>
</div> </div>
<div class="gs-ac-st-table"> <div class="gs-ac-st-table" v-loading="loading">
<gs-table <gs-table
:columns='cols' :columns='cols'
:data="result" :data="result"
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</div> </div>
</div> </div>
<CertificationDetail v-if="checkDetail" @back="handleBack" subCenter <CertificationDetail v-if="checkDetail" @back="handleBack" subCenter
:title="checkDetail.entName+'-企业实名认证信息'"></CertificationDetail> :title="checkDetail.firmname+'-企业实名认证信息'" :detailInfo="checkDetail"></CertificationDetail>
</div> </div>
</template> </template>
...@@ -75,19 +75,21 @@ export default { ...@@ -75,19 +75,21 @@ export default {
props: {query: Object}, props: {query: Object},
created() { created() {
// this.setData() // this.setData()
this.search.logoutFlag = this.query.status this.search.logout_flag = this.query.status
if (this.query.type === 'new') { if (this.query.type === 'new') {
// TODO 查询新增 // TODO 查询新增
this.getAuditList() this.getAuditList()
} else { } else {
// TODO 查询变更 // TODO 查询变更
this.getAuditList()
} }
}, },
data() { data() {
return { return {
loading: false,
page: {}, page: {},
search: { search: {
logoutFlag: '', logout_flag: '',
firmName: '', firmName: '',
branchCode: '', branchCode: '',
page: 1, page: 1,
...@@ -192,6 +194,7 @@ export default { ...@@ -192,6 +194,7 @@ export default {
}, },
handleBack() { handleBack() {
this.checkDetail = null this.checkDetail = null
this.getAuditList()
}, },
handleEntNameCheck(row) { handleEntNameCheck(row) {
console.log(row) console.log(row)
...@@ -215,27 +218,19 @@ export default { ...@@ -215,27 +218,19 @@ export default {
return refuse return refuse
} }
}, },
// setData() {
// for (let i = 0; i < 20; i++) {
// this.result.push({
// status: 'unchecked',
// type: '新增',
// username: '厦门皇名',
// entName: '厦门皇名酒业有限公司',
// entAddress: '福建省厦门市思明区鹭江道268号',
// user: '王庆',
// mobile: '18098097532',
// date1: '2021/06/20 11:20:40',
// date2: '',
// center: '厦门办事处',
// })
// }
// },
async getAuditList() { async getAuditList() {
const result = await this.$api.myManage.tycpdmfirmAuditList(this.search) this.loading = true
this.result = result.data.list let result = null
console.log(result) if (this.query.type === 'new') {
// TODO 查询新增
result = await this.$api.myManage.tycpdmfirmAuditList(this.search)
} else {
// TODO 查询变更
result = await this.$api.myManage.tycpdmfirmChangeAuditList(this.search)
} }
this.result = result.data.list
this.loading = false
},
}, },
} }
</script> </script>
......
...@@ -26,15 +26,15 @@ ...@@ -26,15 +26,15 @@
>您已成为中国物品编码中心实名认证企业! >您已成为中国物品编码中心实名认证企业!
</p> </p>
<p style="padding-left:24px"> <p style="padding-left:24px">
您可以——前往<a href="http://v3.gds.org.cn/index.aspx" 您可以——前往<a href="http://v3.gds.org.cn/index.aspx" target="_blank"
>中国商品信息服务平台</a >中国商品信息服务平台</a
> >
办理<a href="http://v3.gds.org.cn/index.aspx" 办理<a href="http://v3.gds.org.cn/index.aspx" target="_blank"
>“通报进口商品信息” “开通条码微站” “使用数据总资产服务”!</a >“通报进口商品信息” “开通条码微站” “使用数据总资产服务”!</a
> >
</p> </p>
<p style="padding-left:24px"> <p style="padding-left:24px">
您可以——前往<a href="http://gln.gs1cn.org/number.aspx?id=1" 您可以——前往<a href="http://gln.gs1cn.org/number.aspx?id=1" target="_blank"
>购买GLN</a >购买GLN</a
> >
</p> </p>
......
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
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 this.tycpdmFirmInfo = result.data.data
}, },
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
......
...@@ -64,7 +64,8 @@ export default { ...@@ -64,7 +64,8 @@ export default {
const fileObj = document.getElementById('file').files[0] const fileObj = document.getElementById('file').files[0]
let form = new FormData() // FormData 对象 let form = new FormData() // FormData 对象
form.append('file', fileObj) // 文件对象 form.append('file', fileObj) // 文件对象
form.append('id', that.tycpdmFirmInfo.fid) form.append('id', that.tycpdmFirmInfo.status === 1 ? that.tycpdmFirmInfo.fid : that.tycpdmFirmInfo.id)
form.append('status', that.tycpdmFirmInfo.status)
this.upload(form) this.upload(form)
}) })
} else { } else {
...@@ -74,7 +75,8 @@ export default { ...@@ -74,7 +75,8 @@ 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 this.tycpdmFirmInfo = result.data.data
this.tycpdmFirmInfo.status = result.data.status
if (this.tycpdmFirmInfo.logoutFlag === 0) { if (this.tycpdmFirmInfo.logoutFlag === 0) {
await this.$router.replace({path: '/MyManage/UnVerify/vendorStatus'}) await this.$router.replace({path: '/MyManage/UnVerify/vendorStatus'})
} }
...@@ -87,6 +89,10 @@ export default { ...@@ -87,6 +89,10 @@ export default {
mounted() { mounted() {
this.loginInfo = JSON.parse(localStorage.getItem('loginInfo')) this.loginInfo = JSON.parse(localStorage.getItem('loginInfo'))
this.getMemberInfo() this.getMemberInfo()
},
destroyed() {
const fileElement = document.getElementById('file')
fileElement && document.body.removeChild(fileElement)
} }
} }
</script> </script>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<span>很抱歉!您未通过中国物品编码中心实名认证。以下为您所在的 <a href="#" target="_blank">分支机构</a> 审核意见:</span> <span>很抱歉!您未通过中国物品编码中心实名认证。以下为您所在的 <a href="#" target="_blank">分支机构</a> 审核意见:</span>
<p>{{opinion}}</p> <p>{{opinion}}</p>
<p class="btn-p"> <p class="btn-p">
<el-button type="primary" style="width: 192px">重新修改企业资料</el-button> <el-button @click="modifyInfoBtn" type="primary" style="width: 192px">重新修改企业资料</el-button>
</p> </p>
</div> </div>
<div class="success" v-if="tycpdmFirmInfo.logoutFlag === 0"> <div class="success" v-if="tycpdmFirmInfo.logoutFlag === 0">
...@@ -41,8 +41,12 @@ export default { ...@@ -41,8 +41,12 @@ export default {
} }
}, },
methods: { methods: {
modifyInfoBtn() {
this.$router.replace({path: '/MyManage/UnVerify/vendor', query: {status: 'modify'}})
},
async getTycpdmFirmInfo() { async getTycpdmFirmInfo() {
this.tycpdmFirmInfo = (await this.$api.myManage.tycpdmFirmInfo({userName: this.memberInfo.username})).data const result = await this.$api.myManage.tycpdmFirmInfo({userName: this.memberInfo.username})
this.tycpdmFirmInfo = result.data.data
}, },
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
......
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