5 Commits

120 changed files with 121 additions and 6800 deletions

1
.gitignore vendored
View File

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

View File

@ -29,3 +29,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
```
code = 104, 接口不提示报错
```
### 开发分支
```
dev_2025
```

12
package-lock.json generated
View File

@ -8,7 +8,6 @@
"name": "scheduline-app-h5",
"version": "0.1.0",
"dependencies": {
"@vant/area-data": "^2.0.0",
"amfe-flexible": "^2.2.1",
"axios": "^1.4.0",
"core-js": "^3.8.3",
@ -2366,12 +2365,6 @@
"@types/node": "*"
}
},
"node_modules/@vant/area-data": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/@vant/area-data/-/area-data-2.0.0.tgz",
"integrity": "sha512-zgP4AA8z09S9QTNgVCCHo9cHjcybrv22RJDYPjuCkecn4SB98T5EoPQh2TwqbQXmUhbaOGgiZGy3OUaUxnY7qg==",
"license": "MIT"
},
"node_modules/@vant/icons": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/@vant/icons/-/icons-3.0.2.tgz",
@ -13628,11 +13621,6 @@
"@types/node": "*"
}
},
"@vant/area-data": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/@vant/area-data/-/area-data-2.0.0.tgz",
"integrity": "sha512-zgP4AA8z09S9QTNgVCCHo9cHjcybrv22RJDYPjuCkecn4SB98T5EoPQh2TwqbQXmUhbaOGgiZGy3OUaUxnY7qg=="
},
"@vant/icons": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/@vant/icons/-/icons-3.0.2.tgz",

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,10 @@
"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",
"decimal.js": "^10.4.3"
},
"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://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)
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

@ -308,12 +308,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

@ -94,61 +94,4 @@ export function batteryDetailList (data){
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: 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

@ -3,8 +3,6 @@ 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: '/',
@ -187,14 +185,6 @@ const routes = [
title:'文档资料'
}
},
{
path: '/notificationList',
name: 'notificationList',
component:()=>import('@/views/index/notificationList'),
meta: {
title:'告知函'
}
},
{
path: '/caseList',
name: 'caseList',
@ -251,22 +241,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',
@ -293,8 +267,6 @@ const routes = [
},
...kpiRouter,
...invoiceRouter,
...secondHandRouter,
...reportRouter
]
const router = new VueRouter({

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,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,38 @@ 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
// console.log("reqUrl",reqUrl)
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'
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'
// let token='4099761587129c46b03c9316c9e866c9'
// let token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzb25nIiwiYXVkIjpbInN1cHBsaWVyLWFwcCJdLCJuYmYiOjE3MTI0NTQ5NTMsInVzZXJfaW5mbyI6eyJ1c2VySWQiOjU0NjU0LCJwaG9uZSI6IjE3NjMwMDM1NjU4IiwibmFtZSI6InNvbmciLCJzdXBwbGllck5hbWUiOiJDLeS4iua1t-a1i-ivleacjeWKoeWVhiIsInN1cHBsaWVySWQiOjMzMDQxLCJzdXBwbGllclR5cGUiOjIsInVzZXJuYW1lIjoic29uZyIsInVzZXJUeXBlIjoicmVzY3VlQXBwIiwiZGV2aWNlSWQiOiIyMmI0OWNhMjBmOWI4MzMwZDk4NzIxNzNmMzllYTY4YmMiLCJhdXRob3JpdGllcyI6W119LCJzY29wZSI6WyJhbGwiXSwiaXNzIjoiaHR0cHM6Ly9zaW5vYXNzaXN0LmNvbSIsImV4cCI6MTcxMjU0MTM1MywiaWF0IjoxNzEyNDU0OTUzfQ.sPU9_OD_TOWcTwqmlawEGyo4mCPrEaRYw2R02gnvYJw'
if(!(reqUrl=='/supplier/supplierTraining/trainingTask' || reqUrl=='/supplier/supplierTraining/normalList' || reqUrl=='/supplier/supplierTraining/trainingList')){
if(token) {
config.headers['Authorization'] = `${token}`;
config.headers['token'] = `${token}`;
}
}
/* if (reqUrl.includes("/driverApp")) {
// console.log("司机app")
config.headers['token'] = `${token}`;
} else if(reqUrl.includes("/supplierApp") || reqUrl.includes("/supplierKPI") || reqUrl.includes('/supplier/select') || reqUrl.includes('/order') || reqUrl.includes('/order/taskInvoiceBatch') || reqUrl.includes('/supplier') ){
// console.log("调度app服务商kpi")
config.headers['Authorization'] = `${token}`;
}else{
config.headers['token'] = `${token}`;
}*/
return config
},
error => {
console.log(error)
return Promise.reject(error)
}
)
@ -43,17 +50,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)
} 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);
}
*/

