mainqaq 2 年 前
コミット
3d70270026
共有1 個のファイルを変更した30 個の追加2 個の削除を含む
  1. 30 2
      src/xt_pages/Pharmacy/DrugDispensing.vue

+ 30 - 2
src/xt_pages/Pharmacy/DrugDispensing.vue ファイルの表示

@@ -133,7 +133,7 @@
133 133
             </el-option>
134 134
           </el-select>
135 135
           给药途径:
136
-          <el-select v-model="deliveryway" placeholder="请选择" @change="getdruglist">
136
+          <el-select v-model="deliveryway" placeholder="请选择" @change="getdruglist02">
137 137
             <el-option
138 138
               v-for="item in routeofadministration"
139 139
               :key="item.name"
@@ -347,7 +347,8 @@
347 347
             </el-table-column>
348 348
           </el-table>
349 349
         </div>
350
-        <div>合计  {{total}}</div>
350
+        <div style="background-color: #f5f7fa;display:flex;padding: 10px;justify-content:space-around;position:fixed;width:66.2%;margin-top: 24%;
351
+"><div style="width: 40%;padding-left:3%">合计 </div> <div style="width: 40%;display: flex;justify-content:center;padding-left: 37%">{{total}}</div></div>
351 352
         <div style="margin-top: 25px" v-if="state == 1">
352 353
           领药人:
353 354
           <el-select v-model="admin_user_id" placeholder="请选择">
@@ -806,6 +807,33 @@ export default {
806 807
       });
807 808
     },
808 809
     //获取药品列表
810
+    getdruglist02() {
811
+      var tps = this.currentRow.id;
812
+      this.tableData = [];
813
+      var params = {
814
+        keyword: this.keywords,
815
+        time: this.start_time,
816
+        deliveryway: this.deliveryway,
817
+      };
818
+      waitingmedicine(params).then((res) => {
819
+        if (res.data.state == 1) {
820
+          this.waiting_drug = res.data.data.list;
821
+        }
822
+      });
823
+      dispensemedicine(params).then((res) => {
824
+        if (res.data.state == 1) {
825
+          this.issued_drug = res.data.data.list;
826
+        }
827
+      });
828
+      if(this.state == 2){
829
+        this.handleCurrentChange(this.currentRow);
830
+        this.fun5(tps);
831
+      }else{
832
+        this.handleCurrentChange(this.currentRow);
833
+        this.fun4(tps);
834
+      }
835
+    },
836
+    //获取药品列表
809 837
     getdruglist() {
810 838
       var params = {
811 839
         keyword: this.keywords,