Compare commits

..

No commits in common. "4b7178be3517858468013a4fb1689176f2863a5d" and "92a46a6b3069293c52b179e6c1bd0bc700cb87ea" have entirely different histories.

2 changed files with 7 additions and 29 deletions

View File

@ -42,7 +42,7 @@
</view>
</view>
<view class="footer">
<view @click="projectDis" v-if="order.ticketsStatus == '04'" class="btn pg">
<view @click="gotoDetail" v-if="order.ticketsStatus == '04'" class="btn pg">
项目派工
</view>
<view @click="gotoDetail" v-else-if="order.ticketsStatus == '06'" class="btn qc">
@ -87,14 +87,6 @@ export default {
uni.navigateTo({
url: '/pages-order/orderDetail/orderDetail?id=' + this.order.id
})
},
/**
* 项目派工
*/
projectDis(){
uni.navigateTo({
url: '/pages-order/choosePeople/choosePeople?id=' + this.order.id
})
}
}
}

View File

@ -14,7 +14,7 @@
v-model="checked">
<view v-for="item in list" :key="item.id" class="userItem">
<view class="info">
<text class="name">{{item.userName}}</text>
<text class="name">{{item.name}}</text>
<text class="trade">{{item.gz}}{{item.checked}}</text>
</view>
<u-checkbox v-model="item.checked" :name="item.id" iconSize="24" shape="circle" activeColor="#1890ff"></u-checkbox>
@ -33,7 +33,6 @@
<script>
import VNavigationBar from '@/components/VNavigationBar.vue'
import {bus} from "@/utils/eventBus";
import request from '@/utils/request';
export default {
components: {
@ -41,30 +40,17 @@ export default {
},
data() {
return {
ticketId:'',
list: [],
list: [
{name: '杨其华', id: 1, gz: '机修'},
{name: '钣金', id: 2, gz: '机修'},
{name: '周正', id: 3, gz: '喷漆'},
],
checked: []
}
},
onLoad(data) {
if(data.id){
this.ticketId = data.id
this.workByTicketId()
}
},
methods: {
/**
* 通过工单id查询维修工人
*/
workByTicketId(){
request({
url: '/admin-api/repair/worker/listByTicketId',
method: 'get',
params:{ticketId:this.ticketId}
}).then((res)=>{
this.list = res.data
})
},
submit() {
console.log('this.checked', this.checked)
const selected = this.list.filter(f => this.checked.includes(f.id))