|
@@ -120,9 +120,11 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { getCookie } from "@/utils/util.js";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ carrierUserId:'',
|
|
|
//模态窗的框计算
|
|
|
inputText: null,
|
|
|
//是否弹出对话框
|
|
@@ -134,22 +136,22 @@ export default {
|
|
|
//未下发的表格
|
|
|
option: {
|
|
|
requestUrl:
|
|
|
- "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=3",
|
|
|
+ "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=3&carrierId=" + '',
|
|
|
selectionType: "select",
|
|
|
},
|
|
|
//已下发的表格
|
|
|
first: {
|
|
|
requestUrl:
|
|
|
- "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4",
|
|
|
+ "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=" +'',
|
|
|
},
|
|
|
//车辆信息的表格
|
|
|
truck: {
|
|
|
- requestUrl: "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248",
|
|
|
+ requestUrl: "/api/v1/oms/getCapacityAndDriverList?apiId=246&carrierId=" + '',
|
|
|
// 控制显示当选列
|
|
|
selectionType: "radio",
|
|
|
},
|
|
|
Received:{
|
|
|
- requestUrl: "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5",
|
|
|
+ requestUrl: "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&carrierId=" +'',
|
|
|
},
|
|
|
//物资信息的数据
|
|
|
tableData: [],
|
|
@@ -187,7 +189,22 @@ export default {
|
|
|
index: null,
|
|
|
};
|
|
|
},
|
|
|
+ created(){
|
|
|
+ this.carrierUserId = getCookie('userId')
|
|
|
+ console.log(this.carrierUserId)
|
|
|
+ this.option.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=3&carrierId=" + this.carrierUserId ,
|
|
|
+ this.first.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=" + this.carrierUserId ,
|
|
|
+ this.Received.requestUrl = "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=" + this.carrierUserId ,
|
|
|
+ this.truck.requestUrl = "/api/v1/oms/getCapacityAndDriverList?apiId=246&carrierId=" + this.carrierUserId
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ onclick(){
|
|
|
+ if(this.input != ''){
|
|
|
+ this.second.requestUrl = "/api/v1/oms/getCapacityAndDriverList?apiId=246&con="+this.input +"&carrierId=" + getCookie('userId');
|
|
|
+ }else{
|
|
|
+ this.second.requestUrl = "/api/v1/oms/getCapacityAndDriverList?apiId=246&carrierId=" + this.userCarrierId
|
|
|
+ }
|
|
|
+ },
|
|
|
//下发
|
|
|
Issue() {
|
|
|
if (this.selectionList.length == 0) {
|
|
@@ -223,6 +240,8 @@ export default {
|
|
|
},
|
|
|
//对话框点击确定,执行增加车牌号
|
|
|
determine() {
|
|
|
+ console.log(this.selectOrderId)
|
|
|
+ console.log(this.capacityId)
|
|
|
this.axios
|
|
|
.post("/api/v1/oms/updateOmstruckOrder", {
|
|
|
orderId: this.selectOrderId,
|
|
@@ -259,15 +278,9 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- //模态窗的框计算
|
|
|
- inputClick() {
|
|
|
- this.truck.requestUrl =
|
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&con=" +
|
|
|
- this.inputText;
|
|
|
- },
|
|
|
//单选按钮选中的值
|
|
|
currentRadioChange(row) {
|
|
|
- this.capacityId = row.capacityId;
|
|
|
+ this.capacityId = row.carrierId;
|
|
|
this.capacityNumber = row.capacityNumber;
|
|
|
},
|
|
|
//打开模态窗口
|