XMLWAN 4 年前
父节点
当前提交
ba015752ad

+ 33 - 4
src/xt_pages/data/components/addDrugs.vue 查看文件

146
               <el-input v-model="form.medical_insurance_number" style="width:160px;" placeholder="" maxlength="30"></el-input>
146
               <el-input v-model="form.medical_insurance_number" style="width:160px;" placeholder="" maxlength="30"></el-input>
147
             </el-form-item>
147
             </el-form-item>
148
             <el-form-item label="生产厂商 : " prop="manufacturer" >
148
             <el-form-item label="生产厂商 : " prop="manufacturer" >
149
-              <el-select v-model="form.manufacturer" style="width:160px;" placeholder="请选择">
149
+              <!-- <el-select v-model="form.manufacturer" style="width:160px;" placeholder="请选择">
150
                 <el-option
150
                 <el-option
151
                   v-for="item,index in manufacturers"
151
                   v-for="item,index in manufacturers"
152
                   :key="index"
152
                   :key="index"
153
                   :label="item.manufacturer_name"
153
                   :label="item.manufacturer_name"
154
                   :value="item.id">
154
                   :value="item.id">
155
                 </el-option>
155
                 </el-option>
156
-              </el-select>
156
+              </el-select> -->
157
+
158
+            <el-select v-model="form.manufacturer" style="width:160px;" filterable placeholder="请选择">
159
+                  <el-option
160
+                    v-for="item in manufacturerList"
161
+                    :key="item.id"
162
+                    :label="item.manufacturer_name"
163
+                    :value="item.id">
164
+                  </el-option>
165
+            </el-select>
166
+
157
             </el-form-item>
167
             </el-form-item>
158
             <el-form-item label="药理分类 : " prop="pharmacology_category">
168
             <el-form-item label="药理分类 : " prop="pharmacology_category">
159
               <el-select v-model="form.pharmacology_category" style="width:160px;" placeholder="请选择">
169
               <el-select v-model="form.pharmacology_category" style="width:160px;" placeholder="请选择">
333
   import {
343
   import {
334
     getAdviceConfig,
344
     getAdviceConfig,
335
   } from '@/api/advice'
345
   } from '@/api/advice'
346
+ import { getManufacturerList } from "@/api/stock";
336
   export default {
347
   export default {
337
     data() {
348
     data() {
338
       return {
349
       return {
422
           drug_classify: [{ required: true, message: '请选择药物分类',trigger: 'change'  }],
433
           drug_classify: [{ required: true, message: '请选择药物分类',trigger: 'change'  }],
423
           drug_dose: [{ required: true, message: '请填写剂量',trigger: 'blur'  }],
434
           drug_dose: [{ required: true, message: '请填写剂量',trigger: 'blur'  }],
424
           manufacturer: [{ required: true, message: '请选择生产产商',trigger: 'change'  }]
435
           manufacturer: [{ required: true, message: '请选择生产产商',trigger: 'change'  }]
425
-        }
436
+        },
437
+        page:1,
438
+        limit:500,
439
+        manufacturerList:[]
426
       }
440
       }
427
     },
441
     },
428
     props: {
442
     props: {
440
         type: Number,
454
         type: Number,
441
         default: 1
455
         default: 1
442
       }
456
       }
443
-
457
+      
444
     },
458
     },
445
     methods: {
459
     methods: {
446
       cancle: function(formName) {
460
       cancle: function(formName) {
574
 
588
 
575
         return form
589
         return form
576
       },
590
       },
591
+      getlist(){
592
+         var params = {
593
+             page:this.page,
594
+             limit:this.limit
595
+          }
596
+          console.log("params2222222",params)
597
+        getManufacturerList(params).then(response=>{
598
+           var manufacturerList =   response.data.data.manufacturer
599
+           console.log("列表2222222",manufacturerList)
600
+           this.manufacturerList = manufacturerList
601
+        })
602
+      }
577
     }, watch: {
603
     }, watch: {
578
       visible(val) {
604
       visible(val) {
579
         // this.form = this.formValue
605
         // this.form = this.formValue
580
 
606
 
581
       }
607
       }
608
+    },
609
+    created(){
610
+      this.getlist()
582
     }
611
     }
