This commit is contained in:
Vinjor 2024-11-13 16:37:01 +08:00
parent ec0c028ff7
commit 84b4e6e9a3
4 changed files with 29 additions and 26 deletions

View File

@ -63,9 +63,6 @@
<!-- <view @click="doOrder(order.id)" v-if="order.ticketsStatus == '05' && order.ticketsWorkStatus=='04' && roleCanSg" class="btn qc">-->
<!-- 开始施工-->
<!-- </view>-->
<view v-if="order.ticketsStatus == '06' && roleCanQc" class="btn qc">
告知取车
</view>
<view v-if="userInfo.roleCodes.includes('weixiu') || userInfo.roleCodes.includes('service_advisor') || userInfo.roleCodes.includes('general_inspection')" @click="doVoid(order)" class="btn pg">
<!-- 在什么都不能操作的情况下可以查看详情-->
作废

View File

@ -560,7 +560,7 @@ export default {
this.ticketType = event.detail.value;
},
getCarList() {
getCarList(carId) {
const params = {
userId: this.userInfo.userId,
pageNo: 1,
@ -606,17 +606,23 @@ export default {
break
}
}
}else if(carId){
for (let i = 0; i < this.carList.length; i++) {
if (carId == this.carList[i].id) {
this.activeCarIndex = i
break
}
}
}
})
},
editCarInfo(index) {
bus.$off('updateCarInfo')
bus.$on('updateCarInfo', (carInfo) => {
if (index) {
this.carList[index] = carInfo
} else {
this.carList.push(carInfo)
}
bus.$on('updateCarInfo', (carId) => {
this.$nextTick(()=>{
//
this.getCarList(carId)
})
})
if (this.userInfo == null) {
//

View File

@ -479,17 +479,17 @@ export default {
})
return
}
if((item.itemPrice && item.itemPrice>0) && (item.itemCount && item.itemCount>0) && (item.itemDiscount && item.itemDiscount>0 && item.itemDiscount<=1)){
//
item.itemMoney = item.itemPrice*item.itemCount*item.itemDiscount
}else{
canSubmit=false
uni.showToast({
title: '维修项目'+item.itemName+'价格有误!',
icon: 'none'
})
return
//null0
if(!item.itemPrice){
item.itemPrice = 0
}
if(!item.itemCount){
item.itemCount = 0
}
if(!item.itemDiscount){
item.itemDiscount = 1
}
item.itemMoney = item.itemPrice*item.itemCount*item.itemDiscount
})
}
//APP--
@ -598,7 +598,7 @@ export default {
}).then((res) => {
})
}else if("callCus"==this.nowChooseOperate){
//
//
let dataObj = {
id: this.ticketInfo.id,
name:this.callServiceInfo.name,
@ -642,8 +642,7 @@ export default {
if(this.loginUser.roleCodes.includes("service_advisor")){
//
this.canOpenCus = true
if(this.ticketInfo.nowRepairId==this.loginUser.id){
//
//
if("05"==this.ticketInfo.ticketsStatus) {
this.content.push({
text: '出厂检验', active: false, code: "out"
@ -655,7 +654,6 @@ export default {
text: '通知取车', active: false,code:"callCus"
})
}
}
//
this.callServiceInfo.name = this.loginUser.nickname
this.callServiceInfo.tel = this.loginUser.mobile

View File

@ -130,6 +130,7 @@
import VNavigationBar from '@/components/VNavigationBar.vue';
import request from "@/utils/request";
import config from '@/config'
import {bus} from "@/utils/eventBus";
import upload from "@/utils/upload";
import {getDictByCode} from "@/utils/utils";
@ -177,6 +178,7 @@ export default {
//
natureList: [],
natureIndex: 0,
index:null,
};
},
onLoad(options) {
@ -194,6 +196,7 @@ export default {
url: config.baseImageUrl + this.car.carLicenseImg
})
}
this.index = options.index
} else {
//
this.bo1 = false;
@ -303,8 +306,6 @@ export default {
},
//
async submit() {
// bus.$emit('updateCarInfo', this.car)
this.car.brandAndModel = [this.brandId, this.car.carModel]
//
if (this.car.nextInspectionDate) {
@ -329,6 +330,7 @@ export default {
method: 'PUT',
data: this.car,
}).then(res => {
bus.$emit('updateCarInfo',this.car.id)
uni.navigateBack();
})
} else {