|
@@ -7,7 +7,7 @@
|
|
<a-icon type="left" />
|
|
<a-icon type="left" />
|
|
返回列表
|
|
返回列表
|
|
</a>
|
|
</a>
|
|
- <span style="margin: 0 10px;color: #666;">客户名称:{{ detailsData && detailsData.supplier && detailsData.supplier.supplierName }}</span>
|
|
|
|
|
|
+ <span style="margin: 0 10px;color: #666;">客户名称:{{ $route.params.name }}</span>
|
|
</template>
|
|
</template>
|
|
</a-page-header>
|
|
</a-page-header>
|
|
<a-card size="small" :bordered="false" class="searchBoxNormal">
|
|
<a-card size="small" :bordered="false" class="searchBoxNormal">
|
|
@@ -22,21 +22,21 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="业务单号">
|
|
<a-form-item label="业务单号">
|
|
- <a-input id="accountStateBillDetail-dealerName" v-model.trim="queryParam.dealerName" allowClear placeholder="请输入业务单号"/>
|
|
|
|
|
|
+ <a-input id="accountStateBillDetail-bizNo" v-model.trim="queryParam.bizNo" allowClear placeholder="请输入业务单号"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="对账单号">
|
|
<a-form-item label="对账单号">
|
|
- <a-input id="accountStateBillDetail-bookNo" v-model.trim="queryParam.bookNo" allowClear placeholder="请输入对账单号"/>
|
|
|
|
|
|
+ <a-input id="accountStateBillDetail-verifyAccountBillNo" v-model.trim="queryParam.verifyAccountBillNo" allowClear placeholder="请输入对账单号"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="借贷类型">
|
|
<a-form-item label="借贷类型">
|
|
<v-select
|
|
<v-select
|
|
- v-model="queryParam.status"
|
|
|
|
- ref="status"
|
|
|
|
- id="accountStateBillDetail-status"
|
|
|
|
- code="FINANCE_BOOK_STATE"
|
|
|
|
|
|
+ v-model="queryParam.changeType"
|
|
|
|
+ ref="changeType"
|
|
|
|
+ id="accountStateBillDetail-changeType"
|
|
|
|
+ code="VERIFY_ACCOUNT_CHANGE_TYPE"
|
|
placeholder="请选择借贷类型"
|
|
placeholder="请选择借贷类型"
|
|
allowClear></v-select>
|
|
allowClear></v-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -44,21 +44,33 @@
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="业务类型">
|
|
<a-form-item label="业务类型">
|
|
<v-select
|
|
<v-select
|
|
- v-model="queryParam.status"
|
|
|
|
- ref="status"
|
|
|
|
- id="accountStateBillDetail-status"
|
|
|
|
- code="FINANCE_BOOK_STATE"
|
|
|
|
|
|
+ v-model="queryParam.bizType"
|
|
|
|
+ ref="bizType"
|
|
|
|
+ id="accountStateBillDetail-bizType"
|
|
|
|
+ code="VERIFY_ACCOUNT_BIZ_TYPE"
|
|
placeholder="请选择业务类型"
|
|
placeholder="请选择业务类型"
|
|
allowClear></v-select>
|
|
allowClear></v-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="待选状态">
|
|
|
|
+ <a-select v-model="queryParam.waitSelect" allowClear placeholder="请选择待选状态" style="width: 100%" id="accountStateBillDetail-waitSelect">
|
|
|
|
+ <a-select-option value="1">
|
|
|
|
+ 待选
|
|
|
|
+ </a-select-option>
|
|
|
|
+ <a-select-option value="0">
|
|
|
|
+ 已选
|
|
|
|
+ </a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="对单状态">
|
|
<a-form-item label="对单状态">
|
|
<v-select
|
|
<v-select
|
|
- v-model="queryParam.status"
|
|
|
|
- ref="status"
|
|
|
|
- id="accountStatement-status"
|
|
|
|
- code="FINANCE_BOOK_STATE"
|
|
|
|
|
|
+ v-model="queryParam.billStatus"
|
|
|
|
+ ref="billStatus"
|
|
|
|
+ id="accountStatement-billStatus"
|
|
|
|
+ code="VERIFY_ACCOUNT_STATUS"
|
|
placeholder="请选择对单状态"
|
|
placeholder="请选择对单状态"
|
|
allowClear></v-select>
|
|
allowClear></v-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -81,11 +93,11 @@
|
|
</div>
|
|
</div>
|
|
</a-card>
|
|
</a-card>
|
|
<a-card size="small" :bordered="false">
|
|
<a-card size="small" :bordered="false">
|
|
- <a-alert type="info" style="margin-bottom:10px" v-if="totalData">
|
|
|
|
|
|
+ <a-alert type="info" style="margin-bottom:10px">
|
|
<div slot="message">
|
|
<div slot="message">
|
|
- 余额:<strong>{{ totalData&&(totalData.totalCancelAmount || totalData.totalCancelAmount==0) ? toThousands(totalData.totalCancelAmount) : '--' }}</strong>;
|
|
|
|
- 借方:<strong>{{ totalData&&(totalData.totalUnpushedAmount || totalData.totalUnpushedAmount==0) ? toThousands(totalData.totalUnpushedAmount) : '--' }}</strong>;
|
|
|
|
- 贷方:<strong>{{ totalData&&(totalData.totalDispatchAmount || totalData.totalDispatchAmount==0) ? toThousands(totalData.totalDispatchAmount) : '--' }}</strong>;
|
|
|
|
|
|
+ 余额:<strong>{{ totalData&&(totalData.bizAmount || totalData.bizAmount==0) ? toThousands(totalData.bizAmount) : '--' }}</strong>;
|
|
|
|
+ 借方:<strong>{{ totalData&&(totalData.debitAmount || totalData.debitAmount==0) ? toThousands(totalData.debitAmount) : '--' }}</strong>;
|
|
|
|
+ 贷方:<strong>{{ totalData&&(totalData.lenderAmount || totalData.lenderAmount==0) ? toThousands(totalData.lenderAmount) : '--' }}</strong>;
|
|
</div>
|
|
</div>
|
|
</a-alert>
|
|
</a-alert>
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
@@ -110,7 +122,10 @@
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
-import { financeBookQueryPage, financeBookDeleteBySn } from '@/api/financeBook.js'
|
|
|
|
|
|
+import {
|
|
|
|
+ verifyfyAccountQueryDealerBalanceDetailPage,
|
|
|
|
+ verifyfyAccountQueryDealerBalanceDetailCount
|
|
|
|
+} from '@/api/verifyAccountChange'
|
|
export default {
|
|
export default {
|
|
name: 'AccountStatementBillDetail',
|
|
name: 'AccountStatementBillDetail',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
@@ -123,9 +138,12 @@ export default {
|
|
queryParam: { // 查询条件
|
|
queryParam: { // 查询条件
|
|
beginDate: '',
|
|
beginDate: '',
|
|
endDate: '',
|
|
endDate: '',
|
|
- bookNo: '',
|
|
|
|
- dealerName: '',
|
|
|
|
- status: undefined
|
|
|
|
|
|
+ bizNo: '',
|
|
|
|
+ verifyAccountBillNo: '',
|
|
|
|
+ changeType: undefined,
|
|
|
|
+ bizType: undefined,
|
|
|
|
+ waitSelect: undefined,
|
|
|
|
+ billStatus: undefined
|
|
},
|
|
},
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
creatDate: [], // 创建时间
|
|
creatDate: [], // 创建时间
|
|
@@ -134,45 +152,62 @@ export default {
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
this.spinning = true
|
|
this.spinning = true
|
|
- const params = Object.assign(parameter, this.queryParam)
|
|
|
|
- return financeBookQueryPage(params).then(res => {
|
|
|
|
|
|
+ const params = {
|
|
|
|
+ ...parameter,
|
|
|
|
+ dealerSn: this.dealerSn,
|
|
|
|
+ ...this.queryParam
|
|
|
|
+ }
|
|
|
|
+ return verifyfyAccountQueryDealerBalanceDetailPage(params).then(res => {
|
|
let data
|
|
let data
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
data = res.data
|
|
data = res.data
|
|
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
|
|
|
|
+ const dates = data.list[i].bizDate.split('-')
|
|
|
|
+ data.list[i].year = dates[0]
|
|
|
|
+ data.list[i].month = dates[1]
|
|
|
|
+ data.list[i].day = dates[2].split(' ')[0]
|
|
|
|
+ // 正为借方, 负数为贷方
|
|
|
|
+ if (data.list[i].bizAmount > 0) {
|
|
|
|
+ data.list[i].debitAmount = data.list[i].bizAmount
|
|
|
|
+ } else {
|
|
|
|
+ data.list[i].creditorAmount = data.list[i].bizAmount
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.total = data.count || 0
|
|
this.total = data.count || 0
|
|
this.disabled = false
|
|
this.disabled = false
|
|
}
|
|
}
|
|
this.spinning = false
|
|
this.spinning = false
|
|
|
|
+ this.getCount(params)
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
total: 0, // 合计
|
|
total: 0, // 合计
|
|
- totalData: null
|
|
|
|
|
|
+ totalData: null,
|
|
|
|
+ dealerSn: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 根据权限显示列表字段
|
|
// 根据权限显示列表字段
|
|
computed: {
|
|
computed: {
|
|
columns () {
|
|
columns () {
|
|
|
|
+ const _this = this
|
|
const arr = [
|
|
const arr = [
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
- { title: '年', dataIndex: 'sparePartsNo', width: '3%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '月', dataIndex: 'sparePartsNo', width: '3%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '日', dataIndex: 'sparePartsNo', width: '3%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '业务单号', dataIndex: 'sparePartsNo', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '对账单号', dataIndex: 'sparePartsNo', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '业务类型', dataIndex: 'product.code', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '业务状态', dataIndex: 'product.code', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '费用/调拨类型', dataIndex: 'product.unit', width: '9%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '摘要', dataIndex: 'sparePartsBatchNo', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '客诉索赔编码', dataIndex: 'currentStockQty', width: '8%', align: 'center', customRender: function (text) { return (text || text == 0) ? text : '--' } },
|
|
|
|
- { title: '借方', dataIndex: 'productCost', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? toThousands(text, 2) : '--') } },
|
|
|
|
- { title: '贷方', dataIndex: 'productCost', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? toThousands(text, 2) : '--') } },
|
|
|
|
- { title: '备注', dataIndex: 'remarks', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '对单状态', dataIndex: 'remarks', width: '6%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
|
|
|
+ { title: '年', dataIndex: 'year', width: '3%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '月', dataIndex: 'month', width: '3%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '日', dataIndex: 'day', width: '3%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '业务单号', dataIndex: 'bizNo', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '对账单号', dataIndex: 'verifyAccountBillNo', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '业务类型', dataIndex: 'bizTypeDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '业务状态', dataIndex: 'bizStatusDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '费用/调拨类型', dataIndex: 'expenseAllocateType', width: '9%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '摘要', dataIndex: 'digestInfo', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '客诉索赔编码', dataIndex: 'productCode', width: '8%', align: 'center', customRender: function (text) { return (text || text == 0) ? text : '--' } },
|
|
|
|
+ { title: '借方', dataIndex: 'debitAmount', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } },
|
|
|
|
+ { title: '贷方', dataIndex: 'creditorAmount', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } },
|
|
|
|
+ { title: '备注', dataIndex: 'remarks', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
+ { title: '对单状态', dataIndex: 'billStatusDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
]
|
|
]
|
|
return arr
|
|
return arr
|
|
}
|
|
}
|
|
@@ -190,6 +225,14 @@ export default {
|
|
// 导出
|
|
// 导出
|
|
handleExport () {
|
|
handleExport () {
|
|
|
|
|
|
|
|
+ },
|
|
|
|
+ // 统计
|
|
|
|
+ getCount (params) {
|
|
|
|
+ verifyfyAccountQueryDealerBalanceDetailCount(params).then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ this.totalData = res.data
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
@@ -197,13 +240,19 @@ export default {
|
|
this.$refs.rangeDate.resetDate(this.creatDate)
|
|
this.$refs.rangeDate.resetDate(this.creatDate)
|
|
this.queryParam.beginDate = ''
|
|
this.queryParam.beginDate = ''
|
|
this.queryParam.endDate = ''
|
|
this.queryParam.endDate = ''
|
|
- this.queryParam.dealerName = ''
|
|
|
|
- this.queryParam.bookNo = ''
|
|
|
|
- this.queryParam.status = undefined
|
|
|
|
|
|
+
|
|
|
|
+ this.queryParam.bizNo = ''
|
|
|
|
+ this.queryParam.verifyAccountBillNo = ''
|
|
|
|
+ this.queryParam.changeType = undefined
|
|
|
|
+ this.queryParam.bizType = undefined
|
|
|
|
+ this.queryParam.waitSelect = undefined
|
|
|
|
+ this.queryParam.billStatus = undefined
|
|
|
|
+
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
pageInit () {
|
|
pageInit () {
|
|
const _this = this
|
|
const _this = this
|
|
|
|
+ this.dealerSn = this.$route.params.sn
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
_this.setTableH()
|
|
_this.setTableH()
|
|
})
|
|
})
|