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
|
||||
})
|
||||
}else {
|
||||
let canOperate = this.order.canOperate?'1':'0'
|
||||
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">
|
||||
<text class="userName">{{ userInfo.nickname }}</text>
|
||||
<text class="userType">{{ userInfo.roleNames }}</text>
|
||||
<text class="userType" v-if="ifLeader">班组长</text>
|
||||
</view>
|
||||
<view class="msg-box" @click="gotoMsg">
|
||||
<image mode="aspectFita" src="@/pages-home/static/msg.png" style="width: 48rpx;height: 48rpx"></image>
|
||||
@ -229,6 +230,7 @@ export default {
|
||||
selectedProj: [],
|
||||
//告知客户的内容
|
||||
tellCusText:"",
|
||||
ifLeader:false,
|
||||
}
|
||||
},
|
||||
onLoad(){
|
||||
@ -250,6 +252,7 @@ export default {
|
||||
}else{
|
||||
//直接取缓存中的用户信息
|
||||
this.userInfo = getUserInfo()
|
||||
this.ifLeader = getStrData('ifLeader')
|
||||
this.getNoReadNum()
|
||||
this.getNoticeList()
|
||||
this.onRefresherrefresh()
|
||||
|
@ -56,7 +56,7 @@
|
||||
</view>
|
||||
</uni-popup>
|
||||
<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>
|
||||
|
||||
@ -100,7 +100,13 @@ export default {
|
||||
if (data.id) {
|
||||
console.log('执行了派单')
|
||||
this.ticketId = data.id
|
||||
this.workByTicketId()
|
||||
console.log(data.canOperate,103)
|
||||
console.log(data.canOperate === '1',104)
|
||||
if (data.canOperate === '1'){
|
||||
this.listLeadsAll()
|
||||
} else {
|
||||
this.workByTicketId()
|
||||
}
|
||||
}
|
||||
if (data.isNei) {
|
||||
//内返派工
|
||||
@ -131,6 +137,25 @@ export default {
|
||||
}
|
||||
},
|
||||
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,
|
||||
userPhone: order.userMobile,
|
||||
counselorName: order.adviserName,
|
||||
canOperate:order.canOperate,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user