13 Commits

9 changed files with 61 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -95,6 +95,7 @@
multiple multiple
:multiple-limit="isMultiple ? 2 : 1" :multiple-limit="isMultiple ? 2 : 1"
v-model="selectedOption" v-model="selectedOption"
:disabled="vehicleInfoDisabled"
value-key="name" value-key="name"
class="elSelect" class="elSelect"
collapse-tags="collapse-tags" collapse-tags="collapse-tags"
@ -121,6 +122,7 @@
value-key="name" value-key="name"
class="elSelect" class="elSelect"
collapse-tags="collapse-tags" collapse-tags="collapse-tags"
:disabled="vehicleInfoDisabled"
placeholder="请选择" style="width: 55%" placeholder="请选择" style="width: 55%"
> >
<el-option <el-option
@ -190,7 +192,7 @@
<span>车辆状态</span> <span>车辆状态</span>
</div> </div>
<div class="isJoin"> <div class="isJoin">
<van-radio-group v-model="vehicleStatus" @change="isVehicleChange" class="joinWrap"> <van-radio-group v-model="vehicleStatus" :class="{ 'disabled-tree': vehicleInfoDisabled }" :disabled="vehicleInfoDisabled" @change="isVehicleChange" class="joinWrap">
<van-radio :name="1" style="margin-right: 26px"> <van-radio :name="1" style="margin-right: 26px">
启用 启用
<img <img
@ -305,6 +307,7 @@
ref="tree" ref="tree"
:highlight-current="true" :highlight-current="true"
:expand-on-click-node="false" :expand-on-click-node="false"
:class="{ 'disabled-tree': vehicleInfoDisabled }"
:data="supplierServiceList" :data="supplierServiceList"
:props="defaultProps"> :props="defaultProps">
</el-tree> </el-tree>
@ -384,6 +387,7 @@ export default {
vehicleLicense:'',//牌照 vehicleLicense:'',//牌照
vehicleFrontLicensePlate:'',//车头照车牌号码 vehicleFrontLicensePlate:'',//车头照车牌号码
insuranceCorp: '', insuranceCorp: '',
auditStatus: '',
vehicleTypes:[{ vehicleTypes:[{
name: '小修车', name: '小修车',
value: 1 value: 1
@ -491,6 +495,11 @@ export default {
}] }]
} }
}, },
computed: {
vehicleInfoDisabled() {
return [1,2].includes(this.auditStatus)
},
},
watch:{ watch:{
selectedOption(newVal){ selectedOption(newVal){
if(newVal == 4){ if(newVal == 4){
@ -563,6 +572,14 @@ export default {
} }
}) })
this.$forceUpdate(); 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 { } else {
this.vehicleTypes.map(item => { this.vehicleTypes.map(item => {
item.disabled = false; item.disabled = false;
@ -658,8 +675,21 @@ export default {
this.vehicleLicenseInfo.issueDate = frontInfo?.issueDate; this.vehicleLicenseInfo.issueDate = frontInfo?.issueDate;
this.vehicleLicenseInfo.issueAuthority = frontInfo?.seal; this.vehicleLicenseInfo.issueAuthority = frontInfo?.seal;
this.setDefault(); 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 识别 async vehicleBackOcrHandler() { // 行驶证副页 ocr 识别
this.vehicleLicenseInfo.recordNumber = ''; this.vehicleLicenseInfo.recordNumber = '';
this.vehicleLicenseInfo.passengerCapacity = ''; this.vehicleLicenseInfo.passengerCapacity = '';
@ -731,6 +761,7 @@ export default {
this.selectedOption=result.vehicleType?.split(',').map((item)=>{ this.selectedOption=result.vehicleType?.split(',').map((item)=>{
return Number(item); return Number(item);
}); });
this.auditStatus = result.auditStatus;
this.virtualVehicle = result.virtualVehicle; this.virtualVehicle = result.virtualVehicle;
this.$refs.tree.setCheckedKeys(result.serviceIds) this.$refs.tree.setCheckedKeys(result.serviceIds)
this.vehicleStatus = result.vehicleStatus this.vehicleStatus = result.vehicleStatus
@ -811,6 +842,10 @@ export default {
this.$toast('车辆类别不能为空') this.$toast('车辆类别不能为空')
return return
} }
let res = this.checkDisabledItems();
if(!res) {
return false
}
if( !this.virtualVehicle ) { if( !this.virtualVehicle ) {
this.$toast('车辆属性不能为空') this.$toast('车辆属性不能为空')
return return
@ -985,4 +1020,8 @@ export default {
border: none !important; border: none !important;
text-align: right !important; text-align: right !important;
} }
.disabled-tree {
pointer-events: none;
opacity: 0.6;
}
</style> </style>

View File

@ -211,7 +211,7 @@ export default {
'行驶证未录入': { '行驶证未录入': {
className: 'default_cls' className: 'default_cls'
}, },
'行驶证验通过': { '行驶证验通过': {
className: 'success_cls' className: 'success_cls'
}, },
'行驶证核验不通过': { '行驶证核验不通过': {

View File

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

View File

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