seimin 1 年之前
父节点
当前提交
41daad9ef3
共有 4 个文件被更改,包括 26 次插入106 次删除
  1. 0 4
      main.js
  2. 11 97
      package-lock.json
  3. 1 2
      package.json
  4. 14 3
      pages/quiltWashing/quiltWashingSendsendHandover/quiltWashingSendsendHandover.vue

+ 0 - 4
main.js

@@ -3,10 +3,6 @@ import App from './App'
3
 // #ifdef H5
3
 // #ifdef H5
4
 import wx from 'weixin-jsapi'
4
 import wx from 'weixin-jsapi'
5
 import './mixins/mixin'
5
 import './mixins/mixin'
6
-// import VConsole from 'vconsole';
7
-// new VConsole();
8
-// import eruda from 'eruda';
9
-// eruda.init();
10
 console.info('v2.4.51');
6
 console.info('v2.4.51');
11
 Vue.prototype.wx = wx //声明扫码
7
 Vue.prototype.wx = wx //声明扫码
12
 Vue.prototype.audios = [] //待播放的语音集合
8
 Vue.prototype.audios = [] //待播放的语音集合

+ 11 - 97
package-lock.json

@@ -10,10 +10,9 @@
10
       "license": "ISC",
10
       "license": "ISC",
11
       "dependencies": {
11
       "dependencies": {
12
         "crypto-js": "^4.1.1",
12
         "crypto-js": "^4.1.1",
13
-        "eruda": "^3.0.1",
13
+        "dayjs": "^1.11.10",
14
         "js-base64": "^3.7.5",
14
         "js-base64": "^3.7.5",
15
         "spinkit": "^2.0.1",
15
         "spinkit": "^2.0.1",
16
-        "vconsole": "^3.14.7",
17
         "weixin-jsapi": "^1.1.0"
16
         "weixin-jsapi": "^1.1.0"
18
       },
17
       },
19
       "devDependencies": {
18
       "devDependencies": {
@@ -21,17 +20,6 @@
21
         "ssh2-sftp-client": "^7.2.0"
20
         "ssh2-sftp-client": "^7.2.0"
22
       }
21
       }
23
     },
22
     },
24
-    "node_modules/@babel/runtime": {
25
-      "version": "7.19.0",
26
-      "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.19.0.tgz",
27
-      "integrity": "sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA==",
28
-      "dependencies": {
29
-        "regenerator-runtime": "^0.13.4"
30
-      },
31
-      "engines": {
32
-        "node": ">=6.9.0"
33
-      }
34
-    },
35
     "node_modules/asn1": {
23
     "node_modules/asn1": {
36
       "version": "0.2.6",
24
       "version": "0.2.6",
37
       "resolved": "https://registry.npmmirror.com/asn1/download/asn1-0.2.6.tgz?cache=0&sync_timestamp=1635986760581&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fasn1%2Fdownload%2Fasn1-0.2.6.tgz",
25
       "resolved": "https://registry.npmmirror.com/asn1/download/asn1-0.2.6.tgz?cache=0&sync_timestamp=1635986760581&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fasn1%2Fdownload%2Fasn1-0.2.6.tgz",
@@ -94,20 +82,6 @@
94
         "typedarray": "^0.0.6"
82
         "typedarray": "^0.0.6"
95
       }
83
       }
96
     },
84
     },
97
-    "node_modules/copy-text-to-clipboard": {
98
-      "version": "3.0.1",
99
-      "resolved": "https://registry.npmmirror.com/copy-text-to-clipboard/-/copy-text-to-clipboard-3.0.1.tgz",
100
-      "integrity": "sha512-rvVsHrpFcL4F2P8ihsoLdFHmd404+CMg71S756oRSeQgqk51U3kicGdnvfkrxva0xXH92SjGS62B0XIJsbh+9Q==",
101
-      "engines": {
102
-        "node": ">=12"
103
-      }
104
-    },
105
-    "node_modules/core-js": {
106
-      "version": "3.21.1",
107
-      "resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.21.1.tgz",
108
-      "integrity": "sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig==",
109
-      "hasInstallScript": true
110
-    },
111
     "node_modules/cpu-features": {
85
     "node_modules/cpu-features": {
112
       "version": "0.0.2",
86
       "version": "0.0.2",
113
       "resolved": "https://registry.npmmirror.com/cpu-features/download/cpu-features-0.0.2.tgz",
87
       "resolved": "https://registry.npmmirror.com/cpu-features/download/cpu-features-0.0.2.tgz",
@@ -127,17 +101,17 @@
127
       "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.1.1.tgz",
101
       "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.1.1.tgz",
128
       "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw=="
102
       "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw=="
129
     },
103
     },
