Browse Source

FWHL-166

hella_online_20250306
王宇飞 1 month ago
parent
commit
b487f76b9a
  1. 11
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

11
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

@ -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']))

Loading…
Cancel
Save