Browse Source

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 years ago
parent
commit
41e9333eaf

+ 0 - 6
src/xt_pages/data/components/addDrugs.vue View File

463
       },
463
       },
464
       getDataConfig(module, filed_name){
464
       getDataConfig(module, filed_name){
465
         return getDataConfig(module, filed_name)
465
         return getDataConfig(module, filed_name)
466
-
467
       },
466
       },
468
       _close: function(done) {
467
       _close: function(done) {
469
         // this.clear()
468
         // this.clear()
490
           }
489
           }
491
 
490
 
492
           this.form.drug_classify = parseInt(this.form.drug_classify)
491
           this.form.drug_classify = parseInt(this.form.drug_classify)
493
-          this.form.max_unit = parseInt(this.form.max_unit)
494
-          this.form.min_unit = parseInt(this.form.min_unit)
495
-
496
           this.form['id'] = id
492
           this.form['id'] = id
497
-
498
-          console.log(this.form.drug_status.length)
499
           this.drug_status = []
493
           this.drug_status = []
500
           if(this.form.drug_status.length > 0){
494
           if(this.form.drug_status.length > 0){
501
             for (let i = 0; i <  this.form.drug_status.split(",").length; i++){
495
             for (let i = 0; i <  this.form.drug_status.split(",").length; i++){

+ 2 - 10
src/xt_pages/data/components/drugs.vue View File

305
         return ''
305
         return ''
306
       },
306
       },
307
       goodInfoDialogComfirm: function(val) {
307
       goodInfoDialogComfirm: function(val) {
308
-        
308
+
309
         //修改自备药
309
         //修改自备药
310
         var untit = ""
310
         var untit = ""
311
         var untis = getDataConfig('hemodialysis','units')
311
         var untis = getDataConfig('hemodialysis','units')
370
         // this.$refs.maintain.show();
370
         // this.$refs.maintain.show();
371
       },
371
       },
372
       openForm(id) {
372
       openForm(id) {
373
-        
373
+
374
         this.getAllManufacturer()
374
         this.getAllManufacturer()
375
         if (id > 0) {
375
         if (id > 0) {
376
           this.current_id = id
376
           this.current_id = id
387
               }
387
               }
388
 
388
 
389
               if(this.formValue.is_special_diseases <= 0){
389
               if(this.formValue.is_special_diseases <= 0){
390
-
391
                 this.formValue.is_special_diseases = ''
390
                 this.formValue.is_special_diseases = ''
392
               } else{
391
               } else{
393
-
394
                 this.formValue.is_special_diseases = this.formValue.is_special_diseases.toString()
392
                 this.formValue.is_special_diseases = this.formValue.is_special_diseases.toString()
395
-
396
-
397
               }
393
               }
398
 
394
 
399
               if(this.formValue.is_record <= 0){
395
               if(this.formValue.is_record <= 0){
400
-
401
                 this.formValue.is_record = ''
396
                 this.formValue.is_record = ''
402
               } else{
397
               } else{
403
-
404
                 this.formValue.is_record = this.formValue.is_record.toString()
398
                 this.formValue.is_record = this.formValue.is_record.toString()
405
-
406
-
407
               }
399
               }
408
 
400
 
409
 
401
 

+ 12 - 8
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

108
           </template>
108
           </template>
109
         </el-table-column>
109
         </el-table-column>
110
 
110
 
111
+        <el-table-column min-width="35" align="center">
112
+          <template slot="header" slot-scope="scope">
113
+            <span>出库方式</span>
114
+          </template>
115
+          <template slot-scope="scope">
116
+            <span v-if="scope.row.is_sys == 1">{{"自动出库"}}</span>
117
+            <span v-if="scope.row.is_sys != 1">{{"手动出库"}}</span>
118
+
119
+          </template>
120
+        </el-table-column>
121
+
111
         <el-table-column label="厂家" align="center">
122
         <el-table-column label="厂家" align="center">
112
           <template slot-scope="scope">
123
           <template slot-scope="scope">
113
             {{scope.row.manufacturers ? scope.row.manufacturers.manufacturer_name:''}}
124
             {{scope.row.manufacturers ? scope.row.manufacturers.manufacturer_name:''}}
119
             {{scope.row.dealers ? scope.row.dealers.dealer_name:''}}
130
             {{scope.row.dealers ? scope.row.dealers.dealer_name:''}}
120
           </template>
131
           </template>
121
         </el-table-column>
132
         </el-table-column>
122
-        <el-table-column min-width="35" align="center">
123
-          <template slot="header" slot-scope="scope">
124
-            <span>出库方式</span>
125
-          </template>
126
-          <template slot-scope="scope">
127
-            <span v-if="scope.row.is_sys == 1">{{"自动出库"}}</span>
128
-          </template>
129
-        </el-table-column>
133
+
130
 
134
 
131
         <el-table-column label="操作" align="center">
135
         <el-table-column label="操作" align="center">
132
           <template slot-scope="scope">
136
           <template slot-scope="scope">