Explorar el Código

518合并代码

XMLWAN hace 2 años
padre
commit
9c32d003fd

+ 5 - 3
src/xt_pages/data/components/addDrugs.vue Ver fichero

@@ -606,6 +606,8 @@
606 606
           total:"",
607 607
           specification_name:"",
608 608
           is_user:"2",
609
+          sum_count:"",
610
+          sum_in_count:"",
609 611
         },
610 612
 
611 613
         rules: {
@@ -721,6 +723,7 @@
721 723
         this.form.intro = ''
722 724
       },
723 725
       show(id, obj) {
726
+        console.log("obj3223323232332",obj)
724 727
         this.unitList = []
725 728
         this.packingUnit = []
726 729
         var arr =  getDataConfig('hemodialysis','units')
@@ -889,9 +892,6 @@
889 892
         form['drug_dose_unit'] = this.form.drug_dose_unit
890 893
         form['medical_insurance_number'] = this.form.medical_insurance_number
891 894
         form['provinces_code'] = this.form.provinces_code
892
-
893
-
894
-
895 895
         form['manufacturer'] = this.form.manufacturer
896 896
         form['pharmacology_category'] = this.form.pharmacology_category
897 897
         form['statistics_category'] = this.form.statistics_category
@@ -930,6 +930,8 @@
930 930
         form['prescribing_number_unit'] = this.form.prescribing_number_unit
931 931
         form['specification_name'] = this.form.specification_name
932 932
         form['is_user'] = this.form.is_user
933
+        form['sum_count'] = this.form.sum_count
934
+        form['sum_in_count'] = this.form.sum_in_count
933 935
         return form
934 936
       },
