|
@@ -65,10 +65,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="lineId from">
|
|
<div class="lineId from">
|
|
<span class="text">该批车辆是否一车多趟:</span>
|
|
<span class="text">该批车辆是否一车多趟:</span>
|
|
- <el-switch
|
|
|
|
- v-model="isMoreTrips"
|
|
|
|
- active-text="是"
|
|
|
|
- inactive-text="否">
|
|
|
|
|
|
+ <el-switch v-model="isMoreTrips" active-text="是" inactive-text="否">
|
|
</el-switch>
|
|
</el-switch>
|
|
</div>
|
|
</div>
|
|
<div class="truckListTable">
|
|
<div class="truckListTable">
|
|
@@ -118,7 +115,7 @@
|
|
</div>
|
|
</div>
|
|
<!-- 模态窗口 -->
|
|
<!-- 模态窗口 -->
|
|
<el-drawer :visible.sync="drawer" :direction="direction" size="40%">
|
|
<el-drawer :visible.sync="drawer" :direction="direction" size="40%">
|
|
- <div style="margin-bottom: 10px">
|
|
|
|
|
|
+ <div class="drawer_top">
|
|
<el-input
|
|
<el-input
|
|
placeholder="请输入内容"
|
|
placeholder="请输入内容"
|
|
v-model="input"
|
|
v-model="input"
|
|
@@ -129,12 +126,14 @@
|
|
<i class="el-icon-search"></i>查询
|
|
<i class="el-icon-search"></i>查询
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
- <div v-show="onDrawerNumber == 1">
|
|
|
|
|
|
+ <div class="drawer_table1" v-show="onDrawerNumber == 1">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="frist"
|
|
v-bind.sync="frist"
|
|
@radio-change="currentRadioChange1"
|
|
@radio-change="currentRadioChange1"
|
|
:isKuang="isKuang"
|
|
:isKuang="isKuang"
|
|
@func="func"
|
|
@func="func"
|
|
|
|
+ :isHeigth="isHeigth"
|
|
|
|
+ :shiyHeigth="shiyHeigth"
|
|
:drawer="drawer"
|
|
:drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
@@ -144,6 +143,8 @@
|
|
@radio-change="currentRadioChange2"
|
|
@radio-change="currentRadioChange2"
|
|
:isKuang="isKuang"
|
|
:isKuang="isKuang"
|
|
@func="func"
|
|
@func="func"
|
|
|
|
+ :isHeigth="isHeigth1"
|
|
|
|
+ :shiyHeigth="shiyHeigth1"
|
|
:drawer="drawer"
|
|
:drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
@@ -153,6 +154,8 @@
|
|
@selection-change="currentRadioChange3"
|
|
@selection-change="currentRadioChange3"
|
|
:isKuang="isKuang"
|
|
:isKuang="isKuang"
|
|
@func="func"
|
|
@func="func"
|
|
|
|
+ :isHeigth="isHeigth2"
|
|
|
|
+ :shiyHeigth="shiyHeigth2"
|
|
:drawer="drawer"
|
|
:drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
@@ -162,6 +165,8 @@
|
|
@radio-change="currentRadioChange4"
|
|
@radio-change="currentRadioChange4"
|
|
:isKuang="isKuang"
|
|
:isKuang="isKuang"
|
|
@func="func"
|
|
@func="func"
|
|
|
|
+ :isHeigth="isHeigth3"
|
|
|
|
+ :shiyHeigth="shiyHeigth3"
|
|
:drawer="drawer"
|
|
:drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
@@ -171,6 +176,8 @@
|
|
@radio-change="currentRadioChange5"
|
|
@radio-change="currentRadioChange5"
|
|
:isKuang="isKuang"
|
|
:isKuang="isKuang"
|
|
@func="func"
|
|
@func="func"
|
|
|
|
+ :isHeigth="isHeigth4"
|
|
|
|
+ :shiyHeigth="shiyHeigth4"
|
|
:drawer="drawer"
|
|
:drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
@@ -180,6 +187,8 @@
|
|
@radio-change="currentRadioChange6"
|
|
@radio-change="currentRadioChange6"
|
|
:isKuang="isKuang"
|
|
:isKuang="isKuang"
|
|
@func="func"
|
|
@func="func"
|
|
|
|
+ :isHeigth="isHeigth5"
|
|
|
|
+ :shiyHeigth="shiyHeigth5"
|
|
:drawer="drawer"
|
|
:drawer="drawer"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
@@ -198,10 +207,28 @@ export default {
|
|
components: { PageTitle },
|
|
components: { PageTitle },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- isKuang:false,
|
|
|
|
|
|
+ //限定first
|
|
|
|
+ isHeigth:true,
|
|
|
|
+ shiyHeigth:140,
|
|
|
|
+ //限定second
|
|
|
|
+ isHeigth1:true,
|
|
|
|
+ shiyHeigth1:140,
|
|
|
|
+ //限定third
|
|
|
|
+ isHeigth2:true,
|
|
|
|
+ shiyHeigth2:140,
|
|
|
|
+ //限定unloadPoint
|
|
|
|
+ isHeigth3:true,
|
|
|
|
+ shiyHeigth3:140,
|
|
|
|
+ //限定line
|
|
|
|
+ isHeigth4:true,
|
|
|
|
+ shiyHeigth4:140,
|
|
|
|
+ //限定purchaseOrder
|
|
|
|
+ isHeigth5:true,
|
|
|
|
+ shiyHeigth5:140,
|
|
|
|
+ isKuang: false,
|
|
//采购订单号
|
|
//采购订单号
|
|
- purchaseOrderNo:'',
|
|
|
|
- isMoreTrips:false,
|
|
|
|
|
|
+ purchaseOrderNo: "",
|
|
|
|
+ isMoreTrips: false,
|
|
//订单类别
|
|
//订单类别
|
|
orderTypeList: [
|
|
orderTypeList: [
|
|
{
|
|
{
|
|
@@ -270,7 +297,7 @@ export default {
|
|
mapList1: [],
|
|
mapList1: [],
|
|
},
|
|
},
|
|
secend: {
|
|
secend: {
|
|
- requestUrl:"",
|
|
|
|
|
|
+ requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
mapList2: [],
|
|
mapList2: [],
|
|
},
|
|
},
|
|
@@ -287,10 +314,10 @@ export default {
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
},
|
|
},
|
|
- purchaseOrder:{
|
|
|
|
|
|
+ purchaseOrder: {
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
- }
|
|
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -340,11 +367,11 @@ 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.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 = 17;
|
|
|
|
|
|
+ this.orderType = 6;
|
|
} else {
|
|
} else {
|
|
- this.orderType = 18;
|
|
|
|
|
|
+ this.orderType = 7;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -354,67 +381,127 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onclick() {
|
|
onclick() {
|
|
- if(this.input){
|
|
|
|
|
|
+ if (this.input) {
|
|
this.isKuang = true;
|
|
this.isKuang = true;
|
|
if (this.onDrawerNumber == 1) {
|
|
if (this.onDrawerNumber == 1) {
|
|
- this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" + this.input;
|
|
|
|
|
|
+ this.frist.requestUrl =
|
|
|
|
+ "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
|
|
|
|
+ this.input;
|
|
} else if (this.onDrawerNumber == 2) {
|
|
} else if (this.onDrawerNumber == 2) {
|
|
- this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId + "&index=" + this.input;
|
|
|
|
|
|
+ this.secend.requestUrl =
|
|
|
|
+ "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
|
|
|
|
+ this.materialId +
|
|
|
|
+ "&index=" +
|
|
|
|
+ this.input;
|
|
} 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") + "&index=" + this.input;
|
|
|
|
|
|
+ this.third.requestUrl =
|
|
|
|
+ "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
|
|
|
|
+ getCookie("userId") +
|
|
|
|
+ "&index=" +
|
|
|
|
+ this.input;
|
|
} else {
|
|
} else {
|
|
- 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;
|
|
|
|
- }else if (this.onDrawerNumber == 6) {
|
|
|
|
- this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId="+this.supplierId+"&con=" + this.input+"&i="+new Date();
|
|
|
|
|
|
+ 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&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&i="+new Date();
|
|
|
|
|
|
+ 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+"&i="+new Date();
|
|
|
|
|
|
+ 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")+"&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 (this.onDrawerNumber == 4) {
|
|
} else if (this.onDrawerNumber == 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 (this.onDrawerNumber == 5) {
|
|
} else if (this.onDrawerNumber == 5) {
|
|
- this.line.requestUrl = "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i="+new Date();
|
|
|
|
- }else if (this.onDrawerNumber == 6) {
|
|
|
|
- this.purchaseOrder.requestUrl = "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId="+this.supplierId+"&i="+new Date();
|
|
|
|
|
|
+ this.line.requestUrl =
|
|
|
|
+ "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i=" + new Date();
|
|
|
|
+ } else if (this.onDrawerNumber == 6) {
|
|
|
|
+ this.purchaseOrder.requestUrl =
|
|
|
|
+ "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=" +
|
|
|
|
+ this.supplierId +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
ondrawer(num) {
|
|
ondrawer(num) {
|
|
this.drawer = true;
|
|
this.drawer = true;
|
|
this.onDrawerNumber = num;
|
|
this.onDrawerNumber = num;
|
|
- if(num == 1){
|
|
|
|
- this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" + this.input;
|
|
|
|
- }else if (num == 2) {
|
|
|
|
- this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId;
|
|
|
|
|
|
+ if (num == 1) {
|
|
|
|
+ this.frist.requestUrl =
|
|
|
|
+ "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
|
|
|
|
+ this.input;
|
|
|
|
+ } 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.line.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&sendCompId="+ this.supplierId+"&i=" + new Date();
|
|
|
|
|
|
+ this.line.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&sendCompId=" +
|
|
|
|
+ this.supplierId +
|
|
|
|
+ "&i=" +
|
|
|
|
+ new Date();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 返回
|
|
// 返回
|
|
@@ -440,7 +527,7 @@ export default {
|
|
this.lineId = selection.lineId;
|
|
this.lineId = selection.lineId;
|
|
},
|
|
},
|
|
currentRadioChange6(selection) {
|
|
currentRadioChange6(selection) {
|
|
- console.log(selection)
|
|
|
|
|
|
+ console.log(selection);
|
|
if (selection.shipperId == 1) {
|
|
if (selection.shipperId == 1) {
|
|
this.orderType = 6;
|
|
this.orderType = 6;
|
|
} else {
|
|
} else {
|
|
@@ -457,8 +544,8 @@ export default {
|
|
this.selectionList = [];
|
|
this.selectionList = [];
|
|
this.selectionList = selection;
|
|
this.selectionList = selection;
|
|
},
|
|
},
|
|
- func(res){
|
|
|
|
- console.log(res)
|
|
|
|
|
|
+ func(res) {
|
|
|
|
+ console.log(res);
|
|
this.isKuang = false;
|
|
this.isKuang = false;
|
|
},
|
|
},
|
|
// 确认
|
|
// 确认
|
|
@@ -479,31 +566,37 @@ export default {
|
|
message: "请选择物资!",
|
|
message: "请选择物资!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
|
|
+ return;
|
|
} else if (!this.supplierId) {
|
|
} else if (!this.supplierId) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "请选择发货单位!",
|
|
message: "请选择发货单位!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
|
|
+ return;
|
|
} else if (!this.purchaseOrderId) {
|
|
} else if (!this.purchaseOrderId) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "没有匹配的采购订单号!",
|
|
message: "没有匹配的采购订单号!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
|
|
+ return;
|
|
} else if (!this.unloadPointId) {
|
|
} else if (!this.unloadPointId) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "请选择卸货地点!",
|
|
message: "请选择卸货地点!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
|
|
+ return;
|
|
} else if (!this.lineId) {
|
|
} else if (!this.lineId) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "请选择运输路线!",
|
|
message: "请选择运输路线!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
|
|
+ return;
|
|
} else if (!sjTime(this.form1.orderEntryTime)) {
|
|
} else if (!sjTime(this.form1.orderEntryTime)) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "请选择预估进厂时间!",
|
|
message: "请选择预估进厂时间!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (this.selectionList.length == 0) {
|
|
if (this.selectionList.length == 0) {
|
|
@@ -511,7 +604,7 @@ export default {
|
|
message: "请选择车辆!",
|
|
message: "请选择车辆!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
- state = 0;
|
|
|
|
|
|
+ return;
|
|
} else {
|
|
} else {
|
|
this.selectionList.forEach((e) => {
|
|
this.selectionList.forEach((e) => {
|
|
if (e.orderMaterialWeight) {
|
|
if (e.orderMaterialWeight) {
|
|
@@ -523,44 +616,39 @@ export default {
|
|
message: "重量只能是整数!",
|
|
message: "重量只能是整数!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
- state = 0;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
message: "重量只能是数字!",
|
|
message: "重量只能是数字!",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
- state = 0;
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- state = 1;
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ let map = {
|
|
|
|
+ materialId: this.materialId,
|
|
|
|
+ supplierId: this.supplierId,
|
|
|
|
+ purchaseOrderId: this.purchaseOrderId,
|
|
|
|
+ unloadPointId: this.unloadPointId,
|
|
|
|
+ orderEntryTime: sjTime(this.form1.orderEntryTime),
|
|
|
|
+ driverCapacityIdList: this.selectionList,
|
|
|
|
+ orderType: this.orderType,
|
|
|
|
+ lineId: this.lineId,
|
|
|
|
+ isMoreTrips: this.isMoreTrips,
|
|
|
|
+ };
|
|
|
|
|
|
- if (state == 1) {
|
|
|
|
- let map = {
|
|
|
|
- materialId: this.materialId,
|
|
|
|
- supplierId: this.supplierId,
|
|
|
|
- purchaseOrderId: this.purchaseOrderId,
|
|
|
|
- unloadPointId: this.unloadPointId,
|
|
|
|
- orderEntryTime: sjTime(this.form1.orderEntryTime),
|
|
|
|
- driverCapacityIdList: this.selectionList,
|
|
|
|
- orderType: this.orderType,
|
|
|
|
- lineId: this.lineId,
|
|
|
|
- isMoreTrips:this.isMoreTrips,
|
|
|
|
- };
|
|
|
|
- console.log(map, map);
|
|
|
|
- this.axios.post("/api/v1/oms/addPurOrder", map).then((res) => {
|
|
|
|
- if (res.data.code == "200") {
|
|
|
|
- this.$message({
|
|
|
|
- message: "添加成功!",
|
|
|
|
- type: "success",
|
|
|
|
- });
|
|
|
|
- this.$router.push("/transportationReservation");
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ this.axios.post("/api/v1/oms/addPurOrder", map).then((res) => {
|
|
|
|
+ if (res.data.code == "200") {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: "添加成功!",
|
|
|
|
+ type: "success",
|
|
|
|
+ });
|
|
|
|
+ this.$router.push("/transportReserveRan");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
@@ -569,6 +657,10 @@ export default {
|
|
.contractDetails {
|
|
.contractDetails {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.el-drawer__container ::-webkit-scrollbar {
|
|
|
|
+ display: none;
|
|
|
|
+}
|
|
.from {
|
|
.from {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -601,7 +693,7 @@ export default {
|
|
width: 250px;
|
|
width: 250px;
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
}
|
|
- .span{
|
|
|
|
|
|
+ .span {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
width: 70px;
|
|
width: 70px;
|
|
height: 1px;
|
|
height: 1px;
|
|
@@ -680,6 +772,15 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.drawer_top{
|
|
|
|
+ margin-top: -50px;
|
|
|
|
+ width: 100%;height: 60px;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+}
|
|
|
|
+.drawer_table1{
|
|
|
|
+ width: 100%;height: 500px;
|
|
|
|
+}
|
|
.button_box {
|
|
.button_box {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|