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