Browse Source

feat:[模板管理][update]

lkf
luojie 2 months ago
parent
commit
2428c18a18
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue

+ 6
- 1
src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue View File

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

Loading…
Cancel
Save