935 937
       getlist() {

+ 3 - 2
src/xt_pages/data/components/drugs.vue Ver fichero

@@ -529,7 +529,8 @@
529 529
           val['id'] = this.current_id;
530 530
 
531 531
           val.min_number =  parseInt(val.min_number)
532
-
532
+          console.log("Val323323232",val)
533
+          
533 534
           editBaseDrugLib(val,untit).then(response => {
534 535
             if (response.data.state == 0) {
535 536
               this.$message.error(response.data.msg);
@@ -720,7 +721,7 @@
720 721
               if(this.formValue.drug_classify == 0){
721 722
                  this.formValue.drug_classify = ""
722 723
               }
723
-
724
+             
724 725
 
725 726
 
726 727
               this.$refs.addDrugs.show(id, this.formValue)

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue Ver fichero

@@ -707,7 +707,7 @@
707 707
                                 <td width="80">钠浓度(ml/h)/<br />温度(°C)</td>
708 708
                                 <td width="50">脉搏<br />(次/分)</td>
709 709
                                 <td width="60">血压<br />(mmHg)</td>
710
-                                <td width="50">血容量</td>
710
+                                <td width="50">血容量<br />(L)</td>
711 711
                                 <td width="50">签名</td>
712 712
                                 <td width="200">病情变化及处理</td>
713 713
                                 </tr>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Ver fichero

@@ -28,7 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
32 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33 33
             </el-form-item>
34 34
             <el-form-item label="实际超滤量(L): " v-else>

+ 7 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Ver fichero

@@ -791,8 +791,12 @@
791 791
         this.lastPredialysisEvaluation = last_predialysis_evaluation
792 792
        
793 793
        
794
-        console.log("获取上次数据",this.lastPredialysisEvaluation)
794
+        console.log("获取上次数据",this.lastPredialysisEvaluation, this.$store.getters.xt_user.org.id )
795 795
         if(this.lastPredialysisEvaluation != null) {
796
+        // if(this.lastPredialysisEvaluation.remark == "" && this.$store.getters.xt_user.org.id == 10307){
797
+        //     console.log("2o2o3232o23o2o3o23")
798
+        //     this.assessmentBeforeDislysis.remark = "患者已确认无发热,无流行病学接触史"
799
+        // } 
796 800
          if(this.lastPredialysisEvaluation.thromubus_type == 1){
797 801
           this.assessmentBeforeDislysis.thromubus_type = this.lastPredialysisEvaluation.thromubus_type.toString()
798 802
            this.thrombuShow = true
@@ -822,6 +826,7 @@
822 826
           if(this.lastPredialysisEvaluation.period == 2){
823 827
              this.lastPredialysisEvaluation.period = "2"
824 828
           }
829
+         
825 830
         }
826 831
 
827 832
 
@@ -1298,6 +1303,7 @@
1298 1303
       }
1299 1304
     },
1300 1305
     created() {
1306
+  
1301 1307
       this.last_dialysis_after = getDataConfig('hemodialysis', 'last_dialysis_after')
1302 1308
       this.dialysis_interphase = getDataConfig('hemodialysis', 'dialysis_duration')
1303 1309
       this.symptom_before_dialysis = getDataConfig('hemodialysis', 'dialysis_before')

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue Ver fichero

@@ -641,7 +641,7 @@
641 641
                         <td width="80">钠浓度(ml/h)/<br />温度(°C)</td>
642 642
                         <td width="50">脉搏<br />(次/分)</td>
643 643
                         <td width="60">血压<br />(mmHg)</td>
644
-                        <td width="50">血容量</td>
644
+                        <td width="50">血容量<br />L</td>
645 645
                         <td width="50">签名</td>
646 646
                         <td width="200">病情变化及处理</td>
647 647
                       </tr>

+ 18 - 8
src/xt_pages/qcd/officesControlAnalysis/time.vue Ver fichero

@@ -177,7 +177,8 @@ export default {
177 177
         { value: 0, label: '全部', source: 0, lapseto: 0 },
178 178
         { value: 1, label: '转出', source: 0, lapseto: 2 },
179 179
         { value: 2, label: '留治', source: 0, lapseto: 1 }
180
-      ],originType:0,
180
+      ],
181
+      originType:0,
181 182
       originState: [
182 183
         { value: 0, label: '全部', source: 0},
183 184
         { value: 2, label: '住院', source: 2},
@@ -693,10 +694,10 @@ export default {
693 694
           var countwo = response.data.data.countwo
694 695
 
695 696
           var systolicTotal = response.data.data.systolicTotal
696
-          console.log('systolictotal', systolicTotal)
697
+          
697 698
           var sysstandTotal = 0
698 699
           var systolic = response.data.data.systolic
699
-          console.log('systolic', systolic)
700
+
700 701
           var sysarr = []
701 702
           for (let i = 0; i < systolic.length; i++) {
702 703
             if (systolic[i].systolic_blood_pressure >= this.sysmin && systolic[i].systolic_blood_pressure <= this.syslarge) {
@@ -704,20 +705,20 @@ export default {
704 705
             }
705 706
           }
706 707
           sysstandTotal = sysarr.length
707
-          console.log('sysarr', sysarr)
708
+       
708 709
 
709 710
           var diastotal = response.data.data.diastotal
710 711
           var diasstandtotal = 0
711 712
 
712 713
           var diastolic = response.data.data.diastolic
713
-          // console.log("diastolic",diastolic)
714
+          
714 715
           var diaArr = []
715 716
           for (let i = 0; i < diastolic.length; i++) {
716 717
             if (diastolic[i].diastolic_blood_pressure >= this.diamin && diastolic[i].diastolic_blood_pressure <= this.dialarge) {
717 718
               diaArr.push(diastolic[i])
718 719
             }
719 720
           }
720
-          // console.log("diaArr",diaArr)
721
+         
721 722
           diasstandtotal = diaArr.length
722 723
           var normData = response.data.data.normData
723 724
 
@@ -761,9 +762,10 @@ export default {
761 762
               }
762 763
             }
763 764
           }
764
-
765
+          console.log("count23322322332",count)
766
+          console.log("normdate23233323",normData)
765 767
           var arrtwo = this.arrayDate(count, normData)
766
-
768
+          console.log("23323332323232323223",arrtwo)
767 769
           for (let i = 0; i < arrtwo.length; i++) {
768 770
             this.$set(arrtwo[i], 'Count', 0)
769 771
           }
@@ -778,6 +780,8 @@ export default {
778 780
             arr.push(item)
779 781
           })
780 782
           arr.sort(this.compare('sort'))
783
+           console.log("wwowwoowwowo",this.normData)
784
+           console.log("arr23323323332",arr)
781 785
 
782 786
           for (const key in this.normData) {
783 787
             this.modesData.xAxis.push(this.normData[key].item_name)
@@ -787,6 +791,7 @@ export default {
787 791
               this.modesData.series.push(0)
788 792
             }
789 793
           }
794
+          
790 795
           this.chart.series[0].data = this.modesData.series
791 796
           this.chart.xAxis.data = this.modesData.xAxis
792 797
           this.getArrLength(this.chart.xAxis.data)
@@ -810,15 +815,20 @@ export default {
810 815
         var obj = array2[i]
811 816
         var num = obj.inspection_minor   //staff_id   就是要对比的key
812 817
         var isExist = false
818
+
813 819
         for (var j = 0; j < array1.length; j++) {
814 820
           var aj = array1[j]
821
+          
815 822
           var n = aj.item_id
823
+         
816 824
           if (n == num) {
817 825
             isExist = true
818 826
             break
819 827
           }
820 828
         }
829
+       
821 830
         if (!isExist) {
831
+          
822 832
           result.push(obj)
823 833
         }
824 834
       }

+ 1 - 1
src/xt_pages/stock/drugs/inventoryDetails.vue Ver fichero

@@ -27,7 +27,7 @@
27 27
                 >
28 28
             </div>
29 29
             <div>
30
-               <el-button size="small" type="primary" @click="print_1">打印</el-button>
30
+               <!-- <el-button size="small" type="primary" @click="print_1">打印</el-button> -->
31 31
                <el-button size="small" type="primary" @click="print">盘点模版打印</el-button>
32 32
             </div>
33 33
             <!-- <div>

+ 68 - 5
src/xt_pages/stock/drugs/print.vue Ver fichero

@@ -37,7 +37,7 @@
37 37
                         <td>{{item.warehousing_unit}}</td>
38 38
                         <td>{{getNumber(item.id)}}</td>
39 39
                         <td>{{item.manufacturer}}</td>
40
-                        <td>{{item.storehouse_id}}</td>
40
+                        <td>{{getHouseName(item.storehouse_id)}}</td>
41 41
                         <td> 
42 42
                             <span v-if="item.stock_max_number>0">{{item.stock_max_number}}{{item.warehousing_unit}} </span>  
43 43
                             <span v-if="item.stock_min_number>0">{{item.stock_min_number}}{{item.min_unit}}</span>
@@ -52,7 +52,9 @@
52 52
                           <span v-if="item.inventory_type == 11">盘亏</span>  
53 53
                         </td>
54 54
                         <td>{{getPrice(item.id)}}</td>
55
-                        <td>{{getTotalPrice(item.last_stock_max_number,item.last_stock_min_number,item.min_number,item.id,item.stock_max_number,item.stock_min_number)}}</td>
55
+                        <td v-if="item.inventory_type == 11">{{getTotalPrice(item.stock_max_number,item.stock_min_number,item.min_number,item.id,item.warehousing_unit,item.min_unit) - getReduceTotalPrice(item.last_stock_max_number,item.last_stock_min_number,item.min_number,item.id,item.warehousing_unit,item.min_unit)}}</td>
56
+                        <td v-if="item.inventory_type == 10">{{getTotalPrice(item.last_stock_max_number,item.last_stock_min_number,item.min_number,item.id,item.warehousing_unit,item.min_unit) - getReduceTotalPrice(item.stock_max_number,item.stock_min_number,item.min_number,item.id,item.warehousing_unit,item.min_unit)}}</td>
57
+                        <td v-if="item.inventory_type != 10 && item.inventory_type!=11">0</td>
56 58
                     </tr>
57 59
                     </tbody>
58 60
                 </table>
@@ -144,16 +146,64 @@ export default {
144 146
           }
145 147
           return number
146 148
          },
147
-         getTotalPrice(last_stock_max_number,last_stock_min_number,min_number,id,stock_max_number,stock_min_number){
149
+         getTotalPrice(last_stock_max_number,last_stock_min_number,min_number,id,last_max_unit,last_min_unit){
148 150
            var retail_price = 0
149 151
            var totail_price =0
152
+           var max_unit = ""
153
+           var min_unit = ""
154
+           var max_number = 0
150 155
            for(let i=0;i<this.inventoryList.length;i++){
151 156
             if(id == this.inventoryList[i].id){
152 157
               retail_price = this.inventoryList[i].drug_warehouse_info.retail_price
158
+              max_unit = this.inventoryList[i].drug.max_unit
159
+              min_unit = this.inventoryList[i].drug.min_unit
153 160
             }
154 161
           }
155
-          var totail_price = (stock_max_number*min_number +stock_min_number - last_stock_max_number * min_number + last_stock_min_number) * retail_price
156
-        //  var totail_price = last_stock_max_number * min_number * retail_price + last_stock_min_number * retail_price 
162
+          console.log("max_unit",max_unit)
163
+          console.log("min_unit",min_unit)
164
+          if(last_max_unit == max_unit){
165
+            if(last_stock_max_number%min_number == 0){
166
+              totail_price = (last_stock_max_number/min_number) * retail_price + last_stock_min_number * retail_price
167
+            }
168
+            if(last_stock_max_number%min_number != 0){
169
+                totail_price = (last_stock_max_number/min_number)* retail_price + (last_stock_min_number%min_number) * retail_price + last_stock_min_number * retail_price
170
+            }
171
+          }
172
+          if(last_min_unit == min_unit){
173
+            totail_price = last_stock_max_number * retail_price + last_stock_min_number * retail_price
174
+          }
175
+          if(totail_price > 0){
176
+             return totail_price.toFixed(4)
177
+          }else{
178
+            return ""
179
+          }
180
+         },
181
+         getReduceTotalPrice(last_stock_max_number,last_stock_min_number,min_number,id,last_max_unit,last_min_unit){
182
+           var retail_price = 0
183
+           var totail_price =0
184
+           var max_unit = ""
185
+           var min_unit = ""
186
+           var max_number = 0
187
+           for(let i=0;i<this.inventoryList.length;i++){
188
+            if(id == this.inventoryList[i].id){
189
+              retail_price = this.inventoryList[i].drug_warehouse_info.retail_price
190
+              max_unit = this.inventoryList[i].drug.max_unit
191
+              min_unit = this.inventoryList[i].drug.min_unit
192
+            }
193
+          }
194
+          console.log("max_unit",max_unit)
195
+          console.log("min_unit",min_unit)
196
+          if(last_max_unit == max_unit){
197
+            if(last_stock_max_number%min_number == 0){
198
+              totail_price = (last_stock_max_number/min_number) * retail_price + last_stock_min_number * retail_price
199
+            }
200
+            if(last_stock_max_number%min_number != 0){
201
+                totail_price = (last_stock_max_number/min_number)* retail_price + (last_stock_min_number%min_number) * retail_price + last_stock_min_number * retail_price
202
+            }
203
+          }
204
+          if(last_min_unit == min_unit){
205
+            totail_price = last_stock_max_number * retail_price + last_stock_min_number * retail_price
206
+          }
157 207
           if(totail_price > 0){
158 208
              return totail_price.toFixed(4)
159 209
           }else{
@@ -171,7 +221,20 @@ export default {
171 221
           return retail_price
172 222
           }
173 223
           
224
+         },
225
+         getHouseName(id){
226
+         var storehouse_name = ""
227
+         for(let i=0;i<this.houseList.length;i++){
228
+           if(id == this.houseList[i].id){
229
+              storehouse_name = this.houseList[i].storehouse_name
230
+           }
231
+         }
232
+         if(storehouse_name == "全部"){
233
+           return ""
234
+         }else{
235
+           return storehouse_name
174 236
          }
237
+       }
175 238
     },
176 239
     created(){
177 240
 

+ 16 - 8
src/xt_pages/stock/print_all.vue Ver fichero

@@ -31,7 +31,7 @@
31 31
                         <td width="60">总额</td>
32 32
                         
33 33
                     </tr>
34
-                    <tr v-for="(item,index) in tableData" :key="index">
34
+                    <tr v-for="(item,index) in tableList" :key="index">
35 35
                         <td>{{item.good_name}}</td>
36 36
                         <td>{{item.specification_name}}</td>
37 37
                         <td>{{item.packing_unit}}</td>
@@ -40,14 +40,21 @@
40 40
                         <td>{{getHouseName(item.storehouse_id)}}</td>
41 41
                         <td>{{item.stock_count}}</td>
42 42
                         <td>{{item.last_stock_count}}</td>
43
-                        <td>  
43
+                        <td>
44 44
                           <span v-if="item.stock_count > item.last_stock_count">盘亏</span>
45
-                          <span v-if="item.stock_count < item.last_stock_count">盘盈</span>
45
+                           <span v-if="item.stock_count < item.last_stock_count">盘盈</span></td>
46
+                        <td></td>
47
+                         <td></td>
48
+                        <!-- <td>  
49
+                          <span v-if="parseInt(item.stock_count) > parseInt(item.last_stock_count)">盘亏</span>
50
+                          <span v-if="parseInt(item.stock_count) < parseInt(item.last_stock_count)">盘盈</span>
46 51
                         </td>
47 52
                         <td>{{item.buy_price}}</td>
48 53
                         <td>
49 54
                           <span v-if="item.stock_count > item.last_stock_count">{{((item.stock_count - item.last_stock_count)  * item.buy_price).toFixed(2)}}</span> 
50
-                        </td>
55
+                          <span v-if="item.stock_count < item.last_stock_count">{{((item.last_stock_count - item.stock_count)  * item.buy_price).toFixed(2)}}</span> 
56
+                          <span v-if="item.stock_count = item.last_stock_count">0</span> 
57
+                        </td> -->
51 58
                     </tr>
52 59
                     </tbody>
53 60
                 </table>
@@ -75,7 +82,7 @@ export default {
75 82
           ],
76 83
           org_name: this.$store.getters.xt_user.org.org_name,
77 84
           ids:"",
78
-          tableData:[],
85
+          tableList:[],
79 86
           manufacturerList:[],
80 87
           houseList:[],
81 88
         }
@@ -110,9 +117,10 @@ export default {
110 117
           }
111 118
          getPrintList(params).then(response=>{
112 119
            if(response.data.state == 1){
113
-             var list =  response.data.data.list
114
-             console.log("list233233232323",list)
115
-             this.tableData = list
120
+             var list = response.data.data.list
121
+             console.log("list232332232323",response.data.data.list)
122
+             this.tableList = list
123
+             console.log("list233233232323",this.tableList)
116 124
              this.houseList = response.data.data.houseList
117 125
            }
118 126
          })