Commit 0507e2fe by 李承祥

多内容入组区分

parent 4461e319
......@@ -394,7 +394,7 @@ export default {
}
},
async mounted() {
this.getCaseHis(this.$route.query.id)
this.getCaseHis(this.$route.query.id, this.$route.query.type)
},
methods: {
decimal,
......@@ -410,9 +410,12 @@ export default {
// this.addsearch();
},
//获取基本数据
getCaseHis(code) {
getCaseHis(code, type) {
var url = type
? `/medical/Get/hqmshisID?id=${code}&type=${type}`
: `/medical/Get/casehisData?id=${code}`
http
.post(`/medical/Get/casehisData?id=${code}`, {})
.post(url, {})
.then((data) => {
this.casehisObj = data
this.diagMapList = data.diagMapList
......@@ -423,8 +426,11 @@ export default {
},
//获取列表数据
getlist() {
var url = this.$route.query.type
? `/medical/get/GetCorePercents/hqms?type=${this.$route.query.type}`
: `/medical/get/GetCorePercents/setl`
http
.post(`/medical/get/GetCorePercents/setl`, {
.post(url, {
Type: 1,
DiagMapList: this.diagMapList,
OpsMapList: this.opsMapList,
......@@ -490,7 +496,7 @@ export default {
// message: `${data.message}`,
// type: 'success'
// })
this.getCaseHis(this.$route.query.id)
this.getCaseHis(this.$route.query.id, this.$route.query.type)
})
.catch(() => {})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment