Commit 0507e2fe by 李承祥

多内容入组区分

parent 4461e319
...@@ -394,7 +394,7 @@ export default { ...@@ -394,7 +394,7 @@ export default {
} }
}, },
async mounted() { async mounted() {
this.getCaseHis(this.$route.query.id) this.getCaseHis(this.$route.query.id, this.$route.query.type)
}, },
methods: { methods: {
decimal, decimal,
...@@ -410,9 +410,12 @@ export default { ...@@ -410,9 +410,12 @@ export default {
// this.addsearch(); // this.addsearch();
}, },
//获取基本数据 //获取基本数据
getCaseHis(code) { getCaseHis(code, type) {
var url = type
? `/medical/Get/hqmshisID?id=${code}&type=${type}`
: `/medical/Get/casehisData?id=${code}`
http http
.post(`/medical/Get/casehisData?id=${code}`, {}) .post(url, {})
.then((data) => { .then((data) => {
this.casehisObj = data this.casehisObj = data
this.diagMapList = data.diagMapList this.diagMapList = data.diagMapList
...@@ -423,8 +426,11 @@ export default { ...@@ -423,8 +426,11 @@ export default {
}, },
//获取列表数据 //获取列表数据
getlist() { getlist() {
var url = this.$route.query.type
? `/medical/get/GetCorePercents/hqms?type=${this.$route.query.type}`
: `/medical/get/GetCorePercents/setl`
http http
.post(`/medical/get/GetCorePercents/setl`, { .post(url, {
Type: 1, Type: 1,
DiagMapList: this.diagMapList, DiagMapList: this.diagMapList,
OpsMapList: this.opsMapList, OpsMapList: this.opsMapList,
...@@ -490,7 +496,7 @@ export default { ...@@ -490,7 +496,7 @@ export default {
// message: `${data.message}`, // message: `${data.message}`,
// type: 'success' // type: 'success'
// }) // })
this.getCaseHis(this.$route.query.id) this.getCaseHis(this.$route.query.id, this.$route.query.type)
}) })
.catch(() => {}) .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