1
This commit is contained in:
parent
98bc0d4c8c
commit
1f27bd6604
@ -139,7 +139,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="dis-tt" v-if="rescueStatus == 5">
|
||||
<view class="caanniu" @click="GOrepair(item)" v-if="item.isWeiXiu!=='1'">
|
||||
<view class="caanniu" @click="showRepair(item)" v-if="item.isWeiXiu!=='1'">
|
||||
<uni-icons type="wallet" color="#e43d33" size="20"></uni-icons>
|
||||
<text>转维修</text>
|
||||
</view>
|
||||
@ -214,6 +214,65 @@
|
||||
@confirm="confirms"></u-picker>
|
||||
|
||||
<tabBar :msg="msg "></tabBar>
|
||||
<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>
|
||||
</template>
|
||||
|
||||
@ -229,6 +288,15 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
orderData: {},
|
||||
brandList: [],
|
||||
staffList:[],
|
||||
toRepairShow: false,
|
||||
pinpaiShow: false,
|
||||
fuwuShow: false,
|
||||
formData:{
|
||||
brandAndModel:[]
|
||||
},
|
||||
msgSocket: this.$msgSocket,
|
||||
id: '',
|
||||
value5: '',
|
||||
@ -304,6 +372,9 @@
|
||||
setTimeout(() => {
|
||||
this.msgInfo()
|
||||
}, 2000);
|
||||
|
||||
this.getBrandList()
|
||||
this.getStaffList()
|
||||
},
|
||||
watch: {
|
||||
msgSocket(newVal, oldVal) {
|
||||
@ -335,10 +406,52 @@
|
||||
tabBar,
|
||||
},
|
||||
methods: {
|
||||
GOrepair(item){
|
||||
let data ={
|
||||
id: item.id
|
||||
showRepair(item){
|
||||
this.orderData = item
|
||||
if(this.orderData.connectionName){
|
||||
this.formData.name = this.orderData.connectionName
|
||||
}
|
||||
if(this.orderData.connectionPhone){
|
||||
this.formData.phone = this.orderData.connectionPhone
|
||||
}
|
||||
this.toRepairShow = true
|
||||
},
|
||||
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
|
||||
}
|
||||
})
|
||||
},
|
||||
toRepair(){
|
||||
let data = JSON.parse(JSON.stringify(this.formData))
|
||||
data.id = this.orderData.id
|
||||
console.log(data,'data');
|
||||
request({
|
||||
url: '/app/rescueInfo/toRepair',
|
||||
method: 'post',
|
||||
@ -348,11 +461,24 @@
|
||||
uni.showToast({
|
||||
title: '操作成功'
|
||||
})
|
||||
this.toRepairShow = false
|
||||
this.singleList = []
|
||||
this.driverRescuePage()
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
onPinpaiConfirm(e){
|
||||
console.log(e)
|
||||
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
|
||||
},
|
||||
jyPushStart() {
|
||||
// 暂时只有安卓支持
|
||||
jyJPush.registerSDKCallBack(sdkCallBack => {
|
||||
|
Loading…
Reference in New Issue
Block a user