XMLWAN 2 年 前
コミット
4df01aa45e
共有3 個のファイルを変更した49 個の追加4 個の削除を含む
  1. 16 0
      src/api/advice.js
  2. 32 3
      src/xt_pages/dialysis/newDoctorAdvice.vue
  3. 1 1
      src/xt_pages/user/dialysisSolution.vue

+ 16 - 0
src/api/advice.js ファイルの表示

@@ -543,3 +543,19 @@ export function excutionDoctorAdvice(params) {
543 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 ファイルの表示

@@ -153,8 +153,8 @@
153 153
       </div>
154 154
       <div>
155 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 158
       </div>
159 159
 
160 160
 
@@ -445,7 +445,7 @@ import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
445 445
 import { parseTime } from "@/utils";
446 446
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
447 447
 import { getPrintTemplate } from "@/api/data";
448
-import { getNewSchedualDoctors,excutionDoctorAdvice } from '@/api/advice'
448
+import { getNewSchedualDoctors,excutionDoctorAdvice,checkNewDoctorAdvice,settleNewDoctorAdvice } from '@/api/advice'
449 449
 import { PostSearch } from '@/api/patient'
450 450
 export default {
451 451
   name: "Patient",
@@ -1154,12 +1154,41 @@ export default {
1154 1154
             var min_unit = response.data.data.drug.min_unit
1155 1155
             var str = drug_name + " "+dose+dose_unit +"*"+min_number +max_unit +"/"+min_unit
1156 1156
             this.$message.error(str +"库存不足,执行失败!")
1157
+            this.exceLoading = false
1157 1158
            }
1158 1159
            var msg = response.data.data.msg
1159 1160
            this.$message.success("保存成功!")
1160 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 1194
   components: {

+ 1 - 1
src/xt_pages/user/dialysisSolution.vue ファイルの表示

@@ -1287,7 +1287,7 @@
1287 1287
             for(let i=0;i<this.dialyzers.length;i++){
1288 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 1291
             this.InnerDialogProps.values = this.dialyzers
1292 1292
             this.InnerDialogProps.titles = '透析器'
1293 1293
             this.InnerDialogProps.type = 'dialyzers'