Преглед на файлове

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

see999 преди 3 години
родител
ревизия
b295d386cc

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Целия файл

@@ -2036,7 +2036,7 @@
2036 2036
           if (minites < 10) {
2037 2037
             minites = '0' + minites
2038 2038
           }
2039
-          if (this.$store.getters.xt_user.org.id == 10016 || this.$store.getters.xt_user.org.id == 10121 || this.$store.getters.xt_user.org.id == 4  ) {
2039
+          if (this.$store.getters.xt_user.org.id == 10016 || this.$store.getters.xt_user.org.id == 10121 || this.$store.getters.xt_user.org.id == 4 || this.$store.getters.xt_user.org.id == 10013 || this.$store.getters.xt_user.org.id == 10014 ) {
2040 2040
             this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2041 2041
           } else {
2042 2042
             if (schedual.schedule_type == 1) {

+ 2 - 0
src/xt_pages/management/components/UserForm.vue Целия файл

@@ -1670,6 +1670,8 @@ export default {
1670 1670
 
1671 1671
       this.$refs[formName].validate(valid => {
1672 1672
         if (valid) {
1673
+          console.log("hhhh23233323",this.userform)
1674
+       
1673 1675
           UpdateForm(this.userform).then(response => {
1674 1676
             if (response.data.state === 1) {
1675 1677
               var information = response.data.data.information;

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Целия файл

@@ -170,7 +170,7 @@
170 170
                                                 <span v-if="hisPatientInfo.balance_accounts_type == 2">个人支付金额:<span
171 171
                                                         style="color:red;">{{ items.curPrescriptions.order.medfee_sumamt}}元</span></span>
172 172
 
173
-                                                <span>个人账户金额:<span style="color:red;">{{ items.curPrescriptions.order.account_price?items.curPrescriptions.order.account_price:''}}元</span></span>
173
+                                                <span>个人账户金额:<span style="color:red;">{{ items.curPrescriptions.order.balc?items.curPrescriptions.order.balc:''}}元</span></span>
174 174
 
175 175
                                                 <span v-if="items.curPrescriptions.order_status  == 1">待结算</span>
176 176
                                                 <span v-if="items.curPrescriptions.order_status  == 2">已结算</span>

+ 15 - 14
src/xt_pages/stock/drugs/components/drugInOrder.vue Целия файл

@@ -224,20 +224,19 @@ export default {
224 224
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
225 225
       "-" +
226 226
       (nowDay < 10 ? "0" + nowDay : nowDay);
227
-     var start = window.sessionStorage.getItem('start_in_time')
228
-     console.log("start23323232322323",start)
229
-      var end =  window.sessionStorage.getItem('end_in_time')
230
-     if(start!= "null"){
231
-        console.log("hh232h23h32h3232322323")
232
-        this.start_time = start
233
-     }
234 227
      
228
+    var start_time =  window.sessionStorage.getItem('drug_start_in_time')
235 229
     
236
-     if(end != "null"){
237
-       
238
-        this.end_time = end
239
-     }
240
-   
230
+    var end_time =  window.sessionStorage.getItem('drug_end_in_time')
231
+    if(start_time !=null){
232
+      console.log("hh232323232红红火火")
233
+      this.start_time = start_time
234
+    }
235
+    if(end_time!=null){
236
+      this.end_time = end_time
237
+    }
238
+    window.sessionStorage.removeItem('drug_start_in_time')
239
+    window.sessionStorage.removeItem('drug_end_in_time')  
241 240
     this.GetConfigInfo()
242 241
     this.fetchAllAdminUsers()
243 242
     //获取入库单数据
@@ -333,6 +332,7 @@ export default {
333 332
         this.$message.error("结束时间不能小于开始时间");
334 333
         this.start_time = "";
335 334
       } else {
335
+        window.sessionStorage.setItem('drug_start_in_time',this.start_time)
336 336
         this.getlist()
337 337
         this.getDrugWarehouseInfoPrint()
338 338
       }
@@ -343,6 +343,7 @@ export default {
343 343
         this.$message.error("结束时间不能小于开始时间");
344 344
         this.end_time = "";
345 345
       } else {
346
+        window.sessionStorage.setItem('drug_end_in_time',this.end_time)
346 347
         this.getlist()
347 348
         this.getDrugWarehouseInfoPrint()
348 349
       }
@@ -460,8 +461,8 @@ export default {
460 461
       })
461 462
     },
462 463
     PrintAction(){
463
-      window.sessionStorage.setItem('start_in_time',this.start_time)
464
-      window.sessionStorage.setItem('end_in_time',this.end_time)
464
+      window.sessionStorage.setItem('drug_start_in_time',this.start_time)
465
+      window.sessionStorage.setItem('drug_end_in_time',this.end_time)
465 466
       this.$router.push("/stock/drugprint?start_time="+this.start_time+"&end_time="+this.end_time+"&order_type="+this.order_type+"&manufacturer_id="+this.manufacturer_id+"&keyword="+this.keyword+"&limit="+this.limit+"&page="+this.page)
466 467
     },
467 468
     select(){

+ 9 - 9
src/xt_pages/stock/drugs/components/drugOutDetail.vue Целия файл

@@ -179,7 +179,7 @@
179 179
             {{scope.row.count}}
180 180
           </template>
181 181
         </el-table-column>
182
-        <el-table-column label="总价" align="center">
182
+        <el-table-column label="总价5555" align="center">
183 183
           <template slot-scope="scope">
184 184
             <!-- {{scope.row.price * scope.row.count}} -->
185 185
             {{scope.row.total_price}}
@@ -232,15 +232,15 @@ export default {
232 232
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
233 233
       "-" +
234 234
       (nowDay < 10 ? "0" + nowDay : nowDay);
235
-    var start = window.sessionStorage.getItem('start_out_time')
235
+    var start_time = window.sessionStorage.getItem('start_out_time')
236 236
     console.log("start",start)
237
-     var end =  window.sessionStorage.getItem('end_out_time')
238
-    if(start!="null"){
239
-       this.start_time = start   
237
+     var end_time =  window.sessionStorage.getItem('end_out_time')
238
+    if(start_time!=null){
239
+       this.start_time = start_time   
240 240
     }
241
-    if(end!="null"){
241
+    if(end_time!=null){
242 242
      
243
-      this.end_time = end
243
+      this.end_time = end_time
244 244
     }
245 245
     
246 246
     this.getDrugOutOrderPrint()
@@ -401,8 +401,8 @@ export default {
401 401
       }
402 402
     },
403 403
     PrintAction: function() {
404
-       window.sessionStorage.setItem('start_out_time',this.start_time)
405
-       window.sessionStorage.setItem('end_out_time',this.end_time)
404
+      //  window.sessionStorage.setItem('start_out_time',this.start_time)
405
+      //  window.sessionStorage.setItem('end_out_time',this.end_time)
406 406
        this.$router.push("/stock/drugoutorderprint?start_time="+this.start_time+"&end_time="+this.end_time+"&order_type="+2+"&manufacturer_id="+this.manufacturer_id+"&keyword="+this.keyword+"&limit="+this.limit+"&page="+this.page)
407 407
     },
408 408
     getlist(){

+ 4 - 2
src/xt_pages/stock/stockInOrderAdd.vue Целия файл

@@ -86,10 +86,9 @@
86 86
               <span>批号</span>
87 87
             </template>
88 88
             <template slot-scope="scope">
89
-              <el-form-item style="padding-top: 20px">
89
+              <el-form-item style="padding-top: 20px" >
90 90
                 <el-input placeholder="请输入批号" v-model="scope.row.number"></el-input>
91 91
               </el-form-item>
92
-
93 92
             </template>
94 93
           </el-table-column>
95 94
 
@@ -285,6 +284,9 @@
285 284
 
286 285
           good_id: [
287 286
             { validator: checkGoodId, trigger: 'blur' }
287
+          ],
288
+          number:[
289
+            { required: true, message: '批号不能为空', trigge: 'blur' }
288 290
           ]
289 291
 
290 292
         },

+ 29 - 12
src/xt_pages/stock/stockOutOrderAdd.vue Целия файл

@@ -120,18 +120,20 @@
120 120
           
121 121
           <el-table-column  width="150" align="center">
122 122
              <template slot="header" slot-scope="scope">
123
-              <span>批号<span style="color: red"></span></span>
123
+              <span>批号<span style="color: red">*</span></span>
124 124
             </template>
125 125
             <template slot-scope="scope">
126
-               <!-- <el-input placeholder="请输入批号" v-model="scope.row.number"></el-input> -->
127
-                <el-select v-model="scope.row.number" filterable placeholder="请选择">
126
+              <el-form-item  
127
+                :rules="tableRules.number">
128
+                <el-select v-model="scope.row.number" filterable placeholder="请选择" @change="changeNumberList(scope.row)">
128 129
                   <el-option
129 130
                     v-for="(item,index) in numberList"
130 131
                     :key="index"
131 132
                     :label="item.number"
132
-                    :value="item.number">
133
+                    :value="item.id">
133 134
                   </el-option>
134 135
                 </el-select>
136
+              </el-form-item>
135 137
             </template>
136 138
           </el-table-column>
137 139
 
@@ -324,7 +326,8 @@ export default {
324 326
       },
325 327
       tableRules: {
326 328
         price: [{ required: true, message: "单价不能为空", trigger: "blur" }],
327
-        count: [{ required: true, message: "数量不能为空", trigge: "blur" }]
329
+        count: [{ required: true, message: "数量不能为空", trigge: "blur" }],
330
+        number:[{ required: true, message: "批号不能为空",trigge:"blur"}],
328 331
       },
329 332
       ruleForm: {
330 333
         manufacturer: [
@@ -456,10 +459,10 @@ export default {
456 459
       tempObj["good_unit"] = "";
457 460
       tempObj["number"] = ""
458 461
       tempObj["specification_name"] = ""
459
-      tempObj["number"] = ""
460 462
       tempObj["expiry_date"] = ""
461 463
       tempObj["product_date"] = ""
462 464
       tempObj["license_number"] = ""
465
+      tempObj["warehouse_info_id"] = 0
463 466
       this.recordInfo.recordData.push(tempObj);
464 467
     },
465 468
     handleDelete: function(index, row) {
@@ -587,6 +590,7 @@ export default {
587 590
            
588 591
              this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
589 592
           }
593
+          console.log("批次好",this.numberList)
590 594
           for(let i=0;i<this.recordInfo.recordData.length;i++){
591 595
             for(let j=0;j<this.manufacturerList.length;j++){
592 596
               if(this.recordInfo.recordData[i].manufacturer == this.manufacturerList[j].manufacturer_name){
@@ -598,12 +602,18 @@ export default {
598 602
                   this.recordInfo.recordData[i].dealer = this.dealerList[z].id
599 603
               }
600 604
             }
605
+          
606
+            for(let y=0;y<this.numberList.length;y++){
607
+               if(this.recordInfo.recordData[i].number == this.numberList[y].id){
608
+                   this.recordInfo.recordData[i].number = this.numberList[y].number
609
+               }
610
+            }
601 611
           }
602 612
           const params = {
603 613
             stockOut: this.recordInfo.recordData
604 614
           };
605 615
           console.log("2323223223",this.recordInfo.recordData);
606
-          
616
+     
607 617
           postWarehouseOut(
608 618
             params,
609 619
             this.warehouse_out_time,
@@ -619,7 +629,7 @@ export default {
619 629
                var msg = response.data.data.msg
620 630
                var good_name = response.data.data.good_name
621 631
                var specification_name = response.data.data.specification_name
622
-               var str = good_name +"*" + specification_name +"无库存,请入库"
632
+               var str = good_name +"*" + specification_name +"该批次无库存,请入库"
623 633
                console.log("msg222222222",msg)
624 634
                if(msg == 1){
625 635
                   this.$message.error(str)
@@ -711,9 +721,7 @@ export default {
711 721
          }
712 722
 
713 723
        
714
-      }
715
-
716
-       
724
+      }    
717 725
     },
718 726
 
719 727
     getStockBatchNumber(id){
@@ -731,6 +739,15 @@ export default {
731 739
     getDataConfig(module, filed_name) {
732 740
       return getDataConfig(module, filed_name)
733 741
     },
742
+    changeNumberList(val){
743
+       console.log("val232332323223232332",val)
744
+       for(let i=0;i<this.recordInfo.recordData.length;i++){
745
+         if(val.good_id == this.recordInfo.recordData[i].good_id){
746
+            this.recordInfo.recordData[i].warehouse_info_id = val.number
747
+         }
748
+       }  
749
+      console.log("表格",this.recordInfo.recordData)
750
+    }
734 751
   },
735 752
   created() {
736 753
     var nowDate = new Date();
@@ -752,9 +769,9 @@ export default {
752 769
     tempObj["good_unit"] = ""
753 770
     tempObj["number"] = ""
754 771
     tempObj["specification_name"] = ""
755
-    tempObj["number"] = ""
756 772
     tempObj["dealer"] = ""
757 773
     tempObj["license_number"] = ""
774
+    tempObj["warehouse_info_id"] = 0
758 775
     this.recordInfo.recordData.push(tempObj);
759 776
     this.GetConfigInfo();
760 777
     this.propForm.goodUnit = this.$store.getters.good_unit;