|
@ -59,7 +59,21 @@ |
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
|
|
|
> |
|
|
|
|
|
<template v-slot="{ row }"> |
|
|
|
|
|
<el-date-picker |
|
|
|
|
|
v-bind:modelValue=" |
|
|
|
|
|
row['expireTime'] |
|
|
|
|
|
? addDay(row['produceDate'], row['expireTime']) |
|
|
|
|
|
: dayjs('2099-12-31').valueOf() |
|
|
|
|
|
" |
|
|
|
|
|
:clearable="true" |
|
|
|
|
|
style="width: 100%" |
|
|
|
|
|
:disabled="true" |
|
|
|
|
|
:placeholder="t('ts.选择日期')" |
|
|
/> |
|
|
/> |
|
|
|
|
|
</template> |
|
|
|
|
|
</BasicForm> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<Detail |
|
|
<Detail |
|
@ -142,9 +156,12 @@ import { |
|
|
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts' |
|
|
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts' |
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
import dayjs from 'dayjs' |
|
|
|
|
|
import { addDay } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
// 制品收货申请 |
|
|
// 制品收货申请 |
|
|
// 隔离报工申请 |
|
|
// 隔离报工申请 |
|
|
|
|
|
// 隔离收货申请 |
|
|
defineOptions({ name: 'ProductreceiptRequestMain' }) |
|
|
defineOptions({ name: 'ProductreceiptRequestMain' }) |
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
@ -221,6 +238,12 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro |
|
|
row['bomVersion'] = res.list[0].version |
|
|
row['bomVersion'] = res.list[0].version |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
// 生产日期默认带入当前系统日期 史吏 |
|
|
|
|
|
row['produceDate'] = dayjs().valueOf() |
|
|
|
|
|
if(res.length>0){ |
|
|
|
|
|
row['expireTime'] = res[0]['expireTime'] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}else if(formField == 'workStationCode'){ |
|
|
}else if(formField == 'workStationCode'){ |
|
|
//添加明细 |
|
|
//添加明细 |
|
|
val.forEach(item=>{ |
|
|
val.forEach(item=>{ |
|
@ -595,7 +618,13 @@ const submitForm = async (formType, submitData) => { |
|
|
if(data.masterId){ |
|
|
if(data.masterId){ |
|
|
data.id = data.masterId |
|
|
data.id = data.masterId |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
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))) { |
|
|
if(data.subList.find(item => (item.qty <= 0))) { |
|
|
message.warning('数量必须大于0') |
|
|
message.warning('数量必须大于0') |
|
|
return |
|
|
return |
|
|