583
   }
612
   }
584
 </script>
613
 </script>

+ 4 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_thirty.vue 查看文件

52
                             <td width="10"></td>
52
                             <td width="10"></td>
53
                             <td width="50">性 别:</td>
53
                             <td width="50">性 别:</td>
54
                             <td width="60">
54
                             <td width="60">
55
-                                <div class="under-line">{{ record.patient.gender ? "男" : "女" }}</div>
55
+                                <div class="under-line">
56
+                                  <span v-if=" record.patient.gender == 1">男</span>
57
+                                  <span v-if=" record.patient.gender == 2">女</span>
58
+                                </div>
56
                             </td>
59
                             </td>
57
                             <td width="10"></td>
60
                             <td width="10"></td>
58
                             <td width="50">年 龄:</td>
61
                             <td width="50">年 龄:</td>

+ 1 - 1
src/xt_pages/dialysis/components/allSummary.vue 查看文件

239
           this.getlist()
239
           this.getlist()
240
           this.getAllMaterial()
240
           this.getAllMaterial()
241
         },
241
         },
242
-           search(){
242
+          search(){
243
           //  if(this.selected_date==""){
243
           //  if(this.selected_date==""){
244
           //     this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
244
           //     this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
245
           //   }
245
           //   }

+ 5 - 1
src/xt_pages/dialysis/components/allSummaryDialog.vue 查看文件

66
 const moment = require('moment')
66
 const moment = require('moment')
67
 import { parseTime } from "@/utils";
67
 import { parseTime } from "@/utils";
68
 import {getGatherList} from "@/api/consumable"
68
 import {getGatherList} from "@/api/consumable"
69
+
69
 export default {
70
 export default {
70
     data(){
71
     data(){
71
         return{
72
         return{
83
             partitionType: 0,
84
             partitionType: 0,
84
             tableData: [],
85
             tableData: [],
85
             start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
86
             start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
86
-            end_time:moment(new Date()).add('year',0).format("YYYY-MM-DD")
87
+            end_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
88
+            stockTotal:[]
87
         }
89
         }
88
     },
90
     },
89
     created(){
91
     created(){
141
             }
143
             }
142
           })
144
           })
143
         }
145
         }
146
+
147
+      
144
     }
148
     }
145
 }
149
 }
146
 </script>
150
 </script>

+ 44 - 11
src/xt_pages/dialysis/components/consumablesDialog.vue 查看文件

20
         placeholder="选择日期"
20
         placeholder="选择日期"
21
         @change="selectEndtime">
21
         @change="selectEndtime">
22
       </el-date-picker>
22
       </el-date-picker>
23
-      <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button>
23
+      <!-- <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button> -->
24
 
24
 
25
     </div>
25
     </div>
26
     <div style="margin-top:10px;">
26
     <div style="margin-top:10px;">
27
       <el-table :data="tableData" border style="width: 100%" height="300px">
27
       <el-table :data="tableData" border style="width: 100%" height="300px">
28
-        <el-table-column align="center" prop="date" label="商品类型" width="180">
28
+        <el-table-column align="center" prop="date" label="耗材类型" width="180">
29
           <template slot-scope="scope">
29
           <template slot-scope="scope">
30
-            {{scope.row.good_type_name}}
30
+            {{scope.row.good_name}}
31
           </template>
31
           </template>
32
         </el-table-column>
32
         </el-table-column>
33
         <el-table-column align="center" prop="name" label="规格名称" width="180">
33
         <el-table-column align="center" prop="name" label="规格名称" width="180">
34
           <template slot-scope="scope">
34
           <template slot-scope="scope">
35
-            {{scope.row.good_name}}
35
+            {{scope.row.specification_name}}
36
           </template>
36
           </template>
37
         </el-table-column>
37
         </el-table-column>
38
         <el-table-column align="center" prop="address" label="数量">
38
         <el-table-column align="center" prop="address" label="数量">
39
           <template slot-scope="scope">
39
           <template slot-scope="scope">
40
-            {{scope.row.count}}
40
+            {{getStockCount(scope.row.id)}}
41
           </template>
