备料计划卡片页下达请购生产增加确认弹框
This commit is contained in:
parent
aefc9676a4
commit
a7c27a1529
|
@ -38,6 +38,7 @@ import {getLangByResId} from '../../../../../mmpub/mmpub/pub/tool/multiLangUtil'
|
|||
import {pickmBackDeliverWithSet} from '../../../pub/pickmbackdeliverwithset';
|
||||
import {toast} from "../../../../../gl/public/components/utils";
|
||||
import borrowBtnClick from "../btnClicks/borrowBtnClick";
|
||||
import {showWarningDialog} from "../../../../../scmpub/scmpub/pub/tool/messageUtil";
|
||||
|
||||
export default async function clickBtn(props, id, text, record, index) {
|
||||
let _this = this;
|
||||
|
@ -828,6 +829,9 @@ export default async function clickBtn(props, id, text, record, index) {
|
|||
pushrzmsBtnClick.call(this, props);
|
||||
break;
|
||||
case "to_buying"://请购
|
||||
showWarningDialog("是否确定下达请购", "", {
|
||||
/* 国际化处理: 确认终止,是否确定将此合同终止*/
|
||||
beSureBtnClick: () => {
|
||||
hids = [];
|
||||
cpickmid = props.form.getFormItemsValue(AREA.formArea, FIELD.hid).value;
|
||||
if (cpickmid) {
|
||||
|
@ -845,8 +849,14 @@ export default async function clickBtn(props, id, text, record, index) {
|
|||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
break;
|
||||
case "to_pmo"://流程生产订单
|
||||
showWarningDialog("是否确定下达生产", "", {
|
||||
/* 国际化处理: 确认终止,是否确定将此合同终止*/
|
||||
beSureBtnClick: () => {
|
||||
hids = [];
|
||||
cpickmid = props.form.getFormItemsValue(AREA.formArea, FIELD.hid).value;
|
||||
if (cpickmid) {
|
||||
|
@ -867,6 +877,9 @@ export default async function clickBtn(props, id, text, record, index) {
|
|||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
break
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -31,6 +31,13 @@ import {updateCacheDataForList} from '../../../../../mmpub/mmpub/pub/cache';
|
|||
import {ajax, cacheTools, toast} from 'nc-lightapp-front';
|
||||
import PickmBorrowDlg from "../../pickmborrow/list";
|
||||
import {borrowOkBtnClick} from "../../card/btnClicks";
|
||||
import {showWarningDialog} from "../../../../../scmpub/scmpub/pub/tool/messageUtil";
|
||||
import {FIELDS} from "../../../../../ct/ct/purdaily/constance";
|
||||
import {
|
||||
cardBaseScriptAction,
|
||||
isShowScriptActionDlg,
|
||||
showCardScriptActionDlg
|
||||
} from "../../../../../ct/ct/purdaily/utils/baseScriptUtil";
|
||||
|
||||
export default function (props, key, text, record, index) {
|
||||
let pk = null;
|
||||
|
@ -439,6 +446,9 @@ export default function (props, key, text, record, index) {
|
|||
});
|
||||
break;
|
||||
case "to_buying"://请购
|
||||
showWarningDialog("是否确定下达请购", "", {
|
||||
/* 国际化处理: 确认终止,是否确定将此合同终止*/
|
||||
beSureBtnClick: () => {
|
||||
cpickmids = [];
|
||||
if (record && record.cpickmid) {
|
||||
cpickmids.push(record.cpickmid);
|
||||
|
@ -469,6 +479,8 @@ export default function (props, key, text, record, index) {
|
|||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
break;
|
||||
case "to_generalIn"://借料入库
|
||||
cpickmids = [];
|
||||
|
@ -527,6 +539,9 @@ export default function (props, key, text, record, index) {
|
|||
});
|
||||
break;
|
||||
case "to_pmo"://流程生产订单
|
||||
showWarningDialog("是否确定下达生产", "", {
|
||||
/* 国际化处理: 确认终止,是否确定将此合同终止*/
|
||||
beSureBtnClick: () => {
|
||||
cpickmids = [];
|
||||
if (record && record.cpickmid) {
|
||||
cpickmids.push(record.cpickmid);
|
||||
|
@ -557,6 +572,9 @@ export default function (props, key, text, record, index) {
|
|||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue