|
@@ -127,7 +127,6 @@ export default {
|
|
shiyHeigth:140,
|
|
shiyHeigth:140,
|
|
isHeigth:true,
|
|
isHeigth:true,
|
|
isKuang:false,
|
|
isKuang:false,
|
|
- lineId:null,
|
|
|
|
requirementId:null,
|
|
requirementId:null,
|
|
capacityNumber:null,
|
|
capacityNumber:null,
|
|
userCarrierId:null,
|
|
userCarrierId:null,
|
|
@@ -143,7 +142,7 @@ export default {
|
|
carrierId:null,
|
|
carrierId:null,
|
|
form: {},
|
|
form: {},
|
|
first:{
|
|
first:{
|
|
- requestUrl: "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&planId="+this.$route.params.planId,
|
|
|
|
|
|
+ requestUrl: "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=100&planId="+this.$route.params.planId,
|
|
},
|
|
},
|
|
second:{
|
|
second:{
|
|
requestUrl:"/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + null,
|
|
requestUrl:"/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + null,
|
|
@@ -186,6 +185,7 @@ export default {
|
|
},
|
|
},
|
|
],
|
|
],
|
|
tableData1: [],
|
|
tableData1: [],
|
|
|
|
+ newsArr:[]
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created(){
|
|
created(){
|
|
@@ -195,10 +195,10 @@ export default {
|
|
getCookie("userId");
|
|
getCookie("userId");
|
|
} else if(getCookie("orgCode") == "wuliuchuyunzhongxin"){
|
|
} else if(getCookie("orgCode") == "wuliuchuyunzhongxin"){
|
|
this.second.requestUrl =
|
|
this.second.requestUrl =
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null + "&con="+"物流储运中心";
|
|
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + null + "&con="+"物流储运中心";
|
|
}else {
|
|
}else {
|
|
this.second.requestUrl =
|
|
this.second.requestUrl =
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null
|
|
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
@@ -208,14 +208,14 @@ export default {
|
|
getInwardRequestUrl(){
|
|
getInwardRequestUrl(){
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
this.second.requestUrl =
|
|
this.second.requestUrl =
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
|
|
getCookie("userId") + "&i=" + new Date();
|
|
getCookie("userId") + "&i=" + new Date();
|
|
} else if(getCookie("orgCode") == "wuliuchuyunzhongxin"){
|
|
} else if(getCookie("orgCode") == "wuliuchuyunzhongxin"){
|
|
this.second.requestUrl =
|
|
this.second.requestUrl =
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null + "&con="+"物流储运中心" + "&i=" + new Date();
|
|
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + null + "&con="+"物流储运中心" + "&i=" + new Date();
|
|
}else {
|
|
}else {
|
|
this.second.requestUrl =
|
|
this.second.requestUrl =
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null + "&i=" + new Date();
|
|
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + null + "&i=" + new Date();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getRequirementMaterial(row) {
|
|
getRequirementMaterial(row) {
|
|
@@ -257,14 +257,12 @@ export default {
|
|
onConfirm(){
|
|
onConfirm(){
|
|
console.log(this.mapList1)
|
|
console.log(this.mapList1)
|
|
this.drawer = false
|
|
this.drawer = false
|
|
- this.mapList1.forEach((e) => {
|
|
|
|
|
|
+ this.newsArr.forEach((e) => {
|
|
console.log((e.capacityNumber))
|
|
console.log((e.capacityNumber))
|
|
this.capacityNumber = e.capacityNumber
|
|
this.capacityNumber = e.capacityNumber
|
|
this.insertEvent()
|
|
this.insertEvent()
|
|
})
|
|
})
|
|
- },
|
|
|
|
- drawerLine(){
|
|
|
|
- this.linedrawer = true
|
|
|
|
|
|
+ this.newsArr = []
|
|
},
|
|
},
|
|
onclick(){
|
|
onclick(){
|
|
if(this.truckText != null){
|
|
if(this.truckText != null){
|
|
@@ -274,14 +272,12 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
currentRadioChange(selection){
|
|
currentRadioChange(selection){
|
|
- this.mapList1=selection,
|
|
|
|
- console.log(this.mapList1)
|
|
|
|
- },
|
|
|
|
- currentRadioChange1(selection){
|
|
|
|
- this.mapList0=selection
|
|
|
|
- this.lineName = this.mapList0.lineName
|
|
|
|
- this.lineId = this.mapList0.lineId
|
|
|
|
- console.log(this.mapList0.lineId)
|
|
|
|
|
|
+ this.mapList1=selection
|
|
|
|
+ for (let i = 0; i < selection.length; i++) {
|
|
|
|
+ if(this.newsArr.indexOf(selection[i]) === -1){
|
|
|
|
+ this.newsArr.push(selection[i]);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
handleClose(done){
|
|
handleClose(done){
|
|
done();
|
|
done();
|
|
@@ -297,7 +293,7 @@ export default {
|
|
//查看需求详情
|
|
//查看需求详情
|
|
this.axios
|
|
this.axios
|
|
.post(
|
|
.post(
|
|
- "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&planId=" + this.$route.params.planId
|
|
|
|
|
|
+ "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=200&planId=" + this.$route.params.planId
|
|
)
|
|
)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
console.log(res.data.data)
|
|
console.log(res.data.data)
|
|
@@ -349,12 +345,12 @@ export default {
|
|
.post("/api/v1/oms/addInwardOrder", BmsTrainFreight)
|
|
.post("/api/v1/oms/addInwardOrder", BmsTrainFreight)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
- this.$router.go(-1);
|
|
|
|
this.$message({
|
|
this.$message({
|
|
type: "success",
|
|
type: "success",
|
|
message: "分解成功!",
|
|
message: "分解成功!",
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+ this.cancel()
|
|
|
|
+ this.disabled = false
|
|
} else {
|
|
} else {
|
|
this.$message.error("分解失败!");
|
|
this.$message.error("分解失败!");
|
|
this.disabled = false
|
|
this.disabled = false
|