Pārlūkot izejas kodu

11月14日 库存扣减更新

XMLWAN 3 gadus atpakaļ
vecāks
revīzija
5071a0f0d3

+ 2 - 2
src/xt_pages/data/components/consumables.vue Parādīt failu

@@ -72,14 +72,14 @@
72 72
           size="small"
73 73
         >下载日志
74 74
         </el-button>
75
-        <!-- <el-button
75
+        <el-button
76 76
           style="margin-left:10px;"
77 77
           @click="exportList()"
78 78
           class="filter-item"
79 79
           type="primary"
80 80
           size="small"
81 81
         >点击导出
82
-        </el-button> -->
82
+        </el-button>
83 83
       </div>
84 84
 
85 85
     <el-table

+ 2 - 2
src/xt_pages/data/components/drugs.vue Parādīt failu

@@ -65,14 +65,14 @@
65 65
           size="small"
66 66
         >下载日志
67 67
         </el-button>
68
-       <!-- <el-button
68
+       <el-button
69 69
           style="margin-left:10px;"
70 70
           @click="exportList()"
71 71
           class="filter-item"
72 72
           type="primary"
73 73
           size="small"
74 74
         >点击导出
75
-        </el-button> -->
75
+        </el-button>
76 76
       </div>
77 77
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
78 78
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}"

+ 2 - 2
src/xt_pages/data/components/project.vue Parādīt failu

@@ -61,14 +61,14 @@
61 61
           size="small"
62 62
         >下载日志
63 63
         </el-button>
64
-        <!-- <el-button
64
+        <el-button
65 65
           style="margin-left:10px;"
66 66
           @click="exportList()"
67 67
           class="filter-item"
68 68
           type="primary"
69 69
           size="small"
70 70
         >点击导出
71
-        </el-button> -->
71
+        </el-button>
72 72
       </div>
73 73
         <el-table :data="tableData" border style="width: 100%" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}"  @selection-change="handleSelectionChange">
74 74
             <el-table-column

+ 1 - 3
src/xt_pages/data/printTemplate/schedulePrint.vue Parādīt failu

@@ -62,7 +62,7 @@
62 62
         style="margin-left: 100px;margin-right: 100px;text-align: center"
63 63
         >
64 64
         <div
65
-            @click="imgClick('https://kuyi.shengws.com/tempSchedule2.jpg')"
65
+          @click="imgClick('https://kuyi.shengws.com/tempSchedule2.jpg')"
66 66
         >
67 67
             <el-tooltip
68 68
             class="item"
@@ -82,8 +82,6 @@
82 82
         </el-col>
83 83
     </el-row>
84 84
    
85
-
86
-
87 85
       <el-image-viewer
88 86
         v-if="showViewer"
89 87
         :on-close="closeViewer"

+ 4 - 3
src/xt_pages/hospitalStation/components/deskPrescription.vue Parādīt failu

@@ -2225,8 +2225,7 @@ export default {
2225 2225
               }
2226 2226
             }