41
           </template>
42
         </el-table-column>
42
         </el-table-column>
43
       </el-table>
43
       </el-table>
50
   const moment = require('moment')
50
   const moment = require('moment')
51
   import { GetDialysisGoodStatistics } from '@/api/dialysis'
51
   import { GetDialysisGoodStatistics } from '@/api/dialysis'
52
   import { parseTime } from '@/utils'
52
   import { parseTime } from '@/utils'
53
-
53
+  import { getPrintStockGood } from '@/api/stock'
54
   export default {
54
   export default {
55
     props: {
55
     props: {
56
       list: Array
56
       list: Array
62
           end_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD')
62
           end_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD')
63
         },
63
         },
64
         visible: false,
64
         visible: false,
65
-        startTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
65
+        // startTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
66
+        startTime:moment().startOf('month').format("YYYY-MM-DD"),
66
         endTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
67
         endTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
67
         schedulArr: [
68
         schedulArr: [
68
           { value: 0, label: '全部班' },
69
           { value: 0, label: '全部班' },
76
         partitionType: 0,
77
         partitionType: 0,
77
         tableData: [],
78
         tableData: [],
78
         start_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
79
         start_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
79
-        end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD')
80
+        end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
81
+        stockTotal:[]
80
       }
82
       }
81
     },
83
     },
82
     created() {
84
     created() {
119
         done()
121
         done()
120
       },
122
       },
121
       show() {
123
       show() {
122
-        this.GetDialysisGoodStatistics()
123
-
124
+        // this.GetDialysisGoodStatistics()
125
+        this.getlist()
124
         this.visible = true
126
         this.visible = true
125
       },
127
       },
126
 
128
 
136
         this.GetDialysisGoodStatistics()
138
         this.GetDialysisGoodStatistics()
137
 
139
 
138
       },
140
       },
141
+       getlist(){
142
+          var params = {
143
+            start_time:this.startTime,
144
+            end_time:this.endTime,
145
+            type:3
146
+          }
147
+          console.log("param2222222",params)
148
+          getPrintStockGood(params).then(response=>{
149
+            var stockTotal = response.data.data.stockTotal
150
+            console.log("stocktOTl",stockTotal)
151
+            this.stockTotal = stockTotal
152
+            for (let i = 0; i < response.data.data.list.length; i++) {
153
+               if (response.data.data.list[i].query_warehouseout_info.length > 0) {
154
+                  this.tableData.push(response.data.data.list[i])
155
+               }
156
+             }
157
+             console.log("表哥22222222222",this.tableData) 
158
+          })
159
+       },
160
+
139
       toPrint() {
161
       toPrint() {
140
         this.$router.push('/dialysis/consumables_print?startime=' + this.start_time + '&endtime=' + this.end_time)
162
         this.$router.push('/dialysis/consumables_print?startime=' + this.start_time + '&endtime=' + this.end_time)
141
-      }
163
+      },
164
+      getStockCount(id){
165
+       
166
+       var count = ""
167
+       for(let i=0;i<this.stockTotal.length;i++){
168
+          if(id == this.stockTotal[i].good_id){
169
+             count = this.stockTotal[i].count
170
+          }
171
+       }
172
+       return count
173
+     }
174
+    
142
 
175
 
143
     }
176
     }
144
   }
177
   }

+ 15 - 18
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue 查看文件

596
          } 
596
          } 
597
 
597
 
598
          if(str.indexOf('透析时长')!=-1 && this.prescription!=null){
598
          if(str.indexOf('透析时长')!=-1 && this.prescription!=null){
599
-            arr.push("透析时长:"+this.prescription.dialysis_duration)
599
+            arr.push("透析时长:"+(this.prescription.dialysis_duration?this.prescription.dialysis_duration:""))
600
          }
600
          }
601
 
601
 
602
         if(str.indexOf('透析时长')!=-1 && this.prescription==null){
602
         if(str.indexOf('透析时长')!=-1 && this.prescription==null){
604
          }
604
          }
605
         
605
         
