Commit e420f8b4 by 前端

记录

1 parent a1546a24
......@@ -38,7 +38,7 @@
/>
<div class="gradient-overlay"></div>
<view class="name">
{{ item.customerName || "-" }}
{{ item.customerName.substring(0, 1) + "*" || "-" }}
</view>
<view class="goods-name flex">
{{
......@@ -100,7 +100,7 @@
</tr>
<tr v-for="i in goodsList">
<td>{{ i.goodsName }}</td>
<td>{{ i.goodsPositionName }}</td>
<td>{{ i.goodsPositionName || "-" }}</td>
<td>{{ i.number }}</td>
</tr>
</table>
......@@ -163,7 +163,7 @@ export default {
userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo;
this.getList('historyDealOrderPage',{
merchantId: [shopMerchantId],
merchantIds: [shopMerchantId],
sceneTypes:[1],
pageNum,
pageSize,
......
......@@ -11,15 +11,14 @@
@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
......@@ -31,22 +30,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">{{ item[k.key] || "-" }}</view>
<view class="value">{{
k.format ? formatTime(item[k.key]) : item[k.key] || "-"
}}</view>
</view>
</template>
</view>
......@@ -78,6 +75,7 @@
</view>
</template>
<script type="text/ecmascript-6">
import dayjs from 'dayjs'
import Record from "@/mixin/record";
export default {
mixins: [Record],
......@@ -95,7 +93,7 @@ export default {
{ label: '客户电话', key: 'customerPhone' },
{ label: '客户车型', key: 'carSeriesName' },
{ label: '礼券名称', key: 'couponName' },
{ label: '领券时间', key: 'receiveCouponDate' },
{ label: '领券时间', key: 'receiveCouponDate',format:true },
{ label: '销售顾问', key: 'employeeName' },
],
chooseItem: {}
......@@ -110,6 +108,9 @@ export default {
this.getRecordList()
},
methods: {
formatTime(val) {
return dayjs(val).format("YYYY-MM-DD HH:mm:ss")
},
//下拉分页
pageonReachBottom () {
let { pageNum, total, nothing, pageSize } = this
......@@ -135,7 +136,7 @@ export default {
userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo;
this.getList('customerInviteRecordPage', {
merchantId: [shopMerchantId],
merchantIds: [shopMerchantId],
pageNum,
pageSize,
customerNameOrPhone,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!