MrShi
11 小时以前 6ebeddfe87542e4b3abfbe1adeb9187204f63ba8
admin/src/views/combo/record.vue
@@ -6,7 +6,7 @@
    <div class="table_btns">
      <el-button plain type="primary" @click="handleEx">导出</el-button>
      <el-button plain type="danger" @click="openModal('zuofei')">作废</el-button>
      <el-button plain @click="openModal('tiaozheng')">套餐调整</el-button>
      <el-button plain type="primary" @click="openModal('tiaozheng')">套餐调整</el-button>
    </div>
    <el-table v-loading="loading" :data="list" stripe border @selection-change="handleSelectionChange">
      <el-table-column fixed="left" align="center" type="selection" :selectable="handleDisable" width="55" />
@@ -26,6 +26,12 @@
      <el-table-column align="center" label="套餐名称" show-overflow-tooltip min-width="100" prop="name" />
      <el-table-column align="center" label="用户信息" min-width="100" prop="openid" show-overflow-tooltip />
      <el-table-column align="center" label="使用次数" min-width="80" prop="useTimes">
      </el-table-column>
      <el-table-column align="center" label="订单来源" min-width="80" show-overflow-tooltip>
        <template v-slot="{ row }">
          <span v-if="row.channel == 0">小程序端</span>
          <span v-if="row.channel == 1">抖音团购</span>
        </template>
      </el-table-column>
      <el-table-column align="center" label="有效日期" min-width="200" prop="remainCount">
        <template v-slot="scope">
@@ -147,7 +153,17 @@
            { value: '0', label: '正常' },
            { value: '1', label: '作废' }
          ]
        },{
        },
        {
          filed: 'channel',
          type: 'select',
          label: '订单来源',
          options: [
            { label: '小程序端', value: 0 },
            { label: '抖音团购', value: 1 },
          ]
        },
        {
          filed: 'createDate',
          type: 'daterange',
          label: '创建日期',
@@ -209,13 +225,19 @@
    },
    handleEx() {
      const { pagination, filters } = this
      let form = JSON.parse(JSON.stringify(filters))
      if (form.createDate && form.createDate.length > 0) {
        form.startCreateDate = form.createDate[0] + ' 00:00:00'
        form.endCreateDate = form.createDate[1] + ' 23:59:59'
        delete form.createDate
      }
      this.$dialog.exportConfirm('确认导出吗?')
        .then(() => {
          this.loading = true
          comboSaleEx({
            page: 1,
            capacity: 1000000,
            model: filters
            model: form
          })
            .then(response => {
              this.download(response)
@@ -244,8 +266,8 @@
      if (page) { pagination.page = page }
      let form = JSON.parse(JSON.stringify(filters))
      if (form.createDate && form.createDate.length > 0) {
        form.startCreateDate = form.createDate[0]
        form.endCreateDate = form.createDate[1]
        form.startCreateDate = form.createDate[0] + ' 00:00:00'
        form.endCreateDate = form.createDate[1] + ' 23:59:59'
        delete form.createDate
      }
      comboSalePage({