151 Commits

Author SHA1 Message Date
c6fd1bc162 task#15348,服务商kpi搜索请求头字段更换
(cherry picked from commit 343bccdcfa)
2024-10-21 09:50:31 +08:00
5618ad989e task#15348,服务商kpi请求头字段更换
(cherry picked from commit fcce91b6b5)
2024-10-17 10:29:30 +08:00
a8cea5fb6a task#15348,服务商kpi请求头字段更换
(cherry picked from commit baf25587a8)
2024-10-17 10:29:29 +08:00
4017cf9520 task#15348,ios培训文档跳转参数加1000000
(cherry picked from commit b0fd520316)
2024-10-15 11:33:22 +08:00
789f1fa396 task#15348,删除vconsole 2024-10-14 17:35:51 +08:00
374a5182db task#15348,ios培训参数转换为int,去除Vscole 2024-10-14 17:35:04 +08:00
f83e646547 task#15348,添加vconsole
(cherry picked from commit 532b8d439b)
2024-10-14 17:25:07 +08:00
812f3e3a03 task#15348,删除Vconsole 2024-10-11 22:46:49 +08:00
b6a9836932 task#15348,司机app自动刷新功能 2024-10-11 20:47:49 +08:00
36d2895f2b task#15348,司机app自动刷新功能 2024-10-11 20:46:05 +08:00
d28a23e664 监听页面显示1 2024-10-11 20:38:22 +08:00
a642e7783c 监听页面显示 2024-10-11 20:35:38 +08:00
dccc3ae530 task#15348,司机培训界面 2024-10-11 20:31:52 +08:00
07ac2d1e86 task#15348,培训界面滚动条 2024-10-11 17:34:03 +08:00
6030432a8c task#15348,司机app滚动条高度 2024-10-11 17:26:18 +08:00
235fe85604 task#15348,司机app样式 2024-10-11 17:07:35 +08:00
a7f4018050 task#15348,司机app样式 2024-10-11 17:03:14 +08:00
5c96f06916 task#15348,司机app样式 2024-10-11 16:59:40 +08:00
2ad457c92a task#15348,司机app参数 2024-10-11 16:51:22 +08:00
dd440e81df task#15348,培训文档加cache:true, 2024-10-11 16:10:32 +08:00
8212c1cd8a task#15348,测试生命周期activated 2024-10-11 16:03:12 +08:00
a0e6681ad6 task#15348,测试生命周期activated 2024-10-11 16:00:56 +08:00
4cf076914d task#15348,测试生命周期 2024-10-11 15:18:12 +08:00
7220ad8989 task#15348,测试生命周期 2024-10-11 15:12:11 +08:00
85ecdceaf1 task#15348,测试生命周期 2024-10-11 15:09:51 +08:00
a319a9d097 task#15348,测试生命周期 2024-10-11 14:57:33 +08:00
06591b6eb4 task#15348,司机app培训,更新时间取当前时间 2024-10-11 14:48:31 +08:00
c9cedc526a task#15348,培训页弹框,只能通过按钮去关闭 2024-10-11 14:40:19 +08:00
d72a74c2ea task#15348,司机app,培训返回加事件 2024-10-11 13:39:13 +08:00
e950ce2589 task#15348,司机app,培训返回加事件 2024-10-11 13:38:46 +08:00
db45cecfe3 task#15348,调度app,培训完成给提示 2024-10-11 11:54:34 +08:00
9345b2ab79 task#15348,调度app,培训完成给提示 2024-10-11 11:51:13 +08:00
bc4f419aca task#15348,调度app,培训完成给提示 2024-10-11 11:43:18 +08:00
7a73b0b83a task#15348,调度app,培训完成给提示 2024-10-11 11:41:37 +08:00
45ca7a8382 task#15348,调度app,培训完成给提示 2024-10-11 11:38:18 +08:00
584fded2f7 task#15348,调度app,培训完成给提示 2024-10-11 11:31:27 +08:00
bd58a176f6 task#15348,调度app,培训排版更改 2024-10-11 10:42:42 +08:00
d8729033e1 task#15348,跳转H5加参数,培训有问答的加标识 2024-10-11 10:31:56 +08:00
20a9d7ebad task#15348,跳转H5加参数,区分是培训还是普通 2024-10-11 10:10:48 +08:00
9befe22373 task#15348,跳转H5加参数 2024-10-11 09:52:26 +08:00
ccf11f6fa6 task#15348,调度新签培训数据格式更换 2024-10-11 09:32:58 +08:00
edcd55b074 task#15348,新加师傅界面 2024-10-10 20:51:02 +08:00
bce648bdc6 task#15348,新加师傅界面 2024-10-10 20:44:06 +08:00
a5e4a2d5dd task#15348,添加调试工具 2024-10-10 15:20:19 +08:00
cc7ea113c4 task#15348,新签培训接口 2024-10-10 13:58:24 +08:00
5589417862 task#15348,培训文档和文档材料,已处理字体置灰 2024-10-09 17:50:07 +08:00
1dc5094172 task#15348,培训文档和文档材料,排班布局更新 2024-10-09 17:37:12 +08:00
413da6aea7 task#15348,培训文档和文档材料,跳转添加参数 2024-10-09 15:41:20 +08:00
f255bf48e4 task#15348,培训文档和文档材料获取supplierId 2024-10-09 09:37:49 +08:00
31d3bcf071 task#15348,列表接口获取更换 2024-10-08 16:30:04 +08:00
75e014562f task#15348,新人培训布局调整,必读字号减小 2024-09-26 17:42:15 +08:00
3919bf6934 task#15348,培训文档和文档资料布局更改 2024-09-26 17:00:29 +08:00
8223ff3e46 去除vConsole 2024-09-23 18:18:58 +08:00
6e7254607b 行驶证副业,代码恢复 2024-09-23 10:12:53 +08:00
0e82be5cbe 身份证正面面,代码恢复 2024-09-23 10:03:14 +08:00
b6d86c4517 身份证反面,参数更改 2024-09-20 17:50:04 +08:00
c3f859619f 身份证正面,文件更换 2024-09-20 17:05:01 +08:00
7b95507378 身份证正面,文件上传采用el-upload 2024-09-20 16:57:14 +08:00
250e68bed7 身份证正面,文件上传 2024-09-20 16:10:08 +08:00
e768f9c8f8 查询工单记账图片和修改服务商记账信息 接口添加参数 2024-09-20 16:09:05 +08:00
7aceb84ee5 task#,身份证正面上传兼容代码添加 2024-09-18 10:05:19 +08:00
0d91afc1e8 log 2024-09-14 15:15:12 +08:00
d362fef099 行驶证副页添加调试 2024-09-14 15:12:35 +08:00
5dc9bfb840 task#,身份证正面 2024-09-14 14:18:17 +08:00
fd1ad6db3c task#,身份证正面 2024-09-14 14:07:57 +08:00
2d78a9cee6 task#,身份证上传 2024-09-14 13:58:25 +08:00
68d9f83b66 task#,身份证上传,添加函数 2024-09-14 13:37:18 +08:00
728e70f00e task#,身份证上传添加验证 2024-09-14 13:16:49 +08:00
46e2cb3b3e task#,身份证上传添加验证 2024-09-14 11:49:06 +08:00
c22b3ac319 task#,身份证上传添加验证 2024-09-14 11:35:51 +08:00
4250119cce task#,身份证上传添加验证 2024-09-14 11:26:22 +08:00
5fc76a5765 task#,身份证上传去除:max-size 2024-09-14 11:14:38 +08:00
71e1b1ebb7 task#,增加VConsole 2024-09-14 11:03:15 +08:00
73ec8c267b task#14504,换电瓶费用,加号改为减号 2024-08-30 10:50:59 +08:00
9cd3a70f43 task#14504,记账界面,输入框只能输入整数 2024-08-21 15:27:31 +08:00
431ba13eea task#14504,记账界面,输入框只能输入整数 2024-08-21 15:24:18 +08:00
672ed153da task#14504,结算单页面,辅助轮个数最多可以填四个 2024-08-20 14:49:33 +08:00
65c33e54f5 task#14504,记账模块字段添加 2024-08-19 17:24:41 +08:00
dedb0f53e9 task#14504,kpi的pc端适配js代码影响了后台挂载的H5页面,只给window.location.pathname=='/h5/supplier/dispatch/kpiIndex'加适配 2024-08-07 13:58:50 +08:00
8bed0868f8 task#14504,记账-》查看详情加车衣,电瓶费用展示 2024-07-31 16:57:30 +08:00
70cea4d888 task#14504,记账-》车衣,电瓶费用展示详情界面 2024-07-31 14:48:37 +08:00
6d1df4a720 task#14504,记账-》添加车衣,电瓶,责任险费用有就扣除;新增结算比例,按地库费用结算 2024-07-31 13:56:46 +08:00
a7cf0a837e task#14504,删除首页默认服务商id 2024-07-30 15:29:56 +08:00
ec995b7548 task#14504,月总,客户评价率缺少百分号,移动端时效切换折线图数据bugfix,table双loading优化,请求慢时,日期渲染无效日期格式优化 2024-07-30 14:48:15 +08:00
372bbc44c0 task#14504,清除按钮位置调整,司机搜索使用name 2024-07-25 17:12:31 +08:00
7b160e12fb task#14504,清除按钮位置调整 2024-07-25 11:17:36 +08:00
4c393f3f1e task#14504,服务商搜索删除放大镜图标 2024-07-25 11:03:11 +08:00
5afbf9df90 task#14504, 分数文字右对齐,分数左对齐,订单相关的页面,全部加上分页,搜索服务商,加清除键 2024-07-23 14:18:15 +08:00
073814bd69 bug#4506, 重新记账模块是否扣除保险费int型转string展示 2024-07-18 11:25:47 +08:00
06fdbc4f84 story#4506, 司机名称搜索框加可清除功能 2024-07-11 21:06:55 +08:00
86ed97f265 story#4506, 页码调整 2024-07-11 09:36:59 +08:00
0aa9f3ec04 story#4506, KPI演示优化-240709 2024-07-10 21:19:53 +08:00
48cd129290 task#14196,二级tab切换bugfix 2024-07-09 16:20:30 +08:00
b8096b39f3 task#14196,高亮背景色改为蓝色 2024-07-09 15:41:56 +08:00
3a45615e4f task#14196,默认首页 2024-07-09 15:39:58 +08:00
d1b04ec51c task#14196,web端时效优化 2024-07-09 15:32:06 +08:00
dc091c6dd5 task#14196,保留两位小数 2024-07-09 15:16:44 +08:00
45914f0577 task#14196,折线图百分号处理 2024-07-09 15:02:02 +08:00
42694d57de task#14196,高亮提示 2024-07-09 10:06:54 +08:00
61ccb58af2 task#14196,首页 2024-07-08 21:22:03 +08:00
f6c33c8c36 task#14196,日总不需要筛选框 2024-07-08 20:49:41 +08:00
1fbc66a1d6 task#14196,师傅加司机名称筛选 2024-07-08 20:32:51 +08:00
b80a748dc9 task#14196,率*100保留两位小数 2024-07-08 19:05:07 +08:00
f38e2ce614 task#14196,客户满意度是率 2024-07-08 18:33:51 +08:00
febf9a636e task#14196,客户满意度是率 2024-07-08 18:15:54 +08:00
8deaa85c1c task#14196,数据率显示带百分号 2024-07-08 18:09:31 +08:00
70675fde50 task#14196,数据率*100 2024-07-08 18:02:56 +08:00
af297b5892 task#14196,web端搜索框字体大小优化 2024-07-08 17:43:09 +08:00
f472c878e8 task#14196,web端柱形图优化 2024-07-08 17:38:41 +08:00
5df83abfcf task#14196,中道首页不显示数据问题 2024-07-08 17:27:27 +08:00
11664e92bf task#14196,师傅日字段获取 2024-07-08 15:58:30 +08:00
4be4015e30 task#14196,数据显示优化 2024-07-08 14:24:31 +08:00
39603134fb task#14196,border适配问题 2024-07-08 13:59:47 +08:00
ad49a716b9 task#14196,.active的border样式更改 2024-07-08 13:33:29 +08:00
b1945ab42f task#14196,拖车小修40分钟到达率字段更换 2024-07-08 10:36:14 +08:00
4da4cacd7b task#14196,h5服务商名称动态 2024-07-08 09:51:09 +08:00
39c8bb857b task#14196,kpiWEB端优化 2024-07-08 09:37:02 +08:00
0dd54330af task#14196,kpiWEB端优化 2024-07-08 09:36:09 +08:00
a7c7dafa33 task#14196,kpi优化 2024-07-05 17:31:17 +08:00
b2af0684fa task#14196,kpi优化 2024-07-05 17:25:00 +08:00
cb50de4039 task#14196,kpi明细表格调整 2024-07-04 13:22:25 +08:00
7785c7ecbe task#14196,kpi界面适配web端更改css样式 2024-07-03 14:05:14 +08:00
f45792b527 task#14196,报备事项超出高度滚动条 2024-07-01 16:46:56 +08:00
793be9d28d task#14196,添加响应式判断,师傅表格数据调整 2024-07-01 16:32:37 +08:00
d4c6081f34 task#14196,data数据目前只有6月份,日期写死6月份 2024-07-01 13:41:01 +08:00
e11946352c task#14196,data动态数据添加 2024-07-01 10:32:19 +08:00
481c37f708 task#14196,忽略配置文件更改 2024-06-29 16:57:46 +08:00
605bc306a5 Merge branch 'master' into prod-24-06-20 2024-06-29 16:35:51 +08:00
b300809698 task#14196,kpi页面 2024-06-29 15:29:30 +08:00
d5d090cdc8 task#14072,门店信息换行bug 2024-06-21 14:33:28 +08:00
b6951292a9 task#14072,门店信息间距去掉 2024-06-20 16:48:17 +08:00
8d06b195db task#14072,照片链接为null的不展示 2024-06-20 14:32:08 +08:00
d21ee44404 task#14072,查看详情默认样式去除 2024-06-20 14:06:45 +08:00
7922f28a05 task#14072,审批列表添加滚动样式 2024-06-20 10:22:51 +08:00
6abcd2471e task#14072,审批列表添加滚动样式 2024-06-20 10:22:04 +08:00
0bb135bfba task#14072,返回按钮的方法更换 2024-06-20 09:51:55 +08:00
b05ceb4ba9 task#14072,维保终止弹框更换 2024-06-20 09:42:05 +08:00
140816da2e task#14072,返回按钮显示 2024-06-19 17:08:06 +08:00
c82feae79c task#14072,全包不展示一些内容,里程取整 2024-06-19 16:44:34 +08:00
f1bf9b9e55 task#14072,弹框默认不显示 2024-06-19 16:15:27 +08:00
d521aa40ef task#14072,终止原因输入框加边框显示 2024-06-19 16:13:13 +08:00
21e9d82923 task#14072,后台进入没有返回按钮,终止原因放进弹框 2024-06-19 15:42:06 +08:00
4ca4d51e29 task#14072,维保终止加原因输入框,非必填 2024-06-19 15:21:09 +08:00
27a169ee0d task#14072,维保终止加原因输入框,非必填 2024-06-19 10:47:42 +08:00
22cbef4f7a task#13992,详情字段更换 2024-06-18 15:29:20 +08:00
3a52fe5759 task#13992,详情字段更换 2024-06-18 15:07:22 +08:00
05708d1ee2 task#13992,待办事项自定义导航,审批详情的显示逻辑 2024-06-18 11:04:22 +08:00
eb62b71480 task#13992,审批详情按钮显示状态调整 2024-06-17 17:42:43 +08:00
d2adfe6d22 task#13992,审批详情按钮显示状态调整 2024-06-17 16:30:46 +08:00
08120506f6 task#13992,维保审批列表 2024-06-17 15:46:04 +08:00
374eb5070b task#13992,代办列表更新,新增维保审批列表 2024-06-11 09:49:36 +08:00
39 changed files with 5036 additions and 7166 deletions

