|
|
@ -165,7 +165,7 @@ |
|
|
|
{ label: '单位', name: 'InvUnit', width: 80, align: 'left' }, |
|
|
|
{ label: '生产日期', name: 'ProductDate', width: 150, align: 'left' }, |
|
|
|
{ label: '数量', name: 'Quantity', width: 100, align: 'left' }, |
|
|
|
{ label: '本次发料数量', name: 'CurrentQuantity', width: 200, align: 'left', editable: true }, |
|
|
|
{ label: '本次退料数量', name: 'CurrentQuantity', width: 200, align: 'left', editable: true }, |
|
|
|
{ label: '项目号', name: 'ProjectCode', width: 200, align: 'left', hidden: true }, |
|
|
|
{ label: '批次', name: 'BatchCode', width: 200, align: 'left', hidden: true }, |
|
|
|
{ label: '版本', name: 'Version', width: 200, align: 'left', hidden: true }, |
|
|
@ -290,11 +290,11 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
var TransType = '生产发料-生产订单备料表'; |
|
|
|
var TransType = '生产退料-生产退料单'; |
|
|
|
WorkPoint |
|
|
|
var keyValue = { |
|
|
|
TransCode: Code, |
|
|
|
TransSequence: TransSequence+'~'+ZSequence, |
|
|
|
TransSequence: TransSequence, |
|
|
|
Code: LotNo, |
|
|
|
TransType: TransType, |
|
|
|
WorkPoint: WorkPoint, |
|
|
@ -374,11 +374,12 @@ |
|
|
|
var RowData = gridList3.getRowData(rowIds[i]); |
|
|
|
|
|
|
|
if (RowData.CurrentQuantity == 0) { |
|
|
|
$.modalAlert("条码" + RowData.LotNo + "未输入本次发料数量,请确认!", "warning"); |
|
|
|
$.modalAlert("条码" + RowData.LotNo + "未输入本次退料数量,请确认!", "warning"); |
|
|
|
$.modalAlert("条码" + RowData.LotNo + "未输入本次退料数量,请确认!", "warning"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (RowData.CurrentQuantity > RowData.Quantity) { |
|
|
|
$.modalAlert("条码" + RowData.LotNo + "所输入本次发料数量大于条码剩余数量,请确认!", "warning"); |
|
|
|
$.modalAlert("条码" + RowData.LotNo + "所输入本次退料数量大于条码剩余数量,请确认!", "warning"); |
|
|
|
return; |
|
|
|
} |
|
|
|
AllLotNoNum = AllLotNoNum + Number(RowData.CurrentQuantity); |
|
|
@ -390,12 +391,12 @@ |
|
|
|
} |
|
|
|
var ICSASNs = { |
|
|
|
WorkPoint: WorkPoint, |
|
|
|
TransSequence: TransSequence + '~' + ZSequence, |
|
|
|
TransSequence: TransSequence, |
|
|
|
User: User, |
|
|
|
TransCode: Code, |
|
|
|
Amount: Amounts, |
|
|
|
Quantity: AllLotNoNum, |
|
|
|
TransType: "生产发料-生产订单备料表", |
|
|
|
TransType: "生产退料-生产退料单", |
|
|
|
MTime: date, |
|
|
|
Detail: Details, |
|
|
|
} |
|
|
|