提交 6bdd7952 编写于 作者: dmx_mac's avatar dmx_mac

feat:供货商资质

上级 e5d4f406
......@@ -22,7 +22,7 @@ export const getCertifyHistory = (params) => {
description: '查看审核历史',
})
};
export const getCertifyDetail = (storeId) => {
export const getCertifyDetail = () => {
return fetch({
headers,
url: getBaseUrl(`store/certify/certifyDetail`),
......@@ -38,3 +38,12 @@ export const getRefuseTemplate = (type) => {
description: '获取错误模板',
})
};
export const postCertifyAudit = (params) => {
return fetch({
headers,
url: getBaseUrl(`store/certify/audit`),
method: 'post',
data:params,
description: '审核',
})
};
......@@ -238,7 +238,7 @@ import BreadCrumb from "@/components/breadcrumb.vue";
import historyDialog from "./components/historyDialog.vue";
import refuseDialog from "./components/refuseDialog.vue";
import { getCertifyDetail } from "@/utils/qualification";
import { getCertifyDetail, postCertifyAudit } from "@/utils/qualification";
import Footer from "../layout/footer.vue";
export default {
components: {
......@@ -319,8 +319,13 @@ export default {
);
},
confirm() {
const msg = "部分内容你已经标记拒绝,不可通过审核,请返回查看";
this.$confirm(msg, "确认通过审核吗?", {
const params = {
certificateInfoId:1,
certifyStatus:3,
certifyValidDtoList:this.certifyValidDtoList
}
if(this.certifyValidDtoList.length) {
this.$confirm("部分内容你已经标记拒绝,不可通过审核,请返回查看", "确认通过审核吗?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
......@@ -331,10 +336,30 @@ export default {
document.querySelector('#body-content').scrollTop = this.$refs.company.scrollHeight
})
.catch(() => {});
return;
}
this.$confirm('', "确认通过审核吗?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
postCertifyAudit(params).then(res => {
console.log(res);
document.querySelector('#body-content').scrollTop = 0;
this.init();
})
})
.catch(() => {});
},
handleClose() {
const msg = "未检测到有标记拒绝原因的项目,请返回查看";
this.$confirm(msg, "确认通过审核不通过吗?", {
const params = {
certificateInfoId:1,
certifyStatus:4,
certifyValidDtoList:this.certifyValidDtoList
}
if(this.certifyValidDtoList.length) {
this.$confirm('', "确认通过审核不通过吗?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
......@@ -343,6 +368,16 @@ export default {
document.body.scrollTop = 0;
})
.catch(() => {});
return;
}
this.$confirm('未检测到有标记拒绝原因的项目,请返回查看', "确认通过审核不通过吗?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {});
},
refuseConfirm(params) {
console.log(params);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册