2
.gitignore vendored
View File

@ -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*

199
package-lock.json generated
View File

@ -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.10.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.1.tgz",
"integrity": "sha512-SaPHK1A01VrNthlix6h1hq4uJu7S/z0kdLUb6klubo738NeQoLbS6V9/d8Pv19tU0XdQKju3D1HSKuI8wJ5wMA==",
"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",
@ -2581,6 +2583,14 @@
"lodash": "^4.17.14" "lodash": "^4.17.14"
} }
}, },
"async-validator": {
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/async-validator/-/async-validator-1.8.5.tgz",
"integrity": "sha512-tXBM+1m056MAX0E8TL2iCjg8WvSyXu0Zc8LNtYqrVeyoL3+esHRZ4SieE9fKQyyU09uONjnMEjrNBMqT0mbvmA==",
"requires": {
"babel-runtime": "6.x"
}
},
"asynckit": { "asynckit": {
"version": "0.4.0", "version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
@ -2616,6 +2626,11 @@
"proxy-from-env": "^1.1.0" "proxy-from-env": "^1.1.0"
} }
}, },
"babel-helper-vue-jsx-merge-props": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-2.0.3.tgz",
"integrity": "sha512-gsLiKK7Qrb7zYJNgiXKpXblxbV5ffSwR0f5whkPAaBAR4fhi6bwRZxX9wBlIc5M/v8CCkXUbXZL4N/nSE97cqg=="
},
"babel-loader": { "babel-loader": {
"version": "8.3.0", "version": "8.3.0",
"resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz",
@ -2667,6 +2682,27 @@
"@babel/helper-define-polyfill-provider": "^0.4.2" "@babel/helper-define-polyfill-provider": "^0.4.2"
} }
}, },
"babel-runtime": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",
"integrity": "sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==",
"requires": {
"core-js": "^2.4.0",
"regenerator-runtime": "^0.11.0"
},
"dependencies": {
"core-js": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
"integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ=="
},
"regenerator-runtime": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",
"integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg=="
}
}
},
"balanced-match": { "balanced-match": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
@ -3508,6 +3544,11 @@
"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",
@ -3540,8 +3581,7 @@
"deepmerge": { "deepmerge": {
"version": "1.5.2", "version": "1.5.2",
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz",
"integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ==", "integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ=="
"dev": true
}, },
"default-gateway": { "default-gateway": {
"version": "6.0.3", "version": "6.0.3",
@ -3794,6 +3834,22 @@
"integrity": "sha512-wK2sCs4feiiJeFXn3zvY0p41mdU5VUgbgs1rNsc/y5ngFUijdWd+iIN8eoyuZHKB8xN6BL4PdWmzqFmxNg6V2w==", "integrity": "sha512-wK2sCs4feiiJeFXn3zvY0p41mdU5VUgbgs1rNsc/y5ngFUijdWd+iIN8eoyuZHKB8xN6BL4PdWmzqFmxNg6V2w==",
"dev": true "dev": true
}, },
"echarts": {
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/echarts/-/echarts-5.5.0.tgz",
"integrity": "sha512-rNYnNCzqDAPCr4m/fqyUFv7fD9qIsd50S6GDFgO1DxZhncCsNsG7IfUlAlvZe5oSEQxtsjnHiUuppzccry93Xw==",
"requires": {
"tslib": "2.3.0",
"zrender": "5.5.0"
},
"dependencies": {
"tslib": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz",
"integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
}
}
},
"ee-first": { "ee-first": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
@ -3806,6 +3862,19 @@
"integrity": "sha512-6s7NVJz+sATdYnIwhdshx/N/9O6rvMxmhVoDSDFdj6iA45gHR8EQje70+RYsF4GeB+k0IeNSBnP7yG9ZXJFr7A==", "integrity": "sha512-6s7NVJz+sATdYnIwhdshx/N/9O6rvMxmhVoDSDFdj6iA45gHR8EQje70+RYsF4GeB+k0IeNSBnP7yG9ZXJFr7A==",
"dev": true "dev": true
}, },
"element-ui": {
"version": "2.15.14",
"resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.14.tgz",
"integrity": "sha512-2v9fHL0ZGINotOlRIAJD5YuVB8V7WKxrE9Qy7dXhRipa035+kF7WuU/z+tEmLVPBcJ0zt8mOu1DKpWcVzBK8IA==",
"requires": {
"async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0",
"deepmerge": "^1.2.0",
"normalize-wheel": "^1.0.1",
"resize-observer-polyfill": "^1.5.0",
"throttle-debounce": "^1.0.1"
}
},
"emoji-regex": { "emoji-regex": {
"version": "8.0.0", "version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
@ -6025,6 +6094,11 @@
"integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==",
"dev": true "dev": true
}, },
"normalize-wheel": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz",
"integrity": "sha512-1OnlAPZ3zgrk8B91HyRj+eVv+kS5u+Z0SCsak6Xil/kmgEia50ga7zfkumayonZrImffAxPU/5WcyGhzetHNPA=="
},
"npm-run-path": { "npm-run-path": {
"version": "2.0.2", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
@ -7067,6 +7141,11 @@
"integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==",
"dev": true "dev": true
}, },
"resize-observer-polyfill": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz",
"integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg=="
},
"resolve": { "resolve": {
"version": "1.22.4", "version": "1.22.4",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.4.tgz", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.4.tgz",
@ -7783,6 +7862,11 @@
} }
} }
}, },
"throttle-debounce": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-1.1.0.tgz",
"integrity": "sha512-XH8UiPCQcWNuk2LYePibW/4qL97+ZQ1AN3FNXwZRBNPPowo/NRU5fAlDCSNBJIYCKbioZfuYtMhG4quqoJhVzg=="
},
"thunky": { "thunky": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz",
@ -7951,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"
@ -8716,6 +8800,21 @@
"dev": true "dev": true
} }
} }
},
"zrender": {
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/zrender/-/zrender-5.5.0.tgz",
"integrity": "sha512-O3MilSi/9mwoovx77m6ROZM7sXShR/O/JIanvzTwjN3FORfLSr81PsUGd7jlaYOeds9d8tw82oP44+3YucVo+w==",
"requires": {
"tslib": "2.3.0"
},
"dependencies": {
"tslib": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz",
"integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
}
}
} }
} }
} }