View File

@ -1,7 +1,9 @@
export const myMixins = {
data() {
return {
touchStart: [],
touchEnd: [],
slideShow: true
}
},
methods: {
@ -70,38 +72,12 @@ export const myMixins = {
methods();
}
setTimeout(() => {
console.log("shengxiaoxi")
that.noClick = true;
}, 3000)
} else {
// 这里是重复点击的判断
}
},
formatNumber(num) {
if (num < 10000) {
// 小于 5 位数,显示为 0.x 万
return `${(num / 10000).toFixed(1)}`;
} else {
// 大于或等于 5 位数,显示为 x 万,四舍五入到小数点后一位
return `${Math.round(num / 1000) / 10}`;
}
},
isWebFunc(){
let res=false
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
if (!isMobile) {// 是移动端不变
res=true
}
return res
},
closeParentDialog() {
if (window.parent) {
const hasListener = window.parent.dispatchEvent(new Event('checkCloseDialog'));
if (hasListener) {
window.parent.postMessage('closeDialog', '*');
} else {
window.history.back();
}
}
},
}
}
}

View File

@ -1,161 +0,0 @@
<template>
<div>
<div class="dialog-wrapper">
<div class="title">
{{ '告知函('+(currentIndex + 1)+'/'+ list.length+')' }}
</div>
<h3 class="top">{{currentItem?.title?currentItem?.title:(currentItem?.type==1 ? '质量不合格整改' : '质量不合格调整告知')}}</h3>
<div class="center">
<div v-html="formattedContent(currentItem)"></div>
</div>
<div class="end">
<div>中道汽车救援股份有限公司</div>
<div>区域管理部</div>
<div>{{formatDate(currentItem)}}</div>
</div>
<div class="iptWrap">
<div class="tip">请仔细阅读告知函内容并在下方输入"我已阅读”以表明您已充分理解函件中的各项信息。</div>
<el-input style="width: 50%" v-model.trim="content" placeholder="请输入我已阅读"></el-input>
</div>
<div class="dialog-footer">
<el-button type="info" size="small" v-if="num > 0">还需阅读{{num}}秒</el-button>
<el-button type="primary" size="small" v-if="num==0" @click="confirmHandle(currentItem)">确认</el-button>
</div>
</div>
</div>
</template>
<script>
import {myMixins} from "@/utils/myMixins"
import {selectUnReadNotifyBySupplier, correctionHandle} from "@/api/order"
export default {
name: "notificationList",
mixins: [myMixins],
data() {
return {
list: [],
currentIndex: 0,
num:10,
timer: null,
content: '',
}
},
computed: {
currentItem() {
return this.list[this.currentIndex];
}
},
watch: {
currentIndex() {
this.content = '';
this.num = 10;
this.startCountdown();
},
},
async mounted() {
await this.getLetterList();
this.timer && clearInterval(this.timer)
this.startCountdown();
},
methods: {
async confirmHandle(item){
if (this.content === '我已阅读') {
console.log('item', item)
let res = await correctionHandle({
handleType:4,
operationType:'modify',
recordId:item.recordId,
planId:item.planId,
notifyId:item.id,
});
console.log('阅读res', res)
// 确认成功后处理下一个告知函
this.currentIndex++;
if (this.currentIndex < this.list.length) {
this.content = '';
this.num = 10;
this.startCountdown();
} else {
this.closeHandle();
}
} else {
this.$message.error('请输入"我已阅读"以确认');
}
},
async getLetterList(){
let res = await selectUnReadNotifyBySupplier();
let result = res?.data || []
if(result && result.length>0){
this.list = result
}
},
formatDate(val){
/** 日期格式化
* */
if(!val?.updateTime){
return
}
const date = new Date(val.updateTime);
const year = date.getFullYear();
const month = date.getMonth() + 1; // 月份从 0 开始,需要加 1
const day = date.getDate();
const formattedDate = `${year}年${month}月${day}日`;
return formattedDate
},
formattedContent(val) {
/** 转换文本,能被 v-html 识别
* */
return val?.content?.replace(/\r\n/g, '<br>').replace(/\n/g, '<br>');
},
startCountdown() {
this.stopCountdown()
this.timer = setInterval(() => {
if (this.num > 0) {
this.num--;
}
}, 1000);
},
closeHandle() {
this.stopCountdown();
// 调用 app 的方法
this.goBack();
},
stopCountdown() {
if (this.timer) {
clearInterval(this.timer);
this.timer = null;
}
},
}
}
</script>
<style scoped lang="scss">
.dialog-wrapper {
padding: 10px 20px;
}
.title {
}
.top {
text-align: center;
}
.center {
margin: 20px 0;
line-height: 24px;
.hight{
color: #0B99E4;
}
}
.end{
text-align: right;
line-height: 24px;
}
.tip{
margin-top: 40px;
margin-bottom: 10px;
}
.dialog-footer {
text-align: right;
}
</style>

