Browse Source

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

see999 3 years ago
parent
commit
b295d386cc

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

2036
           if (minites < 10) {
2036
           if (minites < 10) {
2037
             minites = '0' + minites
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
             this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2040
             this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2041
           } else {
2041
           } else {
2042
             if (schedual.schedule_type == 1) {
2042
             if (schedual.schedule_type == 1) {

+ 2 - 0
src/xt_pages/management/components/UserForm.vue View File

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

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

170
                                                 <span v-if="hisPatientInfo.balance_accounts_type == 2">个人支付金额:<span
170
                                                 <span v-if="hisPatientInfo.balance_accounts_type == 2">个人支付金额:<span
171
                                                         style="color:red;">{{ items.curPrescriptions.order.medfee_sumamt}}元</span></span>
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
                                                 <span v-if="items.curPrescriptions.order_status  == 1">待结算</span>
175
                                                 <span v-if="items.curPrescriptions.order_status  == 1">待结算</span>
176
                                                 <span v-if="items.curPrescriptions.order_status  == 2">已结算</span>
176
                                                 <span v-if="items.curPrescriptions.order_status  == 2">已结算</span>

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

224
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
224
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
225
       "-" +
225
       "-" +
226
       (nowDay < 10 ? "0" + nowDay : nowDay);
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
     this.GetConfigInfo()
240
     this.GetConfigInfo()
242
     this.fetchAllAdminUsers()
241
     this.fetchAllAdminUsers()
243
     //获取入库单数据
242
     //获取入库单数据
333
         this.$message.error("结束时间不能小于开始时间");
332
         this.$message.error("结束时间不能小于开始时间");
334
         this.start_time = "";
333
         this.start_time = "";
335
       } else {
334
       } else {
335
+        window.sessionStorage.setItem('drug_start_in_time',this.start_time)
336
         this.getlist()
336
         this.getlist()
337
         this.getDrugWarehouseInfoPrint()
337
         this.getDrugWarehouseInfoPrint()
338
       }
338
       }
343
         this.$message.error("结束时间不能小于开始时间");
343
         this.$message.error("结束时间不能小于开始时间");
344
         this.end_time = "";
344
         this.end_time = "";
345
       } else {
345
       } else {
346
+        window.sessionStorage.setItem('drug_end_in_time',this.end_time)
346
         this.getlist()
347
         this.getlist()
347
         this.getDrugWarehouseInfoPrint()
348
         this.getDrugWarehouseInfoPrint()
348
       }
349
       }
460
       })
461
       })
461
     },
462
     },
462
     PrintAction(){
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
       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
       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
     select(){
468
     select(){

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

179
             {{scope.row.count}}
179
             {{scope.row.count}}
180
           </template>
180
           </template>
181
         </el-table-column>
181
         </el-table-column>
182
-        <el-table-column label="总价" align="center">
182
+        <el-table-column label="总价5555" align="center">
183
           <template slot-scope="scope">
183
           <template slot-scope="scope">
184
             <!-- {{scope.row.price * scope.row.count}} -->
184
             <!-- {{scope.row.price * scope.row.count}} -->
185
             {{scope.row.total_price}}
185
             {{scope.row.total_price}}
232
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
232
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
233
       "-" +
233
       "-" +
234
       (nowDay < 10 ? "0" + nowDay : nowDay);
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
     console.log("start",start)
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
     this.getDrugOutOrderPrint()
246
     this.getDrugOutOrderPrint()
401
       }
401
       }
402
     },
402
     },
