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
cdfc4e8f5e

+ 1 - 0
package.json View File

@@ -80,6 +80,7 @@
80 80
     "vue-i18n": "7.3.2",
81 81
     "vue-json-excel": "^0.3.0",
82 82
     "vue-multiselect": "2.0.8",
83
+    "vue-pdf": "^4.3.0",
83 84
     "vue-quill-editor": "^3.0.6",
84 85
     "vue-router": "3.0.1",
85 86
     "vue-splitpane": "1.0.2",

+ 0 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_fortyeight.vue View File

@@ -1201,8 +1201,6 @@ export default {
1201 1201
       return vascular_access_part_name
1202 1202
     },
1203 1203
     printThisPage() {
1204
-      
1205
-      
1206 1204
       var ptime = Math.round(new Date().getTime() / 1000)
1207 1205
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
1208 1206
       const style =

+ 26 - 4
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -988,6 +988,18 @@
988 988
         >
989 989
         </div>
990 990
       </template>
991
+      <template v-if="org_template_info.template_id == 80">
992
+        <div>
993
+          <el-button
994
+          :loading="loading"
995
+          size="small"
996
+          icon="el-icon-printer"
997
+          @click="printThisPage"
998
+          type="primary"
999
+          >打印</el-button
1000
+        >
1001
+        </div>
1002
+      </template>
991 1003
     </div>
992 1004
     <div class="app-container" style="min-height: 0">
993 1005
       <!--<div class="order-print-btn"-->
@@ -1507,8 +1519,11 @@
1507 1519
 
1508 1520
           <DialysisPrintOrderSeventynine v-bind:childResponse="childResponse"
1509 1521
           v-if="org_template_info.template_id == 79">
1510
-
1511 1522
           </DialysisPrintOrderSeventynine>
1523
+
1524
+          <DialysisPrintOrdereighty v-bind:childResponse="childResponse"
1525
+            v-if="org_template_info.template_id == 80">
1526
+          </DialysisPrintOrdereighty>
1512 1527
         </div>
1513 1528
       </el-container>
1514 1529
     </div>
@@ -1606,6 +1621,7 @@ import DialysisPrintOrderSeventysix from './template/DialysisPrintOrderSeventysi
1606 1621
 import DialysisPrintOrderSeventyseven from './template/DialysisPrintOrderSeventyseven'
1607 1622
 import DialysisPrintOrderSeventyeight from './template/DialysisPrintOrderSeventyeight'
1608 1623
 import DialysisPrintOrderSeventynine from './template/DialysisPrintOrderSeventynine'
1624
+import DialysisPrintOrdereighty from './template/DialysisPrintOrdereighty'
1609 1625
 import DialysisPrintOrderZero from './template/DialysisPrintOrderZero'
1610 1626
 export default {
1611 1627
   name: "dialysisPrintOrder",
@@ -1689,6 +1705,7 @@ export default {
1689 1705
     DialysisPrintOrderSeventyseven,
1690 1706
     DialysisPrintOrderSeventyeight,
1691 1707
     DialysisPrintOrderSeventynine,
1708
+    DialysisPrintOrdereighty,
1692 1709
     DialysisPrintOrderZero,
1693 1710
     LabelBox,
1694 1711
     BreadCrumb,
@@ -2248,9 +2265,7 @@ export default {
2248 2265
           scanStyles: false,
2249 2266
         });
2250 2267
 
2251
-      }else if (
2252
-        this.org_template_info.template_id == 52
2253
-      ) {
2268
+      }else if ( this.org_template_info.template_id == 52) {
2254 2269
         printJS({
2255 2270
           printable: "dialysis-print-box-1",
2256 2271
           type: "html",
@@ -2402,6 +2417,13 @@ export default {
2402 2417
           style: style4,
2403 2418
           scanStyles: false,
2404 2419
         });
2420
+      }else if (this.org_template_info.template_id == 80) {
2421
+        printJS({
2422
+          printable: "dialysis-print-box-1",
2423
+          type: "html",
2424
+          style: style2,
2425
+          scanStyles: false,
2426
+        });
2405 2427
       }
2406 2428
        else if (this.org_template_info.template_id == 199 ) {
2407 2429
         printJS({

File diff suppressed because it is too large
+ 3705 - 0
src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue


+ 5 - 0
src/xt_pages/qcd/basicInformationAnalysis.vue View File

@@ -281,6 +281,11 @@
281 281
                       <p>HDF100:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
282 282
                       <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
283 283
                   </span>
284
+
285
+                  <span v-if="item.mode_id == 'HDF1000'">
286
+                      <p>HDF1000:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
287
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
288
+                  </span>
284 289
                   <span v-if="item.mode_id == 'HDF600'">
285 290
                       <p>HDF600:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
286 291
                       <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>

+ 22 - 1
src/xt_pages/stock/stockInventoryModePrint.vue View File

@@ -299,6 +299,7 @@ export default {
299 299
       warehouseinfoList: [],
300 300
       warehouseOutInfoList: [],
301 301
       cancelInfoList: [],
302
+      cancelFlowList:[]
302 303
 
303 304
     }
304 305
   },
@@ -368,6 +369,8 @@ export default {
368 369
           this.warehouseOutInfoList = warehouseOutInfo
369 370
           var cancelInfoList = response.data.data.cancelInfo
370 371
           this.cancelInfoList = cancelInfoList
372
+
373
+          this.CancelFlowList = response.data.data.CancelFlowList
371 374
           loading.close()
372 375
           //  console.log("list===============",list)
373 376
 
@@ -559,14 +562,32 @@ export default {
559 562
 
560 563
       var newArr = []
561 564
       var newArrOne = []
565
+      
562 566
       var total_count = 0
563 567
       var total_count_one = 0
568
+      var total_count_two = 0
564 569
       var total = 0
570
+
571
+      var cancelNewArr = []
565 572
       for (let i = 0; i < this.outinfo.length; i++) {
566 573
         if (good_id == this.outinfo[i].good_id) {
567 574
           newArr.push(this.outinfo[i])
568 575
         }
569 576
       }
577
+
578
+      for(let i=0;i<this.cancelFlowList.length;i++){
579
+         if(good_id == this.cancelFlowList[i].good_id){
580
+            cancelNewArr.push(this.cancelFlowList[i])
581
+         }
582
+      }
583
+
584
+      if(cancelNewArr!=null){
585
+        for(let i=0;i<cancelNewArr.length;i++){
586
+            total_count_two += cancelNewArr[i].count
587
+        }
588
+      }
589
+
590
+
570 591
       if (newArr != null) {
571 592
         for (let i = 0; i < newArr.length; i++) {
572 593
           total_count += parseInt(newArr[i].count)
@@ -585,7 +606,7 @@ export default {
585 606
       }
586 607
 
587 608
 
588
-      total = total_count + total_count_one
609
+      total = total_count + total_count_one - total_count_two
589 610
       return total
590 611
     },
591 612
     getSumCount(good_id) {

+ 13 - 13
src/xt_permission.js View File

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))