Просмотр исходного кода

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 год назад
Родитель
Сommit
b97ac1b8a6

+ 77 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Просмотреть файл

@@ -724,6 +724,83 @@
724 724
                           >
725 725
                             血浆胆红素吸附+HP
726 726
                           </div>
727
+                          <div
728
+                            class="under_line"
729
+                            style="
730
+                              width: 150px;
731
+                              text-align: center;
732
+                              font-weight: 600;
733
+                            "
734
+                            v-if="record.prescription.mode_id == 31"
735
+                          >
736
+                           HPD
737
+                          </div>
738
+                          <div
739
+                            class="under_line"
740
+                            style="
741
+                              width: 100px;
742
+                              text-align: center;
743
+                              font-weight: 600;
744
+                            "
745
+                            v-if="record.prescription.mode_id == 32"
746
+                          >
747
+                          HDP
748
+                          </div>
749
+                          <div
750
+                            class="under_line"
751
+                            style="
752
+                              width: 100px;
753
+                              text-align: center;
754
+                              font-weight: 600;
755
+                            "
756
+                            v-if="record.prescription.mode_id == 33"
757
+                          >
758
+                          HFD
759
+                          </div>
760
+                          <div
761
+                            class="under_line"
762
+                            style="
763
+                              width: 100px;
764
+                              text-align: center;
765
+                              font-weight: 600;
766
+                            "
767
+                            v-if="record.prescription.mode_id == 34"
768
+                          >
769
+                          HDF100
770
+                          </div>
771
+                          <div
772
+                            class="under_line"
773
+                            style="
774
+                              width: 100px;
775
+                              text-align: center;
776
+                              font-weight: 600;
777
+                            "
778
+                            v-if="record.prescription.mode_id == 35"
779
+                          >
780
+                          HDF600
781
+                          </div>
782
+                          <div
783
+                            class="under_line"
784
+                            style="
785
+                              width: 100px;
786
+                              text-align: center;
787
+                              font-weight: 600;
788
+                            "
789
+                            v-if="record.prescription.mode_id == 36"
790
+                          >
791
+                          HDF800
792
+                          </div>
793
+                          <div
794
+                            class="under_line"
795
+                            style="
796
+                              width: 100px;
797
+                              text-align: center;
798
+                              font-weight: 600;
799
+                            "
800
+                            v-if="record.prescription.mode_id == 37"
801
+                          >
802
+                          HDF1000
803
+                          </div>
727 804
                         </div>
728 805
                       </div>
729 806
 

+ 81 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Просмотреть файл

@@ -725,7 +725,7 @@
725 725
                       <div
726 726
                         class="under_line"
727 727
                         style="
728
-                          bwidth: 150px;
728
+                          width: 150px;
729 729
                           text-align: center;
730 730
                           font-weight: 600;
731 731
                         "
@@ -736,7 +736,7 @@
736 736
                       <div
737 737
                         class="under_line"
738 738
                         style="
739
-                          bwidth: 150px;
739
+                          width: 150px;
740 740
                           text-align: center;
741 741
                           font-weight: 600;
742 742
                         "
@@ -746,8 +746,7 @@
746 746
                       </div>
747 747
                       <div
748 748
                         class="under_line"
749
-                        style="
750
-                          bwidth: 150px;
749
+                        style="width: 100px;
751 750
                           text-align: center;
752 751
                           font-weight: 600;
753 752
                         "
@@ -769,7 +768,7 @@
769 768
                       <div
770 769
                         class="under_line"
771 770
                         style="
772
-                          width: 150px;
771
+                          width: 100px;
773 772
                           text-align: center;
774 773
                           font-weight: 600;
775 774
                         "
@@ -777,6 +776,83 @@
777 776
                       >
778 777
                         血浆胆红素吸附+HP
779 778
                       </div>
