Commit 95b439c9 by 前端

历史记录

1 parent caade696
......@@ -2,6 +2,8 @@
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -742rpx -794rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -742rpx -734rpx;}
.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 { width: 96rpx; height: 96rpx; background-position: 0rpx -734rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -106rpx -734rpx;}
......@@ -44,6 +46,4 @@
.icon-store { width: 96rpx; height: 96rpx; background-position: -636rpx -734rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -750rpx -596rpx;}
.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
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -660rpx -840rpx;}
\ 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 @@
</view>
</template>
<script type="text/ecmascript-6">
import Record from "@/mixin/record";
export default {
name: '',
mixins:[Record],
data() {
return {
name: '',
dateIndex: 0,
pageNum: 1,
total: 0,
list: [{
id: 1,
carModel: 1,
customerName: '合适的甲方',
receptionStatus: 1
}],
dateList: [
{ text: '车窗膜' },
{ text: '其他精品' }
],
itemObject: [
{ label: '客户电话', key: 'phoneNumber' },
{ label: '客户车型', key: 'salesName' },
{ label: '礼券名称', key: 'duration' },
{ label: '领券时间', key: 'startTime' },
{ label: '销售顾问', key: 'endTime' },
{ label: '车架号', key: 'phoneNumber' },
{ label: '工单号', key: 'salesName' },
{ label: '交易流水号', key: 'duration' },
{ label: '实收金额', key: 'startTime' }
],
flag: true,
nothing: false,
pageSize: 18,
total: 0,
sticky: false
}
},
mounted() {
this.getRecordList()
},
methods: {
//下拉分页
pageonReachBottom() {
......@@ -114,7 +103,7 @@ export default {
if (!nothing) nothing = 'nothing'
if (Math.ceil(total / pageSize) > pageNum) {
this.pageNum += 1
this.getList()
this.getRecordList()
} else this.nothing = true
},
changeIndex(index) {
......@@ -125,12 +114,23 @@ export default {
this.list = []
this.pageNum = 1
this.dateIndex = index
this.getList()
this.getRecordList()
},
input(e) {
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 {
}
}
}
.list {
display: flex;
flex-wrap: wrap;
gap: 48rpx 60rpx;
.record-box {
height: calc(100vh - 300rpx);
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 {
width: 640rpx;
background: #ffffff;
border-radius: 16rpx;
box-sizing: border-box;
......
......@@ -72,14 +72,12 @@
</view>
</template>
<script type="text/ecmascript-6">
import Record from "@/mixin/record";
export default {
name: '',
mixins:[Record],
data () {
return {
name:'',
dateIndex: 0,
pageNum: 1,
total: 0,
list: [{
id:1,
carModel:1,
......@@ -94,13 +92,11 @@ export default {
{ label: '领券时间', key: 'startTime' },
{ label: '销售顾问', key: 'endTime' },
],
flag: true,
nothing: false,
pageSize: 18,
total:0,
sticky: false
}
},
mounted() {
this.getRecordList()
},
methods: {
//下拉分页
pageonReachBottom () {
......@@ -108,15 +104,26 @@ export default {
if (!nothing) nothing = 'nothing'
if (Math.ceil(total / pageSize) > pageNum) {
this.pageNum += 1
this.getList()
this.getRecordList()
} else this.nothing = true
},
input(e) {
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>
......@@ -169,13 +176,21 @@ export default {
line-height: 80rpx;
}
}
.list {
display: flex;
flex-wrap: wrap;
gap: 48rpx 60rpx;
.record-box {
height: calc(100vh - 300rpx);
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 {
width: 640rpx;
background: #ffffff;
border-radius: 16rpx;
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!