|
@@ -30,26 +30,17 @@
|
|
</a-alert>
|
|
</a-alert>
|
|
<!-- 查询条件 -->
|
|
<!-- 查询条件 -->
|
|
<div class="table-page-search-wrapper">
|
|
<div class="table-page-search-wrapper">
|
|
- <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
|
- <a-col :md="8" :sm="24">
|
|
|
|
- <a-form-item label="关联单据创建时间">
|
|
|
|
- <rangeDate ref="createDate" @change="createDateChange" />
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="5" :sm="24">
|
|
|
|
- <a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="chooseBillModal-refresh">查询</a-button>
|
|
|
|
- <a-button style="margin: 0 0 18px 8px" @click="resetSearchForm" :disabled="disabled" id="chooseBillModal-reset">重置</a-button>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="24" :sm="24" style="margin-bottom: 18px;">
|
|
|
|
- <a-radio-group name="radioGroup" :default-value="1">
|
|
|
|
- <a-radio :value="1">
|
|
|
|
- 关联单据创建时间正序
|
|
|
|
- </a-radio>
|
|
|
|
- <a-radio :value="2">
|
|
|
|
- 审核时间正序
|
|
|
|
- </a-radio>
|
|
|
|
- </a-radio-group>
|
|
|
|
- </a-col>
|
|
|
|
|
|
+ <a-form layout="inline">
|
|
|
|
+ <a-row :gutter="15">
|
|
|
|
+ <a-col :md="8" :sm="24">
|
|
|
|
+ <a-form-item label="关联单据创建时间">
|
|
|
|
+ <rangeDate ref="createDate" @change="createDateChange" />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-button style="margin-bottom: 18px;" type="primary" @click="getsettleInfoAllList" :disabled="disabled" id="collectionPayment-refresh">查询</a-button>
|
|
|
|
+ <a-button style="margin: 0 0 18px 8px" @click="resetSearchForm" :disabled="disabled" id="collectionPayment-reset">重置</a-button>
|
|
|
|
+ </a-col>
|
|
</a-row>
|
|
</a-row>
|
|
</a-form>
|
|
</a-form>
|
|
</div>
|
|
</div>
|
|
@@ -219,6 +210,7 @@ export default {
|
|
this.amountSettledTotalChange = debounce(this.amountSettledTotalChange, 800)
|
|
this.amountSettledTotalChange = debounce(this.amountSettledTotalChange, 800)
|
|
const _this = this
|
|
const _this = this
|
|
return {
|
|
return {
|
|
|
|
+ disabled: false,
|
|
spinning: false,
|
|
spinning: false,
|
|
loading: false, // 表格加载中
|
|
loading: false, // 表格加载中
|
|
chooseQueryParam: {
|
|
chooseQueryParam: {
|
|
@@ -230,7 +222,7 @@ export default {
|
|
{ title: '序号', scopedSlots: { customRender: 'no' }, width: '5%', align: 'center' },
|
|
{ title: '序号', scopedSlots: { customRender: 'no' }, width: '5%', align: 'center' },
|
|
{ title: '单据号', dataIndex: 'bizNo', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单据号', dataIndex: 'bizNo', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单据类型', dataIndex: 'bizTypeDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单据类型', dataIndex: 'bizTypeDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '关联单据创建时间', dataIndex: 'auditTime', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '关联单据创建时间', dataIndex: 'bizCreateDate', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '审核时间', dataIndex: 'auditTime', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '审核时间', dataIndex: 'auditTime', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '金额', dataIndex: 'totalAmount', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
{ title: '金额', dataIndex: 'totalAmount', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
{ title: '余额', dataIndex: 'unsettleAmount', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
{ title: '余额', dataIndex: 'unsettleAmount', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
@@ -251,6 +243,10 @@ export default {
|
|
settleAccountName: undefined,
|
|
settleAccountName: undefined,
|
|
remark: ''
|
|
remark: ''
|
|
},
|
|
},
|
|
|
|
+ queryParam: {
|
|
|
|
+ bizCreateBeginDate: undefined,
|
|
|
|
+ bizCreateEndDate: undefined
|
|
|
|
+ },
|
|
rules: {
|
|
rules: {
|
|
amountSettled: [{ required: true, message: '请输入本次结算金额,系统将自动分配到已选单据上', trigger: 'change' }],
|
|
amountSettled: [{ required: true, message: '请输入本次结算金额,系统将自动分配到已选单据上', trigger: 'change' }],
|
|
discountAmount: [{ required: true, message: '请输入折让金额', trigger: 'blur' }],
|
|
discountAmount: [{ required: true, message: '请输入折让金额', trigger: 'blur' }],
|
|
@@ -440,17 +436,34 @@ export default {
|
|
},
|
|
},
|
|
// 默认获取所有单据
|
|
// 默认获取所有单据
|
|
getsettleInfoAllList () {
|
|
getsettleInfoAllList () {
|
|
- settleInfoAllList({ settleClientSn: this.$route.params.sn, settleClientType: this.$route.params.type, notEqZero: 1 }).then(res => {
|
|
|
|
|
|
+ this.loading = true
|
|
|
|
+ this.disabled = true
|
|
|
|
+ const ajaxData = Object.assign(this.queryParam, { settleClientSn: this.$route.params.sn, settleClientType: this.$route.params.type, notEqZero: 1 })
|
|
|
|
+ settleInfoAllList(ajaxData).then(res => {
|
|
res.data.map(item => {
|
|
res.data.map(item => {
|
|
item.settleAmount = item.unsettleAmount
|
|
item.settleAmount = item.unsettleAmount
|
|
})
|
|
})
|
|
this.chooseLoadData = res.data || []
|
|
this.chooseLoadData = res.data || []
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.disabled = false
|
|
this.amountSettledChange()
|
|
this.amountSettledChange()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
pageInit () {
|
|
pageInit () {
|
|
this.chooseLoadData = []
|
|
this.chooseLoadData = []
|
|
this.getsettleInfoAllList()
|
|
this.getsettleInfoAllList()
|
|
|
|
+ },
|
|
|
|
+ // 关联单据创建时间
|
|
|
|
+ createDateChange (date) {
|
|
|
|
+ this.queryParam.bizCreateBeginDate = date[0]
|
|
|
|
+ this.queryParam.bizCreateEndDate = date[1]
|
|
|
|
+ },
|
|
|
|
+ // 重置
|
|
|
|
+ resetSearchForm () {
|
|
|
|
+ this.$refs.createDate.resetDate()
|
|
|
|
+ this.queryParam.bizCreateBeginDate = ''
|
|
|
|
+ this.queryParam.bizCreateEndDate = ''
|
|
|
|
+ this.getsettleInfoAllList()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|