|
@@ -1,9 +1,10 @@
|
|
<template>
|
|
<template>
|
|
- <div class="returnOrder pagePadding">
|
|
|
|
|
|
+ <div class="sellReturnList pagePadding">
|
|
<div
|
|
<div
|
|
v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
|
|
v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
|
|
>
|
|
>
|
|
- <!-- v-loading="loading" -->
|
|
|
|
|
|
+ <!-- loading -->
|
|
|
|
+ powers:{{ powers }}
|
|
<ex-table
|
|
<ex-table
|
|
v-loading="false"
|
|
v-loading="false"
|
|
:table="table"
|
|
:table="table"
|
|
@@ -28,56 +29,55 @@
|
|
<div style="width: 100%">
|
|
<div style="width: 100%">
|
|
<el-row style="padding: 0 0 0 80px">
|
|
<el-row style="padding: 0 0 0 80px">
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
- <el-col :span="4" style="width: 160px">
|
|
|
|
|
|
+ <!-- 销售订单编号 -->
|
|
|
|
+ <el-col :span="4" style="width: 220px; padding: 0 0 0 0px">
|
|
<el-input
|
|
<el-input
|
|
- v-model="parmValue.return_numbers"
|
|
|
|
- placeholder="退货单号"
|
|
|
|
|
|
+ clearable
|
|
:size="searchSize"
|
|
:size="searchSize"
|
|
|
|
+ v-model="parmValue.sellOrderNumber"
|
|
|
|
+ :maxlength="40"
|
|
|
|
+ placeholder="订单编号"
|
|
|
|
+ @blur="searchList"
|
|
/>
|
|
/>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="4" style="width: 160px; padding: 0 0 0 10px">
|
|
|
|
|
|
+ <!-- 退货编号 -->
|
|
|
|
+ <el-col :span="4" style="width: 220px; padding: 0 0 0 10px">
|
|
<el-input
|
|
<el-input
|
|
|
|
+ clearable
|
|
:size="searchSize"
|
|
:size="searchSize"
|
|
- v-model="parmValue.express_numbers"
|
|
|
|
- placeholder="快递单号"
|
|
|
|
|
|
+ v-model="parmValue.returnNumber"
|
|
|
|
+ :maxlength="40"
|
|
|
|
+ placeholder="退货单编号"
|
|
|
|
+ @blur="searchList"
|
|
/>
|
|
/>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="4" style="width: 160px; padding: 0 0 0 10px">
|
|
|
|
|
|
+ <!-- 销售出库编号 -->
|
|
|
|
+ <el-col :span="4" style="width: 220px; padding: 0 0 0 10px">
|
|
<el-input
|
|
<el-input
|
|
|
|
+ clearable
|
|
:size="searchSize"
|
|
:size="searchSize"
|
|
- v-model="parmValue.returner_phone"
|
|
|
|
- placeholder="退货人电话"
|
|
|
|
|
|
+ v-model="parmValue.sellOutNumber"
|
|
|
|
+ :maxlength="40"
|
|
|
|
+ placeholder="出库单编号"
|
|
|
|
+ @blur="searchList"
|
|
/>
|
|
/>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="6" style="width: 160px; padding: 0 0 0 10px">
|
|
|
|
- <search-express
|
|
|
|
- :size="searchSize"
|
|
|
|
- :value="parmValue.express_company"
|
|
|
|
- :placeholder="'退货物流'"
|
|
|
|
- :names="''"
|
|
|
|
- :disabled="false"
|
|
|
|
- :is-detail="false"
|
|
|
|
- @searchChange="handleCompany"
|
|
|
|
- />
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="4" style="width: 54px">
|
|
|
|
- <el-button
|
|
|
|
- :size="searchSize"
|
|
|
|
- type="primary"
|
|
|
|
- class="fr"
|
|
|
|
- icon="el-icon-search"
|
|
|
|
- @click="searchList"
|
|
|
|
- /></el-col>
|
|
|
|
- <el-col :span="4" style="width: 66px">
|
|
|
|
|
|
+
|
|
|
|
+ <el-col
|
|
|
|
+ :span="3"
|
|
|
|
+ style="width: 66px; float: right"
|
|
|
|
+ v-if="powers.some((item) => item == '003')"
|
|
|
|
+ >
|
|
<el-button
|
|
<el-button
|
|
- type="warning"
|
|
|
|
- class="fr"
|
|
|
|
|
|
+ @click="openModal('add', false, {})"
|
|
:size="searchSize"
|
|
:size="searchSize"
|
|
- @click="restSearch"
|
|
|
|
|
|
+ type="success"
|
|
|
|
+ style="float: right; margin-left: 5px"
|
|
>
|
|
>
|
|
- 重置
|
|
|
|
|
|
+ 添加
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+
|
|
<el-col :span="3" style="width: 66px; float: right">
|
|
<el-col :span="3" style="width: 66px; float: right">
|
|
<el-button
|
|
<el-button
|
|
:size="searchSize"
|
|
:size="searchSize"
|
|
@@ -90,41 +90,107 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-row style="padding-top: 10px">
|
|
|
|
- <el-col :span="5" style="width: 291px">
|
|
|
|
|
|
+ <el-row style="padding: 10px 0 0 0">
|
|
|
|
+ <!-- 售后申请编号 -->
|
|
|
|
+ <el-col :span="4" style="width: 200px; padding: 0 0 0 0px">
|
|
|
|
+ <el-input
|
|
|
|
+ clearable
|
|
|
|
+ :size="searchSize"
|
|
|
|
+ v-model="parmValue.serviceNumber"
|
|
|
|
+ :maxlength="40"
|
|
|
|
+ placeholder="售后单编号"
|
|
|
|
+ @blur="searchList"
|
|
|
|
+ />
|
|
|
|
+ </el-col>
|
|
|
|
+ <!-- 退回客户编号 -->
|
|
|
|
+ <el-col :span="4" style="width: 200px; padding: 0 0 0 10px">
|
|
|
|
+ <el-input
|
|
|
|
+ clearable
|
|
|
|
+ :size="searchSize"
|
|
|
|
+ v-model="parmValue.clientNumber"
|
|
|
|
+ :maxlength="40"
|
|
|
|
+ placeholder="客户编号"
|
|
|
|
+ @blur="searchList"
|
|
|
|
+ />
|
|
|
|
+ </el-col>
|
|
|
|
+ <!-- 时间区间 -->
|
|
|
|
+ <el-col :span="6" style="width: 303px; padding: 0 0 0 10px">
|
|
<period-date-picker
|
|
<period-date-picker
|
|
- :width="'134px'"
|
|
|
|
|
|
+ :type="1"
|
|
|
|
+ :width="'135px'"
|
|
:size="searchSize"
|
|
:size="searchSize"
|
|
|
|
+ :start="parmValue.start"
|
|
|
|
+ :end="parmValue.end"
|
|
@timeReturned="handleTime"
|
|
@timeReturned="handleTime"
|
|
/>
|
|
/>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="18" style="width: 340px; padding: 0 0 0 10px">
|
|
|
|
- <search-customer
|
|
|
|
|
|
+ </el-row>
|
|
|
|
+
|
|
|
|
+ <el-row style="padding: 10px 0 0 0">
|
|
|
|
+ <!-- 快递公司 -->
|
|
|
|
+ <el-col :span="4" style="width: 180px; padding: 0 0 0 0px">
|
|
|
|
+ <search-express
|
|
:size="searchSize"
|
|
:size="searchSize"
|
|
- :code="supplierNo"
|
|
|
|
- :placeholder="'供应商公司名称'"
|
|
|
|
- :is-detail="false"
|
|
|
|
- :disabled="false"
|
|
|
|
|
|
+ :value="parmValue.parmValue"
|
|
|
|
+ :placeholder="'物流公司'"
|
|
:names="''"
|
|
:names="''"
|
|
- @searchChange="supplierChange"
|
|
|
|
|
|
+ :is-detail="false"
|
|
|
|
+ @searchChange="handleCompany"
|
|
/>
|
|
/>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="6" style="width: 160px; padding: 0 0 0 10px">
|
|
|
|
|
|
+ <!-- 快递单号 -->
|
|
|
|
+ <el-col :span="4" style="width: 200px; padding: 0 0 0 10px">
|
|
|
|
+ <el-input
|
|
|
|
+ clearable
|
|
|
|
+ :size="searchSize"
|
|
|
|
+ v-model="parmValue.postNumber"
|
|
|
|
+ :maxlength="40"
|
|
|
|
+ placeholder="快递单号"
|
|
|
|
+ @blur="searchList"
|
|
|
|
+ />
|
|
|
|
+ </el-col>
|
|
|
|
+
|
|
|
|
+ <!-- 节点查询 -->
|
|
|
|
+ <el-col :span="4" style="width: 150px; padding: 0 0 0 10px">
|
|
<el-select
|
|
<el-select
|
|
- @change="handleNode"
|
|
|
|
:size="searchSize"
|
|
:size="searchSize"
|
|
- v-model="parmValue.return_list_node"
|
|
|
|
- placeholder="退货单节点"
|
|
|
|
|
|
+ v-model="parmValue.status"
|
|
|
|
+ filterable
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="状态"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ @change="
|
|
|
|
+ pageInfo.curr = 1;
|
|
|
|
+ parmValue.page = 1;
|
|
|
|
+ searchList();
|
|
|
|
+ "
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- v-for="item in return_node_options"
|
|
|
|
- :key="item.value"
|
|
|
|
|
|
+ v-for="item in statusList"
|
|
|
|
+ :key="'status' + item.value"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
:value="item.value"
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ />
|
|
</el-select>
|
|
</el-select>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="4" style="width: 54px">
|
|
|
|
+ <el-button
|
|
|
|
+ :size="searchSize"
|
|
|
|
+ type="primary"
|
|
|
|
+ class="fr"
|
|
|
|
+ icon="el-icon-search"
|
|
|
|
+ @click="searchList"
|
|
|
|
+ /></el-col>
|
|
|
|
+ <el-col :span="4" style="width: 66px">
|
|
|
|
+ <el-button
|
|
|
|
+ type="warning"
|
|
|
|
+ class="fr"
|
|
|
|
+ :size="searchSize"
|
|
|
|
+ @click="restSearch"
|
|
|
|
+ >
|
|
|
|
+ 重置
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -159,8 +225,9 @@
|
|
>
|
|
>
|
|
<i
|
|
<i
|
|
class="el-icon-view tb-icon"
|
|
class="el-icon-view tb-icon"
|
|
- @click="routeGoto('returnDetail', { id: scope.row })"
|
|
|
|
|
|
+ @click="routeGoto('sellReturnDetail', { id: scope.row })"
|
|
></i>
|
|
></i>
|
|
|
|
+ <!-- @click="openModal(scope.row.id, true, scope.row)" -->
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
<el-tooltip
|
|
<el-tooltip
|
|
v-if="powers.some((item) => item == '005')"
|
|
v-if="powers.some((item) => item == '005')"
|
|
@@ -201,14 +268,14 @@
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</template>
|
|
</template>
|
|
</ex-table>
|
|
</ex-table>
|
|
- <!-- <add-edit
|
|
|
|
|
|
+ <add-edit
|
|
:id="modelId"
|
|
:id="modelId"
|
|
:sitem="sitem"
|
|
:sitem="sitem"
|
|
:show-model="showModel"
|
|
:show-model="showModel"
|
|
:is-detail="isDetail"
|
|
:is-detail="isDetail"
|
|
@refresh="searchList"
|
|
@refresh="searchList"
|
|
@cancel="showModel = false"
|
|
@cancel="showModel = false"
|
|
- /> -->
|
|
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
<div v-else>
|
|
<div v-else>
|
|
<no-auth></no-auth>
|
|
<no-auth></no-auth>
|
|
@@ -219,22 +286,23 @@
|
|
import mixinPage from "@/mixins/elPaginationHandle";
|
|
import mixinPage from "@/mixins/elPaginationHandle";
|
|
import resToken from "@/mixins/resToken";
|
|
import resToken from "@/mixins/resToken";
|
|
import statusList from "@/assets/js/statusList";
|
|
import statusList from "@/assets/js/statusList";
|
|
|
|
+import columns from "./columns";
|
|
import asyncRequest from "@/apis/service/sellOut/returnOrder";
|
|
import asyncRequest from "@/apis/service/sellOut/returnOrder";
|
|
-// import addEdit from "./addEdit";
|
|
|
|
|
|
+import addEdit from "./addEdit";
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
-import columns from "./columns";
|
|
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
- name: "returnOrder",
|
|
|
|
|
|
+ name: "sellReturnList",
|
|
mixins: [mixinPage, resToken],
|
|
mixins: [mixinPage, resToken],
|
|
- // components: {
|
|
|
|
- // addEdit,
|
|
|
|
- // },
|
|
|
|
|
|
+ components: {
|
|
|
|
+ addEdit,
|
|
|
|
+ },
|
|
computed: {
|
|
computed: {
|
|
...mapGetters(["tablebtnSize", "searchSize", "size"]),
|
|
...mapGetters(["tablebtnSize", "searchSize", "size"]),
|
|
powers() {
|
|
powers() {
|
|
let tran =
|
|
let tran =
|
|
this.$store.getters.btnList.find(
|
|
this.$store.getters.btnList.find(
|
|
- (item) => item.menu_route == "returnOrder"
|
|
|
|
|
|
+ (item) => item.menu_route == "sellReturnList"
|
|
) || {};
|
|
) || {};
|
|
if (tran && tran.action && tran.action.length > 0) {
|
|
if (tran && tran.action && tran.action.length > 0) {
|
|
return tran.action;
|
|
return tran.action;
|
|
@@ -245,30 +313,43 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ statusList: [
|
|
|
|
+ { value: "0", label: "待申请" },
|
|
|
|
+ { value: "1", label: "待验收" },
|
|
|
|
+ { value: "2", label: "待验收审核" },
|
|
|
|
+ { value: "3", label: "待业务审核" },
|
|
|
|
+ { value: "4", label: "完成退货" },
|
|
|
|
+ ],
|
|
sitem: null,
|
|
sitem: null,
|
|
// 状态
|
|
// 状态
|
|
statusOptions: [
|
|
statusOptions: [
|
|
- { id: "0", label: "禁用" },
|
|
|
|
- { id: "1", label: "启用" },
|
|
|
|
|
|
+ { id: "0", label: "待申请" },
|
|
|
|
+ { id: "1", label: "待验收" },
|
|
|
|
+ { id: "2", label: "待验收审核" },
|
|
|
|
+ { id: "3", label: "待业务审核" },
|
|
|
|
+ { id: "4", label: "完成退货" },
|
|
],
|
|
],
|
|
- supplierNo: [], //供应商
|
|
|
|
- statusList: statusList,
|
|
|
|
|
|
+ // statusList: statusList,
|
|
loading: true,
|
|
loading: true,
|
|
showModel: false,
|
|
showModel: false,
|
|
isDetail: false,
|
|
isDetail: false,
|
|
modelId: 0,
|
|
modelId: 0,
|
|
parmValue: {
|
|
parmValue: {
|
|
- return_numbers: "", //退货单号
|
|
|
|
- express_numbers: "", //快递单号
|
|
|
|
- returner_phone: "", //退货人电话
|
|
|
|
- express_company: [], //快递公司
|
|
|
|
- start: "",
|
|
|
|
- end: "",
|
|
|
|
- supplierNo: "", //供应商
|
|
|
|
- return_list_node: "", //退货单节点
|
|
|
|
|
|
+ sellOrderNumber: "", //销售订单编号
|
|
|
|
+ returnNumber: "", //退货编号
|
|
|
|
+ sellOutNumber: "", //销售出库编号
|
|
|
|
+ serviceNumber: "", //售后申请编号
|
|
|
|
+ postCompany: "", //物流公司
|
|
|
|
+ postNumber: "", //物流单号
|
|
|
|
+ startTime: "", //
|
|
|
|
+ endTime: "", //
|
|
|
|
+ status: "", //状态节点
|
|
|
|
+ clientNumber: "", //退货客户编号
|
|
|
|
+ // --
|
|
page: 1, // 页码
|
|
page: 1, // 页码
|
|
size: 15, // 每页显示条数
|
|
size: 15, // 每页显示条数
|
|
},
|
|
},
|
|
|
|
+ tableData: [],
|
|
passwordModel: false,
|
|
passwordModel: false,
|
|
passwordModelId: 0,
|
|
passwordModelId: 0,
|
|
isPasswordDetail: false,
|
|
isPasswordDetail: false,
|
|
@@ -288,24 +369,6 @@ export default {
|
|
},
|
|
},
|
|
// 表格 - 列参数
|
|
// 表格 - 列参数
|
|
columns: columns,
|
|
columns: columns,
|
|
- return_node_options: [
|
|
|
|
- {
|
|
|
|
- value: "value1",
|
|
|
|
- label: "节点1",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: "value2",
|
|
|
|
- label: "节点2",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: "value3",
|
|
|
|
- label: "节点3",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: "value4",
|
|
|
|
- label: "节点4",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -315,9 +378,19 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
restSearch() {
|
|
restSearch() {
|
|
this.parmValue = {
|
|
this.parmValue = {
|
|
- name: "", // 业务员名字
|
|
|
|
- username: "", // 账号
|
|
|
|
- status: "", //
|
|
|
|
|
|
+ sellOrderNumber: "", //销售订单编号
|
|
|
|
+ returnNumber: "", //退货编号
|
|
|
|
+ sellOutNumber: "", //销售出库编号
|
|
|
|
+ serviceNumber: "", //售后申请编号
|
|
|
|
+ postCompany: "", //物流公司
|
|
|
|
+ postNumber: "", //物流单号
|
|
|
|
+ startTime: "", //
|
|
|
|
+ endTime: "", //
|
|
|
|
+ status: "", //状态节点
|
|
|
|
+
|
|
|
|
+ // --
|
|
|
|
+ page: 1, // 页码
|
|
|
|
+ size: 15, // 每页显示条数
|
|
page: 1, // 页码
|
|
page: 1, // 页码
|
|
size: 15, // 每页显示条数
|
|
size: 15, // 每页显示条数
|
|
};
|
|
};
|
|
@@ -336,26 +409,59 @@ export default {
|
|
this.isDetail = isDetail;
|
|
this.isDetail = isDetail;
|
|
this.sitem = sitem;
|
|
this.sitem = sitem;
|
|
},
|
|
},
|
|
|
|
+ async deleteById(id, status) {
|
|
|
|
+ await this.$confirm("确定要删除?", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning",
|
|
|
|
+ })
|
|
|
|
+ .then(async () => {
|
|
|
|
+ const model = {
|
|
|
|
+ id: id,
|
|
|
|
+ status: status === "1" ? "0" : "1",
|
|
|
|
+ };
|
|
|
|
+ const res = await asyncRequest.status(model);
|
|
|
|
+ if (res && res.code === 0) {
|
|
|
|
+ this.$notify.success({
|
|
|
|
+ title: "删除成功",
|
|
|
|
+ message: "",
|
|
|
|
+ });
|
|
|
|
+ this.searchList();
|
|
|
|
+ } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
|
+ await this.logout();
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.warning(res.message);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ console.log("取消");
|
|
|
|
+ });
|
|
|
|
+ },
|
|
async searchList() {
|
|
async searchList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.tableData = [
|
|
|
|
- {
|
|
|
|
- nickname: "122222",
|
|
|
|
- role_name: "333222",
|
|
|
|
- mobile: "1212",
|
|
|
|
- fee: "188",
|
|
|
|
- },
|
|
|
|
- ];
|
|
|
|
- // const res = await asyncRequest.list(this.parmValue);
|
|
|
|
- // if (res && res.code === 0 && res.data) {
|
|
|
|
- // this.tableData = res.data.list;
|
|
|
|
- // this.pageInfo.total = Number(res.data.count);
|
|
|
|
- // } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
|
- // await this.logout();
|
|
|
|
- // } else {
|
|
|
|
- // this.tableData = [];
|
|
|
|
- // this.pageInfo.total = 0;
|
|
|
|
- // }
|
|
|
|
|
|
+ let model = JSON.parse(JSON.stringify(this.parmValue));
|
|
|
|
+ let _model = {
|
|
|
|
+ thNo: model.returnNumber, //退货编号
|
|
|
|
+ status: model.status, //节点状态
|
|
|
|
+ post_code: model.postNumber, //快递编码
|
|
|
|
+ post_compay: model.postCompany.toString(), // 快递公司
|
|
|
|
+ customer_code: model.clientNumber, //客户code
|
|
|
|
+ order_code: model.sellOrderNumber, // 确认单code
|
|
|
|
+ out_code: model.sellOutNumber, // 出库code
|
|
|
|
+ return_code: model.serviceNumber, //return_code
|
|
|
|
+ startTime: "",
|
|
|
|
+ endTime: "",
|
|
|
|
+ };
|
|
|
|
+ const res = await asyncRequest.list(_model);
|
|
|
|
+ if (res && res.code === 0 && res.data) {
|
|
|
|
+ this.tableData = res.data.list;
|
|
|
|
+ this.pageInfo.total = Number(res.data.count);
|
|
|
|
+ } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
|
+ await this.logout();
|
|
|
|
+ } else {
|
|
|
|
+ this.tableData = [];
|
|
|
|
+ this.pageInfo.total = 0;
|
|
|
|
+ }
|
|
this.loading = false;
|
|
this.loading = false;
|
|
},
|
|
},
|
|
|
|
|
|
@@ -390,53 +496,22 @@ export default {
|
|
console.log("取消");
|
|
console.log("取消");
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- // 选择物流公司
|
|
|
|
- handleCompany(e) {
|
|
|
|
- console.log(e);
|
|
|
|
|
|
+ //物流公司查询
|
|
|
|
+ async handleCompany(e) {
|
|
|
|
+ console.log(e, "要求传快递简称,不传id"); //
|
|
if (e && e.code) {
|
|
if (e && e.code) {
|
|
- this.parmValue.express_company = [e.code];
|
|
|
|
- this.parmValue.page = 1;
|
|
|
|
- // 调接口
|
|
|
|
- console.log(this.parmValue.express_company);
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- // 时间
|
|
|
|
- async handleTime(e) {
|
|
|
|
- if (e.startTime !== "") {
|
|
|
|
- this.parmValue.start = e.startTime;
|
|
|
|
- } else {
|
|
|
|
- this.parmValue.start = "";
|
|
|
|
- }
|
|
|
|
- if (e.endTime !== "") {
|
|
|
|
- this.parmValue.end = e.endTime;
|
|
|
|
- } else {
|
|
|
|
- this.parmValue.end = "";
|
|
|
|
- }
|
|
|
|
- if (this.parmValue.start !== "" && this.parmValue.end !== "") {
|
|
|
|
|
|
+ // this.ruleForm.post_name = [e.code];
|
|
|
|
+ this.parmValue.postCompany = [e.shortName];
|
|
this.parmValue.page = 1;
|
|
this.parmValue.page = 1;
|
|
- await this.searchList();
|
|
|
|
}
|
|
}
|
|
- },
|
|
|
|
- // 公司选择
|
|
|
|
- supplierChange(e) {
|
|
|
|
- if (e && e.id) {
|
|
|
|
- this.parmValue.supplierNo = e.code; //供应商编码
|
|
|
|
- } else {
|
|
|
|
- this.parmValue.supplierNo = "";
|
|
|
|
- }
|
|
|
|
- this.parmValue.page = 1;
|
|
|
|
- this.searchList();
|
|
|
|
- },
|
|
|
|
- // 选择退货单节点
|
|
|
|
- handleNode(e) {
|
|
|
|
- console.log(e);
|
|
|
|
- this.parmValue.return_list_node = e;
|
|
|
|
|
|
+ console.log(this.parmValue.postCompany);
|
|
|
|
+ await this.searchList();
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
-.returnOrder {
|
|
|
|
|
|
+.sellReturnList {
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
|
|
|