|
@@ -1,239 +1,244 @@
|
|
|
<template>
|
|
|
<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="rangeCreateDate" :value="createDate" @change="dateCreateChange" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="审核时间">
|
|
|
- <rangeDate ref="rangeExamineDate" @change="dateExamineChange" />
|
|
|
- </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="salesReturn-buyerSn" @change="custChange" />
|
|
|
- </a-form-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>
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="总部销退单号">
|
|
|
- <a-input id="salesReturn-salesReturnBillNo" v-model.trim="queryParam.salesReturnBillNo" 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-form-item label="客户采退申请单号">
|
|
|
- <a-input id="salesReturn-purchaseReturnApplyNo" v-model.trim="queryParam.purchaseReturnApplyNo" allowClear placeholder="请输入客户采退申请单号"/>
|
|
|
+ <a-form-item label="创建时间">
|
|
|
+ <rangeDate ref="rangeCreateDate" :value="createDate" @change="dateCreateChange" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="单据来源">
|
|
|
- <v-select
|
|
|
- v-model="queryParam.salesReturnBillSource"
|
|
|
- ref="salesReturnBillSource"
|
|
|
- id="salesReturn-salesReturnBillSource"
|
|
|
- code="SALES_SOURCE"
|
|
|
- placeholder="请选择单据来源"
|
|
|
- allowClear></v-select>
|
|
|
+ <a-form-item label="审核时间">
|
|
|
+ <rangeDate ref="rangeExamineDate" @change="dateExamineChange" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="是否同步给客户">
|
|
|
- <v-select
|
|
|
- v-model="queryParam.syncFlag"
|
|
|
- ref="syncFlag"
|
|
|
- id="salesReturn-syncFlag"
|
|
|
- code="FLAG"
|
|
|
- placeholder="请选择是否同步给客户"
|
|
|
- allowClear></v-select>
|
|
|
+ <a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
|
|
|
+ <dealerSubareaScopeList ref="dealerSubareaScopeList" id="salesReturn-buyerSn" @change="custChange" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="业务状态">
|
|
|
+ <a-form-model-item label="退货类别" prop="goodFlag">
|
|
|
<v-select
|
|
|
- v-model="queryParam.billStatus"
|
|
|
- ref="billStatus"
|
|
|
- id="salesReturn-billStatus"
|
|
|
- code="SALES_RETURN_BILL_STATUS"
|
|
|
- placeholder="请选择业务状态"
|
|
|
+ v-model="queryParam.goodFlag"
|
|
|
+ ref="goodFlag"
|
|
|
+ id="returnSchedule-goodFlag"
|
|
|
+ code="GOOD_FLAG"
|
|
|
+ placeholder="请选择退货类别"
|
|
|
allowClear></v-select>
|
|
|
- </a-form-item>
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-model-item label="所在区域">
|
|
|
- <subarea id="salesReturn-subarea" ref="subarea" @change="subareaChange"></subarea>
|
|
|
+ <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-col :md="6" :sm="24">
|
|
|
- <a-form-model-item label="地区" prop="shippingAddrProvinceSn">
|
|
|
- <Area id="salesReturn-provinceSn" v-model="queryParam.shippingAddrProvinceSn" placeholder="请选择省"></Area>
|
|
|
- </a-form-model-item>
|
|
|
+ <a-form-item label="总部销退单号">
|
|
|
+ <a-input id="salesReturn-salesReturnBillNo" v-model.trim="queryParam.salesReturnBillNo" allowClear placeholder="请输入总部销退单号"/>
|
|
|
+ </a-form-item>
|
|
|
</a-col>
|
|
|
+ <template v-if="advanced">
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-item label="客户采退申请单号">
|
|
|
+ <a-input id="salesReturn-purchaseReturnApplyNo" v-model.trim="queryParam.purchaseReturnApplyNo" 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="salesReturn-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.syncFlag"
|
|
|
+ ref="syncFlag"
|
|
|
+ id="salesReturn-syncFlag"
|
|
|
+ code="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.billStatus"
|
|
|
+ ref="billStatus"
|
|
|
+ id="salesReturn-billStatus"
|
|
|
+ code="SALES_RETURN_BILL_STATUS"
|
|
|
+ placeholder="请选择业务状态"
|
|
|
+ allowClear></v-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-model-item label="所在区域">
|
|
|
+ <subarea id="salesReturn-subarea" ref="subarea" @change="subareaChange"></subarea>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-model-item label="地区" prop="shippingAddrProvinceSn">
|
|
|
+ <Area id="salesReturn-provinceSn" v-model="queryParam.shippingAddrProvinceSn" placeholder="请选择省"></Area>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-model-item label="退货仓库">
|
|
|
+ <warehouse ref="warehouse" v-model="queryParam.warehouseSn"></warehouse>
|
|
|
+ </a-form-model-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-form-model-item label="退货仓库">
|
|
|
- <warehouse ref="warehouse" v-model="queryParam.warehouseSn"></warehouse>
|
|
|
- </a-form-model-item>
|
|
|
+ <span class="table-page-search-submitButtons">
|
|
|
+ <a-button type="primary" :disabled="disabled" @click="$refs.table.refresh(true)">查询</a-button>
|
|
|
+ <a-button style="margin-left: 8px" :disabled="disabled" @click="resetSearchForm()">重置</a-button>
|
|
|
+ <a @click="advanced=!advanced" style="margin-left: 8px">
|
|
|
+ {{ advanced ? '收起' : '展开' }}
|
|
|
+ <a-icon :type="advanced ? 'up' : 'down'"/>
|
|
|
+ </a>
|
|
|
+ </span>
|
|
|
</a-col>
|
|
|
- </template>
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <span class="table-page-search-submitButtons">
|
|
|
- <a-button type="primary" :disabled="disabled" @click="$refs.table.refresh(true)">查询</a-button>
|
|
|
- <a-button style="margin-left: 8px" :disabled="disabled" @click="resetSearchForm()">重置</a-button>
|
|
|
- <a @click="advanced=!advanced" style="margin-left: 8px">
|
|
|
- {{ advanced ? '收起' : '展开' }}
|
|
|
- <a-icon :type="advanced ? 'up' : 'down'"/>
|
|
|
- </a>
|
|
|
- </span>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form>
|
|
|
- </div>
|
|
|
- </a-card>
|
|
|
-
|
|
|
- <a-card size="small" :bordered="false" class="salesReturn-wrap">
|
|
|
- <a-spin :spinning="spinning" tip="Loading...">
|
|
|
- <div class="table-operator" style="flex-grow: 1;display: flex;justify-content: space-between;align-items: center;">
|
|
|
- <div style="flex-grow: 1;display: flex;align-items: center;">
|
|
|
- <!-- 操作按钮 -->
|
|
|
- <div>
|
|
|
- <a-button type="primary" v-if="$hasPermissions('B_salesReturnNew')" @click="openModal = true">新增</a-button>
|
|
|
- </div>
|
|
|
- <div class="tongji-bar">
|
|
|
- 总单数:{{ countData&&countData.totalRecord||0 }};
|
|
|
- 申请退货数量:{{ countData&&countData.totalInitialQty||0 }};
|
|
|
- 仓库实收数量:{{ countData&&countData.totalReceiveQty||0 }};
|
|
|
- 坏件数量:{{ countData&&countData.totalBadQty||0 }};
|
|
|
- 良品数量:{{ countData&&countData.totalGoodQty||0 }};
|
|
|
- 返库数量:{{ countData&&countData.totalBackStockQty||0 }};
|
|
|
- <span v-if="$hasPermissions('M_salesReturnList_salesPrice')">
|
|
|
- 实际退货金额:{{ countData&&countData.totalAmount?toThousands(countData.totalAmount):0 }};
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div></div>
|
|
|
+ </a-row>
|
|
|
+ </a-form>
|
|
|
</div>
|
|
|
- <!-- 列表 -->
|
|
|
- <s-table
|
|
|
- class="sTable fixPagination"
|
|
|
- ref="table"
|
|
|
- :style="{ height: tableHeight+85+'px' }"
|
|
|
- size="small"
|
|
|
- :rowKey="(record) => record.id"
|
|
|
- :columns="columns"
|
|
|
- :data="loadData"
|
|
|
- :scroll="{ y: tableHeight }"
|
|
|
- :defaultLoadData="false"
|
|
|
- bordered>
|
|
|
- <!-- 单号 -->
|
|
|
- <template slot="salesReturnBillNo" slot-scope="text, record">
|
|
|
- <div v-if="$hasPermissions('B_salesReturnDetail')">
|
|
|
- <a-badge :count="'改'" :offset="[16,-13]" v-if="record.changeFlag==1" class="badge-con-t">
|
|
|
- <span class="link-bule" @click="handleDetail(record)">{{ record.salesReturnBillNo }}</span>
|
|
|
- </a-badge>
|
|
|
- <span v-else class="link-bule" @click="handleDetail(record)">{{ record.salesReturnBillNo }}</span>
|
|
|
- </div>
|
|
|
- <div v-else>{{ record.salesReturnBillNo }}</div>
|
|
|
- </template>
|
|
|
- <!-- 提货单 -->
|
|
|
- <template slot="pickUpSalesReturnNum" slot-scope="text, record">
|
|
|
- <span class="link-bule" @click="handleBillOfLadingDetail(record)">{{ record.pickUpSalesReturnNum }}</span>
|
|
|
- </template>
|
|
|
- <!-- 操作 -->
|
|
|
- <template slot="action" slot-scope="text, record">
|
|
|
- <div>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- type="link"
|
|
|
- class="button-warning"
|
|
|
- v-if="record.billStatus == 'WAIT_AUDIT'&&$hasPermissions('B_salesReturnAudit')"
|
|
|
- @click="handleEexamine(record)"
|
|
|
- id="salesReturn-eexamine-btn">审核进度</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- type="link"
|
|
|
- class="button-warning"
|
|
|
- v-if="record.salesReturnBillSource != 'SALES'&&record.billStatus == 'WAIT_SUBMIT'&&$hasPermissions('B_salseReturnSubmit')"
|
|
|
- @click="beforeSubmit(record)"
|
|
|
- id="salesReturn-eexamine-btn">提交</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- v-if="record.billStatus == 'WAIT_SUBMIT' && $hasPermissions('B_salesReturnEdit')"
|
|
|
- type="link"
|
|
|
- class="button-info"
|
|
|
- @click="handleEdit(record)"
|
|
|
- id="salesReturn-edit-btn">{{ record.salesReturnBillSource == 'SALES' ? '编辑' : '改单' }}</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- v-if="(record.billStatus == 'WAIT_SUBMIT'|| record.billStatus == 'AUDIT_REJECT') && $hasPermissions('B_salesReturnDel')"
|
|
|
- type="link"
|
|
|
- class="button-error"
|
|
|
- @click="handleDel(record)"
|
|
|
- id="salesReturn-del-btn">{{ record.salesReturnBillSource == 'SALES' ? '删除' : '取消' }}</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- type="link"
|
|
|
- class="button-info"
|
|
|
- v-if="record.billStatus == 'AUDIT_REJECT'&& $hasPermissions('B_salesReturnAgainSubmit')"
|
|
|
- @click="handleEdit(record)"
|
|
|
- id="salesReturn-edit-btn">再次提交</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- type="link"
|
|
|
- class="button-info"
|
|
|
- v-if="record.billStatus == 'WAIT_RECEIVE'&& $hasPermissions('B_newPickUp')"
|
|
|
- @click="handlePickUp(record)"
|
|
|
- id="salesReturn-edit-btn">申请提货</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- type="link"
|
|
|
- class="button-error"
|
|
|
- v-if="record.billStatus == 'WAIT_RECEIVE'&&record.salesReturnBillSource=='PURCHASE'&&record.cancelFlag==1"
|
|
|
- @click="handleCansel(record)"
|
|
|
- id="salesReturn-cansel-btn">取消</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- type="link"
|
|
|
- class="button-info"
|
|
|
- v-if="(record.billStatus == 'FINANCIAL_REJECT'||record.billStatus == 'WAIT_CUSTOMER_SERVICE_CONFIRM')&& $hasPermissions('B_salesReturnConfirm')"
|
|
|
- @click="handleConfirm(record)"
|
|
|
- id="salesReturn-edit-btn">客服确认</a-button>
|
|
|
+ </a-card>
|
|
|
+
|
|
|
+ <a-card size="small" :bordered="false" class="salesReturn-wrap">
|
|
|
+ <a-spin :spinning="spinning" tip="Loading...">
|
|
|
+ <div class="table-operator" style="flex-grow: 1;display: flex;justify-content: space-between;align-items: center;">
|
|
|
+ <div style="flex-grow: 1;display: flex;align-items: center;">
|
|
|
+ <!-- 操作按钮 -->
|
|
|
+ <div>
|
|
|
+ <a-button type="primary" v-if="$hasPermissions('B_salesReturnNew')" @click="openModal = true">新增</a-button>
|
|
|
+ </div>
|
|
|
+ <div class="tongji-bar">
|
|
|
+ 总单数:{{ countData&&countData.totalRecord||0 }};
|
|
|
+ 申请退货数量:{{ countData&&countData.totalInitialQty||0 }};
|
|
|
+ 仓库实收数量:{{ countData&&countData.totalReceiveQty||0 }};
|
|
|
+ 坏件数量:{{ countData&&countData.totalBadQty||0 }};
|
|
|
+ 良品数量:{{ countData&&countData.totalGoodQty||0 }};
|
|
|
+ 返库数量:{{ countData&&countData.totalBackStockQty||0 }};
|
|
|
+ <span v-if="$hasPermissions('M_salesReturnList_salesPrice')">
|
|
|
+ 实际退货金额:{{ countData&&countData.totalAmount?toThousands(countData.totalAmount):0 }};
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </template>
|
|
|
- </s-table>
|
|
|
- </a-spin>
|
|
|
- <!-- 选择客户弹框 -->
|
|
|
- <choose-custom-modal :show="openModal" @ok="handleEdit" @cancel="openModal=false"></choose-custom-modal>
|
|
|
- <!-- 审核进度 -->
|
|
|
- <verifyModal v-drag :openModal="visibleAudit" :itemSn="auditInfo&&auditInfo.salesReturnBillSn" @close="visibleAudit=false"></verifyModal>
|
|
|
- <!-- 选择审核人员 -->
|
|
|
- <chooseDepartUserModal v-drag :openModal="openDepartUserModal" @close="openDepartUserModal=false" @submit="handleSubmit"></chooseDepartUserModal>
|
|
|
- </a-card>
|
|
|
+ <div></div>
|
|
|
+ </div>
|
|
|
+ <!-- 列表 -->
|
|
|
+ <s-table
|
|
|
+ class="sTable fixPagination"
|
|
|
+ ref="table"
|
|
|
+ :style="{ height: tableHeight+85+'px' }"
|
|
|
+ size="small"
|
|
|
+ :rowKey="(record) => record.id"
|
|
|
+ :columns="columns"
|
|
|
+ :data="loadData"
|
|
|
+ :scroll="{ y: tableHeight }"
|
|
|
+ :defaultLoadData="false"
|
|
|
+ bordered>
|
|
|
+ <!-- 单号 -->
|
|
|
+ <template slot="salesReturnBillNo" slot-scope="text, record">
|
|
|
+ <div v-if="$hasPermissions('B_salesReturnDetail')">
|
|
|
+ <a-badge :count="'改'" :offset="[16,-13]" v-if="record.changeFlag==1" class="badge-con-t">
|
|
|
+ <span class="link-bule" @click="handleDetail(record)">{{ record.salesReturnBillNo }}</span>
|
|
|
+ </a-badge>
|
|
|
+ <span v-else class="link-bule" @click="handleDetail(record)">{{ record.salesReturnBillNo }}</span>
|
|
|
+ </div>
|
|
|
+ <div v-else>{{ record.salesReturnBillNo }}</div>
|
|
|
+ </template>
|
|
|
+ <!-- 提货单 -->
|
|
|
+ <template slot="pickUpSalesReturnNum" slot-scope="text, record">
|
|
|
+ <span class="link-bule" @click="handleBillOfLadingDetail(record)">{{ record.pickUpSalesReturnNum }}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 操作 -->
|
|
|
+ <template slot="action" slot-scope="text, record">
|
|
|
+ <div>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-warning"
|
|
|
+ v-if="record.billStatus == 'WAIT_AUDIT'&&$hasPermissions('B_salesReturnAudit')"
|
|
|
+ @click="handleEexamine(record)"
|
|
|
+ id="salesReturn-eexamine-btn">审核进度</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-warning"
|
|
|
+ v-if="record.salesReturnBillSource != 'SALES'&&record.billStatus == 'WAIT_SUBMIT'&&$hasPermissions('B_salseReturnSubmit')"
|
|
|
+ @click="beforeSubmit(record)"
|
|
|
+ id="salesReturn-eexamine-btn">提交</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ v-if="record.billStatus == 'WAIT_SUBMIT' && $hasPermissions('B_salesReturnEdit')"
|
|
|
+ type="link"
|
|
|
+ class="button-info"
|
|
|
+ @click="handleEdit(record)"
|
|
|
+ id="salesReturn-edit-btn">{{ record.salesReturnBillSource == 'SALES' ? '编辑' : '改单' }}</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ v-if="(record.billStatus == 'WAIT_SUBMIT'|| record.billStatus == 'AUDIT_REJECT') && $hasPermissions('B_salesReturnDel')"
|
|
|
+ type="link"
|
|
|
+ class="button-error"
|
|
|
+ @click="handleDel(record)"
|
|
|
+ id="salesReturn-del-btn">{{ record.salesReturnBillSource == 'SALES' ? '删除' : '取消' }}</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-info"
|
|
|
+ v-if="record.billStatus == 'AUDIT_REJECT'&& $hasPermissions('B_salesReturnAgainSubmit')"
|
|
|
+ @click="handleEdit(record)"
|
|
|
+ id="salesReturn-edit-btn">再次提交</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-info"
|
|
|
+ v-if="record.billStatus == 'WAIT_RECEIVE'&& $hasPermissions('B_newPickUp')"
|
|
|
+ @click="handlePickUp(record)"
|
|
|
+ id="salesReturn-edit-btn">申请提货</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-error"
|
|
|
+ v-if="record.billStatus == 'WAIT_RECEIVE'&&record.salesReturnBillSource=='PURCHASE'&&record.cancelFlag==1"
|
|
|
+ @click="handleCansel(record)"
|
|
|
+ id="salesReturn-cansel-btn">取消</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-info"
|
|
|
+ v-if="(record.billStatus == 'FINANCIAL_REJECT'||record.billStatus == 'WAIT_CUSTOMER_SERVICE_CONFIRM')&& $hasPermissions('B_salesReturnConfirm')"
|
|
|
+ @click="handleConfirm(record)"
|
|
|
+ id="salesReturn-edit-btn">客服确认</a-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </s-table>
|
|
|
+ </a-spin>
|
|
|
+ <!-- 选择客户弹框 -->
|
|
|
+ <choose-custom-modal :show="openModal" @ok="handleEdit" @cancel="openModal=false"></choose-custom-modal>
|
|
|
+ <!-- 审核进度 -->
|
|
|
+ <verifyModal v-drag :openModal="visibleAudit" :itemSn="auditInfo&&auditInfo.salesReturnBillSn" @close="visibleAudit=false"></verifyModal>
|
|
|
+ <!-- 选择审核人员 -->
|
|
|
+ <chooseDepartUserModal v-drag :openModal="openDepartUserModal" @close="openDepartUserModal=false" @submit="handleSubmit"></chooseDepartUserModal>
|
|
|
+ </a-card>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -248,10 +253,10 @@ import verifyModal from './verifyModal.vue'
|
|
|
import chooseDepartUserModal from './chooseDepartUserModal.vue'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
import warehouse from '@/views/common/chooseWarehouse.js'
|
|
|
+import customerService from '@/views/common/customerService'
|
|
|
import { salesReturnList, salesReturnQueryCount, salesReturnDel, salesReturnCancelBill, salesReturnSubmit, submitVerify } from '@/api/salesReturn'
|
|
|
import moment from 'moment'
|
|
|
import getDate from '@/libs/getDate.js'
|
|
|
-import { forEach } from 'core-js/fn/array'
|
|
|
export default {
|
|
|
name: 'SalesReturnList',
|
|
|
mixins: [commonMixin],
|
|
@@ -265,7 +270,8 @@ export default {
|
|
|
chooseDepartUserModal,
|
|
|
Area,
|
|
|
subarea,
|
|
|
- warehouse
|
|
|
+ warehouse,
|
|
|
+ customerService
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -299,8 +305,8 @@ export default {
|
|
|
subareaAreaSn: undefined
|
|
|
},
|
|
|
shippingAddrProvinceSn: undefined,
|
|
|
- salesReturnBillSource: undefined
|
|
|
-
|
|
|
+ salesReturnBillSource: undefined,
|
|
|
+ bizUserSn: undefined
|
|
|
},
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
@@ -507,6 +513,7 @@ export default {
|
|
|
this.queryParam.warehouseSn = undefined
|
|
|
this.queryParam.goodFlag = undefined
|
|
|
this.queryParam.salesReturnType = undefined
|
|
|
+ this.queryParam.bizUserSn = undefined
|
|
|
if (this.advanced) {
|
|
|
this.$refs.subarea.clearData()
|
|
|
}
|