2227 2227
             if (index == 1) {
2228
-              console.log(this.prescriptions)
2229
-
2228
+              
2230 2229
               // for (let i = 0; i < this.prescriptions.length; i++) {
2231 2230
               //   for(let b = 0; b < this.prescriptions[i].advices.length; b++){
2232 2231
               //     if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
@@ -2265,7 +2264,7 @@ export default {
2265 2264
                 department: this.departmentValue,
2266 2265
                 record_date: this.record_date,
2267 2266
                 his_patient_id: this.hisPatientInfo.id,
2268
-                reg_type: this.register_type
2267
+                reg_type: this.register_type,
2269 2268
               }
2270 2269
 
2271 2270
               for (let i = 0; i < this.prescriptions.length; i++) {
@@ -2300,6 +2299,7 @@ export default {
2300 2299
                   this.prescriptions[i].addition[b].count = this.prescriptions[i].addition[b].count.toString()
2301 2300
                 }
2302 2301
               }
2302
+            
2303 2303
               let data = {
2304 2304
                 'prescriptions': this.prescriptions
2305 2305
               }
@@ -2319,6 +2319,7 @@ export default {
2319 2319
               //   }
2320 2320
               // })
2321 2321
               if (num == 0) {
2322
+
2322 2323
                 createHisPrescription(data, params).then(response => {
2323 2324
                   if (response.data.state == 1) {
2324 2325
                     this.$emit('change', this.patientInfo.id)

+ 2 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Parādīt failu

@@ -2261,7 +2261,7 @@
2261 2261
                 department: this.departmentValue,
2262 2262
                 record_date: this.record_date,
2263 2263
                 his_patient_id: this.hisPatientInfo.id,
2264
-                reg_type: this.register_type
2264
+                reg_type: this.register_type,
2265 2265
               }
2266 2266
 
2267 2267
               for (let i = 0; i < this.prescriptions.length; i++) {
@@ -2296,6 +2296,7 @@
2296 2296
                   this.prescriptions[i].addition[b].count = this.prescriptions[i].addition[b].count.toString()
2297 2297
                 }
2298 2298
               }
2299
+            
2299 2300
               let data = {
2300 2301
                 'prescriptions': this.prescriptions
2301 2302
               }

+ 2 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Parādīt failu

@@ -940,7 +940,7 @@
940 940
               department: this.departmentValue,
941 941
               record_date: this.record_date,
942 942
               his_patient_id: this.hisPatientInfo.id,
943
-              reg_type: this.register_type
943
+              reg_type: this.register_type,
944 944
             }
945 945
 
946 946
             for (let i = 0; i < this.prescriptions.length; i++) {
@@ -981,6 +981,7 @@
981 981
                 this.prescriptions[i].addition[b].count = this.prescriptions[i].addition[b].count.toString()
982 982
               }
983 983
             }
984
+            
984 985
             let data = {
985 986
               'prescriptions': this.prescriptions
986 987
             }

+ 2 - 2
src/xt_pages/stock/stockPrint.vue Parādīt failu

@@ -45,7 +45,7 @@
45 45
                                       <span v-if="getWareInfo(item.xt_warehouse_info)>0">{{getWareInfo(item.xt_warehouse_info)}}{{item.packing_unit}}</span>
46 46
                                    </td>
47 47
                                    <td v-if="end_time == ''">
48
-                                      <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779">
48
+                                      <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779 || org_id == 10290">
49 49
                                         <span>
50 50
                                           {{getWareInfo(item.xt_warehouse_info) - getOverFlushInfo(item.xt_warehouse_info) + getCancelSotckInfo(item.cancel_stock_info)}}
51 51
                                         </span>
@@ -58,7 +58,7 @@
58 58
                                    </td>
59 59
                                   
60 60
                                    <td v-if="end_time == ''">
61
-                                     <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779">
61
+                                     <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10290">
62 62
                                         {{getOverFlushInfo(item.xt_warehouse_info)}}
63 63
                                      </span>
64 64
                                      <span v-else>

+ 4 - 4
src/xt_pages/stock/stockQuery.vue Parādīt failu

@@ -108,7 +108,7 @@
108 108
        </el-table-column>
109 109
        <el-table-column label="出库数量" align="center" v-if="showOne">
110 110
          <template slot-scope="scope">
111
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id ==  10088 || org_id == 10191 || org_id == 9919 || org_id == 10265 || org_id == 10164">
111
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id ==  10088 || org_id == 10191 || org_id == 9919 || org_id == 10265 || org_id == 10164 || org_id ==10290 ">
112 112
             <!-- <span>
113 113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
114 114
             </span> -->
@@ -122,7 +122,7 @@
122 122
       
123 123
         <el-table-column label="剩余库存量" align="center" v-if="showThree">
124 124
          <template slot-scope="scope">
125
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10088 || org_id == 10191 || org_id == 9919 || org_id == 10265 || org_id == 10164">
125
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10088 || org_id == 10191 || org_id == 9919 || org_id == 10265 || org_id == 10164 || org_id == 10290">
126 126
             {{getOverFlushInfo(scope.row.xt_warehouse_info)}}
127 127
           </span>
128 128
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
@@ -367,13 +367,13 @@ export default {
367 367
            this.tableList[i].inCount =  this.getWareInfo(this.tableList[i].xt_warehouse_info)
368 368
 
369 369
           if(this.end_time == ""){
370
-            if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 || this.org_id == 10191 || this.org_id == 9919  || this.org_id == 10265 || this.org_id ==10164){
370
+            if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 || this.org_id == 10191 || this.org_id == 9919  || this.org_id == 10265 || this.org_id ==10164 || this.org_id == 10290){
371 371
               this.tableList[i].outCount  = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getOverFlushInfo(this.tableList[i].xt_warehouse_info) + this.getCancelSotckInfo(this.tableList[i].cancel_stock_info) 
372 372
             }else{
373 373
               this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
374 374
             }
375 375
             
376
-            if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 || this.org_id == 10191 || this.org_id == 9919 || this.org_id == 10265 || this.org_id == 10164){
376
+            if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 || this.org_id == 10191 || this.org_id == 9919 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 10290){
377 377
                 this.tableList[i].overplus = this.getOverFlushInfo(this.tableList[i].xt_warehouse_info)
378 378
             }else{
379 379
               this.tableList[i].overplus = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getAutoCount(this.tableList[i].id) - this.getOutCount(this.tableList[i].id) + this.getCancelCount(this.tableList[i].id)

+ 113 - 3
src/xt_pages/workforce/scheduleTablePrintOne.vue Parādīt failu

@@ -153,19 +153,22 @@
153 153
                 <td style="min-width:50px;">
154 154
                     <span v-if="item.Sun_M.patient_id">
155 155
                         <div>{{ item.Sun_M.patient }}</div>
156
-                        <div v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }} FX80</div>
156
+                        <div v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }} </div>
157
+                        <div>{{getDialyzer(item.Sun_M.patient_id,item.Sun_M.mode_name)}}</div>
157 158
                     </span>
