Compare commits
No commits in common. "4b7178be3517858468013a4fb1689176f2863a5d" and "92a46a6b3069293c52b179e6c1bd0bc700cb87ea" have entirely different histories.
4b7178be35
...
92a46a6b30
@ -42,7 +42,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="footer">
|
<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>
|
||||||
<view @click="gotoDetail" v-else-if="order.ticketsStatus == '06'" class="btn qc">
|
<view @click="gotoDetail" v-else-if="order.ticketsStatus == '06'" class="btn qc">
|
||||||
@ -87,14 +87,6 @@ export default {
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages-order/orderDetail/orderDetail?id=' + this.order.id
|
url: '/pages-order/orderDetail/orderDetail?id=' + this.order.id
|
||||||
})
|
})
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 项目派工
|
|
||||||
*/
|
|
||||||
projectDis(){
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages-order/choosePeople/choosePeople?id=' + this.order.id
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
v-model="checked">
|
v-model="checked">
|
||||||
<view v-for="item in list" :key="item.id" class="userItem">
|
<view v-for="item in list" :key="item.id" class="userItem">
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<text class="name">{{item.userName}}</text>
|
<text class="name">{{item.name}}</text>
|
||||||
<text class="trade">{{item.gz}}{{item.checked}}</text>
|
<text class="trade">{{item.gz}}{{item.checked}}</text>
|
||||||
</view>
|
</view>
|
||||||
<u-checkbox v-model="item.checked" :name="item.id" iconSize="24" shape="circle" activeColor="#1890ff"></u-checkbox>
|
<u-checkbox v-model="item.checked" :name="item.id" iconSize="24" shape="circle" activeColor="#1890ff"></u-checkbox>
|
||||||
@ -33,7 +33,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import VNavigationBar from '@/components/VNavigationBar.vue'
|
import VNavigationBar from '@/components/VNavigationBar.vue'
|
||||||
import {bus} from "@/utils/eventBus";
|
import {bus} from "@/utils/eventBus";
|
||||||
import request from '@/utils/request';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -41,30 +40,17 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
ticketId:'',
|
list: [
|
||||||
list: [],
|
{name: '杨其华', id: 1, gz: '机修'},
|
||||||
|
{name: '钣金', id: 2, gz: '机修'},
|
||||||
|
{name: '周正', id: 3, gz: '喷漆'},
|
||||||
|
],
|
||||||
checked: []
|
checked: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(data) {
|
onLoad(data) {
|
||||||
if(data.id){
|
|
||||||
this.ticketId = data.id
|
|
||||||
this.workByTicketId()
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
|
||||||
* 通过工单id查询维修工人
|
|
||||||
*/
|
|
||||||
workByTicketId(){
|
|
||||||
request({
|
|
||||||
url: '/admin-api/repair/worker/listByTicketId',
|
|
||||||
method: 'get',
|
|
||||||
params:{ticketId:this.ticketId}
|
|
||||||
}).then((res)=>{
|
|
||||||
this.list = res.data
|
|
||||||
})
|
|
||||||
},
|
|
||||||
submit() {
|
submit() {
|
||||||
console.log('this.checked', this.checked)
|
console.log('this.checked', this.checked)
|
||||||
const selected = this.list.filter(f => this.checked.includes(f.id))
|
const selected = this.list.filter(f => this.checked.includes(f.id))
|
||||||
|
Loading…
Reference in New Issue
Block a user