Commit 44ae4dd5 by qinjianhui

fix:去掉 拣胚失败、补胚失败的出库数量校验

parent 3221af81
......@@ -63,7 +63,8 @@ export interface InterWarehousePage extends InterWarehouseBase { }
export interface InterWarehouseDetail extends InterWarehouseBase {
currencyName?:string
currencyCode?:string
productList: InterProductList[]
productList: InterProductList[],
outRecordType?: string
}
export interface ExportInWarehouseInfo extends warehouseSearchForm {
total?: number
......
......@@ -325,11 +325,11 @@ const addOtherCurrency = async () => {
ElMessage.error('请输入出库数量')
return
}
const usableInventory = arr[i].usableInventory || 0
if ((arr[i].outCount as number) > usableInventory) {
ElMessage.error('出库数量不能大于可用库存数量')
return
}
// const usableInventory = arr[i].usableInventory || 0
// if ((arr[i].outCount as number) > usableInventory) {
// ElMessage.error('出库数量不能大于可用库存数量')
// return
// }
if (!arr[i].locationId) {
ElMessage.error('请选择库位')
return
......@@ -338,6 +338,7 @@ const addOtherCurrency = async () => {
const params: InterWarehouseDetail = {
...editForm.value,
productList: otherPurchaseData.value,
outRecordType: 'picking_replenish'
}
try {
await addOutRecordApi(params)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment