|
@@ -29,6 +29,12 @@
|
|
<el-input class="input" v-model="lineName" disabled> </el-input>
|
|
<el-input class="input" v-model="lineName" disabled> </el-input>
|
|
<el-button type="primary" @click="ondrawer(5)">浏览</el-button>
|
|
<el-button type="primary" @click="ondrawer(5)">浏览</el-button>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="lineId from">
|
|
|
|
+ <span class="text">采购订单号:</span>
|
|
|
|
+ <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>
|
|
|
|
+ </div>
|
|
<div class="orderType from">
|
|
<div class="orderType from">
|
|
<span class="text">订单类别:</span>
|
|
<span class="text">订单类别:</span>
|
|
<el-select
|
|
<el-select
|
|
@@ -58,6 +64,14 @@
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="lineId from">
|
|
|
|
+ <span class="text">该批车辆是否一车多趟:</span>
|
|
|
|
+ <el-switch
|
|
|
|
+ v-model="isMoreTrips"
|
|
|
|
+ active-text="是"
|
|
|
|
+ inactive-text="否">
|
|
|
|
+ </el-switch>
|
|
|
|
+ </div>
|
|
<div class="truckListTable">
|
|
<div class="truckListTable">
|
|
<el-table
|
|
<el-table
|
|
:data="selectionList"
|
|
:data="selectionList"
|
|
@@ -112,40 +126,46 @@
|
|
style="margin-top: 10px; margin-right: 10px; width: 250px"
|
|
style="margin-top: 10px; margin-right: 10px; width: 250px"
|
|
clearable
|
|
clearable
|
|
></el-input>
|
|
></el-input>
|
|
- <el-button type="primary" class="btn" @click="onclick(a)">
|
|
|
|
|
|
+ <el-button type="primary" class="btn" @click="onclick">
|
|
<i class="el-icon-search"></i>查询
|
|
<i class="el-icon-search"></i>查询
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
- <div v-show="a == 1">
|
|
|
|
|
|
+ <div v-show="onDrawerNumber == 1">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="frist"
|
|
v-bind.sync="frist"
|
|
@radio-change="currentRadioChange1"
|
|
@radio-change="currentRadioChange1"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="a == 2">
|
|
|
|
|
|
+ <div v-show="onDrawerNumber == 2">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="secend"
|
|
v-bind.sync="secend"
|
|
@radio-change="currentRadioChange2"
|
|
@radio-change="currentRadioChange2"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="a == 3">
|
|
|
|
|
|
+ <div v-show="onDrawerNumber == 3">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="third"
|
|
v-bind.sync="third"
|
|
@selection-change="currentRadioChange3"
|
|
@selection-change="currentRadioChange3"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="a == 4">
|
|
|
|
|
|
+ <div v-show="onDrawerNumber == 4">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="unloadPoint"
|
|
v-bind.sync="unloadPoint"
|
|
@radio-change="currentRadioChange4"
|
|
@radio-change="currentRadioChange4"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="a == 5">
|
|
|
|
|
|
+ <div v-show="onDrawerNumber == 5">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="line"
|
|
v-bind.sync="line"
|
|
@radio-change="currentRadioChange5"
|
|
@radio-change="currentRadioChange5"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div v-show="onDrawerNumber == 6">
|
|
|
|
+ <dilTable
|
|
|
|
+ v-bind.sync="purchaseOrder"
|
|
|
|
+ @radio-change="currentRadioChange6"
|
|
|
|
+ ></dilTable>
|
|
|
|
+ </div>
|
|
</el-drawer>
|
|
</el-drawer>
|
|
<div class="button_box">
|
|
<div class="button_box">
|
|
<el-button @click="onClickCancel">返回</el-button>
|
|
<el-button @click="onClickCancel">返回</el-button>
|
|
@@ -161,6 +181,9 @@ export default {
|
|
components: { PageTitle },
|
|
components: { PageTitle },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ //采购订单号
|
|
|
|
+ purchaseOrderNo:'',
|
|
|
|
+ isMoreTrips:false,
|
|
//订单类别
|
|
//订单类别
|
|
orderTypeList: [
|
|
orderTypeList: [
|
|
{
|
|
{
|
|
@@ -220,7 +243,7 @@ export default {
|
|
unloadPointName: "",
|
|
unloadPointName: "",
|
|
//订单类别
|
|
//订单类别
|
|
orderType: null,
|
|
orderType: null,
|
|
- a: 1,
|
|
|
|
|
|
+ onDrawerNumber: 1,
|
|
direction: "rtl",
|
|
direction: "rtl",
|
|
input: "",
|
|
input: "",
|
|
frist: {
|
|
frist: {
|
|
@@ -247,6 +270,10 @@ export default {
|
|
requestUrl: "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3",
|
|
requestUrl: "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
},
|
|
},
|
|
|
|
+ purchaseOrder:{
|
|
|
|
+ requestUrl: "/api/v1/ams/getPurchaseOrderList?apiId=81",
|
|
|
|
+ selectionType: "radio",
|
|
|
|
+ }
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -296,7 +323,7 @@ export default {
|
|
console.log();
|
|
console.log();
|
|
this.remark = res.data.data.remark;
|
|
this.remark = res.data.data.remark;
|
|
this.purchaseOrderId = res.data.data.purchaseOrderId;
|
|
this.purchaseOrderId = res.data.data.purchaseOrderId;
|
|
- this.form1 = { 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 = 6;
|
|
} else {
|
|
} else {
|
|
@@ -309,18 +336,18 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- onclick(a) {
|
|
|
|
- if (a == 1) {
|
|
|
|
|
|
+ onclick() {
|
|
|
|
+ if (this.onDrawerNumber == 1) {
|
|
this.frist.requestUrl =
|
|
this.frist.requestUrl =
|
|
"/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
|
|
"/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
|
|
this.input;
|
|
this.input;
|
|
- } else if (a == 2) {
|
|
|
|
|
|
+ } else if (this.onDrawerNumber == 2) {
|
|
this.secend.requestUrl =
|
|
this.secend.requestUrl =
|
|
"/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
"/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
this.materialId +
|
|
this.materialId +
|
|
"&index=" +
|
|
"&index=" +
|
|
this.input;
|
|
this.input;
|
|
- } else if (a == 3) {
|
|
|
|
|
|
+ } else if (this.onDrawerNumber == 3) {
|
|
//判断是否是承运商查询车辆
|
|
//判断是否是承运商查询车辆
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
this.third.requestUrl =
|
|
this.third.requestUrl =
|
|
@@ -335,21 +362,46 @@ export default {
|
|
"&index=" +
|
|
"&index=" +
|
|
this.input;
|
|
this.input;
|
|
}
|
|
}
|
|
- } else if (a == 4) {
|
|
|
|
|
|
+ } else if (this.onDrawerNumber == 4) {
|
|
this.unloadPoint.requestUrl =
|
|
this.unloadPoint.requestUrl =
|
|
"/api/v1/uc/getUnloadingMesByLike?apiId=347&index=" + this.input;
|
|
"/api/v1/uc/getUnloadingMesByLike?apiId=347&index=" + this.input;
|
|
- } else if (a == 5) {
|
|
|
|
|
|
+ } else if (this.onDrawerNumber == 5) {
|
|
this.option.requestUrl =
|
|
this.option.requestUrl =
|
|
"/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=" + this.input;
|
|
"/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=" + this.input;
|
|
|
|
+ }else if (this.onDrawerNumber == 6) {
|
|
|
|
+ console.log("caig")
|
|
|
|
+ this.purchaseOrder.requestUrl =
|
|
|
|
+ "/api/v1/ams/getPurchaseOrderList?apiId=81&con=" + this.input+"&i="+new Date();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
ondrawer(num) {
|
|
ondrawer(num) {
|
|
this.drawer = true;
|
|
this.drawer = true;
|
|
- this.a = num;
|
|
|
|
|
|
+ this.onDrawerNumber = num;
|
|
if (num == 2) {
|
|
if (num == 2) {
|
|
this.secend.requestUrl =
|
|
this.secend.requestUrl =
|
|
"/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
"/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
this.materialId;
|
|
this.materialId;
|
|
|
|
+ } else if (num == 3) {
|
|
|
|
+ //判断是否是承运商查询车辆
|
|
|
|
+ if (getCookie("orgCode") == "chengyunshang") {
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
+ getCookie("userId") +
|
|
|
|
+ "&i=" + new Date();
|
|
|
|
+ } else {
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
+ null + "&i=" + new Date();
|
|
|
|
+ }
|
|
|
|
+ } else if (num == 4) {
|
|
|
|
+ this.unloadPoint.requestUrl =
|
|
|
|
+ "/api/v1/uc/getUnloadingMesByLike?apiId=347&i=" + new Date();
|
|
|
|
+ } else if (num == 5) {
|
|
|
|
+ this.option.requestUrl =
|
|
|
|
+ "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i=" + new Date();
|
|
|
|
+ }else if (num == 6) {
|
|
|
|
+ this.purchaseOrder.requestUrl =
|
|
|
|
+ "/api/v1/ams/getPurchaseOrderList?apiId=81&i=" + new Date();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 返回
|
|
// 返回
|
|
@@ -374,6 +426,10 @@ export default {
|
|
this.lineName = selection.lineName;
|
|
this.lineName = selection.lineName;
|
|
this.lineId = selection.lineId;
|
|
this.lineId = selection.lineId;
|
|
},
|
|
},
|
|
|
|
+ currentRadioChange6(selection) {
|
|
|
|
+ this.purchaseOrderNo = selection.purchaseOrderNo;
|
|
|
|
+ this.purchaseOrderId = selection.purchaseOrderId;
|
|
|
|
+ },
|
|
currentRadioChange3(selection) {
|
|
currentRadioChange3(selection) {
|
|
this.selectionList = [];
|
|
this.selectionList = [];
|
|
this.selectionList = selection;
|
|
this.selectionList = selection;
|
|
@@ -465,6 +521,7 @@ export default {
|
|
driverCapacityIdList: this.selectionList,
|
|
driverCapacityIdList: this.selectionList,
|
|
orderType: this.orderType,
|
|
orderType: this.orderType,
|
|
lineId: this.lineId,
|
|
lineId: this.lineId,
|
|
|
|
+ isMoreTrips:this.isMoreTrips,
|
|
};
|
|
};
|
|
console.log(map, map);
|
|
console.log(map, map);
|
|
this.axios.post("/api/v1/oms/addPurOrder", map).then((res) => {
|
|
this.axios.post("/api/v1/oms/addPurOrder", map).then((res) => {
|
|
@@ -517,6 +574,11 @@ export default {
|
|
width: 250px;
|
|
width: 250px;
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
}
|
|
|
|
+ .span{
|
|
|
|
+ display: inline-block;
|
|
|
|
+ width: 70px;
|
|
|
|
+ height: 1px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.material {
|
|
.material {
|
|
display: flex;
|
|
display: flex;
|