|
@@ -21,6 +21,17 @@
|
|
allowClear></v-select>
|
|
allowClear></v-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+ <a-col :span="6">
|
|
|
|
+ <a-form-item label="审核时间">
|
|
|
|
+ <rangeDate
|
|
|
|
+ id="companyReceivablePayableList-auditdate"
|
|
|
|
+ allowClear
|
|
|
|
+ :hasDisabledAreaTime="false"
|
|
|
|
+ ref="rangeDate"
|
|
|
|
+ :value="auditTime"
|
|
|
|
+ @change="auditDateChange" />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<span class="table-page-search-submitButtons">
|
|
<span class="table-page-search-submitButtons">
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="companyReceivablePayableList-refresh">查询</a-button>
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="companyReceivablePayableList-refresh">查询</a-button>
|
|
@@ -91,10 +102,12 @@
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
import { downloadExcel } from '@/libs/JGPrint.js'
|
|
import { downloadExcel } from '@/libs/JGPrint.js'
|
|
|
|
+import getDate from '@/libs/getDate.js'
|
|
|
|
+import rangeDate from '@/views/common/rangeDate.vue'
|
|
import { settleUnitClientList, settleInfoQuerySum, exportClientUnSettle } from '@/api/settle'
|
|
import { settleUnitClientList, settleInfoQuerySum, exportClientUnSettle } from '@/api/settle'
|
|
export default {
|
|
export default {
|
|
name: 'CollectionPaymentList',
|
|
name: 'CollectionPaymentList',
|
|
- components: { STable, VSelect },
|
|
|
|
|
|
+ components: { STable, VSelect, rangeDate },
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
data () {
|
|
data () {
|
|
const _this = this
|
|
const _this = this
|
|
@@ -103,29 +116,41 @@ export default {
|
|
exportLoading: false,
|
|
exportLoading: false,
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
tableHeight: 0,
|
|
tableHeight: 0,
|
|
|
|
+ auditTime: [ // 创建时间
|
|
|
|
+ getDate.getMonthDays(3).starttime,
|
|
|
|
+ getDate.getMonthDays(3).endtime
|
|
|
|
+ ],
|
|
// 查询参数
|
|
// 查询参数
|
|
queryParam: {
|
|
queryParam: {
|
|
settleClientNameCurrent: '', // 客户名称
|
|
settleClientNameCurrent: '', // 客户名称
|
|
- settleClientType: undefined // 单位类型
|
|
|
|
|
|
+ settleClientType: undefined, // 单位类型
|
|
|
|
+ auditBeginDate: '', // 开始审核时间
|
|
|
|
+ auditEndDate: '' // 结束审核时间
|
|
},
|
|
},
|
|
// 表头
|
|
// 表头
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
- { title: '客户名称', width: '20%', align: 'center', scopedSlots: { customRender: 'customerName' } },
|
|
|
|
- { title: '单位类型', dataIndex: 'settleClientTypeDictValue', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '应收金额', dataIndex: 'unSettleAmountReceipt', width: '20%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
- { title: '应付金额', dataIndex: 'unSettleAmountPay', width: '20%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: '15%', align: 'center' }
|
|
|
|
|
|
+ { title: '客户名称', width: '15%', align: 'center', scopedSlots: { customRender: 'customerName' } },
|
|
|
|
+ { title: '单位类型', dataIndex: 'settleClientTypeDictValue', width: '7%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '应收金额', dataIndex: 'unSettleAmountReceipt', width: '9%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
+ { title: '已收金额', dataIndex: 'unSettleAmountReceipt', width: '9%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
+ { title: '待收金额', dataIndex: 'unSettleAmountReceipt', width: '9%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
+ { title: '应付金额', dataIndex: 'unSettleAmountPay', width: '9%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
+ { title: '已付金额', dataIndex: 'unSettleAmountReceipt', width: '9%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
+ { title: '未付金额', dataIndex: 'unSettleAmountReceipt', width: '9%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
+ { title: '折让金额', dataIndex: 'unSettleAmountReceipt', width: '9%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
],
|
|
],
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
this.spinning = true
|
|
this.spinning = true
|
|
- return settleUnitClientList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
|
|
|
+ const params = Object.assign(parameter, this.queryParam)
|
|
|
|
+ this.getTotal(params)
|
|
|
|
+ return settleUnitClientList(params).then(res => {
|
|
let data
|
|
let data
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
data = res.data
|
|
data = res.data
|
|
- this.getTotal(Object.assign(parameter, this.queryParam))
|
|
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
data.list[i].no = no + i + 1
|
|
data.list[i].no = no + i + 1
|
|
@@ -156,6 +181,12 @@ export default {
|
|
downloadExcel(res, '单位收付款客户')
|
|
downloadExcel(res, '单位收付款客户')
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 选择审核时间
|
|
|
|
+ auditDateChange (date) {
|
|
|
|
+ this.auditTime = date
|
|
|
|
+ this.queryParam.auditBeginDate = date[0]
|
|
|
|
+ this.queryParam.auditEndDate = date[1]
|
|
|
|
+ },
|
|
// 详情
|
|
// 详情
|
|
handleDetail (row) {
|
|
handleDetail (row) {
|
|
if (row.settleClientType == 'CUSTOMER') {
|
|
if (row.settleClientType == 'CUSTOMER') {
|
|
@@ -186,6 +217,9 @@ export default {
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
this.queryParam.settleClientNameCurrent = ''
|
|
this.queryParam.settleClientNameCurrent = ''
|
|
this.queryParam.settleClientType = undefined
|
|
this.queryParam.settleClientType = undefined
|
|
|
|
+ this.$refs.rangeDate.resetDate(this.auditTime)
|
|
|
|
+ this.queryParam.auditBeginDate = getDate.getMonthDays(3).starttime
|
|
|
|
+ this.queryParam.auditEndDate = getDate.getMonthDays(3).endtime
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
// 页面初始化
|
|
// 页面初始化
|