Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
0eec5a48e4

+ 4 - 4
src/xt_pages/stock/drugs/components/drugCancelDetail.vue View File

@@ -92,10 +92,10 @@
92 92
 
93 93
         <el-table-column label="药品类型" align="center">
94 94
           <template slot-scope="scope">
95
-            <!-- <span v-if="scope.row.drug_type == 1">西药</span>
95
+            <span v-if="scope.row.drug_type == 1">西药</span>
96 96
             <span v-if="scope.row.drug_type == 2">草药</span>
97
-            <span v-if="scope.row.drug_type == 3">成药</span> -->
98
-            {{getTypeList(scope.row.drug_type)}}
97
+            <span v-if="scope.row.drug_type == 3">成药</span>
98
+            <!-- {{getTypeList(scope.row.drug_type)}} -->
99 99
           </template>
100 100
         </el-table-column>
101 101
 
@@ -348,7 +348,7 @@ export default {
348 348
          if(response.data.state == 1){
349 349
            var order =  response.data.data.order
350 350
            var list = response.data.data.orderPrint
351
-           this.drugTypeList = response.data.data.drugTypeList
351
+           //this.drugTypeList = response.data.data.drugTypeList
352 352
            for(let i=0;i<list.length;i++){
353 353
              list[i].child = []
354 354
             for(let j=0;j<order.length;j++){

+ 4 - 4
src/xt_pages/stock/drugs/components/drugInOrder.vue View File

@@ -95,10 +95,10 @@
95 95
 
96 96
         <el-table-column label="药品类型" align="center">
97 97
           <template slot-scope="scope">
98
-            <!-- <span v-if="scope.row.drug_type == 1">西药</span>
98
+            <span v-if="scope.row.drug_type == 1">西药</span>
99 99
             <span v-if="scope.row.drug_type == 2">草药</span>
100
-            <span v-if="scope.row.drug_type == 3">成药</span> -->
101
-            {{getTypeList(scope.row.drug_type)}}
100
+            <span v-if="scope.row.drug_type == 3">成药</span>
101
+            <!-- {{getTypeList(scope.row.drug_type)}} -->
102 102
           </template>
103 103
         </el-table-column>
104 104
 
@@ -348,7 +348,7 @@ export default {
348 348
           var drugInOrder = response.data.data.detail
349 349
           var drugTypeParent = response.data.data.drugTypeParent
350 350
           console.log("药品类型",drugTypeParent)
351
-          this.drugTypeList = drugTypeParent
351
+        //  this.drugTypeList = drugTypeParent
352 352
           var total_price = 0
353 353
           for(let i=0;i<drugInOrder.length;i++){
354 354
              drugInOrder[i].specification_name  = drugInOrder[i].dose + drugInOrder[i].dose_unit + "*" + drugInOrder[i].min_number +  drugInOrder[i].min_unit + "/" + drugInOrder[i].max_unit

+ 4 - 4
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

@@ -133,10 +133,10 @@
133 133
 
134 134
         <el-table-column label="药品类型" align="center">
135 135
           <template slot-scope="scope">
136
-            <!-- <span v-if="scope.row.drug_type == 1">西药</span>
136
+            <span v-if="scope.row.drug_type == 1">西药</span>
137 137
             <span v-if="scope.row.drug_type == 2">草药</span>
138
-            <span v-if="scope.row.drug_type == 3">成药</span> -->
139
-            {{getTypeList(scope.row.drug_type)}}
138
+            <span v-if="scope.row.drug_type == 3">成药</span>
139
+            <!-- {{getTypeList(scope.row.drug_type)}} -->
140 140
           </template>
141 141
         </el-table-column>
142 142
 
@@ -443,7 +443,7 @@ export default {
443 443
           for(let i=0;i<order.length;i++){
444 444
             order[i].total_price = order[i].total_price.toFixed(2)
445 445
           }
446
-          this.drugTypeList = response.data.data.drugTypeList
446
+        //  this.drugTypeList = response.data.data.drugTypeList
447 447
           
448 448
           this.tableData = order
449 449
            let objInfo = {}