|
@@ -31,11 +31,16 @@
|
|
</div>
|
|
</div>
|
|
<div class="orderType from">
|
|
<div class="orderType from">
|
|
<span class="text">订单类别:</span>
|
|
<span class="text">订单类别:</span>
|
|
- <el-select class="select" v-model="orderType" placeholder="请选择" disabled>
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ class="select"
|
|
|
|
+ v-model="orderType"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ disabled
|
|
|
|
+ >
|
|
<el-option
|
|
<el-option
|
|
v-for="item in orderTypeList"
|
|
v-for="item in orderTypeList"
|
|
:key="item.value"
|
|
:key="item.value"
|
|
- :label="item.label"
|
|
|
|
|
|
+ :label="item.label"
|
|
:value="item.value"
|
|
:value="item.value"
|
|
>
|
|
>
|
|
</el-option>
|
|
</el-option>
|
|
@@ -78,7 +83,7 @@
|
|
<template v-if="item.slot">
|
|
<template v-if="item.slot">
|
|
<template v-if="item.prop == 'orderMaterialWeight'">
|
|
<template v-if="item.prop == 'orderMaterialWeight'">
|
|
<el-input
|
|
<el-input
|
|
- style="width:250px"
|
|
|
|
|
|
+ style="width: 250px"
|
|
v-model.number="scope.row.orderMaterialWeight"
|
|
v-model.number="scope.row.orderMaterialWeight"
|
|
></el-input>
|
|
></el-input>
|
|
</template>
|
|
</template>
|
|
@@ -100,20 +105,16 @@
|
|
</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 style="margin-bottom: 10px">
|
|
<el-input
|
|
<el-input
|
|
- placeholder="请输入内容"
|
|
|
|
- v-model="input"
|
|
|
|
- style="margin-top: 10px;margin-right: 10px;width:250px;"
|
|
|
|
- clearable
|
|
|
|
- ></el-input>
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- class="btn"
|
|
|
|
- @click="onclick(a)"
|
|
|
|
- >
|
|
|
|
- <i class="el-icon-search"></i>查询
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ v-model="input"
|
|
|
|
+ style="margin-top: 10px; margin-right: 10px; width: 250px"
|
|
|
|
+ clearable
|
|
|
|
+ ></el-input>
|
|
|
|
+ <el-button type="primary" class="btn" @click="onclick(a)">
|
|
|
|
+ <i class="el-icon-search"></i>查询
|
|
|
|
+ </el-button>
|
|
</div>
|
|
</div>
|
|
<div v-show="a == 1">
|
|
<div v-show="a == 1">
|
|
<dilTable
|
|
<dilTable
|
|
@@ -154,20 +155,22 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import PageTitle from "@/components/Page/Title";
|
|
import PageTitle from "@/components/Page/Title";
|
|
-import { sjTime,isNumber,isIntegerNumber } from '@/utils/sharedJsFile'
|
|
|
|
|
|
+import { sjTime, isNumber, isIntegerNumber } from "@/utils/sharedJsFile";
|
|
|
|
+import { getCookie } from "@/utils/util.js";
|
|
export default {
|
|
export default {
|
|
components: { PageTitle },
|
|
components: { PageTitle },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
//订单类别
|
|
//订单类别
|
|
- orderTypeList:[
|
|
|
|
|
|
+ orderTypeList: [
|
|
{
|
|
{
|
|
- value:6,
|
|
|
|
- label:'老厂区'
|
|
|
|
- },{
|
|
|
|
- value:7,
|
|
|
|
- label:'新厂区'
|
|
|
|
- }
|
|
|
|
|
|
+ value: 6,
|
|
|
|
+ label: "老厂区",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: 7,
|
|
|
|
+ label: "新厂区",
|
|
|
|
+ },
|
|
],
|
|
],
|
|
// 线路名称
|
|
// 线路名称
|
|
lineName: "",
|
|
lineName: "",
|
|
@@ -216,7 +219,7 @@ export default {
|
|
//卸货点名称
|
|
//卸货点名称
|
|
unloadPointName: "",
|
|
unloadPointName: "",
|
|
//订单类别
|
|
//订单类别
|
|
- orderType:null,
|
|
|
|
|
|
+ orderType: null,
|
|
a: 1,
|
|
a: 1,
|
|
direction: "rtl",
|
|
direction: "rtl",
|
|
input: "",
|
|
input: "",
|
|
@@ -232,7 +235,7 @@ export default {
|
|
mapList2: [],
|
|
mapList2: [],
|
|
},
|
|
},
|
|
third: {
|
|
third: {
|
|
- requestUrl: "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248",
|
|
|
|
|
|
+ requestUrl: "",
|
|
selectionType: "select",
|
|
selectionType: "select",
|
|
mapList3: [],
|
|
mapList3: [],
|
|
},
|
|
},
|
|
@@ -246,11 +249,21 @@ export default {
|
|
},
|
|
},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- watch:{
|
|
|
|
- drawer(val){
|
|
|
|
- if(!val){
|
|
|
|
|
|
+ watch: {
|
|
|
|
+ drawer(val) {
|
|
|
|
+ if (!val) {
|
|
this.input = null;
|
|
this.input = null;
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+ 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;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -280,14 +293,14 @@ export default {
|
|
});
|
|
});
|
|
this.form1 = [];
|
|
this.form1 = [];
|
|
} else {
|
|
} else {
|
|
- 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.form1 = { purchaseOrderNo: res.data.data.purchaseOrderNo };
|
|
- if(res.data.data.receiveUnitId == 1){
|
|
|
|
- this.orderType = 6
|
|
|
|
- }else{
|
|
|
|
- this.orderType = 7
|
|
|
|
|
|
+ if (res.data.data.receiveUnitId == 1) {
|
|
|
|
+ this.orderType = 6;
|
|
|
|
+ } else {
|
|
|
|
+ this.orderType = 7;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -308,9 +321,20 @@ export default {
|
|
"&index=" +
|
|
"&index=" +
|
|
this.input;
|
|
this.input;
|
|
} else if (a == 3) {
|
|
} else if (a == 3) {
|
|
- this.third.requestUrl =
|
|
|
|
- "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&index=" +
|
|
|
|
- this.input;
|
|
|
|
|
|
+ //判断是否是承运商查询车辆
|
|
|
|
+ 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 (a == 4) {
|
|
} else if (a == 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;
|
|
@@ -480,7 +504,7 @@ export default {
|
|
width: 100px;
|
|
width: 100px;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
- .input{
|
|
|
|
|
|
+ .input {
|
|
width: 250px;
|
|
width: 250px;
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
}
|
|
@@ -493,7 +517,7 @@ export default {
|
|
width: 170px;
|
|
width: 170px;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
- .input{
|
|
|
|
|
|
+ .input {
|
|
width: 250px;
|
|
width: 250px;
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
}
|
|
@@ -507,12 +531,12 @@ export default {
|
|
width: 170px;
|
|
width: 170px;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
- .input{
|
|
|
|
|
|
+ .input {
|
|
width: 250px;
|
|
width: 250px;
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-.orderType{
|
|
|
|
|
|
+.orderType {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
.text {
|
|
.text {
|
|
@@ -520,25 +544,26 @@ export default {
|
|
width: 110px;
|
|
width: 110px;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
- .select{
|
|
|
|
|
|
+ .select {
|
|
width: 250px;
|
|
width: 250px;
|
|
}
|
|
}
|
|
- .span{
|
|
|
|
|
|
+ .span {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
- width: 30px;height: 10px;
|
|
|
|
|
|
+ width: 30px;
|
|
|
|
+ height: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-.contractTitle{
|
|
|
|
|
|
+.contractTitle {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
- .el-form-item{
|
|
|
|
|
|
+ .el-form-item {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
- .el-form-item__label{
|
|
|
|
|
|
+ .el-form-item__label {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
- .el-input{
|
|
|
|
|
|
+ .el-input {
|
|
width: 250px;
|
|
width: 250px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -551,7 +576,7 @@ export default {
|
|
width: 170px;
|
|
width: 170px;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
- .input{
|
|
|
|
|
|
+ .input {
|
|
width: 250px;
|
|
width: 250px;
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
}
|