104
+    "node_modules/dayjs": {
105
+      "version": "1.11.10",
106
+      "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.10.tgz",
107
+      "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="
108
+    },
130
     "node_modules/err-code": {
109
     "node_modules/err-code": {
131
       "version": "2.0.3",
110
       "version": "2.0.3",
132
       "resolved": "https://registry.npmmirror.com/err-code/download/err-code-2.0.3.tgz",
111
       "resolved": "https://registry.npmmirror.com/err-code/download/err-code-2.0.3.tgz",
133
       "integrity": "sha1-I8Lzt1b/38YI0w4nyalBAkgH5/k=",
112
       "integrity": "sha1-I8Lzt1b/38YI0w4nyalBAkgH5/k=",
134
       "dev": true
113
       "dev": true
135
     },
114
     },
136
-    "node_modules/eruda": {
137
-      "version": "3.0.1",
138
-      "resolved": "https://registry.npmmirror.com/eruda/-/eruda-3.0.1.tgz",
139
-      "integrity": "sha512-6q1Xdwga4JTr1mKSW4mzuWSSbmXgqpm/8Wa1QGFGfCWRjC0bCQjbS4u06M1te1moucIS3hBLlbSTPWYH2W0qbQ=="
140
-    },
141
     "node_modules/fs.realpath": {
115
     "node_modules/fs.realpath": {
142
       "version": "1.0.0",
116
       "version": "1.0.0",
143
       "resolved": "https://registry.npmmirror.com/fs.realpath/download/fs.realpath-1.0.0.tgz",
117
       "resolved": "https://registry.npmmirror.com/fs.realpath/download/fs.realpath-1.0.0.tgz",
@@ -230,11 +204,6 @@
230
         "node": "*"
204
         "node": "*"
231
       }
205
       }
232
     },
206
     },
233
-    "node_modules/mutation-observer": {
234
-      "version": "1.0.3",
235
-      "resolved": "https://registry.npmmirror.com/mutation-observer/-/mutation-observer-1.0.3.tgz",
236
-      "integrity": "sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA=="
237
-    },
238
     "node_modules/nan": {
207
     "node_modules/nan": {
239
       "version": "2.15.0",
208
       "version": "2.15.0",
240
       "resolved": "https://registry.npmmirror.com/nan/download/nan-2.15.0.tgz",
209
       "resolved": "https://registry.npmmirror.com/nan/download/nan-2.15.0.tgz",
@@ -305,11 +274,6 @@
305
         "node": ">= 0.10"
274
         "node": ">= 0.10"
306
       }
275
       }
307
     },
276
     },
308
-    "node_modules/regenerator-runtime": {
309
-      "version": "0.13.9",
310
-      "resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
311
-      "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="
312
-    },
313
     "node_modules/resolve": {
277
     "node_modules/resolve": {
314
       "version": "1.21.0",
278
       "version": "1.21.0",
315
       "resolved": "https://registry.npmmirror.com/resolve/download/resolve-1.21.0.tgz",
279
       "resolved": "https://registry.npmmirror.com/resolve/download/resolve-1.21.0.tgz",
@@ -435,17 +399,6 @@
435
       "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
399
       "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
436
       "dev": true
400
       "dev": true
437
     },
401
     },