779
+                      <div
780
+                        class="under_line"
781
+                        style="
782
+                          width: 100px;
783
+                          text-align: center;
784
+                          font-weight: 600;
785
+                        "
786
+                        v-if="prescription.mode_id == 31"
787
+                      >
788
+                       HDP
789
+                      </div>
790
+                      <div
791
+                        class="under_line"
792
+                        style="
793
+                          width: 100px;
794
+                          text-align: center;
795
+                          font-weight: 600;
796
+                        "
797
+                        v-if="prescription.mode_id == 32"
798
+                      >
799
+                      HDP
800
+                      </div>
801
+                      <div
802
+                        class="under_line"
803
+                        style="
804
+                          width: 100px;
805
+                          text-align: center;
806
+                          font-weight: 600;
807
+                        "
808
+                        v-if="prescription.mode_id == 33"
809
+                      >
810
+                      HFD
811
+                      </div>
812
+                      <div
813
+                        class="under_line"
814
+                        style="
815
+                          width: 100px;
816
+                          text-align: center;
817
+                          font-weight: 600;
818
+                        "
819
+                        v-if="prescription.mode_id == 34"
820
+                      >
821
+                      HDF100
822
+                      </div>
823
+                      <div
824
+                        class="under_line"
825
+                        style="
826
+                          width: 100px;
827
+                          text-align: center;
828
+                          font-weight: 600;
829
+                        "
830
+                        v-if="prescription.mode_id == 35"
831
+                      >
832
+                      HDF600
833
+                      </div>
834
+                      <div
835
+                        class="under_line"
836
+                        style="
837
+                          width: 100px;
838
+                          text-align: center;
839
+                          font-weight: 600;
840
+                        "
841
+                        v-if="prescription.mode_id == 36"
842
+                      >
843
+                      HDF800
844
+                      </div>
845
+                      <div
846
+                        class="under_line"
847
+                        style="
848
+                          width: 100px;
849
+                          text-align: center;
850
+                          font-weight: 600;
851
+                        "
852
+                        v-if="prescription.mode_id == 37"
853
+                      >
854
+                      HDF1000
855
+                      </div>
780 856
                     </div>
781 857
 
782 858
                     <div

+ 27 - 18
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue Просмотреть файл