View File

@ -12,15 +12,18 @@
"amfe-flexible": "^2.2.1", "amfe-flexible": "^2.2.1",
"axios": "^1.4.0", "axios": "^1.4.0",
"core-js": "^3.8.3", "core-js": "^3.8.3",
"echarts": "^5.2.2",
"less": "^4.1.3", "less": "^4.1.3",
"less-loader": "^11.1.3", "less-loader": "^11.1.3",
"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",
"element-ui": "^2.15.9",
"dayjs": "^1.8.14"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.16", "@babel/core": "^7.12.16",
@ -49,7 +52,7 @@
"parser": "@babel/eslint-parser" "parser": "@babel/eslint-parser"
}, },
"rules": {}, "rules": {},
"globals":{ "globals": {
"AMap": "true" "AMap": "true"
} }
}, },

View File

@ -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>

58
src/api/kpi.js Normal file
View File

@ -0,0 +1,58 @@
import request from '@/utils/http'
// 首页服务商接口
export function getStatisticsKpiByMonth(data){
return request({
url: '/supplier/supplierKPI/querySupplierStatisticsKpiByMonth',
method:'POST',
// contentType: 'application/json',
data
})
}
//服务商kpi
export function getStatisticsKpi(data){
return request({
url: '/supplier/supplierKPI/querySupplierStatisticsKpi',
method:'POST',
// contentType: 'application/json',
data
})
}
// 司机Kpi
export function getDriverStatisticsKpi(data){
return request({
url: '/supplier/supplierKPI/querySupplierDriverStatisticsKpi',
method:'POST',
// contentType: 'application/json',
data
})
}
// 各种详情数据
export function getKpiDetailsData(data){
return request({
url: '/supplier/supplierKPI/querySupplierKpiDetailsData',
method:'POST',
// contentType: 'application/json',
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 ,
}
});
}

