更新
This commit is contained in:
parent
e590e6cc7f
commit
bca86a4119
@ -92,6 +92,7 @@
|
||||
<!--内返派工-->
|
||||
内返派工
|
||||
</view>
|
||||
<!-- v-if="order.ticketsStatus == '05' && order.ticketsWorkStatus=='01' && roleCanJd" class="btn qc"> -->
|
||||
<view @click="openFile(order.id)"
|
||||
v-if="order.ticketsStatus == '05' && order.ticketsWorkStatus=='01' && roleCanJd" class="btn qc">
|
||||
接单
|
||||
@ -186,7 +187,8 @@
|
||||
//服务顾问可以告知取车
|
||||
this.roleCanQc = true
|
||||
}
|
||||
if (this.userInfo.roleCodes.includes("repair_staff") && this.order.nowRepairId == this.userInfo.id) {
|
||||
if (this.userInfo.roleCodes.includes("repair_staff") && this.order.nowRepairId && this.order.nowRepairId
|
||||
.split(',').includes(this.userInfo.id.toString())) {
|
||||
//维修工角色,并且指派处理的人就是当前用户可以接单
|
||||
this.roleCanJd = true
|
||||
}
|
||||
|
||||
@ -12,6 +12,15 @@
|
||||
<!-- <u-checkbox-group-->
|
||||
<!-- placement="column"-->
|
||||
<!-- v-model="checked">-->
|
||||
<!-- <checkbox-group @change="checkboxChange" v-if="type == 'xs' || !type">
|
||||
<label v-for="(item, index) in list" :key="item.userId" class="userItem">
|
||||
<view class="info">
|
||||
<text class="name">{{ item.userName }}</text>
|
||||
<text class="trade">{{ item.workTypeText }}</text>
|
||||
</view>
|
||||
<checkbox :value="item.userId + ''" />
|
||||
</label>
|
||||
</checkbox-group> -->
|
||||
<radio-group @change="radioChange" v-if="type == 'xs' || !type">
|
||||
<label v-for="(item, index) in list" :key="item.userId" class="userItem">
|
||||
<view class="info">
|
||||
@ -19,7 +28,6 @@
|
||||
<text class="trade">{{ item.workTypeText }}</text>
|
||||
</view>
|
||||
<radio :value="item.userId+''" :checked="index === current" />
|
||||
<!-- <u-checkbox v-model="item.checked" :name="item.userId" iconSize="24" shape="circle" activeColor="#1890ff"></u-checkbox>-->
|
||||
</label>
|
||||
</radio-group>
|
||||
|
||||
@ -50,7 +58,8 @@
|
||||
<view class="popup-content">
|
||||
<view class="dl-avatar-box">
|
||||
<input type="text" placeholder="请输入内返派工原因" v-model="remark" />
|
||||
<uni-file-picker :value="fileList" :sizeType="sizeType" @select="afterRead" @delete="deleteFile" limit="9" title="请上传图片(最多上传9张)"></uni-file-picker>
|
||||
<uni-file-picker :value="fileList" :sizeType="sizeType" @select="afterRead" @delete="deleteFile"
|
||||
limit="9" title="请上传图片(最多上传9张)"></uni-file-picker>
|
||||
</view>
|
||||
<button type="primary" @click="submit('1')">保存</button>
|
||||
</view>
|
||||
@ -65,9 +74,14 @@
|
||||
|
||||
<script>
|
||||
import VNavigationBar from '@/components/VNavigationBar.vue'
|
||||
import {bus} from "@/utils/eventBus";
|
||||
import {
|
||||
bus
|
||||
} from "@/utils/eventBus";
|
||||
import request from '@/utils/request';
|
||||
import {getDictTextByCodeAndValue,saveTicketsRecords} from "@/utils/utils";
|
||||
import {
|
||||
getDictTextByCodeAndValue,
|
||||
saveTicketsRecords
|
||||
} from "@/utils/utils";
|
||||
import config from "@/config";
|
||||
import upload from "@/utils/upload";
|
||||
|
||||
@ -93,6 +107,8 @@ export default {
|
||||
sgNames: [],
|
||||
projectId: '',
|
||||
itemId: "",
|
||||
checkedUserIds: [],
|
||||
checkedUserNames: [],
|
||||
}
|
||||
},
|
||||
onLoad(data) {
|
||||
@ -188,17 +204,20 @@ export default {
|
||||
this.fileList.splice(index, 1);
|
||||
},
|
||||
|
||||
radioChange: function (evt) {
|
||||
checkboxChange: function(evt) {
|
||||
this.checkedUserIds = evt.detail.value; // 记录多个选中的值
|
||||
this.checkedUserNames = [];
|
||||
|
||||
// 遍历选中的 userId,获取对应的 userName
|
||||
for (let i = 0; i < this.list.length; i++) {
|
||||
if (this.list[i].userId == evt.detail.value) {
|
||||
this.current = i;
|
||||
this.checkedUserId = this.list[i].userId
|
||||
this.checkedUserName = this.list[i].userName
|
||||
break;
|
||||
if (this.checkedUserIds.includes(this.list[i].userId + '')) {
|
||||
this.checkedUserNames.push(this.list[i].userName);
|
||||
}
|
||||
}
|
||||
console.log(this.checkedUserName)
|
||||
|
||||
console.log(this.checkedUserNames); // 输出选中的所有用户名
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取销售列表
|
||||
*/
|
||||
@ -253,7 +272,9 @@ export default {
|
||||
request({
|
||||
url: '/admin-api/repair/worker/listByTicketId',
|
||||
method: 'get',
|
||||
params: {ticketId: this.ticketId}
|
||||
params: {
|
||||
ticketId: this.ticketId
|
||||
}
|
||||
}).then((res) => {
|
||||
this.list = res.data
|
||||
if (this.list.length > 0) {
|
||||
@ -347,8 +368,8 @@ export default {
|
||||
} else {
|
||||
const param = {
|
||||
id: this.ticketId,
|
||||
nowRepairId: this.checkedUserId,
|
||||
nowRepairName: this.checkedUserName
|
||||
nowRepairId: this.checkedUserIds.join(','),
|
||||
nowRepairName: this.checkedUserNames.join(',')
|
||||
}
|
||||
if (type == '1') {
|
||||
param.remark = this.remark
|
||||
@ -394,6 +415,7 @@ export default {
|
||||
height: auto;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.container {
|
||||
height: 100%;
|
||||
background-color: #F3F5F7;
|
||||
|
||||
@ -1167,7 +1167,8 @@
|
||||
code: "edit"
|
||||
})
|
||||
}
|
||||
if (this.ticketInfo.nowRepairId == this.loginUser.id && "05" == this.ticketInfo.ticketsStatus) {
|
||||
if (this.ticketInfo.nowRepairId.split(',').includes(this.loginUser.id.toString()) && "05" == this
|
||||
.ticketInfo.ticketsStatus) {
|
||||
//当前用户就是处理人,可以进行总检拍照
|
||||
this.content.push({
|
||||
text: '总检拍照',
|
||||
@ -1187,7 +1188,8 @@
|
||||
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.split(',').includes(this
|
||||
.loginUser.id.toString())) {
|
||||
//订单状态处于维修中 ,且自己就是施工人
|
||||
if ("02" == this.ticketInfo.ticketsWorkStatus) {
|
||||
//当前正在施工且可以随时上传图片、也可以结束施工
|
||||
|
||||
Loading…
Reference in New Issue
Block a user