|
@@ -250,7 +250,7 @@ export default {
|
|
|
this.truck.requestUrl =
|
|
|
"/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
|
|
|
getCookie("userId");
|
|
|
- this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3";
|
|
|
+ this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=1";
|
|
|
this.option.requestUrl =
|
|
|
"/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&enableStatus=1&planStatus=2&carrierSsoId=" +
|
|
|
getCookie("userId");
|
|
@@ -260,7 +260,7 @@ export default {
|
|
|
"&con=" +
|
|
|
"铁专线精煤";
|
|
|
this.line.requestUrl =
|
|
|
- "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3" +
|
|
|
+ "/api/v1/rms/getAllLineDesk?apiId=249&lineType=1" +
|
|
|
"&con=" +
|
|
|
"采购内转";
|
|
|
this.option.requestUrl =
|
|
@@ -268,7 +268,7 @@ export default {
|
|
|
} else {
|
|
|
this.truck.requestUrl =
|
|
|
"/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + null;
|
|
|
- this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3";
|
|
|
+ this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=1";
|
|
|
this.option.requestUrl =
|
|
|
"/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&enableStatus=1&planStatus=2";
|
|
|
}
|
|
@@ -276,23 +276,33 @@ export default {
|
|
|
methods: {
|
|
|
//点击确定按钮的事件
|
|
|
makeSure() {
|
|
|
+ console.log(this.orderType);
|
|
|
this.disabled = true;
|
|
|
if (this.planId == null) {
|
|
|
this.$message.error("未勾选计划");
|
|
|
this.disabled = false;
|
|
|
return;
|
|
|
- } else if (this.lineId == null) {
|
|
|
- if (this.orderType == 10 || this.orderType == 20) {
|
|
|
+ }
|
|
|
+ if (this.lineId == null) {
|
|
|
+ if (
|
|
|
+ this.orderType == 10 ||
|
|
|
+ this.orderType == 20 ||
|
|
|
+ this.orderType == 23 ||
|
|
|
+ this.orderType == 24
|
|
|
+ ) {
|
|
|
this.$message.error("未选择路线");
|
|
|
this.disabled = false;
|
|
|
return;
|
|
|
}
|
|
|
- } else if (this.selectionList.length == 0) {
|
|
|
+ }
|
|
|
+ if (this.selectionList.length == 0) {
|
|
|
this.$message.error("未选择车辆");
|
|
|
this.disabled = false;
|
|
|
return;
|
|
|
- } else if (this.orderType == null) {
|
|
|
+ }
|
|
|
+ if (this.orderType == null) {
|
|
|
this.$message.error("请选择订单类型");
|
|
|
+ this.disabled = false;
|
|
|
return;
|
|
|
}
|
|
|
this.axios
|
|
@@ -402,13 +412,13 @@ export default {
|
|
|
} else {
|
|
|
this.lineDrawer = true;
|
|
|
this.line.requestUrl =
|
|
|
- "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i=" + new Date();
|
|
|
+ "/api/v1/rms/getAllLineDesk?apiId=249&lineType=1&i=" + new Date();
|
|
|
}
|
|
|
},
|
|
|
//线路表格的框计算
|
|
|
selectClick() {
|
|
|
this.line.requestUrl =
|
|
|
- "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=" + this.lineText;
|
|
|
+ "/api/v1/rms/getAllLineDesk?apiId=249&lineType=1&con=" + this.lineText;
|
|
|
}
|
|
|
}
|
|
|
};
|