|
@@ -130,40 +130,58 @@
|
|
<i class="el-icon-search"></i>查询
|
|
<i class="el-icon-search"></i>查询
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
- <div v-show="onDrawerNumber == 1">
|
|
|
|
|
|
+ <div v-if="onDrawerNumber == 1">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="frist"
|
|
v-bind.sync="frist"
|
|
@radio-change="currentRadioChange1"
|
|
@radio-change="currentRadioChange1"
|
|
|
|
+ :isKuang="isKuang"
|
|
|
|
+ @func="func"
|
|
|
|
+ :drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="onDrawerNumber == 2">
|
|
|
|
|
|
+ <div v-else-if="onDrawerNumber == 2">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="secend"
|
|
v-bind.sync="secend"
|
|
@radio-change="currentRadioChange2"
|
|
@radio-change="currentRadioChange2"
|
|
|
|
+ :isKuang="isKuang"
|
|
|
|
+ @func="func"
|
|
|
|
+ :drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="onDrawerNumber == 3">
|
|
|
|
|
|
+ <div v-else-if="onDrawerNumber == 3">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="third"
|
|
v-bind.sync="third"
|
|
@selection-change="currentRadioChange3"
|
|
@selection-change="currentRadioChange3"
|
|
|
|
+ :isKuang="isKuang"
|
|
|
|
+ @func="func"
|
|
|
|
+ :drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="onDrawerNumber == 4">
|
|
|
|
|
|
+ <div v-else-if="onDrawerNumber == 4">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="unloadPoint"
|
|
v-bind.sync="unloadPoint"
|
|
@radio-change="currentRadioChange4"
|
|
@radio-change="currentRadioChange4"
|
|
|
|
+ :isKuang="isKuang"
|
|
|
|
+ @func="func"
|
|
|
|
+ :drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="onDrawerNumber == 5">
|
|
|
|
|
|
+ <div v-else-if="onDrawerNumber == 5">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="line"
|
|
v-bind.sync="line"
|
|
@radio-change="currentRadioChange5"
|
|
@radio-change="currentRadioChange5"
|
|
|
|
+ :isKuang="isKuang"
|
|
|
|
+ @func="func"
|
|
|
|
+ :drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
- <div v-show="onDrawerNumber == 6">
|
|
|
|
|
|
+ <div v-else-if="onDrawerNumber == 6">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="purchaseOrder"
|
|
v-bind.sync="purchaseOrder"
|
|
@radio-change="currentRadioChange6"
|
|
@radio-change="currentRadioChange6"
|
|
|
|
+ :isKuang="isKuang"
|
|
|
|
+ @func="func"
|
|
|
|
+ :drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
</el-drawer>
|
|
</el-drawer>
|
|
@@ -181,6 +199,7 @@ export default {
|
|
components: { PageTitle },
|
|
components: { PageTitle },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ isKuang:false,
|
|
//采购订单号
|
|
//采购订单号
|
|
purchaseOrderNo:'',
|
|
purchaseOrderNo:'',
|
|
isMoreTrips:false,
|
|
isMoreTrips:false,
|
|
@@ -247,7 +266,7 @@ export default {
|
|
direction: "rtl",
|
|
direction: "rtl",
|
|
input: "",
|
|
input: "",
|
|
frist: {
|
|
frist: {
|
|
- requestUrl: "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050",
|
|
|
|
|
|
+ requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
mapList1: [],
|
|
mapList1: [],
|
|
},
|
|
},
|
|
@@ -278,7 +297,7 @@ export default {
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
drawer(val) {
|
|
drawer(val) {
|
|
- if (!val) {
|
|
|
|
|
|
+ if (val) {
|
|
this.input = null;
|
|
this.input = null;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -336,72 +355,71 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ func(res){
|
|
|
|
+ this.isKuang = false;
|
|
|
|
+ },
|
|
onclick() {
|
|
onclick() {
|
|
- if (this.onDrawerNumber == 1) {
|
|
|
|
- this.frist.requestUrl =
|
|
|
|
- "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
|
|
|
|
- this.input;
|
|
|
|
- } else if (this.onDrawerNumber == 2) {
|
|
|
|
- this.secend.requestUrl =
|
|
|
|
- "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
|
|
- this.materialId +
|
|
|
|
- "&index=" +
|
|
|
|
- this.input;
|
|
|
|
- } else if (this.onDrawerNumber == 3) {
|
|
|
|
- //判断是否是承运商查询车辆
|
|
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
|
|
- this.third.requestUrl =
|
|
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
- getCookie("userId") +
|
|
|
|
- "&index=" +
|
|
|
|
- this.input;
|
|
|
|
- } else {
|
|
|
|
- this.third.requestUrl =
|
|
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
- null +
|
|
|
|
- "&index=" +
|
|
|
|
- this.input;
|
|
|
|
|
|
+ if(this.input){
|
|
|
|
+ this.isKuang = true;
|
|
|
|
+ if (this.onDrawerNumber == 1) {
|
|
|
|
+ this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" + this.input;
|
|
|
|
+ } else if (this.onDrawerNumber == 2) {
|
|
|
|
+ this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId + "&index=" + this.input;
|
|
|
|
+ } else if (this.onDrawerNumber == 3) {
|
|
|
|
+ //判断是否是承运商查询车辆
|
|
|
|
+ if (getCookie("orgCode") == "chengyunshang") {
|
|
|
|
+ this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + getCookie("userId") + "&index=" + this.input;
|
|
|
|
+ } else {
|
|
|
|
+ this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null + "&index=" + this.input;
|
|
|
|
+ }
|
|
|
|
+ } else if (this.onDrawerNumber == 4) {
|
|
|
|
+ this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" + this.input;
|
|
|
|
+ } else if (this.onDrawerNumber == 5) {
|
|
|
|
+ this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=" + this.input;
|
|
|
|
+ }else if (this.onDrawerNumber == 6) {
|
|
|
|
+ this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81&con=" + this.input+"&i="+new Date();
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ if (this.onDrawerNumber == 1) {
|
|
|
|
+ this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050"
|
|
|
|
+ } else if (this.onDrawerNumber == 2) {
|
|
|
|
+ this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId;
|
|
|
|
+ } else if (this.onDrawerNumber == 3) {
|
|
|
|
+ //判断是否是承运商查询车辆
|
|
|
|
+ if (getCookie("orgCode") == "chengyunshang") {
|
|
|
|
+ this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + getCookie("userId");
|
|
|
|
+ } else {
|
|
|
|
+ this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null;
|
|
|
|
+ }
|
|
|
|
+ } else if (this.onDrawerNumber == 4) {
|
|
|
|
+ this.unloadPoint.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374";
|
|
|
|
+ } else if (this.onDrawerNumber == 5) {
|
|
|
|
+ this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3";
|
|
|
|
+ }else if (this.onDrawerNumber == 6) {
|
|
|
|
+ this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81";
|
|
}
|
|
}
|
|
- } else if (this.onDrawerNumber == 4) {
|
|
|
|
- this.unloadPoint.requestUrl =
|
|
|
|
- "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" + this.input;
|
|
|
|
- } else if (this.onDrawerNumber == 5) {
|
|
|
|
- this.option.requestUrl =
|
|
|
|
- "/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.onDrawerNumber = num;
|
|
this.onDrawerNumber = num;
|
|
- if (num == 2) {
|
|
|
|
- this.secend.requestUrl =
|
|
|
|
- "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
|
|
- this.materialId;
|
|
|
|
|
|
+ this.drawer = true;
|
|
|
|
+ if(num == 1){
|
|
|
|
+ this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050"
|
|
|
|
+ }else if (num == 2) {
|
|
|
|
+ this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId;
|
|
} else if (num == 3) {
|
|
} else if (num == 3) {
|
|
//判断是否是承运商查询车辆
|
|
//判断是否是承运商查询车辆
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
- this.third.requestUrl =
|
|
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
- getCookie("userId") +
|
|
|
|
- "&i=" + new Date();
|
|
|
|
|
|
+ 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 + "&i=" + new Date();
|
|
|
|
|
|
+ this.third.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null + "&i=" + new Date();
|
|
}
|
|
}
|
|
} 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.option.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&i=" + new Date();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 返回
|
|
// 返回
|