|
|
|
@ -16,7 +16,7 @@ |
|
|
|
<div class="template-form-item"> |
|
|
|
<BaseInfoFormPcakge @clickable="handleClickable" ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur" |
|
|
|
:formData="formData" /> |
|
|
|
<CustomTable fieldItemLabel = "操作步骤" @blur="onHandleTableBlur" :showAddRow="false" :showOperation="false" ref="stepTableRef" :columns="stepColumns" |
|
|
|
<CustomTable fieldItemLabel = "操作步骤" @blur="onHandleTableBlur" :showAddRow="false" :showOperation="fillType==='actFill'" ref="stepTableRef" :columns="stepColumns" |
|
|
|
:formData="formData" > |
|
|
|
<template slot="operation" slot-scope="{ row, rowIndex}"> |
|
|
|
<TableOpertaion :fillType="fillType" :row="row" :rowIndex="rowIndex" @deleteRow="deleteRow"></TableOpertaion> |
|
|
|
@ -417,6 +417,11 @@ export default { |
|
|
|
if(stepTableFormData.length === 0){ |
|
|
|
return; |
|
|
|
} |
|
|
|
const hasAnyWithValue = stepTableFormData.some(row => |
|
|
|
row.subTargetSolutionCode && row.subTargetSolutionCode.trim() !== ''); |
|
|
|
if(hasAnyWithValue){ |
|
|
|
return; |
|
|
|
} |
|
|
|
const snList = await this.getLatestSn(stepTableFormData.length); |
|
|
|
stepTableFormData.forEach((item,index) => { |
|
|
|
this.$refs.stepTableRef.updateDataSourceByRowIndex(index,{subTargetSolutionCode: stepTableFormData.length==1?snList:snList[index]}); |
|
|
|
|