|
@@ -73,32 +73,36 @@
|
|
|
this.$api.getPatientDoingCase({
|
|
|
doctor_id: this.doctorInfo.id
|
|
|
}).then(res => {
|
|
|
- if (res.data.code == 0 && res.data.data.id) {
|
|
|
- MessageBox ({
|
|
|
- title: '提示',
|
|
|
- message: '您有一个病例未完成',
|
|
|
- showCancelButton: true,
|
|
|
- confirmButtonText: "继续录入",
|
|
|
- cancelButtonText: "重新录入",
|
|
|
- cancelButtonClass: "docIndexCancelBtn",
|
|
|
- confirmButtonClass: "confirmButtonClass"
|
|
|
- }, action => {
|
|
|
- console.log(action)
|
|
|
- if (action == "confirm") {
|
|
|
- this.$router.push({
|
|
|
- path: "/diagcalc",
|
|
|
- query: {
|
|
|
- id: res.data.data.id,
|
|
|
- patid: res.data.data.patient_id
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$router.push("regpatinfo")
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
+ if(res.data.code == 0){
|
|
|
this.$router.push("regpatinfo")
|
|
|
}
|
|
|
+
|
|
|
+ // if (res.data.code == 0 && res.data.data.id) {
|
|
|
+ // MessageBox ({
|
|
|
+ // title: '提示',
|
|
|
+ // message: '您有一个病例未完成',
|
|
|
+ // showCancelButton: true,
|
|
|
+ // confirmButtonText: "继续录入",
|
|
|
+ // cancelButtonText: "重新录入",
|
|
|
+ // cancelButtonClass: "docIndexCancelBtn",
|
|
|
+ // confirmButtonClass: "confirmButtonClass"
|
|
|
+ // }, action => {
|
|
|
+ // console.log(action)
|
|
|
+ // if (action == "confirm") {
|
|
|
+ // this.$router.push({
|
|
|
+ // path: "/diagcalc",
|
|
|
+ // query: {
|
|
|
+ // id: res.data.data.id,
|
|
|
+ // patid: res.data.data.patient_id
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // this.$router.push("regpatinfo")
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // this.$router.push("regpatinfo")
|
|
|
+ // }
|
|
|
})
|
|
|
}
|
|
|
},
|