|
|
@ -61,6 +61,7 @@ |
|
|
|
@submitForm="submitForm" |
|
|
|
@formFormDateChange="formFormDateChange" |
|
|
|
@onEnter="onEnter" |
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
|
> |
|
|
|
<template v-slot="{row}"> |
|
|
|
<el-date-picker v-bind:modelValue="row['expireTime']?addDay(row['produceDate'],row['expireTime']):dayjs('2099-12-31').valueOf()" |
|
|
@ -224,6 +225,16 @@ const onEnter = async (field,value)=>{ |
|
|
|
formRef.value.setDefaultBlurValue(field,value) |
|
|
|
// getSearchTableData(value,true) |
|
|
|
} |
|
|
|
const clearSearchInput = (field)=>{ |
|
|
|
console.log('field',field) |
|
|
|
if('poNumber' == field){ |
|
|
|
//从库位代码 |
|
|
|
formRef.value.formRef.setValues({ |
|
|
|
supplierCode: '' |
|
|
|
}) |
|
|
|
tableData.value = [] |
|
|
|
} |
|
|
|
} |
|
|
|
const updateTableData = async (tableList)=>{ |
|
|
|
console.log('tableList',tableList) |
|
|
|
let itemCodes = tableList.filter(item=>tableData.value.find(item1=>item1['poNumber']==item['number']&&item1['supplierCode']==item['supplierCode']&&item1['poLine']==item['lineNumber']&&item1['itemCode']==item['itemCode'])) |
|
|
|