MrShi
2023-11-09 19d17f0f0fb02f46342d70b5180e40a0ad1b66d3
admin/src/views/business/wxBill.vue
@@ -17,6 +17,7 @@
      <section>
        <el-button type="primary" @click="search">搜索</el-button>
        <el-button @click="reset">重置</el-button>
        <el-button @click="$refs.Synchronous.open('手动同步账单')" :permissions="['business:wxbill:create']">手动同步账单</el-button>
      </section>
    </el-form>
    <!-- 表格和分页 -->
@@ -44,7 +45,7 @@
        </div>
        <div class="sum-value">
          <div>退款金额(元)</div>
          <div>{{ sumData.sumRefundBill }}</div>
          <div>{{ sumData.sumRefundFee }}</div>
        </div>
        <div class="sum-value">
          <div>退款手续费(元)</div>
@@ -83,6 +84,7 @@
      >
      </pagination>
    </template>
    <Synchronous ref="Synchronous" />
  </TableLayout>
</template>
@@ -90,18 +92,19 @@
import BaseTable from '@/components/base/BaseTable'
import TableLayout from '@/layouts/TableLayout'
import Pagination from '@/components/common/Pagination'
import { formatDateTime } from '@/utils/util'
import Synchronous from '@/components/business/synchronous'
// import { formatDateTime } from '@/utils/util'
export default {
  name: 'WxBill',
  extends: BaseTable,
  components: { TableLayout, Pagination },
  components: { TableLayout, Pagination, Synchronous },
  data () {
    return {
      value1: [],
      // 搜索
      searchForm: {
        endDate: '',
        startDate: '',
        startDate: ''
      },
      sumData: {
@@ -118,24 +121,24 @@
    })
    this.pickerOptions.disabledDate = (time) => {
       // 一天
      let tempTime = 3600 * 1000 * 24
      const tempTime = 3600 * 1000 * 24
      return time.getTime() > new Date() - tempTime
    }
    // let tempTime = new Date().getTime() - 3600 * 1000 * 24
    // let tempTime = new Date().getTime() - 3600 * 1000 * 24
    // this.searchForm.startDate = formatDateTime(new Date(tempTime), 'yyyy-MM-dd') + ' 00:00:00'
    // this.searchForm.endDate = formatDateTime(new Date(tempTime), 'yyyy-MM-dd') + ' 23:59:59'
    // this.value1 = [this.searchForm.startDate, this.searchForm.endDate]
    this.search()
  },
  methods: {
    reset() {
    reset () {
      this.searchForm.startDate = ''
      this.searchForm.endDate = ''
      this.value1 = []
      this.$refs.searchForm.resetFields()
      this.search()
    },
    selectDate(v) {
    selectDate (v) {
      this.searchForm.startDate = ''
      this.searchForm.endDate = ''
      if (v) {
@@ -166,8 +169,8 @@
        .finally(() => {
          this.isWorking.search = false
        })
    },
  },
    }
  }
}
</script>
<style lang="scss" scoped>
@@ -177,6 +180,7 @@
  margin-bottom: 10px;
  background-color: rgb(243, 243, 251);
  .sum-title {
    flex-shrink: 0;
    background-color: rgb(111, 129, 198);
    color: #fff;
    font-weight: 500;