|
@@ -1,8 +1,8 @@
|
|
<template>
|
|
<template>
|
|
- <a-card size="small" :bordered="false" class="collectionDetail-wrap">
|
|
|
|
- <a-spin :spinning="spinning" tip="Loading...">
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <a-card size="small" :bordered="false" class="collectionDetail-wrap">
|
|
<!-- 搜索条件 -->
|
|
<!-- 搜索条件 -->
|
|
- <div ref="tableSearch" class="table-page-search-wrapper">
|
|
|
|
|
|
+ <div ref="tableSearch" class="table-page-search-wrapper newTableSearchName">
|
|
<a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
<a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
<a-row :gutter="15">
|
|
<a-row :gutter="15">
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
@@ -10,48 +10,47 @@
|
|
<rangeDate ref="rangeAuditDate" :value="auditDate" @change="dateAuditChange" />
|
|
<rangeDate ref="rangeAuditDate" :value="auditDate" @change="dateAuditChange" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col :md="4" :sm="24">
|
|
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
<a-form-item label="收款单号">
|
|
<a-form-item label="收款单号">
|
|
<a-input id="collectionDetail-bookNo" v-model.trim="queryParam.bookNo" allowClear placeholder="请输入收款单号"/>
|
|
<a-input id="collectionDetail-bookNo" v-model.trim="queryParam.bookNo" allowClear placeholder="请输入收款单号"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col :md="4" :sm="24">
|
|
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
<a-form-item label="申请人">
|
|
<a-form-item label="申请人">
|
|
<employee style="width: 100%;" id="collectionDetail-Employee" placeholder="请选择申请人" v-model="queryParam.applyPersonSn"></employee>
|
|
<employee style="width: 100%;" id="collectionDetail-Employee" placeholder="请选择申请人" v-model="queryParam.applyPersonSn"></employee>
|
|
</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="收款日期">
|
|
<rangeDate ref="receiptDate" :value="receiptDate" @change="receiptDateChange" />
|
|
<rangeDate ref="receiptDate" :value="receiptDate" @change="receiptDateChange" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col :md="4" :sm="24">
|
|
|
|
- <a-form-item label="付款方类型">
|
|
|
|
- <v-select
|
|
|
|
- v-model="queryParam.payerType"
|
|
|
|
- code="PAYER_TYPE"
|
|
|
|
- placeholder="请选择付款方类型"
|
|
|
|
- ></v-select>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="付款方">
|
|
|
|
- <a-input id="financialCollectionList-payerName" v-model.trim="queryParam.payerName" allowClear placeholder="请输入付款方"/>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="4" :sm="24">
|
|
|
|
- <a-form-item label="财务编码">
|
|
|
|
- <a-input id="collectionDetail-kdMidCustomerFnumber" placeholder="请输入财务编码" v-model="queryParam.kdMidCustomerFnumber"></a-input>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="4" :sm="24">
|
|
|
|
- <a-form-item label="付款账户">
|
|
|
|
- <a-input id="collectionDetail-payerAccountInfo" placeholder="请输入付款账户" v-model="queryParam.payerAccountInfo"></a-input>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
<template v-if="advanced">
|
|
<template v-if="advanced">
|
|
- <a-col :md="4" :sm="24">
|
|
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="付款方类型">
|
|
|
|
+ <v-select
|
|
|
|
+ v-model="queryParam.payerType"
|
|
|
|
+ code="PAYER_TYPE"
|
|
|
|
+ placeholder="请选择付款方类型"
|
|
|
|
+ ></v-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="付款方">
|
|
|
|
+ <a-input id="financialCollectionList-payerName" v-model.trim="queryParam.payerName" allowClear placeholder="请输入付款方"/>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="财务编码">
|
|
|
|
+ <a-input id="collectionDetail-kdMidCustomerFnumber" placeholder="请输入财务编码" v-model="queryParam.kdMidCustomerFnumber"></a-input>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="付款账户">
|
|
|
|
+ <a-input id="collectionDetail-payerAccountInfo" placeholder="请输入付款账户" v-model="queryParam.payerAccountInfo"></a-input>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
<a-form-item label="足额打款">
|
|
<a-form-item label="足额打款">
|
|
<v-select
|
|
<v-select
|
|
v-model="queryParam.fullPaymentFlag"
|
|
v-model="queryParam.fullPaymentFlag"
|
|
@@ -62,7 +61,7 @@
|
|
allowClear></v-select>
|
|
allowClear></v-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col :md="3" :sm="24">
|
|
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
<a-form-item label="户名/汇入银行">
|
|
<a-form-item label="户名/汇入银行">
|
|
<a-select placeholder="请选择户名" allowClear v-model="queryParam.bankAccount" style="width: 100%" @change="handleChange">
|
|
<a-select placeholder="请选择户名" allowClear v-model="queryParam.bankAccount" style="width: 100%" @change="handleChange">
|
|
<a-select-option v-for="item in bankList" :value="item.bankAccount">
|
|
<a-select-option v-for="item in bankList" :value="item.bankAccount">
|
|
@@ -70,7 +69,7 @@
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item></a-col>
|
|
</a-form-item></a-col>
|
|
- <a-col :md="3" :sm="24">
|
|
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
<a-form-item>
|
|
<a-form-item>
|
|
<a-select placeholder="请选择汇入银行" allowClear v-model="queryParam.bankName" style="width: 100%">
|
|
<a-select placeholder="请选择汇入银行" allowClear v-model="queryParam.bankName" style="width: 100%">
|
|
<a-select-option v-for="item in bankNameList" :value="item">
|
|
<a-select-option v-for="item in bankNameList" :value="item">
|
|
@@ -79,7 +78,7 @@
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col :md="4" :sm="24">
|
|
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
<a-form-item label="开票状态">
|
|
<a-form-item label="开票状态">
|
|
<a-select v-model="queryParam.invoiceDateType" style="width: 100%" placeholder="请选择开票状态">
|
|
<a-select v-model="queryParam.invoiceDateType" style="width: 100%" placeholder="请选择开票状态">
|
|
<a-select-option value="1">
|
|
<a-select-option value="1">
|
|
@@ -96,18 +95,18 @@
|
|
<rangeDate ref="invoiceDate" :value="invoiceDate" @change="invoiceDateChange" />
|
|
<rangeDate ref="invoiceDate" :value="invoiceDate" @change="invoiceDateChange" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col :md="4" :sm="24">
|
|
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
<a-form-item label="所属区域">
|
|
<a-form-item label="所属区域">
|
|
<subarea id="collectionDetail-subarea" v-model="queryParam.subareaSn"></subarea>
|
|
<subarea id="collectionDetail-subarea" v-model="queryParam.subareaSn"></subarea>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col :md="4" :sm="24">
|
|
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
<a-form-item label="所属省份">
|
|
<a-form-item label="所属省份">
|
|
<Area id="collectionDetail-provinceSn" v-model="queryParam.provinceSn" placeholder="请选择省"></Area>
|
|
<Area id="collectionDetail-provinceSn" v-model="queryParam.provinceSn" placeholder="请选择省"></Area>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
</template>
|
|
</template>
|
|
- <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
|
|
|
|
+ <a-col :md="24" :sm="24" style="text-align:center;">
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="collectionDetail-refresh">查询</a-button>
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="collectionDetail-refresh">查询</a-button>
|
|
<a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="collectionDetail-reset">重置</a-button>
|
|
<a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="collectionDetail-reset">重置</a-button>
|
|
<a-button
|
|
<a-button
|
|
@@ -119,62 +118,76 @@
|
|
:loading="exportLoading"
|
|
:loading="exportLoading"
|
|
v-if="$hasPermissions('M_FC_Details_Export')"
|
|
v-if="$hasPermissions('M_FC_Details_Export')"
|
|
id="sendOut-export">导出</a-button>
|
|
id="sendOut-export">导出</a-button>
|
|
- <a @click="advanced=!advanced" style="margin-left: 5px">
|
|
|
|
|
|
+ <a @click="advanced=!advanced" style="margin-left: 5px;">
|
|
{{ advanced ? '收起' : '展开' }}
|
|
{{ advanced ? '收起' : '展开' }}
|
|
<a-icon :type="advanced ? 'up' : 'down'"/>
|
|
<a-icon :type="advanced ? 'up' : 'down'"/>
|
|
</a>
|
|
</a>
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
</a-form>
|
|
</a-form>
|
|
- <a-alert type="info" style="margin-bottom:10px">
|
|
|
|
- <div slot="message">
|
|
|
|
- 订单总金额:{{ toThousands(countData&&countData.orderAmount||0) }};
|
|
|
|
- 收款总金额:{{ toThousands(countData&&countData.receiptAmount||0) }};
|
|
|
|
- 使用授信总金额:{{ toThousands(countData&&countData.useCreditAmount||0) }};
|
|
|
|
- 授信还款总金额:{{ toThousands(countData&&countData.payCreditAmount||0) }};
|
|
|
|
- 余款抵扣总金额:{{ toThousands(countData&&countData.balanceAmount||0) }};
|
|
|
|
- 跨月打款总金额:{{ toThousands(countData&&countData.nextMonthAmount||0) }};
|
|
|
|
- </div>
|
|
|
|
- </a-alert>
|
|
|
|
</div>
|
|
</div>
|
|
- <!-- 列表 -->
|
|
|
|
- <s-table
|
|
|
|
- class="sTable fixPagination"
|
|
|
|
- ref="table"
|
|
|
|
- :style="{ height: tableHeight+84.5+'px' }"
|
|
|
|
- size="small"
|
|
|
|
- :rowKey="(record) => record.id"
|
|
|
|
- :columns="columns"
|
|
|
|
- :data="loadData"
|
|
|
|
- :scroll="{ y: tableHeight }"
|
|
|
|
- bordered>
|
|
|
|
- <!-- 开票日期 -->
|
|
|
|
- <template slot="draftDate" slot-scope="text, record">
|
|
|
|
- <div @click="handleInvoice(record)">
|
|
|
|
- <span v-if="record.invoiceDate" class="link-bule">{{ record.invoiceDate }}</span>
|
|
|
|
- <span class="link-bule" v-else>--</span>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- <!-- 收款打印状态 -->
|
|
|
|
- <template slot="printStatus" slot-scope="text, record">
|
|
|
|
- <span v-if="record.printStatus=='NO_PRINT' || record.printStatus=='PRINT'">{{ record.printStatusDictValue }}</span>
|
|
|
|
- <span @click="handlePrint(record)" class="link-bule" v-else>{{ record.printStatusDictValue }}</span>
|
|
|
|
- </template>
|
|
|
|
- <!-- 备注 -->
|
|
|
|
- <template slot="note" slot-scope="text, record">
|
|
|
|
- <div @click="handleNote(record)">
|
|
|
|
- <span :title="record.remarks" class="link-bule" style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;width:100%;display:block;">{{ record.remarks || '--' }}</span>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- </s-table>
|
|
|
|
- </a-spin>
|
|
|
|
- <!-- 开票日期弹窗 -->
|
|
|
|
- <invoiceModal v-drag :show="invoiceIsShow" :info="invoiceInfo" @cancel="cancel"></invoiceModal>
|
|
|
|
- <!-- 备注弹窗 -->
|
|
|
|
- <noteModal ref="remarksModal" v-drag :show="noteIsShow" @cancel="cancel"></noteModal>
|
|
|
|
- <!-- 收款打印状态 -->
|
|
|
|
- <printModal v-drag :show="printIsShow" :info="printInfo" @cancel="cancel"></printModal>
|
|
|
|
- </a-card>
|
|
|
|
|
|
+ </a-card>
|
|
|
|
+ <a-card size="small" :bordered="false" class="collectionDetail-wrap" style="margin-top:5px;">
|
|
|
|
+ <div>
|
|
|
|
+ <a-dropdown>
|
|
|
|
+ <a-menu slot="overlay" @click="handleMenuClick">
|
|
|
|
+ <a-menu-item key="1"> <a-icon type="printer" />批量允许打印 </a-menu-item>
|
|
|
|
+ <a-menu-item key="2"> <a-icon type="block" />批量设置开票 </a-menu-item>
|
|
|
|
+ </a-menu>
|
|
|
|
+ <a-button type="primary" ghost> 批量处理 <a-icon type="down" /></a-button>
|
|
|
|
+ </a-dropdown>
|
|
|
|
+ <span style="margin-left:10px;">已选{{ selNums }}项</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="gatherMessage">
|
|
|
|
+ 订单总金额:<strong> {{ toThousands(countData&&countData.orderAmount||0) }}</strong>;
|
|
|
|
+ 收款总金额:<strong>{{ toThousands(countData&&countData.receiptAmount||0) }}</strong>;
|
|
|
|
+ 使用授信总金额:<strong>{{ toThousands(countData&&countData.useCreditAmount||0) }}</strong>;
|
|
|
|
+ 授信还款总金额:<strong>{{ toThousands(countData&&countData.payCreditAmount||0) }}</strong>;
|
|
|
|
+ 余款抵扣总金额:<strong>{{ toThousands(countData&&countData.balanceAmount||0) }}</strong>;
|
|
|
|
+ 跨月打款总金额:<strong>{{ toThousands(countData&&countData.nextMonthAmount||0) }}</strong>;
|
|
|
|
+ </div>
|
|
|
|
+ <a-spin :spinning="spinning" tip="Loading...">
|
|
|
|
+ <!-- 列表 -->
|
|
|
|
+ <s-table
|
|
|
|
+ class="sTable fixPagination"
|
|
|
|
+ ref="table"
|
|
|
|
+ :style="{ height: tableHeight+84.5+'px' }"
|
|
|
|
+ size="small"
|
|
|
|
+ :rowKey="(record) => record.id"
|
|
|
|
+ :columns="columns"
|
|
|
|
+ :data="loadData"
|
|
|
|
+ :row-selection="{ columnWidth: 40 }"
|
|
|
|
+ @rowSelection="rowSelectionFun"
|
|
|
|
+ :scroll="{ y: tableHeight }"
|
|
|
|
+ bordered>
|
|
|
|
+ <!-- 开票日期 -->
|
|
|
|
+ <template slot="draftDate" slot-scope="text, record">
|
|
|
|
+ <div @click="handleInvoice(record)">
|
|
|
|
+ <span v-if="record.invoiceDate" class="link-bule">{{ record.invoiceDate }}</span>
|
|
|
|
+ <span class="link-bule" v-else>--</span>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 收款打印状态 -->
|
|
|
|
+ <template slot="printStatus" slot-scope="text, record">
|
|
|
|
+ <span v-if="record.printStatus=='NO_PRINT' || record.printStatus=='PRINT'">{{ record.printStatusDictValue }}</span>
|
|
|
|
+ <span @click="handlePrint(record)" class="link-bule" v-else>{{ record.printStatusDictValue }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 备注 -->
|
|
|
|
+ <template slot="note" slot-scope="text, record">
|
|
|
|
+ <div @click="handleNote(record)">
|
|
|
|
+ <span :title="record.remarks" class="link-bule" style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;width:100%;display:block;">{{ record.remarks || '--' }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </s-table>
|
|
|
|
+ </a-spin>
|
|
|
|
+ <!-- 开票日期弹窗 -->
|
|
|
|
+ <invoiceModal v-drag :show="invoiceIsShow" :info="invoiceInfo" @cancel="cancel"></invoiceModal>
|
|
|
|
+ <!-- 备注弹窗 -->
|
|
|
|
+ <noteModal ref="remarksModal" v-drag :show="noteIsShow" @cancel="cancel"></noteModal>
|
|
|
|
+ <!-- 收款打印状态 -->
|
|
|
|
+ <printModal v-drag :show="printIsShow" :info="printInfo" @cancel="cancel"></printModal>
|
|
|
|
+ </a-card>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -276,11 +289,15 @@ export default {
|
|
],
|
|
],
|
|
bankNameList: [],
|
|
bankNameList: [],
|
|
invoiceInfo: null,
|
|
invoiceInfo: null,
|
|
- printInfo: null
|
|
|
|
|
|
+ printInfo: null,
|
|
|
|
+ rowSelectionInfo: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 根据权限显示列表字段
|
|
// 根据权限显示列表字段
|
|
computed: {
|
|
computed: {
|
|
|
|
+ selNums () {
|
|
|
|
+ return this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length || 0
|
|
|
|
+ },
|
|
columns () {
|
|
columns () {
|
|
const arr = [
|
|
const arr = [
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
@@ -323,6 +340,13 @@ export default {
|
|
this.countData = res.data
|
|
this.countData = res.data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ handleMenuClick (e) {
|
|
|
|
+ console.log('click', e)
|
|
|
|
+ },
|
|
|
|
+ // 表格选中项
|
|
|
|
+ rowSelectionFun (obj) {
|
|
|
|
+ this.rowSelectionInfo = obj || null
|
|
|
|
+ },
|
|
handleChange (v) {
|
|
handleChange (v) {
|
|
if (v) {
|
|
if (v) {
|
|
const row = this.bankList.find(item => item.bankAccount == v)
|
|
const row = this.bankList.find(item => item.bankAccount == v)
|