|
@@ -1956,176 +1956,176 @@ const orderDefaultAction = [
|
|
|
});
|
|
|
}
|
|
|
}),
|
|
|
- [
|
|
|
- buttonDefault({
|
|
|
- label: t("common.businessOrder"),
|
|
|
- power: 94,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- disabledTextCallBack: (data: any) => {
|
|
|
- if (!CheckPower(94)) {
|
|
|
- return `你没有【报价单-${t("common.businessOrder")}】的使用权限`;
|
|
|
- }
|
|
|
- if (data.parentid > 0) {
|
|
|
- return "副规格无法操作,请在主规格中进行";
|
|
|
- }
|
|
|
- return "";
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- ElMessageBox.confirm("是否确定要业务下单吗?", "询问", {
|
|
|
- confirmButtonText: "是",
|
|
|
- cancelButtonText: "否",
|
|
|
- type: "warning"
|
|
|
+ // [
|
|
|
+ buttonDefault({
|
|
|
+ label: t("common.businessOrder"),
|
|
|
+ power: 94,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value;
|
|
|
+ },
|
|
|
+ disabledTextCallBack: (data: any) => {
|
|
|
+ if (!CheckPower(94)) {
|
|
|
+ return `你没有【报价单-${t("common.businessOrder")}】的使用权限`;
|
|
|
+ }
|
|
|
+ if (data.parentid > 0) {
|
|
|
+ return "副规格无法操作,请在主规格中进行";
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ ElMessageBox.confirm("是否确定要业务下单吗?", "询问", {
|
|
|
+ confirmButtonText: "是",
|
|
|
+ cancelButtonText: "否",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ let _params = {
|
|
|
+ mattressids: [Number(LjDetailRef.value._mainData.mattressid)],
|
|
|
+ xd_flag: 1
|
|
|
+ };
|
|
|
+ SaveMattressAuditing(_params).then(() => {
|
|
|
+ ElMessage.success(t("sys.api.operationSuccess"));
|
|
|
+
|
|
|
+ LjDetailRef.value.refresh();
|
|
|
+ });
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- let _params = {
|
|
|
- mattressids: [Number(LjDetailRef.value._mainData.mattressid)],
|
|
|
- xd_flag: 1
|
|
|
- };
|
|
|
- SaveMattressAuditing(_params).then(() => {
|
|
|
- ElMessage.success(t("sys.api.operationSuccess"));
|
|
|
-
|
|
|
- LjDetailRef.value.refresh();
|
|
|
- });
|
|
|
- })
|
|
|
- .catch((e: TypeError) => {
|
|
|
- ElMessage({
|
|
|
- type: "info",
|
|
|
- message: "操作取消"
|
|
|
- });
|
|
|
+ .catch((e: TypeError) => {
|
|
|
+ ElMessage({
|
|
|
+ type: "info",
|
|
|
+ message: "操作取消"
|
|
|
});
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: t("common.businessOrderCancel"),
|
|
|
+ power: 95,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value;
|
|
|
+ },
|
|
|
+ disabledTextCallBack: (data: any) => {
|
|
|
+ if (!CheckPower(95)) {
|
|
|
+ return `你没有【报价单-${t("common.businessOrderCancel")}】的使用权限`;
|
|
|
}
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: t("common.businessOrderCancel"),
|
|
|
- power: 95,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- disabledTextCallBack: (data: any) => {
|
|
|
- if (!CheckPower(95)) {
|
|
|
- return `你没有【报价单-${t("common.businessOrderCancel")}】的使用权限`;
|
|
|
- }
|
|
|
- if (data.parentid > 0) {
|
|
|
- return "副规格无法操作,请在主规格中进行";
|
|
|
- }
|
|
|
- return "";
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- ElMessageBox.confirm(`是否确定要${t("common.businessOrderCancel")}吗?`, "询问", {
|
|
|
- confirmButtonText: "是",
|
|
|
- cancelButtonText: "否",
|
|
|
- type: "warning"
|
|
|
+ if (data.parentid > 0) {
|
|
|
+ return "副规格无法操作,请在主规格中进行";
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ 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();
|
|
|
+ });
|
|
|
})
|
|
|
- .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: "操作取消"
|
|
|
- });
|
|
|
+ .catch((e: TypeError) => {
|
|
|
+ ElMessage({
|
|
|
+ type: "info",
|
|
|
+ message: "操作取消"
|
|
|
});
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ buttonDefault({
|
|
|
+ label: t("common.auditFinance"),
|
|
|
+ power: 73,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value;
|
|
|
+ },
|
|
|
+ disabledTextCallBack: (data: any) => {
|
|
|
+ if (!CheckPower(73)) {
|
|
|
+ return `你没有【报价单-${t("common.auditFinance")}】的使用权限`;
|
|
|
}
|
|
|
- })
|
|
|
- ],
|
|
|
- [
|
|
|
- buttonDefault({
|
|
|
- label: t("common.auditFinance"),
|
|
|
- power: 73,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- disabledTextCallBack: (data: any) => {
|
|
|
- if (!CheckPower(73)) {
|
|
|
- return `你没有【报价单-${t("common.auditFinance")}】的使用权限`;
|
|
|
- }
|
|
|
- if (data.parentid > 0) {
|
|
|
- return "副规格无法操作,请在主规格中进行";
|
|
|
- }
|
|
|
- if (data.flag == 1) {
|
|
|
- return "已审核";
|
|
|
- }
|
|
|
- return "";
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- ElMessageBox.confirm(`是否确定要${t("common.auditFinance")}吗?`, "询问", {
|
|
|
- confirmButtonText: "是",
|
|
|
- cancelButtonText: "否",
|
|
|
- type: "warning"
|
|
|
+ if (data.parentid > 0) {
|
|
|
+ return "副规格无法操作,请在主规格中进行";
|
|
|
+ }
|
|
|
+ if (data.flag == 1) {
|
|
|
+ return "已审核";
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ ElMessageBox.confirm(`是否确定要${t("common.auditFinance")}吗?`, "询问", {
|
|
|
+ confirmButtonText: "是",
|
|
|
+ cancelButtonText: "否",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ let _params = {
|
|
|
+ mattressids: [Number(LjDetailRef.value._mainData.mattressid)],
|
|
|
+ flag: 1
|
|
|
+ };
|
|
|
+ SaveMattressAuditing(_params).then(() => {
|
|
|
+ ElMessage.success(t("sys.api.operationSuccess"));
|
|
|
+
|
|
|
+ LjDetailRef.value.refresh();
|
|
|
+ });
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- let _params = {
|
|
|
- mattressids: [Number(LjDetailRef.value._mainData.mattressid)],
|
|
|
- flag: 1
|
|
|
- };
|
|
|
- SaveMattressAuditing(_params).then(() => {
|
|
|
- ElMessage.success(t("sys.api.operationSuccess"));
|
|
|
-
|
|
|
- LjDetailRef.value.refresh();
|
|
|
- });
|
|
|
- })
|
|
|
- .catch((e: TypeError) => {
|
|
|
- ElMessage({
|
|
|
- type: "info",
|
|
|
- message: "操作取消"
|
|
|
- });
|
|
|
+ .catch((e: TypeError) => {
|
|
|
+ ElMessage({
|
|
|
+ type: "info",
|
|
|
+ message: "操作取消"
|
|
|
});
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: t("common.withdrawAuditFinance"),
|
|
|
+ power: 74,
|
|
|
+ limited: () => {
|
|
|
+ return !!orderStatus.value;
|
|
|
+ },
|
|
|
+ disabledTextCallBack: (data: any) => {
|
|
|
+ if (!CheckPower(74)) {
|
|
|
+ return `你没有【报价单-${t("common.withdrawAuditFinance")}】的使用权限`;
|
|
|
}
|
|
|
- }),
|
|
|
- buttonDefault({
|
|
|
- label: t("common.withdrawAuditFinance"),
|
|
|
- power: 74,
|
|
|
- limited: () => {
|
|
|
- return !!orderStatus.value;
|
|
|
- },
|
|
|
- disabledTextCallBack: (data: any) => {
|
|
|
- if (!CheckPower(74)) {
|
|
|
- return `你没有【报价单-${t("common.withdrawAuditFinance")}】的使用权限`;
|
|
|
- }
|
|
|
- if (data.parentid > 0) {
|
|
|
- return "副规格无法操作,请在主规格中进行";
|
|
|
- }
|
|
|
- if (data.flag != 1) {
|
|
|
- return "未审核";
|
|
|
- }
|
|
|
- return "";
|
|
|
- },
|
|
|
- clickFunc: item => {
|
|
|
- ElMessageBox.confirm(`是否确定要${t("common.withdrawAuditFinance")}吗?`, "询问", {
|
|
|
- confirmButtonText: "是",
|
|
|
- cancelButtonText: "否",
|
|
|
- type: "warning"
|
|
|
+ if (data.parentid > 0) {
|
|
|
+ return "副规格无法操作,请在主规格中进行";
|
|
|
+ }
|
|
|
+ if (data.flag != 1) {
|
|
|
+ return "未审核";
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ },
|
|
|
+ clickFunc: item => {
|
|
|
+ ElMessageBox.confirm(`是否确定要${t("common.withdrawAuditFinance")}吗?`, "询问", {
|
|
|
+ confirmButtonText: "是",
|
|
|
+ cancelButtonText: "否",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ let _params = {
|
|
|
+ mattressids: [Number(LjDetailRef.value._mainData.mattressid)],
|
|
|
+ flag: 0
|
|
|
+ };
|
|
|
+ SaveMattressAuditing(_params).then(() => {
|
|
|
+ ElMessage.success(t("sys.api.operationSuccess"));
|
|
|
+
|
|
|
+ LjDetailRef.value.refresh();
|
|
|
+ });
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- let _params = {
|
|
|
- mattressids: [Number(LjDetailRef.value._mainData.mattressid)],
|
|
|
- flag: 0
|
|
|
- };
|
|
|
- SaveMattressAuditing(_params).then(() => {
|
|
|
- ElMessage.success(t("sys.api.operationSuccess"));
|
|
|
-
|
|
|
- LjDetailRef.value.refresh();
|
|
|
- });
|
|
|
- })
|
|
|
- .catch((e: TypeError) => {
|
|
|
- ElMessage({
|
|
|
- type: "info",
|
|
|
- message: "操作取消"
|
|
|
- });
|
|
|
+ .catch((e: TypeError) => {
|
|
|
+ ElMessage({
|
|
|
+ type: "info",
|
|
|
+ message: "操作取消"
|
|
|
});
|
|
|
- }
|
|
|
- })
|
|
|
- ],
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ // ],
|
|
|
buttonDefault({
|
|
|
label: t("common.copyQuote"),
|
|
|
power: 75,
|