403
     PrintAction: function() {
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
        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)
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
     getlist(){
408
     getlist(){

+ 4 - 2
src/xt_pages/stock/stockInOrderAdd.vue View File

86
               <span>批号</span>
86
               <span>批号</span>
87
             </template>
87
             </template>
88
             <template slot-scope="scope">
88
             <template slot-scope="scope">
89
-              <el-form-item style="padding-top: 20px">
89
+              <el-form-item style="padding-top: 20px" >
90
                 <el-input placeholder="请输入批号" v-model="scope.row.number"></el-input>
90
                 <el-input placeholder="请输入批号" v-model="scope.row.number"></el-input>
91
               </el-form-item>
91
               </el-form-item>
92
-
93
             </template>
92
             </template>
94
           </el-table-column>
93
           </el-table-column>
95
 
94
 
285
 
284
 
286
           good_id: [
285
           good_id: [
287
             { validator: checkGoodId, trigger: 'blur' }
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 View File

120
           
120
           
121
           <el-table-column  width="150" align="center">
121
           <el-table-column  width="150" align="center">
122
              <template slot="header" slot-scope="scope">
122
              <template slot="header" slot-scope="scope">
123
-              <span>批号<span style="color: red"></span></span>
123
+              <span>批号<span style="color: red">*</span></span>
124
             </template>
124
             </template>
125
             <template slot-scope="scope">
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
                   <el-option
129
                   <el-option
129
                     v-for="(item,index) in numberList"
130
                     v-for="(item,index) in numberList"
130
                     :key="index"
131
                     :key="index"
131
                     :label="item.number"
132
                     :label="item.number"
132
-                    :value="item.number">
133
+                    :value="item.id">
133
                   </el-option>
134
                   </el-option>
134
                 </el-select>
135
                 </el-select>
136
+              </el-form-item>
135
             </template>
137
             </template>
136
           </el-table-column>
138
           </el-table-column>
137
 
139
 
324
       },
326
       },
325
       tableRules: {
327
       tableRules: {
326
         price: [{ required: true, message: "单价不能为空", trigger: "blur" }],
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
       ruleForm: {
332
       ruleForm: {
330
         manufacturer: [
333
         manufacturer: [
456
       tempObj["good_unit"] = "";
459
       tempObj["good_unit"] = "";
457
       tempObj["number"] = ""
460
       tempObj["number"] = ""
458
       tempObj["specification_name"] = ""
461
       tempObj["specification_name"] = ""
459
-      tempObj["number"] = ""
460
       tempObj["expiry_date"] = ""
462
       tempObj["expiry_date"] = ""
461
       tempObj["product_date"] = ""
463
       tempObj["product_date"] = ""
462
       tempObj["license_number"] = ""
464
       tempObj["license_number"] = ""
465
+      tempObj["warehouse_info_id"] = 0
463
       this.recordInfo.recordData.push(tempObj);
466
       this.recordInfo.recordData.push(tempObj);
464
     },
467
     },
465
     handleDelete: function(index, row) {
468
     handleDelete: function(index, row) {
587
            
590
            
588
              this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
591
              this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
589
           }
592
           }
593
+          console.log("批次好",this.numberList)
590
           for(let i=0;i<this.recordInfo.recordData.length;i++){
594
           for(let i=0;i<this.recordInfo.recordData.length;i++){
591
             for(let j=0;j<this.manufacturerList.length;j++){
595
             for(let j=0;j<this.manufacturerList.length;j++){
592
               if(this.recordInfo.recordData[i].manufacturer == this.manufacturerList[j].manufacturer_name){
596
               if(this.recordInfo.recordData[i].manufacturer == this.manufacturerList[j].manufacturer_name){
598
                   this.recordInfo.recordData[i].dealer = this.dealerList[z].id
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
           const params = {
612
           const params = {
603
             stockOut: this.recordInfo.recordData
613
             stockOut: this.recordInfo.recordData
604
           };
614
           };
605
           console.log("2323223223",this.recordInfo.recordData);
615
           console.log("2323223223",this.recordInfo.recordData);
606
-          
616
+     
607
           postWarehouseOut(
617
           postWarehouseOut(
608
             params,
618
             params,
609
             this.warehouse_out_time,
619
             this.warehouse_out_time,
619
                var msg = response.data.data.msg
629
                var msg = response.data.data.msg
620
                var good_name = response.data.data.good_name
630
                var good_name = response.data.data.good_name
621
                var specification_name = response.data.data.specification_name
631
                var specification_name = response.data.data.specification_name
622
-               var str = good_name +"*" + specification_name +"无库存,请入库"
632
+               var str = good_name +"*" + specification_name +"该批次无库存,请入库"
623
                console.log("msg222222222",msg)
633
                console.log("msg222222222",msg)
624
                if(msg == 1){
634
                if(msg == 1){
625
                   this.$message.error(str)
635
                   this.$message.error(str)
711
          }
721
          }
712
 
722
 
713
        
723
        
714
-      }
715
-
716
-       
724
+      }    
717
     },
725
     },
718
 
726
 
719
     getStockBatchNumber(id){
727
     getStockBatchNumber(id){
731
     getDataConfig(module, filed_name) {
739
     getDataConfig(module, filed_name) {
732
       return getDataConfig(module, filed_name)
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
   created() {
752
   created() {
736
     var nowDate = new Date();
753
     var nowDate = new Date();
752
     tempObj["good_unit"] = ""
769
     tempObj["good_unit"] = ""
753
     tempObj["number"] = ""
770
     tempObj["number"] = ""
754
     tempObj["specification_name"] = ""
771
     tempObj["specification_name"] = ""
755
-    tempObj["number"] = ""
756
     tempObj["dealer"] = ""
772
     tempObj["dealer"] = ""
757
     tempObj["license_number"] = ""
773
     tempObj["license_number"] = ""
774
+    tempObj["warehouse_info_id"] = 0
758
     this.recordInfo.recordData.push(tempObj);
775
     this.recordInfo.recordData.push(tempObj);
759
     this.GetConfigInfo();
776
     this.GetConfigInfo();
760
     this.propForm.goodUnit = this.$store.getters.good_unit;
777
     this.propForm.goodUnit = this.$store.getters.good_unit;