|
@@ -1,8 +1,6 @@
|
|
|
<template>
|
|
|
<div class="sellAfterApply pagePadding">
|
|
|
- <div
|
|
|
- v-if=" powers.some((i) => i == '001')"
|
|
|
- >
|
|
|
+ <div v-if="powers.some((i) => i == '001')">
|
|
|
<ex-table
|
|
|
v-loading="loading"
|
|
|
:table="table"
|
|
@@ -80,50 +78,20 @@
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="4" style="width: 66px; float: right;">
|
|
|
- <el-button type="primary" size="mini" @click="handleExport">导出</el-button>
|
|
|
+ <el-col :span="4" style="width: 56px; float: right; margin-right: 0px">
|
|
|
+ <el-button type="primary" size="mini" @click="handleExport"
|
|
|
+ >导出</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row style="padding-top: 10px">
|
|
|
- <!-- 期望意愿 -->
|
|
|
- <!-- <el-col :span="4" style="width: 130px">
|
|
|
- <el-select
|
|
|
- :size="searchSize"
|
|
|
- v-model="parmValue.except_code"
|
|
|
- clearable
|
|
|
- placeholder="期望意愿"
|
|
|
- @change="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- searchList();
|
|
|
- "
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in expectOptions"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- padding: 0 0 0 10px
|
|
|
- </el-col> -->
|
|
|
-
|
|
|
- <el-col :span="4" style="margin-right: 10px">
|
|
|
- <search-work-company
|
|
|
- :value="parmValue.companyNo"
|
|
|
- :placeholder="'业务公司'"
|
|
|
- :size="searchSize"
|
|
|
- @searchChange="companyNosearchChange"
|
|
|
- />
|
|
|
- </el-col>
|
|
|
|
|
|
+ <el-row style="margin-top: 10px">
|
|
|
<el-col :span="4" style="width: 620px">
|
|
|
<el-input
|
|
|
clearable
|
|
|
:size="searchSize"
|
|
|
- maxlength="40"
|
|
|
+ maxlength="40"
|
|
|
placeholder="关键字"
|
|
|
v-model="s_input"
|
|
|
class="input-with-select"
|
|
@@ -134,19 +102,9 @@
|
|
|
slot="prepend"
|
|
|
placeholder="关键字类型"
|
|
|
>
|
|
|
- <el-option
|
|
|
- label="售后退货编号"
|
|
|
- value="serviceNum"
|
|
|
- ></el-option>
|
|
|
- <el-option
|
|
|
- label="发货单编号"
|
|
|
- value="sellOutNum"
|
|
|
- ></el-option>
|
|
|
-
|
|
|
- <el-option
|
|
|
- label="销售订单编号"
|
|
|
- value="sellOrderNum"
|
|
|
- ></el-option>
|
|
|
+ <el-option label="售后退货编号" value="serviceNum"></el-option>
|
|
|
+ <el-option label="发货单编号" value="sellOutNum"></el-option>
|
|
|
+ <el-option label="销售订单编号" value="sellOrderNum"></el-option>
|
|
|
<el-option label="商品编号" value="goodsNum"></el-option>
|
|
|
<el-option label="商品名称" value="goodsName"></el-option>
|
|
|
<el-option label="申请人部门" value="company_name"></el-option>
|
|
@@ -159,7 +117,7 @@
|
|
|
></el-button>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
- <el-col :span="4" style="width: 66px">
|
|
|
+ <el-col :span="2" style="width: 65px; float: right">
|
|
|
<el-button
|
|
|
type="warning"
|
|
|
class="fr"
|
|
@@ -170,15 +128,123 @@
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+
|
|
|
+ <el-row style="padding-top: 10px">
|
|
|
+ <el-col :span="4" style="width: 150px">
|
|
|
+ <el-select
|
|
|
+ :size="searchSize"
|
|
|
+ v-model="parmValue.order_type"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ placeholder="商品类型"
|
|
|
+ style="width: 100%"
|
|
|
+ @change="
|
|
|
+ pageInfo.curr = 1;
|
|
|
+ parmValue.page = 1;
|
|
|
+ searchList();
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in xs_order_type_options"
|
|
|
+ :key="'orderstatus' + item.id"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="4" style="width: 150px; margin-left: 10px">
|
|
|
+ <el-select
|
|
|
+ :size="searchSize"
|
|
|
+ v-model="parmValue.order_source"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ placeholder="订单来源"
|
|
|
+ style="width: 100%"
|
|
|
+ @change="
|
|
|
+ pageInfo.curr = 1;
|
|
|
+ parmValue.page = 1;
|
|
|
+ searchList();
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in xs_order_source_options"
|
|
|
+ :key="'orderstatus' + item.id"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="3">
|
|
|
+ <search-supplier
|
|
|
+ :size="'mini'"
|
|
|
+ style="width: 100%; margin: 0px 10px"
|
|
|
+ :value="supplierNo"
|
|
|
+ :disabled="false"
|
|
|
+ :placeholder="'供应商名称'"
|
|
|
+ :names="''"
|
|
|
+ :isDetail="false"
|
|
|
+ :noDisabled="true"
|
|
|
+ @searchChange="supplierChange"
|
|
|
+ /> </el-col
|
|
|
+ >s
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <template #order_type="{ scope }">
|
|
|
+ <el-tag
|
|
|
+ :size="tablebtnSize"
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ xs_order_type_options.find((item) => item.id == scope.row.order_type) ||
|
|
|
+ {}
|
|
|
+ ).label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #has_account="{ scope }">
|
|
|
+ <el-tag
|
|
|
+ :size="tablebtnSize"
|
|
|
+ :type="
|
|
|
+ (
|
|
|
+ has_account_list.find(
|
|
|
+ (item) => item.code == scope.row.has_account + ''
|
|
|
+ ) || {}
|
|
|
+ ).type || '--'
|
|
|
+ "
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ has_account_list.find(
|
|
|
+ (item) => item.code == scope.row.has_account + ''
|
|
|
+ ) || {}
|
|
|
+ ).name || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #order_source="{ scope }">
|
|
|
+ <el-tag
|
|
|
+ :size="tablebtnSize"
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ xs_order_source_options.find(
|
|
|
+ (item) => item.id == scope.row.order_source
|
|
|
+ ) || {}
|
|
|
+ ).label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+
|
|
|
<template #status="{ scope }">
|
|
|
<el-tag
|
|
|
:size="tablebtnSize"
|
|
|
:type="''"
|
|
|
v-text="
|
|
|
- (statusOptions.find((item) => item.id == scope.row.status) || {})
|
|
|
- .label || '--'
|
|
|
+ (
|
|
|
+ statusOptions.find((item) => item.id == scope.row.status) || {}
|
|
|
+ ).label || '--'
|
|
|
"
|
|
|
></el-tag>
|
|
|
</template>
|
|
@@ -188,10 +254,8 @@
|
|
|
:size="tablebtnSize"
|
|
|
:type="scope.row.status == '0' ? 'warning' : ''"
|
|
|
v-text="
|
|
|
- (
|
|
|
- post_ownOptions.find((item) => item.id == scope.row.post_own) ||
|
|
|
- {}
|
|
|
- ).label || '--'
|
|
|
+ (post_ownOptions.find((item) => item.id == scope.row.post_own) || {})
|
|
|
+ .label || '--'
|
|
|
"
|
|
|
></el-tag>
|
|
|
</template>
|
|
@@ -201,11 +265,8 @@
|
|
|
:size="tablebtnSize"
|
|
|
:type="scope.row.status == '0' ? 'warning' : ''"
|
|
|
v-text="
|
|
|
- (
|
|
|
- except_codeOptions.find(
|
|
|
- (item) => item.id == scope.row.except_code
|
|
|
- ) || {}
|
|
|
- ).label || '--'
|
|
|
+ (except_codeOptions.find((item) => item.id == scope.row.except_code) || {})
|
|
|
+ .label || '--'
|
|
|
"
|
|
|
></el-tag>
|
|
|
</template>
|
|
@@ -218,9 +279,7 @@
|
|
|
>
|
|
|
<i
|
|
|
class="el-icon-view tb-icon"
|
|
|
- @click="
|
|
|
- routeGoto('supplierSellAfterApplyDetail', { id: scope.row.returnCode })
|
|
|
- "
|
|
|
+ @click="routeGoto('sellAfterApplyDetail', { id: scope.row.returnCode })"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
@@ -231,6 +290,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
+
|
|
|
<script>
|
|
|
import mixinPage from "@/mixins/elPaginationHandle";
|
|
|
import resToken from "@/mixins/resToken";
|
|
@@ -239,6 +299,11 @@ import { columns } from "./columns";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import urlConfig from "@/apis/url-config";
|
|
|
import companyHelper from "@/mixins/companyHelper";
|
|
|
+import {
|
|
|
+ xs_order_source_options,
|
|
|
+ xs_order_type_options,
|
|
|
+ has_account_list,
|
|
|
+} from "@/assets/js/statusList";
|
|
|
|
|
|
export default {
|
|
|
name: "sellAfterApply",
|
|
@@ -260,6 +325,9 @@ export default {
|
|
|
select: "serviceNum",
|
|
|
select_list:[],
|
|
|
s_input: "",
|
|
|
+ xs_order_source_options,
|
|
|
+ xs_order_type_options,
|
|
|
+ has_account_list,
|
|
|
customerCode: [], //客户公司code
|
|
|
except_codeOptions: [
|
|
|
{ id: "1", label: "退货" },
|