借料入库代码优化

This commit is contained in:
mzr 2025-09-07 11:05:41 +08:00
parent 6c7652d70c
commit 687aa7765c
1 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,5 @@
import {ajax, base, toast} from 'nc-lightapp-front';
import {AREA, DIALOGCODE, FIELD, URL} from '../../constance';
import {getLangByResId} from '../../../../../mmpub/mmpub/pub/tool/multiLangUtil';
import {showWarningInfo} from '../../../../../mmpub/mmpub/pub/tool/messageUtil';
import PickmBorrowDlg from "../../pickmborrow/list";
@ -63,7 +62,7 @@ function oKBtnClicks(props) {
let rowids = [];
let hids = [];
let hid;
let rows = props.table.getCheckedRows(AREA.borrowMaterialDialog);
let rows = props.table.getCheckedRows(TABLE_HEAD);
hid = props.form.getFormItemsValue(AREA.formArea, FIELD.hid).value;
hids.push(hid);
// 如果没有选中行,则提示并返回,不进行任何操作
@ -76,17 +75,18 @@ function oKBtnClicks(props) {
}
let data = {
cpickmids: hids,
cpickmbids: rowids
cpickmbids: rowids,
rows: rows
}
console.log('data = ', data);
ajax({
url: URL.pickmItemsQuery,
url: URL.convertOtherIn,
data: data,
success: res => {
if (res.success && res.data) {
if (res.success) {
toast({color: 'success', title: "推送成功"});
this.props.modal.close(AREA.borrowMaterialDialog);
toast({color: 'success', title: "操作成功"});
this.props.modal.close(TABLE_HEAD);
}
}
},