| | |
| | | <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> |
| | | <!-- 表格和分页 --> |
| | |
| | | </div> |
| | | <div class="sum-value"> |
| | | <div>退款金额(元)</div> |
| | | <div>{{ sumData.sumRefundBill }}</div> |
| | | <div>{{ sumData.sumRefundFee }}</div> |
| | | </div> |
| | | <div class="sum-value"> |
| | | <div>退款手续费(元)</div> |
| | |
| | | > |
| | | </pagination> |
| | | </template> |
| | | <Synchronous ref="Synchronous" /> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | |
| | | 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: { |
| | | |
| | |
| | | }) |
| | | 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) { |
| | |
| | | .finally(() => { |
| | | this.isWorking.search = false |
| | | }) |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | |
| | | 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; |