View File

@ -6,15 +6,15 @@
<div class="metersWrap">
<div class="item" v-show="supplierSettlementType != 1">
<div class="leftKiloMeters">AB段公里数</div>
<div class="rightInput"><input type="number" :disabled="!taskCostShow" v-model="form.reportMileageAb"/>公里</div>
<div class="rightInput"><input type="number" v-model="form.reportMileageAb"/>公里</div>
</div>
<div class="item" v-show="supplierSettlementType == 1 || supplierSettlementType == 2 || supplierSettlementType == 3 || supplierSettlementType == 4">
<div class="leftKiloMeters">BC段公里数</div>
<div class="rightInput"><input type="number" :disabled="!taskCostShow" v-model="form.reportMileageBc"/>公里</div>
<div class="rightInput"><input type="number" v-model="form.reportMileageBc"/>公里</div>
</div>
<div class="item" v-show=" supplierSettlementType == 3 || supplierSettlementType == 4">
<div class="leftKiloMeters">CA段公里数</div>
<div class="rightInput"><input type="number" :disabled="!taskCostShow" v-model="form.reportMileageCa"/>公里</div>
<div class="rightInput"><input type="number" v-model="form.reportMileageCa"/>公里</div>
</div>
</div>
</div>
@ -24,15 +24,15 @@
<div class="metersWrap">
<div class="item" v-show="supplierSettlementType != 1">
<div class="leftKiloMeters">AB段路桥费</div>
<div class="rightInput"><input type="number" :disabled="!taskCostShow" v-model="form.bridgeAmountAb"/></div>
<div class="rightInput"><input type="number" v-model="form.bridgeAmountAb"/></div>
</div>
<div class="item" v-show="supplierSettlementType == 1 || supplierSettlementType == 2 || supplierSettlementType == 3 || supplierSettlementType == 4">
<div class="leftKiloMeters">BC段路桥费</div>
<div class="rightInput"><input type="number" :disabled="!taskCostShow" v-model="form.bridgeAmountBc"/></div>
<div class="rightInput"><input type="number" v-model="form.bridgeAmountBc"/></div>
</div>
<div class="item" v-show=" supplierSettlementType == 3 || supplierSettlementType == 4">
<div class="leftKiloMeters">CA段路桥费</div>
<div class="rightInput"><input type="number" :disabled="!taskCostShow" v-model="form.bridgeAmountCa"/></div>
<div class="rightInput"><input type="number" v-model="form.bridgeAmountCa"/></div>
</div>
</div>
</div >
@ -42,23 +42,23 @@
<div class="metersWrap">
<div class="item" >
<div class="leftKiloMeters">小轮个数</div>
<div class="rightInput"><input type="number" :disabled="!taskCostShow" v-model="form.tyreNumber" @input="handleInput"/></div>
<div class="rightInput"><input type="number" v-model="form.tyreNumber" @input="handleInput"/></div>
</div>
<div class="item">
<div class="leftKiloMeters">等候费</div>
<div class="rightInput"><input type="number" :disabled="!taskCostShow" v-model="form.waitAmount"/></div>
<div class="rightInput"><input type="number" v-model="form.waitAmount"/></div>
</div>
<div class="item" >
<div class="leftKiloMeters">困境费</div>
<div class="rightInput"><input type="number" :disabled="!taskCostShow" v-model="form.dilemmaFee"/></div>
<div class="rightInput"><input type="number" v-model="form.dilemmaFee"/></div>
</div>
<div class="item blueColor" >
<div class="leftKiloMeters">收取客户金额</div>
<div class="rightInput blueColor"><input class="blueColor" type="number" :disabled="!taskCostShow" v-model="form.customerAmount"/></div>
<div class="rightInput blueColor"><input class="blueColor" type="number" v-model="form.customerAmount"/></div>
</div>
</div>
</div>
<div class="btn" v-if="taskCostShow || finishLt7">
<div class="btn">
<button @click="submit">提交</button>
</div>
</div>
@ -86,9 +86,7 @@ export default {
waitAmount:'',
dilemmaFee:'',
customerAmount:'',
taskFlowId:'',
auditStatus:'',
finishTime:'',
taskFlowId:''
}
}
},
@ -99,14 +97,6 @@ export default {
this.orderCode = urlParams.get('orderCode')
await this.getDetail()
},
computed:{
taskCostShow() {
return this.form.auditStatus?.code && !([3, 4, 6].includes(this.form.auditStatus.code))
},
finishLt7(){
return !this.form.finishTime || (this.form.finishTime && new Date().getTime() - new Date(this.form.finishTime).getTime() <= 7 * 24 * 60 * 60 * 1000)
},
},
methods:{
handleInput(event) {
const newValue = parseInt(event.target.value, 10);
@ -128,6 +118,7 @@ export default {
})
leftCopy(this.form,{...res.data});
this.supplierSettlementType= res.data.supplierSettlementType?.code
// this.form.taskFlowId =1
},
async updatSettlement(){
let result =await updateOrderSettlement({

View File

@ -73,7 +73,6 @@
</template>
<script>
import { Decimal } from 'decimal.js';
import { Dialog } from "vant";
import { myMixins } from "@/utils/myMixins"
import { uploadInvoice, getBillingInfo, deleteInvoice, createBatch } from "@/api/mine"
@ -121,7 +120,7 @@
invoiceTotal () {
let total = 0;
this.list?.map(item => {
total = new Decimal(total).plus(new Decimal(item.invoiceMoney)).toNumber()
total += item.invoiceMoney
})
return total
}
@ -279,15 +278,6 @@
if(ocrName != billName && diffNumber > 2 && !res.data.ocrInvoiceRes.data.sellerName.startsWith("国家税务总局")){
errorStr = errorStr + "上传发票抬头与服务商配置不一致,设置抬头为:" + (this.billInfo.unitName || '未设置') + ",识别抬头为:" + res.data.ocrInvoiceRes.data.sellerName + ";如发票确认无误请联系结算部021-53682525";
}
let conList = res.data.ocrInvoiceRes.data.invoiceDetails.filter(a => a.itemName.includes("*"))
if(!res.data.ocrInvoiceRes.data.sellerName.startsWith("国家税务总局") &&
conList.every(a => {
let items = a.itemName.split("*")
return (!items[1].includes("现代服务") && !items[1].includes("运输服务")) || (!items[2].includes("拖车") && !items[2].includes("救援") && !items[2].includes("施救") && !items[2].includes("清障") && !items[2].includes("道路救援"))
})
){
errorStr = errorStr + "分类必须包含:现代服务/运输服务,服务名称必须包含:拖车/救援/施救/清障/道路救援 ;例如《*现代服务*拖车费》";
}
if( !flag ) {
Dialog.alert({

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