@@ -1508,26 +1508,31 @@ export default {
1508 1508
       console.log("盘亏",total_four)
1509 1509
       console.log("退库",total_five)
1510 1510
       var total = total_one + total_two -total_three-total_four + total_five
1511
-      if (total < min_number) {
1511
+      if (total <=0) {
1512
+        return 0
1513
+      }else{
1514
+        if (total < min_number) {
1512 1515
           min_str = total + min_unit;
1513 1516
         }
1514
-        if (total == 0) {
1515
-          min_str = "";
1516
-          max_str = "";
1517
-        }
1518
-        if (total >= min_number) {
1519
-          if (parseInt(total / min_number) != 0) {
1520
-            max_str = parseInt(total / min_number) + max_unit;
1521
-          }
1522
-          if (total % min_number != 0) {
1523
-            min_str = (total % min_number) + min_unit;
1517
+          if (total == 0) {
1518
+            min_str = "";
1519
+            max_str = "";
1524 1520
           }
1521
+          if (total >= min_number) {
1522
+            if (parseInt(total / min_number) != 0) {
1523
+              max_str = parseInt(total / min_number) + max_unit;
1524
+            }
1525
+            if (total % min_number != 0) {
1526
+              min_str = (total % min_number) + min_unit;
1527
+            }
1528
+        }
1529
+        if(max_str == "" && min_str == ""){
1530
+          return "0"
1531
+        }else{
1532
+          return max_str + min_str;
1533
+        }
1525 1534
       }
1526
-      if(max_str == "" && min_str == ""){
1527
-        return "0"
1528
-      }else{
1529
-        return max_str + min_str;
1530
-      }
1535
+     
1531 1536
     },
1532 1537
     GetInitStartFlowOne(val1,val2,val3,val4,val5,min_number,min_unit,max_unit){
1533 1538
       var total_one =0
@@ -1573,8 +1578,12 @@ export default {
1573 1578
       console.log("盘亏",total_four)
1574 1579
       console.log("退库",total_five)
1575 1580
       var total = total_one + total_two -total_three-total_four + total_five
1576
-      
1577
-      return total
1581
+      if(total>0){
1582
+        return total
1583
+      }else{
1584
+        return 0
1585
+      }
1586
+     
1578 1587
     }
1579 1588
   }
1580 1589
 }

+ 27 - 17
src/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint.vue Просмотреть файл

@@ -1341,26 +1341,32 @@ export default {
1341 1341
       }  
1342 1342
     
1343 1343
       var total = total_one + total_two -total_three-total_four + total_five
1344
-      if (total < min_number) {
1344
+
1345
+      if (total >0) {
1346
+        if (total < min_number) {
1345 1347
           min_str = total + min_unit;
1346 1348
         }
1347
-        if (total == 0) {
1348
-          min_str = "";
1349
-          max_str = "";
1350
-        }
1351
-        if (total >= min_number) {
1352
-          if (parseInt(total / min_number) != 0) {
1353
-            max_str = parseInt(total / min_number) + max_unit;
1354
-          }
1355
-          if (total % min_number != 0) {
1356
-            min_str = (total % min_number) + min_unit;
1349
+          if (total == 0) {
1350
+            min_str = "";
1351
+            max_str = "";
1357 1352
           }
1358
-      }
1359
-      if(max_str == "" && min_str == ""){
1360
-        return "0"
1353
+          if (total >= min_number) {
1354
+            if (parseInt(total / min_number) != 0) {
1355
+              max_str = parseInt(total / min_number) + max_unit;
1356
+            }
1357
+            if (total % min_number != 0) {
1358
+              min_str = (total % min_number) + min_unit;
1359
+            }
1360
+        }
1361
+        if(max_str == "" && min_str == ""){
1362
+          return "0"
1363
+        }else{
1364
+          return max_str + min_str;
1365
+        }
1361 1366
       }else{
1362
-        return max_str + min_str;
1367
+        return 0
1363 1368
       }
1369
+    
1364 1370
     },
1365 1371
     GetInitStartFlowOne(val1,val2,val3,val4,val5,min_number,min_unit,max_unit){
1366 1372
       var total_one =0
@@ -1402,8 +1408,12 @@ export default {
1402 1408
       }  
1403 1409
      
1404 1410
       var total = total_one + total_two -total_three-total_four + total_five
1405
-      
1406
-      return total
1411
+       if (total > 0) {
1412
+         return total
1413
+       }else{
1414
+         return 0
1415
+       }
1416
+     
1407 1417
     }
1408 1418
    },
1409 1419
     created(){

+ 3 - 0
src/xt_pages/stock/query/purchaseNewStockQuery.vue Просмотреть файл

@@ -269,6 +269,9 @@ export default {
269 269
                 list[i].stockIn = list[i].GoodStartFlowInfo.over_count
270 270
               }else{
271 271
                 list[i].stockIn = this.getAllStockIn(list[i].StWarehousingInfoTwo) + this.getAllStockInFlow(list[i].WareStartInStockFlow) - this.getAllOutStockIn(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlow(list[i].WareStartOutStockFlow)
272
+                if(list[i].stockIn <0){
273
+                  list[i].stockIn =0
274
+                }
272 275
               }
273 276
               //  list[i].stockIn = list[i].GoodStartFlowInfo.over_count
274 277
                list[i].stock_in_price = "/"

+ 3 - 0
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue Просмотреть файл

@@ -173,6 +173,9 @@ export default {
173 173
                        list[i].stockIn = list[i].GoodStartFlowInfo.over_count
174 174
                     }else{
175 175
                        list[i].stockIn = this.getAllStockIn(list[i].StWarehousingInfoTwo) + this.getAllStockInFlow(list[i].WareStartInStockFlow) - this.getAllOutStockIn(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlow(list[i].WareStartOutStockFlow)
176
+                       if(list[i].stockIn <0){
177
+                         list[i].stockIn =0
178
+                       }
176 179
                     }
177 180
                     list[i].stock_in_price = "/"
178 181
                     list[i].stockMoney = "/"

+ 3 - 2
src/xt_pages/workforce/appointment.vue Просмотреть файл

@@ -158,7 +158,7 @@
158 158
               <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
159 159
               <!-- <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel> -->
160 160
               <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
161
-                导出排班333
161
+                导出排班
162 162
               </el-button>
163 163
               <el-button
164 164
                   @click="generateLog()"
@@ -1198,7 +1198,8 @@ export default {
1198 1198
             data.push(Object.values(item))
1199 1199
 
1200 1200
           })
1201
-
1201
+          console.log("tablesit",this.tableList)
1202
+          return
1202 1203
           const filename = '排班模版'
1203 1204
 
1204 1205
           if (this.$store.getters.xt_user.org.id == 10234) {