Commit f863fa9f by Jianli Ou

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

parent 0574095d
......@@ -39,6 +39,14 @@ const tycpdmfirmLogoutFlagCount = (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)
}
export default {
......@@ -50,5 +58,7 @@ export default {
tycpdmFirmInfo,
saveUpdatePass,
tycpdmfirmLogoutFlagCount,
tycpdmfirmAuditList
tycpdmfirmAuditList,
tycpdmfirmAudit,
tycpdmfirmChangeAuditList
}
......@@ -186,7 +186,7 @@ export default {
that.hotList = result
})
// 活动报道
this.initListFn(8,428).then(function(result) {
this.initListFn(10,428).then(function(result) {
that.reportList = result
})
//党史
......@@ -228,7 +228,7 @@ export default {
const { returnCode, data } = listRes;
if (returnCode === "0") {
return data.list
}
},
// 党史列表
......@@ -242,7 +242,7 @@ export default {
const { returnCode, data } = listRes;
if (returnCode === "0") {
this.dsList=data
}
},
// 总局
......@@ -256,7 +256,7 @@ export default {
const { returnCode, data } = listRes;
if (returnCode === "0") {
this.centerList=data
}
},
// 规章制度
......@@ -270,19 +270,19 @@ export default {
const { returnCode, data } = listRes;
if (returnCode === "0") {
this.ruleList=data
}
},
// 图片资讯列表TOP4
async pictureTop4() {
const listRes =
await this.$api.news.pictureTop4();
const { returnCode, data } = listRes;
if (returnCode === "0") {
this.pictureListArr = data
}
},
goInfo(id,directpath){
if(directpath &&directpath!==''&& directpath.length>0){
......@@ -443,7 +443,7 @@ html{
width: 100%;
height: 100%;
background: url('../../assets/image/djwh/2020122802.jpg') 100%;
}
}
......
......@@ -22,7 +22,7 @@
</div>
<div class="col-lg-3">
<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
v-for="item in statusList"
:key="item.value"
......@@ -39,13 +39,13 @@
</div>
<div class="col-lg-2" style="text-align: right">
<el-form-item>
<el-button type="primary" size="small">搜索</el-button>
<el-button @click="getAuditList" type="primary" size="small">搜索</el-button>
</el-form-item>
</div>
</div>
</el-form>
</div>
<div class="gs-ac-st-table">
<div class="gs-ac-st-table" v-loading="loading">
<gs-table
:columns='cols'
:data="result"
......@@ -59,7 +59,7 @@
</div>
</div>
<CertificationDetail v-if="checkDetail" @back="handleBack" subCenter
:title="checkDetail.entName+'-企业实名认证信息'"></CertificationDetail>
:title="checkDetail.firmname+'-企业实名认证信息'" :detailInfo="checkDetail"></CertificationDetail>
</div>
</template>
......@@ -75,19 +75,21 @@ export default {
props: {query: Object},
created() {
// this.setData()
this.search.logoutFlag = this.query.status
this.search.logout_flag = this.query.status
if (this.query.type === 'new') {
// TODO 查询新增
this.getAuditList()
} else {
// TODO 查询变更
this.getAuditList()
}
},
data() {
return {
loading: false,
page: {},
search: {
logoutFlag: '',
logout_flag: '',
firmName: '',
branchCode: '',
page: 1,
......@@ -192,6 +194,7 @@ export default {
},
handleBack() {
this.checkDetail = null
this.getAuditList()
},
handleEntNameCheck(row) {
console.log(row)
......@@ -215,27 +218,19 @@ export default {
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() {
const result = await this.$api.myManage.tycpdmfirmAuditList(this.search)
this.loading = true
let result = null
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
console.log(result)
}
this.loading = false
},
},
}
</script>
......
......@@ -26,15 +26,15 @@
>您已成为中国物品编码中心实名认证企业!
</p>
<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 href="http://v3.gds.org.cn/index.aspx"
办理<a href="http://v3.gds.org.cn/index.aspx" target="_blank"
>“通报进口商品信息” “开通条码微站” “使用数据总资产服务”!</a
>
</p>
<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
>
</p>
......
......@@ -151,7 +151,7 @@ export default {
methods: {
async getTycpdmFirmInfo() {
const result = await this.$api.myManage.tycpdmFirmInfo({userName: this.memberInfo.username})
this.tycpdmFirmInfo = result.data
this.tycpdmFirmInfo = result.data.data
},
async getMemberInfo() {
this.memberInfo = (await this.$api.myManage.memberInfo({id: this.loginInfo.id})).data
......
......@@ -64,7 +64,8 @@ export default {
const fileObj = document.getElementById('file').files[0]
let form = new FormData() // FormData 对象
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)
})
} else {
......@@ -74,7 +75,8 @@ export default {
},
async getTycpdmFirmInfo() {
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) {
await this.$router.replace({path: '/MyManage/UnVerify/vendorStatus'})
}
......@@ -87,6 +89,10 @@ export default {
mounted() {
this.loginInfo = JSON.parse(localStorage.getItem('loginInfo'))
this.getMemberInfo()
},
destroyed() {
const fileElement = document.getElementById('file')
fileElement && document.body.removeChild(fileElement)
}
}
</script>
......
......@@ -16,7 +16,7 @@
<span>很抱歉!您未通过中国物品编码中心实名认证。以下为您所在的 <a href="#" target="_blank">分支机构</a> 审核意见:</span>
<p>{{opinion}}</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>
</div>
<div class="success" v-if="tycpdmFirmInfo.logoutFlag === 0">
......@@ -41,8 +41,12 @@ export default {
}
},
methods: {
modifyInfoBtn() {
this.$router.replace({path: '/MyManage/UnVerify/vendor', query: {status: 'modify'}})
},
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() {
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