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

feat:供货商资质

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