销售订单增加推送QMS按钮
This commit is contained in:
parent
bfc18aed68
commit
22c653801c
|
|
@ -66,7 +66,8 @@ import reserveQueryBtnClick from './reserveQueryBtnClick';
|
|||
import tempSave_BtnClick from './tempSave_BtnClick';
|
||||
import showTemporary_BtnClick from './showTemporary_BtnClick';
|
||||
import printCountQuery_BtnClick from './printCountQuery_BtnClick';
|
||||
|
||||
import {SALEORDER_CONST} from "../../const";
|
||||
import {ajax, toast } from 'nc-lightapp-front';
|
||||
export default function clickBtn(index, props, id, value) {
|
||||
index = this.curindex;
|
||||
switch (id) {
|
||||
|
|
@ -303,15 +304,14 @@ export default function clickBtn(index, props, id, value) {
|
|||
// 推送qms
|
||||
case 'pushtoqms':
|
||||
let rowIds = [];
|
||||
let billId = props.form.getFormItemsValue(formId, HEADATTRCODE.CPMOHID).value;
|
||||
// 生产订单手动推艾普MES
|
||||
let billId = props.form.getFormItemsValue(SALEORDER_CONST.formId, SALEORDER_CONST.csaleorderid).value;
|
||||
rowIds[0] = billId;
|
||||
ajax({
|
||||
url: '/nccloud/so/refer/SaleOrderToQms.do',
|
||||
url: '/nccloud/so/saleorder/SaleOrderToQms.do',
|
||||
data: {pk: rowIds},
|
||||
success: (res) => {
|
||||
if (res.success) {
|
||||
toast({content: "传递生产订单成功", color: 'success'});
|
||||
toast({content: "传递成功", color: 'success'});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue