|
@@ -11,6 +11,7 @@ import {
|
|
GetERPWrkGrpList,
|
|
GetERPWrkGrpList,
|
|
GetERPMtrlTypeList,
|
|
GetERPMtrlTypeList,
|
|
CreatMtrlPf,
|
|
CreatMtrlPf,
|
|
|
|
+ CreatPrdPf,
|
|
DelMtrlPf
|
|
DelMtrlPf
|
|
} from "@/api/modules/common";
|
|
} from "@/api/modules/common";
|
|
import { transformTreeData, autoMergeCells, isFilterPrice } from "@/utils/index";
|
|
import { transformTreeData, autoMergeCells, isFilterPrice } from "@/utils/index";
|
|
@@ -90,7 +91,7 @@ export const useHooks = (t?: any) => {
|
|
type: "warning"
|
|
type: "warning"
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- CreatMtrlPf({ mattressid }).then(() => {
|
|
|
|
|
|
+ CreatPrdPf({ mattressid }).then(() => {
|
|
ElNotification({
|
|
ElNotification({
|
|
title: "金蝶清单",
|
|
title: "金蝶清单",
|
|
message: "生成成功!",
|
|
message: "生成成功!",
|
|
@@ -125,6 +126,28 @@ export const useHooks = (t?: any) => {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+ const toCreateMtrl = (type: number, mattressid: number) => {
|
|
|
|
+ ElMessageBox.confirm(`是否确定要生成/更新物料?`, "询问", {
|
|
|
|
+ confirmButtonText: t("common.okText"),
|
|
|
|
+ cancelButtonText: "否",
|
|
|
|
+ type: "warning"
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ CreatMtrlPf({ mattressid }).then(() => {
|
|
|
|
+ ElNotification({
|
|
|
|
+ title: "物料",
|
|
|
|
+ message: "生成/更新成功!",
|
|
|
|
+ type: "success"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ .catch((e: TypeError) => {
|
|
|
|
+ ElMessage({
|
|
|
|
+ type: "info",
|
|
|
|
+ message: "操作取消"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ };
|
|
|
|
|
|
const toUpdateL1Planprice = (mattressid: number) => {
|
|
const toUpdateL1Planprice = (mattressid: number) => {
|
|
ElMessageBox.confirm(`是否确定要更新计划价?`, "询问", {
|
|
ElMessageBox.confirm(`是否确定要更新计划价?`, "询问", {
|
|
@@ -1938,6 +1961,7 @@ export const useHooks = (t?: any) => {
|
|
RefreshMattressInterfaceQdList,
|
|
RefreshMattressInterfaceQdList,
|
|
fModelChoseMattress,
|
|
fModelChoseMattress,
|
|
toExcel,
|
|
toExcel,
|
|
|
|
+ toCreateMtrl,
|
|
toCreateORDelMtrlPf,
|
|
toCreateORDelMtrlPf,
|
|
toUpdateL1Planprice,
|
|
toUpdateL1Planprice,
|
|
YWAudit,
|
|
YWAudit,
|