Commit 44ae4dd5 by qinjianhui

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

parent 3221af81
...@@ -63,7 +63,8 @@ export interface InterWarehousePage extends InterWarehouseBase { } ...@@ -63,7 +63,8 @@ export interface InterWarehousePage extends InterWarehouseBase { }
export interface InterWarehouseDetail extends InterWarehouseBase { export interface InterWarehouseDetail extends InterWarehouseBase {
currencyName?:string currencyName?:string
currencyCode?:string currencyCode?:string
productList: InterProductList[] productList: InterProductList[],
outRecordType?: string
} }
export interface ExportInWarehouseInfo extends warehouseSearchForm { export interface ExportInWarehouseInfo extends warehouseSearchForm {
total?: number total?: number
......
...@@ -325,11 +325,11 @@ const addOtherCurrency = async () => { ...@@ -325,11 +325,11 @@ const addOtherCurrency = async () => {
ElMessage.error('请输入出库数量') ElMessage.error('请输入出库数量')
return return
} }
const usableInventory = arr[i].usableInventory || 0 // const usableInventory = arr[i].usableInventory || 0
if ((arr[i].outCount as number) > usableInventory) { // if ((arr[i].outCount as number) > usableInventory) {
ElMessage.error('出库数量不能大于可用库存数量') // ElMessage.error('出库数量不能大于可用库存数量')
return // return
} // }
if (!arr[i].locationId) { if (!arr[i].locationId) {
ElMessage.error('请选择库位') ElMessage.error('请选择库位')
return return
...@@ -338,6 +338,7 @@ const addOtherCurrency = async () => { ...@@ -338,6 +338,7 @@ const addOtherCurrency = async () => {
const params: InterWarehouseDetail = { const params: InterWarehouseDetail = {
...editForm.value, ...editForm.value,
productList: otherPurchaseData.value, productList: otherPurchaseData.value,
outRecordType: 'picking_replenish'
} }
try { try {
await addOutRecordApi(params) 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