|
|
@ -206,6 +206,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
let produceDateStr = formatDate(newRow['produceDate'],'YYYYMMDD'); |
|
|
|
newRow['batch'] = produceDateStr |
|
|
|
newRow['supplierBatch'] = produceDateStr |
|
|
|
newRow.expireDate = item['expireTime']?addDay(newRow['produceDate'],item['expireTime']).valueOf():dayjs('2099-12-31').valueOf() |
|
|
|
|
|
|
|
// if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode']&&item1['poLine'] == item['poLine']&&item1['poNumber'] == item['poNumber'])) return |
|
|
|
|
|
|
|
itemCodes.push(item['itemCode']) |
|
|
@ -285,6 +287,8 @@ const getSearchTableData = async (number,formField,searchField)=>{ |
|
|
|
let produceDateStr = formatDate(newRow['produceDate'],'YYYYMMDD'); |
|
|
|
newRow['batch'] = produceDateStr |
|
|
|
newRow['supplierBatch'] = produceDateStr |
|
|
|
newRow.expireDate = row['expireTime']?addDay(newRow['produceDate'],row['expireTime']).valueOf():dayjs('2099-12-31').valueOf() |
|
|
|
|
|
|
|
tableData.value.push(newRow) |
|
|
|
itemCodes.push(row['itemCode']) |
|
|
|
}) |
|
|
@ -409,6 +413,7 @@ const formFormDateChange = (field, val,row, index) => { |
|
|
|
let produceDateStr = formatDate(val,'YYYYMMDD'); |
|
|
|
row.batch = produceDateStr |
|
|
|
row.supplierBatch = produceDateStr |
|
|
|
row.expireDate = row['expireTime']?addDay(row['produceDate'],row['expireTime']).valueOf():dayjs('2099-12-31').valueOf() |
|
|
|
} |
|
|
|
} |
|
|
|
//供应商代码 回车搜索 |
|
|
|