Commit e9867ed7 by 李伟康

Merge branch 'v1.0.5' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.5

2 parents 0a66a129 61c5fae3
......@@ -4,30 +4,50 @@ 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,
});
},
/** 查询可发放礼券-分页查询商户券列表 */
findCouponList (data) {
return http.post(
{
method: "dj.api.smartcarlife.merchantCoupon.pageForZYApp",
projectName: "boutique",
onlyUsable: true,
currentPage: 1,
pageSize: 99999,
...data,
},
false,
"ip"
);
},
/**查询用户是否领券 */
findCustomerReceivedStatus (data) {
return http.post({
method: 'dj.api.smartcarlife.merchantCoupon.pageForZYApp',
method: "dj.api.smartcarlife.customerCoupon.page",
projectName: "boutique",
onlyUsable: true,
...data,
currentPage: 1,
pageSize: 99999,
});
},
/**历史成交客户 */
historyDealOrderPage (data) {
return http.post({
method: "dj.api.smartcarlife.order.historyDealOrder.page",
projectName: "boutique",
...data,
},false,'ip');
});
},
/**查询用户是否领券 */
findCustomerReceivedStatus (data) {
/**客户邀约记录 */
customerInviteRecordPage (data) {
return http.post({
method: 'dj.api.smartcarlife.customerCoupon.page',
method: "dj.api.smartcarlife.customerInviteRecord.page",
projectName: "boutique",
...data,
currentPage: 1,
pageSize: 99999
});
},
}
\ No newline at end of file
};
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,
};
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1070rpx 876rpx;}
.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-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;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -820rpx 0rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1032rpx -240rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -942rpx -420rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1032rpx -282rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1032rpx -330rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -644rpx -410rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1032rpx -372rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1016rpx -576rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -1012rpx -650rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -1012rpx -720rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -1012rpx -790rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -474rpx -410rpx;}
.icon-new-addr { width: 32rpx; height: 32rpx; background-position: -820rpx -716rpx;}
.icon-new-avatar { width: 96rpx; height: 96rpx; background-position: -318rpx -780rpx;}
.icon-new-feedback { width: 64rpx; height: 64rpx; background-position: -942rpx -502rpx;}
.icon-new-home-active { width: 112rpx; height: 112rpx; background-position: -820rpx -122rpx;}
.icon-new-home { width: 112rpx; height: 112rpx; background-position: -820rpx -244rpx;}
.icon-new-record-active { width: 112rpx; height: 112rpx; background-position: -820rpx -366rpx;}
.icon-new-record { width: 112rpx; height: 112rpx; background-position: -820rpx -488rpx;}
.icon-new-setting { width: 64rpx; height: 64rpx; background-position: -942rpx -576rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -490rpx -596rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -620rpx -596rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -1016rpx -502rpx;}
.icon-record-active { width: 80rpx; height: 80rpx; background-position: -942rpx -240rpx;}
.icon-record { width: 80rpx; height: 80rpx; background-position: -942rpx -330rpx;}
.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-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
.sprite-icon {
background-image: url(@/assets/images/sprite.png);
background-size: 1070rpx 876rpx;
}
.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;
}
.icon-icon-avatar {
width: 112rpx;
height: 112rpx;
background-position: -820rpx 0rpx;
}
.icon-icon-female {
width: 32rpx;
height: 32rpx;
background-position: -1032rpx -240rpx;
}
.icon-icon-handshake {
width: 72rpx;
height: 72rpx;
background-position: -942rpx -420rpx;
}
.icon-icon-male {
width: 32rpx;
height: 32rpx;
background-position: -1032rpx -282rpx;
}
.icon-icon-shop {
width: 32rpx;
height: 32rpx;
background-position: -1032rpx -330rpx;
}
.icon-icon-upload {
width: 128rpx;
height: 128rpx;
background-position: -644rpx -410rpx;
}
.icon-icon-weixin {
width: 32rpx;
height: 32rpx;
background-position: -1032rpx -372rpx;
}
.icon-kf-0 {
width: 32rpx;
height: 32rpx;
background-position: -1016rpx -576rpx;
}
.icon-kf-1 {
width: 32rpx;
height: 32rpx;
background-position: -1012rpx -650rpx;
}
.icon-kf-2 {
width: 32rpx;
height: 32rpx;
background-position: -1012rpx -720rpx;
}
.icon-kf-3 {
width: 32rpx;
height: 32rpx;
background-position: -1012rpx -790rpx;
}
.icon-logo {
width: 160rpx;
height: 160rpx;
background-position: -474rpx -410rpx;
}
.icon-new-addr {
width: 32rpx;
height: 32rpx;
background-position: -820rpx -716rpx;
}
.icon-new-avatar {
width: 96rpx;
height: 96rpx;
background-position: -318rpx -780rpx;
}
.icon-new-feedback {
width: 64rpx;
height: 64rpx;
background-position: -942rpx -502rpx;
}
.icon-new-home-active {
width: 112rpx;
height: 112rpx;
background-position: -820rpx -122rpx;
}
.icon-new-home {
width: 112rpx;
height: 112rpx;
background-position: -820rpx -244rpx;
}
.icon-new-record-active {
width: 112rpx;
height: 112rpx;
background-position: -820rpx -366rpx;
}
.icon-new-record {
width: 112rpx;
height: 112rpx;
background-position: -820rpx -488rpx;
}
.icon-new-setting {
width: 64rpx;
height: 64rpx;
background-position: -942rpx -576rpx;
}
.icon-pen-active {
width: 120rpx;
height: 120rpx;
background-position: -490rpx -596rpx;
}
.icon-pen {
width: 120rpx;
height: 120rpx;
background-position: -620rpx -596rpx;
}
.icon-qw {
width: 48rpx;
height: 48rpx;
background-position: -1016rpx -502rpx;
}
.icon-record-active {
width: 80rpx;
height: 80rpx;
background-position: -942rpx -240rpx;
}
.icon-record {
width: 80rpx;
height: 80rpx;
background-position: -942rpx -330rpx;
}
.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-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;
}
......@@ -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!