更新
This commit is contained in:
parent
77c48e04f7
commit
58b4fc5fd1
@ -1,19 +1,21 @@
|
|||||||
<!-- 新增线下订单-->
|
<!-- 新增线下订单-->
|
||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<!-- <view style="width: 100%; height: 44px;"></view>-->
|
<!-- <view style="width: 100%; height: 44px;"></view>-->
|
||||||
<!-- <view class="top-heder">-->
|
<!-- <view class="top-heder">-->
|
||||||
<!-- <view class="t-left" @click="getback()">-->
|
<!-- <view class="t-left" @click="getback()">-->
|
||||||
<!-- <uni-icons type="left" size="18"></uni-icons>-->
|
<!-- <uni-icons type="left" size="18"></uni-icons>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="t-title">-->
|
<!-- <view class="t-title">-->
|
||||||
<!-- <text>{{ title }}</text>-->
|
<!-- <text>{{ title }}</text>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="t-you"></view>-->
|
<!-- <view class="t-you"></view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<headersVue :titles="title" style="position: static !important;">
|
<headersVue :titles="title" style="position: static !important;">
|
||||||
<u-icon name="arrow-left" color="#fff" size="18"></u-icon>
|
<u-icon name="arrow-left" color="#fff" size="18"></u-icon>
|
||||||
</headersVue>
|
</headersVue>
|
||||||
|
<u-loading-page :loading="isLoading" style="z-index: 3"></u-loading-page>
|
||||||
|
|
||||||
|
|
||||||
<view class="mub">
|
<view class="mub">
|
||||||
<view class="top-ail">
|
<view class="top-ail">
|
||||||
@ -143,32 +145,42 @@
|
|||||||
<input type="text" v-model="nickname" placeholder="请输入引车员">
|
<input type="text" v-model="nickname" placeholder="请输入引车员">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="list-box">
|
||||||
|
<view class="l-left" @click="showMeetMan = true">
|
||||||
|
<text style="color: red;font-weight: bold;text-align: center;">*</text>
|
||||||
|
接车员
|
||||||
|
<text class="xixi">点击选择</text>
|
||||||
|
</view>
|
||||||
|
<view class="l-right">
|
||||||
|
<input type="text" v-model="meetName" placeholder="请输入接车员">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- <view class="list-box">-->
|
<!-- <view class="list-box">-->
|
||||||
<!-- <view class="l-left">是否补录</view>-->
|
<!-- <view class="l-left">是否补录</view>-->
|
||||||
<!-- <view class="l-right">-->
|
<!-- <view class="l-right">-->
|
||||||
<!-- <u-radio-group-->
|
<!-- <u-radio-group-->
|
||||||
<!-- v-model="radioValue"-->
|
<!-- v-model="radioValue"-->
|
||||||
<!-- iconPlacement="right"-->
|
<!-- iconPlacement="right"-->
|
||||||
<!-- @change="handleRadioChange"-->
|
<!-- @change="handleRadioChange"-->
|
||||||
<!-- >-->
|
<!-- >-->
|
||||||
<!-- <u-radio label="否" name="0" style="padding-right: 10rpx"></u-radio>-->
|
<!-- <u-radio label="否" name="0" style="padding-right: 10rpx"></u-radio>-->
|
||||||
<!-- <u-radio label="是" name="1"></u-radio>-->
|
<!-- <u-radio label="是" name="1"></u-radio>-->
|
||||||
<!-- </u-radio-group>-->
|
<!-- </u-radio-group>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
|
|
||||||
<!-- <view class="list-box" v-if="radioValue === '1'">-->
|
<!-- <view class="list-box" v-if="radioValue === '1'">-->
|
||||||
<!-- <view class="l-left" @click="showRecord = true">-->
|
<!-- <view class="l-left" @click="showRecord = true">-->
|
||||||
<!-- <text style="color: red;font-weight: bold;text-align: center;">*</text>-->
|
<!-- <text style="color: red;font-weight: bold;text-align: center;">*</text>-->
|
||||||
<!-- 选择补录时间-->
|
<!-- 选择补录时间-->
|
||||||
<!-- <text class="xixi">点击选择</text>-->
|
<!-- <text class="xixi">点击选择</text>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="l-right">-->
|
<!-- <view class="l-right">-->
|
||||||
<!-- <input type="text" v-model="recordTimeStr" placeholder="请选择补录时间">-->
|
<!-- <input type="text" v-model="recordTimeStr" placeholder="请选择补录时间">-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
|
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
|
|
||||||
<view class="list-box" @click="toSelectProject()" v-if="isInsert">
|
<view class="list-box" @click="toSelectProject()" v-if="isInsert">
|
||||||
<view class="l-left">检测流程</view>
|
<view class="l-left">检测流程</view>
|
||||||
@ -204,6 +216,9 @@
|
|||||||
<u-picker :show="showLeadMan" :columns="leadManList" :defaultIndex="defaultIndex" @confirm="confirmLeadMan"
|
<u-picker :show="showLeadMan" :columns="leadManList" :defaultIndex="defaultIndex" @confirm="confirmLeadMan"
|
||||||
@cancel="cancelLeadMan"
|
@cancel="cancelLeadMan"
|
||||||
keyName="nickname"></u-picker>
|
keyName="nickname"></u-picker>
|
||||||
|
<u-picker :show="showMeetMan" :columns="meetManList" :defaultIndex="defaultIndex" @confirm="confirmMeetMan"
|
||||||
|
@cancel="showMeetMan = false"
|
||||||
|
keyName="nickname"></u-picker>
|
||||||
<u-datetime-picker
|
<u-datetime-picker
|
||||||
:show="showRegisterDate"
|
:show="showRegisterDate"
|
||||||
v-model="carRegisterDate"
|
v-model="carRegisterDate"
|
||||||
@ -211,14 +226,14 @@
|
|||||||
@cancel="showRegisterDate = false"
|
@cancel="showRegisterDate = false"
|
||||||
@confirm="confirmRegisterDate"
|
@confirm="confirmRegisterDate"
|
||||||
></u-datetime-picker>
|
></u-datetime-picker>
|
||||||
<!-- <u-datetime-picker-->
|
<!-- <u-datetime-picker-->
|
||||||
<!-- :show="showRecord"-->
|
<!-- :show="showRecord"-->
|
||||||
<!-- v-model="recordTime"-->
|
<!-- v-model="recordTime"-->
|
||||||
<!-- :formatter="formatter"-->
|
<!-- :formatter="formatter"-->
|
||||||
<!-- @cancel="cancelRecord"-->
|
<!-- @cancel="cancelRecord"-->
|
||||||
<!-- @confirm="confirmRecord"-->
|
<!-- @confirm="confirmRecord"-->
|
||||||
<!-- mode="datetime"-->
|
<!-- mode="datetime"-->
|
||||||
<!-- ></u-datetime-picker>-->
|
<!-- ></u-datetime-picker>-->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -255,7 +270,7 @@ export default {
|
|||||||
carModel: '',
|
carModel: '',
|
||||||
carNature: '',
|
carNature: '',
|
||||||
otherPhone: '',
|
otherPhone: '',
|
||||||
showRegisterDate:false,
|
showRegisterDate: false,
|
||||||
show: false,
|
show: false,
|
||||||
shownature: false,
|
shownature: false,
|
||||||
showgoods: false,
|
showgoods: false,
|
||||||
@ -263,11 +278,13 @@ export default {
|
|||||||
showzhi: false,
|
showzhi: false,
|
||||||
showRecord: false,
|
showRecord: false,
|
||||||
showLeadMan: false,
|
showLeadMan: false,
|
||||||
|
showMeetMan: false,
|
||||||
skuId: 0,
|
skuId: 0,
|
||||||
inspectionWorkNodes: [],
|
inspectionWorkNodes: [],
|
||||||
defaultIndex: [0],
|
defaultIndex: [0],
|
||||||
kehuDefaultIndex: [0],
|
kehuDefaultIndex: [0],
|
||||||
goodsDefaultIndex: [0, 0],
|
goodsDefaultIndex: [0, 0],
|
||||||
|
meetName:'',
|
||||||
columns: [],
|
columns: [],
|
||||||
options: [],
|
options: [],
|
||||||
nature: [],
|
nature: [],
|
||||||
@ -276,6 +293,7 @@ export default {
|
|||||||
columnData: [],
|
columnData: [],
|
||||||
xinlist: [],
|
xinlist: [],
|
||||||
zhilist: [],
|
zhilist: [],
|
||||||
|
isLoading:false,
|
||||||
recordTime: Number(new Date()),
|
recordTime: Number(new Date()),
|
||||||
baseUrl: this.$baseImageUrl,
|
baseUrl: this.$baseImageUrl,
|
||||||
goodsId: '',
|
goodsId: '',
|
||||||
@ -287,24 +305,29 @@ export default {
|
|||||||
shopImages: [],
|
shopImages: [],
|
||||||
shoplist: {},
|
shoplist: {},
|
||||||
province: '',
|
province: '',
|
||||||
carRegisterDateStr:'',
|
carRegisterDateStr: '',
|
||||||
unitName: '',
|
unitName: '',
|
||||||
kehui: '',
|
kehui: '',
|
||||||
naturetext: '',
|
naturetext: '',
|
||||||
customerData: [],
|
customerData: [],
|
||||||
inspectionWorkNodeStr: "",
|
inspectionWorkNodeStr: "",
|
||||||
leadManId: undefined,
|
leadManId: undefined,
|
||||||
|
meetManId: undefined,
|
||||||
leadManList: [],
|
leadManList: [],
|
||||||
|
meetManList: [],
|
||||||
isInsert: true,
|
isInsert: true,
|
||||||
inspectionId: undefined,
|
inspectionId: undefined,
|
||||||
xinDefaultIndex: [0],
|
xinDefaultIndex: [0],
|
||||||
recordTimeStr: '',
|
recordTimeStr: '',
|
||||||
carRegisterDate : '',
|
carRegisterDate: '',
|
||||||
|
appointmentId: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
async onLoad(options) {
|
||||||
this.getinitialize()
|
this.isLoading = true
|
||||||
this.getLeadeMan()
|
await this.getinitialize()
|
||||||
|
await this.getLeadeMan()
|
||||||
|
await this.getMeetMan()
|
||||||
uni.$on('selectProject', (data) => {
|
uni.$on('selectProject', (data) => {
|
||||||
this.inspectionWorkNodes = data
|
this.inspectionWorkNodes = data
|
||||||
for (var i = 0; i < this.inspectionWorkNodes.length; i++) {
|
for (var i = 0; i < this.inspectionWorkNodes.length; i++) {
|
||||||
@ -316,8 +339,14 @@ export default {
|
|||||||
this.isInsert = false
|
this.isInsert = false
|
||||||
this.inspectionId = options.inspectionInfoId
|
this.inspectionId = options.inspectionInfoId
|
||||||
this.title = '修改线下订单'
|
this.title = '修改线下订单'
|
||||||
this.getInspectionInfo()
|
await this.getInspectionInfo()
|
||||||
}
|
}
|
||||||
|
//判断是否是预约记录进来的
|
||||||
|
if (options.appointmentId) {
|
||||||
|
this.appointmentId = options.appointmentId
|
||||||
|
await this.getAppointmentDetail()
|
||||||
|
}
|
||||||
|
this.isLoading = false
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
||||||
@ -391,6 +420,11 @@ export default {
|
|||||||
this.leadManId = e.value[0].id
|
this.leadManId = e.value[0].id
|
||||||
this.showLeadMan = false
|
this.showLeadMan = false
|
||||||
},
|
},
|
||||||
|
confirmMeetMan(e) {
|
||||||
|
this.meetName = e.value[0].nickname
|
||||||
|
this.meetManId = e.value[0].id
|
||||||
|
this.showMeetMan = false
|
||||||
|
},
|
||||||
confirmRecord(e) {
|
confirmRecord(e) {
|
||||||
//将时间戳转换
|
//将时间戳转换
|
||||||
this.recordTime = e.value
|
this.recordTime = e.value
|
||||||
@ -436,6 +470,60 @@ export default {
|
|||||||
cancelRecord() {
|
cancelRecord() {
|
||||||
this.showRecord = false
|
this.showRecord = false
|
||||||
},
|
},
|
||||||
|
/*获取预约记录详情*/
|
||||||
|
async getAppointmentDetail() {
|
||||||
|
let res = await request({
|
||||||
|
url: `/inspection/appointment/${this.appointmentId}`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
//客户姓名
|
||||||
|
this.buyName = res.data.buyName
|
||||||
|
this.buyPhone = res.data.buyPhoneNum
|
||||||
|
//车牌
|
||||||
|
this.carNum = res.data.carNo
|
||||||
|
//车辆性质
|
||||||
|
this.carNature = res.data.carNature
|
||||||
|
//车辆品牌
|
||||||
|
this.carModel = res.data.carModel
|
||||||
|
//车辆识别代码
|
||||||
|
this.carIdNo = res.data.carIdNo
|
||||||
|
//skuid
|
||||||
|
this.skuId = res.data.skuId
|
||||||
|
//goodsId
|
||||||
|
this.goodsId = res.data.goodsId
|
||||||
|
this.goodstext = this.findItemById(this.columnData, this.skuId).label
|
||||||
|
//触发change变化的方法
|
||||||
|
// 模拟change事件
|
||||||
|
const mockEvent = {
|
||||||
|
columnIndex: 0, // 假设是第一列发生变化
|
||||||
|
index: this.findGroupById(this.columnData, this.skuId).index, // 选择的索引
|
||||||
|
picker: this.$refs.uPicker // 选择器实例
|
||||||
|
};
|
||||||
|
this.changeHandler(mockEvent);
|
||||||
|
//根据goodsId找出对应的索引位置
|
||||||
|
this.goodsDefaultIndex = [this.goodsone[0].findIndex(item => item.value === this.goodsId),this.$refs.uPicker.getColumnValues(1).findIndex(item => item.value == this.skuId)]
|
||||||
|
},
|
||||||
|
findItemById(data, id) {
|
||||||
|
for (const group of data) {
|
||||||
|
for (const item of group) {
|
||||||
|
if (item.value === id) {
|
||||||
|
return item; // 找到匹配的对象后返回
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null; // 如果没有找到,返回 null
|
||||||
|
},
|
||||||
|
findGroupById(data, id) {
|
||||||
|
for (let index = 0; index < data.length; index++) {
|
||||||
|
const group = data[index];
|
||||||
|
for (const item of group) {
|
||||||
|
if (item.value === id) {
|
||||||
|
return { group, index }; // 返回组和对应的索引
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null; // 如果没有找到,返回 null
|
||||||
|
},
|
||||||
/*获取引车员信息*/
|
/*获取引车员信息*/
|
||||||
getLeadeMan() {
|
getLeadeMan() {
|
||||||
request({
|
request({
|
||||||
@ -448,6 +536,18 @@ export default {
|
|||||||
this.leadManList.push(res.data)
|
this.leadManList.push(res.data)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
/*获取接车员信息*/
|
||||||
|
getMeetMan() {
|
||||||
|
request({
|
||||||
|
url: '/system/role/getUsersByRoleCode',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
code: "jcjchc"
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
this.meetManList.push(res.data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
confirmsnature(e) {
|
confirmsnature(e) {
|
||||||
this.naturetext = e.value[0].label
|
this.naturetext = e.value[0].label
|
||||||
@ -539,7 +639,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: '/system/info/add',
|
url: '/system/info/add',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
|
@ -122,11 +122,18 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="box_" v-for="(item,index) in goodsList" :key="index" v-else>
|
<view class="box_" v-for="(item,index) in goodsList" :key="index" v-else>
|
||||||
<view class="box_ds">
|
<view style="display: flex;justify-content: space-between;">
|
||||||
<view class="box_title">{{ item.goodsTitle }}</view>
|
<view class="box_ds">
|
||||||
<u-tag :text="item.skuName" plain size="mini" style=" height: 44rpx; "></u-tag>
|
<view class="box_title">{{ item.goodsTitle }}</view>
|
||||||
<!-- <image src="/static/imgs/ns.png" mode=""></image>-->
|
<u-tag :text="item.skuName" plain size="mini" style=" height: 44rpx; "></u-tag>
|
||||||
|
<!-- <image src="/static/imgs/ns.png" mode=""></image>-->
|
||||||
|
</view>
|
||||||
|
<view style="color:#3c9cff;" @click="goAddOrder(item)" v-if="!item.orderId">
|
||||||
|
转订单
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="box_bd">
|
<view class="box_bd">
|
||||||
<view class="box_ds">
|
<view class="box_ds">
|
||||||
<image src="/static/imgs/car.png" style="width: 36rpx; height: 36rpx; " mode=""></image>
|
<image src="/static/imgs/car.png" style="width: 36rpx; height: 36rpx; " mode=""></image>
|
||||||
@ -278,21 +285,37 @@ export default {
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/manage/internalManagement'
|
url: '/pages/manage/internalManagement'
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
|
},
|
||||||
|
goAddOrder(data){
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/index/Neworder?appointmentId=${data.id}`
|
||||||
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
|
},
|
||||||
|
clearMyInterval() {
|
||||||
|
if (this.timer) {
|
||||||
|
clearInterval(this.timer);
|
||||||
|
this.timer = null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
goordermanage() {
|
goordermanage() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/index/ordermanage'
|
url: '/pages/index/ordermanage'
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
goNotice() {
|
goNotice() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/xiaoxi/notice'
|
url: '/pages/xiaoxi/notice'
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
goordercount() {
|
goordercount() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/index/neworderStatistic'
|
url: '/pages/index/neworderStatistic'
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
goback() {
|
goback() {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
@ -301,21 +324,25 @@ export default {
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/order/order'
|
url: '/pages/order/order'
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
coupon() {
|
coupon() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/coupon/coupon'
|
url: '/pages/coupon/coupon'
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
gocode() {
|
gocode() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/my/rwm",
|
url: "/pages/my/rwm",
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
gohomecar() {
|
gohomecar() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/index/homecar",
|
url: "/pages/index/homecar",
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
goPresent() {
|
goPresent() {
|
||||||
if (!this.present?.filePath) {
|
if (!this.present?.filePath) {
|
||||||
@ -346,21 +373,25 @@ export default {
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/Tollannouncement/Tollannouncement'
|
url: '/pages/Tollannouncement/Tollannouncement'
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
goemployees() {
|
goemployees() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/index/countEmployees'
|
url: '/pages/index/countEmployees'
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
goneworderStatistic() {
|
goneworderStatistic() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/index/orderStatistics'
|
url: '/pages/index/orderStatistics'
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
gobusiness() {
|
gobusiness() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/statistics/business'
|
url: '/pages/statistics/business'
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
gettel(num) {
|
gettel(num) {
|
||||||
const value = num.buyPhoneNum
|
const value = num.buyPhoneNum
|
||||||
@ -372,6 +403,7 @@ export default {
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/index/UserInfo'
|
url: '/pages/index/UserInfo'
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
avatarErr(err) {
|
avatarErr(err) {
|
||||||
console.log('err', err)
|
console.log('err', err)
|
||||||
@ -381,6 +413,7 @@ export default {
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/xiaoxi/xiaoxi?index=1'
|
url: '/pages/xiaoxi/xiaoxi?index=1'
|
||||||
})
|
})
|
||||||
|
this.clearMyInterval()
|
||||||
},
|
},
|
||||||
getUserInfo() {
|
getUserInfo() {
|
||||||
let roleNames = getStorageWithExpiry("roleNames")
|
let roleNames = getStorageWithExpiry("roleNames")
|
||||||
|
@ -19,8 +19,9 @@
|
|||||||
<scroll-view scroll-x="true" style="width: 100%;">
|
<scroll-view scroll-x="true" style="width: 100%;">
|
||||||
<view style="display: flex; align-items: center; white-space: nowrap;">
|
<view style="display: flex; align-items: center; white-space: nowrap;">
|
||||||
<view class="tap-box" v-for="(item, index) in tapList" :key="index" @click="tapqh(index)">
|
<view class="tap-box" v-for="(item, index) in tapList" :key="index" @click="tapqh(index)">
|
||||||
<view class="xhuihui" :class="{'xzhei': tapindex == index}" style="white-space: nowrap;margin-right: 0.5rem">
|
<view class="xhuihui" :class="{'xzhei': tapindex == index}"
|
||||||
{{ item.text }}{{ countMap.length !== 0 ? ('(' + countMap.get(index + "") + ')') : '' }}
|
style="white-space: nowrap;margin-right: 0.5rem">
|
||||||
|
{{ item.text }}{{ countMap.length !== 0 ? ('(' + countMap.get(index + 1 + "") + ')') : '' }}
|
||||||
</view>
|
</view>
|
||||||
<view class="gang" v-if="tapindex == index"></view>
|
<view class="gang" v-if="tapindex == index"></view>
|
||||||
</view>
|
</view>
|
||||||
@ -57,31 +58,33 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="on-input">
|
<view v-if="isShowClient">
|
||||||
<uni-icons type="person" color="#999999" size="16"></uni-icons>
|
<view class="on-input">
|
||||||
<text>客户:</text>
|
<uni-icons type="person" color="#999999" size="16"></uni-icons>
|
||||||
<text>{{ item.buyName ? item.buyName : "" }}</text>
|
<text>客户:</text>
|
||||||
</view>
|
<text>{{ item.buyName ? item.buyName : "" }}</text>
|
||||||
<view class="on-input">
|
</view>
|
||||||
<uni-icons type="phone" color="#999999" size="16"></uni-icons>
|
<view class="on-input">
|
||||||
<text>电话:</text>
|
<uni-icons type="phone" color="#999999" size="16"></uni-icons>
|
||||||
<text>{{ item.buyPhone }}</text>
|
<text>电话:</text>
|
||||||
|
<text>{{ item.buyPhone }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="on-input">
|
||||||
|
<uni-icons type="map" color="#999999" size="16"></uni-icons>
|
||||||
|
<text>客户来源:</text>
|
||||||
|
<text>{{ item.customerSource }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="on-input" v-if="item.otherPhone">
|
||||||
|
<uni-icons type="map" color="#999999" size="16"></uni-icons>
|
||||||
|
<text>代办人电话:</text>
|
||||||
|
<text>{{ item.otherPhone }}</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="on-input">
|
<view class="on-input">
|
||||||
<uni-icons type="map" color="#999999" size="16"></uni-icons>
|
<uni-icons type="map" color="#999999" size="16"></uni-icons>
|
||||||
<text>车牌号:</text>
|
<text>车牌号:</text>
|
||||||
<text>{{ item.carNum }}</text>
|
<text>{{ item.carNum }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="on-input">
|
|
||||||
<uni-icons type="map" color="#999999" size="16"></uni-icons>
|
|
||||||
<text>客户来源:</text>
|
|
||||||
<text>{{ item.customerSource }}</text>
|
|
||||||
</view>
|
|
||||||
<view class="on-input" v-if="item.otherPhone">
|
|
||||||
<uni-icons type="map" color="#999999" size="16"></uni-icons>
|
|
||||||
<text>代办人电话:</text>
|
|
||||||
<text>{{ item.otherPhone }}</text>
|
|
||||||
</view>
|
|
||||||
<view class="on-input" v-if="item.nodeNames">
|
<view class="on-input" v-if="item.nodeNames">
|
||||||
<uni-icons type="more" color="#999999" size="16"></uni-icons>
|
<uni-icons type="more" color="#999999" size="16"></uni-icons>
|
||||||
<text class="single-line">检测内容:</text>
|
<text class="single-line">检测内容:</text>
|
||||||
@ -89,10 +92,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="bottom-di">
|
<view class="bottom-di">
|
||||||
<view class="button-container">
|
<view class="button-container">
|
||||||
<u-button class="button" v-if="beginButtonShow.includes(tapindex)" @click="orderTakingBefore(item)" size="10">
|
<u-button class="button" v-if="beginButtonShow.includes(tapindex)" @click="orderTakingBefore(item)"
|
||||||
|
size="10">
|
||||||
开始检测
|
开始检测
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button class="button" v-if="cancelButtonShow.includes(tapindex)" @click="cancelAnOrder(item)" size="10">
|
<u-button class="button" v-if="cancelButtonShow.includes(tapindex)" @click="cancelAnOrder(item)"
|
||||||
|
size="10">
|
||||||
取消接单
|
取消接单
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button class="button" @click="godetails(item)" size="10">查看详情</u-button>
|
<u-button class="button" @click="godetails(item)" size="10">查看详情</u-button>
|
||||||
@ -132,6 +137,7 @@ import {type} from "../../uni_modules/uni-forms/components/uni-forms/utils";
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isShowClient: false,
|
||||||
msgSocket: this.$msgSocket,
|
msgSocket: this.$msgSocket,
|
||||||
imgurl: this.$imgeUrl,
|
imgurl: this.$imgeUrl,
|
||||||
baseUrl: this.$baseUrl,
|
baseUrl: this.$baseUrl,
|
||||||
@ -139,6 +145,7 @@ export default {
|
|||||||
partnerId: uni.getStorageSync("partnerId"),
|
partnerId: uni.getStorageSync("partnerId"),
|
||||||
goodsTitle: '',
|
goodsTitle: '',
|
||||||
tapindex: 0,
|
tapindex: 0,
|
||||||
|
tapValue: 1,
|
||||||
isExamine: false,
|
isExamine: false,
|
||||||
msg: '1',
|
msg: '1',
|
||||||
carNum: '',
|
carNum: '',
|
||||||
@ -168,23 +175,27 @@ export default {
|
|||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
text: "待检测",
|
text: "待检测",
|
||||||
value: "2"
|
value: "1"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
text: "检测中",
|
text: "检测中",
|
||||||
value: "3",
|
value: "2",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "待重检",
|
text: "待重检",
|
||||||
value: "4",
|
value: "3",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "待复检",
|
text: "待复检",
|
||||||
value: "5",
|
value: "4",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "已完成",
|
text: "已完成",
|
||||||
|
value: "5",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "待接车",
|
||||||
value: "6",
|
value: "6",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -194,8 +205,8 @@ export default {
|
|||||||
workNodeId: null,
|
workNodeId: null,
|
||||||
id: null
|
id: null
|
||||||
},
|
},
|
||||||
beginButtonShow: [1, 3, 4],
|
beginButtonShow: [0, 2, 3],
|
||||||
cancelButtonShow: [2],
|
cancelButtonShow: [1],
|
||||||
countMap: []
|
countMap: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -231,7 +242,7 @@ export default {
|
|||||||
tabBar,
|
tabBar,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getCount(){
|
async getCount() {
|
||||||
await request({
|
await request({
|
||||||
url: '/system/info/getCountByType?partnerId=' + this.partnerId,
|
url: '/system/info/getCountByType?partnerId=' + this.partnerId,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
@ -272,7 +283,7 @@ export default {
|
|||||||
url: `/system/info/getWorkNodeByIdAndNow?id=${item.id}&status=${(this.tapindex === 4 ? "3" : "0")}${(this.tapindex === 3 ? "&flag=false" : "")}`,
|
url: `/system/info/getWorkNodeByIdAndNow?id=${item.id}&status=${(this.tapindex === 4 ? "3" : "0")}${(this.tapindex === 3 ? "&flag=false" : "")}`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
if (res.data){
|
if (res.data) {
|
||||||
this.chooseWorkNodes = [Object.keys(res.data).map(key => ({
|
this.chooseWorkNodes = [Object.keys(res.data).map(key => ({
|
||||||
value: key,
|
value: key,
|
||||||
label: res.data[key]
|
label: res.data[key]
|
||||||
@ -318,7 +329,7 @@ export default {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
partnerId: this.partnerId,
|
partnerId: this.partnerId,
|
||||||
status: this.tapindex,
|
status: this.tapValue,
|
||||||
carNum: this.carNum,
|
carNum: this.carNum,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
pageNum: this.pageNum,
|
pageNum: this.pageNum,
|
||||||
@ -331,12 +342,12 @@ export default {
|
|||||||
this.infoDatas = res.rows
|
this.infoDatas = res.rows
|
||||||
}
|
}
|
||||||
const ids = this.infoDatas.filter(item => !item.nodeNames).map(item => item.id)
|
const ids = this.infoDatas.filter(item => !item.nodeNames).map(item => item.id)
|
||||||
if (ids && ids.length > 0){
|
if (ids && ids.length > 0) {
|
||||||
const response = await request({
|
const response = await request({
|
||||||
url: "/partnerOwn/partner/getProjectByIds?ids=" + ids,
|
url: "/partnerOwn/partner/getProjectByIds?ids=" + ids,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
if (response.data){
|
if (response.data) {
|
||||||
const data = response.data
|
const data = response.data
|
||||||
this.infoDatas.forEach(item => {
|
this.infoDatas.forEach(item => {
|
||||||
this.$set(item, 'nodeNames', data[item.id])
|
this.$set(item, 'nodeNames', data[item.id])
|
||||||
@ -406,6 +417,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
tapqh(index) {
|
tapqh(index) {
|
||||||
|
//如果是待接车
|
||||||
|
if (this.tapList[index].value == '6') {
|
||||||
|
}
|
||||||
|
this.tapValue = this.tapList[index].value
|
||||||
this.tapindex = index
|
this.tapindex = index
|
||||||
this.infoDatas = []
|
this.infoDatas = []
|
||||||
this.pageNum = 1
|
this.pageNum = 1
|
||||||
@ -681,6 +696,7 @@ export default {
|
|||||||
border-radius: 20rpx; /* 椭圆效果 */
|
border-radius: 20rpx; /* 椭圆效果 */
|
||||||
white-space: nowrap; /* 确保文本不换行 */
|
white-space: nowrap; /* 确保文本不换行 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon1 {
|
.icon1 {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 56rpx;
|
width: 56rpx;
|
||||||
|
Loading…
Reference in New Issue
Block a user