|
|
@ -196,14 +196,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
ItembasicApi.getItembasicPage({ |
|
|
|
code:itemCodes.join(',') |
|
|
|
}).then((res)=>{ |
|
|
|
console.log('有效期',res) |
|
|
|
tableData.value.forEach((item,index)=>{ |
|
|
|
tableData.value[index]['expireTime'] = index==0?1:2 |
|
|
|
res.list.forEach((item,index)=>{ |
|
|
|
const findItem = tableData.value.find(item1=>item1['itemCode']==item['code']) |
|
|
|
findItem['expireTime'] = findItem['expireTime'] |
|
|
|
}) |
|
|
|
// res.list.forEach((item,index)=>{ |
|
|
|
// const findItem = tableData.value.find(item1=>item1['itemCode']==item['code']) |
|
|
|
// findItem['expireTime'] = findItem['expireTime'] |
|
|
|
// }) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
@ -259,14 +255,11 @@ const getSearchTableData = async (number,formField,searchField)=>{ |
|
|
|
ItembasicApi.getItembasicPage({ |
|
|
|
code:itemCodes.join(',') |
|
|
|
}).then((res)=>{ |
|
|
|
console.log('有效期',res) |
|
|
|
tableData.value.forEach((item,index)=>{ |
|
|
|
tableData.value[index]['expireTime'] = index==0?1:2 |
|
|
|
res.list.forEach((item,index)=>{ |
|
|
|
const findItem = tableData.value.find(item1=>item1['itemCode']==item['code']) |
|
|
|
findItem['expireTime'] = findItem['expireTime'] |
|
|
|
|
|
|
|
}) |
|
|
|
// res.list.forEach((item,index)=>{ |
|
|
|
// const findItem = tableData.value.find(item1=>item1['itemCode']==item['code']) |
|
|
|
// findItem['expireTime'] = findItem['expireTime'] |
|
|
|
// }) |
|
|
|
}) |
|
|
|
} |
|
|
|
// 查询页面返回——详情 |
|
|
|