Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
103c767fed

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

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

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

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

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

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

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

863
             return_marke:this.return_remark,
863
             return_marke:this.return_remark,
864
            }
864
            }
865
            console.log("2323323232",params)
865
            console.log("2323323232",params)
866
-           return 
866
+          
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=>{
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
              if(response.data.state == 1){
868
              if(response.data.state == 1){
869
                 this.loading = false
869
                 this.loading = false

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

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

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

1090
             return_remake: this.return_remark,
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
           if(this.tableDataList.length != this.recordInfo.tableList.length){
1095
           if(this.tableDataList.length != this.recordInfo.tableList.length){
1095
             
1096
             
1096
              for(let i=0;i<this.recordInfo.tableList.length;i++){
1097
              for(let i=0;i<this.recordInfo.tableList.length;i++){

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

118
          
118
          
119
          </template>
119
          </template>
120
        </el-table-column> -->
120
        </el-table-column> -->
121
-       <el-table-column label="数量" align="center" width="200">
121
+       <el-table-column label="数量" align="center" width="200">
122
          <template slot-scope="scope">
122
          <template slot-scope="scope">
123
-           {{scope.row.source_count}}
123
+           {{getCount(scope.row.cancelOrder)}}
124
          </template>
124
          </template>
125
        </el-table-column>
125
        </el-table-column>
126
 
126
 
257
             }
257
             }
258
          }
258
          }
259
        })
259
        })
260
-     },
261
-     changeTypeName(){
262
-
263
      },
260
      },
264
      getTimes(time) {
261
      getTimes(time) {
265
       if (time === '') {
262
       if (time === '') {
276
           page:this.page,
273
           page:this.page,
277
           limit:this.limit,
274
           limit:this.limit,
278
         }
275
         }
276
+       console.log("param23232323",params)
279
        getAllGoodReturnOrderList(params).then(response=>{
277
        getAllGoodReturnOrderList(params).then(response=>{
280
           if(response.data.state == 1){
278
           if(response.data.state == 1){
281
             var list = response.data.data.list 
279
             var list = response.data.data.list 
363
           })
361
           })
364
         }).catch(() => {
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
   created() {
378
   created() {