Browse Source

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

陈少旭 6 months ago
parent
commit
e184b3e001

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

@@ -46,7 +46,7 @@
46 46
              衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:"" }} kg
47 47
             </span>
48 48
 
49
-            <span style="position: absolute;left: 80%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id ==10702">
49
+            <span style="position: absolute;left: 80%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id ==10702 || this.$store.getters.xt_user.template_info.org_id ==10598">
50 50
               体重增长:
51 51
               <span v-if="predialysis!=null && last_record!=null">
52 52
                 {{predialysis&&last_record&&((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2)?((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2):"" }} kg

+ 12 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -1444,6 +1444,7 @@
1444 1444
                       <span v-if="org_id!=9538&& prescription.anticoagulant == 2">mg</span>
1445 1445
                       <span v-if="org_id==9538&& prescription.anticoagulant == 2">u</span>
1446 1446
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1447
+                      <span v-if="prescription.anticoagulant == 14">mg</span>
1447 1448
                     </span>
1448 1449
 
1449 1450
                     <span v-if="org_id==9675 || org_id==10447 || org_id==9829 || org_id==10440 || org_id==10469 || org_id == 10471 || org_id == 10460">
@@ -1458,6 +1459,7 @@
1458 1459
                      <span v-if="prescription.anticoagulant == 10">iu</span>
1459 1460
                      <span v-if="prescription.anticoagulant == 11">iu</span>
1460 1461
                      <span v-if="prescription.anticoagulant == 13">iu</span>
1462
+                     <span v-if="prescription.anticoagulant == 14">mg</span>
1461 1463
 
1462 1464
                     </span>
1463 1465
                     </div>
@@ -1499,6 +1501,7 @@
1499 1501
                         <span v-if="org_id!=9538&& prescription.anticoagulant == 2">mg/h</span>
1500 1502
                         <span v-if="org_id==9538&& prescription.anticoagulant == 2">u</span>
1501 1503
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1504
+                          <span v-if="prescription.anticoagulant == 14">mg/h</span>
1502 1505
                       </span>
1503 1506
                       <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">
1504 1507
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
@@ -1512,6 +1515,7 @@
1512 1515
                           <span v-if="prescription.anticoagulant == 10">iu/h</span>
1513 1516
                           <span v-if="prescription.anticoagulant == 11">iu/h</span>
1514 1517
                           <span v-if="prescription.anticoagulant == 13">iu/h</span>
1518
+                          <span v-if="prescription.anticoagulant == 14">mg/h</span>
1515 1519
                       </span>
1516 1520
                     </div>
1517 1521
                     <div
@@ -1580,6 +1584,7 @@
1580 1584
                       <span v-if="org_id!=9538&& prescription.anticoagulant == 2">mg</span>
1581 1585
                       <span v-if="org_id==9538&& prescription.anticoagulant == 2">u</span>
1582 1586
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1587
+                      <span v-if="prescription.anticoagulant == 14">mg</span>
1583 1588
                      </span>
1584 1589
                     <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471|| org_id == 10460">
1585 1590
                        <span v-if="prescription.anticoagulant == 2">mg</span>
@@ -1593,6 +1598,7 @@
1593 1598
                        <span v-if="prescription.anticoagulant == 10">iu</span>
1594 1599
                       <span v-if="prescription.anticoagulant == 11">iu</span>
1595 1600
                       <span v-if="prescription.anticoagulant == 13">iu</span>
1601
+                      <span v-if="prescription.anticoagulant == 14">mg/h</span>
1596 1602
                     </span>
1597 1603
                     </div>
1598 1604
                     <div class="inline_block" style="margin-left: 20px" v-if="org_id!=9675 && org_id!=10447">
@@ -1809,7 +1815,7 @@
1809 1815
                         <td width="60" v-if="org_id == 9671">血温(°C)</td>
1810 1816
                         <td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671 && org_id!=10644">透析液温度(°C)</td>
1811 1817
                         <td width="50" v-if="org_id != 10121 &&  org_id!=10600 && org_id!=10644">
1812
-                          <span v-if="org_id != 0 && org_id !=10469 && org_id!=10490 "> 电导度<br />(ms/cm)</span>
1818
+                          <span v-if="org_id !=10469 && org_id!=10490 "> 电导度<br />(ms/cm)</span>
1813 1819
                           <span v-if="org_id ==10469"> 钠浓度<br />(mmol/L)</span>
1814 1820
                           <span v-if="org_id == 10490"> 置换液的速度<br />(ml/h)</span>
1815 1821
                         </td>
@@ -5375,8 +5381,11 @@ export default {
5375 5381
         }
5376 5382
 
5377 5383
         this.jilurow = this.monitors.length + 1;
5378
-
5379
-        this.advice_jilurow = this.advices.length + 1;
5384
+        
5385
+        if(this.advices!=null && this.advices.length>0){
5386
+          this.advice_jilurow = this.advices.length + 1;
5387
+        }
5388
+       
5380 5389
 
5381 5390
         var childMap = {};
5382 5391
         for (const index in this.advices) {

+ 126 - 56
src/xt_pages/stock/drugs/components/drugQuery.vue View File

@@ -1270,66 +1270,136 @@ export default {
1270 1270
        this.$router.push("/drugs/query/print?start_time="+this.start_time+"&end_time="+this.end_time+"&keyword="+this.keyword+"&storehouse_id="+this.storehouse_id+"&page="+this.page+"&limit="+this.limit+"&good_type="+this.good_type)
1271 1271
     },
1272 1272
     exportStock() {
1273
-      console.log("tablelist23322332",this.tableList)
1274
-   
1275
-      if(this.tableList!=null && this.tableList.length > 0){
1276
-        for(let i=0;i<this.tableList.length;i++){
1277
-          this.tableList[i].index = i +1
1278
-          this.tableList[i].drug_type_name =  this.getDrugTypeName(this.tableList[i].drug_type)
1279
-          this.tableList[i].specification_name =  this.tableList[i].dose + this.tableList[i].dose_unit + "*" +this.tableList[i].min_number + this.tableList[i].min_unit +"/"+this.tableList[i].max_unit
1280
-          this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
1281
-          this.tableList[i].dealer_name = this.getDearName(this.tableList[i].dealer)
1282
-          this.tableList[i].stock_in_count = this.getStockIn(this.tableList[i].drug_stock_count, this.tableList[i].max_unit, this.tableList[i].min_unit,this.tableList[i].min_number);
1283
-          this.tableList[i].stock_out_count =  this.getActCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1284
-          this.tableList[i].cancle_out_count = this.getCancleOut(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1285
-          this.tableList[i].act_cout =  this.getStockOut(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number,this.tableList[i].drug_cancel_stock_info)
1286
-          this.tableList[i].over_count = this.getOverCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1287
-          this.tableList[i].sum_count = this.getOverCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1288
-        }
1273
+      console.log("中共人家哈哈哈哈哈哈",this.tableList)
1274
+
1275
+      if(this.org_id!=0&&this.org_id!=10697){
1276
+        if(this.tableList!=null && this.tableList.length > 0){
1277
+          for(let i=0;i<this.tableList.length;i++){
1278
+            this.tableList[i].index = i +1
1279
+            this.tableList[i].drug_type_name =  this.getDrugTypeName(this.tableList[i].drug_type)
1280
+            this.tableList[i].specification_name =  this.tableList[i].dose + this.tableList[i].dose_unit + "*" +this.tableList[i].min_number + this.tableList[i].min_unit +"/"+this.tableList[i].max_unit
1281
+            this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
1282
+            this.tableList[i].dealer_name = this.getDearName(this.tableList[i].dealer)
1283
+            this.tableList[i].stock_in_count = this.getStockIn(this.tableList[i].drug_stock_count, this.tableList[i].max_unit, this.tableList[i].min_unit,this.tableList[i].min_number);
1284
+            this.tableList[i].stock_out_count =  this.getActCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1285
+            this.tableList[i].cancle_out_count = this.getCancleOut(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1286
+            this.tableList[i].act_cout =  this.getStockOut(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number,this.tableList[i].drug_cancel_stock_info)
1287
+            this.tableList[i].over_count = this.getOverCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1288
+            this.tableList[i].sum_count = this.getOverCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1289
+          }
1290
+       }
1291
+ 
1292
+        import("@/vendor/Export2Excel").then((excel) => {
1293
+          const tHeader = [
1294
+            "序号",
1295
+            "药品类型",
1296
+            "药品名称",
1297
+            "规格&单位",
1298
+            "生产厂商",
1299
+            "经销商",
1300
+            "批准文号",
1301
+            "国家编码",
1302
+            "入库数量",
1303
+            "出库数量",
1304
+            "退库数量",
1305
+            "实际出库",
1306
+            "剩余库存",
1307
+            "总库存",
1308
+          ];
1309
+          const filterVal = [
1310
+            "index",
1311
+            "drug_type_name",
1312
+            "drug_name",
1313
+            "specification_name",
1314
+            "manufacturer_name",
1315
+            "dealer_name",
1316
+            "number",
1317
+            "medical_insurance_number",
1318
+            "stock_in_count",
1319
+            "stock_out_count",
1320
+            "cancle_out_count",
1321
+            "act_cout",
1322
+            "over_count",
1323
+            "sum_count",
1324
+          ];
1325
+
1326
+          const data = this.formatJson(filterVal, this.tableList);
1327
+          excel.export_json_to_excel({
1328
+            header: tHeader,
1329
+            data,
1330
+            filename: "药品查询",
1331
+          });
1332
+          this.downloadLoading = false;
1333
+        });
1289 1334
       }
1335
+
1336
+      if(this.org_id == 0 || this.org_id == 10697){
1337
+
1338
+        if(this.tableList!=null && this.tableList.length > 0){
1339
+          for(let i=0;i<this.tableList.length;i++){
1340
+            this.tableList[i].index = i +1
1341
+            this.tableList[i].medical_code = this.getMedicalInsuranceLeve(this.tableList[i].medical_insurance_level)
1342
+            this.tableList[i].drug_type_name =  this.getDrugTypeName(this.tableList[i].drug_type)
1343
+            this.tableList[i].specification_name =  this.tableList[i].dose + this.tableList[i].dose_unit + "*" +this.tableList[i].min_number + this.tableList[i].min_unit +"/"+this.tableList[i].max_unit
1344
+            this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
1345
+            this.tableList[i].dealer_name = this.getDearName(this.tableList[i].dealer)
1346
+            this.tableList[i].stock_in_count = this.getStockIn(this.tableList[i].drug_stock_count, this.tableList[i].max_unit, this.tableList[i].min_unit,this.tableList[i].min_number);
1347
+            this.tableList[i].stock_out_count =  this.getActCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1348
+            this.tableList[i].cancle_out_count = this.getCancleOut(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1349
+            this.tableList[i].act_cout =  this.getStockOut(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number,this.tableList[i].drug_cancel_stock_info)
1350
+            this.tableList[i].over_count = this.getOverCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1351
+            this.tableList[i].sum_count = this.getOverCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1352
+          }
1353
+       }
1290 1354
  
1291
-      import("@/vendor/Export2Excel").then((excel) => {
1292
-        const tHeader = [
1293
-          "序号",
1294
-          "药品类型",
1295
-          "药品名称",
1296
-          "规格&单位",
1297
-          "生产厂商",
1298
-          "经销商",
1299
-          "批准文号",
1300
-          "国家编码",
1301
-          "入库数量",
1302
-          "出库数量",
1303
-          "退库数量",
1304
-          "实际出库",
1305
-          "剩余库存",
1306
-          "总库存",
1307
-        ];
1308
-        const filterVal = [
1309
-          "index",
1310
-          "drug_type_name",
1311
-          "drug_name",
1312
-          "specification_name",
1313
-          "manufacturer_name",
1314
-          "dealer_name",
1315
-          "number",
1316
-          "medical_insurance_number",
1317
-          "stock_in_count",
1318
-          "stock_out_count",
1319
-          "cancle_out_count",
1320
-          "act_cout",
1321
-          "over_count",
1322
-          "sum_count",
1323
-        ];
1355
+        import("@/vendor/Export2Excel").then((excel) => {
1356
+          const tHeader = [
1357
+            "序号",
1358
+            '医保等级',
1359
+            "药品类型",
1360
+            "药品名称",
1361
+            "规格&单位",
1362
+            "零售价",
1363
+            "生产厂商",
1364
+            "经销商",
1365
+            "批准文号",
1366
+            "国家编码",
1367
+            "入库数量",
1368
+            "出库数量",
1369
+            "退库数量",
1370
+            "实际出库",
1371
+            "剩余库存",
1372
+            "总库存",
1373
+          ];
1374
+          const filterVal = [
1375
+            "index",
1376
+            "medical_code",
1377
+            "drug_type_name",
1378
+            "drug_name",
1379
+            "specification_name",
1380
+            "retail_price",
1381
+            "manufacturer_name",
1382
+            "dealer_name",
1383
+            "number",
1384
+            "medical_insurance_number",
1385
+            "stock_in_count",
1386
+            "stock_out_count",
1387
+            "cancle_out_count",
1388
+            "act_cout",
1389
+            "over_count",
1390
+            "sum_count",
1391
+          ];
1324 1392
 
1325
-        const data = this.formatJson(filterVal, this.tableList);
1326
-        excel.export_json_to_excel({
1327
-          header: tHeader,
1328
-          data,
1329
-          filename: "药品查询",
1393
+          const data = this.formatJson(filterVal, this.tableList);
1394
+          excel.export_json_to_excel({
1395
+            header: tHeader,
1396
+            data,
1397
+            filename: "药品查询",
1398
+          });
1399
+          this.downloadLoading = false;
1330 1400
         });
1331
-        this.downloadLoading = false;
1332
-      });
1401
+      }
1402
+     
1333 1403
     },
1334 1404
     formatJson(filterVal, jsonData) {
1335 1405
       return jsonData.map((v) => filterVal.map((j) => v[j]));

+ 37 - 2
src/xt_pages/stock/query/goodNewQuery.vue View File

@@ -879,7 +879,7 @@ export default {
879 879
    exportList(){
880 880
       import('@/vendor/Export2Excel').then(excel => {
881 881
       
882
-        if(this.org_id!=0 && this.org_id!=9956){
882
+        if(this.org_id!=0 && this.org_id!=9956 && this.org_id!=10697){
883 883
           if(this.tableList!=null && this.tableList.length > 0){
884 884
           for(let i=0;i<this.tableList.length;i++){
885 885
             this.tableList[i].index = i+1
@@ -911,7 +911,7 @@ export default {
911 911
           this.downloadLoading = false
912 912
         }
913 913
 
914
-        if(this.org_id == 0 || this.org_id == 9956){
914
+        if(this.org_id == 9956){
915 915
          
916 916
           if(this.tableList!=null && this.tableList.length > 0){
917 917
           for(let i=0;i<this.tableList.length;i++){
@@ -943,6 +943,41 @@ export default {
943 943
          })
944 944
           this.downloadLoading = false
945 945
         }
946
+
947
+
948
+        if(this.org_id == 0 || this.org_id == 10697){
949
+         
950
+         if(this.tableList!=null && this.tableList.length > 0){
951
+         for(let i=0;i<this.tableList.length;i++){
952
+           this.tableList[i].index = i+1
953
+           this.tableList[i].medical_code = this.getMedicalInsuranceLeve(this.tableList[i].medical_insurance_level)
954
+           this.tableList[i].type_name =  this.getGoodTypeName(this.tableList[i].good_type_id)
955
+           this.tableList[i].spec = this.tableList[i].specification_name +"/"+ this.tableList[i].packing_unit
956
+           this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
957
+           this.tableList[i].dealer_name = this.getDearName(this.tableList[i].dealer)
958
+           this.tableList[i].stock_in_count = this.GetExportStockInCount(this.tableList[i].xt_good_stock,this.tableList[i].id)
959
+           this.tableList[i].stock_out_count =this.getExportStockOutCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
960
+           this.tableList[i].stock_cancel_count = this.getExportCancelStockInfo(this.tableList[i].xt_good_stock,this.tableList[i].id)
961
+           this.tableList[i].act_out_count  = this.getExportActStockOutCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
962
+           this.tableList[i].over_count = this.getExportOverCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
963
+           this.tableList[i].sum_count =  this.getOverCount(this.tableList[i].xt_warehouse_info) 
964
+
965
+         }
966
+        }
967
+        
968
+
969
+        const tHeader = ['序号','医保等级','耗材编码','耗材类型', '耗材名称', '规格&单位','零售价','生产厂商','经销商','批准文号','国家编码','入库数量','出库数量','退库数量','实际出库','剩余库存','总库存']
970
+        const filterVal = ['index','medical_code','good_number','type_name', 'good_name', 'spec','packing_price','manufacturer_name','dealer_name','number','social_security_directory_code','stock_in_count','act_out_count','stock_cancel_count','stock_out_count','over_count','sum_count']
971
+       
972
+        const data = this.formatJson(filterVal, this.tableList)
973
+        
974
+        excel.export_json_to_excel({
975
+          header: tHeader,
976
+          data,
977
+          filename: '库存查询'
978
+        })
979
+         this.downloadLoading = false
980
+       }
946 981
    
947 982
        })
948 983
       },

+ 3 - 1
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue View File

@@ -56,7 +56,7 @@
56 56
                             <tbody>
57 57
                                 <tr v-for="(item,index) in this.tableList" :key="index">
58 58
                                  <td>{{index + 1}}</td>
59
-                                 <td v-if="org_id==9956">{{item.good_number}}</td>
59
+                                 <td v-if="org_id==9956 || org_id== 0">{{item.good_number}}</td>
60 60
                                  <td>{{item.social_security_directory_code}}</td>
61 61
                                  <td>{{item.good_name}}</td>
62 62
                                  <td>{{getGoodTypeName(item.good_type_id)}}</td>
@@ -231,6 +231,7 @@ export default {
231 231
                 
232 232
                 }
233 233
                
234
+               
234 235
                var obj = {good_number:"",medical_insurance_level:"",social_security_directory_code:"合计",good_type_id:"",good_name:"",specification_name:"",packing_unit:"",manufacturer:"",dealer:"",stockIn:"",stock_in_price:"",stockMoney:0,outStock:"",stockOutprice:"",saleStockMoney:0,saleOutMoney:0,overStock:"",overPrice:"",overMoney:0}
235 236
           
236 237
                 if(this.org_id == 0 || this.org_id == 10697){
@@ -255,6 +256,7 @@ export default {
255 256
                     list.push(obj)
256 257
                  }
257 258
                 }
259
+                this.tableList = list
258 260
                this.manufacturerList = response.data.data.manufacturerList
259 261
             
260 262
             }