| @@ -13,7 +13,7 @@ | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <div class="inquire">查询</div> | |||
| <div class="inquire" @click="search()">查询</div> | |||
| <div class="acounts"> | |||
| <div class="title">收款总计(元)</div> | |||
| <div class="num">{{(sum_real_payment1+sum_real_payment2+sum_real_payment3)/100}}</div> | |||
| @@ -38,7 +38,7 @@ | |||
| <div class="content" v-for="(item,index) in list" :key="index"> | |||
| <div class="content_left"> | |||
| <div class="customer">{{item.onickName}}</div> | |||
| <div>{{setTiem(item.createDate,"YYYY-MM-DD HH:mm:ss")}}</div> | |||
| <div style="font-size: 0.36rem;">{{setTiem(item.createDate,"YYYY-MM-DD HH:mm:ss")}}</div> | |||
| </div> | |||
| <div class="content_rigth"> | |||
| <div class="price">{{`¥${item.deductionAmount/100}`}}</div> | |||
| @@ -95,6 +95,13 @@ export default { | |||
| ...mapState(['merchant_id']) | |||
| }, | |||
| methods: { | |||
| //根据时间查找 | |||
| search(){ | |||
| this.getCardPay(); | |||
| this.payMum1(); | |||
| this.payMum2(); | |||
| this.payMum3(); | |||
| }, | |||
| //查询消费卡扫码记录列表 | |||
| getCardPay() { | |||
| this.$http.cardPayList({ | |||
| @@ -174,6 +181,7 @@ export default { | |||
| const tmepTime = formatDate(new Date(date), "yyyy-MM-dd") | |||
| this.startTiem = tmepTime | |||
| this.startTiemShow = false | |||
| this.startdate = tmepTime +' 00:00:00' | |||
| console.log(this.startTiem ,"????"); | |||
| }, | |||
| @@ -181,6 +189,7 @@ export default { | |||
| const tmepTime = formatDate(new Date(date), "yyyy-MM-dd") | |||
| this.endTiem = tmepTime | |||
| this.endTiemShow = false | |||
| this.enddate = tmepTime+' 23:59:59' | |||
| console.log(this.endTiem ,"????"); | |||
| }, | |||
| //时间处理 | |||
| @@ -189,10 +198,7 @@ export default { | |||
| } | |||
| }, | |||
| mounted(){ | |||
| this.getCardPay(); | |||
| this.payMum1(); | |||
| this.payMum2(); | |||
| this.payMum3(); | |||
| this.search() | |||
| } | |||
| }; | |||
| </script> | |||
| @@ -290,7 +296,10 @@ export default { | |||
| font-weight: 500; | |||
| border-bottom: 0.01rem solid #f6f6f6; | |||
| color: rgba(153, 153, 153, 1); | |||
| padding-top: 0.5rem; | |||
| padding: 0.46rem; | |||
| width: 90%; | |||
| margin: 0.5rem 5%; | |||
| border-radius: 0.2rem; | |||
| } | |||
| .content_left { | |||
| width: 50%; | |||
| @@ -301,6 +310,7 @@ export default { | |||
| .customer{ | |||
| color: #000; | |||
| font-size: 0.48rem; | |||
| line-height: 0.48rem; | |||
| } | |||
| .content_rigth { | |||
| width: 50%; | |||
| @@ -308,8 +318,7 @@ export default { | |||
| text-indent: 1.2rem; | |||
| } | |||
| .price { | |||
| margin-top: 0.5rem; | |||
| margin-bottom: 0.05rem; | |||
| margin-bottom: 0.3rem; | |||
| } | |||
| .content_left_text { | |||
| margin-top: 1rem; | |||