Browse Source

中药制剂药品数据选项修改

cc12458 8 tháng trước cách đây
mục cha
commit
0ff6fedf6e
1 tập tin đã thay đổi với 12 bổ sung4 xóa
  1. 12 4
      src/components/MedicineAndChina.vue

+ 12 - 4
src/components/MedicineAndChina.vue

@@ -146,7 +146,7 @@
                   <el-option
                     :label="item.value"
                     :value="item.key"
-                    v-for="(item,index) in scope.row.usageList"
+                    v-for="(item,index) in usageList"
                     :key="index"
                   ></el-option>
                 </el-select>
@@ -154,7 +154,7 @@
             </el-table-column>
             <el-table-column prop="timesQuan" label="次用量" width="160">
               <template slot-scope="scope" v-if="scope.row.name">
-                <div class="flex flex-row-center">
+                <div class="flex flex-row-center" style="padding: 0 8px;">
                   <div class="t_dose">
                     <el-input
                       v-model="scope.row.timesQuan"
@@ -169,6 +169,7 @@
                       @change="timesUnitC($event,scope)"
                     >
                       <el-option value="1" label="g"></el-option>
+                      <el-option value="1" label="ml"></el-option>
                       <el-option value="2" label="支"></el-option>
                       <el-option value="3" label="个"></el-option>
                     </el-select>
@@ -189,7 +190,7 @@
                   <el-option
                     :label="item.value"
                     :value="item.key"
-                    v-for="(item,index) in scope.row.numList"
+                    v-for="(item,index) in numList"
                     :key="index"
                   ></el-option>
                 </el-select>
@@ -197,7 +198,7 @@
             </el-table-column>
             <el-table-column prop="dose" label="数量" width="160">
               <template slot-scope="scope" v-if="scope.row.name">
-                <div class="flex flex-row-center">
+                <div class="flex flex-row-center" style="padding: 0 8px;">
                   <div class="t_dose">
                     <el-input
                       :value="scope.row.dose"
@@ -211,6 +212,7 @@
                     <el-select
                       size="mini"
                       v-model="scope.row.doseUnit"
+                      placeholder="请选择"
                       @change="doseUnitC($event,scope)"
                     >
                       <el-option
@@ -510,6 +512,9 @@ export default {
        * 相当于 recipe_tabs[recipe_tabs_c]
        */
       recipe: {},
+      usageList: [],
+      timeList: [],
+      numList: [],
       bzdwList: [],
       page: 1,
       // 底部表单
@@ -1175,10 +1180,13 @@ export default {
 
       if (data == "中药制剂药品用法") {
         this.tableData3[index].usageList = res.Data;
+        this.usageList = res.Data;
       } else if (data == "中药制剂服药时间") {
         this.tableData3[index].timeList = res.Data;
+        this.timeList = res.Data;
       } else if (data == "中药制剂频次") {
         this.tableData3[index].numList = res.Data;
+        this.numList = res.Data;
       }
     },
     // 获取制膏费用