|
@@ -78,7 +78,7 @@
|
|
|
list:[],
|
|
|
labelPosition:'left',
|
|
|
isFirst:true,
|
|
|
- title:'字段映射维护-添加映射字段',
|
|
|
+ title:'字段映射维护-添加字段映射',
|
|
|
casesEIds:'',
|
|
|
form:{
|
|
|
tagType:1, //固定
|
|
@@ -122,12 +122,12 @@
|
|
|
id:infoCopy.quesCasesEntryDTOList[i].casesEntryId,
|
|
|
casesEntryId:infoCopy.quesCasesEntryDTOList[i].casesEntryId
|
|
|
}
|
|
|
- tmpArr.push(infoCopy.quesCasesEntryDTOList[i].casesEntryId)
|
|
|
+ tmpArr.push(""+infoCopy.quesCasesEntryDTOList[i].casesEntryId)
|
|
|
tmpArr1.push(obj)
|
|
|
}
|
|
|
infoCopy.quesCasesEntryDTOList?this.casesEIds = tmpArr:'';
|
|
|
infoCopy.quesCasesEntryVOList = [...tmpArr1];
|
|
|
- this.title='字段映射维护-修改映射字段';
|
|
|
+ this.title='字段映射维护-修改字段映射';
|
|
|
this.form = infoCopy;
|
|
|
this.getQcFlawList(tmpArr1);
|
|
|
}else{
|
|
@@ -138,6 +138,7 @@
|
|
|
this.form.hospitalId = hospitalId
|
|
|
this.form.modeId = modeId
|
|
|
this.form.tagName = qcSelecttModuleNme
|
|
|
+ this.getQcFlawList()
|
|
|
}
|
|
|
},
|
|
|
watch:{
|
|
@@ -159,6 +160,9 @@
|
|
|
localStorage.setItem("qcSelectHospital",val);
|
|
|
|
|
|
this.getQcFlawList()
|
|
|
+ this.form.modeId=""
|
|
|
+ this.form.quesCasesEntryDTOList =[]
|
|
|
+ this.casesEIds=[]
|
|
|
},
|
|
|
changeModule(val){
|
|
|
localStorage.setItem("qcSelectModule",val);
|
|
@@ -166,6 +170,8 @@
|
|
|
this.form.tagName = qcSelecttModuleNme
|
|
|
localStorage.setItem("qcSelectModuleName",qcSelecttModuleNme);
|
|
|
this.getQcFlawList()
|
|
|
+ this.form.quesCasesEntryDTOList =[]
|
|
|
+ this.casesEIds=[]
|
|
|
},
|
|
|
getQcFlawList(val){
|
|
|
const { hospitalId, modeId } = this.form
|
|
@@ -176,7 +182,23 @@
|
|
|
api.getQcFlawList(param).then((res)=>{
|
|
|
if(res.data.code==="0") {
|
|
|
const data = res.data.data;
|
|
|
+ this.flawList = []
|
|
|
this.flawList = data.records;
|
|
|
+ let info = this.$route.params.info;
|
|
|
+ if(info){
|
|
|
+ const infoCopy = Object.assign({},this.form);
|
|
|
+
|
|
|
+
|
|
|
+ for(let i = 0;i < infoCopy.quesCasesEntryDTOList.length;i++){
|
|
|
+ let obj = {
|
|
|
+ name:infoCopy.quesCasesEntryDTOList[i].casesEntryName,
|
|
|
+ casesEntryName:infoCopy.quesCasesEntryDTOList[i].casesEntryName,
|
|
|
+ id:infoCopy.quesCasesEntryDTOList[i].casesEntryId,
|
|
|
+ casesEntryId:infoCopy.quesCasesEntryDTOList[i].casesEntryId
|
|
|
+ }
|
|
|
+ this.flawList.unshift(obj)
|
|
|
+ }
|
|
|
+ }
|
|
|
}else{
|
|
|
this.warning("获取缺陷条目失败");
|
|
|
}
|