|
@@ -1,94 +1,99 @@
|
|
|
<template>
|
|
|
+ <div>
|
|
|
<a-card size="small" :bordered="false" class="returnConfirmationList-wrap">
|
|
|
- <a-spin :spinning="spinning" tip="Loading...">
|
|
|
- <!-- 搜索条件 -->
|
|
|
- <div ref="tableSearch" class="table-page-search-wrapper">
|
|
|
- <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
- <a-row :gutter="15">
|
|
|
+ <!-- 搜索条件 -->
|
|
|
+ <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="rangeDate" @change="dateChange" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
|
|
|
+ <dealerSubareaScopeList ref="dealerSubareaScopeList" id="returnConfirmationList-buyerSn" @change="custChange" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-item label="销退单号">
|
|
|
+ <a-input id="returnConfirmationList-salesReturnBillNo" v-model.trim="queryParam.salesReturnBillNo" allowClear placeholder="请输入销退单号"/>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-item label="单据来源">
|
|
|
+ <v-select
|
|
|
+ v-model="queryParam.salesReturnBillSource"
|
|
|
+ ref="salesReturnBillSource"
|
|
|
+ id="returnConfirmationList-salesReturnBillSource"
|
|
|
+ code="SALES_SOURCE"
|
|
|
+ placeholder="请选择单据来源"
|
|
|
+ allowClear></v-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <template v-if="advanced">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="创建时间">
|
|
|
- <rangeDate ref="rangeDate" @change="dateChange" />
|
|
|
+ <a-form-item label="状态">
|
|
|
+ <v-select
|
|
|
+ v-model="queryParam.billStatus"
|
|
|
+ ref="billStatus"
|
|
|
+ id="returnConfirmationList-billStatus"
|
|
|
+ code="SALES_RETURN_CONFIRM_STATUS"
|
|
|
+ placeholder="请选择状态"
|
|
|
+ allowClear></v-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
|
|
|
- <dealerSubareaScopeList ref="dealerSubareaScopeList" id="returnConfirmationList-buyerSn" @change="custChange" />
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="仓库">
|
|
|
+ <chooseWarehouse ref="warehouse" v-model="queryParam.warehouseSn"></chooseWarehouse>
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="销退单号">
|
|
|
- <a-input id="returnConfirmationList-salesReturnBillNo" v-model.trim="queryParam.salesReturnBillNo" allowClear placeholder="请输入销退单号"/>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="退货类别" prop="goodFlag">
|
|
|
+ <v-select
|
|
|
+ v-model="queryParam.goodFlag"
|
|
|
+ ref="goodFlag"
|
|
|
+ id="returnSchedule-goodFlag"
|
|
|
+ code="GOOD_FLAG"
|
|
|
+ placeholder="请选择退货类别"
|
|
|
+ allowClear></v-select>
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
- <template v-if="advanced">
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="单据来源">
|
|
|
- <v-select
|
|
|
- v-model="queryParam.salesReturnBillSource"
|
|
|
- ref="salesReturnBillSource"
|
|
|
- id="returnConfirmationList-salesReturnBillSource"
|
|
|
- code="SALES_SOURCE"
|
|
|
- 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="returnConfirmationList-billStatus"
|
|
|
- code="SALES_RETURN_CONFIRM_STATUS"
|
|
|
- placeholder="请选择状态"
|
|
|
- allowClear></v-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-model-item label="仓库">
|
|
|
- <chooseWarehouse ref="warehouse" v-model="queryParam.warehouseSn"></chooseWarehouse>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-model-item label="退货类别" prop="goodFlag">
|
|
|
- <v-select
|
|
|
- v-model="queryParam.goodFlag"
|
|
|
- ref="goodFlag"
|
|
|
- id="returnSchedule-goodFlag"
|
|
|
- code="GOOD_FLAG"
|
|
|
- placeholder="请选择退货类别"
|
|
|
- allowClear></v-select>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-model-item label="退货类型">
|
|
|
- <v-select
|
|
|
- v-model="queryParam.salesReturnType"
|
|
|
- id="departUser-salesReturnType"
|
|
|
- code="SALES_RETURN_TYPE"
|
|
|
- placeholder="请选择退货类型"
|
|
|
- allowClear></v-select>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- </template>
|
|
|
- <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
|
- <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="returnConfirmationList-refresh">查询</a-button>
|
|
|
- <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="returnConfirmationList-reset">重置</a-button>
|
|
|
- <a @click="advanced=!advanced" style="margin-left: 5px">
|
|
|
- {{ advanced ? '收起' : '展开' }}
|
|
|
- <a-icon :type="advanced ? 'up' : 'down'"/>
|
|
|
- </a>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-model-item label="退货类型">
|
|
|
+ <v-select
|
|
|
+ v-model="queryParam.salesReturnType"
|
|
|
+ id="departUser-salesReturnType"
|
|
|
+ code="SALES_RETURN_TYPE"
|
|
|
+ placeholder="请选择退货类型"
|
|
|
+ allowClear></v-select>
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
- </a-row>
|
|
|
- </a-form>
|
|
|
- </div>
|
|
|
+ </template>
|
|
|
+ <a-col :md="24" :sm="24" style="text-align: center;">
|
|
|
+ <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="returnConfirmationList-refresh">查询</a-button>
|
|
|
+ <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="returnConfirmationList-reset">重置</a-button>
|
|
|
+ <a @click="advanced=!advanced" style="margin-left: 8px">
|
|
|
+ {{ advanced ? '收起' : '展开' }}
|
|
|
+ <a-icon :type="advanced ? 'up' : 'down'"/>
|
|
|
+ </a>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form>
|
|
|
+ </div>
|
|
|
+ </a-card>
|
|
|
+
|
|
|
+ <a-card size="small" :bordered="false" class="returnConfirmationList-wrap">
|
|
|
+ <a-spin :spinning="spinning" tip="Loading...">
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
|
class="sTable fixPagination"
|
|
|
ref="table"
|
|
|
- :style="{ height: tableHeight+84.5+'px' }"
|
|
|
+ :style="{ height: tableHeight+70+'px' }"
|
|
|
size="small"
|
|
|
:rowKey="(record) => record.id"
|
|
|
:columns="columns"
|
|
|
+ :pageSize="30"
|
|
|
:data="loadData"
|
|
|
:scroll="{ y: tableHeight }"
|
|
|
:defaultLoadData="false"
|
|
@@ -114,6 +119,7 @@
|
|
|
<!-- 查看 -->
|
|
|
<confirmation-detail-modal v-drag :openModal="openModal" :itemSn="itemSn" @close="closeModal" />
|
|
|
</a-card>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -268,7 +274,7 @@ export default {
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
- this.tableHeight = window.innerHeight - tableSearchH - 200
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - 210
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -308,12 +314,11 @@ export default {
|
|
|
|
|
|
<style lang="less">
|
|
|
.returnConfirmationList-wrap{
|
|
|
- .active{
|
|
|
- color: #ed1c24;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
- .common{
|
|
|
- color: rgba(0, 0, 0);
|
|
|
- }
|
|
|
+ margin-bottom: 6px;
|
|
|
+ &:first-child{
|
|
|
+ .ant-card-body{
|
|
|
+ padding-bottom: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|