10 Commits

9 changed files with 57 additions and 10 deletions

View File

@ -323,6 +323,7 @@ export function jumpPage(data){
return request({
url:'/supplierAppV2/dispatchApp/user/jumpPage',
method:'POST',
contentType:'application/json',
data
})
}

View File

@ -19,6 +19,7 @@ if( token ) {
service.interceptors.request.use(
config => {
let reqUrl=config.url
console.log('config',config)
config.data = config.contentType ? config.data : qs.stringify(config.data)
if (config.testFlag) {
config.data = qs.stringify(config.data, {arrayFormat: 'indices', allowDots: true})
@ -27,12 +28,17 @@ service.interceptors.request.use(
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}`;
}
}
// if(!(reqUrl=='/supplier/supplierTraining/trainingTask' || reqUrl=='/supplier/supplierTraining/normalList' || reqUrl=='/supplier/supplierTraining/trainingList')){
if (reqUrl=='/supplier/supplierTraining/trainingList' && config?.params?.type==1){
console.log('司机app使用该请求不挂token')
} else {
if(token) {
config.headers['Authorization'] = `${token}`;
config.headers['token'] = `${token}`;
}
}
// }
return config
},
error => {

View File

@ -90,6 +90,7 @@ export default {
totalList:[],
numInfo:'',
keyword:'',
serviceTypeName:'',
show:false,
showEmpty:false,
isLoading:false,
@ -102,6 +103,7 @@ export default {
this.driverId = urlParams.get('driverId');
this.time=timeFormat(Date.now())
this.keyword=urlParams.get('keyword') || ''
this.serviceTypeName=urlParams.get('serviceTypeName') || ''
this.getTrainingList();
document.addEventListener('visibilitychange', async ( ) => {
let state = document.visibilityState
@ -129,6 +131,7 @@ export default {
type:1,
id:this.driverId,
text:this.keyword || '',
serviceTypeName:this.serviceTypeName || ''
})
this.totalList=[]
this.pageList=[]

View File

@ -94,6 +94,7 @@ export default {
showEmpty:false,
supplierId:'',
driverId:'',
serviceTypeName:'',
}
},
mounted() {
@ -103,6 +104,7 @@ export default {
if(this.driverId){
this.keyword=urlParams.get('keyword') || ''
}
this.serviceTypeName=urlParams.get('serviceTypeName') || ''
this.getNormalList()
},
methods:{
@ -128,6 +130,7 @@ export default {
type:this.supplierId ? 2 : 1,
id: this.supplierId ? this.supplierId : this.driverId,
text:this.keyword || '',
serviceTypeName:this.serviceTypeName || ''
})
this.totalList=res.data.list
let result=[]

View File

@ -68,6 +68,7 @@ export default {
pageList:[],
totalList:[],
keyword:'',
serviceTypeName:'',
show:false,
showEmpty:false,
isLoading:false,
@ -77,6 +78,8 @@ export default {
mounted() {
const urlParams = new URLSearchParams(window.location.search);
this.supplierId = urlParams.get('supplierId');
this.keyword=urlParams.get('keyword') || ''
this.serviceTypeName=urlParams.get('serviceTypeName') || ''
this.getTrainingList();
document.addEventListener('visibilitychange', async ( ) => {
let state = document.visibilityState
@ -104,6 +107,7 @@ export default {
type:2,
id: this.supplierId,
text:this.keyword || '',
serviceTypeName:this.serviceTypeName || ''
})
this.totalList=[]
this.pageList=[]

View File

@ -175,7 +175,7 @@ export default {
confirmButtonColor: '#0E76F4',
showCancelButton: false,
}).then(async() => {
this.goPage('newTrainingList', { supplierId : this.supplierId })
this.goPage('newTrainingList', { supplierId : this.supplierId, type: 'invoice' })
}).catch(() => {
// on cancel
});
@ -189,7 +189,9 @@ export default {
this.getNotifyList()
},
async getJumpHandler() {
let res = await jumpPage();
let res = await jumpPage({
type: 'invoice'
});
return res
},
getMonth(item) {

View File

@ -572,6 +572,14 @@ export default {
}
})
this.$forceUpdate();
} else if( this.vehicleLicenseInfo?.vehicleType?.includes('载货') || this.vehicleLicenseInfo?.vehicleType?.includes('中型') || this.vehicleLicenseInfo?.vehicleType?.includes('重型')) {
this.vehicleTypes.map(item => {
if( item.value == 1 || item.value == 9 ) {
item.disabled = true;
} else {
item.disabled = false;
}
})
} else {
this.vehicleTypes.map(item => {
item.disabled = false;
@ -667,8 +675,21 @@ export default {
this.vehicleLicenseInfo.issueDate = frontInfo?.issueDate;
this.vehicleLicenseInfo.issueAuthority = frontInfo?.seal;
this.setDefault();
this.checkDisabledItems();
}
},
checkDisabledItems() {
let _arr = [];
this.selectedOption.map(item => {
let _tempArr = this.vehicleTypes.filter(_item => _item.disabled && _item.value == item);
_arr = [..._arr, ..._tempArr]
})
if (_arr.length > 0) {
this.$toast(`车辆类别数据不合法:${_arr.map(item => item.name).join('、')}`)
return false
}
return true
},
async vehicleBackOcrHandler() { // 行驶证副页 ocr 识别
this.vehicleLicenseInfo.recordNumber = '';
this.vehicleLicenseInfo.passengerCapacity = '';
@ -821,6 +842,10 @@ export default {
this.$toast('车辆类别不能为空')
return
}
let res = this.checkDisabledItems();
if(!res) {
return false
}
if( !this.virtualVehicle ) {
this.$toast('车辆属性不能为空')
return

View File

@ -22,7 +22,7 @@
为此中道救援经过与保司沟通协调特为与中道救援合作紧密的服务商提供救援职业责任险参保渠道提升服务商服务能力降低运营风险实现共同进步
</div>
<div>救援职业责任险简介</div>
<div>1综合保额50万元可全方位覆盖我们日常的经营活动</div>
<div> 1综合保额100万元其中救援责任50万元物流责任50万元可全方位覆盖我们日常的经营活动</div>
<div> 2保费支付可采用救援服务费抵扣的方式降低资金压力</div>
<div> 3详细保险条款保费和其他问题如需了解请与辖区区域经理联系</div>
<div> 其他意见建议如需交流请与18621558505曲仁杰联系</div>

View File

@ -78,9 +78,11 @@ export default {
isLoading:false,
showPoup:true,//进入弹框
isFinished:false,
type: '',
}
},
mounted() {
this.type = this.$route.query?.type;
// this.onRefresh();
this.getList();
@ -120,6 +122,7 @@ export default {
pageSize:this.pageSize,
docType:1,
trainingType:4,
type: this.type,
})
this.pageList=res.data?.list || [];
if(res.data.assessState == 0){