Commit 95b439c9 by 前端

历史记录

1 parent caade696
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -742rpx -794rpx;} .icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -742rpx -794rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -742rpx -734rpx;} .icon-back { width: 128rpx; height: 50rpx; background-position: -742rpx -734rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -784rpx -794rpx;} .icon-change-account { width: 32rpx; height: 32rpx; background-position: -784rpx -794rpx;}
.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 -734rpx;} .icon-face-error { width: 96rpx; height: 96rpx; background-position: 0rpx -734rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -106rpx -734rpx;} .icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -106rpx -734rpx;}
...@@ -44,6 +46,4 @@ ...@@ -44,6 +46,4 @@
.icon-store { width: 96rpx; height: 96rpx; background-position: -636rpx -734rpx;} .icon-store { width: 96rpx; height: 96rpx; background-position: -636rpx -734rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -750rpx -596rpx;} .icon-tool-file { width: 60rpx; height: 60rpx; background-position: -750rpx -596rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -590rpx -840rpx;} .icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -590rpx -840rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -660rpx -840rpx;}
.icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;}
.icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -410rpx 0rpx;}
\ No newline at end of file \ No newline at end of file
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -660rpx -840rpx;}
\ No newline at end of file \ No newline at end of file
export default {
data() {
return {
list: [],
dateIndex: 0,
pageNum: 1,
total: 0,
flag: true,
nothing: false,
pageSize: 18,
total: 0,
};
},
mounted() {},
methods: {
async getList(api, params) {
try {
uni.showLoading();
const { list, total } = await uni.$api.commonApi[api](params);
uni.hideLoading();
this.list = [...(params.pageNum == 1 ? [] : this.list), ...list];
this.flag = true;
this.total = total;
} catch (error) {
this.flag = true;
}
},
},
};
...@@ -74,39 +74,28 @@ ...@@ -74,39 +74,28 @@
</view> </view>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import Record from "@/mixin/record";
export default { export default {
name: '', name: '',
mixins:[Record],
data() { data() {
return { return {
name: '', name: '',
dateIndex: 0,
pageNum: 1,
total: 0,
list: [{
id: 1,
carModel: 1,
customerName: '合适的甲方',
receptionStatus: 1
}],
dateList: [ dateList: [
{ text: '车窗膜' }, { text: '车窗膜' },
{ text: '其他精品' } { text: '其他精品' }
], ],
itemObject: [ itemObject: [
{ label: '客户电话', key: 'phoneNumber' }, { label: '车架号', key: 'phoneNumber' },
{ label: '客户车型', key: 'salesName' }, { label: '工单号', key: 'salesName' },
{ label: '礼券名称', key: 'duration' }, { label: '交易流水号', key: 'duration' },
{ label: '领券时间', key: 'startTime' }, { label: '实收金额', key: 'startTime' }
{ label: '销售顾问', key: 'endTime' },
], ],
flag: true,
nothing: false,
pageSize: 18,
total: 0,
sticky: false
} }
}, },
mounted() {
this.getRecordList()
},
methods: { methods: {
//下拉分页 //下拉分页
pageonReachBottom() { pageonReachBottom() {
...@@ -114,7 +103,7 @@ export default { ...@@ -114,7 +103,7 @@ export default {
if (!nothing) nothing = 'nothing' if (!nothing) nothing = 'nothing'
if (Math.ceil(total / pageSize) > pageNum) { if (Math.ceil(total / pageSize) > pageNum) {
this.pageNum += 1 this.pageNum += 1
this.getList() this.getRecordList()
} else this.nothing = true } else this.nothing = true
}, },
changeIndex(index) { changeIndex(index) {
...@@ -125,12 +114,23 @@ export default { ...@@ -125,12 +114,23 @@ export default {
this.list = [] this.list = []
this.pageNum = 1 this.pageNum = 1
this.dateIndex = index this.dateIndex = index
this.getList() this.getRecordList()
}, },
input(e) { input(e) {
console.log(e.detail.value) console.log(e.detail.value)
}, },
getList() { getRecordList() {
const { pageNum, pageSize } = this,
userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo;
this.getList('getReceptionList',{
merchantId: shopMerchantId,
pageNum,
pageSize,
startTime: '2024-05-27 00:00:00',
endTime: '2024-06-02 23:59:59'
})
} }
}, },
...@@ -237,15 +237,22 @@ export default { ...@@ -237,15 +237,22 @@ export default {
} }
} }
} }
.record-box {
.list { height: calc(100vh - 300rpx);
display: flex;
flex-wrap: wrap;
gap: 48rpx 60rpx;
padding-top: 48rpx; padding-top: 48rpx;
}
.end-text {
color: #999;
text-align: center;
margin: 50rpx 0;
font-size: 24rpx;
}
.list {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 48rpx;
.item { .item {
width: 640rpx;
background: #ffffff; background: #ffffff;
border-radius: 16rpx; border-radius: 16rpx;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -72,14 +72,12 @@ ...@@ -72,14 +72,12 @@
</view> </view>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import Record from "@/mixin/record";
export default { export default {
name: '', mixins:[Record],
data () { data () {
return { return {
name:'', name:'',
dateIndex: 0,
pageNum: 1,
total: 0,
list: [{ list: [{
id:1, id:1,
carModel:1, carModel:1,
...@@ -94,13 +92,11 @@ export default { ...@@ -94,13 +92,11 @@ export default {
{ label: '领券时间', key: 'startTime' }, { label: '领券时间', key: 'startTime' },
{ label: '销售顾问', key: 'endTime' }, { label: '销售顾问', key: 'endTime' },
], ],
flag: true,
nothing: false,
pageSize: 18,
total:0,
sticky: false
} }
}, },
mounted() {
this.getRecordList()
},
methods: { methods: {
//下拉分页 //下拉分页
pageonReachBottom () { pageonReachBottom () {
...@@ -108,15 +104,26 @@ export default { ...@@ -108,15 +104,26 @@ export default {
if (!nothing) nothing = 'nothing' if (!nothing) nothing = 'nothing'
if (Math.ceil(total / pageSize) > pageNum) { if (Math.ceil(total / pageSize) > pageNum) {
this.pageNum += 1 this.pageNum += 1
this.getList() this.getRecordList()
} else this.nothing = true } else this.nothing = true
}, },
input(e) { input(e) {
console.log(e.detail.value) console.log(e.detail.value)
}, },
getList() { getRecordList() {
const { pageNum, pageSize } = this,
userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo;
this.getList('getReceptionList',{
merchantId: shopMerchantId,
pageNum,
pageSize,
startTime: '2024-05-27 00:00:00',
endTime: '2024-06-02 23:59:59'
})
}
}
}, },
} }
</script> </script>
...@@ -169,13 +176,21 @@ export default { ...@@ -169,13 +176,21 @@ export default {
line-height: 80rpx; line-height: 80rpx;
} }
} }
.list { .record-box {
display: flex; height: calc(100vh - 300rpx);
flex-wrap: wrap;
gap: 48rpx 60rpx;
padding-top: 48rpx; padding-top: 48rpx;
}
.end-text {
color: #999;
text-align: center;
margin: 50rpx 0;
font-size: 24rpx;
}
.list {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 48rpx;
.item { .item {
width: 640rpx;
background: #ffffff; background: #ffffff;
border-radius: 16rpx; border-radius: 16rpx;
box-sizing: border-box; box-sizing: border-box;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!