|
|
@ -60,7 +60,7 @@ |
|
|
|
@inputNumberChange="inputNumberChange" |
|
|
|
@tableFormSelectOnBlur="tableFormSelectOnBlur" |
|
|
|
><template v-slot="{row}"> |
|
|
|
<el-date-picker v-bind:modelValue="row['validityDays']?addDay(row['produceDate'],row['validityDays']).format('YYYY-MM-DD'):''" |
|
|
|
<el-date-picker v-bind:modelValue="row['validityDays']?addDay(row['produceDate'],row['validityDays']):''" format="YYYY-MM-DD" |
|
|
|
:clearable="true" |
|
|
|
style="width: 100%" |
|
|
|
:disabled="true" |
|
|
@ -609,7 +609,7 @@ const tableSelectionDelete = (selection) => { |
|
|
|
const submitForm = async (formType, data) => { |
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|
data.subList.forEach(row=>{ |
|
|
|
row['expireDate'] = row['validityDays']?addDay(row['produceDate'],row['validityDays']).format('YYYY-MM-DD'):'' |
|
|
|
row['expireDate'] = row['validityDays']?addDay(row['produceDate'],row['validityDays']):'' |
|
|
|
}) |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|