|
@@ -1,213 +1,218 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <!-- 搜索条件 -->
|
|
|
|
- <a-card size="small" :bordered="false" class="searchBoxNormal">
|
|
|
|
- <div ref="tableSearch" class="table-page-search-wrapper">
|
|
|
|
- <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
|
- <a-row :gutter="15">
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="创建时间">
|
|
|
|
- <rangeDate ref="rangeAuditDate" :value="auditDate" @change="dateAuditChange" />
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="客户名称">
|
|
|
|
- <dealerSubareaScopeList ref="settleClientName" id="salesCollectionList-settleClientName" @change="custChange" />
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="销售单号">
|
|
|
|
- <a-input id="salesCollectionList-bizNo" v-model.trim="queryParam.bizNo" allowClear placeholder="请输入销售单号"/>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <template v-if="advanced">
|
|
|
|
|
|
+ <!-- 搜索条件 -->
|
|
|
|
+ <a-card size="small" :bordered="false" class="searchBoxNormal">
|
|
|
|
+ <div ref="tableSearch" class="table-page-search-wrapper">
|
|
|
|
+ <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
|
+ <a-row :gutter="15">
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
- <a-form-item label="备货单号">
|
|
|
|
- <a-input id="salesCollectionList-dispatchBillNo" v-model.trim="queryParam.dispatchBillNo" allowClear placeholder="请输入备货单号"/>
|
|
|
|
|
|
+ <a-form-item label="创建时间">
|
|
|
|
+ <rangeDate ref="rangeAuditDate" :value="auditDate" @change="dateAuditChange" />
|
|
</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="收货客户名称">
|
|
|
|
- <dealerSubareaScopeList ref="receiverName" id="salesCollectionList-receiverName" @change="receiverChange" />
|
|
|
|
|
|
+ <a-form-item label="客户名称">
|
|
|
|
+ <dealerSubareaScopeList ref="settleClientName" id="salesCollectionList-settleClientName" @change="custChange" />
|
|
</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="收款类型">
|
|
|
|
- <v-select
|
|
|
|
- v-model="queryParam.keepType"
|
|
|
|
- ref="keepType"
|
|
|
|
- id="salesCollectionList-keepType"
|
|
|
|
- code="KEEP_TYPE"
|
|
|
|
- placeholder="请选择收款类型"
|
|
|
|
- allowClear></v-select>
|
|
|
|
|
|
+ <a-form-item label="销售单号">
|
|
|
|
+ <a-input id="salesCollectionList-bizNo" v-model.trim="queryParam.bizNo" allowClear placeholder="请输入销售单号"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+ <template v-if="advanced">
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="备货单号">
|
|
|
|
+ <a-input id="salesCollectionList-dispatchBillNo" v-model.trim="queryParam.dispatchBillNo" allowClear placeholder="请输入备货单号"/>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="收货客户名称">
|
|
|
|
+ <dealerSubareaScopeList ref="receiverName" id="salesCollectionList-receiverName" @change="receiverChange" />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="收款类型">
|
|
|
|
+ <v-select
|
|
|
|
+ v-model="queryParam.keepType"
|
|
|
|
+ ref="keepType"
|
|
|
|
+ id="salesCollectionList-keepType"
|
|
|
|
+ code="KEEP_TYPE"
|
|
|
|
+ placeholder="请选择收款类型"
|
|
|
|
+ allowClear></v-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="收款时间">
|
|
|
|
+ <rangeDate ref="rangeSettleDate" :value="settleDate" @change="dateSettleChange" />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="收款方式">
|
|
|
|
+ <v-select
|
|
|
|
+ v-model="queryParam.settleStyle"
|
|
|
|
+ ref="settleStyle"
|
|
|
|
+ id="salesCollectionList-settleStyle"
|
|
|
|
+ code="SETTLE_STYLE"
|
|
|
|
+ placeholder="请选择收款方式"
|
|
|
|
+ allowClear></v-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="业务状态">
|
|
|
|
+ <v-select
|
|
|
|
+ v-model="queryParam.billStatus"
|
|
|
|
+ ref="billStatus"
|
|
|
|
+ id="salesCollectionList-billStatus"
|
|
|
|
+ code="DISPATCH_BILL_STATUS"
|
|
|
|
+ placeholder="请选择业务状态"
|
|
|
|
+ allowClear></v-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="财务状态">
|
|
|
|
+ <v-select
|
|
|
|
+ v-model="queryParam.settleState"
|
|
|
|
+ ref="settleState"
|
|
|
|
+ id="salesCollectionList-settleState"
|
|
|
|
+ code="FINANCIAL_RECEIVE_STATUS"
|
|
|
|
+ placeholder="请选择财务状态"
|
|
|
|
+ allowClear></v-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="单据状态">
|
|
|
|
+ <v-select
|
|
|
|
+ v-model="queryParam.voidFlag"
|
|
|
|
+ ref="voidFlag"
|
|
|
|
+ id="salesCollectionList-voidFlag"
|
|
|
|
+ code="VOID_FLAG"
|
|
|
|
+ placeholder="请选择单据状态"
|
|
|
|
+ allowClear></v-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="对单状态">
|
|
|
|
+ <v-select
|
|
|
|
+ v-model="queryParam.checkStatus"
|
|
|
|
+ ref="checkStatus"
|
|
|
|
+ id="salesCollectionList-checkStatus"
|
|
|
|
+ code="CHECK_STATUS"
|
|
|
|
+ placeholder="请选择对单状态"
|
|
|
|
+ allowClear></v-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="所在区域">
|
|
|
|
+ <subarea id="salesCollectionList-subarea" ref="subarea" @change="subareaChange"></subarea>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="地区" prop="dealerProvinceSn" style="margin: 0;">
|
|
|
|
+ <Area id="salesCollectionList-dealerProvinceSn" v-model="queryParam.dealerProvinceSn" placeholder="请选择省"></Area>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24" v-show="isShowCustomerSearch">
|
|
|
|
+ <a-form-item label="客服">
|
|
|
|
+ <customerService ref="customerName" v-model="queryParam.bizUserSn"></customerService>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ </template>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
- <a-form-item label="收款时间">
|
|
|
|
- <rangeDate ref="rangeSettleDate" :value="settleDate" @change="dateSettleChange" />
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="收款方式">
|
|
|
|
- <v-select
|
|
|
|
- v-model="queryParam.settleStyle"
|
|
|
|
- ref="settleStyle"
|
|
|
|
- id="salesCollectionList-settleStyle"
|
|
|
|
- code="SETTLE_STYLE"
|
|
|
|
- placeholder="请选择收款方式"
|
|
|
|
- allowClear></v-select>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="业务状态">
|
|
|
|
- <v-select
|
|
|
|
- v-model="queryParam.billStatus"
|
|
|
|
- ref="billStatus"
|
|
|
|
- id="salesCollectionList-billStatus"
|
|
|
|
- code="DISPATCH_BILL_STATUS"
|
|
|
|
- placeholder="请选择业务状态"
|
|
|
|
- allowClear></v-select>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="财务状态">
|
|
|
|
- <v-select
|
|
|
|
- v-model="queryParam.settleState"
|
|
|
|
- ref="settleState"
|
|
|
|
- id="salesCollectionList-settleState"
|
|
|
|
- code="FINANCIAL_RECEIVE_STATUS"
|
|
|
|
- placeholder="请选择财务状态"
|
|
|
|
- allowClear></v-select>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="单据状态">
|
|
|
|
- <v-select
|
|
|
|
- v-model="queryParam.voidFlag"
|
|
|
|
- ref="voidFlag"
|
|
|
|
- id="salesCollectionList-voidFlag"
|
|
|
|
- code="VOID_FLAG"
|
|
|
|
- placeholder="请选择单据状态"
|
|
|
|
- allowClear></v-select>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="对单状态">
|
|
|
|
- <v-select
|
|
|
|
- v-model="queryParam.checkStatus"
|
|
|
|
- ref="checkStatus"
|
|
|
|
- id="salesCollectionList-checkStatus"
|
|
|
|
- code="CHECK_STATUS"
|
|
|
|
- placeholder="请选择对单状态"
|
|
|
|
- allowClear></v-select>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="所在区域">
|
|
|
|
- <subarea id="salesCollectionList-subarea" ref="subarea" @change="subareaChange"></subarea>
|
|
|
|
- </a-form-item>
|
|
|
|
|
|
+ <a-button type="primary" @click="searchTable" :disabled="disabled" id="salesCollectionList-refresh">查询</a-button>
|
|
|
|
+ <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="salesCollectionList-reset">重置</a-button>
|
|
|
|
+ <a @click="advanced=!advanced" style="margin-left: 5px">
|
|
|
|
+ {{ advanced ? '收起' : '展开' }}
|
|
|
|
+ <a-icon :type="advanced ? 'up' : 'down'"/>
|
|
|
|
+ </a>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="地区" prop="dealerProvinceSn" style="margin: 0;">
|
|
|
|
- <Area id="salesCollectionList-dealerProvinceSn" v-model="queryParam.dealerProvinceSn" placeholder="请选择省"></Area>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- </template>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-button type="primary" @click="searchTable" :disabled="disabled" id="salesCollectionList-refresh">查询</a-button>
|
|
|
|
- <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="salesCollectionList-reset">重置</a-button>
|
|
|
|
- <a @click="advanced=!advanced" style="margin-left: 5px">
|
|
|
|
- {{ advanced ? '收起' : '展开' }}
|
|
|
|
- <a-icon :type="advanced ? 'up' : 'down'"/>
|
|
|
|
- </a>
|
|
|
|
- </a-col>
|
|
|
|
- </a-row>
|
|
|
|
- </a-form>
|
|
|
|
- </div>
|
|
|
|
- </a-card>
|
|
|
|
-
|
|
|
|
- <a-card size="small" :bordered="false" class="salesCollectionList-wrap">
|
|
|
|
- <a-spin :spinning="spinning" tip="Loading...">
|
|
|
|
- <!-- 操作按钮 -->
|
|
|
|
- <div class="table-operator" v-if="$hasPermissions('B_salesCollection_receipt')">
|
|
|
|
- <a-button type="primary" @click="handlePlColle()">批量收款</a-button>
|
|
|
|
- <span style="margin-left: 8px">
|
|
|
|
- <template v-if="rowSelectionInfo && rowSelectionInfo.selectedRowKeys.length>0">{{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}</template>
|
|
|
|
- </span>
|
|
|
|
|
|
+ </a-row>
|
|
|
|
+ </a-form>
|
|
</div>
|
|
</div>
|
|
- <!-- 列表 -->
|
|
|
|
- <s-table
|
|
|
|
- class="sTable fixPagination"
|
|
|
|
- ref="table"
|
|
|
|
- :style="{ height: tableHeight+68+'px' }"
|
|
|
|
- size="small"
|
|
|
|
- :row-selection="showSelect?{ columnWidth: 40, getCheckboxProps: record => ({ props: { disabled: record.settleState=='FINISH' } })}:null"
|
|
|
|
- @rowSelection="rowSelectionFun"
|
|
|
|
- :rowKey="(record) => record.id"
|
|
|
|
- :columns="columns"
|
|
|
|
- :data="loadData"
|
|
|
|
- :scroll="{ y: tableHeight }"
|
|
|
|
- :defaultLoadData="false"
|
|
|
|
- bordered>
|
|
|
|
- <!-- 单号 -->
|
|
|
|
- <template slot="bizNo" slot-scope="text, record">
|
|
|
|
- <span v-if="$hasPermissions('B_salesDetail')" class="link-bule" @click="handleDetail(record,0)">{{ record.bizNo }}</span>
|
|
|
|
- <span v-else>{{ record.bizNo }}</span>
|
|
|
|
- </template>
|
|
|
|
- <!-- 下推单号 -->
|
|
|
|
- <template slot="dispatchBillNo" slot-scope="text, record">
|
|
|
|
- <span v-if="$hasPermissions('B_dispatchDetail')" class="link-bule" @click="handleDetail(record,1)">{{ record.dispatchBillNo }}</span>
|
|
|
|
- <span v-else>{{ record.dispatchBillNo || '--' }}</span>
|
|
|
|
- </template>
|
|
|
|
- <!-- 操作 -->
|
|
|
|
- <template slot="action" slot-scope="text, record">
|
|
|
|
- <a-button
|
|
|
|
- size="small"
|
|
|
|
- type="link"
|
|
|
|
- v-if="record.settleState=='WAIT' && record.voidFlag!=1 && $hasPermissions('B_salesCollection_receipt')"
|
|
|
|
- class="button-warning"
|
|
|
|
- @click="handleColle(record)"
|
|
|
|
- id="financialCollectionList-audit-btn">收款</a-button>
|
|
|
|
- <a-button
|
|
|
|
- size="small"
|
|
|
|
- type="link"
|
|
|
|
- v-if="record.settleState=='FINISH' && $hasPermissions('B_salesCollection_record')"
|
|
|
|
- class="button-success"
|
|
|
|
- @click="handleVoucher(record)"
|
|
|
|
- id="financialCollectionList-voucher-btn">凭证</a-button>
|
|
|
|
- <span v-if="record.settleState=='WAIT' && record.voidFlag==1">--</span>
|
|
|
|
- </template>
|
|
|
|
- </s-table>
|
|
|
|
|
|
+ </a-card>
|
|
|
|
|
|
- <!-- 销售收款凭证 -->
|
|
|
|
- <voucherModal v-drag ref="voucherModal" modalTit="销售收款凭证" :openModal="showVoucher" @cancel="closeVoucherModal"></voucherModal>
|
|
|
|
-
|
|
|
|
- <!-- 销售收款弹框 -->
|
|
|
|
- <commonModal
|
|
|
|
- :openModal="showSkModal"
|
|
|
|
- modalTit="销售收款"
|
|
|
|
- @cancel="closeColleModal"
|
|
|
|
- @ok="handleSaveColle"
|
|
|
|
- >
|
|
|
|
- <div style="text-align: center;line-height: 24px;">
|
|
|
|
- <div v-if="handlePlData.length">{{ handlePlData[0].settleClientName }},共 {{ handlePlData && handlePlData.length }} 个备货单,合计 {{ $hasPermissions('B_salesCollection_receipt_salesPrice') ? toThousands(totalAmount) : '--' }} 元</div>
|
|
|
|
- <div style="padding: 15px 0;font-weight: bold;font-size:14px;">请确认收款类型变更为标记收款吗?</div>
|
|
|
|
|
|
+ <a-card size="small" :bordered="false" class="salesCollectionList-wrap">
|
|
|
|
+ <a-spin :spinning="spinning" tip="Loading...">
|
|
|
|
+ <!-- 操作按钮 -->
|
|
|
|
+ <div class="table-operator" v-if="$hasPermissions('B_salesCollection_receipt')">
|
|
|
|
+ <a-button type="primary" @click="handlePlColle()">批量收款</a-button>
|
|
|
|
+ <span style="margin-left: 8px">
|
|
|
|
+ <template v-if="rowSelectionInfo && rowSelectionInfo.selectedRowKeys.length>0">{{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}</template>
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
- </commonModal>
|
|
|
|
|
|
+ <!-- 列表 -->
|
|
|
|
+ <s-table
|
|
|
|
+ class="sTable fixPagination"
|
|
|
|
+ ref="table"
|
|
|
|
+ :style="{ height: tableHeight+68+'px' }"
|
|
|
|
+ size="small"
|
|
|
|
+ :row-selection="showSelect?{ columnWidth: 40, getCheckboxProps: record => ({ props: { disabled: record.settleState=='FINISH' } })}:null"
|
|
|
|
+ @rowSelection="rowSelectionFun"
|
|
|
|
+ :rowKey="(record) => record.id"
|
|
|
|
+ :columns="columns"
|
|
|
|
+ :data="loadData"
|
|
|
|
+ :scroll="{ y: tableHeight }"
|
|
|
|
+ :defaultLoadData="false"
|
|
|
|
+ bordered>
|
|
|
|
+ <!-- 单号 -->
|
|
|
|
+ <template slot="bizNo" slot-scope="text, record">
|
|
|
|
+ <span v-if="$hasPermissions('B_salesDetail')" class="link-bule" @click="handleDetail(record,0)">{{ record.bizNo }}</span>
|
|
|
|
+ <span v-else>{{ record.bizNo }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 下推单号 -->
|
|
|
|
+ <template slot="dispatchBillNo" slot-scope="text, record">
|
|
|
|
+ <span v-if="$hasPermissions('B_dispatchDetail')" class="link-bule" @click="handleDetail(record,1)">{{ record.dispatchBillNo }}</span>
|
|
|
|
+ <span v-else>{{ record.dispatchBillNo || '--' }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 操作 -->
|
|
|
|
+ <template slot="action" slot-scope="text, record">
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="link"
|
|
|
|
+ v-if="record.settleState=='WAIT' && record.voidFlag!=1 && $hasPermissions('B_salesCollection_receipt')"
|
|
|
|
+ class="button-warning"
|
|
|
|
+ @click="handleColle(record)"
|
|
|
|
+ id="financialCollectionList-audit-btn">收款</a-button>
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="link"
|
|
|
|
+ v-if="record.settleState=='FINISH' && $hasPermissions('B_salesCollection_record')"
|
|
|
|
+ class="button-success"
|
|
|
|
+ @click="handleVoucher(record)"
|
|
|
|
+ id="financialCollectionList-voucher-btn">凭证</a-button>
|
|
|
|
+ <span v-if="record.settleState=='WAIT' && record.voidFlag==1">--</span>
|
|
|
|
+ </template>
|
|
|
|
+ </s-table>
|
|
|
|
|
|
- <!-- 查看销售单或备货单详情 -->
|
|
|
|
- <commonModal
|
|
|
|
- :modalTit="detailType?'备货单详情':'销售单详情'"
|
|
|
|
- bodyPadding="10px"
|
|
|
|
- width="70%"
|
|
|
|
- :showFooter="false"
|
|
|
|
- :openModal="showDetailModal"
|
|
|
|
- @cancel="cancelDetail">
|
|
|
|
- <salesDetail v-if="detailType==0" ref="salesDetail" :bizSn="bizSn"></salesDetail>
|
|
|
|
- <dispatchDetail v-if="detailType==1" ref="dispatchDetail" :bizSn="bizSn"></dispatchDetail>
|
|
|
|
- </commonModal>
|
|
|
|
- </a-spin>
|
|
|
|
- </a-card>
|
|
|
|
|
|
+ <!-- 销售收款凭证 -->
|
|
|
|
+ <voucherModal v-drag ref="voucherModal" modalTit="销售收款凭证" :openModal="showVoucher" @cancel="closeVoucherModal"></voucherModal>
|
|
|
|
+
|
|
|
|
+ <!-- 销售收款弹框 -->
|
|
|
|
+ <commonModal
|
|
|
|
+ :openModal="showSkModal"
|
|
|
|
+ modalTit="销售收款"
|
|
|
|
+ @cancel="closeColleModal"
|
|
|
|
+ @ok="handleSaveColle"
|
|
|
|
+ >
|
|
|
|
+ <div style="text-align: center;line-height: 24px;">
|
|
|
|
+ <div v-if="handlePlData.length">{{ handlePlData[0].settleClientName }},共 {{ handlePlData && handlePlData.length }} 个备货单,合计 {{ $hasPermissions('B_salesCollection_receipt_salesPrice') ? toThousands(totalAmount) : '--' }} 元</div>
|
|
|
|
+ <div style="padding: 15px 0;font-weight: bold;font-size:14px;">请确认收款类型变更为标记收款吗?</div>
|
|
|
|
+ </div>
|
|
|
|
+ </commonModal>
|
|
|
|
+
|
|
|
|
+ <!-- 查看销售单或备货单详情 -->
|
|
|
|
+ <commonModal
|
|
|
|
+ :modalTit="detailType?'备货单详情':'销售单详情'"
|
|
|
|
+ bodyPadding="10px"
|
|
|
|
+ width="70%"
|
|
|
|
+ :showFooter="false"
|
|
|
|
+ :openModal="showDetailModal"
|
|
|
|
+ @cancel="cancelDetail">
|
|
|
|
+ <salesDetail v-if="detailType==0" ref="salesDetail" :bizSn="bizSn"></salesDetail>
|
|
|
|
+ <dispatchDetail v-if="detailType==1" ref="dispatchDetail" :bizSn="bizSn"></dispatchDetail>
|
|
|
|
+ </commonModal>
|
|
|
|
+ </a-spin>
|
|
|
|
+ </a-card>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -223,11 +228,11 @@ import dispatchDetail from '@/views/salesManagement/pushOrderManagement/detail.v
|
|
import voucherModal from './voucherModal.vue'
|
|
import voucherModal from './voucherModal.vue'
|
|
import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
|
|
import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
|
|
import { settleReceiptList, settleReceiptBatch } from '@/api/settleReceipt'
|
|
import { settleReceiptList, settleReceiptBatch } from '@/api/settleReceipt'
|
|
-
|
|
|
|
|
|
+import customerService from '@/views/common/customerService'
|
|
export default {
|
|
export default {
|
|
name: 'SalesCollectionList',
|
|
name: 'SalesCollectionList',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
- components: { STable, VSelect, subarea, rangeDate, commonModal, Area, voucherModal, dealerSubareaScopeList, salesDetail, dispatchDetail },
|
|
|
|
|
|
+ components: { STable, VSelect, subarea, rangeDate, commonModal, Area, voucherModal, dealerSubareaScopeList, salesDetail, dispatchDetail, customerService },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
@@ -250,7 +255,7 @@ export default {
|
|
dealerLevel: undefined,
|
|
dealerLevel: undefined,
|
|
settleStyle: undefined,
|
|
settleStyle: undefined,
|
|
keepType: undefined,
|
|
keepType: undefined,
|
|
- subareaArea:{
|
|
|
|
|
|
+ subareaArea: {
|
|
subareaSn: undefined,
|
|
subareaSn: undefined,
|
|
subareaAreaSn: undefined
|
|
subareaAreaSn: undefined
|
|
},
|
|
},
|
|
@@ -260,7 +265,8 @@ export default {
|
|
dealerProvinceSn: undefined,
|
|
dealerProvinceSn: undefined,
|
|
dealerCitySn: undefined,
|
|
dealerCitySn: undefined,
|
|
dealerCountySn: undefined,
|
|
dealerCountySn: undefined,
|
|
- checkStatus: undefined
|
|
|
|
|
|
+ checkStatus: undefined,
|
|
|
|
+ bizUserSn: undefined
|
|
},
|
|
},
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
auditDate: [], // 审核时间
|
|
auditDate: [], // 审核时间
|
|
@@ -356,7 +362,7 @@ export default {
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.clearSelected()
|
|
this.$refs.table.clearSelected()
|
|
},
|
|
},
|
|
- subareaChange(val){
|
|
|
|
|
|
+ subareaChange (val) {
|
|
this.queryParam.subareaArea.subareaSn = val[0] ? val[0] : undefined
|
|
this.queryParam.subareaArea.subareaSn = val[0] ? val[0] : undefined
|
|
this.queryParam.subareaArea.subareaAreaSn = val[1] ? val[1] : undefined
|
|
this.queryParam.subareaArea.subareaAreaSn = val[1] ? val[1] : undefined
|
|
},
|
|
},
|
|
@@ -390,7 +396,8 @@ export default {
|
|
this.queryParam.dealerCitySn = undefined
|
|
this.queryParam.dealerCitySn = undefined
|
|
this.queryParam.dealerCountySn = undefined
|
|
this.queryParam.dealerCountySn = undefined
|
|
this.queryParam.checkStatus = undefined
|
|
this.queryParam.checkStatus = undefined
|
|
- if(this.advanced){
|
|
|
|
|
|
+ this.queryParam.bizUserSn = undefined
|
|
|
|
+ if (this.advanced) {
|
|
this.$refs.subarea.clearData()
|
|
this.$refs.subarea.clearData()
|
|
}
|
|
}
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
@@ -439,7 +446,7 @@ export default {
|
|
this.$refs.voucherModal.getData(row)
|
|
this.$refs.voucherModal.getData(row)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- closeVoucherModal(){
|
|
|
|
|
|
+ closeVoucherModal () {
|
|
this.showVoucher = false
|
|
this.showVoucher = false
|
|
this.$store.state.app.curActionPermission = ''
|
|
this.$store.state.app.curActionPermission = ''
|
|
},
|
|
},
|
|
@@ -449,7 +456,7 @@ export default {
|
|
this.$store.state.app.curActionPermission = 'B_salesCollection_receipt'
|
|
this.$store.state.app.curActionPermission = 'B_salesCollection_receipt'
|
|
this.showSkModal = true
|
|
this.showSkModal = true
|
|
},
|
|
},
|
|
- closeColleModal(){
|
|
|
|
|
|
+ closeColleModal () {
|
|
this.showSkModal = false
|
|
this.showSkModal = false
|
|
this.$store.state.app.curActionPermission = ''
|
|
this.$store.state.app.curActionPermission = ''
|
|
},
|
|
},
|
|
@@ -520,4 +527,3 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
-
|
|
|