|
@@ -51,13 +51,6 @@
|
|
>
|
|
>
|
|
<el-table-column fixed="right" label="操作" width="180">
|
|
<el-table-column fixed="right" label="操作" width="180">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button
|
|
|
|
- @click="updateCapacity(scope.row)"
|
|
|
|
- type="text"
|
|
|
|
- size="small"
|
|
|
|
- >
|
|
|
|
- 修改运力
|
|
|
|
- </el-button>
|
|
|
|
<el-button
|
|
<el-button
|
|
@click="detailclick2(scope.row)"
|
|
@click="detailclick2(scope.row)"
|
|
type="text"
|
|
type="text"
|
|
@@ -65,13 +58,6 @@
|
|
>
|
|
>
|
|
物资详情
|
|
物资详情
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button
|
|
|
|
- @click="closeOrder(scope.row)"
|
|
|
|
- type="text"
|
|
|
|
- size="small"
|
|
|
|
- >
|
|
|
|
- 关闭订单
|
|
|
|
- </el-button>
|
|
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<!-- 物资详情抽屉 -->
|
|
<!-- 物资详情抽屉 -->
|
|
@@ -113,13 +99,6 @@
|
|
>
|
|
>
|
|
物资详情
|
|
物资详情
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button
|
|
|
|
- @click="updateCapacity(scope.row)"
|
|
|
|
- type="text"
|
|
|
|
- size="small"
|
|
|
|
- >
|
|
|
|
- 修改运力
|
|
|
|
- </el-button>
|
|
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<!-- 物资详情抽屉 -->
|
|
<!-- 物资详情抽屉 -->
|
|
@@ -202,13 +181,13 @@ export default {
|
|
// option1请求数据的地址,承运商(运输订单状态为已接收,接收状态为已接收)
|
|
// option1请求数据的地址,承运商(运输订单状态为已接收,接收状态为已接收)
|
|
requestUrl:
|
|
requestUrl:
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=5&shipperId=1&carrierSsoId=" +
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=5&shipperId=1&carrierSsoId=" +
|
|
- "",
|
|
|
|
|
|
+ ""
|
|
},
|
|
},
|
|
option2: {
|
|
option2: {
|
|
// option2请求数据的地址,承运商暂时设置为默认(运输订单状态为)
|
|
// option2请求数据的地址,承运商暂时设置为默认(运输订单状态为)
|
|
requestUrl:
|
|
requestUrl:
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=6&shipperId=1&carrierSsoId=" +
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=6&shipperId=1&carrierSsoId=" +
|
|
- "",
|
|
|
|
|
|
+ ""
|
|
},
|
|
},
|
|
option3: {
|
|
option3: {
|
|
// option3请求数据的地址
|
|
// option3请求数据的地址
|
|
@@ -216,11 +195,11 @@ export default {
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=4&shipperId=1&&carrierSsoId=" +
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=4&shipperId=1&&carrierSsoId=" +
|
|
"",
|
|
"",
|
|
selectionType: "select",
|
|
selectionType: "select",
|
|
- mapList: [],
|
|
|
|
|
|
+ mapList: []
|
|
},
|
|
},
|
|
truck: {
|
|
truck: {
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
- selectionType: "radio",
|
|
|
|
|
|
+ selectionType: "radio"
|
|
},
|
|
},
|
|
activeName: "third",
|
|
activeName: "third",
|
|
//记录旧的row对象(已接收)
|
|
//记录旧的row对象(已接收)
|
|
@@ -239,30 +218,30 @@ export default {
|
|
{
|
|
{
|
|
prop: "materialName",
|
|
prop: "materialName",
|
|
label: "物资名称",
|
|
label: "物资名称",
|
|
- width: 150,
|
|
|
|
|
|
+ width: 150
|
|
},
|
|
},
|
|
{
|
|
{
|
|
prop: "specificationModel",
|
|
prop: "specificationModel",
|
|
label: "规格型号",
|
|
label: "规格型号",
|
|
- width: 150,
|
|
|
|
|
|
+ width: 150
|
|
},
|
|
},
|
|
{
|
|
{
|
|
prop: "materialNumber",
|
|
prop: "materialNumber",
|
|
label: "物资件数",
|
|
label: "物资件数",
|
|
- width: 100,
|
|
|
|
|
|
+ width: 100
|
|
},
|
|
},
|
|
{
|
|
{
|
|
prop: "materialWeight",
|
|
prop: "materialWeight",
|
|
label: "物资重量",
|
|
label: "物资重量",
|
|
- width: 100,
|
|
|
|
- },
|
|
|
|
|
|
+ width: 100
|
|
|
|
+ }
|
|
],
|
|
],
|
|
tableData: [],
|
|
tableData: [],
|
|
tableData1: [],
|
|
tableData1: [],
|
|
tableData2: [],
|
|
tableData2: [],
|
|
capacityId: null,
|
|
capacityId: null,
|
|
dialogTableVisible: false,
|
|
dialogTableVisible: false,
|
|
- orderId: null,
|
|
|
|
|
|
+ orderId: null
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
|
|
@@ -361,34 +340,34 @@ export default {
|
|
if (this.option3.mapList.length == 0) {
|
|
if (this.option3.mapList.length == 0) {
|
|
this.$message({
|
|
this.$message({
|
|
type: "warning",
|
|
type: "warning",
|
|
- message: "请先选择要关闭的订单!",
|
|
|
|
|
|
+ message: "请先选择要关闭的订单!"
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
this.$confirm("是否关闭这些订单", "提示", {
|
|
this.$confirm("是否关闭这些订单", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning",
|
|
type: "warning",
|
|
- center: true,
|
|
|
|
|
|
+ center: true
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
//初始化maplist
|
|
//初始化maplist
|
|
var mapList = [];
|
|
var mapList = [];
|
|
- this.option3.mapList.forEach((item) => {
|
|
|
|
|
|
+ this.option3.mapList.forEach(item => {
|
|
//初始化mapItem
|
|
//初始化mapItem
|
|
var mapItem = {
|
|
var mapItem = {
|
|
//销售订单物资中间表id
|
|
//销售订单物资中间表id
|
|
- orderId: 0,
|
|
|
|
|
|
+ orderId: 0
|
|
};
|
|
};
|
|
mapItem.orderId = item.orderId;
|
|
mapItem.orderId = item.orderId;
|
|
mapList.push(mapItem);
|
|
mapList.push(mapItem);
|
|
});
|
|
});
|
|
this.$message({
|
|
this.$message({
|
|
type: "success",
|
|
type: "success",
|
|
- message: "关闭成功!",
|
|
|
|
|
|
+ message: "关闭成功!"
|
|
});
|
|
});
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/oms/batchCloseOrder", mapList)
|
|
.post("/api/v1/oms/batchCloseOrder", mapList)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
this.getRequestUrl();
|
|
this.getRequestUrl();
|
|
}
|
|
}
|
|
@@ -397,7 +376,7 @@ export default {
|
|
.catch(() => {
|
|
.catch(() => {
|
|
this.$message({
|
|
this.$message({
|
|
type: "info",
|
|
type: "info",
|
|
- message: "取消关闭!",
|
|
|
|
|
|
+ message: "取消关闭!"
|
|
});
|
|
});
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -449,9 +428,9 @@ export default {
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/oms/updateCapacityId", {
|
|
.post("/api/v1/oms/updateCapacityId", {
|
|
capacityId: this.capacityId,
|
|
capacityId: this.capacityId,
|
|
- orderId: this.orderId,
|
|
|
|
|
|
+ orderId: this.orderId
|
|
})
|
|
})
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
this.$message.success("修改运力成功");
|
|
this.$message.success("修改运力成功");
|
|
this.getRequestUrl();
|
|
this.getRequestUrl();
|
|
@@ -537,7 +516,7 @@ export default {
|
|
// 根据销售订单id查询物资信息
|
|
// 根据销售订单id查询物资信息
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/oms/getOrderMaterialList?orderId=" + row.orderId)
|
|
.post("/api/v1/oms/getOrderMaterialList?orderId=" + row.orderId)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
console.log("res.data.data", res.data.data);
|
|
console.log("res.data.data", res.data.data);
|
|
this.tableData = res.data.data;
|
|
this.tableData = res.data.data;
|
|
});
|
|
});
|
|
@@ -569,7 +548,7 @@ export default {
|
|
// 根据销售订单物资中间表id查询物资信息
|
|
// 根据销售订单物资中间表id查询物资信息
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/oms/getOrderMaterialList?orderId=" + row.orderId)
|
|
.post("/api/v1/oms/getOrderMaterialList?orderId=" + row.orderId)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
console.log("res.data.data", res.data.data);
|
|
console.log("res.data.data", res.data.data);
|
|
this.tableData1 = res.data.data;
|
|
this.tableData1 = res.data.data;
|
|
});
|
|
});
|
|
@@ -601,7 +580,7 @@ export default {
|
|
// 根据销售订单物资中间表id查询物资信息
|
|
// 根据销售订单物资中间表id查询物资信息
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/oms/getOrderMaterialList?orderId=" + row.orderId)
|
|
.post("/api/v1/oms/getOrderMaterialList?orderId=" + row.orderId)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
this.tableData2 = res.data.data;
|
|
this.tableData2 = res.data.data;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -611,17 +590,17 @@ export default {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning",
|
|
type: "warning",
|
|
- center: true,
|
|
|
|
|
|
+ center: true
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/oms/closeOrder?orderId=" + row.orderId)
|
|
.post("/api/v1/oms/closeOrder?orderId=" + row.orderId)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
this.getRequestUrl();
|
|
this.getRequestUrl();
|
|
this.$message({
|
|
this.$message({
|
|
type: "success",
|
|
type: "success",
|
|
- message: "关闭成功!",
|
|
|
|
|
|
+ message: "关闭成功!"
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -629,11 +608,11 @@ export default {
|
|
.catch(() => {
|
|
.catch(() => {
|
|
this.$message({
|
|
this.$message({
|
|
type: "info",
|
|
type: "info",
|
|
- message: "取消关闭!",
|
|
|
|
|
|
+ message: "取消关闭!"
|
|
});
|
|
});
|
|
});
|
|
});
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scode>
|
|
<style lang="scss" scode>
|