438
-    "node_modules/vconsole": {
439
-      "version": "3.14.7",
440
-      "resolved": "https://registry.npmmirror.com/vconsole/-/vconsole-3.14.7.tgz",
441
-      "integrity": "sha512-48byrra1sZk0zJfUM8HFN/ZKtMzvd7Sirt2h5Hfnf7txKOxL9JfoFKB2uLixmOF3jjxCpwnLLb1tsHlg4YzoyA==",
442
-      "dependencies": {
443
-        "@babel/runtime": "^7.17.2",
444
-        "copy-text-to-clipboard": "^3.0.1",
445
-        "core-js": "^3.11.0",
446
-        "mutation-observer": "^1.0.3"
447
-      }
448
-    },
449
     "node_modules/weixin-jsapi": {
402
     "node_modules/weixin-jsapi": {
450
       "version": "1.1.0",
403
       "version": "1.1.0",
451
       "resolved": "https://registry.npm.taobao.org/weixin-jsapi/download/weixin-jsapi-1.1.0.tgz",
404
       "resolved": "https://registry.npm.taobao.org/weixin-jsapi/download/weixin-jsapi-1.1.0.tgz",
@@ -459,14 +412,6 @@
459
     }
412
     }
460
   },
413
   },
461
   "dependencies": {
414
   "dependencies": {
462
-    "@babel/runtime": {
463
-      "version": "7.19.0",
464
-      "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.19.0.tgz",
465
-      "integrity": "sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA==",
466
-      "requires": {
467
-        "regenerator-runtime": "^0.13.4"
468
-      }
469
-    },
470
     "asn1": {
415
     "asn1": {
471
       "version": "0.2.6",
416
       "version": "0.2.6",
472
       "resolved": "https://registry.npmmirror.com/asn1/download/asn1-0.2.6.tgz?cache=0&sync_timestamp=1635986760581&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fasn1%2Fdownload%2Fasn1-0.2.6.tgz",
417
       "resolved": "https://registry.npmmirror.com/asn1/download/asn1-0.2.6.tgz?cache=0&sync_timestamp=1635986760581&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fasn1%2Fdownload%2Fasn1-0.2.6.tgz",
@@ -525,16 +470,6 @@
525
         "typedarray": "^0.0.6"
470
         "typedarray": "^0.0.6"
526
       }
471
       }
527
     },
472
     },
528
-    "copy-text-to-clipboard": {
529
-      "version": "3.0.1",
530
-      "resolved": "https://registry.npmmirror.com/copy-text-to-clipboard/-/copy-text-to-clipboard-3.0.1.tgz",
531
-      "integrity": "sha512-rvVsHrpFcL4F2P8ihsoLdFHmd404+CMg71S756oRSeQgqk51U3kicGdnvfkrxva0xXH92SjGS62B0XIJsbh+9Q=="
532
-    },
533
-    "core-js": {
534
-      "version": "3.21.1",
535
-      "resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.21.1.tgz",
536
-      "integrity": "sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig=="
537
-    },
538
     "cpu-features": {
473
     "cpu-features": {
539
       "version": "0.0.2",
474
       "version": "0.0.2",
540
       "resolved": "https://registry.npmmirror.com/cpu-features/download/cpu-features-0.0.2.tgz",
475
       "resolved": "https://registry.npmmirror.com/cpu-features/download/cpu-features-0.0.2.tgz",
@@ -550,17 +485,17 @@
550
       "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.1.1.tgz",
485
       "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.1.1.tgz",
551
       "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw=="
486
       "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw=="
552
     },
487
     },
488
+    "dayjs": {
489
+      "version": "1.11.10",
490
+      "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.10.tgz",
491
+      "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="
492
+    },
553
     "err-code": {
493
     "err-code": {
554
       "version": "2.0.3",
494
       "version": "2.0.3",
555
       "resolved": "https://registry.npmmirror.com/err-code/download/err-code-2.0.3.tgz",
495
       "resolved": "https://registry.npmmirror.com/err-code/download/err-code-2.0.3.tgz",
556
       "integrity": "sha1-I8Lzt1b/38YI0w4nyalBAkgH5/k=",
496
       "integrity": "sha1-I8Lzt1b/38YI0w4nyalBAkgH5/k=",
557
       "dev": true
497
       "dev": true
558
     },
498
     },
