Commit 5190d6ea by 李伟康

commit 修复弹框

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