|
@@ -121,8 +121,17 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row style="padding-top: 10px">
|
|
|
+ <!-- 客户公司 -->
|
|
|
+ <el-col :span="4" style="width: 420px; padding: 0px 0 0 0px">
|
|
|
+ <search-customer
|
|
|
+ :value="customerCode"
|
|
|
+ :size="searchSize"
|
|
|
+ :placeholder="'客户公司名称'"
|
|
|
+ @searchChange="customerChange"
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
<!-- 商品名称 -->
|
|
|
- <el-col :span="4" style="width: 180px">
|
|
|
+ <el-col :span="4" style="width: 180px; padding: 0 0 0 10px">
|
|
|
<el-input
|
|
|
clearable
|
|
|
:size="searchSize"
|
|
@@ -132,7 +141,7 @@
|
|
|
/>
|
|
|
</el-col>
|
|
|
<!-- 商品编码 -->
|
|
|
- <el-col :span="4" style="width: 180px; padding: 0 0 0 10px">
|
|
|
+ <el-col :span="4" style="width: 200px; padding: 0 0 0 10px">
|
|
|
<el-input
|
|
|
clearable
|
|
|
:size="searchSize"
|
|
@@ -140,8 +149,10 @@
|
|
|
placeholder="商品编号"
|
|
|
/>
|
|
|
</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row style="padding: 10px 0 0 0">
|
|
|
<!-- 确认单号 -->
|
|
|
- <el-col :span="4" style="width: 200px; padding: 0 0 0 10px">
|
|
|
+ <el-col :span="4" style="width: 200px; padding: 0 0 0 0px">
|
|
|
<el-input
|
|
|
clearable
|
|
|
:size="searchSize"
|
|
@@ -190,13 +201,30 @@
|
|
|
"
|
|
|
></el-tag>
|
|
|
</template>
|
|
|
+ <!-- 费用承担方 -->
|
|
|
<template #post_own="{ scope }">
|
|
|
<el-tag
|
|
|
:size="tablebtnSize"
|
|
|
:type="scope.row.status == '0' ? 'warning' : ''"
|
|
|
v-text="
|
|
|
- (statusOptions.find((item) => item.id == scope.row.status) || {})
|
|
|
- .label || '--'
|
|
|
+ (
|
|
|
+ post_ownOptions.find((item) => item.id == scope.row.post_own) ||
|
|
|
+ {}
|
|
|
+ ).label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+ <!-- 期望意愿 -->
|
|
|
+ <template #except_code="{ scope }">
|
|
|
+ <el-tag
|
|
|
+ :size="tablebtnSize"
|
|
|
+ :type="scope.row.status == '0' ? 'warning' : ''"
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ except_codeOptions.find(
|
|
|
+ (item) => item.id == scope.row.except_code
|
|
|
+ ) || {}
|
|
|
+ ).label || '--'
|
|
|
"
|
|
|
></el-tag>
|
|
|
</template>
|
|
@@ -271,16 +299,26 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- post_ownOptions: [],
|
|
|
+ customerCode: [], //客户公司code
|
|
|
+ except_codeOptions: [
|
|
|
+ { id: "1", label: "退货" },
|
|
|
+ { id: "2", label: "换货" },
|
|
|
+ { id: "3", label: "改变售价" },
|
|
|
+ ],
|
|
|
+ post_ownOptions: [
|
|
|
+ { id: "1", label: "客户承担" },
|
|
|
+ { id: "2", label: "公司承担" },
|
|
|
+ { id: "3", label: "供应商承担" },
|
|
|
+ ],
|
|
|
sitem: null,
|
|
|
// 状态
|
|
|
statusOptions: [
|
|
|
- { id: "0", label: "取消" },
|
|
|
- { id: "1", label: "发起" },
|
|
|
- { id: "2", label: "反馈物流费" },
|
|
|
- { id: "3", label: "同意下单" },
|
|
|
- { id: "4", label: "发货中" },
|
|
|
- { id: "5", label: "已发货" },
|
|
|
+ { id: "0", label: "待审核" },
|
|
|
+ { id: "1", label: "待物流反馈" },
|
|
|
+ { id: "2", label: "待退货" },
|
|
|
+ { id: "3", label: "已退货" },
|
|
|
+ { id: "4", label: "" },
|
|
|
+ { id: "5", label: "" },
|
|
|
],
|
|
|
statusList: statusList,
|
|
|
loading: true,
|
|
@@ -288,6 +326,7 @@ export default {
|
|
|
isDetail: false,
|
|
|
modelId: 0,
|
|
|
parmValue: {
|
|
|
+ customer_code: "", //客户公司code
|
|
|
start_time: "",
|
|
|
end_time: "",
|
|
|
returnCode: "", //售后单号
|
|
@@ -323,8 +362,8 @@ export default {
|
|
|
serviceOptions: [
|
|
|
//假数据
|
|
|
{
|
|
|
- value:"0",
|
|
|
- label:"待审核"
|
|
|
+ value: "0",
|
|
|
+ label: "待审核",
|
|
|
},
|
|
|
{
|
|
|
value: "1",
|
|
@@ -335,25 +374,25 @@ export default {
|
|
|
label: "待退货",
|
|
|
},
|
|
|
{
|
|
|
- value: "选项3",
|
|
|
- label: "待采购反馈",
|
|
|
- },
|
|
|
- {
|
|
|
- value: "选项4",
|
|
|
- label: "待采购审核",
|
|
|
- },
|
|
|
- {
|
|
|
- value: "选项5",
|
|
|
- label: "处理已结束",
|
|
|
- },
|
|
|
- {
|
|
|
- value: "d",
|
|
|
- label: "业务已驳回",
|
|
|
- },
|
|
|
- {
|
|
|
- value: "d",
|
|
|
- label: "采购已驳回",
|
|
|
+ value: "3",
|
|
|
+ label: "已退货",
|
|
|
},
|
|
|
+ // {
|
|
|
+ // value: "选项4",
|
|
|
+ // label: "待采购审核",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // value: "选项5",
|
|
|
+ // label: "处理已结束",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // value: "d",
|
|
|
+ // label: "业务已驳回",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // value: "d",
|
|
|
+ // label: "采购已驳回",
|
|
|
+ // },
|
|
|
],
|
|
|
serviceValue: "", //售后申请处理状态
|
|
|
expectOptions: [
|
|
@@ -398,10 +437,22 @@ export default {
|
|
|
|
|
|
methods: {
|
|
|
restSearch() {
|
|
|
+ this.customerCode = [];
|
|
|
+
|
|
|
this.parmValue = {
|
|
|
- name: "", // 业务员名字
|
|
|
- username: "", // 账号
|
|
|
- status: "", //
|
|
|
+ customer_code: "", //客户公司code
|
|
|
+ start_time: "",
|
|
|
+ end_time: "",
|
|
|
+ returnCode: "", //售后单号
|
|
|
+ apply_name: "", //申请人名称
|
|
|
+ sellNumbers: "", //销售单号
|
|
|
+ sellGoStock: "", //销售出库单号,
|
|
|
+ expressNumber: "", //物流编号
|
|
|
+ goodsNumber: "", //商品编号
|
|
|
+ goodsName: "", //商品名称
|
|
|
+ service_value: "", //售后申请单处理状态
|
|
|
+ expect_value: "", //期望意愿
|
|
|
+ result_value: "", //处理结果
|
|
|
page: 1, // 页码
|
|
|
size: 15, // 每页显示条数
|
|
|
};
|
|
@@ -466,6 +517,7 @@ export default {
|
|
|
apply_name: model.apply_name,
|
|
|
start: model.start_time,
|
|
|
end: model.end_time,
|
|
|
+ customer_code: model.customer_code, //客户公司code
|
|
|
};
|
|
|
console.log(_model);
|
|
|
const res = await asyncRequest.list(_model);
|
|
@@ -547,6 +599,17 @@ export default {
|
|
|
// console.log(e, "resultChange");
|
|
|
// this.parmValue.result_value = e;
|
|
|
// },
|
|
|
+ async customerChange(e) {
|
|
|
+ if (e && e.id) {
|
|
|
+ this.customerCode = [e.code];
|
|
|
+ this.parmValue.customer_code = e.code;
|
|
|
+ } else {
|
|
|
+ this.customerCode = [];
|
|
|
+ this.parmValue.customer_code = "";
|
|
|
+ }
|
|
|
+ this.parmValue.page = 1;
|
|
|
+ await this.searchList();
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|