559
-    "eruda": {
560
-      "version": "3.0.1",
561
-      "resolved": "https://registry.npmmirror.com/eruda/-/eruda-3.0.1.tgz",
562
-      "integrity": "sha512-6q1Xdwga4JTr1mKSW4mzuWSSbmXgqpm/8Wa1QGFGfCWRjC0bCQjbS4u06M1te1moucIS3hBLlbSTPWYH2W0qbQ=="
563
-    },
564
     "fs.realpath": {
499
     "fs.realpath": {
565
       "version": "1.0.0",
500
       "version": "1.0.0",
566
       "resolved": "https://registry.npmmirror.com/fs.realpath/download/fs.realpath-1.0.0.tgz",
501
       "resolved": "https://registry.npmmirror.com/fs.realpath/download/fs.realpath-1.0.0.tgz",
@@ -641,11 +576,6 @@
641
         "brace-expansion": "^1.1.7"
576
         "brace-expansion": "^1.1.7"
642
       }
577
       }
643
     },
578
     },
644
-    "mutation-observer": {
645
-      "version": "1.0.3",
646
-      "resolved": "https://registry.npmmirror.com/mutation-observer/-/mutation-observer-1.0.3.tgz",
647
-      "integrity": "sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA=="
648
-    },
649
     "nan": {
579
     "nan": {
650
       "version": "2.15.0",
580
       "version": "2.15.0",
651
       "resolved": "https://registry.npmmirror.com/nan/download/nan-2.15.0.tgz",
581
       "resolved": "https://registry.npmmirror.com/nan/download/nan-2.15.0.tgz",
@@ -704,11 +634,6 @@
704
         "resolve": "^1.1.6"
634
         "resolve": "^1.1.6"
705
       }
635
       }
706
     },
636
     },
707
-    "regenerator-runtime": {
708
-      "version": "0.13.9",
709
-      "resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
710
-      "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="
711
-    },
712
     "resolve": {
637
     "resolve": {
713
       "version": "1.21.0",
638
       "version": "1.21.0",
714
       "resolved": "https://registry.npmmirror.com/resolve/download/resolve-1.21.0.tgz",
639
       "resolved": "https://registry.npmmirror.com/resolve/download/resolve-1.21.0.tgz",
@@ -810,17 +735,6 @@
810
       "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
735
       "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
811
       "dev": true
736
       "dev": true
812
     },
737
     },