46
src/api/maintenance.js Normal file
View File

@ -0,0 +1,46 @@
import request from '@/utils/http'
// 调度APP-维保数量
export function vehicleMaintenanceCount() {
return request({
url: '/supplierAppV2/dispatchApp/maintenance/vehicleMaintenanceCount',
method:'POST',
})
}
//维保列表
export function vehicleMaintenanceList(data) {
return request({
url: '/supplierAppV2/dispatchApp/maintenance/vehicleMaintenanceList',
method:'POST',
contentType: 'application/json',
data
})
}
// 获取维保记录详情
export function getVehicleMaintenanceDetail(data) {
return request({
url: '/supplierAppV2/dispatchApp/maintenance/getVehicleMaintenanceDetail',
method:'POST',
contentType: 'application/json',
data
})
}
// 维保终止
export function vehicleMaintenanceStop(data) {
return request({
url: '/supplierAppV2/dispatchApp/maintenance/vehicleMaintenanceStop',
method:'POST',
contentType: 'application/json',
data
})
}
// 维保审批
export function vehicleMaintenanceApproval(data) {
return request({
url: '/supplierAppV2/dispatchApp/maintenance/vehicleMaintenanceApproval',
method:'POST',
contentType: 'application/json',
data
})
}

View File

@ -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({

View File

@ -7,6 +7,13 @@ export function getToDoList() {
method:'POST', method:'POST',
}) })
} }
// 调度APP待办事项列表New
export function toDoListNew() {
return request({
url: '/supplierAppV2/dispatchApp/toDoMessage/toDoListNew',
method:'POST',
})
}
// 代办事项审核 // 代办事项审核
export function toDoAudit(data){ export function toDoAudit(data){
return request({ return request({

BIN
src/assets/love.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 KiB

BIN
src/assets/todoRight.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

View File

@ -2,12 +2,17 @@ import Vue from 'vue'
import App from './App.vue' import App from './App.vue'
import router from './router' import router from './router'
import Vant from 'vant'; import Vant from 'vant';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import 'vant/lib/index.css'; import 'vant/lib/index.css';
import "lib-flexible/flexible"; import "lib-flexible/flexible";
import "@/utils/rem.js" import "@/utils/rem.js"
import store from './store' import store from './store'
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.use(Vant); Vue.use(Vant);
Vue.use(ElementUI);
new Vue({ new Vue({
store, store,
router, router,

View File

@ -1,7 +1,7 @@
import Vue from "vue"; import Vue from "vue";
import VueRouter from "vue-router"; import VueRouter from "vue-router";
Vue.use(VueRouter); Vue.use(VueRouter);
import kpiRouter from './kpi-router'
const routes = [ const routes = [
{ {
path: '/', path: '/',
@ -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,9 +188,34 @@ 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:'新师傅培训'
}
},
{
path: '/maintenanceList',
name: 'vehicleMaintenanceList',
component:()=>import('@/views/vehicle-maintenance/vehicle-maintenance-list.vue'),
meta: {
title:'车辆维保'
}
},
{
path: '/maintenanceApplication',
name: 'maintenanceApplication',
component:()=>import('@/views/vehicle-maintenance/maintenance-application.vue'),
meta: {
title:'维保申请'
}
},
...kpiRouter,
] ]
const router = new VueRouter({ const router = new VueRouter({

11
src/router/kpi-router.js Normal file
View File

@ -0,0 +1,11 @@
const kpiRouter = [
{
path: '/kpiIndex',
name: 'kpiIndex',
component: () => import('@/views/kpi/kpiIndex'),
meta:{
title: 'kpi首页',
}
},
]
export default kpiRouter

116
src/styles/approval.scss Normal file
View File

@ -0,0 +1,116 @@
@import "@/styles/mixin.scss";
.refresh{
min-height: 100%;
//background-color: #F4F5F7;
}
.wrap{
@include wh(100%,100%);
box-sizing: border-box;
background-color: #F4F5F7;
}
.tab_wrap {
@include fontWeightSize(500, 14px);
@include flexColAround();
padding: 2px 0 10px 0;
background: #2C395F;
div {
padding-top: 8px;
color: #FFFFFF;
}
.alpha{
opacity: 0.5;
}
.numTip{
display: inline-block;
@include wh(15px,15px);
@include bgcolorOpa(#F95B45,0.9);
border-radius: 4px;
text-align: center;
line-height: 15px;
margin-left: 5px;
opacity: 1; /* 保持透明度为1 */
}
.active {
position: relative;
opacity: 1;
}
.active:after {
content: '';
display: block;
@include wh(18px,2px);
opacity: .8;
background: #FFFFFF;
position: absolute;
border-radius: 2px;
margin-top: 3px;
left: 50%;
opacity: 1;
transform: translateX(-50%);
}
}
::v-deep .van-pull-refresh{
height: calc(100% - 86px) ;
}
.listWrap{
width: 100%;
height: 100%;
overflow-y: auto;
.listItem{
width: 100%;
box-sizing: border-box;
padding: 14px 25px 13px 29px;
background-color: #FFFFFF;
margin-bottom: 10px;
.line1{
@include flexColBet();
.viewBtn{
@include wh(48px,18px);
text-align: center;
line-height: 18px;
background: #354D93;
border-radius: 3px;
color: #FFFFFF;
}
}
}
}
.bgEmptyImg{
@include flexTwoCenter;
height: 90% ;
background-color: #FAFAFA;
img{
width: 100%;
}
}
.greColor{
color:#38AD00 ;
font-weight: 500;
}
.redColor{
color:#FF5D2E ;
font-weight: 500;
}
.commonImg{
@include widHeiMar(13px,13px,4px);
}
.rightArrImg{
@include wh(6px,9px);
margin-left: 6px;
}
.yelColor{
color: #E69B0B;
font-weight: 600;
}
.greColor{
color: #56B628;
font-weight: 600;
}
.oraColor{
color: #FF5D2E;
font-weight: 600;
}
.garyColor{
color: #9C9C9C;
font-weight: 600;
}

View File

@ -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{

View 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;
}

View File

@ -2,6 +2,11 @@
font-size: $size; font-size: $size;
font-weight: $weight; font-weight: $weight;
} }
@mixin sizeWeightCol($size,$weight,$col){
font-size: $size;
font-weight: $weight;
color: $col;
}
@mixin bgFontColor($color,$bgcolor){ @mixin bgFontColor($color,$bgcolor){
color:$color; color:$color;
background: $bgcolor; background: $bgcolor;
@ -23,6 +28,14 @@
width: $w; width: $w;
height: $h; height: $h;
} }
@mixin whMarLe($w,$h,$l){
@include wh($w,$h);
margin-left: $l;
}
@mixin whBg($w,$h,$bg){
@include wh($w,$h);
background: $bg;
}
@mixin flexColumn{ @mixin flexColumn{
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -35,6 +48,10 @@
@include flexColumn; @include flexColumn;
justify-content: space-around; justify-content: space-around;
} }
@mixin flexColCen(){
@include flexColumn;
align-items: center;
}
@mixin flexColBet(){ @mixin flexColBet(){
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -75,4 +92,16 @@
box-sizing: border-box; box-sizing: border-box;
padding: $tb $lr; padding: $tb $lr;
border-radius: $rad; border-radius: $rad;
}
@mixin sizing4Padding($t,$r,$b,$l){
box-sizing: border-box;
padding: $t $r $b $l;
}
@mixin sizing4Radius($t,$r,$b,$l,$radius){
@include sizing4Padding($t,$r,$b,$l);
border-radius: $radius;
}
@mixin colHeight($col,$hei){
color: $col;
line-height: $hei;
} }

42
src/utils/approval.js Normal file
View File

@ -0,0 +1,42 @@
const getStatus=(i)=>{
switch (i){
case 0://待提交
case 1://待审核
return require('@/assets/waitSubmit.png')
case 2://审核通过
case 7://已打款
return require('@/assets/dakuan.png')
case 3://审核不通过
return require('@/assets/unpass.png')
case 4://报销失败
return require('@/assets/unSubmit.png')
case 6://代打款
return require('@/assets/waitDakuan.png')
default:
return require('@/assets/waitSubmit.png')
}
}
const getStatusColor=(i)=>{
switch (i){
case 0://待提交
case 1://待审核
return 'yelColor'
case 2://审核通过
case 6://代打款
case 7://已打款
return 'greColor'
case 3://审核不通过
return 'oraColor'
case 4://报销失败
return 'garyColor'
default:
return 'yelColor'
}
}
module.exports = {
getStatus,
getStatusColor
}

View File

@ -49,4 +49,4 @@ module.exports = {
leftCopy, leftCopy,
timeFormat, timeFormat,
formatDate1 formatDate1
} }

View File

@ -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
}, },

View File

@ -34,19 +34,26 @@ 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 {
window.android.sendMessage("articleId=" + item.id); if(type == '培训文档'){
window.android.sendMessage("articleId=" +'q'+ item.id);
}else{
window.android.sendMessage("articleId=" + item.id);
}
} }
}, },
h5GoBack(){ h5GoBack(){

View File

@ -198,7 +198,25 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
@import "@/styles/mixin.scss"; @import "@/styles/mixin.scss";
@import "@/styles/common.scss"; @import "@/styles/common.scss";
.refresh{ @import "@/styles/approval.scss";
.navBar{
margin-bottom: 46px;
}
.listItem{
padding: 14px 25px 13px 29px;
div{
line-height: 27px;
span:first-child{
display: inline-block;
width: 60px;
opacity: 0.5;
}
.right{
@include flexCenter();
}
}
}
/*.refresh{
min-height: 100%; min-height: 100%;
background-color: #F4F5F7; background-color: #F4F5F7;
} }
@ -209,9 +227,9 @@ export default {
.navBar{ .navBar{
margin-bottom: 46px; margin-bottom: 46px;
} }
/*::v-deep .van-nav-bar__content{ !*::v-deep .van-nav-bar__content{
background-color: #354683 !important; background-color: #354683 !important;
}*/ }*!
.tab_wrap { .tab_wrap {
@include fontWeightSize(500, 14px); @include fontWeightSize(500, 14px);
@include flexColAround(); @include flexColAround();
@ -232,7 +250,7 @@ export default {
text-align: center; text-align: center;
line-height: 15px; line-height: 15px;
margin-left: 5px; margin-left: 5px;
opacity: 1; /* 保持透明度为1 */ opacity: 1; !* 保持透明度为1 *!
} }
.active { .active {
position: relative; position: relative;
@ -329,5 +347,5 @@ export default {
.garyColor{ .garyColor{
color: #9C9C9C; color: #9C9C9C;
font-weight: 600; font-weight: 600;
} }*/
</style> </style>

View 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>

View File

@ -1,28 +1,59 @@
<template> <template>
<div class="wrap"> <div class="wrap">
<div class="navBar"> <template v-if="supplierId">
<van-nav-bar <div class="navBar">
left-arrow <van-nav-bar
left-arrow-color="#FFFFFF" left-arrow
:border="false" left-arrow-color="#FFFFFF"
:fixed="true" class="supplier"
:safe-area-inset-top="true" :border="false"
@click-left="goBack" :fixed="true"
> :safe-area-inset-top="true"
<template slot="title"> @click-left="goBack"
<div v-show="!show">文档资料</div> >
<van-field v-model="keyword" placeholder="请输入关键词" v-show="show" @input="getList"/> <template slot="title">
</template> <div v-show="!show">文档资料</div>
<template slot="right"> <van-field v-model="keyword" placeholder="请输入关键词" v-show="show" @input="getNormalList"/>
<div class="rightWrap" @click="show = !show"> </template>
<img src="@/assets/serach.png" class="img2" v-show="!show"/> <template slot="right">
<img src="@/assets/delKey.png" class="img2" v-show="show" @click="initShow"/> <div class="rightWrap" @click="show = !show">
</div> <img src="@/assets/serach.png" class="img2" v-show="!show"/>
</template> <img src="@/assets/delKey.png" class="img2" v-show="show" @click="initShow"/>
</van-nav-bar> </div>
</div> </template>
</van-nav-bar>
<div class="tab_wrap"> </div>
</template>
<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>

View File

@ -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>

View File

@ -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" :max-size="5 * 1024 * 1024"
accept="image " 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);

View 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 {

View File

@ -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()
}, },

View File

@ -1,8 +1,31 @@
<template> <template>
<div class="empty" v-if="show"> <div class="wrapCotainer">
<img src="@/assets/empty.png" > <div class="navBar">
<van-nav-bar
title="待办列表"
left-arrow
left-arrow-color="#FFFFFF"
:border="false"
:fixed="true"
:safe-area-inset-top="true"
@click-left="goBack"
/>
</div>
<div class="empty" v-if="show">
<img src="@/assets/empty.png" >
</div>
<div class="wrap" v-else>
<div class="itemWrap" @click="goApprovalList" v-for="(item,index) in todolist" :key="index">
<div class="left">
<div class="title">{{ item.toDoName }}<span class="num" v-if="item.toDoCount">{{item.toDoCount}}</span></div>
<img class="ritBtn" src="@/assets/todoRight.png">
</div>
<div class="time">{{ item.toDoTime }}</div>
</div>
</div>
</div> </div>
<div class="wrap" v-else>
<!-- <div class="wrap" v-else>
<ul id="dataList" class="dataList"> <ul id="dataList" class="dataList">
<li class="item" v-for="(item,i) in todolist" :key="i"> <li class="item" v-for="(item,i) in todolist" :key="i">
<div class="left"> <div class="left">
@ -18,14 +41,18 @@
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>-->
</template> </template>
<script> <script>
import {getToDoList, toDoAudit} from "@/api/order" //getToDoList,toDoAudit
import {toDoListNew} from "@/api/order"
import {userOperationPermissions} from "@/api/mine" import {userOperationPermissions} from "@/api/mine"
import {myMixins} from "@/utils/myMixins"
export default { export default {
name: "toDoList", name: "toDoList",
mixins:[myMixins],
data() { data() {
return { return {
todolist: [], todolist: [],
@ -38,9 +65,14 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
goApprovalList(){
this.$router.push({ name: 'vehicleMaintenanceList',})
},
async getList() { async getList() {
let result = await getToDoList(); // let result = await getToDoList();
let result=await toDoListNew();
this.todolist = result.data; this.todolist = result.data;
console.log("this.todolist",this.todolist)
if (this.todolist?.length === 0) { if (this.todolist?.length === 0) {
this.show = true this.show = true
} else { } else {
@ -50,9 +82,8 @@ export default {
async getPermissions(){ async getPermissions(){
let res = await userOperationPermissions(); let res = await userOperationPermissions();
this.permissonList = res.data this.permissonList = res.data
// console.log("代办事项",this.permissonList.includes('approve'))
}, },
async todoAudit(item,type) { /* async todoAudit(item,type) {
await toDoAudit({ await toDoAudit({
toDoId: item.toDoId, toDoId: item.toDoId,
toDoType: item.toDoType.code, toDoType: item.toDoType.code,
@ -60,7 +91,7 @@ export default {
}) })
this.todolist=[] this.todolist=[]
await this.getList(); await this.getList();
}, },*/
} }
} }
</script> </script>
@ -68,6 +99,13 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
@import "@/styles/mixin.scss"; @import "@/styles/mixin.scss";
@import "@/styles/common.scss"; @import "@/styles/common.scss";
.wrapCotainer{
@include wh(100%,100%);
background-color: #F4F5F7;
}
.navBar{
height: 46px;
}
.empty{ .empty{
@include wh(100%,100%); @include wh(100%,100%);
background-color: #FAFAFA; background-color: #FAFAFA;
@ -78,9 +116,36 @@ export default {
} }
.wrap { .wrap {
@include wh(100%, 100%); @include wh(100%, 100%);
box-sizing: border-box; @include sizing4Padding(13px,13px,0,13px);
padding: 13px 13px 0 13px; .itemWrap{
background-color: #F4F5F7; @include wh(349px, 68px);
background: #FFFFFF;
box-shadow: 0px 2px 10px 0px rgba(216,216,216,0.5);
@include sizing4Radius(11px,12px,16px,15px, 6px);
@include flexBetween;
margin-bottom: 10px;
.left{
@include flexColBet;
}
.ritBtn{
@include wh(6px, 9px);
}
.time{
opacity: .6;
}
.title{
@include flexCenter;
}
.num{
display: inline-block;
@include whLin(14px, 14px);
@include fontWeightSize(10px,bold);
@include bgFontColor(#FFFFFF,#F93D3D);
border-radius: 2px;
text-align: center;
margin-left: 8px;
}
}
} }
.dataList { .dataList {

View File

@ -0,0 +1,113 @@
<template>
<div class="wrap">
<div id="supplierScore" ref="supplierScore" class="chart" @click="handle"></div>
</div>
</template>
<script>
import * as echarts from 'echarts';
export default {
name: "circleChar",
props:['data','bgColor','titleText','isStore'],
data(){
return{
}
},
mounted() {
/* if(this.data){
this.drawHandle();
}*/
setTimeout(()=>{
this.drawHandle();
},500)
},
methods:{
initCircle(){
// setTimeout(()=>{
this.drawHandle();
// },500)
},
handle(){
if(this.titleText == '投诉率'){
this.$emit('clickComplain')
}else if(this.titleText == '使用率'){
this.$emit('clickUse')
}
},
// 绘制 总分图表
drawHandle() {
let supplierScoreChart = echarts.init(this.$refs.supplierScore)
let option;
let arrow=(this.titleText == '投诉率' || this.titleText == '使用率') ? '>' : ''
const gaugeData = [
{
value: this.data,
name: this.isStore ? '' : this.titleText+arrow,
title: {
offsetCenter: ['0%', '20%']
},
detail: {
valueAnimation: true,
offsetCenter: ['0%', this.isStore ? '10%' : '-25%']
}
}
];
option = {
series: [
{
type: 'gauge',
startAngle: 90,
endAngle: -270,
pointer: {
show: false
},
progress: {
show: true,
// width:6,
itemStyle:{
color:this.bgColor
}
},
/* axisLine: {
lineStyle: {
width:12,
}
},*/
splitLine: { show: false},
axisTick: { show: false},
axisLabel: {show: false},
data: gaugeData,
title: {
fontSize: 11,
color:'rgba(4, 4, 21,0.45)'
},
detail: {
color:this.isStore ? this.bgColor : '#040415',
fontSize: this.isStore ? 43 :19,
formatter: this.isStore ? '{value}' : '{value}%'
}
}
]
};
// 绘制图表
option && supplierScoreChart.setOption(option, true);
},
}
}
</script>
<style scoped lang="scss">
@import "@/styles/mixin.scss";
.wrap{
@include flexCenter;
}
.img{
@include whMarLe(12px,10px,4px);
}
.chart{
width: 100%;
height: 125px;
}
</style>

View 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>

1806
src/views/kpi/kpiIndex.vue Normal file

File diff suppressed because it is too large Load Diff

View 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>

View File

@ -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>

View File

@ -0,0 +1,429 @@
<template>
<div class="wrap">
<div class="navBar">
<van-nav-bar
title="车辆维保"
left-arrow
left-arrow-color="#FFFFFF"
:border="false"
:fixed="true"
:safe-area-inset-top="true"
@click-left="goPrePage"
/>
</div>
<div class="flowWrap">
<div class="detailInfo">
<div class="line1">
<div class="leftTitle commonTitle">{{ rowInfo.stage }}:</div>
<div class="right">
<img class="commonImg" :src="getStatus(detailInfo.states)">
<div :class="getStatusColor(detailInfo.states)" >{{detailInfo.statesStr}}</div>
</div>
</div>
<div class="line"></div>
<div ><span class="opa">车辆名称:</span><span>{{ detailInfo.vehicleName }}</span></div>
<div><span class="opa">车牌号:</span><span>{{ detailInfo.plateNumber }}</span></div>
<!-- 审批中通过终止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 class="textarea">{{detailInfo.repairPoint || ''}}</span></div>
<div class="shopImgList" v-if="[1,2,3].includes(detailInfo.states)">
<template v-if="detailInfo.storePhotoUrls && detailInfo.storePhotoUrls.indexOf(',') !== -1">
<div v-for="(item,index) in (detailInfo.storePhotoUrls?.split(','))" :key="index">
<img :src="item" @click="previewPhoto(item)">
</div>
</template>
<template v-else>
<div v-if="!detailInfo.storePhotoUrls"></div>
<img v-else :src="detailInfo.storePhotoUrls" @click="previewPhoto(detailInfo.storePhotoUrls)">
</template>
</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 && 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 textarea">{{ detailInfo.information ||'' }}</span></div>
</div>
<!-- 不通过-->
<div class="detailInfo" v-if="noPassStatus && detailInfo.paymentType?.code !=2">
<div class="line1">
<div class="leftTitle commonTitle">维保项目照片:</div>
</div>
<div class="shopImgList">
<template v-if="detailInfo.maintenancePhotoUrls && detailInfo.maintenancePhotoUrls.indexOf(',') !== -1">
<div v-for="(item,index) in (detailInfo.maintenancePhotoUrls?.split(','))" :key="index">
<img :src="item" @click="previewPhoto(item)">
</div>
</template>
<template v-else>
<div v-if="!detailInfo.maintenancePhotoUrls"></div>
<img v-else :src="detailInfo.maintenancePhotoUrls" @click="previewPhoto(detailInfo.maintenancePhotoUrls)">
</template>
</div>
</div>
<div class="detailInfo" v-if="noPassStatus && detailInfo.paymentType?.code !=2">
<div class="line1">
<div class="leftTitle commonTitle">维保清单/凭证照片:</div>
</div>
<div class="shopImgList">
<template v-if="detailInfo.voucherPhotoUrls && detailInfo.voucherPhotoUrls.indexOf(',') !== -1">
<div v-for="(item,index) in (detailInfo.voucherPhotoUrls?.split(','))" :key="index">
<img :src="item" @click="previewPhoto(item)">
</div>
</template>
<template v-else>
<div v-if="!detailInfo.voucherPhotoUrls"></div>
<img v-else :src="detailInfo.voucherPhotoUrls" @click="previewPhoto(detailInfo.voucherPhotoUrls)">
</template>
</div>
</div>
<!-- 维保申请审批中维保完成审批中, -->
<div class="approvalContent" v-if="[1,4].includes(detailInfo.states)">
<div class="title commonTitle">审批意见</div>
<textarea class="multiple" placeholder="输入意见" v-model="auditRemark"></textarea>
</div>
<!--审批意见显示 只要不是审批中状态-->
<div class="resultWrap" v-if="!(detailInfo.states == 1 || detailInfo.states == 4)">
<div class="result">
<div class="title commonTitle">审批意见</div>
<div class="right">
<img class="commonImg" :src="getStatus(detailInfo.states)">
<div :class="getStatusColor(detailInfo.states)" >{{detailInfo.statesStr}}</div>
</div>
</div>
<div :class="getStatusColor(detailInfo.states)" class="time">{{ detailInfo.createTime }} {{detailInfo.statesStr}}</div>
<!-- 完成不通过-->
<div class="line" v-if="detailInfo.auditRemark"></div>
<div class="reason" v-if="detailInfo.auditRemark">{{detailInfo.auditRemark}}</div>
</div>
</div>
<!-- 维保申请审批中维保完成审批中-->
<div class="btnWrap" v-if="detailInfo.states==1 || detailInfo.states==4">
<div class="noPass" @click="approvalHandle(0)">不通过</div>
<div class="pass" @click="approvalHandle(1)">通过</div>
</div>
<!-- 维保申请通过 -->
<div class="btnWrap" v-if="detailInfo.states == 3">
<div class="stoping pass" @click="show=true">维保终止</div>
</div>
<div class="dialogWrap" v-if="show">
<div class="title">维保终止 </div>
<div class="textWrap">
<textarea class="ipt" placeholder="请输入终止原因" v-model="reason"></textarea>
</div>
<div class="btnWrap">
<div class="noPass" @click="cancelHandle">取消</div>
<div class="pass" @click="handleConfirm">确定</div>
</div>
</div>
</div>
</template>
<script>
import {getVehicleMaintenanceDetail,vehicleMaintenanceStop,vehicleMaintenanceApproval} from "@/api/maintenance"
import {myMixins} from "@/utils/myMixins"
import { ImagePreview } from "vant";
export default {
name: "maintenance-application",
mixins:[myMixins],
data() {
return {
rowInfo:'',
noClick:true,
detailInfo:'',
show:false,
auditRemark:'',
reason:'',
status:'',
// activeIndex:'',
}
},
mounted() {
this.rowInfo=this.$route.params.info
this.status=this.$route.params.status
this.getDetail()
},
computed: {
// 维保申请不通过,维保完成不通过
noPassStatus(){
return this.detailInfo.states===5 || this.detailInfo.states===4 || this.detailInfo.states===6;
},
},
methods: {
goPrePage(){
this.$router.push({
name: 'vehicleMaintenanceList',
params: {
activeIndex:this.$route.params?.activeIndex,
status:this.status,
}
});
},
previewPhoto(url) {
let urls=[]
// this.auditPhotoList.forEach((item)=>{
urls.push(url)
// })
ImagePreview({
images: urls,
startPosition: 0,
closeable: true,
});
},
cancelHandle(){
this.show=false
console.log('this.show0',this.show)
},
async handleConfirm(){
let res=await vehicleMaintenanceStop({id:this.rowInfo.id, vehicleId:this.rowInfo.vehicleId, auditRemark:this.reason,})
if (res.code==200){
this.show=false
await this.getDetail();
}
},
async approvalHandle(approvalType){
let res=await vehicleMaintenanceApproval({
id:this.rowInfo.id,
vehicleId:this.rowInfo.vehicleId,
auditResult:approvalType,
auditRemark:this.auditRemark,
})
if(res.code==200){
await this.getDetail();
}
},
// 1申请审批2申请不通过3申请通过4完成审批中5完成不通过6完成通过9维保终止
getStatusColor(i){
switch (i){
case 1://
case 4://
return 'yelColor'
case 2://
case 5://
return 'redColor'
case 3://
case 6://
return 'greColor'
case 9://
return 'garyColor'
default:
return ''
}
},
getStatus(i){
switch (i){
case 1://
case 4://
return require('@/assets/waitSubmit.png')
case 2://审核通过
case 5://已打款
return require('@/assets/unpass.png')
case 3://
case 6://
return require('@/assets/dakuan.png')
case 9://报销失败
return require('@/assets/unSubmit.png')
default:
return ''
}
},
async getDetail() {
let res=await getVehicleMaintenanceDetail ({
id:this.rowInfo.id,
vehicleId:this.rowInfo.vehicleId,
})
if(res.code===200 && res.data){
this.detailInfo=res.data
}
},
}
}
</script>
<style scoped lang="scss">
@import "@/styles/mixin.scss";
@import "@/styles/common.scss";
@import "@/styles/approval.scss";
.dialogWrap{
position:absolute ;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
z-index: 111;
width: 326px;
box-sizing: border-box;
height: 180px;
background: #F1F5F7;
box-shadow: 0px 6px 21px 0px rgba(0,0,0,0.3);
border-radius: 6px;
.title{
width: 100%;
height: 40px;
line-height: 40px;
text-align: center;
background: #E3ECF1;
border-radius: 6px 6px 0px 0px;
@include fontWeightSize(16px,bold);
color: #262628;
}
.textWrap{
width: 100%;
box-sizing: border-box;
padding: 15px 25px;
.ipt{
width: 100%;
height: 52px;
box-sizing: border-box;
padding-left: 5px;
background: #ECF4F9;
border-radius: 3px;
border: 1px solid #3364B7;
backdrop-filter: blur(10px);
}
}
.btnWrap div{
width: 130px;
@include all-height(40px);
}
}
::v-deep .van-field__control{
border: 1px solid #eee8e8 !important;
}
.navBar{
margin-bottom: 46px;
}
.wrap{
background-color: #F4F5F7;
}
.flowWrap{
height: calc(100% - 120px);
overflow-y: auto;
}
.line{
margin: 5px 0;
width: 325px;
border-bottom: 2px solid;
opacity: 0.16;
border-image: linear-gradient(270deg, rgba(217, 217, 217, 0.6), rgba(178, 178, 178, 1), rgba(178, 178, 178, 1), rgba(217, 217, 217, 0.6)) 1 1;
}
.commonTitle{
@include fontWeightSize(14px,bold);
@include colHeight( #323643,20px);
}
.detailInfo{
width: 100%;
background: #FFFFFF;
@include sizing4Padding(13px,25px,14px,24px);
margin-bottom: 10px;
.line1{
@include flexColBet;
line-height: 23px;
.leftTitle{
opacity: .66;
}
.right{
@include flexCenter;
}
}
.opa{
display: inline-block;
width: 60px;
@include colorOpa(#000000,.5);
font-size: 12px;
line-height: 27px;
}
.shopName{
width: 100%;
display: flex;
align-items: baseline;
.textarea{
width: calc(100% - 60px);
}
}
.project{
color: #E8A524;
//width: calc(100% - 60px);
}
.shopImgList{
margin-top: 6px;
@include flexColBet;
flex-wrap: wrap;
img{
background: #FAFAFA;
border-radius: 3px;
border: 1px solid #EAEAEA;
backdrop-filter: blur(10px);
@include wh(154px,93px);
margin-bottom: 10px;
}
}
}
.approvalContent{
background-color: #FFFFFF;
width: 100%;
@include sizing4Padding(13px,25px,24px,25px);
.title {
margin-bottom: 8px;
}
.multiple{
@include wh(100%,125px);
background: #FAFAFA;
border: 1px solid #E6E6E6;
backdrop-filter: blur(10px);
@include sizingPadRadius(7px,10px,3px);
}
}
.resultWrap{
width: 100%;
background: #FFFFFF;
@include sizing4Padding(12px,23px,16px,24px);
@include flexBetween;
.title {
margin-bottom: 8px;
}
.result{
@include flexColBet;
}
.right{
@include flexCenter;
}
.commonImg{
@include widHeiMar(13px,13px,4px);
}
.time{
text-align: right;
}
.reason {
font-size: 13px;
color: #FF5D2E;
line-height: 20px;
}
}
.btnWrap{
@include wh(100%, 54px);
@include sizingPadding(0,30px);
@include flexBetCen;
position: absolute;
bottom: 12px;
background-color: #F4F5F7;
div{
@include wh(152px, 48px);
line-height: 48px;
text-align: center;
border-radius: 5px;
@include fontWeightSize(15px,bold);
color: #FFFFFF;
}
.noPass{
background: #9EA7C0;
}
.pass{
background: #354D93;
}
.stoping{
width: 100% !important;
}
}
</style>

View File

@ -0,0 +1,242 @@
<template>
<div class="wrap">
<div class="navBar">
<van-nav-bar
title="车辆维保"
:left-arrow="isShowBackBtn ? true : false"
left-arrow-color="#FFFFFF"
:border="false"
:fixed="true"
:safe-area-inset-top="true"
@click-left="goPrePage"
/>
</div>
<div class="tab_wrap">
<div v-for="(item, index) in tabArr" :key="index"
@click="changeTab(index)">
<span :class="{'active' : activeIndex == index , 'alpha' :true}"> {{ item.name }}</span>
<span class="numTip" style="opacity: 1 !important;" v-if="index===0 && item.num">{{item.num}}</span>
</div>
</div>
<van-pull-refresh class="refresh" v-model="isLoading" @refresh="onRefresh" v-show="!show">
<van-list
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<div class="listWrap">
<div class="listItem" @click="noMultipleClicks(goPageDetail,item)" v-for="(item,index) in pageList" :key="index">
<div class="line1">
<div class="title">{{item.stage}}</div>
<div class="right">
<img class="commonImg" :src="getStatus(item.states?.code)">
<div :class="getStatusColor(item.states?.code)">{{ item.states?.label }}</div>
</div>
</div>
<div class="driverInfo">{{ item.vehicleName }} / {{ item.plateNumber }}</div>
<div class="time">{{ item.createTime }}</div>
</div>
</div>
</van-list>
</van-pull-refresh>
<div class="bgEmptyImg" v-show="show" >
<img src="@/assets/empty.png" />
</div>
</div>
</template>
<script>
import {myMixins} from "@/utils/myMixins"
import {vehicleMaintenanceList,vehicleMaintenanceCount} from "@/api/maintenance"
export default {
name: "vehicle-maintenance-list",
mixins:[myMixins],
data() {
return {
id:'',
tabArr: [ {name: '待审批', status: 2,num:0 },{name: '已审批', status: 2,num:0 },],
activeIndex: 0,
pageList:[],
pageNum:1,
pageSize:10,
total:'',
noClick:true,
isShowBackBtn:true,
inApprovalCount:0,
status:'',
isLoading:"",
loading: false,
finished: false,
}
},
mounted() {
const urlParams = new URLSearchParams(window.location.search);
this.status=urlParams.get('status')
if(this.status=='crm' || this.$route.params.status == 'crm' ){//后台进入此页面没有返回按钮
this.isShowBackBtn=false
}else{
this.isShowBackBtn=true
}
this.activeIndex=this.$route.params?.activeIndex || 0
this.getList()
},
computed:{
show() {
return (this.pageList.length < 0 || this.pageList.length == 0); // 判断数组长度是否大于 0
},
},
methods: {
async onLoad(){
this.pageNum++;
await this.getList()
this.loading = false;
console.log("this.pageList.length",this.pageList.length)
console.log("this.total",this.total)
if (this.pageList.length >= this.total) {
this.finished = true;
}
},
goPrePage(){
this.$router.push({ name: 'toDoList' });
},
// 1申请审批2申请不通过3申请通过4完成审批中5完成不通过6完成通过9维保终止
getStatusColor(i){
switch (i){
case 1://
case 4://
return 'yelColor'
case 2://
case 5://
return 'redColor'
case 3://
case 6://
return 'greColor'
case 9://
return 'garyColor'
default:
return 'yelColor'
}
},
getStatus(i){
switch (i){
case 1://
case 4://
return require('@/assets/waitSubmit.png')
case 2://审核通过
case 5://已打款
return require('@/assets/unpass.png')
case 3://
case 6://
return require('@/assets/dakuan.png')
case 9://报销失败
return require('@/assets/unSubmit.png')
default:
return require('@/assets/waitSubmit.png')
}
},
/* onRefresh() {
vehicleMaintenanceCount();
// this.getList()
setTimeout(() => {
this.$toast('刷新成功');
this.isLoading = false;
}, 1000);
},*/
onRefresh() {
vehicleMaintenanceCount();
this.pageNum=1
// this.getList()
setTimeout(() => {
this.$toast('刷新成功');
this.isLoading = false;
}, 1000);
},
async changeTab(index) {
this.activeIndex = index
this.pageNum = 1
this.pageList = [];
this.total=0
await this.getList()
},
async getList() {
let result=await vehicleMaintenanceCount();
if(result.code==200 && result.data){
this.tabArr[0].num=result.data.inApprovalCount
}
let res=await vehicleMaintenanceList ({
pageNum:this.pageNum,
pageSize:this.pageSize,
queryType:this.activeIndex+1,
})
// this.pageList=res.data
// console.log("===",this.pageList)
this.total=res.total
if(this.pageNum == 1){// 第一页直接赋值
this.pageList=res.data
}else{// 第二页数据拼接
console.log("第二页数据拼接")
let preList = this.pageList;
// console.log("preList",preList)
let arr = res.data;
// console.log("arr",arr)
this.pageList = preList.concat(arr)
console.log("this.pageList====",this.pageList)
}
},
goPageDetail(item){
this.$router.push({
name: 'maintenanceApplication', // 目标路由的名称
params: {
info:item,
activeIndex:this.activeIndex,
status:this.status,
}
});
},
}
}
</script>
<style scoped lang="scss">
@import "@/styles/mixin.scss";
@import "@/styles/common.scss";
@import "@/styles/approval.scss";
.wrap{
@include wh(100%,100%);
box-sizing: border-box;
overflow-y: auto;
}
.navBar{
margin-bottom: 46px;
}
::v-deep .van-list__finished-text{
background-color: #F4F5F7 !important;
padding-bottom: 10px;
}
::v-deep .van-pull-refresh{
height: calc(100% - 86px) ;
overflow-y: auto;
background-color: #F4F5F7;
}
.listItem{
padding: 11px 28px 11px 23px;
div{
.title{
@include fontWeightSize(bold,14px);
line-height: 20px;
margin-bottom: 8px;
}
.right{
@include flexCenter();
}
}
.driverInfo{
font-size: 12px;
line-height: 18px;
margin-bottom: 5px;
}
}
</style>

File diff suppressed because it is too large Load Diff

View File

@ -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>

6288
yarn.lock

File diff suppressed because it is too large Load Diff