Browse Source

供应商发货/供应商发货申请----有效期通过接口请求数据

master_hella_20240701
yufei0306 8 months ago
parent
commit
c519e9875f
  1. 21
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  2. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

21
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

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

6
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

@ -649,7 +649,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}
},
{
label: '生产日期1',
label: '生产日期',
field: 'produceDate',
formatter: dateFormatter2,
detail: {
@ -715,7 +715,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}
},
{
label: '过期日期3',
label: '过期日期',
field: 'expireDate',
formatter: dateFormatter2,
detail: {
@ -1084,7 +1084,7 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch
}
},
{
label: '生产日期2',
label: '生产日期',
field: 'produceDate',
formatter: dateFormatter2,
detail: {

Loading…
Cancel
Save