813
-    "vconsole": {
814
-      "version": "3.14.7",
815
-      "resolved": "https://registry.npmmirror.com/vconsole/-/vconsole-3.14.7.tgz",
816
-      "integrity": "sha512-48byrra1sZk0zJfUM8HFN/ZKtMzvd7Sirt2h5Hfnf7txKOxL9JfoFKB2uLixmOF3jjxCpwnLLb1tsHlg4YzoyA==",
817
-      "requires": {
818
-        "@babel/runtime": "^7.17.2",
819
-        "copy-text-to-clipboard": "^3.0.1",
820
-        "core-js": "^3.11.0",
821
-        "mutation-observer": "^1.0.3"
822
-      }
823
-    },
824
     "weixin-jsapi": {
738
     "weixin-jsapi": {
825
       "version": "1.1.0",
739
       "version": "1.1.0",
826
       "resolved": "https://registry.npm.taobao.org/weixin-jsapi/download/weixin-jsapi-1.1.0.tgz",
740
       "resolved": "https://registry.npm.taobao.org/weixin-jsapi/download/weixin-jsapi-1.1.0.tgz",

+ 1 - 2
package.json

@@ -15,10 +15,9 @@
15
   "license": "ISC",
15
   "license": "ISC",
16
   "dependencies": {
16
   "dependencies": {
17
     "crypto-js": "^4.1.1",
17
     "crypto-js": "^4.1.1",
18
-    "eruda": "^3.0.1",
18
+    "dayjs": "^1.11.10",
19
     "js-base64": "^3.7.5",
19
     "js-base64": "^3.7.5",
20
     "spinkit": "^2.0.1",
20
     "spinkit": "^2.0.1",
21
-    "vconsole": "^3.14.7",
22
     "weixin-jsapi": "^1.1.0"
21
     "weixin-jsapi": "^1.1.0"
23
   },
22
   },
24
   "devDependencies": {
23
   "devDependencies": {

+ 14 - 3
pages/quiltWashing/quiltWashingSendsendHandover/quiltWashingSendsendHandover.vue

@@ -5,7 +5,7 @@
5
         <view class="text1"> 领取交接 </view>
5
         <view class="text1"> 领取交接 </view>
6
       </view>
6
       </view>
7
       <view class="Scanning_top_text">
7
       <view class="Scanning_top_text">
8
-        以下为<strong class="red">{{dept && dept.dept}}</strong>需要领取的被服信息,请确认
8
+        <strong class="red">{{dept && dept.dept}}</strong>领取,以下为前<strong class="red">{{differenceInDays}}</strong>天内<strong class="red">{{batchNum}}</strong>批次的被服
9
       </view>
9
       </view>
10
     </view>
10
     </view>
11
 
11
 
@@ -68,9 +68,15 @@
68
     SM,
68
     SM,
69
     webHandle
69
     webHandle
70
   } from "../../../http/http.js";
70
   } from "../../../http/http.js";
71
+  import dayjs from 'dayjs';
71
   export default {
72
   export default {
72
     data() {
73
     data() {
73
       return {
74
       return {
75
+        batchIds: '',
76
+        startTime: '',
77
+        endTime: '',
78
+        differenceInDays: '',
79
+        batchNum: '',
74
         SMFlag: true,
80
         SMFlag: true,
75
         hosId: uni.getStorageSync('userData').user.currentHospital.id,
81
         hosId: uni.getStorageSync('userData').user.currentHospital.id,
76
         queryObj: {}, //路由传递过来的数据
82
         queryObj: {}, //路由传递过来的数据
@@ -107,7 +113,7 @@
107
           orderId: 0,
113
           orderId: 0,
108
           // bussList,
114
           // bussList,
109
           index: this.dataList[0].children[0].clothesWashingDTO.index,
115
           index: this.dataList[0].children[0].clothesWashingDTO.index,
110
-          batchId: this.dataList[0].children[0].clothesWashingDTO.batchId,
116
+          batchIds: this.batchIds,
111
         }).then((res) => {
117
         }).then((res) => {
112
           uni.hideLoading();
118
           uni.hideLoading();
113
           if (res.data && res.data.state == 200) {
119
           if (res.data && res.data.state == 200) {
@@ -140,7 +146,7 @@
140
       showModel1() {
146
       showModel1() {
141
         let bussList = this.dataList.map(v => v.children).flat();
147
         let bussList = this.dataList.map(v => v.children).flat();
142
         let num = bussList.reduce((prev, current) => prev + current.clothesWashingDTO.sendBackNum, 0);
148
         let num = bussList.reduce((prev, current) => prev + current.clothesWashingDTO.sendBackNum, 0);
143
-        let content = `您确认与<strong class="red">${this.handover ? this.handover.name : ''}</strong>交接,<strong class="red">${this.dept ? this.dept.dept : ''}</strong><strong class="red">${num}件</strong>被服吗?`;
149
+        let content = `您确认与<strong class="red">${this.handover ? this.handover.name : ''}</strong>交接,<strong class="red">${dayjs(this.startTime).format('YYYY年MM月DD日')}</strong>至<strong class="red">${dayjs(this.endTime,).format('YYYY年MM月DD日')}</strong>范围内<strong class="red">${this.batchNum}</strong>批次<strong class="red">${num}</strong>件被服?`;
144
         this.models1 = {
150
         this.models1 = {
145
           disjunctor: true,
151
           disjunctor: true,
146
           title: "提示",
152
           title: "提示",
@@ -171,6 +177,11 @@
171
           uni.hideLoading();
177
           uni.hideLoading();
172
           if (result.data && result.data.state == 200) {
178
           if (result.data && result.data.state == 200) {
173
             this.dept = result.data.dept;
179
             this.dept = result.data.dept;
180
+            this.batchNum = result.data.batchNum;
181
+            this.startTime = result.data.startTime;
182
+            this.endTime = result.data.endTime;
183
+            this.batchIds = result.data.batchIds;
184
+            this.differenceInDays = dayjs(result.data.endTime).diff(result.data.startTime, 'day');
174
             this.handover = result.data.handover;
185
             this.handover = result.data.handover;
175
             let dataList = result.data.treeList || [];
186
             let dataList = result.data.treeList || [];
176
             dataList.forEach(v => {
187
             dataList.forEach(v => {