Compare commits
129 Commits
prod-24-06
...
prod-24-10
Author | SHA1 | Date | |
---|---|---|---|
c6fd1bc162 | |||
5618ad989e | |||
a8cea5fb6a | |||
4017cf9520 | |||
789f1fa396 | |||
374a5182db | |||
f83e646547 | |||
812f3e3a03 | |||
b6a9836932 | |||
36d2895f2b | |||
d28a23e664 | |||
a642e7783c | |||
dccc3ae530 | |||
07ac2d1e86 | |||
6030432a8c | |||
235fe85604 | |||
a7f4018050 | |||
5c96f06916 | |||
2ad457c92a | |||
dd440e81df | |||
8212c1cd8a | |||
a0e6681ad6 | |||
4cf076914d | |||
7220ad8989 | |||
85ecdceaf1 | |||
a319a9d097 | |||
06591b6eb4 | |||
c9cedc526a | |||
d72a74c2ea | |||
e950ce2589 | |||
db45cecfe3 | |||
9345b2ab79 | |||
bc4f419aca | |||
7a73b0b83a | |||
45ca7a8382 | |||
584fded2f7 | |||
bd58a176f6 | |||
d8729033e1 | |||
20a9d7ebad | |||
9befe22373 | |||
ccf11f6fa6 | |||
edcd55b074 | |||
bce648bdc6 | |||
a5e4a2d5dd | |||
cc7ea113c4 | |||
5589417862 | |||
1dc5094172 | |||
413da6aea7 | |||
f255bf48e4 | |||
31d3bcf071 | |||
75e014562f | |||
3919bf6934 | |||
8223ff3e46 | |||
6e7254607b | |||
0e82be5cbe | |||
b6d86c4517 | |||
c3f859619f | |||
7b95507378 | |||
250e68bed7 | |||
e768f9c8f8 | |||
7aceb84ee5 | |||
0d91afc1e8 | |||
d362fef099 | |||
5dc9bfb840 | |||
fd1ad6db3c | |||
2d78a9cee6 | |||
68d9f83b66 | |||
728e70f00e | |||
46e2cb3b3e | |||
c22b3ac319 | |||
4250119cce | |||
5fc76a5765 | |||
71e1b1ebb7 | |||
73ec8c267b | |||
9cd3a70f43 | |||
431ba13eea | |||
672ed153da | |||
65c33e54f5 | |||
dedb0f53e9 | |||
8bed0868f8 | |||
70cea4d888 | |||
6d1df4a720 | |||
a7cf0a837e | |||
ec995b7548 | |||
372bbc44c0 | |||
7b160e12fb | |||
4c393f3f1e | |||
5afbf9df90 | |||
073814bd69 | |||
06fdbc4f84 | |||
86ed97f265 | |||
0aa9f3ec04 | |||
48cd129290 | |||
b8096b39f3 | |||
3a45615e4f | |||
d1b04ec51c | |||
dc091c6dd5 | |||
45914f0577 | |||
42694d57de | |||
61ccb58af2 | |||
f6c33c8c36 | |||
1fbc66a1d6 | |||
b80a748dc9 | |||
f38e2ce614 | |||
febf9a636e | |||
8deaa85c1c | |||
70675fde50 | |||
af297b5892 | |||
f472c878e8 | |||
5df83abfcf | |||
11664e92bf | |||
4be4015e30 | |||
39603134fb | |||
ad49a716b9 | |||
b1945ab42f | |||
4da4cacd7b | |||
39c8bb857b | |||
0dd54330af | |||
a7c7dafa33 | |||
b2af0684fa | |||
cb50de4039 | |||
7785c7ecbe | |||
f45792b527 | |||
793be9d28d | |||
d4c6081f34 | |||
e11946352c | |||
481c37f708 | |||
605bc306a5 | |||
d5d090cdc8 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,7 +6,7 @@ node_modules
|
|||||||
# local env files
|
# local env files
|
||||||
.env.local
|
.env.local
|
||||||
.env.*.local
|
.env.*.local
|
||||||
/http.js
|
src/http.js
|
||||||
http.js
|
http.js
|
||||||
# Log files
|
# Log files
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
|
113
package-lock.json
generated
113
package-lock.json
generated
@ -1713,9 +1713,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@vant/icons": {
|
"@vant/icons": {
|
||||||
"version": "1.8.0",
|
"version": "3.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/@vant/icons/-/icons-1.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/@vant/icons/-/icons-3.0.2.tgz",
|
||||||
"integrity": "sha512-sKfEUo2/CkQFuERxvkuF6mGQZDKu3IQdj5rV9Fm0weJXtchDSSQ+zt8qPCNUEhh9Y8shy5PzxbvAfOOkCwlCXg=="
|
"integrity": "sha512-4OlRVMd0uiDtD9hgSISZW8hB95vU0fFtc41tQchRIyiXkR0tS+DydZOLb8/bQkithrNWhW7Uud38MbKjlJ9lJw=="
|
||||||
},
|
},
|
||||||
"@vant/popperjs": {
|
"@vant/popperjs": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
@ -2030,6 +2030,49 @@
|
|||||||
"webpack-merge": "^5.7.3",
|
"webpack-merge": "^5.7.3",
|
||||||
"webpack-virtual-modules": "^0.4.2",
|
"webpack-virtual-modules": "^0.4.2",
|
||||||
"whatwg-fetch": "^3.6.2"
|
"whatwg-fetch": "^3.6.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@vue/vue-loader-v15": {
|
||||||
|
"version": "npm:vue-loader@15.11.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz",
|
||||||
|
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@vue/component-compiler-utils": "^3.1.0",
|
||||||
|
"hash-sum": "^1.0.2",
|
||||||
|
"loader-utils": "^1.1.0",
|
||||||
|
"vue-hot-reload-api": "^2.3.0",
|
||||||
|
"vue-style-loader": "^4.1.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"hash-sum": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"json5": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"minimist": "^1.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"loader-utils": {
|
||||||
|
"version": "1.4.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz",
|
||||||
|
"integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"big.js": "^5.2.2",
|
||||||
|
"emojis-list": "^3.0.0",
|
||||||
|
"json5": "^1.0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@vue/cli-shared-utils": {
|
"@vue/cli-shared-utils": {
|
||||||
@ -2194,47 +2237,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@vue/vue-loader-v15": {
|
|
||||||
"version": "npm:vue-loader@15.11.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz",
|
|
||||||
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@vue/component-compiler-utils": "^3.1.0",
|
|
||||||
"hash-sum": "^1.0.2",
|
|
||||||
"loader-utils": "^1.1.0",
|
|
||||||
"vue-hot-reload-api": "^2.3.0",
|
|
||||||
"vue-style-loader": "^4.1.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"hash-sum": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
|
|
||||||
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"json5": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
|
|
||||||
"integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"minimist": "^1.2.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"loader-utils": {
|
|
||||||
"version": "1.4.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz",
|
|
||||||
"integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"big.js": "^5.2.2",
|
|
||||||
"emojis-list": "^3.0.0",
|
|
||||||
"json5": "^1.0.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@vue/web-component-wrapper": {
|
"@vue/web-component-wrapper": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/@vue/web-component-wrapper/-/web-component-wrapper-1.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@vue/web-component-wrapper/-/web-component-wrapper-1.3.0.tgz",
|
||||||
@ -3542,10 +3544,16 @@
|
|||||||
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
|
||||||
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
|
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
|
||||||
},
|
},
|
||||||
|
"dayjs": {
|
||||||
|
"version": "1.11.13",
|
||||||
|
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz",
|
||||||
|
"integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg=="
|
||||||
|
},
|
||||||
"de-indent": {
|
"de-indent": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
|
||||||
"integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg=="
|
"integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"debug": {
|
"debug": {
|
||||||
"version": "4.3.4",
|
"version": "4.3.4",
|
||||||
@ -4880,7 +4888,8 @@
|
|||||||
"he": {
|
"he": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
|
||||||
"integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw=="
|
"integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"highlight.js": {
|
"highlight.js": {
|
||||||
"version": "10.7.3",
|
"version": "10.7.3",
|
||||||
@ -5508,7 +5517,8 @@
|
|||||||
"lodash": {
|
"lodash": {
|
||||||
"version": "4.17.21",
|
"version": "4.17.21",
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"lodash.debounce": {
|
"lodash.debounce": {
|
||||||
"version": "4.0.8",
|
"version": "4.0.8",
|
||||||
@ -8025,12 +8035,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vant": {
|
"vant": {
|
||||||
"version": "2.12.54",
|
"version": "2.13.2",
|
||||||
"resolved": "https://registry.npmjs.org/vant/-/vant-2.12.54.tgz",
|
"resolved": "https://registry.npmjs.org/vant/-/vant-2.13.2.tgz",
|
||||||
"integrity": "sha512-t7DCiLxNosDrg0Jm5EY9p0A5cAMo5OadmizbYtPEc0ru+OJKEa3kcfxtKIK5on7ZPqoOkyYJt8e6BQ1VDMPsrg==",
|
"integrity": "sha512-anZbbLqXCq+rUJk10D67mn+V/1/i9tfOTdoR+64B0e+0BzV3KFgpHBF76noLa+yX9i/L+8DeL560WMk0GEN38g==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/runtime": "7.x",
|
"@babel/runtime": "7.x",
|
||||||
"@vant/icons": "^1.7.1",
|
"@vant/icons": "^3.0.2",
|
||||||
"@vant/popperjs": "^1.1.0",
|
"@vant/popperjs": "^1.1.0",
|
||||||
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
||||||
"vue-lazyload": "1.2.3"
|
"vue-lazyload": "1.2.3"
|
||||||
@ -8245,6 +8255,7 @@
|
|||||||
"version": "2.7.14",
|
"version": "2.7.14",
|
||||||
"resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz",
|
"resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz",
|
||||||
"integrity": "sha512-zyA5Y3ArvVG0NacJDkkzJuPQDF8RFeRlzV2vLeSnhSpieO6LK2OVbdLPi5MPPs09Ii+gMO8nY4S3iKQxBxDmWQ==",
|
"integrity": "sha512-zyA5Y3ArvVG0NacJDkkzJuPQDF8RFeRlzV2vLeSnhSpieO6LK2OVbdLPi5MPPs09Ii+gMO8nY4S3iKQxBxDmWQ==",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"de-indent": "^1.0.2",
|
"de-indent": "^1.0.2",
|
||||||
"he": "^1.2.0"
|
"he": "^1.2.0"
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
"qs": "^6.11.2",
|
"qs": "^6.11.2",
|
||||||
"sass": "^1.65.1",
|
"sass": "^1.65.1",
|
||||||
"sass-loader": "^13.3.2",
|
"sass-loader": "^13.3.2",
|
||||||
"vant": "^2.12.54",
|
"vant": "^2.13.2",
|
||||||
"vue": "^2.6.14",
|
"vue": "^2.6.14",
|
||||||
"vue-router": "^3.0.7",
|
"vue-router": "^3.0.7",
|
||||||
"vuex": "^3.6.2",
|
"vuex": "^3.6.2",
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0">-->
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover,user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover,user-scalable=no">
|
||||||
<meta name="format-detection" content="telephone=yes"/>
|
<meta name="format-detection" content="telephone=yes"/>
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
@ -29,5 +30,39 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="https://webapi.amap.com/maps?v=1.4.15&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.Polyline"></script>
|
<script src="https://webapi.amap.com/maps?v=1.4.15&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.Polyline"></script>
|
||||||
|
<!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>-->
|
||||||
|
<script>
|
||||||
|
// VConsole 默认会挂载到 `window.VConsole` 上
|
||||||
|
// let vConsole = new window.VConsole();
|
||||||
|
(function (doc, win) {
|
||||||
|
console.log("==window.location.pathname===",window.location.pathname)
|
||||||
|
let docEl = doc.documentElement
|
||||||
|
let resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'
|
||||||
|
recalc = function () {
|
||||||
|
var clientWidth = docEl.clientWidth;
|
||||||
|
if (!clientWidth) return;
|
||||||
|
if (clientWidth < 400) {
|
||||||
|
clientWidth = 400;
|
||||||
|
}
|
||||||
|
docEl.style.fontSize = 18 * (clientWidth / 650) + 'px';
|
||||||
|
};
|
||||||
|
if (!doc.addEventListener) return;
|
||||||
|
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
||||||
|
if (isMobile) {// 是移动端不变
|
||||||
|
// console.log("是移动端不变")
|
||||||
|
}else{
|
||||||
|
if(window.location.pathname=='/h5/supplier/dispatch/kpiIndex'){
|
||||||
|
// console.log("执行了执行了")
|
||||||
|
win.addEventListener(resizeEvt, recalc, false);
|
||||||
|
doc.addEventListener('DOMContentLoaded', recalc, false);
|
||||||
|
}
|
||||||
|
/*else{
|
||||||
|
console.log("走着了这种饿 ")
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
})(document, window);
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -4,7 +4,7 @@ export function getStatisticsKpiByMonth(data){
|
|||||||
return request({
|
return request({
|
||||||
url: '/supplier/supplierKPI/querySupplierStatisticsKpiByMonth',
|
url: '/supplier/supplierKPI/querySupplierStatisticsKpiByMonth',
|
||||||
method:'POST',
|
method:'POST',
|
||||||
contentType: 'application/json',
|
// contentType: 'application/json',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -13,7 +13,7 @@ export function getStatisticsKpi(data){
|
|||||||
return request({
|
return request({
|
||||||
url: '/supplier/supplierKPI/querySupplierStatisticsKpi',
|
url: '/supplier/supplierKPI/querySupplierStatisticsKpi',
|
||||||
method:'POST',
|
method:'POST',
|
||||||
contentType: 'application/json',
|
// contentType: 'application/json',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -23,7 +23,7 @@ export function getDriverStatisticsKpi(data){
|
|||||||
return request({
|
return request({
|
||||||
url: '/supplier/supplierKPI/querySupplierDriverStatisticsKpi',
|
url: '/supplier/supplierKPI/querySupplierDriverStatisticsKpi',
|
||||||
method:'POST',
|
method:'POST',
|
||||||
contentType: 'application/json',
|
// contentType: 'application/json',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -32,7 +32,27 @@ export function getKpiDetailsData(data){
|
|||||||
return request({
|
return request({
|
||||||
url: '/supplier/supplierKPI/querySupplierKpiDetailsData',
|
url: '/supplier/supplierKPI/querySupplierKpiDetailsData',
|
||||||
method:'POST',
|
method:'POST',
|
||||||
contentType: 'application/json',
|
// contentType: 'application/json',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 关键词搜索服务商名称
|
||||||
|
export function getSupplierId(key) {
|
||||||
|
return request({
|
||||||
|
url: '/supplier/select/supplier',
|
||||||
|
method: 'GET',
|
||||||
|
params: {
|
||||||
|
key: key ,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// supplier/select/driver 关键词搜索司机名称
|
||||||
|
export function getDriverName(key) {
|
||||||
|
return request({
|
||||||
|
url: '/supplier/select/driver',
|
||||||
|
method: 'GET',
|
||||||
|
params: {
|
||||||
|
key: key ,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
@ -132,7 +132,7 @@ export function deleteImage(data){
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
//新增记账图片 form-data
|
//新增记账图片 form-data
|
||||||
export function insertRecordPicture(data){
|
/*export function insertRecordPicture(data){
|
||||||
return request({
|
return request({
|
||||||
url:'/supplierAppV2/dispatchApp/accountRecord/insertRecordPicture',
|
url:'/supplierAppV2/dispatchApp/accountRecord/insertRecordPicture',
|
||||||
method:'POST',
|
method:'POST',
|
||||||
@ -142,7 +142,7 @@ export function insertRecordPicture(data){
|
|||||||
// 'Content-Type': 'multipart/form-data',
|
// 'Content-Type': 'multipart/form-data',
|
||||||
// },
|
// },
|
||||||
})
|
})
|
||||||
}
|
}*/
|
||||||
|
|
||||||
//开票通知列表
|
//开票通知列表
|
||||||
export function notifyInvoiceList(data){
|
export function notifyInvoiceList(data){
|
||||||
@ -162,7 +162,7 @@ export function notifyInvoiceDetail(data){
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// /supplier/supplierTrainingMaterials/pageList 获取培训材料列表
|
// 调度app获取新签列表
|
||||||
export function pageList(data){
|
export function pageList(data){
|
||||||
return request({
|
return request({
|
||||||
url:'/supplierAppV2/dispatchApp/user/supplierTrainingMaterialsPageList',
|
url:'/supplierAppV2/dispatchApp/user/supplierTrainingMaterialsPageList',
|
||||||
@ -171,6 +171,31 @@ export function pageList(data){
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 司机app获取新签列表
|
||||||
|
export function driverTrainList(key){
|
||||||
|
return request({
|
||||||
|
url:'/supplier/supplierTraining/trainingTask',
|
||||||
|
method:'GET',
|
||||||
|
params:key
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//获取普通材料
|
||||||
|
export function getNormalList(key) {
|
||||||
|
return request({
|
||||||
|
url: '/supplier/supplierTraining/normalList',
|
||||||
|
method: 'GET',
|
||||||
|
params:key
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//获取培训材料
|
||||||
|
export function getTrainingList(key) {
|
||||||
|
return request({
|
||||||
|
url: '/supplier/supplierTraining/trainingList',
|
||||||
|
method: 'GET',
|
||||||
|
params:key
|
||||||
|
});
|
||||||
|
}
|
||||||
//用户操作权限
|
//用户操作权限
|
||||||
export function userOperationPermissions(){
|
export function userOperationPermissions(){
|
||||||
return request({
|
return request({
|
||||||
|
@ -131,6 +131,14 @@ const routes = [
|
|||||||
path: '/trainDocment',
|
path: '/trainDocment',
|
||||||
name: 'trainDocment',
|
name: 'trainDocment',
|
||||||
component:()=>import('@/views/documentView/trainDocment.vue'),
|
component:()=>import('@/views/documentView/trainDocment.vue'),
|
||||||
|
meta: {
|
||||||
|
title:'培训文档',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/diverTrainDocment',
|
||||||
|
name: 'diverTrainDocment',
|
||||||
|
component:()=>import('@/views/documentView/diverTrainDocment.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title:'培训文档'
|
title:'培训文档'
|
||||||
}
|
}
|
||||||
@ -180,7 +188,15 @@ const routes = [
|
|||||||
name: 'newTrainingList',
|
name: 'newTrainingList',
|
||||||
component:()=>import('@/views/newcomerTraining/newTrainingList.vue'),
|
component:()=>import('@/views/newcomerTraining/newTrainingList.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title:'新人培训'
|
title:'新服务商培训'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/driverTrainingList',
|
||||||
|
name: 'driverTrainingList',
|
||||||
|
component:()=>import('@/views/newcomerTraining/driverTrainingList.vue'),
|
||||||
|
meta: {
|
||||||
|
title:'新师傅培训'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
@import "@/styles/mixin.scss";
|
@import "@/styles/mixin.scss";
|
||||||
|
|
||||||
.wrap{
|
.wrap{
|
||||||
@include wh(100%,100%);
|
@include wh(100%,100%);
|
||||||
background-color: #F4F5F7;
|
background-color: #F4F5F7;
|
||||||
overflow-y: auto;
|
|
||||||
}
|
}
|
||||||
.navBar{
|
.navBar{
|
||||||
margin-bottom: 46px;
|
margin-bottom: 46px;
|
||||||
@ -13,16 +14,44 @@
|
|||||||
@include wh(17px, 17px);
|
@include wh(17px, 17px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.tab_wrap {
|
||||||
|
@include fontWeightSize(bold, 12px);
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
padding: 5px 0 5px 0;
|
||||||
|
@include colorOpa(#737373,0.7);
|
||||||
|
div {
|
||||||
|
padding-top: 8px;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
color: #3678FF;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.active:after {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
@include wh(50px,2px);
|
||||||
|
background: linear-gradient(270deg, #33A3FF 0%, #176AFE 100%);
|
||||||
|
border-radius: 2px;
|
||||||
|
position: absolute;
|
||||||
|
margin-top: 3px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
.contentWrap{
|
.contentWrap{
|
||||||
@include sizingPadding(0,8px);
|
@include sizingPadding(0,8px);
|
||||||
|
overflow-y: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 20px;
|
height: calc(100% - 100px);
|
||||||
|
margin-top: 10px;
|
||||||
.itemWrap{
|
.itemWrap{
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
@include wh(100%, 300px);
|
width: 100%;
|
||||||
|
//@include wh(100%, 300px);
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0px 2px 10px 0px rgba(216, 216, 216, 0.5);
|
box-shadow: 0px 2px 10px 0px rgba(216, 216, 216, 0.5);
|
||||||
@include sizingPadRadius(6px ,0,3px);
|
@include sizingPadRadius(6px ,0,6px);
|
||||||
@include flexAround;
|
@include flexAround;
|
||||||
@include fontWeightSize(400, 12px);
|
@include fontWeightSize(400, 12px);
|
||||||
.flexBetween{
|
.flexBetween{
|
||||||
@ -31,18 +60,16 @@
|
|||||||
.common{
|
.common{
|
||||||
margin: 0 15px ;
|
margin: 0 15px ;
|
||||||
}
|
}
|
||||||
|
.time{
|
||||||
|
color: rgba(0,0,0,0.7);
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
.imgWrap{
|
.imgWrap{
|
||||||
@include wh(100%,200px);
|
@include wh(100%,200px);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin: 6px 0;
|
||||||
img{
|
img{
|
||||||
@include wh(100%,200px);
|
@include wh(100%,100%);
|
||||||
}
|
|
||||||
.name{
|
|
||||||
position: absolute;
|
|
||||||
left: 30px;
|
|
||||||
bottom: 30px;
|
|
||||||
@include fontWeightSize(bold,14px);
|
|
||||||
color: #FFFFFF;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.left{
|
.left{
|
||||||
|
103
src/styles/driverDocment.scss
Normal file
103
src/styles/driverDocment.scss
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
@import "@/styles/mixin.scss";
|
||||||
|
::v-deep .van-nav-bar__content{
|
||||||
|
background-color: #3A3A3A !important;
|
||||||
|
}
|
||||||
|
.wrap{
|
||||||
|
@include wh(100%,100%);
|
||||||
|
background-color: #F4F5F7;
|
||||||
|
|
||||||
|
}
|
||||||
|
.navBar{
|
||||||
|
margin-bottom: 46px;
|
||||||
|
}
|
||||||
|
.search{
|
||||||
|
color: #AAADB3 !important;
|
||||||
|
font-weight: bolder;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.navLeft{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
color: #9C9C9C;
|
||||||
|
font-size: 8px;
|
||||||
|
.icon{
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-right: 5px;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.statisticContainer{
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
.statisticWrap{
|
||||||
|
@include wh(100%,100px);
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 8px 8px 15px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #c7c1c1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
.line1{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
span:first-child{
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
span:last-child{
|
||||||
|
opacity: .7;
|
||||||
|
//font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.numWrap{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
div{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
span:first-child{
|
||||||
|
margin-bottom: 3px;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.rightWrap {
|
||||||
|
@include flexCenter;
|
||||||
|
.img2 {
|
||||||
|
@include wh(17px, 17px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.driver_tab_wrap {
|
||||||
|
font-size: 12px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
padding: 5px 0 5px 0;
|
||||||
|
div {
|
||||||
|
padding-top: 8px;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.active:after {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
@include wh(100px,2px);
|
||||||
|
background-color: #E8A524;
|
||||||
|
border-radius: 2px;
|
||||||
|
position: absolute;
|
||||||
|
margin-top: 3px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.empty{
|
||||||
|
margin-top: 14px;
|
||||||
|
|
||||||
|
}
|
@ -16,18 +16,20 @@ localStorage.setItem('token', token);
|
|||||||
service.interceptors.request.use(
|
service.interceptors.request.use(
|
||||||
config => {
|
config => {
|
||||||
let reqUrl=config.url
|
let reqUrl=config.url
|
||||||
|
// console.log("reqUrl",reqUrl)
|
||||||
config.data = config.contentType ? config.data : qs.stringify(config.data)
|
config.data = config.contentType ? config.data : qs.stringify(config.data)
|
||||||
config.headers['Content-Type'] = config.contentType || 'application/x-www-form-urlencoded'
|
config.headers['Content-Type'] = config.contentType || 'application/x-www-form-urlencoded'
|
||||||
let token = localStorage.getItem('token');
|
let token = localStorage.getItem('token');
|
||||||
// alert(token);
|
|
||||||
// let token='4099761587129c46b03c9316c9e866c9'
|
// let token='4099761587129c46b03c9316c9e866c9'
|
||||||
// let token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzb25nIiwiYXVkIjpbInN1cHBsaWVyLWFwcCJdLCJuYmYiOjE3MTI0NTQ5NTMsInVzZXJfaW5mbyI6eyJ1c2VySWQiOjU0NjU0LCJwaG9uZSI6IjE3NjMwMDM1NjU4IiwibmFtZSI6InNvbmciLCJzdXBwbGllck5hbWUiOiJDLeS4iua1t-a1i-ivleacjeWKoeWVhiIsInN1cHBsaWVySWQiOjMzMDQxLCJzdXBwbGllclR5cGUiOjIsInVzZXJuYW1lIjoic29uZyIsInVzZXJUeXBlIjoicmVzY3VlQXBwIiwiZGV2aWNlSWQiOiIyMmI0OWNhMjBmOWI4MzMwZDk4NzIxNzNmMzllYTY4YmMiLCJhdXRob3JpdGllcyI6W119LCJzY29wZSI6WyJhbGwiXSwiaXNzIjoiaHR0cHM6Ly9zaW5vYXNzaXN0LmNvbSIsImV4cCI6MTcxMjU0MTM1MywiaWF0IjoxNzEyNDU0OTUzfQ.sPU9_OD_TOWcTwqmlawEGyo4mCPrEaRYw2R02gnvYJw'
|
// let token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzb25nIiwiYXVkIjpbInN1cHBsaWVyLWFwcCJdLCJuYmYiOjE3MTI0NTQ5NTMsInVzZXJfaW5mbyI6eyJ1c2VySWQiOjU0NjU0LCJwaG9uZSI6IjE3NjMwMDM1NjU4IiwibmFtZSI6InNvbmciLCJzdXBwbGllck5hbWUiOiJDLeS4iua1t-a1i-ivleacjeWKoeWVhiIsInN1cHBsaWVySWQiOjMzMDQxLCJzdXBwbGllclR5cGUiOjIsInVzZXJuYW1lIjoic29uZyIsInVzZXJUeXBlIjoicmVzY3VlQXBwIiwiZGV2aWNlSWQiOiIyMmI0OWNhMjBmOWI4MzMwZDk4NzIxNzNmMzllYTY4YmMiLCJhdXRob3JpdGllcyI6W119LCJzY29wZSI6WyJhbGwiXSwiaXNzIjoiaHR0cHM6Ly9zaW5vYXNzaXN0LmNvbSIsImV4cCI6MTcxMjU0MTM1MywiaWF0IjoxNzEyNDU0OTUzfQ.sPU9_OD_TOWcTwqmlawEGyo4mCPrEaRYw2R02gnvYJw'
|
||||||
// console.log("tokentokentoken",token)
|
|
||||||
if (reqUrl.includes("/driverApp")) {
|
if (reqUrl.includes("/driverApp")) {
|
||||||
|
// console.log("司机app")
|
||||||
config.headers['token'] = `${token}`;
|
config.headers['token'] = `${token}`;
|
||||||
} else {
|
} else if(reqUrl.includes("/supplierApp") || reqUrl.includes("/supplierKPI") || reqUrl.includes('/supplier/select')){
|
||||||
console.log("调度app")
|
// console.log("调度app,服务商kpi")
|
||||||
config.headers['Authorization'] = `${token}`;
|
config.headers['Authorization'] = `${token}`;
|
||||||
|
}else{
|
||||||
|
config.headers['token'] = `${token}`;
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
},
|
},
|
||||||
|
@ -34,20 +34,27 @@ export const myMixins = {
|
|||||||
window.android.sendMessage("goBack");
|
window.android.sendMessage("goBack");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
goH5Detail(item){//h5传参到app文档资料,培训文档
|
goH5Detail(item,type){//h5传参到app文档资料,培训文档
|
||||||
|
// console.log("type",type)
|
||||||
let data = {
|
let data = {
|
||||||
"action": "goTraining",
|
"action": "goTraining",
|
||||||
"params": {
|
"params": {
|
||||||
"id": item.id,
|
"id":type == '培训文档' ? Number(1000000+item.id) : item.id,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let u = navigator.userAgent;
|
let u = navigator.userAgent;
|
||||||
let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
||||||
if(isiOS){
|
if(isiOS){
|
||||||
|
// console.log("data",data)
|
||||||
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
||||||
}else {
|
}else {
|
||||||
|
if(type == '培训文档'){
|
||||||
|
window.android.sendMessage("articleId=" +'q'+ item.id);
|
||||||
|
}else{
|
||||||
window.android.sendMessage("articleId=" + item.id);
|
window.android.sendMessage("articleId=" + item.id);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
h5GoBack(){
|
h5GoBack(){
|
||||||
this.$router.back();
|
this.$router.back();
|
||||||
|
175
src/views/documentView/diverTrainDocment.vue
Normal file
175
src/views/documentView/diverTrainDocment.vue
Normal file
@ -0,0 +1,175 @@
|
|||||||
|
<template>
|
||||||
|
<div class="wrap">
|
||||||
|
<div class="navBar">
|
||||||
|
<van-nav-bar
|
||||||
|
:border="false"
|
||||||
|
:fixed="true"
|
||||||
|
:safe-area-inset-top="true"
|
||||||
|
>
|
||||||
|
<template slot="title">
|
||||||
|
<van-field
|
||||||
|
v-model="keyword"
|
||||||
|
placeholder="名称/关键词/简介"
|
||||||
|
>
|
||||||
|
</van-field>
|
||||||
|
</template>
|
||||||
|
<template slot="left">
|
||||||
|
<div class="navLeft" @click="goBack">
|
||||||
|
<van-icon class="icon" name="arrow-left" />
|
||||||
|
<div>返回</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template slot="right">
|
||||||
|
<van-icon class="search" name="search" size="20" @click="getTrainingList"/>
|
||||||
|
</template>
|
||||||
|
</van-nav-bar>
|
||||||
|
</div>
|
||||||
|
<div class="statisticContainer">
|
||||||
|
<div class="statisticWrap">
|
||||||
|
<div class="line1">
|
||||||
|
<span>培训统计</span>
|
||||||
|
<span>更新时间:{{time}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="numWrap">
|
||||||
|
<div>
|
||||||
|
<span>{{ numInfo?.totalNum }}</span>
|
||||||
|
<span>文章总数</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span>{{ numInfo?.readNum }}</span><span>已培训数量</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span>{{ numInfo?.notReadNum }}</span> <span>未培训数量</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="driver_tab_wrap">
|
||||||
|
<div v-for="(item, index) in tabArr" :key="index" :class="{'active' : activeIndex == index}"
|
||||||
|
@click="changeTab(index)">
|
||||||
|
{{ item.name }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="contentWrap" v-show="!showEmpty">
|
||||||
|
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" style="min-height:85vh">
|
||||||
|
<div class="itemWrap" v-for="(item,index) in pageList" :key="index" @click="goH5Detail(item,'培训文档')">
|
||||||
|
<div class="info flexBetween common">
|
||||||
|
<div class="title">{{ item.name }}<span v-if="item.mustRead===1" class="read">必读</span></div>
|
||||||
|
</div>
|
||||||
|
<div class="imgWrap">
|
||||||
|
<img :src="item.themePicture">
|
||||||
|
</div>
|
||||||
|
<div class="num common">{{ item.synopsis }}</div>
|
||||||
|
<div class="info flexBetween common" >
|
||||||
|
<div class="time">{{ item.pushTime }}</div>
|
||||||
|
<span style="color: red;font-size: 14px;margin-right: 8px" :class="item.alreadyRead===1 ? 'alRead' : ''">{{ item.alreadyRead===1 ? '已处理' : '未处理' }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</van-pull-refresh>
|
||||||
|
</div>
|
||||||
|
<div class="empty" v-show="showEmpty">
|
||||||
|
<img src="@/assets/empty.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {myMixins} from "@/utils/myMixins"
|
||||||
|
import {getTrainingList} from "@/api/mine"
|
||||||
|
import {timeFormat} from "@/utils/common";
|
||||||
|
export default {
|
||||||
|
name: "diverTrainDocment",
|
||||||
|
computed: {
|
||||||
|
},
|
||||||
|
mixins:[myMixins],
|
||||||
|
data(){
|
||||||
|
return{
|
||||||
|
tabArr: [{name: '车型技术参数', status: 1}, {name: '中道服务规范', status:2},{name: '中道小课堂', status: 3}],
|
||||||
|
activeIndex: 0,
|
||||||
|
pageList:[],
|
||||||
|
totalList:[],
|
||||||
|
numInfo:'',
|
||||||
|
keyword:'',
|
||||||
|
show:false,
|
||||||
|
showEmpty:false,
|
||||||
|
isLoading:false,
|
||||||
|
driverId:'',
|
||||||
|
time:'',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
this.driverId = urlParams.get('driverId');
|
||||||
|
this.time=timeFormat(Date.now())
|
||||||
|
this.getTrainingList();
|
||||||
|
document.addEventListener('visibilitychange', async ( ) => {
|
||||||
|
let state = document.visibilityState
|
||||||
|
if (state == 'hidden') { // 用户离开了
|
||||||
|
}
|
||||||
|
if (state == 'visible') {
|
||||||
|
this.getTrainingList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
onRefresh() {
|
||||||
|
this.getTrainingList()
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$toast('刷新成功');
|
||||||
|
this.isLoading = false;
|
||||||
|
}, 1000);
|
||||||
|
},
|
||||||
|
async changeTab(index) {
|
||||||
|
this.activeIndex = index
|
||||||
|
await this.getTrainingList()
|
||||||
|
},
|
||||||
|
async getTrainingList(){
|
||||||
|
let res= await getTrainingList({
|
||||||
|
type:1,
|
||||||
|
id:this.driverId,
|
||||||
|
text:this.keyword || '',
|
||||||
|
})
|
||||||
|
this.totalList=[]
|
||||||
|
this.pageList=[]
|
||||||
|
this.numInfo=res.data
|
||||||
|
this.totalList=res.data.list
|
||||||
|
let result=[]
|
||||||
|
if(this.activeIndex === 0){
|
||||||
|
result=this.totalList?.filter(q => q.title === '车型技术参数');
|
||||||
|
}else if(this.activeIndex === 1){
|
||||||
|
result=this.totalList?.filter(q => q.title === '中道服务规范');
|
||||||
|
}else if(this.activeIndex === 2){
|
||||||
|
result=this.totalList?.filter(q => q.title === '中道小课堂');
|
||||||
|
}
|
||||||
|
if(result){
|
||||||
|
this.pageList=result[0].materials
|
||||||
|
this.time=timeFormat(Date.now())
|
||||||
|
}
|
||||||
|
if(this.pageList?.length === 0){
|
||||||
|
this.showEmpty = true
|
||||||
|
}else {
|
||||||
|
this.showEmpty = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import "@/styles/common.scss";
|
||||||
|
@import "@/styles/mixin.scss";
|
||||||
|
@import "@/styles/docment.scss";
|
||||||
|
@import "@/styles/driverDocment.scss";
|
||||||
|
.read{
|
||||||
|
padding: 2px 8px;
|
||||||
|
border-radius: 5px;
|
||||||
|
border: 1px solid red;
|
||||||
|
color: red;
|
||||||
|
font-size: 8px;
|
||||||
|
}
|
||||||
|
.alRead{
|
||||||
|
color: #cccccc !important;
|
||||||
|
}
|
||||||
|
.contentWrap{
|
||||||
|
height: calc(100% - 180px) !important;
|
||||||
|
}
|
||||||
|
</style>
|
@ -1,9 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
<template v-if="supplierId">
|
||||||
<div class="navBar">
|
<div class="navBar">
|
||||||
<van-nav-bar
|
<van-nav-bar
|
||||||
left-arrow
|
left-arrow
|
||||||
left-arrow-color="#FFFFFF"
|
left-arrow-color="#FFFFFF"
|
||||||
|
class="supplier"
|
||||||
:border="false"
|
:border="false"
|
||||||
:fixed="true"
|
:fixed="true"
|
||||||
:safe-area-inset-top="true"
|
:safe-area-inset-top="true"
|
||||||
@ -11,7 +13,7 @@
|
|||||||
>
|
>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div v-show="!show">文档资料</div>
|
<div v-show="!show">文档资料</div>
|
||||||
<van-field v-model="keyword" placeholder="请输入关键词" v-show="show" @input="getList"/>
|
<van-field v-model="keyword" placeholder="请输入关键词" v-show="show" @input="getNormalList"/>
|
||||||
</template>
|
</template>
|
||||||
<template slot="right">
|
<template slot="right">
|
||||||
<div class="rightWrap" @click="show = !show">
|
<div class="rightWrap" @click="show = !show">
|
||||||
@ -21,8 +23,37 @@
|
|||||||
</template>
|
</template>
|
||||||
</van-nav-bar>
|
</van-nav-bar>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
<div class="tab_wrap">
|
<template v-if="driverId">
|
||||||
|
<div class="navBar">
|
||||||
|
<van-nav-bar
|
||||||
|
:border="false"
|
||||||
|
:fixed="true"
|
||||||
|
:safe-area-inset-top="true"
|
||||||
|
>
|
||||||
|
<template slot="title">
|
||||||
|
<van-field
|
||||||
|
v-model="keyword"
|
||||||
|
placeholder="名称/关键词/简介"
|
||||||
|
>
|
||||||
|
<!-- <template #button>
|
||||||
|
<van-icon class="search" name="search" size="20" @click="getTrainingList"/>
|
||||||
|
</template>-->
|
||||||
|
</van-field>
|
||||||
|
</template>
|
||||||
|
<template slot="left">
|
||||||
|
<div class="navLeft" @click="goBack">
|
||||||
|
<van-icon class="icon" name="arrow-left" />
|
||||||
|
<div>返回</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template slot="right">
|
||||||
|
<van-icon class="search" name="search" size="20" @click="getNormalList"/>
|
||||||
|
</template>
|
||||||
|
</van-nav-bar>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<div :class="supplierId ? 'tab_wrap' : 'driver_tab_wrap'">
|
||||||
<div v-for="(item, index) in tabArr" :key="index" :class="{'active' : activeIndex == index}"
|
<div v-for="(item, index) in tabArr" :key="index" :class="{'active' : activeIndex == index}"
|
||||||
@click="changeTab(index)">
|
@click="changeTab(index)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
@ -30,23 +61,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="contentWrap" v-show="!showEmpty">
|
<div class="contentWrap" v-show="!showEmpty">
|
||||||
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" style="min-height:85vh">
|
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" style="min-height:85vh">
|
||||||
<div class="itemWrap" v-for="(item,index) in pageList" :key="index" @click="goH5Detail(item)">
|
<div class="itemWrap" v-for="(item,index) in pageList" :key="index" @click="goH5Detail(item,'文档资料')">
|
||||||
<div class="info flexBetween common">
|
<div class="info flexBetween common">
|
||||||
<div class="title">{{ item.pushUser }}</div>
|
<div class="title">{{ item.name }}</div>
|
||||||
<div class="time">{{ item.pushTime }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="imgWrap">
|
<div class="imgWrap">
|
||||||
<img :src="item.themePicture">
|
<img :src="item.themePicture">
|
||||||
<div class="name">{{item.name}}</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="num common">{{ item.synopsis }}</div>
|
<div class="num common">{{ item.synopsis }}</div>
|
||||||
<div class="doc flexBetween common">
|
<div class="time common">{{ item.pushTime }}</div>
|
||||||
<div class="left">{{ item.docType?.label }}</div>
|
|
||||||
<div class="right">
|
|
||||||
<span style="color: red;font-size: 14px;margin-right: 8px">{{ item.listShowButton==null ? '已处理' : '未处理' }}</span>
|
|
||||||
<span style="opacity: .9;color: #ccc">阅读 {{item.readCount}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</van-pull-refresh>
|
</van-pull-refresh>
|
||||||
</div>
|
</div>
|
||||||
@ -58,30 +81,33 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {myMixins} from "@/utils/myMixins"
|
import {myMixins} from "@/utils/myMixins"
|
||||||
import {pageList} from "@/api/mine";
|
import {getNormalList} from "@/api/mine";
|
||||||
export default {
|
export default {
|
||||||
name: "trainDocment",
|
name: "docmentList",
|
||||||
mixins:[myMixins],
|
mixins:[myMixins],
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
tabArr: [{name: '中道制度', status: 1}, {name: '技术参数', status: 2},],
|
tabArr: [{name: '车型技术参数', status: 1}, {name: '中道服务规范', status:2},{name: '中道小课堂', status: 3}, {name: '新手入列', status: 4},],
|
||||||
activeIndex: 0,
|
activeIndex: 0,
|
||||||
pageList:[],
|
pageList:[],
|
||||||
pageNum:1,
|
totalList:[],
|
||||||
pageSize:10,
|
|
||||||
keyword:'',
|
keyword:'',
|
||||||
trainingType:1,
|
|
||||||
isLoading:false,
|
isLoading:false,
|
||||||
show:false,
|
show:false,
|
||||||
showEmpty:false
|
showEmpty:false,
|
||||||
|
supplierId:'',
|
||||||
|
driverId:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getList()
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
this.supplierId = urlParams.get('supplierId');
|
||||||
|
this.driverId = urlParams.get('driverId');
|
||||||
|
this.getNormalList()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
onRefresh() {
|
onRefresh() {
|
||||||
this.getList()
|
this.getNormalList()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$toast('刷新成功');
|
this.$toast('刷新成功');
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
@ -89,32 +115,41 @@ export default {
|
|||||||
},
|
},
|
||||||
async changeTab(index) {
|
async changeTab(index) {
|
||||||
this.activeIndex = index
|
this.activeIndex = index
|
||||||
this.pageNum = 1
|
await this.getNormalList()
|
||||||
this.pageList = [];
|
|
||||||
if(this.activeIndex === 0){
|
|
||||||
this.trainingType =1
|
|
||||||
}else{
|
|
||||||
this.trainingType=2
|
|
||||||
}
|
|
||||||
await this.getList()
|
|
||||||
},
|
},
|
||||||
async getList(){
|
async getNormalList(){
|
||||||
let res= await pageList({
|
let res= await getNormalList({
|
||||||
pageNum:this.pageNum,
|
type:this.supplierId ? 2 : 1,
|
||||||
pageSize:this.pageSize,
|
// type:2,
|
||||||
docType:2,
|
id: this.supplierId ? this.supplierId : this.driverId,
|
||||||
trainingType:this.trainingType,
|
// id:this.supplierId,//33041,
|
||||||
keyword:this.keyword || ''
|
text:this.keyword || '',
|
||||||
})
|
})
|
||||||
this.pageList=res.data;
|
this.totalList=[]
|
||||||
if(res.data.length === 0){
|
this.pageList=[]
|
||||||
|
this.totalList=res.data.list
|
||||||
|
let result=[]
|
||||||
|
if(this.activeIndex === 0){
|
||||||
|
result=this.totalList?.filter(q => q.title === '车型技术参数');
|
||||||
|
}else if(this.activeIndex === 1){
|
||||||
|
result=this.totalList?.filter(q => q.title === '中道服务规范');
|
||||||
|
}else if(this.activeIndex === 2){
|
||||||
|
result=this.totalList?.filter(q => q.title === '中道小课堂');
|
||||||
|
}else if(this.activeIndex === 3){
|
||||||
|
result=this.totalList?.filter(q => q.title === '新手入列');
|
||||||
|
}
|
||||||
|
if(result){
|
||||||
|
this.pageList=result[0].materials
|
||||||
|
}
|
||||||
|
if(this.pageList?.length === 0){
|
||||||
this.showEmpty = true
|
this.showEmpty = true
|
||||||
}else {
|
}else {
|
||||||
this.showEmpty = false
|
this.showEmpty = false
|
||||||
} },
|
}
|
||||||
|
},
|
||||||
initShow(){
|
initShow(){
|
||||||
this.keyword= '',
|
this.keyword= '',
|
||||||
this.getList()
|
this.getNormalList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -124,29 +159,8 @@ export default {
|
|||||||
@import "@/styles/common.scss";
|
@import "@/styles/common.scss";
|
||||||
@import "@/styles/mixin.scss";
|
@import "@/styles/mixin.scss";
|
||||||
@import "@/styles/docment.scss";
|
@import "@/styles/docment.scss";
|
||||||
.tab_wrap {
|
@import "@/styles/driverDocment.scss";
|
||||||
@include fontWeightSize(bolder, 15px);
|
.supplier ::v-deep .van-nav-bar__content{
|
||||||
display: flex;
|
background-color: #2C395F !important;
|
||||||
justify-content: space-around;
|
|
||||||
padding: 5px 0 5px 0;
|
|
||||||
@include colorOpa(#737373,0.7);
|
|
||||||
div {
|
|
||||||
padding-top: 8px;
|
|
||||||
}
|
|
||||||
.active {
|
|
||||||
color: #3678FF;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.active:after {
|
|
||||||
content: '';
|
|
||||||
display: block;
|
|
||||||
@include wh(50px,3px);
|
|
||||||
background: linear-gradient(270deg, #33A3FF 0%, #176AFE 100%);
|
|
||||||
border-radius: 2px;
|
|
||||||
position: absolute;
|
|
||||||
margin-top: 3px;
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -11,7 +11,7 @@
|
|||||||
>
|
>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div v-show="!show">培训文档</div>
|
<div v-show="!show">培训文档</div>
|
||||||
<van-field v-model="keyword" placeholder="请输入关键词" v-show="show" @input="getList"/>
|
<van-field v-model="keyword" placeholder="请输入关键词" v-show="show" @input="getTrainingList"/>
|
||||||
</template>
|
</template>
|
||||||
<template slot="right">
|
<template slot="right">
|
||||||
<div class="rightWrap" @click="show = !show">
|
<div class="rightWrap" @click="show = !show">
|
||||||
@ -21,25 +21,26 @@
|
|||||||
</template>
|
</template>
|
||||||
</van-nav-bar>
|
</van-nav-bar>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="tab_wrap">
|
||||||
|
<div v-for="(item, index) in tabArr" :key="index" :class="{'active' : activeIndex == index}"
|
||||||
|
@click="changeTab(index)">
|
||||||
|
{{ item.name }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="contentWrap" v-show="!showEmpty">
|
<div class="contentWrap" v-show="!showEmpty">
|
||||||
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" style="min-height:85vh">
|
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" style="min-height:85vh">
|
||||||
<div class="itemWrap" v-for="(item,index) in pageList" :key="index" @click="goH5Detail(item)">
|
<div class="itemWrap" v-for="(item,index) in pageList" :key="index" @click="goH5Detail(item,'培训文档')">
|
||||||
<div class="info flexBetween common">
|
<div class="info flexBetween common">
|
||||||
<div class="title">{{ item.pushUser }}</div>
|
<div class="title">{{ item.name }}<span v-if="item.mustRead===1" class="read">必读</span></div>
|
||||||
<div class="time">{{ item.pushTime }}</div>
|
<!-- <div class="time">{{ item.pushTime }}</div>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="imgWrap">
|
<div class="imgWrap">
|
||||||
<img :src="item.themePicture">
|
<img :src="item.themePicture">
|
||||||
<div class="name">{{item.name}}</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="num common">{{ item.synopsis }}</div>
|
<div class="num common">{{ item.synopsis }}</div>
|
||||||
<div class="doc flexBetween common">
|
<div class="info flexBetween common" >
|
||||||
<div class="left">{{ item.docType?.label }}</div>
|
<div class="time">{{ item.pushTime }}</div>
|
||||||
<div class="right">
|
<span style="color: red;font-size: 14px;margin-right: 8px" :class="item.alreadyRead===1 ? 'alRead' : ''">{{ item.alreadyRead===1 ? '已处理' : '未处理' }}</span>
|
||||||
<span style="color: red;font-size: 14px;margin-right: 8px">{{ item.listShowButton==null ? '已处理' : '未处理' }}</span>
|
|
||||||
<span style="opacity: .9;color: #ccc">阅读 {{item.readCount}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</van-pull-refresh>
|
</van-pull-refresh>
|
||||||
@ -52,7 +53,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {myMixins} from "@/utils/myMixins"
|
import {myMixins} from "@/utils/myMixins"
|
||||||
import {pageList} from "@/api/mine"
|
import {getTrainingList} from "@/api/mine"
|
||||||
export default {
|
export default {
|
||||||
name: "trainDocment",
|
name: "trainDocment",
|
||||||
computed: {
|
computed: {
|
||||||
@ -60,35 +61,65 @@ export default {
|
|||||||
mixins:[myMixins],
|
mixins:[myMixins],
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
tabArr: [{name: '车型技术参数', status: 1}, {name: '中道服务规范', status:2},{name: '中道小课堂', status: 3}],
|
||||||
|
activeIndex: 0,
|
||||||
pageNum:1,
|
pageNum:1,
|
||||||
pageSize:10,
|
pageSize:10,
|
||||||
pageList:[],
|
pageList:[],
|
||||||
|
totalList:[],
|
||||||
keyword:'',
|
keyword:'',
|
||||||
show:false,
|
show:false,
|
||||||
showEmpty:false,
|
showEmpty:false,
|
||||||
isLoading:false,
|
isLoading:false,
|
||||||
|
supplierId:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getList();
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
this.supplierId = urlParams.get('supplierId');
|
||||||
|
this.getTrainingList();
|
||||||
|
document.addEventListener('visibilitychange', async ( ) => {
|
||||||
|
let state = document.visibilityState
|
||||||
|
if (state == 'hidden') { // 用户离开了
|
||||||
|
}
|
||||||
|
if (state == 'visible') {
|
||||||
|
this.getTrainingList();
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
onRefresh() {
|
onRefresh() {
|
||||||
this.getList()
|
this.getTrainingList()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$toast('刷新成功');
|
this.$toast('刷新成功');
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
}, 1000);
|
}, 1000);
|
||||||
},
|
},
|
||||||
async getList(){
|
async changeTab(index) {
|
||||||
let res= await pageList({
|
this.activeIndex = index
|
||||||
pageNum:this.pageNum,
|
await this.getTrainingList()
|
||||||
pageSize:this.pageSize,
|
},
|
||||||
docType:1,
|
async getTrainingList(){
|
||||||
keyword:this.keyword || ''
|
let res= await getTrainingList({
|
||||||
|
type:2,
|
||||||
|
id: this.supplierId,
|
||||||
|
text:this.keyword || '',
|
||||||
})
|
})
|
||||||
this.pageList=res.data;
|
this.totalList=[]
|
||||||
if(res.data.length === 0){
|
this.pageList=[]
|
||||||
|
this.totalList=res.data.list
|
||||||
|
let result=[]
|
||||||
|
if(this.activeIndex === 0){
|
||||||
|
result=this.totalList?.filter(q => q.title === '车型技术参数');
|
||||||
|
}else if(this.activeIndex === 1){
|
||||||
|
result=this.totalList?.filter(q => q.title === '中道服务规范');
|
||||||
|
}else if(this.activeIndex === 2){
|
||||||
|
result=this.totalList?.filter(q => q.title === '中道小课堂');
|
||||||
|
}
|
||||||
|
if(result){
|
||||||
|
this.pageList=result[0].materials
|
||||||
|
}
|
||||||
|
if(this.pageList?.length === 0){
|
||||||
this.showEmpty = true
|
this.showEmpty = true
|
||||||
}else {
|
}else {
|
||||||
this.showEmpty = false
|
this.showEmpty = false
|
||||||
@ -96,7 +127,7 @@ export default {
|
|||||||
},
|
},
|
||||||
initShow(){
|
initShow(){
|
||||||
this.keyword= '',
|
this.keyword= '',
|
||||||
this.getList()
|
this.getTrainingList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -105,4 +136,14 @@ export default {
|
|||||||
@import "@/styles/common.scss";
|
@import "@/styles/common.scss";
|
||||||
@import "@/styles/mixin.scss";
|
@import "@/styles/mixin.scss";
|
||||||
@import "@/styles/docment.scss";
|
@import "@/styles/docment.scss";
|
||||||
|
.read{
|
||||||
|
padding: 2px 8px;
|
||||||
|
border-radius: 5px;
|
||||||
|
border: 1px solid red;
|
||||||
|
color: red;
|
||||||
|
font-size: 8px;
|
||||||
|
}
|
||||||
|
.alRead{
|
||||||
|
color: #cccccc !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
@ -16,13 +16,26 @@
|
|||||||
<img class="startImg" src="@/assets/start.png" />
|
<img class="startImg" src="@/assets/start.png" />
|
||||||
<span>身份证正面</span>
|
<span>身份证正面</span>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <van-image @click="handlePreview" @remove="handleRemove" style="width: 54px;height: 54px;" class="camerImg" v-if="identityCardFront" :src="identityCardFront" />-->
|
||||||
|
<!-- <el-upload-->
|
||||||
|
<!-- v-else-->
|
||||||
|
<!-- :action="baseURL + '/order/uploadImage'"-->
|
||||||
|
<!-- :headers='authorization'-->
|
||||||
|
<!-- accept=".png,.jpg,.jpeg,.zip,.rar,.xlsx,.xsavels,.pdf,.PDF,.doc,.docx"-->
|
||||||
|
<!-- :on-success="changeHandle"-->
|
||||||
|
<!-- :before-upload="checkImgType"-->
|
||||||
|
<!-- class="upload-demo"-->
|
||||||
|
<!-- :show-file-list="false"-->
|
||||||
|
<!-- >-->
|
||||||
|
<!-- <van-icon slot="default" name="plus" style="font-size: 54px" />-->
|
||||||
|
<!-- </el-upload>-->
|
||||||
<van-uploader
|
<van-uploader
|
||||||
v-model="identityCardFrontList"
|
v-model="identityCardFrontList"
|
||||||
:after-read="identityCardFrontHandler"
|
:after-read="identityCardFrontHandler"
|
||||||
:max-size="5 * 1024 * 1024"
|
:max-count="1"
|
||||||
max-count="1"
|
|
||||||
:preview-size="54"
|
:preview-size="54"
|
||||||
accept="image "
|
:max-size="5 * 1024 * 1024"
|
||||||
|
accept="image/*"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="lineBot"></div>
|
<div class="lineBot"></div>
|
||||||
@ -139,11 +152,15 @@ import {saveDriver, uploadImage, ocrHandler} from "@/api/mine"
|
|||||||
import TwoCommonBtn from "@/components/twoBtnCommon.vue"
|
import TwoCommonBtn from "@/components/twoBtnCommon.vue"
|
||||||
import CellGroup from "@/components/cellGroup.vue"
|
import CellGroup from "@/components/cellGroup.vue"
|
||||||
import {formatDate1} from "@/utils/common"
|
import {formatDate1} from "@/utils/common"
|
||||||
|
// import {ImagePreview} from "vant";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "driverAdd",
|
name: "driverAdd",
|
||||||
mixins:[myMixins],
|
mixins:[myMixins],
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
// baseURL:'',
|
||||||
|
// licenseOcrInfo:'',
|
||||||
id:'',
|
id:'',
|
||||||
driverName:"",
|
driverName:"",
|
||||||
driverPhone:"",
|
driverPhone:"",
|
||||||
@ -169,9 +186,22 @@ export default {
|
|||||||
idCardAuthority:'',
|
idCardAuthority:'',
|
||||||
idCardValidStartTime:'',
|
idCardValidStartTime:'',
|
||||||
idCardValidEndTime:'',
|
idCardValidEndTime:'',
|
||||||
|
// authorization:{Authorization: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzb25nIiwiYXVkIjpbInN1cHBsaWVyLWFwcCJdLCJuYmYiOjE3MjY4MDk4MTQsInVzZXJfaW5mbyI6eyJ1c2VySWQiOjU0NjU0LCJwaG9uZSI6IjE3NjMwMDM1NjU4IiwibmFtZSI6InNvbmciLCJzdXBwbGllck5hbWUiOiLkuIrmtbfmtYvor5XkvpvlupTllYYiLCJzdXBwbGllcklkIjozMzA0MSwic3VwcGxpZXJUeXBlIjoyLCJ1c2VybmFtZSI6InNvbmciLCJ1c2VyVHlwZSI6InJlc2N1ZUFwcCIsImRldmljZUlkIjoiMTkwZTM1ZjdlMTRhYzdjMDAwNyIsImF1dGhvcml0aWVzIjpbXX0sInNjb3BlIjpbImFsbCJdLCJpc3MiOiJodHRwczovL3Npbm9hc3Npc3QuY29tIiwiZXhwIjoxNzI2ODk2MjE0LCJpYXQiOjE3MjY4MDk4MTR9.5KTAMXZf8ll6HS4Z49YJQ1HiRvHr79Q1goDAGEtsBmY'},
|
||||||
|
// authorization:{Authorization:''},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
/* if (window.location.href.includes('www.sinoassist.com')) {
|
||||||
|
this.baseURL = 'https://api.sinoassist.com'
|
||||||
|
} else if (window.location.href.includes('ccreview.sino-assist.com')) {
|
||||||
|
this.baseURL = 'https://api.sinoassist.com'
|
||||||
|
} else {
|
||||||
|
this.baseURL = 'https://api1.sino-assist.com'
|
||||||
|
// this.baseURL = 'http://localhost:8080'
|
||||||
|
|
||||||
|
}
|
||||||
|
let token=localStorage.getItem('token')
|
||||||
|
this.authorization.Authorization=token;*/
|
||||||
this.id = this.$route.params?.id;
|
this.id = this.$route.params?.id;
|
||||||
this.driverName = this.$route.params?.name;
|
this.driverName = this.$route.params?.name;
|
||||||
this.driverPhone = this.$route.params?.phone;
|
this.driverPhone = this.$route.params?.phone;
|
||||||
@ -215,6 +245,41 @@ export default {
|
|||||||
isUse(e){
|
isUse(e){
|
||||||
this.states=e
|
this.states=e
|
||||||
},
|
},
|
||||||
|
/* checkImgType(file) {
|
||||||
|
const FileExt = file.name.replace(/.+\./, "");
|
||||||
|
const isLt5M = file.size / 1024 / 1024 < 5;
|
||||||
|
const whiteList = ['png', 'jpeg', 'jpg'];
|
||||||
|
if (whiteList.indexOf(FileExt.toLowerCase()) === -1) {
|
||||||
|
this.$message.error("请上传正确的文件格式:" + whiteList.join('、'))
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if (!isLt5M) {
|
||||||
|
this.$message.error('上传图片大小不能超过 5MB!');
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleRemove() {
|
||||||
|
this.identityCardFront = ''
|
||||||
|
},
|
||||||
|
handlePreview() {
|
||||||
|
ImagePreview({
|
||||||
|
images: this.identityCardFront,
|
||||||
|
startPosition: 1,
|
||||||
|
closeable: true,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
async changeHandle(response) {
|
||||||
|
if (response.success === true) {
|
||||||
|
this.$toast('上传成功')
|
||||||
|
// this.form.identityCardFront = response.data;
|
||||||
|
// await this.ocrFrontHandler()
|
||||||
|
this.identityCardFront = response.data;
|
||||||
|
console.log("this.identityCardFront",this.identityCardFront)
|
||||||
|
await this.idCardOcrHandler();
|
||||||
|
} else {
|
||||||
|
this.$toast('上传失败')
|
||||||
|
}
|
||||||
|
},*/
|
||||||
async identityCardFrontHandler(file) { // 上传身份证正面照片
|
async identityCardFrontHandler(file) { // 上传身份证正面照片
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("file" , file.file);
|
formData.append("file" , file.file);
|
||||||
|
@ -111,7 +111,7 @@ export default {
|
|||||||
padding: 13px 24px 0;
|
padding: 13px 24px 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
//overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
<div class="metersWrap">
|
<div class="metersWrap">
|
||||||
<div class="item" >
|
<div class="item" >
|
||||||
<div class="leftKiloMeters">小轮个数</div>
|
<div class="leftKiloMeters">小轮个数</div>
|
||||||
<div class="rightInput"><input type="number" v-model="form.tyreNumber"/>个</div>
|
<div class="rightInput"><input type="number" v-model="form.tyreNumber" @input="handleInput"/>个</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="leftKiloMeters">等候费</div>
|
<div class="leftKiloMeters">等候费</div>
|
||||||
@ -82,7 +82,7 @@ export default {
|
|||||||
bridgeAmountAb:'',
|
bridgeAmountAb:'',
|
||||||
bridgeAmountBc:'',
|
bridgeAmountBc:'',
|
||||||
bridgeAmountCa:'',
|
bridgeAmountCa:'',
|
||||||
tyreNumber:'',
|
tyreNumber:0,
|
||||||
waitAmount:'',
|
waitAmount:'',
|
||||||
dilemmaFee:'',
|
dilemmaFee:'',
|
||||||
customerAmount:'',
|
customerAmount:'',
|
||||||
@ -98,6 +98,15 @@ export default {
|
|||||||
await this.getDetail()
|
await this.getDetail()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
handleInput(event) {
|
||||||
|
const newValue = parseInt(event.target.value, 10);
|
||||||
|
if (!isNaN(newValue) && newValue >= 0 && newValue <= 4) {
|
||||||
|
this.form.tyreNumber = newValue;
|
||||||
|
} else {
|
||||||
|
this.$toast('请输入0到4之间的数字')
|
||||||
|
this.form.tyreNumber = null; // 或者上一个有效值
|
||||||
|
}
|
||||||
|
},
|
||||||
submit() {
|
submit() {
|
||||||
this.updatSettlement()
|
this.updatSettlement()
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<div id="supplierScore" ref="supplierScore" style="width: 100%;height: 125px" @click="handle"></div>
|
<div id="supplierScore" ref="supplierScore" class="chart" @click="handle"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -14,14 +14,25 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
/* if(this.data){
|
||||||
this.drawHandle();
|
this.drawHandle();
|
||||||
|
}*/
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.drawHandle();
|
||||||
|
},500)
|
||||||
|
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
initCircle(){
|
||||||
|
// setTimeout(()=>{
|
||||||
|
this.drawHandle();
|
||||||
|
// },500)
|
||||||
|
},
|
||||||
handle(){
|
handle(){
|
||||||
if(this.titleText == '投诉率'){
|
if(this.titleText == '投诉率'){
|
||||||
console.log(this.titleText)
|
this.$emit('clickComplain')
|
||||||
}else if(this.titleText == '使用率'){
|
}else if(this.titleText == '使用率'){
|
||||||
console.log(this.titleText)
|
this.$emit('clickUse')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 绘制 总分图表
|
// 绘制 总分图表
|
||||||
@ -95,4 +106,8 @@ export default {
|
|||||||
.img{
|
.img{
|
||||||
@include whMarLe(12px,10px,4px);
|
@include whMarLe(12px,10px,4px);
|
||||||
}
|
}
|
||||||
|
.chart{
|
||||||
|
width: 100%;
|
||||||
|
height: 125px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
@ -1,45 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="wrap">
|
|
||||||
<el-table :data="tableData"
|
|
||||||
stripe
|
|
||||||
border
|
|
||||||
style="width: 100%"
|
|
||||||
class="custom-table">
|
|
||||||
<el-table-column
|
|
||||||
v-for="(column,i) in tableData"
|
|
||||||
:key="i"
|
|
||||||
:prop="column.prop"
|
|
||||||
:label="column.label"
|
|
||||||
:fixed="i===0"
|
|
||||||
:width="i===0 ? '40' :'80'"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: "commonTable",
|
|
||||||
props: ['tableData'],
|
|
||||||
data() {
|
|
||||||
return {}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
},
|
|
||||||
methods: {}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
|
||||||
@import "@/styles/mixin.scss";
|
|
||||||
::v-deep .el-table thead{
|
|
||||||
font-size: 11px;
|
|
||||||
color: #1D2129;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
::v-deep .el-table th.el-table__cell.is-leaf {
|
|
||||||
background-color: #E5E6EB;
|
|
||||||
}
|
|
||||||
</style>
|
|
172
src/views/kpi/components/noFit-table.vue
Normal file
172
src/views/kpi/components/noFit-table.vue
Normal file
@ -0,0 +1,172 @@
|
|||||||
|
<template>
|
||||||
|
<div class="wrap">
|
||||||
|
<el-table :data="tableData"
|
||||||
|
stripe
|
||||||
|
border
|
||||||
|
style="width: 100%"
|
||||||
|
height="100%"
|
||||||
|
v-loading="loading"
|
||||||
|
:cell-style="setTableCellStyle"
|
||||||
|
class="custom-table">
|
||||||
|
<template v-if="active===1">
|
||||||
|
<el-table-column v-for="item in labelList" :key="item.prop" :label="item.label" :prop="item.prop" align="center">
|
||||||
|
<template slot-scope="scope">{{scope.row[item.prop]}} </template>
|
||||||
|
</el-table-column>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<el-table-column v-for="column in labelList" :key="column.prop" :prop="column.prop" :label="column.label"
|
||||||
|
align="center" min-width="100" :width="(isMobile && (column.label=='案件编号' || column.label=='服务内容')) ? 70 : 'auto'">
|
||||||
|
</el-table-column>
|
||||||
|
</template>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "noFit-table",
|
||||||
|
props: ['tableData', 'labelList', 'loading', 'isMobile','active'],
|
||||||
|
data() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
setTableCellStyle({ row, column,columnIndex }) {
|
||||||
|
// 月总表格被转置,原始方法失效,重新定义对比
|
||||||
|
if(this.active===1){
|
||||||
|
if(row.month == '3′接单率(%)'){
|
||||||
|
if(columnIndex){
|
||||||
|
let res=row[column.property]
|
||||||
|
const rate = parseFloat(res && res.replace('%', ''));
|
||||||
|
if(rate < 95){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(row.month == '接单时效(分)'){
|
||||||
|
if(columnIndex){
|
||||||
|
let res=row[column.property]
|
||||||
|
if(res > 5){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(row.month == '到达时效(分)'){
|
||||||
|
if(columnIndex){
|
||||||
|
let res=row[column.property]
|
||||||
|
if(res > 40){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(row.month == '总聚合成功率(%)'){
|
||||||
|
if(columnIndex){
|
||||||
|
let res=row[column.property]
|
||||||
|
const rate = parseFloat(res && res.replace('%', ''));
|
||||||
|
if(rate < 80){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(row.month == '使用率(%)'){
|
||||||
|
if(columnIndex){
|
||||||
|
let res=row[column.property]
|
||||||
|
const rate = parseFloat(res && res.replace('%', ''));
|
||||||
|
if(rate < 95){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(row.month == '投诉率(%)'){
|
||||||
|
if(columnIndex){
|
||||||
|
let res=row[column.property]
|
||||||
|
const rate = parseFloat(res && res.replace('%', ''));
|
||||||
|
if(rate > 0.1){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 接单率
|
||||||
|
if(column.property=='threeMinutesReceivingRate'){
|
||||||
|
if(columnIndex){
|
||||||
|
const rate = parseFloat(row.threeMinutesReceivingRate && row.threeMinutesReceivingRate.replace('%', ''));
|
||||||
|
if(rate < 95){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//师傅接单时效》5
|
||||||
|
if(column.property=='receiving'){
|
||||||
|
if(columnIndex){
|
||||||
|
if(row.receiving > 5){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//到达时效》40
|
||||||
|
if(column.property=='arriving'){
|
||||||
|
if(columnIndex){
|
||||||
|
if(row.arriving > 40){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//聚合成功率《80
|
||||||
|
if(column.property=='polymerizationSuccessRate'){
|
||||||
|
if(columnIndex){
|
||||||
|
const rate = parseFloat(row.polymerizationSuccessRate && row.polymerizationSuccessRate.replace('%', ''));
|
||||||
|
if(rate < 80){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//app使用率《95
|
||||||
|
if(column.property=='appRate'){
|
||||||
|
if(columnIndex){
|
||||||
|
const rate = parseFloat(row.appRate && row.appRate.replace('%', ''));
|
||||||
|
if(rate < 95){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//催促率》3
|
||||||
|
if(column.property=='urgeRate'){
|
||||||
|
if(columnIndex){
|
||||||
|
const rate = parseFloat(row.urgeRate && row.urgeRate.replace('%', ''));
|
||||||
|
if(rate > 3){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//投诉率》0.1
|
||||||
|
if(column.property=='complainOrderRate'){
|
||||||
|
if(columnIndex){
|
||||||
|
const rate = parseFloat(row.complainOrderRate.replace('%', ''));
|
||||||
|
if(rate > 0.1){
|
||||||
|
return {backgroundColor: '#F1B289'}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import "@/styles/mixin.scss";
|
||||||
|
::v-deep .el-table{
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
::v-deep .el-table thead{
|
||||||
|
color: #1D2129;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
::v-deep .el-table th.el-table__cell.is-leaf {
|
||||||
|
background-color: #E5E6EB;
|
||||||
|
}
|
||||||
|
::v-deep .el-table .el-table__cell{
|
||||||
|
padding: 4px 0 !important;
|
||||||
|
}
|
||||||
|
</style>
|
File diff suppressed because it is too large
Load Diff
308
src/views/newcomerTraining/driverTrainingList.vue
Normal file
308
src/views/newcomerTraining/driverTrainingList.vue
Normal file
@ -0,0 +1,308 @@
|
|||||||
|
<template>
|
||||||
|
<div class="wrap" :style="{ 'overflow-y': showPoup ? 'hidden' : 'auto' }">
|
||||||
|
<div class="navBar">
|
||||||
|
<van-nav-bar title="师傅培训" :border="false" :fixed="true" :safe-area-inset-top="true">
|
||||||
|
<template slot="left" v-if="isFinished">
|
||||||
|
<van-icon name="checked" color="#37ec37" size="20"/>
|
||||||
|
</template>
|
||||||
|
</van-nav-bar>
|
||||||
|
</div>
|
||||||
|
<div class="contentWrap" v-show="!showEmpty">
|
||||||
|
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" style="min-height:85vh">
|
||||||
|
<div class="itemWrap" v-for="(item,index) in pageList" :key="index" @click="goH5Detail(item,'培训文档')">
|
||||||
|
<div class="info flexBetween common">
|
||||||
|
<div class="title">{{ item.name }}</div>
|
||||||
|
<!-- <div class="time">{{ item.pushTime }}</div>-->
|
||||||
|
</div>
|
||||||
|
<div class="imgWrap"><img :src="item.themePicture"></div>
|
||||||
|
<div class="num common">{{ item.synopsis }}</div>
|
||||||
|
<div class="info flexBetween common">
|
||||||
|
<div class="time">{{ item.pushTime }}</div>
|
||||||
|
<template v-if="item.alreadyRead === 1">
|
||||||
|
<div class="status" style="color: #cccccc">已处理</div>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<div class="status" >未处理</div>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</van-pull-refresh>
|
||||||
|
</div>
|
||||||
|
<div class="empty" v-show="showEmpty">
|
||||||
|
<img src="@/assets/empty.png" />
|
||||||
|
</div>
|
||||||
|
<div class="poupCommon" v-if="showPoup">
|
||||||
|
<div class="container showPoupContainer">
|
||||||
|
<div class="con">
|
||||||
|
<div class="title">培训提醒</div>
|
||||||
|
<div class="content">欢迎使用中道司机APP。请您先完成培训,阅读文章,并问答相应问题。完成后即可正常使用APP。祝您使用愉快!</div>
|
||||||
|
<div class="line"></div>
|
||||||
|
<div class="btnWrap">
|
||||||
|
<div class="nextBtn" @click="showPoup = false">确定</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="poupCommon" v-if="isFinished">
|
||||||
|
<div class="container finishContainer">
|
||||||
|
<div class="con">
|
||||||
|
<div class="title">提示</div>
|
||||||
|
<div class="content">恭喜您,您已经全部完成培训!现在您可以正常使用我们的app,请前往体验。</div>
|
||||||
|
<div class="line"></div>
|
||||||
|
<div class="btnWrap">
|
||||||
|
<div class="nextBtn" @click="goApp">前往</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {myMixins} from "@/utils/myMixins"
|
||||||
|
import {driverTrainList} from "@/api/mine"
|
||||||
|
export default {
|
||||||
|
name: "driverTrainingList",
|
||||||
|
computed: {
|
||||||
|
},
|
||||||
|
mixins:[myMixins],
|
||||||
|
data(){
|
||||||
|
return{
|
||||||
|
pageList:[],
|
||||||
|
show:false,
|
||||||
|
showEmpty:false,
|
||||||
|
isLoading:false,
|
||||||
|
showPoup:true,//进入弹框
|
||||||
|
isFinished:false,
|
||||||
|
driverId:'',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
this.driverId = urlParams.get('driverId');
|
||||||
|
this.getList();
|
||||||
|
document.addEventListener('visibilitychange', async ( ) => {
|
||||||
|
let state = document.visibilityState
|
||||||
|
if (state == 'hidden') { // 用户离开了
|
||||||
|
}
|
||||||
|
if (state == 'visible') {
|
||||||
|
this.getList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
onRefresh() {
|
||||||
|
this.getList()
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$toast('刷新成功');
|
||||||
|
this.isLoading = false;
|
||||||
|
}, 1000);
|
||||||
|
},
|
||||||
|
|
||||||
|
async getList(){
|
||||||
|
let res= await driverTrainList({
|
||||||
|
driverId:this.driverId,//79639
|
||||||
|
})
|
||||||
|
this.pageList=res.data?.list;
|
||||||
|
if(res.data.assessState == 0){
|
||||||
|
this.isFinished=false
|
||||||
|
}else {
|
||||||
|
this.isFinished=true //是否完成
|
||||||
|
}
|
||||||
|
if(this.pageList?.length === 0){
|
||||||
|
this.showEmpty = true
|
||||||
|
}else {
|
||||||
|
this.showEmpty = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
goApp(){
|
||||||
|
let data = {"action":"goBack","params":""}
|
||||||
|
var u = navigator.userAgent;
|
||||||
|
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
||||||
|
if(isiOS){
|
||||||
|
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
||||||
|
}else {
|
||||||
|
window.android.sendMessage("goBack");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import "@/styles/common.scss";
|
||||||
|
@import "@/styles/mixin.scss";
|
||||||
|
@import "@/styles/docment.scss";
|
||||||
|
@import "@/styles/driverDocment.scss";
|
||||||
|
.contentWrap{
|
||||||
|
height: calc(100% - 50px) !important;
|
||||||
|
}
|
||||||
|
.status{
|
||||||
|
color: red;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-right: 8px;
|
||||||
|
text-align: right
|
||||||
|
}
|
||||||
|
.wrap{
|
||||||
|
position: relative;
|
||||||
|
overflow-y: hidden;
|
||||||
|
}
|
||||||
|
.poupCommon{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: rgba(0,0,0,.7);
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
.showPoupContainer{
|
||||||
|
height: 310px;
|
||||||
|
background-size: 320px 310px;
|
||||||
|
.content{
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.btnWrap{
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.finishContainer{
|
||||||
|
height: 260px;
|
||||||
|
background-size: 320px 260px;
|
||||||
|
.con{
|
||||||
|
top: 80px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.container{
|
||||||
|
width: 320px;
|
||||||
|
background-image: url("@/assets/trainBg.png");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
margin: auto;
|
||||||
|
.con{
|
||||||
|
position: absolute;
|
||||||
|
top: 100px;
|
||||||
|
left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.title{
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 19px;
|
||||||
|
color: #3364B7;
|
||||||
|
line-height: 26px;
|
||||||
|
width: 70%;
|
||||||
|
margin-left: 35px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.content{
|
||||||
|
width: 70%;
|
||||||
|
height: 92px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #4C5361;
|
||||||
|
line-height: 23px;
|
||||||
|
text-align: justify;
|
||||||
|
margin-top: 8px;
|
||||||
|
margin-left: 35px;
|
||||||
|
}
|
||||||
|
.line{
|
||||||
|
width: 285px;
|
||||||
|
height: 1px;
|
||||||
|
border-bottom: 1px solid #F1F2F5;
|
||||||
|
}
|
||||||
|
.btnWrap{
|
||||||
|
width: 92%;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 13px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
height: 40px;
|
||||||
|
line-height: 40px;
|
||||||
|
.closeBtn{
|
||||||
|
color: #999B9F;
|
||||||
|
}
|
||||||
|
.line{
|
||||||
|
width: 1px;
|
||||||
|
height: 48px;
|
||||||
|
border-right: 1px solid #F1F2F5;
|
||||||
|
}
|
||||||
|
.nextBtn{
|
||||||
|
color: #3364B7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//.poupWrap{
|
||||||
|
// width: 100%;
|
||||||
|
// height: 100%;
|
||||||
|
// background-color: rgba(0,0,0,.7);
|
||||||
|
// position: absolute;
|
||||||
|
// top: 0;
|
||||||
|
// left: 0;
|
||||||
|
// .container{
|
||||||
|
// width: 320px;
|
||||||
|
// height: 310px;
|
||||||
|
// background-image: url("@/assets/trainBg.png");
|
||||||
|
// background-size: 320px 310px;
|
||||||
|
// background-repeat: no-repeat;
|
||||||
|
// position: absolute;
|
||||||
|
// top: 0;
|
||||||
|
// bottom: 0;
|
||||||
|
// left: 0;
|
||||||
|
// right: 0;
|
||||||
|
// margin: auto;
|
||||||
|
// .con{
|
||||||
|
// position: absolute;
|
||||||
|
// top: 100px;
|
||||||
|
// left: 20px;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// .title{
|
||||||
|
// font-weight: bold;
|
||||||
|
// font-size: 19px;
|
||||||
|
// color: #3364B7;
|
||||||
|
// line-height: 26px;
|
||||||
|
// width: 70%;
|
||||||
|
// margin-left: 35px;
|
||||||
|
// text-align: center;
|
||||||
|
// }
|
||||||
|
// .content{
|
||||||
|
// width: 70%;
|
||||||
|
// height: 92px;
|
||||||
|
// font-size: 14px;
|
||||||
|
// color: #4C5361;
|
||||||
|
// line-height: 23px;
|
||||||
|
// text-align: justify;
|
||||||
|
// margin-top: 8px;
|
||||||
|
// margin-bottom: 20px;
|
||||||
|
// margin-left: 35px;
|
||||||
|
// }
|
||||||
|
// .line{
|
||||||
|
// width: 285px;
|
||||||
|
// height: 1px;
|
||||||
|
// border-bottom: 1px solid #F1F2F5;
|
||||||
|
// }
|
||||||
|
// .btnWrap{
|
||||||
|
// width: 92%;
|
||||||
|
// font-weight: bold;
|
||||||
|
// font-size: 13px;
|
||||||
|
// display: flex;
|
||||||
|
// justify-content: space-around;
|
||||||
|
// margin-top: 6px;
|
||||||
|
// height: 40px;
|
||||||
|
// line-height: 40px;
|
||||||
|
// .closeBtn{
|
||||||
|
// color: #999B9F;
|
||||||
|
// }
|
||||||
|
// .line{
|
||||||
|
// width: 1px;
|
||||||
|
// height: 48px;
|
||||||
|
// border-right: 1px solid #F1F2F5;
|
||||||
|
// }
|
||||||
|
// .nextBtn{
|
||||||
|
// color: #3364B7;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
</style>
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="wrap" :style="{ 'overflow-y': showPoup ? 'hidden' : 'auto' }">
|
<div class="wrap" :style="{ 'overflow-y': showPoup ? 'hidden' : 'auto' }">
|
||||||
<div class="navBar">
|
<div class="navBar">
|
||||||
<van-nav-bar title="新人培训" :border="false" :fixed="true" :safe-area-inset-top="true">
|
<van-nav-bar title="培训" :border="false" :fixed="true" :safe-area-inset-top="true">
|
||||||
<template slot="left" v-if="isFinished">
|
<template slot="left" v-if="isFinished">
|
||||||
<van-icon name="checked" color="#37ec37" size="20"/>
|
<van-icon name="checked" color="#37ec37" size="20"/>
|
||||||
</template>
|
</template>
|
||||||
@ -9,19 +9,23 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="contentWrap" v-show="!showEmpty">
|
<div class="contentWrap" v-show="!showEmpty">
|
||||||
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" style="min-height:85vh">
|
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" style="min-height:85vh">
|
||||||
<div class="itemWrap" v-for="(item,index) in pageList" :key="index" @click="goH5Detail(item)">
|
<div class="itemWrap" v-for="(item,index) in pageList" :key="index" @click="goH5Detail(item,'培训文档')">
|
||||||
<div class="info flexBetween common">
|
<div class="info flexBetween common">
|
||||||
<div class="title">{{ item.pushUser }}</div>
|
<div class="title">{{ item.name }}</div>
|
||||||
<div class="time">{{ item.pushTime }}</div>
|
<!-- <div class="time">{{ item.updateTime }}</div>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="imgWrap"><img :src="item.themePicture"></div>
|
<div class="imgWrap"><img :src="item.themePicture"></div>
|
||||||
<div class="num common">{{ item.synopsis }}</div>
|
<div class="num common">{{ item.synopsis }}</div>
|
||||||
<template v-if="item.listShowButton == null">
|
<div class="info flexBetween common" >
|
||||||
|
<div class="time">{{ item.pushTime }}</div>
|
||||||
|
<span style="color: red;font-size: 14px;margin-right: 8px" :class="item.alreadyRead===1 ? 'alRead' : ''">{{ item.alreadyRead===1 ? '已处理' : '未处理' }}</span>
|
||||||
|
</div>
|
||||||
|
<!-- <template v-if="item.alreadyRead === 1">
|
||||||
<div class="status" style="color: #cccccc">已处理</div>
|
<div class="status" style="color: #cccccc">已处理</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div class="status" >未处理</div>
|
<div class="status" >未处理</div>
|
||||||
</template>
|
</template>-->
|
||||||
</div>
|
</div>
|
||||||
</van-pull-refresh>
|
</van-pull-refresh>
|
||||||
</div>
|
</div>
|
||||||
@ -38,7 +42,6 @@
|
|||||||
<div class="nextBtn" @click="showPoup = false">确定</div>
|
<div class="nextBtn" @click="showPoup = false">确定</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="poupCommon" v-if="isFinished">
|
<div class="poupCommon" v-if="isFinished">
|
||||||
@ -51,17 +54,14 @@
|
|||||||
<div class="nextBtn" @click="goApp">前往</div>
|
<div class="nextBtn" @click="goApp">前往</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import { Dialog } from 'vant';
|
|
||||||
import {myMixins} from "@/utils/myMixins"
|
import {myMixins} from "@/utils/myMixins"
|
||||||
import {pageList} from "@/api/mine"
|
import {pageList} from "@/api/mine"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "newTrainingList",
|
name: "newTrainingList",
|
||||||
computed: {
|
computed: {
|
||||||
@ -78,16 +78,26 @@ export default {
|
|||||||
isLoading:false,
|
isLoading:false,
|
||||||
showPoup:true,//进入弹框
|
showPoup:true,//进入弹框
|
||||||
isFinished:false,
|
isFinished:false,
|
||||||
// showPoup:false,//进入弹框
|
|
||||||
// isFinished:true,
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// this.onRefresh();
|
// this.onRefresh();
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|
||||||
|
document.addEventListener('visibilitychange', async ( ) => {
|
||||||
|
let state = document.visibilityState
|
||||||
|
if (state == 'hidden') { // 用户离开了
|
||||||
|
// console.log('用户离开了')
|
||||||
|
}
|
||||||
|
if (state == 'visible') {
|
||||||
|
// console.log('用户回来了')
|
||||||
|
this.getList();
|
||||||
|
//调用接口,获取订单状态
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
console.log("createdcreatedcreated")
|
||||||
// this.getList();
|
// this.getList();
|
||||||
// 每次回答完问题之后返回需重新加结果
|
// 每次回答完问题之后返回需重新加结果
|
||||||
|
|
||||||
@ -111,16 +121,14 @@ export default {
|
|||||||
docType:1,
|
docType:1,
|
||||||
trainingType:4,
|
trainingType:4,
|
||||||
})
|
})
|
||||||
this.pageList=res.data;
|
this.pageList=res.data?.list || [];
|
||||||
let aaa=this.pageList.every(item=>item.listShowButton != 1)
|
if(res.data.assessState == 0){
|
||||||
if(aaa){
|
this.isFinished=false
|
||||||
this.showPoup=false
|
}else {
|
||||||
this.isFinished=true
|
this.isFinished=true //是否完成
|
||||||
// await this.allProcessed()
|
|
||||||
}
|
}
|
||||||
if(res.data.length === 0){
|
if(this.pageList?.length == 0){
|
||||||
this.showEmpty = true
|
this.showEmpty = true
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
this.showEmpty = false
|
this.showEmpty = false
|
||||||
}
|
}
|
||||||
@ -139,28 +147,6 @@ export default {
|
|||||||
window.android.sendMessage("goBack");
|
window.android.sendMessage("goBack");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/*allProcessed(){
|
|
||||||
Dialog.confirm({
|
|
||||||
title: '提示',
|
|
||||||
message: '恭喜您,您已经全部完成培训!现在您可以正常使用我们的app,请前往体验。',
|
|
||||||
confirmButtonText: '前往',
|
|
||||||
cancelButtonText: '稍后'
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
let data = {"action":"goBack","params":""}
|
|
||||||
var u = navigator.userAgent;
|
|
||||||
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
|
||||||
if(isiOS){
|
|
||||||
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
|
||||||
}else {
|
|
||||||
window.android.sendMessage("goBack");
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
// on cancel
|
|
||||||
});
|
|
||||||
console.log("全部处理")
|
|
||||||
},*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@ -168,6 +154,10 @@ export default {
|
|||||||
@import "@/styles/common.scss";
|
@import "@/styles/common.scss";
|
||||||
@import "@/styles/mixin.scss";
|
@import "@/styles/mixin.scss";
|
||||||
@import "@/styles/docment.scss";
|
@import "@/styles/docment.scss";
|
||||||
|
.contentWrap{
|
||||||
|
height: calc(100% - 50px) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.status{
|
.status{
|
||||||
color: red;
|
color: red;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@ -264,77 +254,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//.poupWrap{
|
.alRead{
|
||||||
// width: 100%;
|
color: #cccccc !important;
|
||||||
// height: 100%;
|
}
|
||||||
// background-color: rgba(0,0,0,.7);
|
|
||||||
// position: absolute;
|
|
||||||
// top: 0;
|
|
||||||
// left: 0;
|
|
||||||
// .container{
|
|
||||||
// width: 320px;
|
|
||||||
// height: 310px;
|
|
||||||
// background-image: url("@/assets/trainBg.png");
|
|
||||||
// background-size: 320px 310px;
|
|
||||||
// background-repeat: no-repeat;
|
|
||||||
// position: absolute;
|
|
||||||
// top: 0;
|
|
||||||
// bottom: 0;
|
|
||||||
// left: 0;
|
|
||||||
// right: 0;
|
|
||||||
// margin: auto;
|
|
||||||
// .con{
|
|
||||||
// position: absolute;
|
|
||||||
// top: 100px;
|
|
||||||
// left: 20px;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// .title{
|
|
||||||
// font-weight: bold;
|
|
||||||
// font-size: 19px;
|
|
||||||
// color: #3364B7;
|
|
||||||
// line-height: 26px;
|
|
||||||
// width: 70%;
|
|
||||||
// margin-left: 35px;
|
|
||||||
// text-align: center;
|
|
||||||
// }
|
|
||||||
// .content{
|
|
||||||
// width: 70%;
|
|
||||||
// height: 92px;
|
|
||||||
// font-size: 14px;
|
|
||||||
// color: #4C5361;
|
|
||||||
// line-height: 23px;
|
|
||||||
// text-align: justify;
|
|
||||||
// margin-top: 8px;
|
|
||||||
// margin-bottom: 20px;
|
|
||||||
// margin-left: 35px;
|
|
||||||
// }
|
|
||||||
// .line{
|
|
||||||
// width: 285px;
|
|
||||||
// height: 1px;
|
|
||||||
// border-bottom: 1px solid #F1F2F5;
|
|
||||||
// }
|
|
||||||
// .btnWrap{
|
|
||||||
// width: 92%;
|
|
||||||
// font-weight: bold;
|
|
||||||
// font-size: 13px;
|
|
||||||
// display: flex;
|
|
||||||
// justify-content: space-around;
|
|
||||||
// margin-top: 6px;
|
|
||||||
// height: 40px;
|
|
||||||
// line-height: 40px;
|
|
||||||
// .closeBtn{
|
|
||||||
// color: #999B9F;
|
|
||||||
// }
|
|
||||||
// .line{
|
|
||||||
// width: 1px;
|
|
||||||
// height: 48px;
|
|
||||||
// border-right: 1px solid #F1F2F5;
|
|
||||||
// }
|
|
||||||
// .nextBtn{
|
|
||||||
// color: #3364B7;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<div ><span class="opa">车辆名称:</span><span>{{ detailInfo.vehicleName }}</span></div>
|
<div ><span class="opa">车辆名称:</span><span>{{ detailInfo.vehicleName }}</span></div>
|
||||||
<div><span class="opa">车牌号:</span><span>{{ detailInfo.plateNumber }}</span></div>
|
<div><span class="opa">车牌号:</span><span>{{ detailInfo.plateNumber }}</span></div>
|
||||||
<!-- 审批中,通过,终止detailInfo.states ==1 || detailInfo.states ==2 ||detailInfo.states ==3-->
|
<!-- 审批中,通过,终止detailInfo.states ==1 || detailInfo.states ==2 ||detailInfo.states ==3-->
|
||||||
<div class="shopName" v-if="[1,2,3].includes(detailInfo.states)"><span class="opa" >门店信息:</span><span>{{detailInfo.repairPoint || ''}}</span></div>
|
<div class="shopName" v-if="[1,2,3].includes(detailInfo.states)"><span class="opa" >门店信息:</span><span class="textarea">{{detailInfo.repairPoint || ''}}</span></div>
|
||||||
<div class="shopImgList" v-if="[1,2,3].includes(detailInfo.states)">
|
<div class="shopImgList" v-if="[1,2,3].includes(detailInfo.states)">
|
||||||
<template v-if="detailInfo.storePhotoUrls && detailInfo.storePhotoUrls.indexOf(',') !== -1">
|
<template v-if="detailInfo.storePhotoUrls && detailInfo.storePhotoUrls.indexOf(',') !== -1">
|
||||||
<div v-for="(item,index) in (detailInfo.storePhotoUrls?.split(','))" :key="index">
|
<div v-for="(item,index) in (detailInfo.storePhotoUrls?.split(','))" :key="index">
|
||||||
@ -40,7 +40,7 @@
|
|||||||
<div v-if="noPassStatus"><span class="opa">车辆里程:</span><span>{{ parseInt(detailInfo.mileage) || '' }}km</span></div>
|
<div v-if="noPassStatus"><span class="opa">车辆里程:</span><span>{{ parseInt(detailInfo.mileage) || '' }}km</span></div>
|
||||||
<div v-if="noPassStatus"><span class="opa">结算类型:</span><span>{{ detailInfo.paymentType?.label || '' }}</span></div>
|
<div v-if="noPassStatus"><span class="opa">结算类型:</span><span>{{ detailInfo.paymentType?.label || '' }}</span></div>
|
||||||
<div v-if="noPassStatus && detailInfo.paymentType?.code !=2"><span class="opa">维修金额:</span><span>{{ detailInfo.amount || ''}}元</span></div>
|
<div v-if="noPassStatus && detailInfo.paymentType?.code !=2"><span class="opa">维修金额:</span><span>{{ detailInfo.amount || ''}}元</span></div>
|
||||||
<div v-if="noPassStatus && detailInfo.paymentType?.code !=2" class="shopName"><span class="opa">维保项目:</span><span class="project">{{ detailInfo.information ||'' }}</span></div>
|
<div v-if="noPassStatus && detailInfo.paymentType?.code !=2" class="shopName"><span class="opa">维保项目:</span><span class="project textarea">{{ detailInfo.information ||'' }}</span></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 不通过-->
|
<!-- 不通过-->
|
||||||
<div class="detailInfo" v-if="noPassStatus && detailInfo.paymentType?.code !=2">
|
<div class="detailInfo" v-if="noPassStatus && detailInfo.paymentType?.code !=2">
|
||||||
@ -335,13 +335,16 @@ export default {
|
|||||||
line-height: 27px;
|
line-height: 27px;
|
||||||
}
|
}
|
||||||
.shopName{
|
.shopName{
|
||||||
//width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
|
.textarea{
|
||||||
|
width: calc(100% - 60px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.project{
|
.project{
|
||||||
color: #E8A524;
|
color: #E8A524;
|
||||||
width: calc(100% - 60px);
|
//width: calc(100% - 60px);
|
||||||
}
|
}
|
||||||
.shopImgList{
|
.shopImgList{
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -11,7 +11,7 @@
|
|||||||
@click-left="goback"
|
@click-left="goback"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="baseInfo common">
|
<div class="baseInfo common" style="height: 344px">
|
||||||
<div class="title">基本信息:</div>
|
<div class="title">基本信息:</div>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
@ -47,9 +47,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class="titleLeft">扣除责任险费:</span>
|
<span class="titleLeft">扣除责任险费:</span>
|
||||||
<span class="content">{{orderInfo.policyAmount}} {{orderInfo.cutInsuranceAmount}}</span>
|
<span class="content">{{orderInfo.policyAmount}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<span class="titleLeft">车衣费用:</span>
|
||||||
|
<span class="content">{{orderInfo.carClothingToolAmount}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<span class="titleLeft">换电瓶费用:</span>
|
||||||
|
<span class="content">{{orderInfo.replaceBatteryAmount}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="baseInfo common">
|
<div class="baseInfo common">
|
||||||
<div class="title">审核数据:</div>
|
<div class="title">审核数据:</div>
|
||||||
|
Reference in New Issue
Block a user