1
This commit is contained in:
parent
ca591d5aeb
commit
9d7a48c218
@ -51,7 +51,7 @@
|
|||||||
<view @click.stop="gettel" class="orderCardBtnGroupItem">联系司机</view>
|
<view @click.stop="gettel" class="orderCardBtnGroupItem">联系司机</view>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="orderData.orderStatus == 3 && orderData.isWeiXiu!=='1'">
|
<template v-if="orderData.orderStatus == 3 && orderData.isWeiXiu!=='1'">
|
||||||
<view @click.stop="toRepair(orderData.id)" class="orderCardBtnGroupItem">转维修</view>
|
<view @click.stop="showRepair" class="orderCardBtnGroupItem">转维修</view>
|
||||||
</template>
|
</template>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -59,6 +59,65 @@
|
|||||||
<u-picker :show="show" :columns="columns" @confirm="confirms" @cancel="cancels" keyName="realName"></u-picker>
|
<u-picker :show="show" :columns="columns" @confirm="confirms" @cancel="cancels" keyName="realName"></u-picker>
|
||||||
<u-modal :show="showDelete" title="是否确认删除" :showCancelButton="true" @confirm="deleteOk"
|
<u-modal :show="showDelete" title="是否确认删除" :showCancelButton="true" @confirm="deleteOk"
|
||||||
@cancel="deleteCancel"></u-modal>
|
@cancel="deleteCancel"></u-modal>
|
||||||
|
<u-modal :show="toRepairShow" title="转维修" :showCancelButton="true" @confirm="toRepair" @cancel="()=>{toRepairShow=false}">
|
||||||
|
<u-form
|
||||||
|
labelPosition="left"
|
||||||
|
:model="formData"
|
||||||
|
ref="uForm"
|
||||||
|
>
|
||||||
|
<u-form-item label="姓名" borderBottom>
|
||||||
|
<u--input
|
||||||
|
placeholder="请输入车主姓名"
|
||||||
|
v-model="formData.name"
|
||||||
|
border="none"
|
||||||
|
></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="联系电话" borderBottom>
|
||||||
|
<u--input
|
||||||
|
placeholder="请输入车主联系电话"
|
||||||
|
v-model="formData.phone"
|
||||||
|
border="none"
|
||||||
|
></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
|
||||||
|
<u-form-item
|
||||||
|
label="品牌"
|
||||||
|
borderBottom
|
||||||
|
@click="pinpaiShow = true;"
|
||||||
|
ref="item1"
|
||||||
|
>
|
||||||
|
<u-input v-model="formData.brandName" disabled disabledColor="#ffffff" placeholder="请选择车辆品牌" border="none"></u-input>
|
||||||
|
<u-icon
|
||||||
|
slot="right"
|
||||||
|
name="arrow-right"
|
||||||
|
></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
|
||||||
|
<u-form-item label="型号" borderBottom>
|
||||||
|
<u--input
|
||||||
|
placeholder="请输入车辆型号"
|
||||||
|
v-model="formData.brandAndModel[1]"
|
||||||
|
border="none"
|
||||||
|
></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
|
||||||
|
<u-form-item
|
||||||
|
label="服务顾问"
|
||||||
|
borderBottom
|
||||||
|
@click="fuwuShow = true;"
|
||||||
|
ref="item1"
|
||||||
|
>
|
||||||
|
<u-input v-model="formData.adviserName" disabled disabledColor="#ffffff" placeholder="请选择服务顾问" border="none"></u-input>
|
||||||
|
<u-icon
|
||||||
|
slot="right"
|
||||||
|
name="arrow-right"
|
||||||
|
></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
|
||||||
|
</u-form>
|
||||||
|
</u-modal>
|
||||||
|
<u-picker :show="pinpaiShow" :columns="[brandList]" :keyName="'brandName'" @confirm="onPinpaiConfirm" @cancel="()=>{pinpaiShow=false}"></u-picker>
|
||||||
|
<u-picker :show="fuwuShow" :columns="[staffList]" :keyName="'name'" @confirm="onFuwuConfirm" @cancel="()=>{fuwuShow=false}"></u-picker>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -76,7 +135,9 @@
|
|||||||
status: {
|
status: {
|
||||||
type: [String, Number],
|
type: [String, Number],
|
||||||
default: ''
|
default: ''
|
||||||
}
|
},
|
||||||
|
brandList: [],
|
||||||
|
staffList: []
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
statusStr() {
|
statusStr() {
|
||||||
@ -102,7 +163,16 @@
|
|||||||
id: '',
|
id: '',
|
||||||
show: false,
|
show: false,
|
||||||
showDelete: false,
|
showDelete: false,
|
||||||
|
toRepairShow: false,
|
||||||
|
pinpaiShow: false,
|
||||||
|
fuwuShow: false,
|
||||||
|
formData:{
|
||||||
|
brandAndModel:[]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(){
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
hasRole,
|
hasRole,
|
||||||
@ -129,10 +199,31 @@
|
|||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
toRepair(id){
|
onPinpaiConfirm(e){
|
||||||
let data ={
|
console.log(e)
|
||||||
id: id
|
this.formData.brandName = e.value[0].brandName
|
||||||
|
this.formData.brandAndModel[0] = e.value[0].id
|
||||||
|
this.pinpaiShow = false
|
||||||
|
},
|
||||||
|
onFuwuConfirm(e){
|
||||||
|
this.formData.adviserName = e.value[0].name
|
||||||
|
this.formData.adviserId = e.value[0].id
|
||||||
|
this.formData.userId = e.value[0].userId
|
||||||
|
this.fuwuShow = false
|
||||||
|
},
|
||||||
|
showRepair(){
|
||||||
|
if(this.orderData.connectionName){
|
||||||
|
this.formData.name = this.orderData.connectionName
|
||||||
}
|
}
|
||||||
|
if(this.orderData.connectionPhone){
|
||||||
|
this.formData.phone = this.orderData.connectionPhone
|
||||||
|
}
|
||||||
|
this.toRepairShow = true
|
||||||
|
},
|
||||||
|
toRepair(){
|
||||||
|
let data = JSON.parse(JSON.stringify(this.formData))
|
||||||
|
data.id = this.orderData.id
|
||||||
|
console.log(data,'data');
|
||||||
request({
|
request({
|
||||||
url: '/app/rescueInfo/toRepair',
|
url: '/app/rescueInfo/toRepair',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@ -142,6 +233,7 @@
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '操作成功'
|
title: '操作成功'
|
||||||
})
|
})
|
||||||
|
this.toRepairShow = false
|
||||||
this.$emit('refresh')
|
this.$emit('refresh')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<image src="../../static/quesheng.png" mode=""></image>
|
<image src="../../static/quesheng.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<order-card-vue @refresh="getlist" :status="gindex" v-for="(item,index) in orderList" :key="index" :orderData="item"></order-card-vue>
|
<order-card-vue @refresh="getlist" :status="gindex" v-for="(item,index) in orderList" :key="index" :orderData="item" :brandList="brandList" :staffList="staffList"></order-card-vue>
|
||||||
<!-- <view class="boxt" v-for="(item,index) in orderList" :key="index" @click="godetail(item.id)">
|
<!-- <view class="boxt" v-for="(item,index) in orderList" :key="index" @click="godetail(item.id)">
|
||||||
<view class="boxt-left">
|
<view class="boxt-left">
|
||||||
<view class="left-lan">
|
<view class="left-lan">
|
||||||
@ -83,6 +83,8 @@
|
|||||||
// 搜索内容
|
// 搜索内容
|
||||||
searchText: '',
|
searchText: '',
|
||||||
gindex: 1,
|
gindex: 1,
|
||||||
|
brandList: [],
|
||||||
|
staffList:[],
|
||||||
orderList: [
|
orderList: [
|
||||||
// {
|
// {
|
||||||
// rescueTypeStr: '扣车',
|
// rescueTypeStr: '扣车',
|
||||||
@ -133,6 +135,8 @@
|
|||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.gindex = option.id
|
this.gindex = option.id
|
||||||
this.getlist()
|
this.getlist()
|
||||||
|
this.getBrandList()
|
||||||
|
this.getStaffList()
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
console.log('执行了');
|
console.log('执行了');
|
||||||
@ -149,6 +153,38 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getBrandList(){
|
||||||
|
let data = {
|
||||||
|
pageSize: 1000,
|
||||||
|
pageNum: 1,
|
||||||
|
}
|
||||||
|
request({
|
||||||
|
url: '/base/carBrand/page',
|
||||||
|
method: 'get',
|
||||||
|
params: data
|
||||||
|
}).then((res) => {
|
||||||
|
console.log('list', res);
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.brandList = res.data.records
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getStaffList(){
|
||||||
|
let data = {
|
||||||
|
pageSize: 1000,
|
||||||
|
pageNum: 1,
|
||||||
|
}
|
||||||
|
request({
|
||||||
|
url: '/company/staff/list',
|
||||||
|
method: 'get',
|
||||||
|
params: data
|
||||||
|
}).then((res) => {
|
||||||
|
console.log('list', res);
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.staffList = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
godetail(id) {
|
godetail(id) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/details/details?id=' + id
|
url: '/pages/details/details?id=' + id
|
||||||
|
Loading…
Reference in New Issue
Block a user