| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471 |
- <?php
- ?>
- <style>
- @media screen and (max-width: 1370px) {
- #stat_pay {
- min-width: 1131px;
- }
- }
- .order_stat {
- background: #FFF;
- padding: 10px 10px 0;
- margin-bottom: 10px;
- }
- .title {
- font-size: 18px;
- font-weight: bold;
- display: flex;
- align-items: center;
- height: 40px;
- }
- .order_stat>.title>.time {
- font-size: 13px;
- font-weight: 400;
- color: #BFBFBF;
- margin-left: 20px;
- flex: 1;
- }
- .order_stat .stat_details {
- padding: 10px 0;
- display: flex;
- }
- .stat_details .order_module {
- flex: 1;
- background: #F2F2F2;
- margin: 0 5px;
- padding: 20px 25px;
- }
- .order_module {
- display: flex;
- flex-direction: column;
- }
- .order_module:last-child {
- margin-right: 0;
- }
- .order_module:first-child {
- margin-left: 0;
- }
- .price {
- font-size: 22px;
- font-weight: bold;
- flex: 1;
- word-break: break-all;
- }
- .oirder_modul_title {
- font-size: 12px;
- margin: 10px 0;
- /* display: flex;
- align-items: center; */
- }
- .oirder_modul_title .text {
- margin-right: 10px;
- }
- .stat_icon {
- font-size: 19px;
- color: #BFBFBF;
- }
- .total {
- display: flex;
- margin-bottom: 10px;
- }
- .pay_total {
- flex: 1;
- flex-basis: 764px;
- background: #FFF;
- padding: 10px 10px 15px;
- }
- .pay_total:last-child {
- margin-left: 12px;
- }
- .el-date-editor .el-range-separator {
- padding: 0;
- }
- .pay_modules {
- margin-top: 20px;
- display: flex;
- flex-wrap: wrap;
- }
- .module {
- /* width: 350px; */
- width: 46%;
- background: #F7F7F7;
- padding: 20px 25px;
- margin-bottom: 15px;
- display: flex;
- }
- .module_two {
- width: 33%;
- background: #F7F7F7;
- padding: 20px 25px;
- margin-bottom: 15px;
- display: flex;
- }
- .module:nth-child(2n) {
- margin-left: 30px
- }
- .no_open {
- flex: 1;
- color: #2E8FF4;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- }
- .pay_button {
- display: flex;
- border: 1px solid #2E8FF4;
- border-radius: 4px;
- color: #464646;
- }
- .pay_button div {
- background: #FFF;
- padding: 10px;
- font-size: 14px;
- font-weight: 500;
- width: 80px;
- height: 36px;
- border-radius: 4px;
- text-align: center;
- }
- .assets {
- color: #848484;
- }
- .data_chart {
- background: #FFF;
- padding: 10px 10px 15px;
- width: 100%;
- position: relative;
- /* display: flex; */
- }
- .data_chart_time {
- position: absolute;
- top: 10px;
- right: 50px;
- display: flex;
- font-size: 16px;
- }
- .sel_time {
- margin-right: 20px;
- padding-bottom: 5px;
- }
- .sel_time:hover {
- cursor: pointer
- }
- .sel_color {
- border-bottom: 2px solid #5ED9A9;
- }
- .top_title {
- display: flex;
- padding: 18px 0;
- background-color: white;
- margin: 10px 0;
- align-items: center;
- }
- .top_title div:nth-of-type(1) {
- padding: 0 30px 0 20px;
- font-weight: bold;
- font-size: 16px;
- }
- .div_text_center {
- text-align: center;
- }
- .table-body {
- padding: 20px;
- background-color: #fff;
- }
- .input-item {
- display: inline-block;
- width: 250px;
- margin: 0 0 20px 20px;
- }
- .input-item .el-input__inner {
- border-right: 0;
- height: 32px;
- line-height: 32px;
- font-size: 12px;
- }
- .input-item .el-input__inner:hover {
- border: 1px solid #dcdfe6;
- border-right: 0;
- outline: 0;
- }
- .input-item .el-input__inner:focus {
- border: 1px solid #dcdfe6;
- border-right: 0;
- outline: 0;
- }
- .input-item .el-input-group__append {
- background-color: #fff;
- border-left: 0;
- width: 10%;
- padding: 0;
- }
- .input-item .el-input-group__append .el-button {
- padding: 0;
- }
- .input-item .el-input-group__append .el-button {
- margin: 0;
- }
- .table-info-img {
- max-width: 50px !important;
- }
- </style>
- <div id="stat_pay" v-cloak>
- <div class="top_title">
- <div>嗨贝销毁明细</div>
- </div>
- <div class="order_stat">
- <div class="stat_details">
- <div class="order_module" v-for="(item,index) in dataOverview" :key="item.type">
- <div class="price div_text_center">
- {{item.value}}
- </div>
- <div class="oirder_modul_title">
- <div class="div_text_center">{{item.name}}</div>
- </div>
- </div>
- </div>
- </div>
- <div class="table-body">
- <el-table :data="form" stripe style="width: 100%" v-loading="listLoading">
- <el-table-column prop="id" label="ID" min-width="100" align="center"></el-table-column>
- <el-table-column prop="change_num" label="销毁数量">
- </el-table-column>
- <el-table-column prop="desc" label="描述">
- </el-table-column>
- <el-table-column label="创建时间" align="center">
- <template slot-scope="scope">
- {{scope.row.created_at|dateTimeFormat('Y-m-d H:i:s')}}
- </template>
- </el-table-column>
- </el-table>
- <!--工具条 批量操作和分页-->
- <el-col :span="24" class="toolbar">
- <div style="height:20px;"></div>
- <el-pagination background layout="prev, pager, next" @current-change="pageChange" :page-count="pageCount" style="float:right;margin:15px">
- </el-col>
- </div>
- </div>
- <script>
- new Vue({
- el: '#stat_pay',
- data() {
- return {
- options: [{
- label: '增加',
- name: 'add'
- },
- {
- label: '减少',
- name: 'sub'
- },
- ],
- from_type_config:[],
- dialogBalance: false,
- btnLoading: false,
- listLoading: false,
- //user_id: null, // 外部链接传递进来的 user_id
- pageCount: 0,
- form: [],
- update_order_time: '',
- order_time: [],
- buttonType: 1,
- user_total: null,
- order_total: null,
- dataOverview: {
- "total": {
- type: 'total',
- name: '销毁总量',
- value: '0.00',
- }
- },
- // 会员资产
- memberAssets: {},
- chartTimeType: 0,
- currencyInfo: [],
- chartTimeArr: [],
- paid_amount_arr: [],
- settle_income_arr: [],
- }
- },
- mounted: function() {
- //this.getData();
- this.getList();
- },
- methods: {
- pageChange(currentPage) {
- this.page = currentPage;
- this.getList();
- },
- search() {
- this.page = 1;
- this.getList();
- },
- getList() {
- //let user_id = this.user_id ? this.user_id : this.searchData.user_id;
- let params = {
- r: 'hi-go/hi-bei/destory',
- page: this.page,
- //date: this.date,
- // user_id: user_id,
- // keyword: this.searchData.keyword,
- // type: this.searchData.change_type,
- // from_type:this.searchData.from_type,
- };
- // if (this.searchData.date) {
- // Object.assign(params, {
- // start_time: this.searchData.date[0],
- // end_time: this.searchData.date[1],
- // });
- // }
- request({
- params,
- }).then(e => {
- if (e.data.code === 0) {
- this.form = e.data.data.list;
- this.pagination = e.data.data.pagination;
- this.pageSize = e.data.data.page_size;
- this.pageCount = e.data.data.page_count
- this.from_type_config = e.data.data.from_type_config;
- // //订单概况
- for (let field in this.dataOverview) {
- if (e.data.data.orderStatistics[field]) {
- this.dataOverview[field]['value'] = e.data.data.orderStatistics[field];
- } else {
- this.dataOverview[field]['value'] = '0.00';
- }
- }
- console.log(this.pageCount);
- } else {
- this.$message.error(e.data.msg);
- }
- this.listLoading = false;
- }).catch(e => {
- this.listLoading = false;
- });
- this.listLoading = true;
- },
- getData() {
- let that = this;
- that.currencyInfo = [];
- //that.memberAssets = [];
- let date = {
- r: '/mall/finance/stat'
- }
- if (this.order_time) {
- // date.start_date = this.order_time[0];
- // date.end_date = this.order_time[1];
- date.order_time = this.order_time;
- }
- request({
- params: date,
- method: 'get',
- }).then(res => {
- if (res.data.code == 0) {
- that.update_order_time = res.data.data.update_time;
- that.order_time = res.data.data.date;
- //订单概况
- for (let field in this.orderTotalArr) {
- if (res.data.data.orderStatistics[field]) {
- this.orderTotalArr[field]['value'] = res.data.data.orderStatistics[field];
- } else {
- this.orderTotalArr[field]['value'] = '0.00';
- }
- }
- //支付统计
- that.rechargeArr = res.data.data.payment_data;
- }
- }).catch(e => {
- });
- },
- upButton(type) {
- if (this.butbuttonType == type) {
- return;
- }
- this.buttonType = type;
- this.memberAssets = [];
- if (type == 2) {
- this.memberAssets.push(...this.currencyInfo);
- } else {
- }
- },
- updateOrderTime(v) {
- this.order_time = v;
- this.getData();
- },
- }
- })
- </script>
|