XMLWAN hace 2 años
padre
commit
4df01aa45e

+ 16 - 0
src/api/advice.js Ver fichero

543
     params: params
543
     params: params
544
   })
544
   })
545
 }
545
 }
546
+
547
+export function checkNewDoctorAdvice(params) {
548
+  return request({
549
+    url: '/api/schedule/checknewdoctoradvice',
550
+    method: 'get',
551
+    params: params
552
+  })
553
+}
554
+
555
+export function settleNewDoctorAdvice(params) {
556
+  return request({
557
+    url: '/api/schedule/settlenewdoctoradvice',
558
+    method: 'Get',
559
+    params: params
560
+  })
561
+}

+ 32 - 3
src/xt_pages/dialysis/newDoctorAdvice.vue Ver fichero

153
       </div>
153
       </div>
154
       <div>
154
       <div>
155
         <el-button type="primary" size="small" @click="toExcution">执行医嘱</el-button>
155
         <el-button type="primary" size="small" @click="toExcution">执行医嘱</el-button>
156
-        <el-button type="primary" size="small">医嘱核对</el-button>
157
-        <el-button type="primary" size="small">收费</el-button>
156
+        <el-button type="primary" size="small" @click="toCheck">医嘱核对</el-button>
157
+        <el-button type="primary" size="small" @click="toSettle">收费</el-button>
158
       </div>
158
       </div>
159
 
159
 
160
 
160
 
445
 import { parseTime } from "@/utils";
445
 import { parseTime } from "@/utils";
446
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
446
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
447
 import { getPrintTemplate } from "@/api/data";
447
 import { getPrintTemplate } from "@/api/data";
448
-import { getNewSchedualDoctors,excutionDoctorAdvice } from '@/api/advice'
448
+import { getNewSchedualDoctors,excutionDoctorAdvice,checkNewDoctorAdvice,settleNewDoctorAdvice } from '@/api/advice'
449
 import { PostSearch } from '@/api/patient'
449
 import { PostSearch } from '@/api/patient'
450
 export default {
450
 export default {
451
   name: "Patient",
451
   name: "Patient",
1154
             var min_unit = response.data.data.drug.min_unit
1154
             var min_unit = response.data.data.drug.min_unit
1155
             var str = drug_name + " "+dose+dose_unit +"*"+min_number +max_unit +"/"+min_unit
1155
             var str = drug_name + " "+dose+dose_unit +"*"+min_number +max_unit +"/"+min_unit
1156
             this.$message.error(str +"库存不足,执行失败!")
1156
             this.$message.error(str +"库存不足,执行失败!")
1157
+            this.exceLoading = false
1157
            }
1158
            }
1158
            var msg = response.data.data.msg
1159
            var msg = response.data.data.msg
1159
            this.$message.success("保存成功!")
1160
            this.$message.success("保存成功!")
1160
            this.exceLoading = false
1161
            this.exceLoading = false
1161
           }
1162
           }
1162
        })
1163
        })
1164
+     },
1165
+     toCheck(){
1166
+      var params = {
1167
+        str:str,
1168
+        advice_date: moment(time).format('YYYY-MM-DD'),
1169
+        is_open:this.config.is_open,
1170
+       }
1171
+       checkNewDoctorAdvice(params).then(response=>{
1172
+          if(response.data.state == 1){
1173
+            if(response.data.data.msg == 2){
1174
+              var advice = response.data.data.advice
1175
+              this.$message.error(advice.advice_name +"执行人和核对人不能是同一个人,核对失败!")
1176
+            }
1177
+            this.$message.error("核对成功!")
1178
+          }
1179
+       })
1180
+     },
1181
+     toSettle(){
1182
+       var params = {
1183
+        str:str,
1184
+        advice_date: moment(time).format('YYYY-MM-DD'),
1185
+        is_open:this.config.is_open,
1186
+       }
1187
+       settleNewDoctorAdvice(params).then(response=>{
1188
+          if(response.data.state == 1){
1189
+            this.$message.success("收费成功!")
1190
+          }
1191
+       })
1163
      }
1192
      }
1164
   },
1193
   },
1165
   components: {
1194
   components: {

+ 1 - 1
src/xt_pages/user/dialysisSolution.vue Ver fichero

1287
             for(let i=0;i<this.dialyzers.length;i++){
1287
             for(let i=0;i<this.dialyzers.length;i++){
1288
               this.dialyzers[i].name = this.dialyzers[i].specification_name
1288
               this.dialyzers[i].name = this.dialyzers[i].specification_name
1289
             }
1289
             }
1290
-            console.log("2222222",this.dialyzers)
1290
+            // console.log("2222222",this.dialyzers)
1291
             this.InnerDialogProps.values = this.dialyzers
1291
             this.InnerDialogProps.values = this.dialyzers
1292
             this.InnerDialogProps.titles = '透析器'
1292
             this.InnerDialogProps.titles = '透析器'
1293
             this.InnerDialogProps.type = 'dialyzers'
1293
             this.InnerDialogProps.type = 'dialyzers'