代办事项审核bug修复

This commit is contained in:
2023-08-23 19:31:16 +08:00
parent d1477ec8b0
commit bb0b66f178
3 changed files with 7 additions and 10 deletions

View File

@ -111,9 +111,6 @@ export default {
}
},
async mounted() {
// const urlParams = new URLSearchParams(window.location.search);
// const token = urlParams.get('token');
// this.$toast("车辆编辑打印token" + token)
this.id=this.$route.params?.id
const selectElement = document.getElementById('mySelect');
selectElement.addEventListener('change', function() {
@ -140,14 +137,12 @@ export default {
let res= await getInfoById({
vehicleId:this.id
})
// if(res.code === 200){
let result=res.data;
this.id=result.vehicleId
this.carNum=result.plateNumber
this.isJoin=result.hasPolymerization.code
this.selectedOption=result.vehicleType;
this.serviceIds=result.serviceIds
// }
},
change(e) {
this.trailerService=e
@ -163,7 +158,7 @@ export default {
this.$router.back()
},
async submitBtn(){
if(!(this.carNum && this.selectedOption && this.isJoin)){
if(this.carNum || this.selectedOption || this.isJoin){
this.$toast('必填字段未填写')
}else{
await saveVehicle({