更新
This commit is contained in:
parent
3b0d932b39
commit
1c1ee3b00e
@ -61,9 +61,14 @@
|
||||
deep: true,
|
||||
},
|
||||
methods: {
|
||||
dianyidain() {
|
||||
dianyidain(msg) {
|
||||
// console.log('执行了,dianyidain');
|
||||
innerAudioContext.src = 'https://www.nuoyunr.com/lananRsc/rescue/msgV.mp3';
|
||||
console.log('消息内容', msg);
|
||||
let src = 'https://www.nuoyunr.com/lananRsc/rescue/msgV.mp3'
|
||||
if (msg == '客户即将到店') {
|
||||
src = "https://www.nuoyunr.com/lananRsc/rescue/inspection.mp3"
|
||||
}
|
||||
innerAudioContext.src = src;
|
||||
// 设置播放次数和计数器
|
||||
const playCount = 3;
|
||||
let currentCount = 0;
|
||||
@ -93,7 +98,7 @@
|
||||
this.msgSocket.onMessage(res => {
|
||||
console.log("发出提示音");
|
||||
|
||||
this.dianyidain()
|
||||
this.dianyidain(res.data)
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,8 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
msgSocket: null,
|
||||
msgSocket: this.$msgSocket,
|
||||
nowPageInterval: null,
|
||||
aindex: 1,
|
||||
chuan: 0,
|
||||
arr: [{
|
||||
@ -66,8 +67,22 @@
|
||||
|
||||
},
|
||||
mounted() {
|
||||
this.msgSocket = this.$msgSocket,
|
||||
this.aindex = this.msg
|
||||
if (!this.nowPageInterval) {
|
||||
this.nowPageInterval = setInterval(() => {
|
||||
const newSocket = this.$msgSocket;
|
||||
if (this.msgSocket !== newSocket) {
|
||||
this.msgSocket = newSocket;
|
||||
this.msgInfo();
|
||||
}
|
||||
}, 30000);
|
||||
}
|
||||
this.aindex = this.msg;
|
||||
},
|
||||
onUnload() {
|
||||
if (this.nowPageInterval) {
|
||||
clearInterval(this.nowPageInterval);
|
||||
this.nowPageInterval = null;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
msgSocket(newVal, oldVal) {
|
||||
@ -78,8 +93,13 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
dianyidain() {
|
||||
innerAudioContext.src = 'https://www.nuoyunr.com/lananRsc/rescue/msgV.mp3';
|
||||
dianyidain(msg) {
|
||||
console.log('消息内容', msg);
|
||||
let src = 'https://www.nuoyunr.com/lananRsc/rescue/msgV.mp3'
|
||||
if (msg == '客户即将到店') {
|
||||
src = "https://www.nuoyunr.com/lananRsc/rescue/inspection.mp3"
|
||||
}
|
||||
innerAudioContext.src = src;
|
||||
// 设置播放次数和计数器
|
||||
const playCount = 3;
|
||||
let currentCount = 0;
|
||||
@ -110,8 +130,8 @@
|
||||
console.log('消息回调启动成功')
|
||||
this.msgSocket.onMessage(res => {
|
||||
console.log("发出提示音");
|
||||
|
||||
this.dianyidain()
|
||||
console.log(res.data);
|
||||
this.dianyidain(res.data)
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -149,7 +149,7 @@
|
||||
<input type="text" v-model="nickname" placeholder="请输入引车员">
|
||||
</view>
|
||||
</view>
|
||||
<view class="list-box">
|
||||
<!-- <view class="list-box">
|
||||
<view class="l-left" @click="showMeetMan = true">
|
||||
接车员
|
||||
<text class="xixi">点击选择</text>
|
||||
@ -157,7 +157,7 @@
|
||||
<view class="l-right">
|
||||
<input type="text" v-model="meetName" placeholder="请输入接车员">
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- <view class="list-box">-->
|
||||
<!-- <view class="l-left">是否补录</view>-->
|
||||
@ -202,8 +202,12 @@
|
||||
<view class="dlanniu" @click="edit()" v-else>
|
||||
<text>确认修改</text>
|
||||
</view>
|
||||
<u-picker :show="show" :columns="columns" :defaultIndex="kehuDefaultIndex" @confirm="confirms"
|
||||
@cancel="cancels" keyName="label"></u-picker>
|
||||
<!-- <u-picker :show="show" :columns="columns" :defaultIndex="kehuDefaultIndex" @confirm="confirms"
|
||||
@cancel="cancels" keyName="label"></u-picker> -->
|
||||
<qianziyu-select :show="show" name="label" @search="getCustomerSource" :dataLists="columns"
|
||||
:showSearch=true @cancel="cancels" :checkboxData="driverLicenseTypeArr" @submit="confirms"
|
||||
@update:checkboxData="driverLicenseTypeArr = $event">
|
||||
</qianziyu-select>
|
||||
|
||||
<u-picker :show="showgoods" ref="uPicker" :columns="goodsone" :defaultIndex="goodsDefaultIndex"
|
||||
@confirm="confirmgoods" @cancel="cancelgoods" @change="changeHandler" keyName="label"></u-picker>
|
||||
@ -265,6 +269,7 @@
|
||||
title: '新增线下订单',
|
||||
customerSource: '',
|
||||
buyName: '',
|
||||
driverLicenseTypeArr: [],
|
||||
nickname: '',
|
||||
buyPhone: '',
|
||||
userAddress: '',
|
||||
@ -315,6 +320,7 @@
|
||||
unitName: '',
|
||||
kehui: '',
|
||||
naturetext: '',
|
||||
selectCustomerSource: {},
|
||||
customerData: [],
|
||||
inspectionWorkNodeStr: "",
|
||||
leadManId: undefined,
|
||||
@ -410,7 +416,7 @@
|
||||
}
|
||||
},
|
||||
confirms(e) {
|
||||
this.customerSource = e.value[0].label
|
||||
this.customerSource = e.label
|
||||
this.show = false
|
||||
},
|
||||
cancels() {
|
||||
@ -644,12 +650,23 @@
|
||||
cancelgoods() {
|
||||
this.showgoods = false
|
||||
},
|
||||
async getCustomerSource(searchValue) {
|
||||
console.log('搜索内容', searchValue);
|
||||
let res = await request({
|
||||
url: '/partnerOwn/partner/getCustomerSource',
|
||||
method: 'get',
|
||||
params: {
|
||||
searchValue: searchValue
|
||||
}
|
||||
})
|
||||
this.columns = res.data
|
||||
},
|
||||
async getinitialize() {
|
||||
let res = await request({
|
||||
url: '/partnerOwn/partner/getCustomerSource',
|
||||
method: 'get',
|
||||
})
|
||||
this.columns.push(res.data)
|
||||
this.columns = res.data
|
||||
let rescar = await request({
|
||||
url: '/rescue/dict/data/type/car_nature',
|
||||
method: 'get',
|
||||
|
@ -5,18 +5,15 @@
|
||||
</headersVue>
|
||||
<view class="content">
|
||||
<!-- 顶部选择区域 -->
|
||||
<view class="top_">
|
||||
<!-- <view class="top_">
|
||||
<view class="select-container" @click="showDropdown">
|
||||
<view class="select-text">
|
||||
{{ queryStr != null ? queryStr : '请选择工作内容' }}
|
||||
</view>
|
||||
<!-- 下拉箭头 -->
|
||||
<u-icon style="margin-left: 10rpx;" name="arrow-down" size="18" color="#8D90A6"></u-icon>
|
||||
</view>
|
||||
|
||||
<!-- 清除按钮 -->
|
||||
<u-icon v-if="queryStr" name="close-circle" color="#8D90A6" size="18" @click="clearSelection"></u-icon>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- 列表区域 -->
|
||||
<view class="list_">
|
||||
|
@ -136,8 +136,12 @@
|
||||
<text>接车</text>
|
||||
</view>
|
||||
|
||||
<u-picker :show="show" :columns="columns" :defaultIndex="kehuDefaultIndex" @confirm="confirms"
|
||||
@cancel="cancels" keyName="label"></u-picker>
|
||||
<!-- <u-picker :show="show" :columns="columns" :defaultIndex="kehuDefaultIndex" @confirm="confirms"
|
||||
@cancel="cancels" keyName="label"></u-picker> -->
|
||||
<qianziyu-select :show="show" name="label" @search="getCustomerSource" :dataLists="columns"
|
||||
:showSearch=true @cancel="cancels" :checkboxData="driverLicenseTypeArr" @submit="confirms"
|
||||
@update:checkboxData="driverLicenseTypeArr = $event">
|
||||
</qianziyu-select>
|
||||
|
||||
<u-picker :show="showgoods" ref="uPicker" :columns="goodsone" :defaultIndex="goodsDefaultIndex"
|
||||
@confirm="confirmgoods" @cancel="cancelgoods" @change="changeHandler" keyName="label"></u-picker>
|
||||
@ -209,7 +213,7 @@
|
||||
showRecord: false,
|
||||
showLeadMan: false,
|
||||
showMeetMan: false,
|
||||
skuId: 0,
|
||||
skuId: undefined,
|
||||
inspectionWorkNodes: [],
|
||||
defaultIndex: [0],
|
||||
kehuDefaultIndex: [0],
|
||||
@ -284,6 +288,17 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
async getCustomerSource(searchValue) {
|
||||
console.log('搜索内容', searchValue);
|
||||
let res = await request({
|
||||
url: '/partnerOwn/partner/getCustomerSource',
|
||||
method: 'get',
|
||||
params: {
|
||||
searchValue: searchValue
|
||||
}
|
||||
})
|
||||
this.columns = res.data
|
||||
},
|
||||
async afterRead(event) {
|
||||
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
|
||||
let lists = [].concat(event.file)
|
||||
@ -353,7 +368,7 @@
|
||||
}
|
||||
},
|
||||
confirms(e) {
|
||||
this.customerSource = e.value[0].label
|
||||
this.customerSource = e.label
|
||||
this.show = false
|
||||
},
|
||||
cancels() {
|
||||
@ -472,7 +487,7 @@
|
||||
url: '/partnerOwn/partner/getCustomerSource',
|
||||
method: 'get',
|
||||
})
|
||||
this.columns.push(res.data)
|
||||
this.columns = (res.data)
|
||||
let rescar = await request({
|
||||
url: '/rescue/dict/data/type/car_nature',
|
||||
method: 'get',
|
||||
|
@ -33,6 +33,11 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="jg_top" style="padding: 30rpx;">{{ dateStr || '' }} {{ week || '' }} {{ time || '' }}</view>
|
||||
<view style="padding:0 30rpx; display: flex; justify-content: flex-end;" @click="showMore = !showMore">
|
||||
<view v-if="!showMore" style="display: flex;">展开<u-icon name="arrow-down"></u-icon></view>
|
||||
<view v-else style="display: flex;">收起<u-icon name="arrow-up"></u-icon></view>
|
||||
</view>
|
||||
|
||||
<view class="three_" @click="goordercount">
|
||||
<view class="three_box1">
|
||||
<view class="">当日订单</view>
|
||||
@ -47,6 +52,25 @@
|
||||
<view class="num_">{{ threenum.jxzNum }}</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="three_" v-if="showMore">
|
||||
<view class="three_box1">
|
||||
<view class="">年审</view>
|
||||
<view class="num_">{{ threenum.nsNum }}</view>
|
||||
</view>
|
||||
<view class="three_box2">
|
||||
<view class="">上户</view>
|
||||
<view class="num_">{{ threenum.shNum }}</view>
|
||||
</view>
|
||||
<view class="three_box3">
|
||||
<view class="">非定检</view>
|
||||
<view class="num_">{{ threenum.fdjNum }}</view>
|
||||
</view>
|
||||
<view class="three_box4">
|
||||
<view class="">双燃料</view>
|
||||
<view class="num_">{{ threenum.srlNum }}</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="hang_"></view>
|
||||
<view class="jg_box">
|
||||
@ -187,7 +211,7 @@
|
||||
<view style="padding: 50rpx;">
|
||||
<view class="title_">选择日期</view>
|
||||
<view class="example-body" style="margin-top: 30rpx;">
|
||||
<uni-datetime-picker v-model="range" type="daterange" @maskClick="maskClick" />
|
||||
<uni-datetime-picker v-model="range" type="daterange" />
|
||||
</view>
|
||||
<view style="margin-top: 30rpx;">
|
||||
<u-button text="确定" style="width: 50%;" type="primary" @click="screenTime()"></u-button>
|
||||
@ -218,6 +242,7 @@
|
||||
msg: "1",
|
||||
List: [],
|
||||
show: false,
|
||||
showMore: false,
|
||||
status: 'loading',
|
||||
warnMsg: [],
|
||||
chuan: '',
|
||||
@ -265,7 +290,6 @@
|
||||
// this.actList = ["1", "1", "1", "1", "1", ]
|
||||
// this.status = "nomore" 底部刷新结束
|
||||
this.partnerId = uni.getStorageSync('partnerId')
|
||||
this.$startSocketConnect(uni.getStorageSync('userId'))
|
||||
this.getUserInfo()
|
||||
this.getindex()
|
||||
// this.getwarnMsglist()
|
||||
@ -297,7 +321,7 @@
|
||||
},
|
||||
onLoad() {
|
||||
this.partnerId = uni.getStorageSync('partnerId')
|
||||
// this.$startSocketConnect(uni.getStorageSync('userId'))
|
||||
this.$startSocketConnect(uni.getStorageSync('userId'))
|
||||
this.getUserInfo()
|
||||
this.getindex()
|
||||
// this.getwarnMsglist()
|
||||
@ -811,7 +835,8 @@
|
||||
padding: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
// justify-content: space-between;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.jg_box {
|
||||
@ -829,6 +854,7 @@
|
||||
.three_box1 {
|
||||
width: 216rpx;
|
||||
height: 116rpx;
|
||||
margin: 0 10rpx;
|
||||
background-image: url('/static/imgs/t1.png');
|
||||
background-size: 100% 100%;
|
||||
box-sizing: border-box;
|
||||
@ -843,6 +869,7 @@
|
||||
height: 116rpx;
|
||||
background-image: url('/static/imgs/t2.png');
|
||||
background-size: 100% 100%;
|
||||
margin: 0 10rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 14rpx 18rpx;
|
||||
font-size: 24rpx;
|
||||
@ -853,6 +880,19 @@
|
||||
width: 216rpx;
|
||||
height: 116rpx;
|
||||
background-image: url('/static/imgs/t3.png');
|
||||
margin: 0 10rpx;
|
||||
background-size: 100% 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 14rpx 18rpx;
|
||||
font-size: 24rpx;
|
||||
color: #101A3E;
|
||||
}
|
||||
|
||||
.three_box4 {
|
||||
width: 216rpx;
|
||||
margin: 0 10rpx;
|
||||
height: 116rpx;
|
||||
background-image: url('/static/imgs/t3.png');
|
||||
background-size: 100% 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 14rpx 18rpx;
|
||||
|
@ -158,11 +158,15 @@
|
||||
<view class="dlanniu" @click="edit()" v-else>
|
||||
<text>确认修改</text>
|
||||
</view>
|
||||
<u-picker :show="show" :columns="columns" :defaultIndex="kehuDefaultIndex" @confirm="confirms"
|
||||
@cancel="cancels" keyName="label"></u-picker>
|
||||
<<!-- u-picker :show="show" :columns="columns" :defaultIndex="kehuDefaultIndex" @confirm="confirms"
|
||||
@cancel="cancels" keyName="label"></u-picker> -->
|
||||
<qianziyu-select :show="show" name="label" @search="getCustomerSource" :dataLists="columns"
|
||||
:showSearch=true @cancel="cancels" @submit="confirms">
|
||||
</qianziyu-select>
|
||||
|
||||
<u-picker :show="showgoods" ref="uPicker" :columns="goodsone" :defaultIndex="goodsDefaultIndex"
|
||||
@confirm="confirmgoods" @cancel="cancelgoods" @change="changeHandler" keyName="label"></u-picker>
|
||||
@confirm="confirmgoods" @cancel="cancelgoods" @change="changeHandler"
|
||||
keyName="label"></u-picker>
|
||||
|
||||
<u-picker :show="shownature" :columns="nature" @confirm="confirmsnature" @cancel="cancelsnature"
|
||||
keyName="label"></u-picker>
|
||||
@ -173,8 +177,8 @@
|
||||
keyName="label"></u-picker>
|
||||
<u-picker :show="showLeadMan" :columns="leadManList" :defaultIndex="defaultIndex"
|
||||
@confirm="confirmLeadMan" @cancel="cancelLeadMan" keyName="nickname"></u-picker>
|
||||
<u-datetime-picker :show="showRecord" v-model="recordTime" :formatter="formatter" @cancel="cancelRecord"
|
||||
@confirm="confirmRecord" mode="datetime"></u-datetime-picker>
|
||||
<u-datetime-picker :show="showRecord" v-model="recordTime" :formatter="formatter"
|
||||
@cancel="cancelRecord" @confirm="confirmRecord" mode="datetime"></u-datetime-picker>
|
||||
<u-datetime-picker :show="showRegisterDate" v-model="carRegisterDate" mode="date"
|
||||
@cancel="showRegisterDate = false" @confirm="confirmRegisterDate"></u-datetime-picker>
|
||||
</view>
|
||||
@ -297,6 +301,17 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
async getCustomerSource(searchValue) {
|
||||
console.log('搜索内容', searchValue);
|
||||
let res = await request({
|
||||
url: '/partnerOwn/partner/getCustomerSource',
|
||||
method: 'get',
|
||||
params: {
|
||||
searchValue: searchValue
|
||||
}
|
||||
})
|
||||
this.columns = res.data
|
||||
},
|
||||
confirmRegisterDate(e) {
|
||||
//将时间戳转换
|
||||
this.carRegisterDateStr = formatDate(e.value)
|
||||
@ -337,7 +352,7 @@
|
||||
}
|
||||
},
|
||||
confirms(e) {
|
||||
this.customerSource = e.value[0].label
|
||||
this.customerSource = e.label
|
||||
this.show = false
|
||||
},
|
||||
cancels() {
|
||||
@ -433,7 +448,7 @@
|
||||
url: '/partnerOwn/partner/getCustomerSource',
|
||||
method: 'get',
|
||||
})
|
||||
this.columns.push(res.data)
|
||||
this.columns = (res.data)
|
||||
let rescar = await request({
|
||||
url: '/rescue/dict/data/type/car_nature',
|
||||
method: 'get',
|
||||
|
@ -42,6 +42,10 @@
|
||||
<text>检测类型:</text>
|
||||
<text>{{ detailData.goodsName }}</text>
|
||||
</view>
|
||||
<view class="dis-hui">
|
||||
<text>检测次数:</text>
|
||||
<text>{{ detailData.infoCount }}次</text>
|
||||
</view>
|
||||
<view class="dis-hui" v-if="roleSelect == 'shop'">
|
||||
<text>¥:</text>
|
||||
<text>{{ detailData.goodsPrice / 100 }}元</text>
|
||||
|
@ -108,9 +108,9 @@
|
||||
<text>+ 接车</text>
|
||||
</view> -->
|
||||
<view class="lanniu-container">
|
||||
<view class="lanniu" @click="gogogo">
|
||||
<!-- <view class="lanniu" @click="gogogo">
|
||||
<text>添加线下订单</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="lanniu" @click="gogogoMeetCarOrder">
|
||||
<text>接车</text>
|
||||
</view>
|
||||
@ -225,9 +225,10 @@
|
||||
},
|
||||
submitException(data) {
|
||||
console.log('取消异常', data);
|
||||
let this_ = this
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确认删除该条信息吗?',
|
||||
content: '确认消除该条异常吗?',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
// 执行确认后的操作
|
||||
@ -239,8 +240,9 @@
|
||||
},
|
||||
method: 'post'
|
||||
})
|
||||
} else {
|
||||
// 执行取消后的操作
|
||||
this_.onRefresherrefresh()
|
||||
} else {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
@ -275,6 +275,11 @@
|
||||
// text: "待支付",
|
||||
// value: "1"
|
||||
// },
|
||||
|
||||
{
|
||||
text: "接车转订单",
|
||||
value: "8",
|
||||
},
|
||||
{
|
||||
text: "待审核重检",
|
||||
value: "7",
|
||||
@ -283,10 +288,6 @@
|
||||
text: "待检测",
|
||||
value: "1"
|
||||
},
|
||||
{
|
||||
text: "接车转订单",
|
||||
value: "8",
|
||||
},
|
||||
{
|
||||
text: "待接车",
|
||||
value: "6",
|
||||
@ -522,19 +523,20 @@
|
||||
this.csId.forEach(item => {
|
||||
let a = {
|
||||
id: item,
|
||||
status: "3"
|
||||
status: 2
|
||||
}
|
||||
workNodes.push(a)
|
||||
})
|
||||
inspectionInfo.workNodes = workNodes
|
||||
await request({
|
||||
url: '/system/info/recheck',
|
||||
method: 'post',
|
||||
data: inspectionInfo
|
||||
})
|
||||
this.onRefresherrefresh()
|
||||
this.closehge()
|
||||
return
|
||||
status = 2
|
||||
// await request({
|
||||
// url: '/system/info/recheck',
|
||||
// method: 'post',
|
||||
// data: inspectionInfo
|
||||
// })
|
||||
// this.onRefresherrefresh()
|
||||
// this.closehge()
|
||||
// return
|
||||
} else if (this.isExamine && this.tbindex == 2 && this.isRetrial == 2) {
|
||||
//跳转到修改工单页面
|
||||
//跳转到修改工单页面
|
||||
|
Loading…
Reference in New Issue
Block a user