mainqaq 2 anos atrás
pai
commit
0551b19df4

+ 7 - 20
src/xt_pages/outpatientDoctorStation/batch_replacement.vue Ver arquivo

@@ -125,7 +125,7 @@
125 125
                 filterable
126 126
                 v-model="scope.row.drug_name"
127 127
                 placeholder="请选择"
128
-                @change="changeid2(scope.row, scope.$index)"
128
+                @change="changeid(scope.row, scope.$index)"
129 129
               >
130 130
                 <el-option
131 131
                   v-for="item in druglist"
@@ -150,7 +150,7 @@
150 150
                 style="width: 90px"
151 151
               >
152 152
                 <el-option
153
-                  v-for="item in unit"
153
+                  v-for="item in scope.row.list_1"
154 154
                   :key="item.name"
155 155
                   :label="item.name"
156 156
                   :value="item.name"
@@ -211,7 +211,7 @@
211 211
                 style="width: 90px"
212 212
               >
213 213
                 <el-option
214
-                  v-for="item in unit"
214
+                  v-for="item in scope.row.list_2"
215 215
                   :key="item.name"
216 216
                   :label="item.name"
217 217
                   :value="item.name"
@@ -231,23 +231,6 @@
231 231
               <el-input v-model="scope.row.remark" placeholder=""></el-input>
232 232
             </template>
233 233
           </el-table-column>
234
-          <!--          <el-table-column label="推送频率" width="120">-->
235
-          <!--            <template slot-scope="scope">-->
236
-          <!--              <div v-if="scope.row.frequency_type == 1">{{'每次必推'}}</div>-->
237
-          <!--              <div v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/次</div>-->
238
-          <!--              <div v-if="scope.row.frequency_type == 3">{{scope.row.week_days}}</div>-->
239
-          <!--            </template>-->
240
-          <!--          </el-table-column>-->
241
-          <!--          <el-table-column fixed="right" label="操作" width="102">-->
242
-          <!--            <template slot-scope="scope">-->
243
-          <!--              <el-button-->
244
-          <!--                @click.native.prevent="addopen(scope.$index)"-->
245
-          <!--                type="text"-->
246
-          <!--                size="small">-->
247
-          <!--                推送-->
248
-          <!--              </el-button>-->
249
-          <!--            </template>-->
250
-          <!--          </el-table-column>-->
251 234
         </el-table>
252 235
       </div>
253 236
       <el-table
@@ -443,6 +426,8 @@ export default {
443 426
         prescribing_number_unit: "",
444 427
         price: "",
445 428
         remark: "",
429
+        list_1:[],
430
+        list_2:[],
446 431
       },],
447 432
       project:[ {
448 433
         id: "",
@@ -730,6 +715,8 @@ export default {
730 715
             this.tableDatas[0].price = res.data.data.list[0].retail_price;
731 716
           }
732 717
           this.tableDatas[0].remark = res.data.data.list[0].remark;
718
+          this.tableDatas[0].list_1 = res.data.data.list[0].list_1;
719
+          this.tableDatas[0].list_2 = res.data.data.list[0].list_2;
733 720
         }
734 721
       })
735 722
     },