XMLWAN 4 лет назад
Родитель
Сommit
db93e8ecaf

+ 5 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Просмотреть файл

@@ -25,10 +25,10 @@
25 25
           <el-form-item label="处方类型: " prop="name" label-position="right">
26 26
             <el-select style="width:100%;" v-model="register_type" placeholder="">
27 27
               <el-option
28
-                v-for="(item,index) in register"
28
+                v-for="(item,index) in getDictionaryDataConfig('system','prescription_type')"
29 29
                 :key="index"
30
-                :label="item.label"
31
-                :value="item.value">
30
+                :label="item.name"
31
+                :value="item.id">
32 32
               </el-option>
33 33
             </el-select>
34 34
           </el-form-item>
@@ -1523,7 +1523,8 @@
1523 1523
           }, 400)
1524 1524
         }
1525 1525
       }
1526
-    }
1526
+    },
1527
+   
1527 1528
   }
1528 1529
 </script>
1529 1530
 

+ 19 - 4
src/xt_pages/stock/Dialog/stockInDialog.vue Просмотреть файл

@@ -293,12 +293,27 @@
293 293
         row.index = rowIndex
294 294
       },
295 295
       onRowClicks(row, event, column) {
296
-        console.log("row---",row)
297
-        console.log("column",column)
296
+        
298 297
         this.table_current_index = row.index
299 298
         this.row_id = row.id
300
-      }, selectGoodInfo(selection, row) {
301
-        var goodInfos = this.propForm.goods[this.table_current_index][this.currentGoodTypeId]
299
+        
300
+      }, 
301
+      selectGoodInfo(selection, row) {
302
+
303
+        var arr = []
304
+        var id = 0
305
+        for(let i=0;i<this.propForm.goods.length;i++){
306
+              for(let key in this.propForm.goods[i]){
307
+                if(key == this.row_id){
308
+                    arr.push(this.propForm.goods[i])
309
+                    id = i
310
+                }
311
+              }
312
+          }
313
+        console.log("arrr33333",arr)
314
+        console.log("i9999",id)
315
+        var goodInfos = this.propForm.goods[id][this.currentGoodTypeId]
316
+        // var goodInfos = this.propForm.goods[this.table_current_index][this.currentGoodTypeId]
302 317
         for (let y = 0; y < goodInfos.length; y++) {
303 318
           goodInfos[y].isSelected = false
304 319
         }