diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
index 4b9ad9fd4..45fd2b9d4 100644
--- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
+++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
@@ -59,7 +59,21 @@
@tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
- />
+ >
+
+
+
+
0){
+ row['expireTime'] = res[0]['expireTime']
+ }
+
}else if(formField == 'workStationCode'){
//添加明细
val.forEach(item=>{
@@ -595,7 +618,13 @@ const submitForm = async (formType, submitData) => {
if(data.masterId){
data.id = data.masterId
}
+
data.subList = tableData.value // 拼接子表数据参数
+ tableData.value.forEach((row, index) => {
+ row['expireDate'] = row['expireTime']
+ ? addDay(row['produceDate'], row['expireTime']).valueOf()
+ : dayjs('2099-12-31').valueOf()
+ })
if(data.subList.find(item => (item.qty <= 0))) {
message.warning('数量必须大于0')
return
diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts
index 929e92008..7e2174154 100644
--- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts
+++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts
@@ -1238,7 +1238,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive
width: 180
},
tableForm: {
- type: 'FormDate',
+ type: 'slot',
+ disabled: true,
valueFormat: 'x',
},
form: {