|
@@ -25,6 +25,7 @@
|
|
|
:isLast="form.klDiagnoseTypeVO.length===1"
|
|
|
@setRules="setRules"
|
|
|
@addDiag="addDiag"
|
|
|
+ @copyDiag="copyDiag"
|
|
|
@delDiag="delDiag"></DiagBaseType>
|
|
|
</el-form-item>
|
|
|
<el-button class="disclButn" size="small" type="primary" @click="confirm">保存</el-button>
|
|
@@ -94,7 +95,13 @@
|
|
|
this.title = "诊断依据维护-"+(this.isCopy?'复制':'修改')+"诊断依据";
|
|
|
this.conceptList = [{conceptId:info.conceptId,conceptName:info.conceptName}];
|
|
|
this.form=Object.assign({},this.form,this.formatData(info));
|
|
|
- this.isCopy&&delete this.form.id;
|
|
|
+ if(this.isCopy){
|
|
|
+ this.conceptList =[];
|
|
|
+ delete this.form.conceptName;
|
|
|
+ delete this.form.conceptId;
|
|
|
+ delete this.form.description;
|
|
|
+ delete this.form.id;
|
|
|
+ }
|
|
|
console.log(info)
|
|
|
}
|
|
|
this.setRules()
|
|
@@ -240,6 +247,11 @@
|
|
|
this.form.klDiagnoseTypeVO.push(temp);
|
|
|
this.setRules();
|
|
|
},
|
|
|
+ copyDiag(i){
|
|
|
+ let temp = JSON.parse(JSON.stringify(this.form.klDiagnoseTypeVO[i]));
|
|
|
+ this.form.klDiagnoseTypeVO.splice(i,0,temp);
|
|
|
+ this.setRules();
|
|
|
+ },
|
|
|
delDiag(i){
|
|
|
this.form.klDiagnoseTypeVO.splice(i,1);
|
|
|
},
|