|
@@ -1,14 +1,47 @@
|
|
<template>
|
|
<template>
|
|
<div class="wagonLoadbu">
|
|
<div class="wagonLoadbu">
|
|
<page-title>返回</page-title>
|
|
<page-title>返回</page-title>
|
|
|
|
+ <div class="top">
|
|
|
|
+ <div class="text">物资:</div>
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="materialId"
|
|
|
|
+ filterable
|
|
|
|
+ remote
|
|
|
|
+ reserve-keyword
|
|
|
|
+ placeholder="选择物资名"
|
|
|
|
+ :remote-method="searchMaterialName"
|
|
|
|
+ @change="searchSupplierName();getPurchaseOrderNo()">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in materialNames"
|
|
|
|
+ :key="item.materialId"
|
|
|
|
+ :label="item.materialName"
|
|
|
|
+ :value="item.materialId">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ <div class="text">发货单位:</div>
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="supplierId"
|
|
|
|
+ filterable
|
|
|
|
+ remote
|
|
|
|
+ reserve-keyword
|
|
|
|
+ placeholder="选择发货单位"
|
|
|
|
+ :remote-method="searchSupplierName"
|
|
|
|
+ @change="getPurchaseOrderNo();supplierIdChange()">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in supplierNames"
|
|
|
|
+ :key="item.supplierId"
|
|
|
|
+ :label="item.supplierName"
|
|
|
|
+ :value="item.supplierId">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
<div class="wagonLoadbu_table">
|
|
<div class="wagonLoadbu_table">
|
|
<dilTable
|
|
<dilTable
|
|
v-bind.sync="option"
|
|
v-bind.sync="option"
|
|
@selection-change="selectionChange"
|
|
@selection-change="selectionChange"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <div class="material form">
|
|
|
|
|
|
+ <!-- <div class="material form">
|
|
<span class="text">物资:</span>
|
|
<span class="text">物资:</span>
|
|
<el-input v-model="materialName" disabled> </el-input>
|
|
<el-input v-model="materialName" disabled> </el-input>
|
|
<el-button type="primary" @click="ondrawer(1)">浏览</el-button>
|
|
<el-button type="primary" @click="ondrawer(1)">浏览</el-button>
|
|
@@ -18,7 +51,7 @@
|
|
<span class="text">发货单位:</span>
|
|
<span class="text">发货单位:</span>
|
|
<el-input v-model="supplierName" disabled> </el-input>
|
|
<el-input v-model="supplierName" disabled> </el-input>
|
|
<el-button type="primary" @click="ondrawer(2)">浏览</el-button>
|
|
<el-button type="primary" @click="ondrawer(2)">浏览</el-button>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
<div class="forwardingUnit form">
|
|
<div class="forwardingUnit form">
|
|
<span class="text">卸货点:</span>
|
|
<span class="text">卸货点:</span>
|
|
<el-input v-model="unloadPointName" disabled> </el-input>
|
|
<el-input v-model="unloadPointName" disabled> </el-input>
|
|
@@ -88,7 +121,7 @@ export default {
|
|
// 表格请求数据的地址
|
|
// 表格请求数据的地址
|
|
requestUrl: "/api/v1/tms/getTmstrainWagonLoad?apiId=209&resultType=10",
|
|
requestUrl: "/api/v1/tms/getTmstrainWagonLoad?apiId=209&resultType=10",
|
|
// 控制显示多选列
|
|
// 控制显示多选列
|
|
- selectionType: "select",
|
|
|
|
|
|
+ selectionType: "select"
|
|
},
|
|
},
|
|
//多选选中的数据
|
|
//多选选中的数据
|
|
selecTionListMap: [],
|
|
selecTionListMap: [],
|
|
@@ -104,6 +137,12 @@ export default {
|
|
supplierId: null,
|
|
supplierId: null,
|
|
//物资id
|
|
//物资id
|
|
materialId: null,
|
|
materialId: null,
|
|
|
|
+ //物资选项
|
|
|
|
+ materialNames:[],
|
|
|
|
+ //发货单位选项
|
|
|
|
+ supplierNames:[],
|
|
|
|
+ //卸货点
|
|
|
|
+ unloadPointName:null,
|
|
//是否需要打开模态窗口
|
|
//是否需要打开模态窗口
|
|
drawer: false,
|
|
drawer: false,
|
|
a: 1,
|
|
a: 1,
|
|
@@ -126,6 +165,9 @@ export default {
|
|
},
|
|
},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ mounted(){
|
|
|
|
+ this.searchMaterialName('');
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
//确定
|
|
//确定
|
|
makeSure() {
|
|
makeSure() {
|
|
@@ -238,6 +280,35 @@ export default {
|
|
"/api/v1/uc/getUnloadingMesByLike?apiId=347&index=" + this.inputText;
|
|
"/api/v1/uc/getUnloadingMesByLike?apiId=347&index=" + this.inputText;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ searchMaterialName(index=''){
|
|
|
|
+ let that=this;
|
|
|
|
+ that.axios.post("api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index="+index).then((res)=>{
|
|
|
|
+ console.log(res);
|
|
|
|
+ if (res.data.code == "200" && res.data.data) {
|
|
|
|
+ that.materialNames=res.data.data.list;
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("请求失败");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ searchSupplierName(index=''){
|
|
|
|
+ let that=this;
|
|
|
|
+ that.axios.post("/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId="+that.materialId+"&index="+index).then((res)=>{
|
|
|
|
+ console.log(res);
|
|
|
|
+ if (res.data.code == "200" && res.data.data) {
|
|
|
|
+ that.supplierNames=res.data.data.list;
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error("请求失败");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ supplierIdChange(){
|
|
|
|
+ this.option.requestUrl=
|
|
|
|
+ "/api/v1/tms/getTmstrainWagonLoad?apiId=209&resultType=10&materialId="
|
|
|
|
+ +this.materialId+"&supplierId="
|
|
|
|
+ +this.supplierId;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -247,6 +318,19 @@ export default {
|
|
color: #606266;
|
|
color: #606266;
|
|
font-size: 0.675rem;
|
|
font-size: 0.675rem;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
|
+ .top {
|
|
|
|
+ display: flex;
|
|
|
|
+ margin:0.375rem;
|
|
|
|
+ .el-select{
|
|
|
|
+ width: 15%;
|
|
|
|
+ // height: 2%;
|
|
|
|
+ }
|
|
|
|
+ .text {
|
|
|
|
+ text-align: left;
|
|
|
|
+ margin-top: 0.5rem;
|
|
|
|
+ margin-left:0.375rem;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.cp {
|
|
.cp {
|
|
width: 49%;
|
|
width: 49%;
|
|
display: flex;
|
|
display: flex;
|