|
@@ -21,17 +21,6 @@
|
|
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>
|
|
@@ -53,14 +42,8 @@
|
|
<a-alert type="info" style="margin-bottom:10px">
|
|
<a-alert type="info" style="margin-bottom:10px">
|
|
<div slot="message">
|
|
<div slot="message">
|
|
共 <strong>{{ total }}</strong> 条记录,
|
|
共 <strong>{{ total }}</strong> 条记录,
|
|
- 应收合计 <strong>{{ (productTotal&&(productTotal.receiveSettleAmountReceipt || productTotal.receiveSettleAmountReceipt==0)) ? toThousands(productTotal.receiveSettleAmountReceipt) : '--' }}</strong> ,
|
|
|
|
- 已收合计 <strong>{{ (productTotal&&(productTotal.settleAmountReceipt || productTotal.settleAmountReceipt==0)) ? toThousands(productTotal.settleAmountReceipt) : '--' }}</strong> ,
|
|
|
|
- 待收合计 <strong>{{ (productTotal&&(productTotal.unsettleAmountReceipt || productTotal.unsettleAmountReceipt==0)) ? toThousands(productTotal.unsettleAmountReceipt) : '--' }}</strong> ,
|
|
|
|
- 应付合计 <strong>{{ (productTotal&&(productTotal.receiveSettleAmountPay || productTotal.receiveSettleAmountPay==0)) ? toThousands(productTotal.receiveSettleAmountPay) : '--' }}</strong> ;
|
|
|
|
- 已付合计 <strong>{{ (productTotal&&(productTotal.settleAmountPay || productTotal.settleAmountPay==0)) ? toThousands(productTotal.settleAmountPay) : '--' }}</strong> ,
|
|
|
|
- 待付合计 <strong>{{ (productTotal&&(productTotal.unsettleAmountPay || productTotal.unsettleAmountPay==0)) ? toThousands(productTotal.unsettleAmountPay) : '--' }}</strong> ,
|
|
|
|
- 折让合计 <strong>{{ (productTotal&&(productTotal.discountAmount || productTotal.discountAmount==0)) ? toThousands(productTotal.discountAmount) : '--' }}</strong> ;
|
|
|
|
- 余额合计 <strong>{{ (productTotal&&(productTotal.balance || productTotal.balance==0)) ? toThousands(productTotal.balance) : '--' }}</strong> ;
|
|
|
|
|
|
+ 应收金额合计 <strong>{{ (productTotal&&(productTotal.receipt || productTotal.receipt==0)) ? toThousands(productTotal.receipt) : '--' }}</strong> ,
|
|
|
|
+ 应付金额合计 <strong>{{ (productTotal&&productTotal.pay) ? toThousands(productTotal.pay) : 0 }}</strong>
|
|
</div>
|
|
</div>
|
|
</a-alert>
|
|
</a-alert>
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
@@ -108,12 +91,10 @@
|
|
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, rangeDate },
|
|
|
|
|
|
+ components: { STable, VSelect },
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
data () {
|
|
data () {
|
|
const _this = this
|
|
const _this = this
|
|
@@ -122,56 +103,34 @@ 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, // 单位类型
|
|
|
|
- beginDate: '', // 开始审核时间
|
|
|
|
- endDate: '' // 结束审核时间
|
|
|
|
|
|
+ settleClientType: undefined // 单位类型
|
|
},
|
|
},
|
|
// 表头
|
|
// 表头
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
- { title: '客户名称', width: '15%', align: 'center', scopedSlots: { customRender: 'customerName' } },
|
|
|
|
- { title: '单位类型', dataIndex: 'settleClientTypeDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '应收金额', dataIndex: 'receiveSettleAmountReceipt', width: '8%', sorter: true, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
- { title: '已收金额', dataIndex: 'settleAmountReceipt', width: '8%', sorter: true, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
- { title: '待收金额', dataIndex: 'unsettleAmountReceipt', width: '8%', sorter: true, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
- { title: '应付金额', dataIndex: 'receiveSettleAmountPay', width: '8%', sorter: true, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
- { title: '已付金额', dataIndex: 'settleAmountPay', width: '8%', sorter: true, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
- { title: '待付金额', dataIndex: 'unsettleAmountPay', width: '8%', sorter: true, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
- { title: '折让金额', dataIndex: 'discountAmount', width: '8%', sorter: true, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
- { title: '余额', dataIndex: 'balance', width: '8%', sorter: true, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', 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' }
|
|
],
|
|
],
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
this.spinning = true
|
|
this.spinning = true
|
|
- const sortFiled = {
|
|
|
|
- 'receiveSettleAmountReceipt': 'RECEIVE_SETTLE_AMOUNT_RECEIPT',
|
|
|
|
- 'settleAmountReceipt': 'SETTLE_AMOUNT_RECEIPT',
|
|
|
|
- 'unsettleAmountReceipt': 'UNSETTLE_AMOUNT_RECEIPT',
|
|
|
|
- 'receiveSettleAmountPay': 'RECEIVE_SETTLE_AMOUNT_PAY',
|
|
|
|
- 'settleAmountPay': 'SETTLE_AMOUNT_PAY',
|
|
|
|
- 'unsettleAmountPay': 'UNSETTLE_AMOUNT_PAY',
|
|
|
|
- 'discountAmount': 'DISCOUNT_AMOUNT',
|
|
|
|
- 'balance': 'BALANCE'
|
|
|
|
- }
|
|
|
|
- const sortOrder = { 'descend': 'desc', 'ascend': 'asc' }
|
|
|
|
- const params = Object.assign(parameter, this.queryParam, { sortField: sortFiled[parameter.sortField], sortOrder: sortOrder[parameter.sortOrder] })
|
|
|
|
- this.getTotal(params)
|
|
|
|
- return settleUnitClientList(params).then(res => {
|
|
|
|
|
|
+ return settleUnitClientList(Object.assign(parameter, this.queryParam)).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
|
|
|
|
+ // 应付金额 值为负,应显示为正
|
|
|
|
+ data.list[i].unSettleAmountPay = Math.abs(data.list[i].unSettleAmountPay) || 0
|
|
}
|
|
}
|
|
this.disabled = false
|
|
this.disabled = false
|
|
this.total = data.count || 0
|
|
this.total = data.count || 0
|
|
@@ -197,12 +156,6 @@ export default {
|
|
downloadExcel(res, '单位收付款客户')
|
|
downloadExcel(res, '单位收付款客户')
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 选择审核时间
|
|
|
|
- auditDateChange (date) {
|
|
|
|
- this.auditTime = date
|
|
|
|
- this.queryParam.beginDate = date[0]
|
|
|
|
- this.queryParam.endDate = date[1]
|
|
|
|
- },
|
|
|
|
// 详情
|
|
// 详情
|
|
handleDetail (row) {
|
|
handleDetail (row) {
|
|
if (row.settleClientType == 'CUSTOMER') {
|
|
if (row.settleClientType == 'CUSTOMER') {
|
|
@@ -233,9 +186,6 @@ 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.beginDate = getDate.getMonthDays(3).starttime
|
|
|
|
- this.queryParam.endDate = getDate.getMonthDays(3).endtime
|
|
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
// 页面初始化
|
|
// 页面初始化
|