158 159
                 </td>
159 160
                 <td style="min-width:50px;">
160 161
                     <span v-if="item.Sun_A.patient_id">
161 162
                         <div>{{ item.Sun_A.patient }}</div>
162
-                        <div v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }} FX80</div>
163
+                        <div v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }} </div>
164
+                        <div>{{getDialyzer(item.Sun_A.patient_id, item.Sun_A.mode_name)}}</div>
163 165
                     </span>
164 166
                 </td>
165 167
                 <td style="min-width:50px;">
166 168
                     <span v-if="item.Sun_N.patient_id">
167 169
                         <div>{{ item.Sun_N.patient }}</div>
168
-                        <div v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }} FX80</div>
170
+                        <div v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }} </div>
171
+                        <div>{{getDialyzer(item.Sun_N.patient_id,item.Sun_N.mode_name)}}</div>
169 172
                     </span>
170 173
                 </td>
171 174
                 <td>{{item.total}}</td>
@@ -851,9 +854,116 @@ export default {
851 854
              if(response.data.state ==1){
852 855
                var solution = response.data.data.solution
853 856
                console.log("solution",solution)
857
+               for(let i=0;i<solution.length;i++){
858
+                 if(solution[i].mode_id == 1){
859
+                    solution[i].mode_name = "HD"
860
+                 }
861
+                 if(solution[i].mode_id == 2){
862
+                    solution[i].mode_name = "HDF"
863
+                 }
864
+                 if(solution[i].mode_id == 3){
865
+                    solution[i].mode_name = "HD+HP"
866
+                 }
867
+                 if(solution[i].mode_id == 4){
868
+                    solution[i].mode_name = "HP"
869
+                 }
870
+                 if(solution[i].mode_id == 5){
871
+                    solution[i].mode_name = "HF"
872
+                 }
873
+                 if(solution[i].mode_id == 6){
874
+                    solution[i].mode_name = "SCUF"
875
+                 }
876
+                 if(solution[i].mode_id == 7){
877
+                    solution[i].mode_name = "IUF"
878
+                 }
879
+                 if(solution[i].mode_id == 8){
880
+                    solution[i].mode_name = "HFHD"
881
+                 }
882
+                 if(solution[i].mode_id == 9){
883
+                    solution[i].mode_name = "HFHD+HP"
884
+                 }
885
+                 if(solution[i].mode_id == 10){
886
+                    solution[i].mode_name = "PHF"
887
+                 }
888
+                 if(solution[i].mode_id == 11){
889
+                    solution[i].mode_name = "HFR"
890
+                 }
891
+                 if(solution[i].mode_id == 12){
892
+                    solution[i].mode_name = "HDF+HP"
893
+                 }
894
+                 if(solution[i].mode_id == 13){
895
+                    solution[i].mode_name = "CRRT"
896
+                 }
897
+                 if(solution[i].mode_id == 14){
898
+                    solution[i].mode_name = "腹水回输"
899
+                 }
900
+                 if(solution[i].mode_id == 19){
901
+                    solution[i].mode_name = "IUF+HD"
902
+                 }
903
+                 if(solution[i].mode_id == 20){
904
+                    solution[i].mode_name = "UF"
905
+                 }
906
+                 if(solution[i].mode_id == 21){
907
+                    solution[i].mode_name = "HD+"
908
+                 }
909
+                 if(solution[i].mode_id == 18){
910
+                    solution[i].mode_name = "SCUF"
911
+                 }
912
+                 if(solution[i].mode_id == 19){
913
+                    solution[i].mode_name = "SCUF"
914
+                 }
915
+                 if(solution[i].mode_id == 20){
916
+                    solution[i].mode_name = "SCUF"
917
+                 }
918
+                 if(solution[i].mode_id == 21){
919
+                    solution[i].mode_name = "HD+"
920
+                 }
921
+                 if(solution[i].mode_id == 22){
922
+                    solution[i].mode_name = "血浆胆红素吸附+HDF"
923
+                 }
924
+                 if(solution[i].mode_id == 23){
925
+                    solution[i].mode_name = "血浆胆红素吸附"
926
+                 }
927
+                 if(solution[i].mode_id == 24){
928
+                    solution[i].mode_name = "I-HDF"
929
+                 }
930
+                 if(solution[i].mode_id == 25){
931
+                    solution[i].mode_name = "HD高通"
932
+                 }
933
+                 if(solution[i].mode_id == 26){
934
+                    solution[i].mode_name = "CVVH"
935
+                 }
936
+                 if(solution[i].mode_id == 27){
937
+                    solution[i].mode_name = "CVVH"
938
+                 }
939
+                 if(solution[i].mode_id == 28){
940
+                    solution[i].mode_name = "CVVHDF"
941
+                 }
942
+                 if(solution[i].mode_id == 29){
943
+                    solution[i].mode_name = "PE"
944
+                 }
945
+               }
854 946
                this.solutionList = solution
855 947
              }  
856 948
           })  
949
+        },
950
+        getDialyzer(patient_id,mode){
951
+          var diazers = ""
952
+          for(let i=0;i<this.solutionList.length;i++){
953
+            if(patient_id == this.solutionList[i].patient_id && mode == this.solutionList[i].mode_name){
954
+               if(this.solutionList[i].dialyzer_perfusion_apparatus!=""){
955
+                 diazers = this.solutionList[i].dialyzer_perfusion_apparatus
956
+               }else{
957
+                 diazers = this.solutionList[i].dialysis_dialyszers
958
+                 if(this.solutionList[i].dialysis_dialyszers == ""){
959
+                    diazers = this.solutionList[i].dialysis_irrigation
960
+                 }
961
+               
962
+               }
963
+               
964
+            }
965
+          }
966
+          return diazers
857 967
         }
858 968
     }
859 969
 }