Преглед изворни кода

11月14日 库存扣减更新

XMLWAN пре 3 година
родитељ
комит
e16442174a

+ 2 - 2
src/xt_pages/dialysis/bloodPresssWatch.vue Прегледај датотеку

@@ -508,7 +508,7 @@
508 508
         align="right"
509 509
         @size-change="handleSizeChange"
510 510
         @current-change="handleCurrentChange"
511
-        :page-sizes="[10, 20, 30, 50,100]"
511
+        :page-sizes="[20, 40, 60, 80,100]"
512 512
         :page-size="10"
513 513
         background
514 514
         style="margin-top:20px;"
@@ -626,7 +626,7 @@ export default {
626 626
       total: 0,
627 627
       listQuery: {
628 628
         page: 1,
629
-        limit: 10,
629
+        limit: 20,
630 630
         schedul_type: 0,
631 631
         partition_type: 0,
632 632
         schedul_time: "",

+ 2 - 1
src/xt_pages/stock/detail/cancelStockDetail.vue Прегледај датотеку

@@ -381,7 +381,8 @@ export default {
381 381
         type: this.type,
382 382
         manufacturer: this.manufacturer_id,
383 383
         order_type: this.order_type,
384
-        dealer: this.dealer_id
384
+        dealer: this.dealer_id,
385
+        keywords: this.searchKey
385 386
       };
386 387
       console.log("Params23232233223232332",Params)
387 388
       this.cancelStockDate = [];

+ 4 - 4
src/xt_pages/stock/detail/stockInDetail.vue Прегледај датотеку

@@ -253,17 +253,16 @@ export default {
253 253
     changeType: function(val) {
254 254
       this.order_type = val;
255 255
       this.GetCancelStock();
256
-      // this.getPrintStockGood()
256
+     
257 257
     },
258 258
     changeManufacturer: function(val) {
259 259
       this.manufacturer_id = val;
260 260
       this.GetCancelStock();
261
-      // this.getPrintStockGood()
261
+     
262 262
     },
263 263
     changeDealer: function(val) {
264 264
       this.dealer_id = val;
265 265
       this.GetCancelStock();
266
-      // this.getPrintStockGood()
267 266
     },
268 267
     getTypeName: function(row) {
269 268
       let name = "";
@@ -361,7 +360,8 @@ export default {
361 360
         type: this.type,
362 361
         manufacturer: this.manufacturer_id,
363 362
         order_type: this.order_type,
364
-        dealer: this.dealer_id
363
+        dealer: this.dealer_id,
364
+        keywords: this.searchKey
365 365
       };
366 366
       this.cancelStockDate = [];
367 367
       getStockDetail(Params).then(response => {

+ 2 - 1
src/xt_pages/stock/detail/stockOutDetail.vue Прегледај датотеку

@@ -355,7 +355,8 @@ export default {
355 355
         type: this.type,
356 356
         manufacturer: this.manufacturer_id,
357 357
         order_type: this.order_type,
358
-        dealer: this.dealer_id
358
+        dealer: this.dealer_id,
359
+        keywords: this.searchKey
359 360
       };
360 361
       this.cancelStockDate = [];
361 362
       getStockDetail(Params).then(response => {

+ 1 - 1
src/xt_pages/stock/drugs/components/drugOutDetail.vue Прегледај датотеку

@@ -209,7 +209,7 @@ export default {
209 209
 
210 210
   created() {
211 211
     this.org_id = this.$store.getters.xt_user.org.id
212
-    console.log("jj233223323223",this.org_id)
212
+   
213 213
     var nowDate = new Date();
214 214
     var nowYear = nowDate.getFullYear();
215 215
     var nowMonth = nowDate.getMonth() + 1;

+ 4 - 18
src/xt_pages/stock/drugs/drugStockOutOrder.vue Прегледај датотеку

@@ -136,21 +136,7 @@
136 136
         <el-table-column label="操作" align="center" width="240">
137 137
           <template slot-scope="scope">
138 138
            
139
-            <!-- <el-tooltip
140
-              class="item"
141
-              effect="dark"
142
-              content="详情"
143
-              placement="top"
144
-            >
145
-              <el-button
146
-                size="small"
147
-                type="warning"
148
-                icon="el-icon-document"
149
-                @click="handleSearch(scope.row.id,scope.row.warehouse_out_time,scope.row.warehouse_out_order_number)"
150
-              >
151
-              </el-button>
152
-            </el-tooltip> -->
153
-
139
+         
154 140
             <el-tooltip
155 141
               class="item"
156 142
               effect="dark"
@@ -639,11 +625,10 @@ export default {
639 625
       this.$router.push({path:"/drug/out/drugstockoutorderedit?id="+row.id+"&type="+this.type+"&is_sys="+row.is_sys})
640 626
     },
641 627
     handleSearch(val){
642
-      //  console.log("val23233232",val)
628
+      
643 629
        this.getInitializtion()
644 630
        this.getSinleOrderDetail(val.id,val.warehouse_out_time,val.is_sys)
645 631
        this.list = []
646
-      //  this.getDrugAutoMaticList(val.id,val.time,val.warehouse_out_order_number)
647 632
 
648 633
     },
649 634
 
@@ -963,7 +948,8 @@ export default {
963 948
               list[i].number = ""
964 949
            }
965 950
          }
966
-          this.tableList = list
951
+         console.log("list233223323233223",list)
952
+         this.tableList = list
967 953
         }
968 954
      })
969 955
    },

+ 2 - 0
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue Прегледај датотеку

@@ -552,6 +552,8 @@ export default {
552 552
           const params = {
553 553
             stockOut: this.recordInfo.recordData
554 554
           };
555
+          console.log("param23323232",params)
556
+         
555 557
           const loading = this.$loading({
556 558
             lock: true,
557 559
             text: 'Loading',

+ 7 - 1
src/xt_pages/stock/drugs/inventory.vue Прегледај датотеку

@@ -282,7 +282,12 @@ export default {
282 282
            getDrugWarehouseInfoList(params).then(response=>{
283 283
              if(response.data.state == 1){
284 284
                 var list =  response.data.data.list
285
+                console.log("lisrt2332323223322323232323",list)
285 286
                 for(let i=0;i<list.length;i++){
287
+                   if(list[i].XtBaseDrug.max_unit == list[i].XtBaseDrug.min_unit){
288
+                      list[i].stock_max_number += list[i].stock_min_number
289
+                      list[i].stock_min_number = 0
290
+                   }
286 291
                    list[i].drug_name = list[i].XtBaseDrug.drug_name
287 292
                    list[i].specification_name = list[i].XtBaseDrug.dose +list[i].XtBaseDrug.dose_unit + "*"+list[i].XtBaseDrug.min_number +list[i].XtBaseDrug.min_unit+"/"+list[i].XtBaseDrug.max_unit
288 293
                    list[i].warehouseing_unit = list[i].max_unit
@@ -551,8 +556,9 @@ export default {
551 556
 
552 557
             if(response.data.state == 1){
553 558
               this.total =  response.data.data.total
559
+              
554 560
               this.tableList = response.data.data.list
555
-             
561
+              
556 562
               this.doctorList =  response.data.data.doctorList
557 563
               
558 564
 

+ 1 - 1
src/xt_pages/workforce/remind_print_setting.vue Прегледај датотеку

@@ -104,7 +104,7 @@
104 104
                   <span>首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</span>
105 105
                 </div>
106 106
                 <div class="printCell">
107
-                  <span>体重增加:{{ main_collection.assessmentbefor.weight_before - main_collection.lastafterweight.weight_after }}Kg</span>
107
+                  <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - main_collection.lastafterweight.weight_after).toFixed(2) }}Kg</span>
108 108
                   <span>维持:{{main_collection.dialysissolution.anticoagulant_weichi}}</span>
109 109
                 </div>
110 110
                 <div class="printCell">