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

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

Loading…
Cancel
Save