|
@@ -117,7 +117,6 @@
|
|
const userLoginDTO = JSON.parse(localStorage.getItem('userLoginDTO'))
|
|
const userLoginDTO = JSON.parse(localStorage.getItem('userLoginDTO'))
|
|
this.modifier = userLoginDTO && userLoginDTO.linkman
|
|
this.modifier = userLoginDTO && userLoginDTO.linkman
|
|
|
|
|
|
- console.log(data)
|
|
|
|
if(isEdit){
|
|
if(isEdit){
|
|
this.title = '病例条目-修改'
|
|
this.title = '病例条目-修改'
|
|
this.isEdit = isEdit
|
|
this.isEdit = isEdit
|
|
@@ -157,7 +156,6 @@
|
|
const result = res.data;
|
|
const result = res.data;
|
|
if(result.code==0){
|
|
if(result.code==0){
|
|
this.hospitalList = result.data
|
|
this.hospitalList = result.data
|
|
- console.log('hospitalList',this.hospitalList)
|
|
|
|
const tableData = []
|
|
const tableData = []
|
|
for(let i = 0; i < this.hospitalList.length; i++){
|
|
for(let i = 0; i < this.hospitalList.length; i++){
|
|
tableData.push({
|
|
tableData.push({
|
|
@@ -179,7 +177,8 @@
|
|
}else{
|
|
}else{
|
|
this.$message({
|
|
this.$message({
|
|
message:result.msg,
|
|
message:result.msg,
|
|
- type:'warning'
|
|
|
|
|
|
+ type:'warning',
|
|
|
|
+ showClose: true
|
|
});
|
|
});
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -190,11 +189,11 @@
|
|
const result = res.data;
|
|
const result = res.data;
|
|
if(result.code==0){
|
|
if(result.code==0){
|
|
this.caseLIst = result.data
|
|
this.caseLIst = result.data
|
|
- console.log('caseLIst',this.caseLIst)
|
|
|
|
}else{
|
|
}else{
|
|
this.$message({
|
|
this.$message({
|
|
message:result.msg,
|
|
message:result.msg,
|
|
- type:'warning'
|
|
|
|
|
|
+ type:'warning',
|
|
|
|
+ showClose: true
|
|
});
|
|
});
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -207,7 +206,22 @@
|
|
},
|
|
},
|
|
comfirn(form){
|
|
comfirn(form){
|
|
const {itemName,casesId,itemCode,remark,levelNo,precond} = this.form
|
|
const {itemName,casesId,itemCode,remark,levelNo,precond} = this.form
|
|
-
|
|
|
|
|
|
+ if(!itemName){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:"请输入条目名称",
|
|
|
|
+ type:'warning',
|
|
|
|
+ showClose: true
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(!itemCode){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:"请输入条目编码",
|
|
|
|
+ type:'warning',
|
|
|
|
+ showClose: true
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
|
|
let casesEntryHospitals = []
|
|
let casesEntryHospitals = []
|
|
for(let i = 0; i < this.multipleSelection.length; i++){
|
|
for(let i = 0; i < this.multipleSelection.length; i++){
|
|
@@ -234,19 +248,20 @@
|
|
creator: '0',
|
|
creator: '0',
|
|
casesEntryHospitals:casesEntryHospitals
|
|
casesEntryHospitals:casesEntryHospitals
|
|
}
|
|
}
|
|
- console.log('params',params)
|
|
|
|
api.addRecordItem(params).then((res)=>{
|
|
api.addRecordItem(params).then((res)=>{
|
|
if(res.data.code==0){
|
|
if(res.data.code==0){
|
|
this.$message({
|
|
this.$message({
|
|
message:"添加成功",
|
|
message:"添加成功",
|
|
- type:'success'
|
|
|
|
|
|
+ type:'success',
|
|
|
|
+ showClose: true
|
|
})
|
|
})
|
|
// this.$router.push({path: 'LT-GBBXXWH-BBXXWH'});
|
|
// this.$router.push({path: 'LT-GBBXXWH-BBXXWH'});
|
|
this.$router.push({name: 'RecordItemList'});
|
|
this.$router.push({name: 'RecordItemList'});
|
|
}else{
|
|
}else{
|
|
this.$message({
|
|
this.$message({
|
|
message:res.data.msg,
|
|
message:res.data.msg,
|
|
- type:'warning'
|
|
|
|
|
|
+ type:'warning',
|
|
|
|
+ showClose: true
|
|
});
|
|
});
|
|
}
|
|
}
|
|
})
|
|
})
|