|
@@ -32,8 +32,7 @@
|
|
<div class="lineId from">
|
|
<div class="lineId from">
|
|
<span class="text">采购订单号:</span>
|
|
<span class="text">采购订单号:</span>
|
|
<el-input class="input" v-model="purchaseOrderNo" disabled> </el-input>
|
|
<el-input class="input" v-model="purchaseOrderNo" disabled> </el-input>
|
|
- <el-button type="primary" @click="ondrawer(6)" v-if="materialId && supplierId">浏览</el-button>
|
|
|
|
- <span v-else class="span"></span>
|
|
|
|
|
|
+ <el-button type="primary" @click="ondrawer(6)">浏览</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="orderType from">
|
|
<div class="orderType from">
|
|
<span class="text">订单类别:</span>
|
|
<span class="text">订单类别:</span>
|
|
@@ -271,8 +270,7 @@ export default {
|
|
mapList1: [],
|
|
mapList1: [],
|
|
},
|
|
},
|
|
secend: {
|
|
secend: {
|
|
- requestUrl:
|
|
|
|
- "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=",
|
|
|
|
|
|
+ requestUrl:"",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
mapList2: [],
|
|
mapList2: [],
|
|
},
|
|
},
|
|
@@ -282,15 +280,15 @@ export default {
|
|
mapList3: [],
|
|
mapList3: [],
|
|
},
|
|
},
|
|
unloadPoint: {
|
|
unloadPoint: {
|
|
- requestUrl: "/api/v1/uc/getUnloadingMesByLike?apiId=374",
|
|
|
|
|
|
+ requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
},
|
|
},
|
|
line: {
|
|
line: {
|
|
- requestUrl: "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3",
|
|
|
|
|
|
+ requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
},
|
|
},
|
|
purchaseOrder:{
|
|
purchaseOrder:{
|
|
- requestUrl: "/api/v1/ams/getPurchaseOrderList?apiId=81",
|
|
|
|
|
|
+ requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -344,9 +342,9 @@ export default {
|
|
this.purchaseOrderId = res.data.data.purchaseOrderId;
|
|
this.purchaseOrderId = res.data.data.purchaseOrderId;
|
|
this.purchaseOrderNo=res.data.data.purchaseOrderNo;
|
|
this.purchaseOrderNo=res.data.data.purchaseOrderNo;
|
|
if (res.data.data.receiveUnitId == 1) {
|
|
if (res.data.data.receiveUnitId == 1) {
|
|
- this.orderType = 6;
|
|
|
|
|
|
+ this.orderType = 17;
|
|
} else {
|
|
} else {
|
|
- this.orderType = 7;
|
|
|
|
|
|
+ this.orderType = 18;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -355,9 +353,6 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- func(res){
|
|
|
|
- this.isKuang = false;
|
|
|
|
- },
|
|
|
|
onclick() {
|
|
onclick() {
|
|
if(this.input){
|
|
if(this.input){
|
|
this.isKuang = true;
|
|
this.isKuang = true;
|
|
@@ -373,38 +368,38 @@ export default {
|
|
this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null + "&index=" + this.input;
|
|
this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null + "&index=" + this.input;
|
|
}
|
|
}
|
|
} else if (this.onDrawerNumber == 4) {
|
|
} else if (this.onDrawerNumber == 4) {
|
|
- this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" + this.input;
|
|
|
|
|
|
+ this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" + this.input;
|
|
} else if (this.onDrawerNumber == 5) {
|
|
} else if (this.onDrawerNumber == 5) {
|
|
this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=" + this.input;
|
|
this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=" + this.input;
|
|
}else if (this.onDrawerNumber == 6) {
|
|
}else if (this.onDrawerNumber == 6) {
|
|
- this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81&con=" + this.input+"&i="+new Date();
|
|
|
|
|
|
+ this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId="+this.supplierId+"&con=" + this.input+"&i="+new Date();
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
if (this.onDrawerNumber == 1) {
|
|
if (this.onDrawerNumber == 1) {
|
|
- this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050"
|
|
|
|
|
|
+ this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&i="+new Date();
|
|
} else if (this.onDrawerNumber == 2) {
|
|
} else if (this.onDrawerNumber == 2) {
|
|
- this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId;
|
|
|
|
|
|
+ this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId+"&i="+new Date();
|
|
} else if (this.onDrawerNumber == 3) {
|
|
} else if (this.onDrawerNumber == 3) {
|
|
//判断是否是承运商查询车辆
|
|
//判断是否是承运商查询车辆
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
- this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + getCookie("userId");
|
|
|
|
|
|
+ this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + getCookie("userId")+"&i="+new Date();
|
|
} else {
|
|
} else {
|
|
- this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null;
|
|
|
|
|
|
+ this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null+"&i="+new Date();
|
|
}
|
|
}
|
|
} else if (this.onDrawerNumber == 4) {
|
|
} else if (this.onDrawerNumber == 4) {
|
|
- this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374";
|
|
|
|
|
|
+ this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374&i="+new Date();
|
|
} else if (this.onDrawerNumber == 5) {
|
|
} else if (this.onDrawerNumber == 5) {
|
|
- this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3";
|
|
|
|
|
|
+ this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i="+new Date();
|
|
}else if (this.onDrawerNumber == 6) {
|
|
}else if (this.onDrawerNumber == 6) {
|
|
- this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81";
|
|
|
|
|
|
+ this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId="+this.supplierId+"&i="+new Date();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
ondrawer(num) {
|
|
ondrawer(num) {
|
|
- this.onDrawerNumber = num;
|
|
|
|
this.drawer = true;
|
|
this.drawer = true;
|
|
|
|
+ this.onDrawerNumber = num;
|
|
if(num == 1){
|
|
if(num == 1){
|
|
- this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050"
|
|
|
|
|
|
+ this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" + this.input;
|
|
}else if (num == 2) {
|
|
}else if (num == 2) {
|
|
this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId;
|
|
this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId;
|
|
} else if (num == 3) {
|
|
} else if (num == 3) {
|
|
@@ -417,9 +412,9 @@ export default {
|
|
} else if (num == 4) {
|
|
} else if (num == 4) {
|
|
this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374&i=" + new Date();
|
|
this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374&i=" + new Date();
|
|
} else if (num == 5) {
|
|
} else if (num == 5) {
|
|
- this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i=" + new Date();
|
|
|
|
|
|
+ this.line.requestUrl ="/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i=" + new Date();
|
|
}else if (num == 6) {
|
|
}else if (num == 6) {
|
|
- this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81&i=" + new Date();
|
|
|
|
|
|
+ this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId="+ this.supplierId+"&i=" + new Date();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 返回
|
|
// 返回
|
|
@@ -445,6 +440,16 @@ export default {
|
|
this.lineId = selection.lineId;
|
|
this.lineId = selection.lineId;
|
|
},
|
|
},
|
|
currentRadioChange6(selection) {
|
|
currentRadioChange6(selection) {
|
|
|
|
+ console.log(selection)
|
|
|
|
+ if (selection.shipperId == 1) {
|
|
|
|
+ this.orderType = 6;
|
|
|
|
+ } else {
|
|
|
|
+ this.orderType = 7;
|
|
|
|
+ }
|
|
|
|
+ this.materialName = selection.materialName;
|
|
|
|
+ this.materialId = selection.materialId;
|
|
|
|
+ this.supplierId = selection.supplierId;
|
|
|
|
+ this.supplierName = selection.supplierName;
|
|
this.purchaseOrderNo = selection.purchaseOrderNo;
|
|
this.purchaseOrderNo = selection.purchaseOrderNo;
|
|
this.purchaseOrderId = selection.purchaseOrderId;
|
|
this.purchaseOrderId = selection.purchaseOrderId;
|
|
},
|
|
},
|
|
@@ -452,6 +457,10 @@ export default {
|
|
this.selectionList = [];
|
|
this.selectionList = [];
|
|
this.selectionList = selection;
|
|
this.selectionList = selection;
|
|
},
|
|
},
|
|
|
|
+ func(res){
|
|
|
|
+ console.log(res)
|
|
|
|
+ this.isKuang = false;
|
|
|
|
+ },
|
|
// 确认
|
|
// 确认
|
|
onClickConfirm() {
|
|
onClickConfirm() {
|
|
var state = 0;
|
|
var state = 0;
|
|
@@ -548,7 +557,7 @@ export default {
|
|
message: "添加成功!",
|
|
message: "添加成功!",
|
|
type: "success",
|
|
type: "success",
|
|
});
|
|
});
|
|
- this.$router.push("/transportReserveRan");
|
|
|
|
|
|
+ this.$router.push("/transportationReservation");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|