Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
103c767fed

+ 2 - 2
src/views/layout/Layout.vue View File

@@ -17,10 +17,10 @@
17 17
           <p>透析管理</p>
18 18
         </div>
19 19
 
20
-        <!-- <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
20
+        <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
21 21
           <i class="iconfont icon-kccx navIcon"></i>
22 22
           <p>采购管理</p>
23
-        </div> -->
23
+        </div>
24 24
         
25 25
         <div v-if="kucunShow" :class="index == 3 ? 'navOne navActive' : 'navOne'" @click="clickActive(3,'库房管理')">
26 26
           <i class="iconfont icon-kccx navIcon"></i>

+ 2 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -783,11 +783,11 @@
783 783
           >
784 784
           </DialysisPrintOrderFive>
785 785
 
786
-          <DialysisPrintOrderFortySix
786
+          <DialysisPrintOrderSix
787 787
             v-bind:childResponse="childResponse"
788 788
             v-if="org_template_info.template_id == 6"
789 789
           >
790
-          </DialysisPrintOrderFortySix>
790
+          </DialysisPrintOrderSix>
791 791
 
792 792
           <DialysisPrintOrderSeven
793 793
             v-bind:childResponse="childResponse"

+ 7 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -76,7 +76,7 @@
76 76
             </div>
77 77
           </div>
78 78
         </div>
79
-        <div class="row" v-if="org_id != 10307">
79
+        <div class="row">
80 80
           <div class="inline_block">
81 81
             入科方式:
82 82
             <div v-for="(item, index) in way_arr" class="under_line" v-if="receiverTreatmentAccess.way == item.id" style="width: 180px;text-align: left">
@@ -357,7 +357,7 @@
357 357
                   </div>
358 358
                   <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
359 359
                     <div class="inline_block" style="flex:1;">
360
-                      <span>透析(滤)器:</span> 
360
+                      透析(滤)器:
361 361
                       <div class="under_line" style="width: 100px;text-align: center">
362 362
                         {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
363 363
                         {{prescription.dialysis_dialyszers?prescription.dialysis_dialyszers:"/"}}
@@ -407,7 +407,7 @@
407 407
                       <div class="under_line" style="width: 100px;text-align: center">
408 408
                         {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "/" }}
409 409
                       </div>
410
-                     L
410
+                      L
411 411
                     </div>
412 412
                     <div class="inline_block" style="flex:1;">
413 413
                       干体重:
@@ -776,7 +776,7 @@
776 776
               </div>
777 777
             </div>
778 778
           </div>
779
-          <div class="row" style="margin-bottom:10px;" v-if="org_id != 10307" >
779
+          <div class="row" style="margin-bottom:10px;">
780 780
             <div class="inline_block">
781 781
               入科方式:
782 782
               <!--<check-box v-for="item, index in nutrition_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.nutrition == item.id?true:false"></check-box>-->
@@ -817,7 +817,7 @@
817 817
               <!--平车-->
818 818
               <!--</div>-->
819 819
             </div>
820
-            <div class="inline_block" style="margin-left: 10px;" >
820
+            <div class="inline_block" style="margin-left: 10px;">
821 821
               诊断:
822 822
               <div class="under_line" style="width: 640px;text-align: left;word-break: break-all;word-wrap: break-word;display: inline-block;">
823 823
                 {{ patientInfo.diagnose }}
@@ -888,12 +888,12 @@
888 888
                 </tr>
889 889
               </template>
890 890
 
891
-              <tr v-if="org_id != 10307">
891
+              <tr>
892 892
                 <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
893 893
                   透析后情况
894 894
                 </td>
895 895
               </tr>
896
-              <tr v-if="org_id != 10307">
896
+              <tr>
897 897
                 <td colspan="7">
898 898
                   <div class="row" style="padding: 2px 0;line-height:23px; display:flex;">
899 899
                     <div class="inline_block" style="flex:1;">
@@ -2020,7 +2020,6 @@ export default {
2020 2020
     }
2021 2021
   },
2022 2022
   created() {
2023
-    console.log(this.org_id,'opop')
2024 2023
     this.way_arr = getDataConfig('hemodialysis', 'way')
2025 2024
     this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
2026 2025
     this.appetite_arr = getDataConfig('hemodialysis', 'appetite')

+ 1 - 1
src/xt_pages/supply/components/addGoodReturn.vue View File

@@ -863,7 +863,7 @@ export default {
863 863
             return_marke:this.return_remark,
864 864
            }
865 865
            console.log("2323323232",params)
866
-           return 
866
+          
867 867
            saveGoodReturnOrder(params,warehouse_out_id,this.start_time,this.rate_of_concession,this.discount_amount,this.arrearage,this.payment,this.supplier_name).then(response=>{
868 868
              if(response.data.state == 1){
869 869
                 this.loading = false

+ 1 - 0
src/xt_pages/supply/components/addPurchaseOrder.vue View File

@@ -953,6 +953,7 @@ export default {
953 953
           this.disabled = false;
954 954
           this.showOne = true;
955 955
           this.is_check = 2;
956
+          this.Reviewed = false
956 957
           this.$message.success("反审核成功!");
957 958
         }
958 959
       });

+ 2 - 1
src/xt_pages/supply/components/editGoodOrder.vue View File

@@ -1090,7 +1090,8 @@ export default {
1090 1090
             return_remake: this.return_remark,
1091 1091
           };
1092 1092
           //判断是否在采购订单数据中做了删除,如果长度相等则代表没有删除,如果不等则代表做了删除或者新增
1093
-
1093
+          console.log("changed111111",this.tableDataList.length)
1094
+           console.log("changed111111",this.recordInfo.tableList.length)
1094 1095
           if(this.tableDataList.length != this.recordInfo.tableList.length){
1095 1096
             
1096 1097
              for(let i=0;i<this.recordInfo.tableList.length;i++){

+ 15 - 5
src/xt_pages/supply/goodreturn.vue View File

@@ -118,9 +118,9 @@
118 118
          
119 119
          </template>
120 120
        </el-table-column> -->
121
-       <el-table-column label="数量" align="center" width="200">
121
+       <el-table-column label="数量" align="center" width="200">
122 122
          <template slot-scope="scope">
123
-           {{scope.row.source_count}}
123
+           {{getCount(scope.row.cancelOrder)}}
124 124
          </template>
125 125
        </el-table-column>
126 126
 
@@ -257,9 +257,6 @@ export default {
257 257
             }
258 258
          }
259 259
        })
260
-     },
261
-     changeTypeName(){
262
-
263 260
      },
264 261
      getTimes(time) {
265 262
       if (time === '') {
@@ -276,6 +273,7 @@ export default {
276 273
           page:this.page,
277 274
           limit:this.limit,
278 275
         }
276
+       console.log("param23232323",params)
279 277
        getAllGoodReturnOrderList(params).then(response=>{
280 278
           if(response.data.state == 1){
281 279
             var list = response.data.data.list 
@@ -363,6 +361,18 @@ export default {
363 361
           })
364 362
         }).catch(() => {
365 363
        }) 
364
+     },
365
+     getCount(val){
366
+       var total = 0
367
+       for(let i=0;i<val.length;i++){
368
+         total += val[i].count
369
+       }
370
+       if(total >0){
371
+         return total
372
+       }else{
373
+         return ""
374
+       }
375
+      
366 376
      }
367 377
   },
368 378
   created() {