1
This commit is contained in:
parent
1756cb5034
commit
8f1c26d574
@ -286,9 +286,15 @@ export default {
|
|||||||
* 项目派工
|
* 项目派工
|
||||||
*/
|
*/
|
||||||
projectDis(isNei){
|
projectDis(isNei){
|
||||||
|
if('1'==isNei){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages-order/choosePeople/choosePeople?id=' + this.order.id + '&isNei='+isNei
|
url: '/pages-order/choosePeople/choosePeople?id=' + this.order.id + '&isNei='+isNei
|
||||||
})
|
})
|
||||||
|
}else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages-order/choosePeople/choosePeople?id=' + this.order.id
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -274,7 +274,7 @@ import VNavigationBar from '@/components/VNavigationBar.vue'
|
|||||||
import ProjectPicker from "@/components/projectPicker.vue";
|
import ProjectPicker from "@/components/projectPicker.vue";
|
||||||
import {bus} from "@/utils/eventBus";
|
import {bus} from "@/utils/eventBus";
|
||||||
import request from "@/utils/request";
|
import request from "@/utils/request";
|
||||||
import {getToken, setUserInfo, getUserInfo} from '@/utils/auth.js'
|
import {getToken, setUserInfo, getUserInfo,getStorageWithExpiry,setStorageWithExpiry} from '@/utils/auth.js'
|
||||||
import config from "@/config";
|
import config from "@/config";
|
||||||
import {formatTimestamp, formatTimestampCustom} from "@/utils/utils";
|
import {formatTimestamp, formatTimestampCustom} from "@/utils/utils";
|
||||||
import upload from "@/utils/upload";
|
import upload from "@/utils/upload";
|
||||||
@ -368,19 +368,38 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
initDict(){
|
initDict(){
|
||||||
this.repairTypes = getDictByCode('repair_type')
|
let dictArray = getStorageWithExpiry('repair_type');
|
||||||
|
if(null==dictArray || undefined==dictArray){
|
||||||
|
request({
|
||||||
|
url: '/admin-api/system/dict-data/type',
|
||||||
|
method: 'get',
|
||||||
|
params:{type:'repair_type'}
|
||||||
|
}).then((res) => {
|
||||||
|
console.log(res)
|
||||||
|
if (res.code == 200) {
|
||||||
|
setStorageWithExpiry('repair_type',res.data,3600)
|
||||||
|
this.repairTypes = dictArray
|
||||||
|
this.buildRepairType()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
this.repairTypes = dictArray
|
||||||
|
this.buildRepairType()
|
||||||
|
}
|
||||||
this.partDisposals = getDictByCode('repair_part_disposal')
|
this.partDisposals = getDictByCode('repair_part_disposal')
|
||||||
console.log(this.pageData.repairType,"this.pageData.repairType")
|
console.log(this.pageData.repairType,"this.pageData.repairType")
|
||||||
|
},
|
||||||
|
buildRepairType(){
|
||||||
if(this.pageData.repairType){
|
if(this.pageData.repairType){
|
||||||
this.repairTypes.map((item,index)=>{
|
this.repairTypes.map((item,index)=>{
|
||||||
if(item.value==this.pageData.repairType){
|
if(item.value==this.pageData.repairType){
|
||||||
this.repairTypeIndex = index
|
this.repairTypeIndex = index
|
||||||
|
this.formData.repairType = this.repairTypes[index].value;
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
afterRead(file) {
|
afterRead(file) {
|
||||||
for (let i = 0; i < file.tempFilePaths.length; i++) {
|
for (let i = 0; i < file.tempFilePaths.length; i++) {
|
||||||
upload({
|
upload({
|
||||||
@ -446,6 +465,9 @@ export default {
|
|||||||
fileStr:fileStr,
|
fileStr:fileStr,
|
||||||
...this.formData,
|
...this.formData,
|
||||||
}
|
}
|
||||||
|
if(this.pageData && this.pageData.hasOwnProperty("bookingId")){
|
||||||
|
data.bookingId = this.pageData.bookingId
|
||||||
|
}
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
// url: '/pages-repair/signature/signature?data=' + JSON.stringify(data)
|
// url: '/pages-repair/signature/signature?data=' + JSON.stringify(data)
|
||||||
url: '/pages-repair/sign/sign?data=' + JSON.stringify(data)
|
url: '/pages-repair/sign/sign?data=' + JSON.stringify(data)
|
||||||
|
|||||||
@ -94,7 +94,7 @@ export default {
|
|||||||
addOrder(order){
|
addOrder(order){
|
||||||
console.log('执行')
|
console.log('执行')
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages-order/addOrder/addOrder?phone=${this.phone}&carId=${order.carId}&repairType=${order.repairType}`
|
url: `/pages-order/addOrder/addOrder?phone=${this.phone}&carId=${order.carId}&repairType=${order.repairType}&bookingId=${order.id}`
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -237,13 +237,13 @@
|
|||||||
<!-- <text class="projAmount">${{ item.amount }}</text>-->
|
<!-- <text class="projAmount">${{ item.amount }}</text>-->
|
||||||
</view>
|
</view>
|
||||||
<view class="projBody">
|
<view class="projBody">
|
||||||
<view class="projDate">
|
<view class="projDate" style="padding: 10rpx 0 0 0" v-if="item.projectName">
|
||||||
|
<text class="projDateText">本次维修项目:{{ item.projectName }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="projDate" style="padding: 10rpx 0">
|
||||||
<image mode="aspectFit" src="/static/icons/date.png" style="width: 24rpx;height: 24rpx"></image>
|
<image mode="aspectFit" src="/static/icons/date.png" style="width: 24rpx;height: 24rpx"></image>
|
||||||
<text class="projDateText">{{ item.createTime }}</text>
|
<text class="projDateText">{{ item.createTime }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="projDate">
|
|
||||||
<text class="projDateText">{{ item.projectName }}</text>
|
|
||||||
</view>
|
|
||||||
<template >
|
<template >
|
||||||
<view class="projDesc">
|
<view class="projDesc">
|
||||||
{{ item.remark }}
|
{{ item.remark }}
|
||||||
@ -306,7 +306,7 @@
|
|||||||
<view >
|
<view >
|
||||||
<u-modal :show="show" :title="title" confirmText="电话" cancelText="短信" showCancelButton
|
<u-modal :show="show" :title="title" confirmText="电话" cancelText="短信" showCancelButton
|
||||||
@cancel="message" @confirm="phone " closeOnClickOverlay @close="show = false">
|
@cancel="message" @confirm="phone " closeOnClickOverlay @close="show = false">
|
||||||
客户:{{ ticketInfo.userName }}({{ ticketInfo.userMobile }})
|
客户:<view v-if="ticketInfo">{{ ticketInfo.userName}}({{ ticketInfo.userMobile }})</view>
|
||||||
</u-modal>
|
</u-modal>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -648,6 +648,7 @@ export default {
|
|||||||
this.content.push({
|
this.content.push({
|
||||||
text: '配件申请', active: false, code: "apply"
|
text: '配件申请', active: false, code: "apply"
|
||||||
})
|
})
|
||||||
|
console.log(this.ticketInfo,"this.ticketInfo")
|
||||||
if ("05" == this.ticketInfo.ticketsStatus && this.ticketInfo.nowRepairId == this.loginUser.id) {
|
if ("05" == this.ticketInfo.ticketsStatus && this.ticketInfo.nowRepairId == this.loginUser.id) {
|
||||||
//订单状态处于维修中 ,且自己就是施工人
|
//订单状态处于维修中 ,且自己就是施工人
|
||||||
if ("02" == this.ticketInfo.ticketsWorkStatus) {
|
if ("02" == this.ticketInfo.ticketsWorkStatus) {
|
||||||
@ -867,10 +868,10 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(()=>{
|
||||||
this.ticketInfo = resultObj
|
this.ticketInfo = resultObj
|
||||||
})
|
|
||||||
//判断当前角色及工单状态显示操作按钮
|
//判断当前角色及工单状态显示操作按钮
|
||||||
this.checkRoleOperate()
|
this.checkRoleOperate()
|
||||||
})
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user