更新
This commit is contained in:
parent
3b0d932b39
commit
1c1ee3b00e
@ -1,51 +1,51 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<u-popup :show="show" @close="cancel">
|
<u-popup :show="show" @close="cancel">
|
||||||
<view class="title">{{ popupTitle }}</view>
|
<view class="title">{{ popupTitle }}</view>
|
||||||
<view style="padding: 20rpx;">
|
<view style="padding: 20rpx;">
|
||||||
<u-search v-if="showSearch" @custom="search" @search="search" :placeholder="placeholder"
|
<u-search v-if="showSearch" @custom="search" @search="search" :placeholder="placeholder"
|
||||||
v-model="keyword"></u-search>
|
v-model="keyword"></u-search>
|
||||||
<u-gap v-if="showSearch" height="15"></u-gap>
|
<u-gap v-if="showSearch" height="15"></u-gap>
|
||||||
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltolower="$emit('lower')">
|
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltolower="$emit('lower')">
|
||||||
|
|
||||||
<!--单选-->
|
<!--单选-->
|
||||||
<u-radio-group v-if="type == 'radio'" :borderBottom="true" iconPlacement="right" placement="column"
|
<u-radio-group v-if="type == 'radio'" :borderBottom="true" iconPlacement="right" placement="column"
|
||||||
@change="groupChange" v-model="radioValue">
|
@change="groupChange" v-model="radioValue">
|
||||||
<u-radio :customStyle="{marginBottom: '12px'}" v-for="(item, index) in dataLists" :key="index"
|
<u-radio :customStyle="{marginBottom: '12px'}" v-for="(item, index) in dataLists" :key="index"
|
||||||
:label="item[name]" :name="index">
|
:label="item[name]" :name="index">
|
||||||
</u-radio>
|
</u-radio>
|
||||||
</u-radio-group>
|
</u-radio-group>
|
||||||
|
|
||||||
<!--多选-->
|
<!--多选-->
|
||||||
<u-checkbox-group v-if="type == 'checkbox'" :borderBottom="true" placement="column"
|
<u-checkbox-group v-if="type == 'checkbox'" :borderBottom="true" placement="column"
|
||||||
iconPlacement="right" @change="checkboxChange" v-model="checkboxValue">
|
iconPlacement="right" @change="checkboxChange" v-model="checkboxValue">
|
||||||
<u-checkbox :customStyle="{marginBottom: '12px',paddingBottom:'12px'}"
|
<u-checkbox :customStyle="{marginBottom: '12px',paddingBottom:'12px'}"
|
||||||
v-for="(item, index) in dataLists" :key="index" :label="item[name]" :name="index">
|
v-for="(item, index) in dataLists" :key="index" :label="item[name]" :name="index">
|
||||||
</u-checkbox>
|
</u-checkbox>
|
||||||
</u-checkbox-group>
|
</u-checkbox-group>
|
||||||
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<u-gap height="45"></u-gap>
|
<u-gap height="45"></u-gap>
|
||||||
<view class="bottons">
|
<view class="bottons">
|
||||||
<u-row>
|
<u-row>
|
||||||
<u-col customStyle="padding:0 10rpx 20rpx 20rpx" span="6">
|
<u-col customStyle="padding:0 10rpx 20rpx 20rpx" span="6">
|
||||||
<u-button @click="cancel">取消</u-button>
|
<u-button @click="cancel">取消</u-button>
|
||||||
</u-col>
|
</u-col>
|
||||||
<u-col customStyle="padding:0 20rpx 20rpx 10rpx" span="6">
|
<u-col customStyle="padding:0 20rpx 20rpx 10rpx" span="6">
|
||||||
<u-button @click="submit" type="primary" throttleTime="1000"
|
<u-button @click="submit" type="primary" throttleTime="1000"
|
||||||
:disabled="(JSON.stringify(radioData) === '{}') && (checkboxData.length === 0)">确认
|
:disabled="(JSON.stringify(radioData) === '{}') && (checkboxData.length === 0)">确认
|
||||||
</u-button>
|
</u-button>
|
||||||
</u-col>
|
</u-col>
|
||||||
</u-row>
|
</u-row>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
/**
|
||||||
* 公共选择下拉框,基于uview。支持下拉加载、列表搜索、单选|多选
|
* 公共选择下拉框,基于uview。支持下拉加载、列表搜索、单选|多选
|
||||||
* @author qianziyu
|
* @author qianziyu
|
||||||
* @description 弹出层选择器,基于uview中u-popup实现
|
* @description 弹出层选择器,基于uview中u-popup实现
|
||||||
@ -63,119 +63,119 @@
|
|||||||
* @example <common-select :show="show" :popupTitle="popupTitle" @cancel="show=false" @search="selectSearch" name="cworkStationName" @submit="onsubmit"
|
* @example <common-select :show="show" :popupTitle="popupTitle" @cancel="show=false" @search="selectSearch" name="cworkStationName" @submit="onsubmit"
|
||||||
:dataLists="dataLists" placeholder="输入工站名称搜索"></common-select>
|
:dataLists="dataLists" placeholder="输入工站名称搜索"></common-select>
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
name: "qianziyu-select",
|
name: "qianziyu-select",
|
||||||
props: {
|
props: {
|
||||||
dataLists: {
|
dataLists: {
|
||||||
default: {},
|
default: {},
|
||||||
type: Array
|
type: Array
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
default: 'name',
|
default: 'name',
|
||||||
},
|
},
|
||||||
show: {
|
show: {
|
||||||
default: false,
|
default: false,
|
||||||
type: Boolean
|
type: Boolean
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
default: 'radio',
|
default: 'radio',
|
||||||
type: String
|
type: String
|
||||||
},
|
},
|
||||||
showSearch: {
|
showSearch: {
|
||||||
default: true,
|
default: true,
|
||||||
type: Boolean
|
type: Boolean
|
||||||
},
|
},
|
||||||
popupTitle: {
|
popupTitle: {
|
||||||
default: '列表选择',
|
default: '列表选择',
|
||||||
type: String
|
type: String
|
||||||
},
|
},
|
||||||
placeholder: {
|
placeholder: {
|
||||||
default: '请输入搜索内容'
|
default: '请输入搜索内容'
|
||||||
},
|
},
|
||||||
checkboxData: { // 新增的prop
|
checkboxData: { // 新增的prop
|
||||||
default: () => [], // 默认选中的项
|
default: () => [], // 默认选中的项
|
||||||
type: Array
|
type: Array
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
keyword: '',
|
keyword: '',
|
||||||
scrollTop: 0,
|
scrollTop: 0,
|
||||||
checkboxValue: [],
|
checkboxValue: [],
|
||||||
radioData: {},
|
radioData: {},
|
||||||
radioValue: '',
|
radioValue: '',
|
||||||
// checkboxData: this.checkboxData, // 将父组件传递的checkboxData设置为默认值
|
// checkboxData: this.checkboxData, // 将父组件传递的checkboxData设置为默认值
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
checkboxData(newVal) {
|
checkboxData(newVal) {
|
||||||
// 如果 checkboxData 改变,更新 checkboxValue(使其回显默认值)
|
// 如果 checkboxData 改变,更新 checkboxValue(使其回显默认值)
|
||||||
this.checkboxValue = newVal.map(item => {
|
this.checkboxValue = newVal.map(item => {
|
||||||
return this.dataLists.findIndex(listItem => listItem[this.name] === item[this.name]);
|
return this.dataLists.findIndex(listItem => listItem[this.name] === item[this.name]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkboxChange(n) {
|
checkboxChange(n) {
|
||||||
const newCheckboxData = [];
|
const newCheckboxData = [];
|
||||||
n.forEach(key => {
|
n.forEach(key => {
|
||||||
newCheckboxData.push(this.dataLists[key]);
|
newCheckboxData.push(this.dataLists[key]);
|
||||||
});
|
});
|
||||||
this.$emit('update:checkboxData', newCheckboxData); // 更新父组件中的 checkboxData
|
this.$emit('update:checkboxData', newCheckboxData); // 更新父组件中的 checkboxData
|
||||||
},
|
},
|
||||||
//选择列表项触发
|
//选择列表项触发
|
||||||
groupChange(n) {
|
groupChange(n) {
|
||||||
this.radioData = this.dataLists[n]
|
this.radioData = this.dataLists[n]
|
||||||
},
|
},
|
||||||
//点击搜索触发
|
//点击搜索触发
|
||||||
search() {
|
search() {
|
||||||
this.$emit('search', this.keyword)
|
this.$emit('search', this.keyword)
|
||||||
},
|
},
|
||||||
//点击取消按钮触发
|
//点击取消按钮触发
|
||||||
cancel() {
|
cancel() {
|
||||||
this.$emit('cancel')
|
this.$emit('cancel')
|
||||||
},
|
},
|
||||||
//提交触发
|
//提交触发
|
||||||
submit() {
|
submit() {
|
||||||
if (this.type == 'radio') {
|
if (this.type == 'radio') {
|
||||||
if (JSON.stringify(this.radioData) == '{}') {
|
if (JSON.stringify(this.radioData) == '{}') {
|
||||||
uni.$u.toast('请选择数据')
|
uni.$u.toast('请选择数据')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$emit('submit', this.radioData)
|
this.$emit('submit', this.radioData)
|
||||||
} else if (this.type == 'checkbox') {
|
} else if (this.type == 'checkbox') {
|
||||||
if (this.checkboxData.length == 0) {
|
if (this.checkboxData.length == 0) {
|
||||||
uni.$u.toast('请选择数据')
|
uni.$u.toast('请选择数据')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$emit('submit', this.checkboxData)
|
this.$emit('submit', this.checkboxData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.u-popup {
|
.u-popup {
|
||||||
.title {
|
.title {
|
||||||
border-bottom: 1px solid #f7f7f7;
|
border-bottom: 1px solid #f7f7f7;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.scroll-Y {
|
.scroll-Y {
|
||||||
height: 650rpx;
|
height: 650rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottons {
|
.bottons {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: constant(safe-area-inset-bottom);
|
bottom: constant(safe-area-inset-bottom);
|
||||||
bottom: env(safe-area-inset-bottom);
|
bottom: env(safe-area-inset-bottom);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -61,9 +61,14 @@
|
|||||||
deep: true,
|
deep: true,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
dianyidain() {
|
dianyidain(msg) {
|
||||||
// console.log('执行了,dianyidain');
|
// 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;
|
const playCount = 3;
|
||||||
let currentCount = 0;
|
let currentCount = 0;
|
||||||
@ -93,7 +98,7 @@
|
|||||||
this.msgSocket.onMessage(res => {
|
this.msgSocket.onMessage(res => {
|
||||||
console.log("发出提示音");
|
console.log("发出提示音");
|
||||||
|
|
||||||
this.dianyidain()
|
this.dianyidain(res.data)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,8 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
msgSocket: null,
|
msgSocket: this.$msgSocket,
|
||||||
|
nowPageInterval: null,
|
||||||
aindex: 1,
|
aindex: 1,
|
||||||
chuan: 0,
|
chuan: 0,
|
||||||
arr: [{
|
arr: [{
|
||||||
@ -66,8 +67,22 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.msgSocket = this.$msgSocket,
|
if (!this.nowPageInterval) {
|
||||||
this.aindex = this.msg
|
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: {
|
watch: {
|
||||||
msgSocket(newVal, oldVal) {
|
msgSocket(newVal, oldVal) {
|
||||||
@ -78,8 +93,13 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
dianyidain() {
|
dianyidain(msg) {
|
||||||
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;
|
const playCount = 3;
|
||||||
let currentCount = 0;
|
let currentCount = 0;
|
||||||
@ -110,8 +130,8 @@
|
|||||||
console.log('消息回调启动成功')
|
console.log('消息回调启动成功')
|
||||||
this.msgSocket.onMessage(res => {
|
this.msgSocket.onMessage(res => {
|
||||||
console.log("发出提示音");
|
console.log("发出提示音");
|
||||||
|
console.log(res.data);
|
||||||
this.dianyidain()
|
this.dianyidain(res.data)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@
|
|||||||
<input type="text" v-model="nickname" placeholder="请输入引车员">
|
<input type="text" v-model="nickname" placeholder="请输入引车员">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="list-box">
|
<!-- <view class="list-box">
|
||||||
<view class="l-left" @click="showMeetMan = true">
|
<view class="l-left" @click="showMeetMan = true">
|
||||||
接车员
|
接车员
|
||||||
<text class="xixi">点击选择</text>
|
<text class="xixi">点击选择</text>
|
||||||
@ -157,7 +157,7 @@
|
|||||||
<view class="l-right">
|
<view class="l-right">
|
||||||
<input type="text" v-model="meetName" placeholder="请输入接车员">
|
<input type="text" v-model="meetName" placeholder="请输入接车员">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
|
|
||||||
<!-- <view class="list-box">-->
|
<!-- <view class="list-box">-->
|
||||||
<!-- <view class="l-left">是否补录</view>-->
|
<!-- <view class="l-left">是否补录</view>-->
|
||||||
@ -202,8 +202,12 @@
|
|||||||
<view class="dlanniu" @click="edit()" v-else>
|
<view class="dlanniu" @click="edit()" v-else>
|
||||||
<text>确认修改</text>
|
<text>确认修改</text>
|
||||||
</view>
|
</view>
|
||||||
<u-picker :show="show" :columns="columns" :defaultIndex="kehuDefaultIndex" @confirm="confirms"
|
<!-- <u-picker :show="show" :columns="columns" :defaultIndex="kehuDefaultIndex" @confirm="confirms"
|
||||||
@cancel="cancels" keyName="label"></u-picker>
|
@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"
|
<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>
|
||||||
@ -265,6 +269,7 @@
|
|||||||
title: '新增线下订单',
|
title: '新增线下订单',
|
||||||
customerSource: '',
|
customerSource: '',
|
||||||
buyName: '',
|
buyName: '',
|
||||||
|
driverLicenseTypeArr: [],
|
||||||
nickname: '',
|
nickname: '',
|
||||||
buyPhone: '',
|
buyPhone: '',
|
||||||
userAddress: '',
|
userAddress: '',
|
||||||
@ -315,6 +320,7 @@
|
|||||||
unitName: '',
|
unitName: '',
|
||||||
kehui: '',
|
kehui: '',
|
||||||
naturetext: '',
|
naturetext: '',
|
||||||
|
selectCustomerSource: {},
|
||||||
customerData: [],
|
customerData: [],
|
||||||
inspectionWorkNodeStr: "",
|
inspectionWorkNodeStr: "",
|
||||||
leadManId: undefined,
|
leadManId: undefined,
|
||||||
@ -410,7 +416,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
confirms(e) {
|
confirms(e) {
|
||||||
this.customerSource = e.value[0].label
|
this.customerSource = e.label
|
||||||
this.show = false
|
this.show = false
|
||||||
},
|
},
|
||||||
cancels() {
|
cancels() {
|
||||||
@ -644,12 +650,23 @@
|
|||||||
cancelgoods() {
|
cancelgoods() {
|
||||||
this.showgoods = false
|
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() {
|
async getinitialize() {
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: '/partnerOwn/partner/getCustomerSource',
|
url: '/partnerOwn/partner/getCustomerSource',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
this.columns.push(res.data)
|
this.columns = res.data
|
||||||
let rescar = await request({
|
let rescar = await request({
|
||||||
url: '/rescue/dict/data/type/car_nature',
|
url: '/rescue/dict/data/type/car_nature',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
@ -5,18 +5,15 @@
|
|||||||
</headersVue>
|
</headersVue>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<!-- 顶部选择区域 -->
|
<!-- 顶部选择区域 -->
|
||||||
<view class="top_">
|
<!-- <view class="top_">
|
||||||
<view class="select-container" @click="showDropdown">
|
<view class="select-container" @click="showDropdown">
|
||||||
<view class="select-text">
|
<view class="select-text">
|
||||||
{{ queryStr != null ? queryStr : '请选择工作内容' }}
|
{{ queryStr != null ? queryStr : '请选择工作内容' }}
|
||||||
</view>
|
</view>
|
||||||
<!-- 下拉箭头 -->
|
|
||||||
<u-icon style="margin-left: 10rpx;" name="arrow-down" size="18" color="#8D90A6"></u-icon>
|
<u-icon style="margin-left: 10rpx;" name="arrow-down" size="18" color="#8D90A6"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 清除按钮 -->
|
|
||||||
<u-icon v-if="queryStr" name="close-circle" color="#8D90A6" size="18" @click="clearSelection"></u-icon>
|
<u-icon v-if="queryStr" name="close-circle" color="#8D90A6" size="18" @click="clearSelection"></u-icon>
|
||||||
</view>
|
</view> -->
|
||||||
|
|
||||||
<!-- 列表区域 -->
|
<!-- 列表区域 -->
|
||||||
<view class="list_">
|
<view class="list_">
|
||||||
|
@ -136,8 +136,12 @@
|
|||||||
<text>接车</text>
|
<text>接车</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<u-picker :show="show" :columns="columns" :defaultIndex="kehuDefaultIndex" @confirm="confirms"
|
<!-- <u-picker :show="show" :columns="columns" :defaultIndex="kehuDefaultIndex" @confirm="confirms"
|
||||||
@cancel="cancels" keyName="label"></u-picker>
|
@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"
|
<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>
|
||||||
@ -209,7 +213,7 @@
|
|||||||
showRecord: false,
|
showRecord: false,
|
||||||
showLeadMan: false,
|
showLeadMan: false,
|
||||||
showMeetMan: false,
|
showMeetMan: false,
|
||||||
skuId: 0,
|
skuId: undefined,
|
||||||
inspectionWorkNodes: [],
|
inspectionWorkNodes: [],
|
||||||
defaultIndex: [0],
|
defaultIndex: [0],
|
||||||
kehuDefaultIndex: [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) {
|
async afterRead(event) {
|
||||||
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
|
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
|
||||||
let lists = [].concat(event.file)
|
let lists = [].concat(event.file)
|
||||||
@ -353,7 +368,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
confirms(e) {
|
confirms(e) {
|
||||||
this.customerSource = e.value[0].label
|
this.customerSource = e.label
|
||||||
this.show = false
|
this.show = false
|
||||||
},
|
},
|
||||||
cancels() {
|
cancels() {
|
||||||
@ -472,7 +487,7 @@
|
|||||||
url: '/partnerOwn/partner/getCustomerSource',
|
url: '/partnerOwn/partner/getCustomerSource',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
this.columns.push(res.data)
|
this.columns = (res.data)
|
||||||
let rescar = await request({
|
let rescar = await request({
|
||||||
url: '/rescue/dict/data/type/car_nature',
|
url: '/rescue/dict/data/type/car_nature',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
@ -33,6 +33,11 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="jg_top" style="padding: 30rpx;">{{ dateStr || '' }} {{ week || '' }} {{ time || '' }}</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_" @click="goordercount">
|
||||||
<view class="three_box1">
|
<view class="three_box1">
|
||||||
<view class="">当日订单</view>
|
<view class="">当日订单</view>
|
||||||
@ -47,6 +52,25 @@
|
|||||||
<view class="num_">{{ threenum.jxzNum }}</view>
|
<view class="num_">{{ threenum.jxzNum }}</view>
|
||||||
</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>
|
||||||
<view class="hang_"></view>
|
<view class="hang_"></view>
|
||||||
<view class="jg_box">
|
<view class="jg_box">
|
||||||
@ -187,7 +211,7 @@
|
|||||||
<view style="padding: 50rpx;">
|
<view style="padding: 50rpx;">
|
||||||
<view class="title_">选择日期</view>
|
<view class="title_">选择日期</view>
|
||||||
<view class="example-body" style="margin-top: 30rpx;">
|
<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>
|
||||||
<view style="margin-top: 30rpx;">
|
<view style="margin-top: 30rpx;">
|
||||||
<u-button text="确定" style="width: 50%;" type="primary" @click="screenTime()"></u-button>
|
<u-button text="确定" style="width: 50%;" type="primary" @click="screenTime()"></u-button>
|
||||||
@ -218,6 +242,7 @@
|
|||||||
msg: "1",
|
msg: "1",
|
||||||
List: [],
|
List: [],
|
||||||
show: false,
|
show: false,
|
||||||
|
showMore: false,
|
||||||
status: 'loading',
|
status: 'loading',
|
||||||
warnMsg: [],
|
warnMsg: [],
|
||||||
chuan: '',
|
chuan: '',
|
||||||
@ -265,7 +290,6 @@
|
|||||||
// this.actList = ["1", "1", "1", "1", "1", ]
|
// this.actList = ["1", "1", "1", "1", "1", ]
|
||||||
// this.status = "nomore" 底部刷新结束
|
// this.status = "nomore" 底部刷新结束
|
||||||
this.partnerId = uni.getStorageSync('partnerId')
|
this.partnerId = uni.getStorageSync('partnerId')
|
||||||
this.$startSocketConnect(uni.getStorageSync('userId'))
|
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
this.getindex()
|
this.getindex()
|
||||||
// this.getwarnMsglist()
|
// this.getwarnMsglist()
|
||||||
@ -297,7 +321,7 @@
|
|||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.partnerId = uni.getStorageSync('partnerId')
|
this.partnerId = uni.getStorageSync('partnerId')
|
||||||
// this.$startSocketConnect(uni.getStorageSync('userId'))
|
this.$startSocketConnect(uni.getStorageSync('userId'))
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
this.getindex()
|
this.getindex()
|
||||||
// this.getwarnMsglist()
|
// this.getwarnMsglist()
|
||||||
@ -811,7 +835,8 @@
|
|||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
// justify-content: space-between;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jg_box {
|
.jg_box {
|
||||||
@ -829,6 +854,7 @@
|
|||||||
.three_box1 {
|
.three_box1 {
|
||||||
width: 216rpx;
|
width: 216rpx;
|
||||||
height: 116rpx;
|
height: 116rpx;
|
||||||
|
margin: 0 10rpx;
|
||||||
background-image: url('/static/imgs/t1.png');
|
background-image: url('/static/imgs/t1.png');
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -843,6 +869,7 @@
|
|||||||
height: 116rpx;
|
height: 116rpx;
|
||||||
background-image: url('/static/imgs/t2.png');
|
background-image: url('/static/imgs/t2.png');
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
|
margin: 0 10rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 14rpx 18rpx;
|
padding: 14rpx 18rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
@ -853,6 +880,19 @@
|
|||||||
width: 216rpx;
|
width: 216rpx;
|
||||||
height: 116rpx;
|
height: 116rpx;
|
||||||
background-image: url('/static/imgs/t3.png');
|
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%;
|
background-size: 100% 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 14rpx 18rpx;
|
padding: 14rpx 18rpx;
|
||||||
|
@ -158,25 +158,29 @@
|
|||||||
<view class="dlanniu" @click="edit()" v-else>
|
<view class="dlanniu" @click="edit()" v-else>
|
||||||
<text>确认修改</text>
|
<text>确认修改</text>
|
||||||
</view>
|
</view>
|
||||||
<u-picker :show="show" :columns="columns" :defaultIndex="kehuDefaultIndex" @confirm="confirms"
|
<<!-- u-picker :show="show" :columns="columns" :defaultIndex="kehuDefaultIndex" @confirm="confirms"
|
||||||
@cancel="cancels" keyName="label"></u-picker>
|
@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"
|
<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"
|
<u-picker :show="shownature" :columns="nature" @confirm="confirmsnature" @cancel="cancelsnature"
|
||||||
keyName="label"></u-picker>
|
keyName="label"></u-picker>
|
||||||
|
|
||||||
<u-picker :show="showxin" :columns="xinlist" :defaultIndex="xinDefaultIndex" @confirm="confirmxin"
|
<u-picker :show="showxin" :columns="xinlist" :defaultIndex="xinDefaultIndex" @confirm="confirmxin"
|
||||||
@cancel="cancelxin" keyName="label"></u-picker>
|
@cancel="cancelxin" keyName="label"></u-picker>
|
||||||
<u-picker :show="showzhi" :columns="zhilist" @confirm="confirmzhi" @cancel="cancelzhi"
|
<u-picker :show="showzhi" :columns="zhilist" @confirm="confirmzhi" @cancel="cancelzhi"
|
||||||
keyName="label"></u-picker>
|
keyName="label"></u-picker>
|
||||||
<u-picker :show="showLeadMan" :columns="leadManList" :defaultIndex="defaultIndex"
|
<u-picker :show="showLeadMan" :columns="leadManList" :defaultIndex="defaultIndex"
|
||||||
@confirm="confirmLeadMan" @cancel="cancelLeadMan" keyName="nickname"></u-picker>
|
@confirm="confirmLeadMan" @cancel="cancelLeadMan" keyName="nickname"></u-picker>
|
||||||
<u-datetime-picker :show="showRecord" v-model="recordTime" :formatter="formatter" @cancel="cancelRecord"
|
<u-datetime-picker :show="showRecord" v-model="recordTime" :formatter="formatter"
|
||||||
@confirm="confirmRecord" mode="datetime"></u-datetime-picker>
|
@cancel="cancelRecord" @confirm="confirmRecord" mode="datetime"></u-datetime-picker>
|
||||||
<u-datetime-picker :show="showRegisterDate" v-model="carRegisterDate" mode="date"
|
<u-datetime-picker :show="showRegisterDate" v-model="carRegisterDate" mode="date"
|
||||||
@cancel="showRegisterDate = false" @confirm="confirmRegisterDate"></u-datetime-picker>
|
@cancel="showRegisterDate = false" @confirm="confirmRegisterDate"></u-datetime-picker>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</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) {
|
confirmRegisterDate(e) {
|
||||||
//将时间戳转换
|
//将时间戳转换
|
||||||
this.carRegisterDateStr = formatDate(e.value)
|
this.carRegisterDateStr = formatDate(e.value)
|
||||||
@ -337,7 +352,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
confirms(e) {
|
confirms(e) {
|
||||||
this.customerSource = e.value[0].label
|
this.customerSource = e.label
|
||||||
this.show = false
|
this.show = false
|
||||||
},
|
},
|
||||||
cancels() {
|
cancels() {
|
||||||
@ -433,7 +448,7 @@
|
|||||||
url: '/partnerOwn/partner/getCustomerSource',
|
url: '/partnerOwn/partner/getCustomerSource',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
this.columns.push(res.data)
|
this.columns = (res.data)
|
||||||
let rescar = await request({
|
let rescar = await request({
|
||||||
url: '/rescue/dict/data/type/car_nature',
|
url: '/rescue/dict/data/type/car_nature',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
@ -42,6 +42,10 @@
|
|||||||
<text>检测类型:</text>
|
<text>检测类型:</text>
|
||||||
<text>{{ detailData.goodsName }}</text>
|
<text>{{ detailData.goodsName }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="dis-hui">
|
||||||
|
<text>检测次数:</text>
|
||||||
|
<text>{{ detailData.infoCount }}次</text>
|
||||||
|
</view>
|
||||||
<view class="dis-hui" v-if="roleSelect == 'shop'">
|
<view class="dis-hui" v-if="roleSelect == 'shop'">
|
||||||
<text>¥:</text>
|
<text>¥:</text>
|
||||||
<text>{{ detailData.goodsPrice / 100 }}元</text>
|
<text>{{ detailData.goodsPrice / 100 }}元</text>
|
||||||
|
@ -108,9 +108,9 @@
|
|||||||
<text>+ 接车</text>
|
<text>+ 接车</text>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="lanniu-container">
|
<view class="lanniu-container">
|
||||||
<view class="lanniu" @click="gogogo">
|
<!-- <view class="lanniu" @click="gogogo">
|
||||||
<text>添加线下订单</text>
|
<text>添加线下订单</text>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="lanniu" @click="gogogoMeetCarOrder">
|
<view class="lanniu" @click="gogogoMeetCarOrder">
|
||||||
<text>接车</text>
|
<text>接车</text>
|
||||||
</view>
|
</view>
|
||||||
@ -225,9 +225,10 @@
|
|||||||
},
|
},
|
||||||
submitException(data) {
|
submitException(data) {
|
||||||
console.log('取消异常', data);
|
console.log('取消异常', data);
|
||||||
|
let this_ = this
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '确认删除该条信息吗?',
|
content: '确认消除该条异常吗?',
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
// 执行确认后的操作
|
// 执行确认后的操作
|
||||||
@ -239,8 +240,9 @@
|
|||||||
},
|
},
|
||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
// 执行取消后的操作
|
// 执行取消后的操作
|
||||||
|
this_.onRefresherrefresh()
|
||||||
|
} else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -275,6 +275,11 @@
|
|||||||
// text: "待支付",
|
// text: "待支付",
|
||||||
// value: "1"
|
// value: "1"
|
||||||
// },
|
// },
|
||||||
|
|
||||||
|
{
|
||||||
|
text: "接车转订单",
|
||||||
|
value: "8",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
text: "待审核重检",
|
text: "待审核重检",
|
||||||
value: "7",
|
value: "7",
|
||||||
@ -283,10 +288,6 @@
|
|||||||
text: "待检测",
|
text: "待检测",
|
||||||
value: "1"
|
value: "1"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
text: "接车转订单",
|
|
||||||
value: "8",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
text: "待接车",
|
text: "待接车",
|
||||||
value: "6",
|
value: "6",
|
||||||
@ -522,19 +523,20 @@
|
|||||||
this.csId.forEach(item => {
|
this.csId.forEach(item => {
|
||||||
let a = {
|
let a = {
|
||||||
id: item,
|
id: item,
|
||||||
status: "3"
|
status: 2
|
||||||
}
|
}
|
||||||
workNodes.push(a)
|
workNodes.push(a)
|
||||||
})
|
})
|
||||||
inspectionInfo.workNodes = workNodes
|
inspectionInfo.workNodes = workNodes
|
||||||
await request({
|
status = 2
|
||||||
url: '/system/info/recheck',
|
// await request({
|
||||||
method: 'post',
|
// url: '/system/info/recheck',
|
||||||
data: inspectionInfo
|
// method: 'post',
|
||||||
})
|
// data: inspectionInfo
|
||||||
this.onRefresherrefresh()
|
// })
|
||||||
this.closehge()
|
// this.onRefresherrefresh()
|
||||||
return
|
// this.closehge()
|
||||||
|
// return
|
||||||
} else if (this.isExamine && this.tbindex == 2 && this.isRetrial == 2) {
|
} else if (this.isExamine && this.tbindex == 2 && this.isRetrial == 2) {
|
||||||
//跳转到修改工单页面
|
//跳转到修改工单页面
|
||||||
//跳转到修改工单页面
|
//跳转到修改工单页面
|
||||||
|
Loading…
Reference in New Issue
Block a user