|
@@ -108,6 +108,7 @@ import dialog from "@/utils/dialog";
|
|
|
// import SetSubspecsDialog from "./components/setSubspecs.vue";
|
|
|
import InsterMxDialog from "./components/insterMx.vue";
|
|
|
import InsterPzDialog from "./components/insterPz.vue";
|
|
|
+import { SaveMattressAuditing } from "@/api/modules/quote";
|
|
|
|
|
|
interface detailProp {
|
|
|
/**
|
|
@@ -709,9 +710,9 @@ const orderDefaultAction = [
|
|
|
if (editType.value == 2 && data.js1_flag == 1) {
|
|
|
return "已产品补充审核,无法操作";
|
|
|
}
|
|
|
- if (editType.value == 1 && data.yw_flag == 1) {
|
|
|
- return "已完成业务补充审核,无法操作";
|
|
|
- }
|
|
|
+ // if (editType.value == 1 && data.yw_flag == 1) {
|
|
|
+ // return "已完成业务补充审核,无法操作";
|
|
|
+ // }
|
|
|
return "";
|
|
|
},
|
|
|
clickFunc: async item => {
|
|
@@ -868,8 +869,8 @@ const orderDefaultAction = [
|
|
|
return !orderStatus.value || editType.value != 1;
|
|
|
},
|
|
|
disabledTextCallBack: (data: any) => {
|
|
|
- if (data.yw_flag == 1) {
|
|
|
- return "已业务补充审核,无法操作";
|
|
|
+ if (data.js1_flag == 1) {
|
|
|
+ return "已产品补充审核,无法操作";
|
|
|
}
|
|
|
return "";
|
|
|
},
|
|
@@ -952,58 +953,102 @@ const orderDefaultAction = [
|
|
|
}
|
|
|
}
|
|
|
}),
|
|
|
- // [
|
|
|
buttonDefault({
|
|
|
- label: "业务补充",
|
|
|
- power: 79,
|
|
|
+ label: t("common.businessOrderCancel"),
|
|
|
+ power: 95,
|
|
|
limited: () => {
|
|
|
- return !!orderStatus.value || LjDetailRef.value?._mainData.xd_flag == 1;
|
|
|
+ return !!orderStatus.value;
|
|
|
},
|
|
|
disabledTextCallBack: (data: any) => {
|
|
|
- if (data.yw_flag == 1) {
|
|
|
- return "已业务补充审核,无法修改";
|
|
|
+ if (!CheckPower(95)) {
|
|
|
+ return `你没有【报价单-${t("common.businessOrderCancel")}】的使用权限`;
|
|
|
+ }
|
|
|
+ if (data.js1_flag == 1) {
|
|
|
+ return "已产品补充审核,无法操作";
|
|
|
+ }
|
|
|
+ if (data.parentid > 0) {
|
|
|
+ return "副规格无法操作,请在主规格中进行";
|
|
|
}
|
|
|
return "";
|
|
|
},
|
|
|
clickFunc: item => {
|
|
|
- routeToEdit(1);
|
|
|
+ ElMessageBox.confirm(`是否确定要${t("common.businessOrderCancel")}吗?`, "询问", {
|
|
|
+ confirmButtonText: "是",
|
|
|
+ cancelButtonText: "否",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ let _params = {
|
|
|
+ mattressids: [Number(LjDetailRef.value._mainData.mattressid)],
|
|
|
+ xd_flag: 0
|
|
|
+ };
|
|
|
+ SaveMattressAuditing(_params).then(() => {
|
|
|
+ ElMessage.success(t("sys.api.operationSuccess"));
|
|
|
+
|
|
|
+ LjDetailRef.value.refresh();
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch((e: TypeError) => {
|
|
|
+ ElMessage({
|
|
|
+ type: "info",
|
|
|
+ message: "操作取消"
|
|
|
+ });
|
|
|
+ });
|
|
|
}
|
|
|
}),
|
|
|
- buttonDefault({
|
|
|
- label: "业务审核",
|
|
|
- power: 80,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- const curRecords = [LjDetailRef.value?._mainData];
|
|
|
+ // [
|
|
|
+ // buttonDefault({
|
|
|
+ // label: "业务补充",
|
|
|
+ // power: 79,
|
|
|
+ // limited: () => {
|
|
|
+ // return !!orderStatus.value || LjDetailRef.value?._mainData.xd_flag == 1;
|
|
|
+ // },
|
|
|
+ // disabledTextCallBack: (data: any) => {
|
|
|
+ // if (data.yw_flag == 1) {
|
|
|
+ // return "已业务补充审核,无法修改";
|
|
|
+ // }
|
|
|
+ // return "";
|
|
|
+ // },
|
|
|
+ // clickFunc: item => {
|
|
|
+ // routeToEdit(1);
|
|
|
+ // }
|
|
|
+ // }),
|
|
|
+ // buttonDefault({
|
|
|
+ // label: "业务审核",
|
|
|
+ // power: 80,
|
|
|
+ // limited: () => {
|
|
|
+ // return !!orderStatus.value;
|
|
|
+ // },
|
|
|
+ // clickFunc: item => {
|
|
|
+ // const curRecords = [LjDetailRef.value?._mainData];
|
|
|
|
|
|
- YWAudit(1, curRecords, () => {
|
|
|
- LjDetailRef.value.refresh();
|
|
|
- });
|
|
|
- }
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: "业务撤审",
|
|
|
- power: 81,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- const curRecords = [LjDetailRef.value?._mainData];
|
|
|
+ // YWAudit(1, curRecords, () => {
|
|
|
+ // LjDetailRef.value.refresh();
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // }),
|
|
|
+ // buttonDefault({
|
|
|
+ // label: "业务撤审",
|
|
|
+ // power: 81,
|
|
|
+ // limited: () => {
|
|
|
+ // return !!orderStatus.value;
|
|
|
+ // },
|
|
|
+ // clickFunc: item => {
|
|
|
+ // const curRecords = [LjDetailRef.value?._mainData];
|
|
|
|
|
|
- YWAudit(0, curRecords, () => {
|
|
|
- LjDetailRef.value.refresh();
|
|
|
- });
|
|
|
- }
|
|
|
- }),
|
|
|
+ // YWAudit(0, curRecords, () => {
|
|
|
+ // LjDetailRef.value.refresh();
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // }),
|
|
|
// ],
|
|
|
// [
|
|
|
buttonDefault({
|
|
|
label: "产品补充",
|
|
|
power: 82,
|
|
|
limited: () => {
|
|
|
- return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ // return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ return !!orderStatus.value;
|
|
|
},
|
|
|
disabledTextCallBack: (data: any) => {
|
|
|
if (data.js1_flag == 1) {
|
|
@@ -1019,7 +1064,8 @@ const orderDefaultAction = [
|
|
|
label: "产品补充审核",
|
|
|
power: 83,
|
|
|
limited: () => {
|
|
|
- return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ // return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ return !!orderStatus.value;
|
|
|
},
|
|
|
clickFunc: item => {
|
|
|
const curRecords = [LjDetailRef.value?._mainData];
|
|
@@ -1033,7 +1079,8 @@ const orderDefaultAction = [
|
|
|
label: "产品补充撤审",
|
|
|
power: 84,
|
|
|
limited: () => {
|
|
|
- return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ // return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ return !!orderStatus.value;
|
|
|
},
|
|
|
clickFunc: item => {
|
|
|
const curRecords = [LjDetailRef.value?._mainData];
|
|
@@ -1049,7 +1096,8 @@ const orderDefaultAction = [
|
|
|
label: "清单补充",
|
|
|
power: 85,
|
|
|
limited: () => {
|
|
|
- return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ // return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ return !!orderStatus.value;
|
|
|
},
|
|
|
disabledTextCallBack: (data: any) => {
|
|
|
if (data.js2_flag == 1) {
|
|
@@ -1065,7 +1113,8 @@ const orderDefaultAction = [
|
|
|
label: "清单补充审核",
|
|
|
power: 86,
|
|
|
limited: () => {
|
|
|
- return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ // return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ return !!orderStatus.value;
|
|
|
},
|
|
|
clickFunc: item => {
|
|
|
const curRecords = [LjDetailRef.value?._mainData];
|
|
@@ -1079,7 +1128,8 @@ const orderDefaultAction = [
|
|
|
label: "清单补充撤审",
|
|
|
power: 87,
|
|
|
limited: () => {
|
|
|
- return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ // return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ return !!orderStatus.value;
|
|
|
},
|
|
|
clickFunc: item => {
|
|
|
const curRecords = [LjDetailRef.value?._mainData];
|
|
@@ -1146,7 +1196,8 @@ const orderDefaultAction = [
|
|
|
power: 88,
|
|
|
loading: () => loadingStatus.value.mtrldef,
|
|
|
limited: () => {
|
|
|
- return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ // return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ return !!orderStatus.value;
|
|
|
},
|
|
|
clickFunc: item => {
|
|
|
toCreateMtrl(1, [LjDetailRef.value?._mainData.mattressid]);
|
|
@@ -1158,7 +1209,8 @@ const orderDefaultAction = [
|
|
|
power: 90,
|
|
|
loading: () => loadingStatus.value.prdpf,
|
|
|
limited: () => {
|
|
|
- return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ // return !!orderStatus.value || LjDetailRef.value?._mainData.yw_flag == 0;
|
|
|
+ return !!orderStatus.value;
|
|
|
},
|
|
|
disabledTextCallBack: (data: any) => {
|
|
|
console.log("生成金蝶清单 disabledTextCallBack data", data);
|