Commit 5eab77b3 by 前端

记录

1 parent c2fd1a51
...@@ -4,7 +4,7 @@ module.exports = { ...@@ -4,7 +4,7 @@ module.exports = {
/**获取APP更新 */ /**获取APP更新 */
findSoureList(data) { findSoureList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.recepiton.soure.findSoureList', method: "dj.api.smartcarlife.recepiton.soure.findSoureList",
projectName: "boutique", projectName: "boutique",
...data, ...data,
}); });
...@@ -12,7 +12,7 @@ module.exports = { ...@@ -12,7 +12,7 @@ module.exports = {
/** 查当前4s商户下商户券 */ /** 查当前4s商户下商户券 */
findCouponList(data) { findCouponList(data) {
return http.post({ return http.post({
method: 'dj.api.smartCarLife.merchant.coupon.list', method: "dj.api.smartCarLife.merchant.coupon.list",
projectName: "boutique", projectName: "boutique",
...data, ...data,
}); });
...@@ -20,9 +20,25 @@ module.exports = { ...@@ -20,9 +20,25 @@ module.exports = {
/**查询用户是否领券 */ /**查询用户是否领券 */
findCustomerReceivedStatus(data) { findCustomerReceivedStatus(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customerCoupon.page', method: "dj.api.smartcarlife.customerCoupon.page",
projectName: "boutique", projectName: "boutique",
...data, ...data,
}); });
}, },
}
\ No newline at end of file \ No newline at end of file
/**历史成交客户 */
historyDealOrderPage(data) {
return http.post({
method: "dj.api.smartcarlife.order.historyDealOrder.page",
projectName: "boutique",
...data,
});
},
/**客户邀约记录 */
customerInviteRecordPage(data) {
return http.post({
method: "dj.api.smartcarlife.customerInviteRecord.page",
projectName: "boutique",
...data,
});
},
};
import commonApi from "./common";
import commonApi from './common' import systemApi from "./systemApi";
import systemApi from './systemApi' import userApi from "./userApi";
import userApi from './userApi' import boutiqueApi from "./boutique";
import boutiqueApi from './boutique'
module.exports = { module.exports = {
commonApi, commonApi,
systemApi, systemApi,
userApi, userApi,
boutiqueApi
}
\ No newline at end of file \ No newline at end of file
boutiqueApi,
};
...@@ -2,11 +2,14 @@ ...@@ -2,11 +2,14 @@
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1032rpx -60rpx;} .icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1032rpx -60rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -942rpx 0rpx;} .icon-back { width: 128rpx; height: 50rpx; background-position: -942rpx 0rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1032rpx -102rpx;} .icon-change-account { width: 32rpx; height: 32rpx; background-position: -1032rpx -102rpx;}
.icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;}
.icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -410rpx 0rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -820rpx -610rpx;} .icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -820rpx -610rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: 0rpx -780rpx;} .icon-face-error { width: 96rpx; height: 96rpx; background-position: 0rpx -780rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -106rpx -780rpx;} .icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -106rpx -780rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -212rpx -780rpx;} .icon-face-success { width: 96rpx; height: 96rpx; background-position: -212rpx -780rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -1032rpx -150rpx;} .icon-feedback { width: 32rpx; height: 32rpx; background-position: -1032rpx -150rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: 0rpx -410rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: -942rpx -60rpx;} .icon-home-active { width: 80rpx; height: 80rpx; background-position: -942rpx -60rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -942rpx -150rpx;} .icon-home { width: 80rpx; height: 80rpx; background-position: -942rpx -150rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -1032rpx -192rpx;} .icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -1032rpx -192rpx;}
...@@ -38,14 +41,11 @@ ...@@ -38,14 +41,11 @@
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -424rpx -780rpx;} .icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -424rpx -780rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -530rpx -780rpx;} .icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -530rpx -780rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1024rpx -420rpx;} .icon-search { width: 40rpx; height: 40rpx; background-position: -1024rpx -420rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -596rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -862rpx -716rpx;} .icon-setting { width: 32rpx; height: 32rpx; background-position: -862rpx -716rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -636rpx -780rpx;} .icon-store { width: 96rpx; height: 96rpx; background-position: -636rpx -780rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -942rpx -650rpx;} .icon-tool-file { width: 60rpx; height: 60rpx; background-position: -942rpx -650rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -942rpx -720rpx;} .icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -942rpx -720rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;} .icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: 0rpx -410rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -596rpx;}
.icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;}
.icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -410rpx 0rpx;}
.icon-aito { width: 320rpx; height: 36rpx; background-position: 0rpx -734rpx;} .icon-aito { width: 320rpx; height: 36rpx; background-position: 0rpx -734rpx;}
.icon-qr-success { width: 96rpx; height: 96rpx; background-position: -742rpx -780rpx;} .icon-qr-success { width: 96rpx; height: 96rpx; background-position: -742rpx -780rpx;}
\ No newline at end of file \ No newline at end of file
...@@ -16,7 +16,7 @@ export default { ...@@ -16,7 +16,7 @@ export default {
async getList(api, params) { async getList(api, params) {
try { try {
uni.showLoading(); uni.showLoading();
const { list, total } = await uni.$api.commonApi[api](params); const { list, total } = await uni.$api.boutiqueApi[api](params);
uni.hideLoading(); uni.hideLoading();
this.list = [...(params.pageNum == 1 ? [] : this.list), ...list]; this.list = [...(params.pageNum == 1 ? [] : this.list), ...list];
this.flag = true; this.flag = true;
......
...@@ -176,4 +176,16 @@ export default { ...@@ -176,4 +176,16 @@ export default {
} }
} }
} }
.nothing {
width: 100vw;
flex-direction: column;
margin-top: 112rpx;
font-size: 28rpx;
color: #999999;
.icon {
width: 676rpx;
height: 284rpx;
margin-bottom: 24rpx;
}
}
</style> </style>
...@@ -9,15 +9,15 @@ ...@@ -9,15 +9,15 @@
<view class="box"> <view class="box">
<view class="data-tabs-box"> <view class="data-tabs-box">
<view class="data-tabs"> <view class="data-tabs">
<template v-for="(i, index) in dateList"> <template v-for="(item, index) in dateList">
<view <view
:class="['tab flex', { active: dateIndex == index }]" :class="['tab flex', { active: groupIndex == item.id }]"
:key="index" :key="index"
@click="changeIndex(index)" @click="changeIndex(item.id)"
>{{ i.text }}</view >{{ item.text }}</view
> >
</template> </template>
<view :class="['active-btn', `active-btn-${dateIndex}`]"></view> <view :class="['active-btn', `active-btn-${groupIndex - 1}`]"></view>
</view> </view>
</view> </view>
<scroll-view <scroll-view
...@@ -31,25 +31,28 @@ ...@@ -31,25 +31,28 @@
<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"> <view class="item" :key="item.id">
<view <image
:class="[ class="image-box"
'status flex', src="../../assets/images/boutique/photos.png"
{ deal: item.receptionStatus == 1 }, />
]"
>{{
{
1: "成交",
0: "战败",
}[item.receptionStatus]
}}</view
>
<view class="name"> <view class="name">
{{ item.customerName }} {{ item.customerName }}
</view> </view>
<view class="goods-name">
{{ item.goodsList[0].goodsName }}
</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">{{ item[k.key] || "-" }}</view> <view :class="{ value: true, bold: k.isBold }">{{
item[k.key] || "-"
}}</view>
</view>
<view class="info">
<view class="label">实收金额</view>
<view class="value bold"
>¥ <text>{{ item.totalPrice }}</text></view
>
</view> </view>
</template> </template>
</view> </view>
...@@ -80,16 +83,17 @@ export default { ...@@ -80,16 +83,17 @@ export default {
mixins:[Record], mixins:[Record],
data() { data() {
return { return {
imageUrl: require('@/assets/images/noviceGuide/step1-1.webp'),
groupIndex:1,
name: '', name: '',
dateList: [ dateList: [
{ text: '车窗膜' }, { text: '车窗膜',id:1 },
{ text: '其他精品' } { text: '其他精品',id:2 }
], ],
itemObject: [ itemObject: [
{ label: '车架号', key: 'phoneNumber' }, { label: '车架号', key: 'standNo' },
{ label: '工单号', key: 'salesName' }, { label: '工单号', key: 'orderCode' },
{ label: '交易流水号', key: 'duration' }, { label: '交易流水号', key: 'outTradeNo' }
{ label: '实收金额', key: 'startTime' }
], ],
} }
}, },
...@@ -107,29 +111,25 @@ export default { ...@@ -107,29 +111,25 @@ export default {
} else this.nothing = true } else this.nothing = true
}, },
changeIndex(index) { changeIndex(index) {
if (this.dateIndex == index) return if (this.groupIndex == index) return
this.flag = false this.flag = false
this.nothing = false this.nothing = false
this.total = 0 this.total = 0
this.list = [] this.list = []
this.pageNum = 1 this.pageNum = 1
this.dateIndex = index this.groupIndex = index
this.getRecordList() this.getRecordList()
}, },
input(e) {
console.log(e.detail.value)
},
getRecordList() { getRecordList() {
const { pageNum, pageSize } = this, const { pageNum, pageSize,groupIndex } = this,
userInfo = uni.$storage.get("userInfo"), userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; { shopMerchantId } = userInfo;
this.getList('getReceptionList',{ this.getList('historyDealOrderPage',{
merchantId: shopMerchantId, merchantId: [shopMerchantId],
pageNum, pageNum,
pageSize, pageSize,
startTime: '2024-05-27 00:00:00', goodsTypeGroup:groupIndex
endTime: '2024-06-02 23:59:59'
}) })
} }
...@@ -254,11 +254,11 @@ export default { ...@@ -254,11 +254,11 @@ export default {
.item { .item {
background: #ffffff; background: #ffffff;
border-radius: 16rpx; border-radius: 32rpx;
box-sizing: border-box; box-sizing: border-box;
padding: 24rpx 32rpx; padding: 24rpx 32rpx;
position: relative; position: relative;
z-index: 11;
.status { .status {
position: absolute; position: absolute;
top: 24rpx; top: 24rpx;
...@@ -294,19 +294,47 @@ export default { ...@@ -294,19 +294,47 @@ export default {
color: #2c66f7; color: #2c66f7;
margin-top: 16rpx; margin-top: 16rpx;
} }
.image-box {
width: 250rpx;
height: 100%;
position: absolute;
top: 0rpx;
opacity: 0.5;
right: 0rpx;
background-size: 100% 100%;
}
.info { .info {
margin-top: 16rpx; margin-top: 16rpx;
font-size: 24rpx; font-size: 24rpx;
color: #999ea8; color: #999ea8;
.label {
width: 160rpx;
}
.value { .value {
margin-left: auto; margin-left: 20rpx;
color: #666666; color: #666666;
&.bold {
color: #22ac38;
text {
font-size: 32rpx;
}
}
} }
} }
} }
} }
} }
} }
.nothing {
width: 100vw;
flex-direction: column;
margin-top: 112rpx;
font-size: 28rpx;
color: #999999;
.icon {
width: 676rpx;
height: 284rpx;
margin-bottom: 24rpx;
}
}
</style> </style>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<input <input
type="text" type="text"
class="input" class="input"
:value="name" :value="customerNameOrPhone"
placeholder="搜索客户姓名/电话" placeholder="搜索客户姓名/电话"
maxlength="11" maxlength="11"
@blur="input($event)" @blur="input($event)"
...@@ -30,16 +30,8 @@ ...@@ -30,16 +30,8 @@
<template v-for="item in list"> <template v-for="item in list">
<view class="item" :key="item.id"> <view class="item" :key="item.id">
<view <view
:class="[ :class="['status flex', 'status_' + item.inviteStatus]"
'status flex', >{{ inviteStatus[item.inviteStatus] }}</view
{ deal: item.receptionStatus == 1 },
]"
>{{
{
1: "成交",
0: "战败",
}[item.receptionStatus]
}}</view
> >
<view class="name"> <view class="name">
{{ item.customerName }} {{ item.customerName }}
...@@ -77,7 +69,7 @@ export default { ...@@ -77,7 +69,7 @@ export default {
mixins:[Record], mixins:[Record],
data () { data () {
return { return {
name:'', customerNameOrPhone:'',
list: [{ list: [{
id:1, id:1,
carModel:1, carModel:1,
...@@ -85,12 +77,13 @@ export default { ...@@ -85,12 +77,13 @@ export default {
receptionStatus:1 receptionStatus:1
}], }],
inviteStatus:{1:'待邀约',2:'已邀约',3:'取消预约',4:'已施工',5:'超时未到店'},
itemObject: [ itemObject: [
{ label: '客户电话', key: 'phoneNumber' }, { label: '客户电话', key: 'customerPhone' },
{ label: '客户车型', key: 'salesName' }, { label: '客户车型', key: 'carBrand' },
{ label: '礼券名称', key: 'duration' }, { label: '礼券名称', key: 'couponName' },
{ label: '领券时间', key: 'startTime' }, { label: '领券时间', key: 'receiveCouponDate' },
{ label: '销售顾问', key: 'endTime' }, { label: '销售顾问', key: 'employeeName' },
], ],
} }
}, },
...@@ -108,18 +101,19 @@ export default { ...@@ -108,18 +101,19 @@ export default {
} else this.nothing = true } else this.nothing = true
}, },
input(e) { input(e) {
console.log(e.detail.value) this.customerNameOrPhone = e.detail.value
this.pageNum = 1
this.getRecordList()
}, },
getRecordList() { getRecordList() {
const { pageNum, pageSize } = this, const { pageNum, pageSize,customerNameOrPhone } = this,
userInfo = uni.$storage.get("userInfo"), userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; { shopMerchantId } = userInfo;
this.getList('getReceptionList',{ this.getList('customerInviteRecordPage',{
merchantId: shopMerchantId, merchantId: [shopMerchantId],
pageNum, pageNum,
pageSize, pageSize,
startTime: '2024-05-27 00:00:00', customerNameOrPhone,
endTime: '2024-06-02 23:59:59'
}) })
} }
...@@ -174,6 +168,7 @@ export default { ...@@ -174,6 +168,7 @@ export default {
border-radius: 16rpx; border-radius: 16rpx;
width: 100%; width: 100%;
line-height: 80rpx; line-height: 80rpx;
text-align: center;
} }
} }
.record-box { .record-box {
...@@ -200,14 +195,28 @@ export default { ...@@ -200,14 +195,28 @@ export default {
position: absolute; position: absolute;
top: 24rpx; top: 24rpx;
right: 32rpx; right: 32rpx;
width: 88rpx; width: 152rpx;
height: 44rpx; height: 44rpx;
background: #fdece9;
color: #f24724;
border-radius: 4rpx; border-radius: 4rpx;
font-weight: 500; font-weight: 500;
font-size: 24rpx; font-size: 24rpx;
justify-content: center; justify-content: center;
&.status_1 {
background: #fff5e6;
color: #ff9d0a;
}
&.status_2 {
background: #eaf9f1;
color: #35c376;
}
&.status_3 {
background: #eeeeee;
color: #999999;
}
&.status_5 {
background: #fdece9;
color: #f24724;
}
} }
.deal { .deal {
background: #eaf9f1; background: #eaf9f1;
...@@ -241,4 +250,16 @@ export default { ...@@ -241,4 +250,16 @@ export default {
} }
} }
} }
.nothing {
width: 100vw;
flex-direction: column;
margin-top: 112rpx;
font-size: 28rpx;
color: #999999;
.icon {
width: 676rpx;
height: 284rpx;
margin-bottom: 24rpx;
}
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!