Browse Source

feat:[模板管理][update]

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

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

@ -265,8 +265,8 @@ export default {
label: "目标溶液编号",
prop: "targetSolutionCode",
bodyType: "input",
subType: "span",
subKey: "subTargetSolutionCode",
bodySubType: "span",
bodySubKey: "subTargetSolutionCode",
bodyFillType: "preFill",
width: 280
},
@ -409,16 +409,17 @@ export default {
};
},
mounted() {
},
methods: {
//
async handleUpdateCode() {
const ref = this.$refs.stepTableRef;
const {stepTableFormData} = this.formData;
const {stepTableFormData = []} = this.formData;
if(stepTableFormData.length === 0){
return;
}
const snList = await this.getLatestSn(stepTableFormData.length);
stepTableFormData.forEach((item,index) => {
ref.updateDataSourceByRowIndex(index,{subTargetSolutionCode: stepTableFormData.length==1?snList:snList[index]});
this.$refs.stepTableRef.updateDataSourceByRowIndex(index,{subTargetSolutionCode: stepTableFormData.length==1?snList:snList[index]});
})
this.$nextTick(() => {
//

Loading…
Cancel
Save