2 Commits

Author SHA1 Message Date
997f20ee06 查询工单记账图片和修改服务商记账信息 接口添加参数
(cherry picked from commit e768f9c8f8)
2024-09-25 09:48:14 +08:00
d04304ea7d task#14504,换电瓶费用,加号改为减号
(cherry picked from commit 73ec8c267b)
2024-09-25 09:48:14 +08:00
141 changed files with 7131 additions and 22535 deletions

1
.gitignore vendored
View File

@ -22,4 +22,3 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?
/yarn.lock

12164
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,14 +9,10 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"@vant/area-data": "^2.0.0",
"amfe-flexible": "^2.2.1",
"axios": "^1.4.0",
"core-js": "^3.8.3",
"dayjs": "^1.8.14",
"decimal.js": "^10.4.3",
"echarts": "^5.2.2",
"element-ui": "^2.15.9",
"less": "^4.1.3",
"less-loader": "^11.1.3",
"qs": "^6.11.2",
@ -25,7 +21,9 @@
"vant": "^2.13.2",
"vue": "^2.6.14",
"vue-router": "^3.0.7",
"vuex": "^3.6.2"
"vuex": "^3.6.2",
"element-ui": "^2.15.9",
"dayjs": "^1.8.14"
},
"devDependencies": {
"@babel/core": "^7.12.16",

View File

@ -26,17 +26,16 @@
<van-number-keyboard safe-area-inset-bottom />
<script type="text/javascript">
window._AMapSecurityConfig = {
// serviceHost: 'https://api.sinoassist.com/_AMapService',
securityJsCode:'91ab1ebc492d5479a68b11527bd73dc9',
serviceHost: 'https://api.sinoassist.com/_AMapService',
}
</script>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.AutoComplete,AMap.PlaceSearch,AMap.Geolocation,AMap.Geocoder,AMap.Marker,AMap.Driving"></script>
<!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>-->
<script src="https://webapi.amap.com/maps?v=1.4.15&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.Polyline"></script>
<script>
// VConsole 默认会挂载到 `window.VConsole` 上
// let vConsole = new window.VConsole();
(function (doc, win) {
// console.log("==window.location.pathname===",window.location.pathname)
console.log("==window.location.pathname===",window.location.pathname)
let docEl = doc.documentElement
let resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'
recalc = function () {

View File

@ -1,78 +0,0 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>免责声明</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
/*margin: 20px;*/
padding: 0;
/*background-color: #f9f9f9;*/
color: #333;
}
h3 {
text-align: center;
/*font-size: 24px;*/
margin-bottom: 20px;
}
h4 {
/*font-size: 20px;*/
margin-top: 30px;
margin-bottom: 10px;
color: #555;
}
p {
margin: 10px 0;
text-indent: 2em;
}
ul {
margin: 10px 0;
padding-left: 40px;
}
li {
margin: 5px 0;
}
.container {
font-size: 14px;
padding-bottom: 20px;
}
</style>
</head>
<body>
<div class="container">
<h3>声明</h3>
<p>本平台为二手拖车买卖双方提供免费信息发布服务。在您使用本平台之前,请仔细阅读并理解本免责声明。一旦使用本平台,即视为您已阅读、理解并同意接受本免责声明的所有条款。</p>
<h4>一、平台性质</h4>
<p>1. 本平台仅为信息发布平台,不参与任何二手拖车交易环节,包括但不限于交易洽谈、合同签订、款项支付、车辆交付等,实际交易价格由买卖双方自行协商确定。</p>
<p>2. 本平台不对发布信息的真实性、准确性、完整性、合法性进行任何形式的担保或保证,用户应自行判断信息的真实性并承担由此产生的风险。</p>
<h4>二、用户责任</h4>
<p>1. 用户应保证发布的信息真实、准确、完整、合法,并对其发布的信息承担全部责任。</p>
<p>2. 用户不得发布任何虚假、违法、侵权、违反公序良俗的信息,包括但不限于:</p>
<ul>
<li>虚假车源信息</li>
<li>事故车、水泡车、火烧车等存在重大安全隐患的车辆信息</li>
<li>盗抢车辆信息</li>
<li>侵犯他人知识产权或其他合法权益的信息</li>
<li>含有淫秽、色情、赌博、暴力、恐怖等内容的信息</li>
<li>其他违反法律法规或平台规则的信息</li>
</ul>
<h4>三、免责条款</h4>
<p>1. 因用户发布的信息引起的任何纠纷或损失,本平台不承担任何责任。</p>
<p>2. 因不可抗力、计算机病毒、黑客攻击、系统不稳定、用户所在位置、用户关机以及其他任何网络、技术、通信线路等原因造成的服务中断或不能满足用户要求的风险,本平台不承担任何责任。</p>
<p>3. 本平台不对用户之间的交易行为承担任何责任,用户应自行承担交易风险。</p>
<h4>四、其他</h4>
<p>1. 本平台有权根据法律法规的变化或平台运营的需要,随时修改本免责声明,并在平台上公布,修改后的内容自公布之日起生效。</p>
<p>2. 本免责声明的解释权归中道救援股份有限公司所有。</p>
<p>请您在使用本平台前务必仔细阅读并理解本免责声明。</p>
<p>如果您对本免责声明有任何疑问,请联系我们。</p>
</div>
</body>
</html>

View File

@ -27,14 +27,6 @@ export function getDriverStatisticsKpi(data){
data
})
}
export function querySupplierDriverStatisticsScore(data){
return request({
url: '/supplier/supplierKPI/querySupplierDriverStatisticsScore',
method:'POST',
// contentType: 'application/json',
data
})
}
// 各种详情数据
export function getKpiDetailsData(data){
return request({
@ -44,24 +36,6 @@ export function getKpiDetailsData(data){
data
})
}
// 获取近12个月的服务商数据
export function getRecentSupplierKpi(data){
return request({
url: '/supplier/supplierKPI/queryRecentSupplierStatisticsKpi',
method:'POST',
// contentType: 'application/json',
data
})
}
// 司机分数详情
export function driverScoreDetail(data){
return request({
url: '/supplier/supplierKPI/querySupplierDriverStatisticsScore',
method:'POST',
// contentType: 'application/json',
data
})
}
// 关键词搜索服务商名称
export function getSupplierId(key) {
return request({

View File

@ -147,30 +147,22 @@ export function deleteImage(data){
//开票通知列表
export function notifyInvoiceList(data){
return request({
url:'/order/taskInvoiceBatch/selectPageList',
url:'/supplierAppV2/dispatchApp/accountRecord/notifyInvoiceList',
method:'POST',
contentType:'application/json',
data
})
}
// contentType:'application/json',
//开票通知详情
export function notifyInvoiceDetail(data){
return request({
url:'/order/taskInvoiceBatch/selectById',
url:'/supplierAppV2/dispatchApp/accountRecord/notifyInvoiceDetail',
method:'POST',
contentType:'application/json',
data
})
}
// 关联案件
export function getOrderListByInvoice(data) {
return request({
url:'/order/taskOrderCostHisRecord/selectPageList',
method:'POST',
data
})
}
// 调度app获取新签列表
// /supplier/supplierTrainingMaterials/pageList 获取培训材料列表
export function pageList(data){
return request({
url:'/supplierAppV2/dispatchApp/user/supplierTrainingMaterialsPageList',
@ -179,31 +171,6 @@ export function pageList(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(){
return request({
@ -222,83 +189,6 @@ export function uploadImage(data){
})
}
// 发票上传
export function uploadInvoice(data){
return request({
url:'/order/taskInvoiceBatch/saveInvoiceImagesAndIdentify',
method:'POST',
contentType:'multipart/form-data',
data
})
}
// 删除发票
export function deleteInvoice(data) {
return request({
url:'/order/taskInvoiceBatch/deleteInfo',
method:'POST',
contentType:'multipart/form-data',
data
})
}
// 生成财务批次
export function createBatch(data) {
return request({
url:'/order/taskInvoiceBatch/supplierCreateFinanceBatch',
method:'POST',
contentType:'application/x-www-form-urlencoded',
data,
testFlag: true
})
}
// 开票信息列表
export function getFinanceBatchList(data) {
return request({
url:'/order/taskInvoiceFinanceBatch/selectFinanceBatchPageList',
method:'POST',
data,
})
}
// 批次对应发票信息列表
export function financeInvoiceList(data) {
return request({
url:'/order/taskInvoiceBatch/selectInvoicePageList',
method:'POST',
data,
})
}
// 查看发票
export function selectInvoiceDetailInfo(data) {
return request({
url:'/order/taskInvoiceBatch/selectInvoiceDetailInfo',
method:'POST',
data,
})
}
// 填写快递
export function saveBatchCourierNumber(data) {
return request({
url:'/order/taskInvoiceBatch/supplierSaveBatchCourierNumber',
method:'POST',
data,
})
}
// 获取服务商发票信息
export function getBillingInfo(url, data) {
return request({
url: url,
method:'POST',
contentType:'multipart/form-data',
data
})
}
// ocr 识别
export function ocrHandler(data){
return request({
@ -308,12 +198,3 @@ export function ocrHandler(data){
data
})
}
///agg-api/tencent-ocr/unifiedOCRWithCompress
export function unifiedOCRWithCompress(data){
return request({
url:'/agg-api/tencent-ocr/unifiedOCRWithCompress',
method:'POST',
contentType:'application/json',
data
})
}

View File

@ -77,78 +77,3 @@ export function updateOrderSettlement(data){
data
})
}
// 电瓶数量列表
export function batteryCountList(){
return request({
url:'/supplierAppV2/dispatchApp/battery/batteryCountList',
method:'POST',
contentType:'application/json',
// data
})
}
// 电瓶详情
export function batteryDetailList (data){
return request({
url:'/supplierAppV2/dispatchApp/battery/batteryDetailList',
method:'POST',
contentType:'application/json',
data
})
}
// 查询未读告知函
export function selectUnReadNotifyBySupplier() {
return request({
url: '/supplierManage/correction/notify/selectUnReadNotifyBySupplier',
method:'POST',
})
}
// 阅读告知函
export function correctionHandle(data) {
return request({
url: '/supplierManage/correction/record/correctionHandle',
method:'POST',
data
})
}
// 获取报警列表
export function getAlarmList(data) {
return request({
url: '/supplierAppV2/dispatchApp/alarm/alarmList',
method:'POST',
contentType: 'application/json',
data
})
}
// 获取报警数目
export function getAlarmCount(data) {
return request({
url: '/supplierAppV2/dispatchApp/alarm/alarmCount',
method:'POST',
data
})
}
// 获取报警详情
export function getAlarmByCode(data) {
return request({
url: '/supplierAppV2/dispatchApp/alarm/getAlarmByCode',
method:'POST',
data
})
}
// 处理报警
export function dealWithAlarm(data) {
return request({
url: '/supplierAppV2/dispatchApp/alarm/handAlarm',
method:'POST',
data
})
}

View File

@ -1,37 +0,0 @@
import request from '@/utils/http'
// 根据订单 获取报备类型
export function getReportListByOrder(key){
return request({
url: '/order/baseDriverReportConfigs/getByOrderId',
method:'GET',
params: key
})
}
// 添加报备
export function newOrderReporting(data){
return request({
url: '/supplierAppV2/dispatchApp/order/newOrderReporting',
method:'POST',
contentType: 'application/json',
data
})
}
// 获取报备列表
export function reportHistory(data){
return request({
url: '/supplierAppV2/dispatchApp/order/reportHistory',
method:'POST',
data
})
}
// 获取订单信息
export function getOrderInfo(data){
return request({
url: '/supplierAppV2/dispatchApp/order/reportOrderDetail',
method:'POST',
data
})
}

View File

@ -1,105 +0,0 @@
import request from '@/utils/http'
// 车源/求购列表
export function appPageList(data){
return request({
url: '/toc-user/car-app/appPageList',
method:'POST',
contentType: 'application/json',
data
})
}
// 我的发布列表
export function minePublishPageList(data){
return request({
url: '/toc-user/car-app/minePublishPageList',
method:'POST',
contentType: 'application/json',
data
})
}
// 审核不通过数量
export function auditFailCount (data){
return request({
url: '/toc-user/car-app/auditFailCount ',
method:'POST',
// contentType: 'application/json',
data
})
}
// 信息详情查询
export function carInfoDetail(data){
return request({
url: '/toc-user/car-app/carInfoDetail',
method:'POST',
contentType: 'application/json',
data
})
}
// 发布编辑信息
export function publishCarInfo(data){
return request({
url: '/toc-user/car-app/publishCarInfo',
method:'POST',
contentType: 'application/json',
data
})
}
// 用户信息反馈
export function userFeedback(data){
return request({
url: '/toc-user/car-app/userFeedback',
method:'POST',
contentType: 'application/json',
data
})
}
//二手拖车信息擦亮
export function usedCarPolish(data){
return request({
url: `/toc-user/car-app/usedCarPolish/${data}`,
method:'POST',
})
}
//二手拖车信息下架
export function usedCarRemove(data){
return request({
url: '/toc-user/car-app/usedCarRemove',
method:'POST',
contentType: 'application/json',
data
})
}
//二手拖车信息重新上架
export function usedCarReShelf(data){
return request({
url: `/toc-user/car-app/usedCarReShelf/${data}`,
method:'POST',
})
}
//审批信息
export function auditCarInfo(data){
return request({
url: '/toc-user/car-admin/auditCarInfo',
method:'POST',
data
})
}
// 保存信息记录
export function saveRecord(data){
return request({
url: '/toc-user/car-record/saveRecord',
method:'POST',
contentType: 'application/json',
data
})
}
// 审核不通过再次提交
export function auditCarInfoAgain(data){
return request({
url: '/toc-user/car-app/auditCarInfoAgain',
method:'POST',
contentType: 'application/json',
data
})
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 785 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1022 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 327 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 327 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 933 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -2,9 +2,6 @@ import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
import kpiRouter from './kpi-router'
import invoiceRouter from "@/router/invoice-router";
import secondHandRouter from "@/router/second-hand-router";
import reportRouter from "@/router/report-router"
const routes = [
{
path: '/',
@ -87,48 +84,15 @@ const routes = [
name: 'invoicingNotify',
component: () => import('@/views/index/invoicingNotify.vue'),
meta: {
title: '工单批次'
title: '开票通知'
}
},
{
path: "/invoiceListInfo",
name: 'invoiceListInfo',
component: () => import('@/views/index/invoiceListInfo.vue'),
meta: {
title: '开票信息'
}
},
{
path: "/invoiceInfo",
name: 'invoiceInfo',
component: () => import('@/views/index/invoiceInfo.vue'),
meta: {
title: '开票信息'
}
},
{
path: "/invoicingDetail",
name: 'invoicingDetail',
component: () => import('@/views/index/invoicingDetail'),
meta: {
title: '工单批次详情'
}
},
{
path: "/uploadInvoice",
name: 'uploadInvoice',
component: () => import('@/views/index/uploadInvoice.vue'),
meta: {
title: '上传发票',
cache: true
}
},
{
path: "/showInvoice",
name: 'showInvoice',
component: () => import('@/views/index/showInvoice.vue'),
meta: {
title: '查看发票'
title: '开票通知详情'
}
},
{
@ -167,14 +131,6 @@ const routes = [
path: '/trainDocment',
name: 'trainDocment',
component:()=>import('@/views/documentView/trainDocment.vue'),
meta: {
title:'培训文档',
}
},
{
path: '/diverTrainDocment',
name: 'diverTrainDocment',
component:()=>import('@/views/documentView/diverTrainDocment.vue'),
meta: {
title:'培训文档'
}
@ -187,14 +143,6 @@ const routes = [
title:'文档资料'
}
},
{
path: '/notificationList',
name: 'notificationList',
component:()=>import('@/views/index/notificationList'),
meta: {
title:'告知函'
}
},
{
path: '/caseList',
name: 'caseList',
@ -232,15 +180,7 @@ const routes = [
name: 'newTrainingList',
component:()=>import('@/views/newcomerTraining/newTrainingList.vue'),
meta: {
title:'新服务商培训'
}
},
{
path: '/driverTrainingList',
name: 'driverTrainingList',
component:()=>import('@/views/newcomerTraining/driverTrainingList.vue'),
meta: {
title:'新师傅培训'
title:'新培训'
}
},
{
@ -251,22 +191,6 @@ const routes = [
title:'车辆维保'
}
},
{
path: '/vehicleAlarmList',
name: 'vehicleAlarmList',
component:()=>import('@/views/vehicle-maintenance/vehicle-alarm-list.vue'),
meta: {
title:'车辆报警'
}
},
{
path: '/vehicleAlarmDetail',
name: 'vehicleAlarmDetail',
component:()=>import('@/views/vehicle-maintenance/vehicle-alarm-detail.vue'),
meta: {
title:'报警详情'
}
},
{
path: '/maintenanceApplication',
name: 'maintenanceApplication',
@ -275,26 +199,7 @@ const routes = [
title:'维保申请'
}
},
{
path: '/batteryList',
name: 'batteryList',
component:()=>import('@/views/battery/batteryList.vue'),
meta: {
title:'电瓶进销存'
}
},
{
path: '/batteryDetail',
name: 'batteryDetail',
component:()=>import('@/views/battery/batteryDetail.vue'),
meta: {
title:'电瓶详情'
}
},
...kpiRouter,
...invoiceRouter,
...secondHandRouter,
...reportRouter
]
const router = new VueRouter({

View File

@ -1,11 +0,0 @@
const invoiceRouter = [
{
path: '/invoiceIndex',
name: 'invoiceIndex',
component: () => import('@/views/invoice/invoiceIndex'),
meta:{
title: '道路救援',
}
},
]
export default invoiceRouter

View File

@ -1,21 +0,0 @@
const reportRouter = [
{
path: '/reportIndex',
name: 'reportIndex',
component: () => import('@/views/report/reportIndex'),
meta:{
title: '道路救援',
cache: true,
modalState: false,
}
},
{
path: '/addressMap',
name: 'addressMap',
component: () => import('@/views/report/addressMap'),
meta:{
title: '道路救援',
}
},
]
export default reportRouter

View File

@ -1,67 +0,0 @@
const secondHandCar = [
{
path: '/indexList',
name: 'indexList',
component: () => import('@/views/secondHandCar/indexList.vue'),
meta:{
title: '首页列表',
}
},
{
path: '/carSource',
name: 'carSource',
component: () => import('@/views/secondHandCar/carSource.vue'),
meta:{
title: '车源发布',
}
},
{
path: '/wantBuy',
name: 'wantBuy',
component: () => import('@/views/secondHandCar/wantBuy.vue'),
meta:{
title: '求购发布',
}
},
{
path: '/forSale',
name: 'forSale',
component: () => import('@/views/secondHandCar/forSale.vue'),
meta:{
title: '查看车源',
}
},
{
path: '/wantBuySale',
name: 'wantBuySale',
component: () => import('@/views/secondHandCar/wantBuySale.vue'),
meta:{
title: '查看求购',
}
},
{
path: '/mineRelease',
name: 'mineRelease',
component: () => import('@/views/secondHandCar/mineRelease.vue'),
meta:{
title: '我的发布',
}
},
{
path: '/privacyComponent',
name: 'privacyComponent',
component: () => import('@/views/secondHandCar/privacy.vue'),
meta:{
title: '免责声明',
}
},
{
path: '/sellingInfo',
name: 'sellingInfo',
component: () => import('@/views/secondHandCar/sellingInfo.vue'),
meta:{
title: '售出信息',
}
},
]
export default secondHandCar

View File

@ -45,6 +45,7 @@ select{
margin-left: 0;
font-weight: normal;
font-size: 14px;
//@include fontWeightSize(400,14px);
color: #000000;
}

View File

@ -1,9 +1,8 @@
@import "@/styles/mixin.scss";
.wrap{
@include wh(100%,100%);
background-color: #F4F5F7;
overflow-y: auto;
}
.navBar{
margin-bottom: 46px;
@ -14,44 +13,16 @@
@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{
@include sizingPadding(0,8px);
overflow-y: auto;
width: 100%;
height: calc(100% - 100px);
margin-top: 10px;
margin-top: 20px;
.itemWrap{
margin-bottom: 16px;
width: 100%;
//@include wh(100%, 300px);
@include wh(100%, 300px);
background: #FFFFFF;
box-shadow: 0px 2px 10px 0px rgba(216, 216, 216, 0.5);
@include sizingPadRadius(6px ,0,6px);
@include sizingPadRadius(6px ,0,3px);
@include flexAround;
@include fontWeightSize(400, 12px);
.flexBetween{
@ -60,16 +31,18 @@
.common{
margin: 0 15px ;
}
.time{
color: rgba(0,0,0,0.7);
margin-top: 5px;
}
.imgWrap{
@include wh(100%,200px);
position: relative;
margin: 6px 0;
img{
@include wh(100%,100%);
@include wh(100%,200px);
}
.name{
position: absolute;
left: 30px;
bottom: 30px;
@include fontWeightSize(bold,14px);
color: #FFFFFF;
}
}
.left{

View File

@ -1,103 +0,0 @@
@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

@ -1,6 +1,7 @@
import axios from "axios";
import qs from 'qs'
import { Toast } from 'vant'
// console.log('process.env.VUE_APP_BASE_API', process.env.VUE_APP_BASE_API)
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API,
@ -10,32 +11,28 @@ const service = axios.create({
timeout: 10000
})
const urlParams = new URLSearchParams(window.location.search);
let token = urlParams.get('token');
if( token ) {
localStorage.setItem('token', token);
} else {
localStorage.setItem('token', '');
}
let token = urlParams.get('token') ;
localStorage.setItem('token', token);
service.interceptors.request.use(
config => {
let reqUrl=config.url
config.data = config.contentType ? config.data : qs.stringify(config.data)
if (config.testFlag) {
config.data = qs.stringify(config.data, {arrayFormat: 'indices', allowDots: true})
}
config.headers['Content-Type'] = config.contentType || 'application/x-www-form-urlencoded'
let token = localStorage.getItem('token');
// let token='eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBTkNIQU5HIiwidXNlcklkIjo0NTY3MSwibmFtZSI6IuWuieeVhSIsInVzZXJOYW1lIjoiQU5DSEFORyIsInN1cHBsaWVySWQiOjExMjgsImlzWmQiOjAsImV4cCI6MTc1NTQyMjUyNX0.xzDZhaANJFnbeViIHJA0SEtOyTv7Ja3rKmXqRKRuFkc'
// let token='eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJTSEhQWEIiLCJ1c2VySWQiOjU0NzI2LCJuYW1lIjoiI-a1i-ivleWwj-eZveeZvSIsInVzZXJOYW1lIjoiU0hIUFhCIiwic3VwcGxpZXJJZCI6MTAwMDE2NSwiZXhwIjoxNzQ0NTEwNzkwfQ.JPk0OA7slYJN3FIi_uhW4Y0CiWRvl6R1dK8MRTbyhD8'
if(!(reqUrl=='/supplier/supplierTraining/trainingTask' || reqUrl=='/supplier/supplierTraining/normalList' || reqUrl=='/supplier/supplierTraining/trainingList')){
if(token) {
config.headers['Authorization'] = `${token}`;
config.headers['token'] = `${token}`;
}
}
// alert(token);
// let token='4099761587129c46b03c9316c9e866c9'
// let token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzb25nIiwiYXVkIjpbInN1cHBsaWVyLWFwcCJdLCJuYmYiOjE3MTI0NTQ5NTMsInVzZXJfaW5mbyI6eyJ1c2VySWQiOjU0NjU0LCJwaG9uZSI6IjE3NjMwMDM1NjU4IiwibmFtZSI6InNvbmciLCJzdXBwbGllck5hbWUiOiJDLeS4iua1t-a1i-ivleacjeWKoeWVhiIsInN1cHBsaWVySWQiOjMzMDQxLCJzdXBwbGllclR5cGUiOjIsInVzZXJuYW1lIjoic29uZyIsInVzZXJUeXBlIjoicmVzY3VlQXBwIiwiZGV2aWNlSWQiOiIyMmI0OWNhMjBmOWI4MzMwZDk4NzIxNzNmMzllYTY4YmMiLCJhdXRob3JpdGllcyI6W119LCJzY29wZSI6WyJhbGwiXSwiaXNzIjoiaHR0cHM6Ly9zaW5vYXNzaXN0LmNvbSIsImV4cCI6MTcxMjU0MTM1MywiaWF0IjoxNzEyNDU0OTUzfQ.sPU9_OD_TOWcTwqmlawEGyo4mCPrEaRYw2R02gnvYJw'
// console.log("tokentokentoken",token)
if (reqUrl.includes("/driverApp")) {
config.headers['token'] = `${token}`;
} else {
console.log("调度app")
config.headers['Authorization'] = `${token}`;
}
return config
},
error => {
console.log(error)
return Promise.reject(error)
}
)
@ -43,17 +40,27 @@ service.interceptors.request.use(
service.interceptors.response.use(
response => {
const res = response.data
// return res //请求响应数据
// if(res.code === 401){
// Toast('token不合法或过期')
// }else if(){
//
// }
if ( res.code === 401 || res.code === 400 || res.code == 500) {
Toast(res.msg || 'Error')
return Promise.reject(res.msg)
return Promise.reject(new Error(res.msg || 'Error'))
} else {
return res
// if( res.code === 200 ) {
// return res.data
// } else {
// return res.data
// }
}
},
error => {
if(error.message != 'Network Error'){
Toast(error.message)
}
console.log('err' + error)
Toast(error.message)
return Promise.reject(error)
}
)

View File

@ -36,7 +36,6 @@ export function getAddress(mapContext, lnglat) {
} else {
console.log(result)
alert(JSON.stringify(result))
reject(result)
}
})
})
@ -45,7 +44,7 @@ export function getAddress(mapContext, lnglat) {
// 输入提示
export function searchFun(mapContext, cityCode, keyword) {
return new Promise((resolve) => {
return new Promise((resolve, reject) => {
mapContext.plugin('AMap.AutoComplete', function(){
var autoOptions = {
city: cityCode || '全国',
@ -58,7 +57,7 @@ export function searchFun(mapContext, cityCode, keyword) {
if(result.info == 'OK') {
resolve(result.tips)
} else {
resolve([])
reject(result)
}
})
})
@ -91,7 +90,6 @@ export function getRoad( mapContext, startLng, startLat, endLng, endLat ) {
}
/*
function drawRoute(route, map) {
let path = parseRouteToPath(route)
@ -108,4 +106,3 @@ function drawRoute(route, map) {
map.add(routeLine);
}
*/

Some files were not shown because too many files have changed in this diff Show More