Commit 5190d6ea by 李伟康

commit 修复弹框

1 parent 08733ef8
...@@ -11,14 +11,15 @@ ...@@ -11,14 +11,15 @@
@blur="input($event)" @blur="input($event)"
@focus="focus" @focus="focus"
/> />
<view class="input-tips" v-if="!isSearch" <view
class="input-tips"
v-if="!isSearch"
>搜索客户姓名/电话<uni-icons >搜索客户姓名/电话<uni-icons
type="search" type="search"
class="icon" class="icon"
color="#999" color="#999"
size="20" size="20"
></uni-icons ></uni-icons></view>
></view>
</view> </view>
<scroll-view <scroll-view
...@@ -30,16 +31,20 @@ ...@@ -30,16 +31,20 @@
<template v-if="flag"> <template v-if="flag">
<template v-if="list.length"> <template v-if="list.length">
<template v-for="item in list"> <template v-for="item in list">
<view class="item" :key="item.id" @click="reception(item)">
<view <view
:class="['status flex', 'status_' + item.inviteStatus]" class="item"
>{{ inviteStatus[item.inviteStatus] }}</view :key="item.id"
@click="reception(item)"
> >
<view :class="['status flex', 'status_' + item.inviteStatus]">{{ inviteStatus[item.inviteStatus] }}</view>
<view class="name"> <view class="name">
{{ item.customerName }} {{ item.customerName }}
</view> </view>
<template v-for="(k, ind) in itemObject"> <template v-for="(k, ind) in itemObject">
<view class="info flex" :key="ind"> <view
class="info flex"
:key="ind"
>
<view class="label">{{ k.label }}</view> <view class="label">{{ k.label }}</view>
<view class="value">{{ <view class="value">{{
k.format k.format
...@@ -90,12 +95,12 @@ export default { ...@@ -90,12 +95,12 @@ export default {
customerNameOrPhone: '', customerNameOrPhone: '',
isSearch: false, isSearch: false,
list: [], list: [],
inviteStatus: { 1: '待预约', 2: '已预约', 3: '取消预约', 4: '已施工', 5: '超时未到店',6: '已撤销',7: '已支付' }, inviteStatus: { 1: '待预约', 2: '已预约', 3: '取消预约', 4: '已施工', 5: '超时未到店', 6: '已撤销', 7: '已支付' },
itemObject: [ itemObject: [
{ label: '客户电话', key: 'customerPhone',format:true }, { label: '客户电话', key: 'customerPhone', format: true },
{ label: '客户车型', key: 'carSeriesName' }, { label: '客户车型', key: 'carSeriesName' },
{ label: '礼券名称', key: 'couponName' }, { label: '礼券名称', key: 'couponName' },
{ label: '领券时间', key: 'receiveCouponDate',format:true }, { label: '领券时间', key: 'receiveCouponDate', format: true },
{ label: '销售顾问', key: 'employeeName' }, { label: '销售顾问', key: 'employeeName' },
], ],
chooseItem: {} chooseItem: {}
...@@ -103,15 +108,18 @@ export default { ...@@ -103,15 +108,18 @@ export default {
}, },
watch: { watch: {
show (n) { show (n) {
if (n) this.getRecordList() if (n) {
this.$refs.receptionTips.close()
this.getRecordList()
}
} }
}, },
mounted () { mounted () {
this.getRecordList() this.getRecordList()
}, },
methods: { methods: {
formatTime(val,key) { formatTime (val, key) {
if(key == 'customerPhone') { if (key == 'customerPhone') {
return val.slice(0, 3) + " " + val.slice(3, 7) + " " + val.slice(7) return val.slice(0, 3) + " " + val.slice(3, 7) + " " + val.slice(7)
} }
return dayjs(val).format("YYYY-MM-DD HH:mm:ss") return dayjs(val).format("YYYY-MM-DD HH:mm:ss")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!