|
@@ -59,6 +59,29 @@
|
|
>浏览</el-button
|
|
>浏览</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 物资和装卸点以及装卸货次序 -->
|
|
|
|
+ <div class="swtichTop">
|
|
|
|
+ <span class="titile">选择车辆前请选择物资单位!</span>
|
|
|
|
+ <div class="switch" v-if="selectionList.length > 0">
|
|
|
|
+ <el-tooltip placement="top">
|
|
|
|
+ <div slot="content">下面表格已有数据,不能进行更改!!!</div>
|
|
|
|
+ <el-switch
|
|
|
|
+ v-model="value"
|
|
|
|
+ active-text="件数"
|
|
|
|
+ inactive-text="重量"
|
|
|
|
+ disabled
|
|
|
|
+ >
|
|
|
|
+ </el-switch>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="switch" v-else>
|
|
|
|
+ <el-tooltip placement="top">
|
|
|
|
+ <div slot="content">当下面表格有数据之后,将不能进行更改!!!</div>
|
|
|
|
+ <el-switch v-model="value" active-text="件数" inactive-text="重量">
|
|
|
|
+ </el-switch>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="truckListTable">
|
|
<div class="truckListTable">
|
|
<el-table
|
|
<el-table
|
|
@@ -89,6 +112,14 @@
|
|
v-model.number="scope.row.orderMaterialWeight"
|
|
v-model.number="scope.row.orderMaterialWeight"
|
|
></el-input>
|
|
></el-input>
|
|
</template>
|
|
</template>
|
|
|
|
+ <!-- 物资件数 -->
|
|
|
|
+ <template v-if="item.prop == 'orderMaterialNumber'">
|
|
|
|
+ <el-input
|
|
|
|
+ class="textinput"
|
|
|
|
+ v-model.number="scope.row.orderMaterialNumber"
|
|
|
|
+ @input="onInputNumber(scope.row.orderMaterialNumber)"
|
|
|
|
+ ></el-input>
|
|
|
|
+ </template>
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
<span>{{ scope.row[item.prop] }}</span>
|
|
<span>{{ scope.row[item.prop] }}</span>
|
|
@@ -144,11 +175,8 @@
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="third"
|
|
v-bind.sync="third"
|
|
@selection-change="currentRadioChange3"
|
|
@selection-change="currentRadioChange3"
|
|
- :isKuang="isKuang"
|
|
|
|
- @func="func"
|
|
|
|
:isHeigth="isHeigth2"
|
|
:isHeigth="isHeigth2"
|
|
:shiyHeigth="shiyHeigth2"
|
|
:shiyHeigth="shiyHeigth2"
|
|
- :drawer="drawer"
|
|
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
<div v-show="onDrawerNumber == 4">
|
|
<div v-show="onDrawerNumber == 4">
|
|
@@ -221,17 +249,6 @@ export default {
|
|
//采购订单号
|
|
//采购订单号
|
|
purchaseOrderNo: "",
|
|
purchaseOrderNo: "",
|
|
isMoreTrips: false,
|
|
isMoreTrips: false,
|
|
- //订单类别
|
|
|
|
- orderTypeList: [
|
|
|
|
- {
|
|
|
|
- value: 6,
|
|
|
|
- label: "老厂区",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: 7,
|
|
|
|
- label: "新厂区",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
// 线路名称
|
|
// 线路名称
|
|
lineName: "",
|
|
lineName: "",
|
|
//线路id
|
|
//线路id
|
|
@@ -314,6 +331,7 @@ export default {
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
selectionType: "radio",
|
|
selectionType: "radio",
|
|
},
|
|
},
|
|
|
|
+ truckList:[]
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -322,6 +340,23 @@ export default {
|
|
this.input = null;
|
|
this.input = null;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ value() {
|
|
|
|
+ if (this.value) {
|
|
|
|
+ this.tableTop.splice(this.tableTop.length - 1, 1);
|
|
|
|
+ this.tableTop.push({
|
|
|
|
+ prop: "orderMaterialNumber",
|
|
|
|
+ label: "件数",
|
|
|
|
+ slot: true,
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.tableTop.splice(this.tableTop.length - 1, 1);
|
|
|
|
+ this.tableTop.push({
|
|
|
|
+ prop: "orderMaterialWeight",
|
|
|
|
+ label: "重量",
|
|
|
|
+ slot: true,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
@@ -481,18 +516,29 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ func(res) {
|
|
|
|
+ console.log(res);
|
|
|
|
+ this.isKuang = false;
|
|
|
|
+ },
|
|
|
|
+ refreshTable(){
|
|
|
|
+ var arr = this.selectionList
|
|
|
|
+ this.selectionList = []
|
|
|
|
+
|
|
|
|
+ },
|
|
ondrawer(num) {
|
|
ondrawer(num) {
|
|
|
|
+ this.truckList = this.selectionList
|
|
|
|
+ this.selectionList = []
|
|
if(this.supplierId == null){
|
|
if(this.supplierId == null){
|
|
this.$message.warning("请先选择发货单位")
|
|
this.$message.warning("请先选择发货单位")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- console.log(num)
|
|
|
|
if(num != 1 && this.materialId == null){
|
|
if(num != 1 && this.materialId == null){
|
|
this.$message.warning("请先选择物资")
|
|
this.$message.warning("请先选择物资")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
this.drawer = true;
|
|
this.drawer = true;
|
|
this.onDrawerNumber = num;
|
|
this.onDrawerNumber = num;
|
|
|
|
+ this.refreshTable()
|
|
if (num == 1) {
|
|
if (num == 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=" +
|
|
@@ -556,13 +602,8 @@ export default {
|
|
this.purchaseOrderId = selection.purchaseOrderId;
|
|
this.purchaseOrderId = selection.purchaseOrderId;
|
|
},
|
|
},
|
|
currentRadioChange3(selection) {
|
|
currentRadioChange3(selection) {
|
|
- this.selectionList = [];
|
|
|
|
this.selectionList = selection;
|
|
this.selectionList = selection;
|
|
},
|
|
},
|
|
- func(res) {
|
|
|
|
- console.log(res);
|
|
|
|
- this.isKuang = false;
|
|
|
|
- },
|
|
|
|
// 确认
|
|
// 确认
|
|
onClickConfirm() {
|
|
onClickConfirm() {
|
|
var state = 0;
|
|
var state = 0;
|
|
@@ -583,13 +624,6 @@ export default {
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- // else if (!this.orderType) {
|
|
|
|
- // this.$message({
|
|
|
|
- // message: "请选择订单类别!",
|
|
|
|
- // type: "warning",
|
|
|
|
- // });
|
|
|
|
- // return;
|
|
|
|
- // }
|
|
|
|
else if (!this.supplierId) {
|
|
else if (!this.supplierId) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "请选择发货单位!",
|
|
message: "请选择发货单位!",
|
|
@@ -722,6 +756,20 @@ export default {
|
|
height: 1px;
|
|
height: 1px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.swtichTop{
|
|
|
|
+ display: flex;
|
|
|
|
+ height: 40px;
|
|
|
|
+ align-content: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ padding-right:20px ;
|
|
|
|
+ .titile{
|
|
|
|
+ color: red;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ }
|
|
|
|
+ .switch{
|
|
|
|
+ margin-right: -30px
|
|
|
|
+ }
|
|
|
|
+}
|
|
.supplieUnit {
|
|
.supplieUnit {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|