606
         if(str.indexOf("目标超滤量")!=-1 && this.prescription!=null){
606
         if(str.indexOf("目标超滤量")!=-1 && this.prescription!=null){
607
-           arr.push("目标超滤量:"+this.prescription.target_ultrafiltration)
607
+           arr.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
608
         }
608
         }
609
         if(str.indexOf("目标超滤量")!=-1 && this.prescription==null){
609
         if(str.indexOf("目标超滤量")!=-1 && this.prescription==null){
610
            arr.push("目标超滤量:")
610
            arr.push("目标超滤量:")
924
     },
924
     },
925
     watch: {
925
     watch: {
926
       isVisibility(val) {
926
       isVisibility(val) {
927
-         console.log("333333333",this.patient)
928
-        console.log("透前评估23455",this.predialysis_evaluation)
929
-        console.log("透析处方23567",this.prescription)
930
-        console.log("双人核对",this.double_check)
927
+      
931
         if(this.prescription!=null && this.prescription.id!=0){
928
         if(this.prescription!=null && this.prescription.id!=0){
932
           this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
929
           this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
933
           this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
930
           this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
957
              console.log("222222",this.checkList)
954
              console.log("222222",this.checkList)
958
            }
955
            }
959
            if(this.double_check.dialysis_item_desc.indexOf("穿刺针")!=-1){
956
            if(this.double_check.dialysis_item_desc.indexOf("穿刺针")!=-1){
960
-              this.checkList.push("穿刺针:"+this.predialysis_evaluation.puncture_needle)
957
+              this.checkList.push("穿刺针:"+(this.predialysis_evaluation.puncture_needle?this.predialysis_evaluation.puncture_needle:""))
961
            }
958
            }
962
            if(this.double_check.dialysis_item_desc.indexOf("透析液配方:")!=-1){
959
            if(this.double_check.dialysis_item_desc.indexOf("透析液配方:")!=-1){
963
               this.checkList.push("透析液配方:"+this.GetDialysateFormulationById(this.prescription.dialysate_formulation))
960
               this.checkList.push("透析液配方:"+this.GetDialysateFormulationById(this.prescription.dialysate_formulation))
964
            }
961
            }
965
            if(this.double_check.dialysis_item_desc.indexOf("钾:")!=-1){
962
            if(this.double_check.dialysis_item_desc.indexOf("钾:")!=-1){
966
-              this.checkList.push("钾:"+this.prescription.kalium)
963
+              this.checkList.push("钾:"+(this.prescription.kalium?this.prescription.kalium:""))
967
            }
964
            }
968
            if(this.double_check.dialysis_item_desc.indexOf("钙:")!=-1){
965
            if(this.double_check.dialysis_item_desc.indexOf("钙:")!=-1){
969
-               this.checkList.push("钙:"+this.prescription.calcium)
966
+               this.checkList.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
970
            }
967
            }
971
            if(this.double_check.dialysis_parameter_desc.indexOf("透析模式:")!=-1){
968
            if(this.double_check.dialysis_parameter_desc.indexOf("透析模式:")!=-1){
972
               this.checkListOne.push("透析模式:"+this.getMode(this.prescription.mode_id))
969
               this.checkListOne.push("透析模式:"+this.getMode(this.prescription.mode_id))
973
            }
970
            }
974
            if(this.double_check.dialysis_parameter_desc.indexOf("透析时长")!=-1){
971
            if(this.double_check.dialysis_parameter_desc.indexOf("透析时长")!=-1){
975
-              this.checkListOne.push("透析时长:"+this.prescription.dialysis_duration)
972
+              this.checkListOne.push("透析时长:"+(this.prescription.dialysis_duration?this.prescription.dialysate_formulation:""))
976
            }
973
            }
977
            if(this.double_check.dialysis_parameter_desc.indexOf("目标超滤量")!=-1){
974
            if(this.double_check.dialysis_parameter_desc.indexOf("目标超滤量")!=-1){
978
-              this.checkListOne.push("目标超滤量:"+this.prescription.target_ultrafiltration)
975
+              this.checkListOne.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
979
            }
976
            }
980
            if(this.double_check.dialysis_parameter_desc.indexOf("抗凝剂")!=-1){
977
            if(this.double_check.dialysis_parameter_desc.indexOf("抗凝剂")!=-1){
981
               this.checkListOne.push("抗凝剂:"+this.getAnticoagulant(this.prescription.anticoagulant))
978
               this.checkListOne.push("抗凝剂:"+this.getAnticoagulant(this.prescription.anticoagulant))
982
            }
979
            }
983
            if(this.double_check.dialysis_parameter_desc.indexOf("首剂")!=-1){
980
            if(this.double_check.dialysis_parameter_desc.indexOf("首剂")!=-1){
984
-              this.checkListOne.push("首剂:"+this.prescription.anticoagulant_shouji)
981
+              this.checkListOne.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
985
            }
982
            }
986
            if(this.double_check.dialysis_parameter_desc.indexOf("维持")!=-1){
983
            if(this.double_check.dialysis_parameter_desc.indexOf("维持")!=-1){
987
-              this.checkListOne.push("维持:"+this.prescription.anticoagulant_weichi)
984
+              this.checkListOne.push("维持:"+(this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:""))
988
            }
985
            }
989
           if(this.double_check.dialysis_parameter_desc.indexOf("总量")!=-1){
986
           if(this.double_check.dialysis_parameter_desc.indexOf("总量")!=-1){
990
-              this.checkListOne.push("总量:"+this.prescription.anticoagulant_zongliang)
987
+              this.checkListOne.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
991
            }
988
            }
992
           if(this.double_check.dialysis_parameter_desc.indexOf("置换液")!=-1){
989
           if(this.double_check.dialysis_parameter_desc.indexOf("置换液")!=-1){
993
-              this.checkListOne.push("置换液:"+this.prescription.displace_liqui_part)
990
+              this.checkListOne.push("置换液:"+(this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:""))
994
            }
991
            }
995
            if(this.double_check.dialysis_parameter_desc.indexOf("置换总量")!=-1){
992
            if(this.double_check.dialysis_parameter_desc.indexOf("置换总量")!=-1){
996
-             this.checkListOne.push("置换总量:"+this.prescription.replacement_total)
993
+             this.checkListOne.push("置换总量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
997
            }
994
            }
998
            if(this.double_check.dialysis_parameter_desc.indexOf("处方血流量")!=-1){
995
            if(this.double_check.dialysis_parameter_desc.indexOf("处方血流量")!=-1){
999
-             this.checkListOne.push("处方血流量:"+this.prescription.blood_flow_volume)
996
+             this.checkListOne.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
1000
            }
997
            }
1001
            if(this.double_check.dialysis_parameter_desc.indexOf("透析液流量")!=-1){
998
            if(this.double_check.dialysis_parameter_desc.indexOf("透析液流量")!=-1){
1002
-             this.checkListOne.push("透析液流量:"+this.prescription.dialysate_flow)
999
+             this.checkListOne.push("透析液流量:"+(this.prescription.dialysate_flow?this.prescription.dialysate_flow:""))
1003
            }
1000
            }
1004
            if(this.double_check.vascular_access_desc.indexOf("通路类型")!=-1){
1001
            if(this.double_check.vascular_access_desc.indexOf("通路类型")!=-1){
1005
              this.checkListTwo.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
1002
              this.checkListTwo.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))

+ 8 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue 查看文件

661
                     <td width="60">
661
                     <td width="60">
662
                         <div class="under-line">&nbsp;{{ (prescription.anticoagulant == '阿加曲班' || prescription.anticoagulant == '普通肝素') && prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "" }}</div>
662
                         <div class="under-line">&nbsp;{{ (prescription.anticoagulant == '阿加曲班' || prescription.anticoagulant == '普通肝素') && prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "" }}</div>
663
                     </td>
663
                     </td>
664
-                    <td width="10">ml,</td>
664
+                    <td width="15">
665
+                      <span v-if="prescription.anticoagulant =='阿加曲班'">ml,</span>
666
+                      <span v-if="prescription.anticoagulant =='普通肝素'">iu,</span>
667
+                     </td>
665
                     <td width="60">追加量</td>
668
                     <td width="60">追加量</td>
666
                     <td width="60">
669
                     <td width="60">
667
                         <div class="under-line">&nbsp;{{ (prescription.anticoagulant == '阿加曲班' || prescription.anticoagulant == '普通肝素') && prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "" }}</div>
670
                         <div class="under-line">&nbsp;{{ (prescription.anticoagulant == '阿加曲班' || prescription.anticoagulant == '普通肝素') && prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "" }}</div>
668
                     </td>
671
                     </td>
669
-                    <td width="10">ml</td>
672
+                    <td width="10">
673
+                      <span v-if="prescription.anticoagulant =='阿加曲班'">ml</span>
674
+                      <span v-if="prescription.anticoagulant =='普通肝素'">iu/h</span>
675
+                    </td>
670
                     <td width="10">)</td>
676
                     <td width="10">)</td>
671
                     <td width="100">
677
                     <td width="100">
672
                         <label-box :isChecked="prescription.anticoagulant == '无肝素' ? true : false" showValue="无肝素"></label-box>
678
                         <label-box :isChecked="prescription.anticoagulant == '无肝素' ? true : false" showValue="无肝素"></label-box>

+ 25 - 3
src/xt_pages/stock/Dialog/goodInfoDailog.vue 查看文件

54
               <el-input v-model="form.specification_name" placeholder="" maxlength="30"></el-input>
54
               <el-input v-model="form.specification_name" placeholder="" maxlength="30"></el-input>
55
             </el-form-item>
55
             </el-form-item>
56
             <el-form-item label="生产厂商 : " prop="manufacturer" style="width:100%">
56
             <el-form-item label="生产厂商 : " prop="manufacturer" style="width:100%">
57
-              <el-select v-model="form.manufacturer" style="width:100%" placeholder="请选择">
57
+              <!-- <el-select v-model="form.manufacturer" style="width:100%" placeholder="请选择">
58
                 <el-option
58
                 <el-option
59
                   v-for="item,index in form.manufacturers"
59
                   v-for="item,index in form.manufacturers"
60
                   :key="index"
60
                   :key="index"
61
                   :label="item.manufacturer_name"
61
                   :label="item.manufacturer_name"
62
                   :value="item.id">
62
                   :value="item.id">
63
-                </el-option>
63
+                </el-option> -->
64
+                <el-select v-model="form.manufacturer" style="width:160px;" filterable placeholder="请选择">
65
+                  <el-option
66
+                    v-for="item in manufacturerList"
67
+                    :key="item.id"
68
+                    :label="item.manufacturer_name"
69
+                    :value="item.id">
70
+                  </el-option>
64
               </el-select>
71
               </el-select>
65
             </el-form-item>
72
             </el-form-item>
66
             <el-form-item label="单位 : " prop="good_unit">
73
             <el-form-item label="单位 : " prop="good_unit">
241
 
248
 
242
 <script>
249
 <script>
243
   import { getDictionaryDataConfig,getDataConfig } from '@/utils/data'
250
   import { getDictionaryDataConfig,getDataConfig } from '@/utils/data'
244
-
251
+  import { getManufacturerList } from "@/api/stock";
245
   export default {
252
   export default {
246
     name: 'goodInfoDailog',
253
     name: 'goodInfoDailog',
247
     data() {
254
     data() {
458
         return form
465
         return form
459
       }, changeSelected: function(val) {
466
       }, changeSelected: function(val) {
460
         console.log(val)
467
         console.log(val)
468
+      },
469
+      getlist(){
470
+         var params = {
471
+             page:this.page,
472
+             limit:this.limit
473
+          }
474
+          console.log("params2222222",params)
475
+        getManufacturerList(params).then(response=>{
476
+           var manufacturerList =   response.data.data.manufacturer
477
+           console.log("列表2222222",manufacturerList)
478
+           this.manufacturerList = manufacturerList
479
+        })
461
       }
480
       }
462
     },
481
     },
463
     watch: {
482
     watch: {
469
           this.good_unit = ''
488
           this.good_unit = ''
470
         }
489
         }
471
       }
490
       }
491
+    },
492
+    created(){
493
+      this.getlist()
472
     }
494
     }
473
   }
495
   }
474
 
496