|
|
|
@ -112,21 +112,18 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="项目类别" prop="itemTypeId"> |
|
|
|
<!-- <el-cascader |
|
|
|
v-model="form.itemTypeId" |
|
|
|
:options="itemTypeId" |
|
|
|
:props="props" |
|
|
|
:show-all-levels="false" |
|
|
|
> |
|
|
|
</el-cascader> --> |
|
|
|
<el-cascader |
|
|
|
v-model="form.itemTypeId" |
|
|
|
:options="itemTypeId" |
|
|
|
popper-class="example" |
|
|
|
ref="itemTypeId" |
|
|
|
@change="onchange" |
|
|
|
:props="{ |
|
|
|
value: 'id', |
|
|
|
label: 'displayName', |
|
|
|
children: 'treeChildren' |
|
|
|
children: 'treeChildren', |
|
|
|
checkStrictly: true, |
|
|
|
expandTrigger: 'hover', |
|
|
|
}" |
|
|
|
></el-cascader> |
|
|
|
<!-- <el-select |
|
|
|
@ -578,12 +575,12 @@ |
|
|
|
</el-col> --> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="结果" prop="result"> |
|
|
|
<el-input v-model="rusetform.result" ref="ruseInput" @change="changeUpdate($event)"></el-input> |
|
|
|
<el-input v-model="rusetform.result" ref="ruseInput" @change="changeUpdate($event)" @input="change($event)"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="诊断编号"> |
|
|
|
<el-select v-model="rusetform.diagnosisId" placeholder="请选择" filterable :filter-method="remoteMethod" default-first-option clearable @change="quckRusetform"> |
|
|
|
<el-select v-model="rusetform.diagnosisId" placeholder="请选择" filterable @change="quckRusetform"> |
|
|
|
<el-option |
|
|
|
v-for="item in quickAsb" |
|
|
|
:key="item.id" |
|
|
|
@ -596,12 +593,12 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="小结前加名称"> |
|
|
|
<el-checkbox v-model="rusetform.isNameIntoSummary" true-label="Y" false-label="N"/> |
|
|
|
<el-checkbox v-model="rusetform.isNameIntoSummary" true-label="Y" false-label="N" @change="quckRusetform"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="结果进入小结"> |
|
|
|
<el-checkbox v-model="rusetform.isResultIntoSummary" true-label="Y" false-label="N" /> |
|
|
|
<el-checkbox v-model="rusetform.isResultIntoSummary" true-label="Y" false-label="N" @change="quckRusetform"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
@ -610,6 +607,7 @@ |
|
|
|
v-model="rusetform.resultStatusId" |
|
|
|
placeholder="请选择" |
|
|
|
filterable |
|
|
|
@change="quckRusetform" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in resultStatusId" |
|
|
|
@ -1394,7 +1392,7 @@ export default { |
|
|
|
}; |
|
|
|
postapi("/api/app/reference-range/text", obj).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("新增成功"); |
|
|
|
this.$message.success("新增成功"); |
|
|
|
this.fssubdex = ""; |
|
|
|
this.curRow.referenceRangeTypeFlag=this.referencerangevalue |
|
|
|
} |
|
|
|
@ -1407,7 +1405,7 @@ export default { |
|
|
|
}; |
|
|
|
putapi(`/api/app/reference-range/${this.fssubdexDete.id}/text`, obj).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("修改成功"); |
|
|
|
this.$message.success("修改成功"); |
|
|
|
this.fssubdex = ""; |
|
|
|
this.curRow.referenceRangeTypeFlag=this.referencerangevalue |
|
|
|
} |
|
|
|
@ -1476,7 +1474,7 @@ export default { |
|
|
|
if(this.diagnostiele==1){ |
|
|
|
postapi("/api/app/item-result-match", this.editdigoisceditingform).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("添加成功"); |
|
|
|
this.$message.success("添加成功"); |
|
|
|
this.diagnosticediting = false; |
|
|
|
this.putDiagnosis() |
|
|
|
} |
|
|
|
@ -1490,8 +1488,9 @@ export default { |
|
|
|
} |
|
|
|
).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("修改成功"); |
|
|
|
this.$message.success("修改成功"); |
|
|
|
this.diagnosticediting = false; |
|
|
|
this.curRowes=res.data |
|
|
|
this.putDiagnosis() |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -1500,9 +1499,10 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
diagnosick(row){ |
|
|
|
getapi(`/api/app/item-result-match/${row.id}`).then((res) => { |
|
|
|
this.curRowes = res.data; |
|
|
|
}); |
|
|
|
this.curRowes = row; |
|
|
|
// getapi(`/api/app/item-result-match/${row.id}`).then((res) => { |
|
|
|
// this.curRowes = res.data; |
|
|
|
// }); |
|
|
|
}, |
|
|
|
editDiagnosis(){ |
|
|
|
this.editdigoisceditingform={ ...this.curRowes } |
|
|
|
@ -1531,7 +1531,7 @@ export default { |
|
|
|
deletapi(`/api/app/item-result-match/${this.editdigoisceditingform.id}`).then( |
|
|
|
(res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("删除成功"); |
|
|
|
this.$message.success("删除成功"); |
|
|
|
Object.assign(this.$data.editdigoisceditingform, this.$options.data().editdigoisceditingform) |
|
|
|
this.curRowes={} |
|
|
|
this.putDiagnosis() |
|
|
|
@ -1613,7 +1613,7 @@ export default { |
|
|
|
putapi( |
|
|
|
`/api/app/itemresulttemplate/updatemanysort?id=${this.rusetform.id}&SortType=2` |
|
|
|
).then((res) => { |
|
|
|
console.log("操作成功"); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.resultlist(); |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -1626,7 +1626,7 @@ export default { |
|
|
|
putapi( |
|
|
|
`/api/app/itemresulttemplate/updatemanysort?id=${this.rusetform.id}&SortType=1` |
|
|
|
).then((res) => { |
|
|
|
console.log("操作成功"); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.resultlist(); |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -1646,7 +1646,7 @@ export default { |
|
|
|
deletapi(`/api/app/item-result-template/${this.rusetform.id}`).then( |
|
|
|
(res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("删除成功"); |
|
|
|
this.$message.success("删除成功"); |
|
|
|
Object.assign(this.$data.rusetform, this.$options.data().rusetform) |
|
|
|
this.curRows={} |
|
|
|
this.resultlist(); |
|
|
|
@ -1658,10 +1658,10 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
reustclick(row) { |
|
|
|
// this.rusetform = row; |
|
|
|
getapi(`/api/app/item-result-template/${row.id}`).then((res) => { |
|
|
|
this.curRows = res.data; |
|
|
|
}); |
|
|
|
this.curRows = row; |
|
|
|
// getapi(`/api/app/item-result-template/${row.id}`).then((res) => { |
|
|
|
// this.curRows = res.data; |
|
|
|
// }); |
|
|
|
}, |
|
|
|
//项目结果模板新增弹框 |
|
|
|
resultediting() { |
|
|
|
@ -1687,7 +1687,7 @@ export default { |
|
|
|
} |
|
|
|
postapi(`/api/app/item-result-template`, this.rusetform).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("新增成功"); |
|
|
|
this.$message.success("新增成功"); |
|
|
|
this.ruesttieledialogVisible = false; |
|
|
|
this.resultlist(); |
|
|
|
} |
|
|
|
@ -1701,8 +1701,9 @@ export default { |
|
|
|
this.rusetform |
|
|
|
).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("修改成功"); |
|
|
|
this.$message.success("修改成功"); |
|
|
|
this.ruesttieledialogVisible = false; |
|
|
|
this.curRows={...res.data} |
|
|
|
this.resultlist(); |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -1788,9 +1789,10 @@ export default { |
|
|
|
this.rusetform.itemId = this.form.id; |
|
|
|
}, |
|
|
|
quckRusetform(e){ |
|
|
|
if(!e){ |
|
|
|
this.remoteMethod() |
|
|
|
} |
|
|
|
// if(!e){ |
|
|
|
// this.remoteMethod() |
|
|
|
// } |
|
|
|
this.$forceUpdate() |
|
|
|
}, |
|
|
|
//获取项目类别列表 |
|
|
|
getmedicalconclusionlist() { |
|
|
|
@ -1803,12 +1805,13 @@ export default { |
|
|
|
// this.form.customerOrgId = id; |
|
|
|
// console.log(id); |
|
|
|
// this.form.customerOrgId=this.form.customerOrgId[0] |
|
|
|
if(this.form.itemTypeId){ |
|
|
|
this.form.itemTypeId.forEach((item) => { |
|
|
|
// console.log(item); |
|
|
|
this.form.itemTypeId = item; |
|
|
|
}); |
|
|
|
} |
|
|
|
// if(this.form.itemTypeId){ |
|
|
|
// this.form.itemTypeId.forEach((item) => { |
|
|
|
// // console.log(item); |
|
|
|
// this.form.itemTypeId = item; |
|
|
|
// }); |
|
|
|
// } |
|
|
|
this.$refs.itemTypeId.toggleDropDownVisible(); |
|
|
|
}, |
|
|
|
gettypelist(listdata) { |
|
|
|
listdata.forEach((items) => { |
|
|
|
@ -2037,7 +2040,7 @@ export default { |
|
|
|
}); |
|
|
|
projectdreog({ itemList: result }).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("操作成功"); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.isshow = true; |
|
|
|
} |
|
|
|
// this.getlist(); |
|
|
|
@ -2086,7 +2089,7 @@ export default { |
|
|
|
}); |
|
|
|
putapi("/api/app/itemresulttemplate/updatesortmany",{ itemList: result }).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("操作成功"); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.isshows = true; |
|
|
|
} |
|
|
|
// this.getlist(); |
|
|
|
@ -2135,7 +2138,7 @@ export default { |
|
|
|
`/api/app/itemresulttemplate/updatemanysort?id=${this.rusetform.id}&SortType=1` |
|
|
|
).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("操作成功"); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.resultlist(); |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -2145,13 +2148,13 @@ export default { |
|
|
|
resulttoppings(){ |
|
|
|
this.rusetform = { ...this.curRows }; |
|
|
|
if (this.rusetform.id == undefined) { |
|
|
|
console.log("请点击选择操作的数据"); |
|
|
|
this.$message.warning("请点击选择操作的数据"); |
|
|
|
} else { |
|
|
|
putapi( |
|
|
|
`/api/app/itemresulttemplate/updatemanysort?id=${this.rusetform.id}&SortType=2` |
|
|
|
).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("操作成功"); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.resultlist(); |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -2171,7 +2174,7 @@ export default { |
|
|
|
}); |
|
|
|
putapi("/api/app/itemresultmatch/updatesortmany",{ itemList: result }).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("操作成功"); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.isshowes = true; |
|
|
|
} |
|
|
|
// this.getlist(); |
|
|
|
@ -2214,7 +2217,7 @@ export default { |
|
|
|
`/api/app/itemresultmatch/updatesortmany?id=${this.editdigoisceditingform.id}&SortType=1` |
|
|
|
).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("操作成功"); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.resultlist(); |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -2230,7 +2233,7 @@ export default { |
|
|
|
`/api/app/itemresultmatch/updatesortmany?id=${this.editdigoisceditingform.id}&SortType=2` |
|
|
|
).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("操作成功"); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.resultlist(); |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -2246,11 +2249,11 @@ export default { |
|
|
|
toppings() { |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
if (this.form.id == undefined) { |
|
|
|
console.log("请点击选择操作的数据"); |
|
|
|
this.$message.warning("请点击选择操作的数据"); |
|
|
|
} else { |
|
|
|
projttitem(this.form.id, 2).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("操作成功"); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.getItemTypeIdList(); |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -2264,7 +2267,7 @@ export default { |
|
|
|
} else { |
|
|
|
projttitem(this.form.id, 1).then((res) => { |
|
|
|
if(res.code!=-1){ |
|
|
|
console.log("操作成功"); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.getItemTypeIdList(); |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -2283,7 +2286,7 @@ export default { |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
projectdeleft(this.form.id).then((res) => { |
|
|
|
console.log("删除成功"); |
|
|
|
this.$message.success("删除成功"); |
|
|
|
this.getItemTypeIdList(); |
|
|
|
Object.assign(this.$data.form, this.$options.data().form) |
|
|
|
this.curRow=this.$options.data().curRow |
|
|
|
@ -2294,16 +2297,17 @@ export default { |
|
|
|
}, |
|
|
|
//点击列表通过id查询 |
|
|
|
rowick(row) { |
|
|
|
posjrctid(row.id).then((res) => { |
|
|
|
this.curRow = { ...res.data }; |
|
|
|
// console.log(res); |
|
|
|
// this.form = res.data; |
|
|
|
}); |
|
|
|
this.curRow=row |
|
|
|
// posjrctid(row.id).then((res) => { |
|
|
|
// this.curRow = { ...res.data }; |
|
|
|
// }); |
|
|
|
}, |
|
|
|
change(e){ |
|
|
|
this.$forceUpdate(); |
|
|
|
}, |
|
|
|
//编辑弹框 |
|
|
|
editpopup() { |
|
|
|
this.form = { ...this.curRow }; |
|
|
|
console.log(this.form) |
|
|
|
if (this.form.id == undefined) { |
|
|
|
this.$message.warning("请选择操作的数据"); |
|
|
|
} else { |
|
|
|
@ -2392,9 +2396,10 @@ export default { |
|
|
|
if (v) { |
|
|
|
if (this.title == 1) { |
|
|
|
this.form.price = Number(this.form.price); |
|
|
|
this.form.itemTypeId=this.form.itemTypeId.slice(-1)[0] |
|
|
|
addproject(this.form).then((res) => { |
|
|
|
if (res.code == 1) { |
|
|
|
console.log("新增成功"); |
|
|
|
this.$message.success("新增成功"); |
|
|
|
this.getItemTypeIdList(); |
|
|
|
this.dialogVisible = false; |
|
|
|
this.$nextTick(()=>{ |
|
|
|
@ -2404,8 +2409,9 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
} else if (this.title == 2) { |
|
|
|
this.form.itemTypeId=this.form.itemTypeId.slice(-1)[0] |
|
|
|
projectedit(this.form.id, this.form).then((res) => { |
|
|
|
console.log("修改成功"); |
|
|
|
this.$message.success("修改成功"); |
|
|
|
this.tableData.forEach((item,index)=>{ |
|
|
|
if(res.data.id==item.id){ |
|
|
|
this.$set(this.tableData,index,res.data) |
|
|
|
@ -2576,3 +2582,21 @@ export default { |
|
|
|
border-color: #fff !important; |
|
|
|
} |
|
|
|
</style> |
|
|
|
<style> |
|
|
|
.example .el-cascader-panel .el-radio { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
z-index: 10; |
|
|
|
position: absolute; |
|
|
|
top: 0px; |
|
|
|
right: 0px; |
|
|
|
} |
|
|
|
|
|
|
|
.example .el-cascader-panel .el-radio__input { |
|
|
|
display: none; |
|
|
|
} |
|
|
|
|
|
|
|
.example .el-cascader-panel .el-cascader-node__postfix { |
|
|
|
top: 10px; |
|
|
|
} |
|
|
|
</style> |