|
@@ -1,5 +1,15 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
+ <div class="accountStateBillDetail-wrap">
|
|
|
+ <a-page-header :ghost="false" :backIcon="false" class="accountStateBillDetail-back">
|
|
|
+ <!-- 自定义的二级文字标题 -->
|
|
|
+ <template slot="subTitle">
|
|
|
+ <a id="accountStateBillDetail-btn" href="javascript:;" @click="handleBack">
|
|
|
+ <a-icon type="left" />
|
|
|
+ 返回列表
|
|
|
+ </a>
|
|
|
+ <span style="margin: 0 10px;color: #666;">客户名称:{{ detailsData && detailsData.supplier && detailsData.supplier.supplierName }}</span>
|
|
|
+ </template>
|
|
|
+ </a-page-header>
|
|
|
<a-card size="small" :bordered="false" class="searchBoxNormal">
|
|
|
<!-- 搜索条件 -->
|
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
@@ -7,17 +17,17 @@
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="时间">
|
|
|
- <rangeDate id="aaccountStateBillDetail-rangeDate" ref="rangeDate" :value="creatDate" @change="dateChange" />
|
|
|
+ <rangeDate id="accountStateBillDetail-rangeDate" ref="rangeDate" :value="creatDate" @change="dateChange" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="业务单号">
|
|
|
- <a-input id="aaccountStateBillDetail-dealerName" v-model.trim="queryParam.dealerName" allowClear placeholder="请输入业务单号"/>
|
|
|
+ <a-input id="accountStateBillDetail-dealerName" v-model.trim="queryParam.dealerName" allowClear placeholder="请输入业务单号"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="对账单号">
|
|
|
- <a-input id="aaccountStateBillDetail-bookNo" v-model.trim="queryParam.bookNo" allowClear placeholder="请输入对账单号"/>
|
|
|
+ <a-input id="accountStateBillDetail-bookNo" v-model.trim="queryParam.bookNo" allowClear placeholder="请输入对账单号"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
@@ -25,7 +35,7 @@
|
|
|
<v-select
|
|
|
v-model="queryParam.status"
|
|
|
ref="status"
|
|
|
- id="aaccountStateBillDetail-status"
|
|
|
+ id="accountStateBillDetail-status"
|
|
|
code="FINANCE_BOOK_STATE"
|
|
|
placeholder="请选择借贷类型"
|
|
|
allowClear></v-select>
|
|
@@ -36,7 +46,7 @@
|
|
|
<v-select
|
|
|
v-model="queryParam.status"
|
|
|
ref="status"
|
|
|
- id="aaccountStateBillDetail-status"
|
|
|
+ id="accountStateBillDetail-status"
|
|
|
code="FINANCE_BOOK_STATE"
|
|
|
placeholder="请选择业务类型"
|
|
|
allowClear></v-select>
|
|
@@ -53,13 +63,13 @@
|
|
|
allowClear></v-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
|
- <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="aaccountStateBillDetail-refresh">查询</a-button>
|
|
|
- <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="aaccountStateBillDetail-reset">重置</a-button>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="accountStateBillDetail-refresh">查询</a-button>
|
|
|
+ <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="accountStateBillDetail-reset">重置</a-button>
|
|
|
<a-button
|
|
|
style="margin-left: 10px"
|
|
|
type="primary"
|
|
|
- id="aaccountStateBillDetail-export"
|
|
|
+ id="accountStateBillDetail-export"
|
|
|
class="button-warning"
|
|
|
@click="handleExport"
|
|
|
:disabled="disabled"
|
|
@@ -70,7 +80,7 @@
|
|
|
</a-form>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
- <a-card size="small" :bordered="false" class="aaccountStateBillDetail-wrap">
|
|
|
+ <a-card size="small" :bordered="false">
|
|
|
<a-alert type="info" style="margin-bottom:10px" v-if="totalData">
|
|
|
<div slot="message">
|
|
|
余额:<strong>{{ totalData&&(totalData.totalCancelAmount || totalData.totalCancelAmount==0) ? toThousands(totalData.totalCancelAmount) : '--' }}</strong>;
|
|
@@ -81,15 +91,13 @@
|
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
|
- class="sTable fixPagination"
|
|
|
+ class="sTable"
|
|
|
ref="table"
|
|
|
- :style="{ height: tableHeight+80+'px' }"
|
|
|
size="small"
|
|
|
:rowKey="(record) => record.id"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
- :scroll="{ y: tableHeight }"
|
|
|
- :pageSize="30"
|
|
|
+ :pageSize="20"
|
|
|
:defaultLoadData="false"
|
|
|
bordered>
|
|
|
</s-table>
|
|
@@ -151,29 +159,37 @@ export default {
|
|
|
columns () {
|
|
|
const arr = [
|
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
|
- { title: '年', dataIndex: 'sparePartsNo', width: '4%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '月', dataIndex: 'sparePartsNo', width: '4%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '日', dataIndex: 'sparePartsNo', width: '4%', 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: '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: '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: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '对单状态', dataIndex: 'remarks', width: '15%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
+ { title: '备注', dataIndex: 'remarks', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '对单状态', dataIndex: 'remarks', width: '6%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
]
|
|
|
return arr
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 返回列表
|
|
|
+ handleBack () {
|
|
|
+ this.$router.push({ name: `accountStatementBillList` })
|
|
|
+ },
|
|
|
// 创建时间 change
|
|
|
dateChange (date) {
|
|
|
this.queryParam.beginDate = date[0] ? date[0] : ''
|
|
|
this.queryParam.endDate = date[1] ? date[1] : ''
|
|
|
+ },
|
|
|
+ // 导出
|
|
|
+ handleExport () {
|
|
|
+
|
|
|
},
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
@@ -194,7 +210,7 @@ export default {
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
- this.tableHeight = window.innerHeight - tableSearchH - 210
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - 110
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -233,13 +249,10 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|
|
|
- .aaccountStateBillDetail-wrap{
|
|
|
- .active{
|
|
|
- color: #ed1c24;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
- .common{
|
|
|
- color: rgba(0, 0, 0);
|
|
|
+ .accountStateBillDetail-wrap{
|
|
|
+ .accountStateBillDetail-back{
|
|
|
+ padding-top: 10px;
|
|
|
+ margin-bottom: 6px;
|
|
|
}
|
|
|
}
|
|
|
</style>
|