This commit is contained in:
PQZ 2024-11-13 17:47:41 +08:00
parent b446915f86
commit be77586206
4 changed files with 33 additions and 3 deletions

View File

@ -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
}) })
} }
} }

View File

@ -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()

View File

@ -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
}
})
},
/** /**
* 内返派工打开上传附件弹窗 * 内返派工打开上传附件弹窗
*/ */

View File

@ -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,
} }
} }