YY 2 年之前
父节点
当前提交
6351309c2d

+ 1 - 1
src/views/index.vue

@@ -109,7 +109,7 @@ export default {
     ...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
     async search({ skip = 0, limit = this.$limit, ...info } = {}) {
       info.shop = this.user.shop.id;
-      let res = await this.query({ skip, limit, ...info });
+      let res = await this.query({ ...info });
       if (this.$checkRes(res)) this.$set(this, 'data', res.data);
     },
     toUrl(value) {

+ 6 - 6
src/views/platfinance/statistics/index.vue

@@ -5,12 +5,12 @@
         <el-col :span="24" class="one"> <span>统计</span> </el-col>
         <el-col :span="24">
           <el-tabs type="border-card" v-model="activeName">
-            <el-tab-pane label="年度销售额" name="1"><card-1></card-1> </el-tab-pane>
-            <el-tab-pane label="年度下单数" name="2"><card-2></card-2></el-tab-pane>
-            <el-tab-pane label="年度付款数" name="3"><card-3></card-3></el-tab-pane>
-            <el-tab-pane label="年度退货数" name="4"><card-4></card-4></el-tab-pane>
-            <el-tab-pane label="年度退款数" name="5"><card-5></card-5></el-tab-pane>
-            <el-tab-pane label="年度换货数" name="6"><card-6></card-6></el-tab-pane>
+            <el-tab-pane label="销售额" name="1"><card-1></card-1> </el-tab-pane>
+            <el-tab-pane label="下单数" name="2"><card-2></card-2></el-tab-pane>
+            <el-tab-pane label="付款数" name="3"><card-3></card-3></el-tab-pane>
+            <el-tab-pane label="退货数" name="4"><card-4></card-4></el-tab-pane>
+            <el-tab-pane label="退款数" name="5"><card-5></card-5></el-tab-pane>
+            <el-tab-pane label="换货数" name="6"><card-6></card-6></el-tab-pane>
           </el-tabs>
         </el-col>
       </el-col>

+ 1 - 1
src/views/platfinance/statistics/parts/card-1.vue

@@ -53,7 +53,7 @@ export default {
   methods: {
     ...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
     async search({ skip = 0, limit = this.$limit, ...info } = {}) {
-      let res = await this.query({ skip, limit, type: info.time, start: info.start, end: info.end, shop: this.user.shop.id });
+      let res = await this.query({ type: info.time, start: info.start, end: info.end, shop: this.user.shop.id });
       if (this.$checkRes(res)) {
         let list = res.data;
         let xAxisList = [];

+ 1 - 1
src/views/platfinance/statistics/parts/card-2.vue

@@ -53,7 +53,7 @@ export default {
   methods: {
     ...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
     async search({ skip = 0, limit = this.$limit, ...info } = {}) {
-      let res = await this.query({ skip, limit, status: '1', type: info.time, start: info.start, end: info.end, shop: this.user.shop.id });
+      let res = await this.query({ status: '1', type: info.time, start: info.start, end: info.end, shop: this.user.shop.id });
       if (this.$checkRes(res)) {
         let list = res.data.sMarkOrder;
         let xAxisList = [];

+ 1 - 1
src/views/platfinance/statistics/parts/card-3.vue

@@ -53,7 +53,7 @@ export default {
   methods: {
     ...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
     async search({ skip = 0, limit = this.$limit, ...info } = {}) {
-      let res = await this.query({ skip, limit, status: '1', type: info.time, start: info.start, end: info.end, shop: this.user.shop.id });
+      let res = await this.query({ status: '1', type: info.time, start: info.start, end: info.end, shop: this.user.shop.id });
       if (this.$checkRes(res)) {
         let list = res.data.sMarkOrder;
         let xAxisList = [];

+ 1 - 1
src/views/platfinance/statistics/parts/card-4.vue

@@ -53,7 +53,7 @@ export default {
   methods: {
     ...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
     async search({ skip = 0, limit = this.$limit, ...info } = {}) {
-      let res = await this.query({ skip, limit, status: '-2', type: info.time, start: info.start, end: info.end, shop: this.user.shop.id });
+      let res = await this.query({ status: '-2', type: info.time, start: info.start, end: info.end, shop: this.user.shop.id });
       if (this.$checkRes(res)) {
         let list = res.data.sAfterSale;
         let xAxisList = [];

+ 1 - 1
src/views/platfinance/statistics/parts/card-5.vue

@@ -53,7 +53,7 @@ export default {
   methods: {
     ...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
     async search({ skip = 0, limit = this.$limit, ...info } = {}) {
-      let res = await this.query({ skip, limit, status: '-1', type: info.time, start: info.start, end: info.end, shop: this.user.shop.id });
+      let res = await this.query({ status: '-1', type: info.time, start: info.start, end: info.end, shop: this.user.shop.id });
       if (this.$checkRes(res)) {
         let list = res.data.sAfterSale;
         let xAxisList = [];

+ 1 - 1
src/views/platfinance/statistics/parts/card-6.vue

@@ -55,7 +55,7 @@ export default {
   methods: {
     ...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
     async search({ skip = 0, limit = this.$limit, ...info } = {}) {
-      let res = await this.query({ skip, limit, status: '-3', type: info.time, start: info.start, end: info.end, shop: this.user.shop.id });
+      let res = await this.query({ status: '-3', type: info.time, start: info.start, end: info.end, shop: this.user.shop.id });
       if (this.$checkRes(res)) {
         let list = res.data.sAfterSale;
         let xAxisList = [];