Commit 5eab77b3 by 前端

记录

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