1
This commit is contained in:
parent
b446915f86
commit
be77586206
@ -199,8 +199,9 @@ export default {
|
|||||||
url: '/pages-order/choosePeople/choosePeople?id=' + this.order.id + '&isNei='+isNei
|
url: '/pages-order/choosePeople/choosePeople?id=' + this.order.id + '&isNei='+isNei
|
||||||
})
|
})
|
||||||
}else {
|
}else {
|
||||||
|
let canOperate = this.order.canOperate?'1':'0'
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages-order/choosePeople/choosePeople?id=' + this.order.id
|
url: '/pages-order/choosePeople/choosePeople?id=' + this.order.id + '&canOperate='+canOperate
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
<view class="userInfo" @click="showUserDetail">
|
<view class="userInfo" @click="showUserDetail">
|
||||||
<text class="userName">{{ userInfo.nickname }}</text>
|
<text class="userName">{{ userInfo.nickname }}</text>
|
||||||
<text class="userType">{{ userInfo.roleNames }}</text>
|
<text class="userType">{{ userInfo.roleNames }}</text>
|
||||||
|
<text class="userType" v-if="ifLeader">班组长</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="msg-box" @click="gotoMsg">
|
<view class="msg-box" @click="gotoMsg">
|
||||||
<image mode="aspectFita" src="@/pages-home/static/msg.png" style="width: 48rpx;height: 48rpx"></image>
|
<image mode="aspectFita" src="@/pages-home/static/msg.png" style="width: 48rpx;height: 48rpx"></image>
|
||||||
@ -229,6 +230,7 @@ export default {
|
|||||||
selectedProj: [],
|
selectedProj: [],
|
||||||
//告知客户的内容
|
//告知客户的内容
|
||||||
tellCusText:"",
|
tellCusText:"",
|
||||||
|
ifLeader:false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(){
|
onLoad(){
|
||||||
@ -250,6 +252,7 @@ export default {
|
|||||||
}else{
|
}else{
|
||||||
//直接取缓存中的用户信息
|
//直接取缓存中的用户信息
|
||||||
this.userInfo = getUserInfo()
|
this.userInfo = getUserInfo()
|
||||||
|
this.ifLeader = getStrData('ifLeader')
|
||||||
this.getNoReadNum()
|
this.getNoReadNum()
|
||||||
this.getNoticeList()
|
this.getNoticeList()
|
||||||
this.onRefresherrefresh()
|
this.onRefresherrefresh()
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</uni-popup>
|
</uni-popup>
|
||||||
<view class="foot">
|
<view class="foot">
|
||||||
<view v-if="isNei" class="submit" @click="openFile">确定选择(内返派工)</view>
|
<view v-if="isNei" class="submit" @click="openFile">确定选择</view>
|
||||||
<view v-else class="submit" @click="submit('0')">确定选择</view>
|
<view v-else class="submit" @click="submit('0')">确定选择</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -100,8 +100,14 @@ export default {
|
|||||||
if (data.id) {
|
if (data.id) {
|
||||||
console.log('执行了派单')
|
console.log('执行了派单')
|
||||||
this.ticketId = data.id
|
this.ticketId = data.id
|
||||||
|
console.log(data.canOperate,103)
|
||||||
|
console.log(data.canOperate === '1',104)
|
||||||
|
if (data.canOperate === '1'){
|
||||||
|
this.listLeadsAll()
|
||||||
|
} else {
|
||||||
this.workByTicketId()
|
this.workByTicketId()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (data.isNei) {
|
if (data.isNei) {
|
||||||
//内返派工
|
//内返派工
|
||||||
this.isNei = true
|
this.isNei = true
|
||||||
@ -131,6 +137,25 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 维修班组长修改派工
|
||||||
|
*/
|
||||||
|
listLeadsAll(){
|
||||||
|
request({
|
||||||
|
url: '/admin-api/repair/worker/listLeadsAll',
|
||||||
|
method: 'get',
|
||||||
|
}).then((res) => {
|
||||||
|
this.list = res.data
|
||||||
|
if (this.list.length > 0) {
|
||||||
|
console.log(this.list[0].userId)
|
||||||
|
this.checkedUserId = this.list[0].userId
|
||||||
|
this.checkedUserName = this.list[0].userName
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 内返派工打开上传附件弹窗
|
* 内返派工打开上传附件弹窗
|
||||||
*/
|
*/
|
||||||
|
@ -221,6 +221,7 @@ export function builderOrder(order) {
|
|||||||
userName: order.userName,
|
userName: order.userName,
|
||||||
userPhone: order.userMobile,
|
userPhone: order.userMobile,
|
||||||
counselorName: order.adviserName,
|
counselorName: order.adviserName,
|
||||||
|
canOperate:order.canOperate,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user