|
@@ -27,7 +27,7 @@
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<div class="form-box">
|
|
|
- <dil-form :formId="300" v-model="form"></dil-form>
|
|
|
+ <dil-form :formId="377" v-model="form"></dil-form>
|
|
|
</div>
|
|
|
|
|
|
<div class="DueTime">
|
|
@@ -51,6 +51,51 @@
|
|
|
</div>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
+ <!--选择车辆类型-->
|
|
|
+ <div class="capacity">
|
|
|
+ <div class="capacityName">
|
|
|
+ <el-form
|
|
|
+ :inline="true"
|
|
|
+ class="demo-form-inline"
|
|
|
+ label-width="80px"
|
|
|
+ >
|
|
|
+ <el-form-item label="选择车辆类型">
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-input
|
|
|
+ el-input v-model="capacityTypeName" disabled>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" @click="ondrawer(3)" class="truckBtn"
|
|
|
+ >浏览</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <el-drawer
|
|
|
+ title="选择车辆类型"
|
|
|
+ :visible.sync="drawer2"
|
|
|
+ direction="rtl"
|
|
|
+ size="40%"
|
|
|
+ :show-close="false"
|
|
|
+ >
|
|
|
+ <div style="margin-left:-300px">
|
|
|
+ <el-input placeholder="请输入内容" v-model="inputCapacityType" style="margin-left:20px;width: 250px" clearable > </el-input
|
|
|
+ ><el-button type="primary" class="btn" @click="onclickCapacity">
|
|
|
+ <i class="el-icon-search"></i>查询
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- <el-button @click="open">取消</el-button> -->
|
|
|
+
|
|
|
+ <div class="tablecls">
|
|
|
+
|
|
|
+ <dilTable ref="options3" v-bind.sync="options3" @radio-change="selectionChange1" :drawer="aaadrawer">
|
|
|
+ </dilTable>
|
|
|
+ </div>
|
|
|
+ </el-drawer>
|
|
|
+</div>
|
|
|
<div class="materialDrawer">
|
|
|
<el-form
|
|
|
:inline="true"
|
|
@@ -256,10 +301,12 @@ export default {
|
|
|
options: [],
|
|
|
value: '',
|
|
|
isOpenDueTime : true,
|
|
|
+ inputCapacityType:null,
|
|
|
DueTime:null,
|
|
|
// 件数与重量的开关
|
|
|
value: false,
|
|
|
//物资模态框开关
|
|
|
+ drawer2:false,
|
|
|
table: false,
|
|
|
//物资表格表头
|
|
|
tableTop: [
|
|
@@ -304,11 +351,14 @@ export default {
|
|
|
materialId: null,
|
|
|
requireUnitName:null,
|
|
|
inputMaterial:null,
|
|
|
+ inputCapacityType:null,
|
|
|
shipperId:null,
|
|
|
truckPoint1: "",
|
|
|
drawer: false,
|
|
|
selectionList1: [],
|
|
|
form: {},
|
|
|
+ capacityTypeId: "",
|
|
|
+ capacityTypeName:"",
|
|
|
materialTable: {
|
|
|
requestUrl: "",
|
|
|
selectionType: "select",
|
|
@@ -319,6 +369,11 @@ export default {
|
|
|
selectionType: "radio",
|
|
|
mapList2: []
|
|
|
},
|
|
|
+ options3:{
|
|
|
+ requestUrl:"",
|
|
|
+ selectionType:"radio",
|
|
|
+ mapList3: []
|
|
|
+ },
|
|
|
form:{}
|
|
|
};
|
|
|
},
|
|
@@ -380,6 +435,7 @@ export default {
|
|
|
selectionChange(selection) {
|
|
|
this.selectionList1 = [];
|
|
|
this.selectionList1 = selection;
|
|
|
+ console.log("selection",selection)
|
|
|
},
|
|
|
unloadPoint(index) {
|
|
|
this.getUnloadRequestUrl()
|
|
@@ -398,6 +454,9 @@ export default {
|
|
|
if(num==1){
|
|
|
this.table = true
|
|
|
this.materialTable.requestUrl = "/api/v1/uc/queryMaterialByLike?apiId=244&i=" + new Date()
|
|
|
+ }else if(num==3){
|
|
|
+ this.drawer2 = true
|
|
|
+ this.options3.requestUrl = "/api/v1/uc/getCapacityType?apiId=460"
|
|
|
}else{
|
|
|
this.drawer = true;
|
|
|
}
|
|
@@ -414,6 +473,14 @@ export default {
|
|
|
this.inputMaterial = null
|
|
|
}
|
|
|
},
|
|
|
+ onclickCapacity(){
|
|
|
+ if(this.inputCapacityType == null){
|
|
|
+ this.options3.requestUrl = "/api/v1/uc/getCapacityType?apiId=460"
|
|
|
+ }else{
|
|
|
+ this.options3.requestUrl = "/api/v1/uc/getCapacityType?apiId=460&index="+this.inputCapacityType
|
|
|
+ this.inputCapacityType = null
|
|
|
+ }
|
|
|
+ },
|
|
|
//删除行
|
|
|
deleteRow(index, rows) {
|
|
|
// console.log(index)
|
|
@@ -490,6 +557,9 @@ export default {
|
|
|
}
|
|
|
this.materialId = selection.materialId;
|
|
|
},
|
|
|
+ selectionChange1(radio){
|
|
|
+ this.capacityTypeName = radio.capacityTypeName
|
|
|
+ },
|
|
|
currentRadioChange2(selection) {
|
|
|
console.log(selection);
|
|
|
if (this.a == 2) {
|
|
@@ -585,7 +655,7 @@ export default {
|
|
|
DueTime:DueTime,
|
|
|
mapList:this.tableData,
|
|
|
orgCode:getCookie("orgCode"),
|
|
|
- remark:this.form.Tel + this.form.capacityType
|
|
|
+ remark:this.form.Tel + this.capacityTypeName+this.form.typeRemarks
|
|
|
};
|
|
|
console.log("requirement",requiremnet);
|
|
|
this.axios
|
|
@@ -639,6 +709,15 @@ export default {
|
|
|
margin-right: 70px;
|
|
|
}
|
|
|
}
|
|
|
+.capacity{
|
|
|
+ display: flex;
|
|
|
+ text-align: center;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ margin-top: 2rem;
|
|
|
+ margin-bottom: 1.25rem;
|
|
|
+ margin-right: 10px;
|
|
|
+}
|
|
|
.materialDrawer {
|
|
|
display: flex;
|
|
|
justify-content: center;
|