|
@@ -20,7 +20,7 @@
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
prop="send_status"
|
|
prop="send_status"
|
|
label="状态"
|
|
label="状态"
|
|
- width="80"
|
|
|
|
|
|
+ width="100"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-tag
|
|
<el-tag
|
|
@@ -83,22 +83,17 @@
|
|
label="发货时间"
|
|
label="发货时间"
|
|
width="145"
|
|
width="145"
|
|
/>
|
|
/>
|
|
- <el-table-column
|
|
|
|
- fixed="right"
|
|
|
|
- width="50"
|
|
|
|
- v-if="
|
|
|
|
- ((status === '0' || status === '1') &&
|
|
|
|
- powers.some((item) => item == '048')) ||
|
|
|
|
- powers.some((item) => item == '007')
|
|
|
|
- "
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table-column fixed="right" width="100">
|
|
<template slot="header" slot-scope="scope">
|
|
<template slot="header" slot-scope="scope">
|
|
|
|
+ <span>操作</span>
|
|
<el-tooltip
|
|
<el-tooltip
|
|
style="margin: 3px 0 0 0"
|
|
style="margin: 3px 0 0 0"
|
|
effect="dark"
|
|
effect="dark"
|
|
|
|
+ class="fr"
|
|
v-if="
|
|
v-if="
|
|
(status === '0' || status === '1') &&
|
|
(status === '0' || status === '1') &&
|
|
- powers.some((item) => item == '048')
|
|
|
|
|
|
+ powers.some((item) => item == '048') &&
|
|
|
|
+ sitem.send_type !== '1'
|
|
"
|
|
"
|
|
content="添加"
|
|
content="添加"
|
|
placement="top"
|
|
placement="top"
|
|
@@ -109,7 +104,20 @@
|
|
@click="openHouseModal()"
|
|
@click="openHouseModal()"
|
|
></i>
|
|
></i>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
- <span v-else>操作</span>
|
|
|
|
|
|
+
|
|
|
|
+ <el-tooltip
|
|
|
|
+ style="margin: 3px 0 0 0"
|
|
|
|
+ effect="dark"
|
|
|
|
+ content="退货"
|
|
|
|
+ class="fr"
|
|
|
|
+ placement="top"
|
|
|
|
+ >
|
|
|
|
+ <i
|
|
|
|
+ class="el-icon-delete tb-icon"
|
|
|
|
+ style="color: #63cbe7; magin: 0 0 0 10px"
|
|
|
|
+ @click="openModal()"
|
|
|
|
+ ></i>
|
|
|
|
+ </el-tooltip>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -136,6 +144,16 @@
|
|
@refresh="refresh"
|
|
@refresh="refresh"
|
|
@closeModel="closeModel"
|
|
@closeModel="closeModel"
|
|
/>
|
|
/>
|
|
|
|
+
|
|
|
|
+ <add-model
|
|
|
|
+ :id="returnId"
|
|
|
|
+ :sitem="returnItem"
|
|
|
|
+ :show-model="returnModel"
|
|
|
|
+ :is-detail="false"
|
|
|
|
+ @refresh="searchList"
|
|
|
|
+ @cancel="returnModel = false"
|
|
|
|
+ />
|
|
|
|
+
|
|
<!-- <add-edit
|
|
<!-- <add-edit
|
|
:id="modelId"
|
|
:id="modelId"
|
|
:sitem="s_sitem"
|
|
:sitem="s_sitem"
|
|
@@ -151,14 +169,14 @@ import mixinPage from "@/mixins/elPaginationHandle";
|
|
import resToken from "@/mixins/resToken";
|
|
import resToken from "@/mixins/resToken";
|
|
import asyncRequest from "@/apis/service/sellOut/salesOrder/detail";
|
|
import asyncRequest from "@/apis/service/sellOut/salesOrder/detail";
|
|
import outOrderAddModel from "./out-order-add-model";
|
|
import outOrderAddModel from "./out-order-add-model";
|
|
-
|
|
|
|
|
|
+import addModel from "@/views/sellOut/sellReturn/components/addModel";
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "salesOrderDetail",
|
|
name: "salesOrderDetail",
|
|
mixins: [mixinPage, resToken],
|
|
mixins: [mixinPage, resToken],
|
|
props: ["newTime", "id", "sitem"],
|
|
props: ["newTime", "id", "sitem"],
|
|
- components: { outOrderAddModel },
|
|
|
|
|
|
+ components: { outOrderAddModel, addModel },
|
|
watch: {
|
|
watch: {
|
|
newTime: function (val) {
|
|
newTime: function (val) {
|
|
if (val) {
|
|
if (val) {
|
|
@@ -186,13 +204,14 @@ export default {
|
|
return {
|
|
return {
|
|
orderCode: "",
|
|
orderCode: "",
|
|
outCode: "",
|
|
outCode: "",
|
|
|
|
+ is_all: false,
|
|
// 状态
|
|
// 状态
|
|
statusOptions: [
|
|
statusOptions: [
|
|
- { id: "0", label: "待发货" },
|
|
|
|
|
|
+ { id: "0", label: "待公司采购" },
|
|
{ id: "1", label: "待库管发货" },
|
|
{ id: "1", label: "待库管发货" },
|
|
{ id: "2", label: "待收货" },
|
|
{ id: "2", label: "待收货" },
|
|
{ id: "3", label: "已收货" },
|
|
{ id: "3", label: "已收货" },
|
|
- { id: "4", label: "已全部退货" }
|
|
|
|
|
|
+ { id: "4", label: "已全部退货" },
|
|
],
|
|
],
|
|
showGoodsModel: false,
|
|
showGoodsModel: false,
|
|
stock_code: "",
|
|
stock_code: "",
|
|
@@ -204,6 +223,9 @@ export default {
|
|
modelId: "",
|
|
modelId: "",
|
|
modelItem: null,
|
|
modelItem: null,
|
|
s_sitem: null,
|
|
s_sitem: null,
|
|
|
|
+ returnId: "",
|
|
|
|
+ returnItem: null,
|
|
|
|
+ returnModel: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -231,7 +253,10 @@ export default {
|
|
async resetForm() {
|
|
async resetForm() {
|
|
// 重置
|
|
// 重置
|
|
await this.$nextTick(() => {
|
|
await this.$nextTick(() => {
|
|
- const { addrs, status } = this.sitem;
|
|
|
|
|
|
+ const { addrs, status, wsend_num, send_type } = this.sitem;
|
|
|
|
+ console.log(send_type);
|
|
|
|
+ let wsall = wsend_num * 1;
|
|
|
|
+
|
|
this.status = status;
|
|
this.status = status;
|
|
console.log(this.status);
|
|
console.log(this.status);
|
|
this.tableData = JSON.parse(JSON.stringify(addrs));
|
|
this.tableData = JSON.parse(JSON.stringify(addrs));
|
|
@@ -263,12 +288,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
- openHouseModal() {
|
|
|
|
- this.modelId = "add";
|
|
|
|
- this.modelItem = this.sitem;
|
|
|
|
- this.modelShowModel = true;
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
//省市区保存某一行
|
|
//省市区保存某一行
|
|
checkRow(rowIndex) {
|
|
checkRow(rowIndex) {
|
|
this.$refs.addrForm.validate((valid) => {
|
|
this.$refs.addrForm.validate((valid) => {
|
|
@@ -321,10 +340,16 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- openModal(code, sitem, outcode) {
|
|
|
|
- this.s_sitem = sitem;
|
|
|
|
- this.modelId = code;
|
|
|
|
- this.showModel = true;
|
|
|
|
|
|
+ openHouseModal() {
|
|
|
|
+ this.modelId = "add";
|
|
|
|
+ this.modelItem = this.sitem;
|
|
|
|
+ this.modelShowModel = true;
|
|
|
|
+ },
|
|
|
|
+ openModal() {
|
|
|
|
+ this.returnId = "add";
|
|
|
|
+ this.returnItem = this.sitem;
|
|
|
|
+ this.returnModel = false;
|
|
|
|
+ console.log(addModel);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|