|
@ -21,6 +21,7 @@ |
|
|
@formFormDateChange="formFormDateChange" |
|
|
@formFormDateChange="formFormDateChange" |
|
|
@onEnter="onEnter" |
|
|
@onEnter="onEnter" |
|
|
> |
|
|
> |
|
|
|
|
|
|
|
|
<template v-slot="{row}"> |
|
|
<template v-slot="{row}"> |
|
|
<el-date-picker v-bind:modelValue="row['expireTime']?addDay(row['produceDate'],row['expireTime']).format('YYYY-MM-DD'):'2099-12-31'" |
|
|
<el-date-picker v-bind:modelValue="row['expireTime']?addDay(row['produceDate'],row['expireTime']).format('YYYY-MM-DD'):'2099-12-31'" |
|
|
:clearable="true" |
|
|
:clearable="true" |
|
@ -189,7 +190,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
}).then((res)=>{ |
|
|
}).then((res)=>{ |
|
|
res.list.forEach((item,index)=>{ |
|
|
res.list.forEach((item,index)=>{ |
|
|
const findItem = tableData.value.find(item1=>item1['itemCode']==item['code']) |
|
|
const findItem = tableData.value.find(item1=>item1['itemCode']==item['code']) |
|
|
findItem['expireTime'] = findItem['expireTime'] |
|
|
findItem['expireTime'] = item['expireTime'] |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|