|
@@ -3,13 +3,25 @@
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
<el-row>
|
|
|
<el-form-item label="地点" prop="fUpdateaddress">
|
|
|
- <el-input
|
|
|
+ <el-select
|
|
|
style="width: 240px"
|
|
|
v-model="queryParams.fUpdateaddress"
|
|
|
placeholder="请输入调入地点"
|
|
|
clearable
|
|
|
@input="bringIn"
|
|
|
- size="small"/>
|
|
|
+ size="small"
|
|
|
+ filterable
|
|
|
+ :remote-method="addressMethod"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in this.addressOptions"
|
|
|
+ :key="item.fId"
|
|
|
+ :label="item.fName"
|
|
|
+ :value="item.fId">
|
|
|
+ <span style="float: left; color: #8492a6; font-size: 13px">{{ item.typesName }}</span>
|
|
|
+ <span style="float: right;">{{ item.fName }}</span>
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="空重" prop="fUpdateEF">
|
|
@@ -75,7 +87,7 @@
|
|
|
/>
|
|
|
<el-table-column :show-overflow-tooltip="true" label="箱主" align="center" width="100px" prop="ownerName" />
|
|
|
<el-table-column :show-overflow-tooltip="true" label="原时间" align="center" prop="fUpdatetime" />
|
|
|
- <el-table-column :show-overflow-tooltip="true" label="原地点" align="center" prop="fUpdateaddress" />
|
|
|
+ <el-table-column :show-overflow-tooltip="true" label="原地点" align="center" prop="addressName" />
|
|
|
|
|
|
<el-table-column label="原空重" align="center" prop="updateEFName" />
|
|
|
<el-table-column label="原状态" align="center" prop="cntrstatusName" width="100"/>
|
|
@@ -100,13 +112,16 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { listCorps, addmodify } from "@/api/kaihe/containerNews/modifyPage";
|
|
|
+ import { listCorps, addmodify,getaddress} from "@/api/kaihe/containerNews/modifyPage";
|
|
|
+ import Global from '@/layout/components/global'
|
|
|
export default {
|
|
|
name: "boxDistribution",
|
|
|
components: {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ //模糊下拉查询地点
|
|
|
+ addressOptions:[],
|
|
|
//空重字典表
|
|
|
updateEFOptions:[],
|
|
|
//状态字典表
|
|
@@ -151,10 +166,18 @@
|
|
|
this.getDicts("f_cntrstatus").then(response => {
|
|
|
this.cntrstatusOptions = response.data;
|
|
|
});
|
|
|
-
|
|
|
+ this.addressMethod()
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ //模糊查询地点
|
|
|
+ addressMethod(){
|
|
|
+ let queryParams = { pageNum: 1,};
|
|
|
+ getaddress(queryParams).then(response=>{
|
|
|
+ this.addressOptions = response.rows
|
|
|
+ console.log(response)
|
|
|
+ })
|
|
|
+ },
|
|
|
//提交修改数据
|
|
|
determine(){
|
|
|
let data = []
|
|
@@ -182,7 +205,7 @@
|
|
|
}
|
|
|
data.push({
|
|
|
fId: this.select[item].fId,
|
|
|
- foldSite: this.select[item].foldSite,
|
|
|
+ foldSite: this.select[item].fold,
|
|
|
foldFUpdateef: this.select[item].FUpdateef,
|
|
|
foldFCntrstatus: this.select[item].FCntrstatus,
|
|
|
foldtime: this.select[item].foldtime,
|
|
@@ -194,16 +217,40 @@
|
|
|
let tCntrno = data
|
|
|
listCorps(tCntrno).then(response =>{
|
|
|
this.$message.success("提交成功")
|
|
|
- this.$router.push({
|
|
|
- path: "/containerNews/boxDistribution",
|
|
|
- });
|
|
|
-
|
|
|
+ // this.$router.push({
|
|
|
+ // path: "/containerNews/boxDistribution",
|
|
|
+ // });
|
|
|
+ let view = {
|
|
|
+ fullPath: "/containerNews/modifyPage?data=%7B%22typeidName%22%3A%221%22,%22fUpdateaddress%22%3A%22%E5%B1%B1%E4%B8%9C%22%7D",
|
|
|
+ hash: "",
|
|
|
+ matched: Array(2),
|
|
|
+ meta: Object,
|
|
|
+ name: "ModifyPage",
|
|
|
+ params: Object,
|
|
|
+ path: "/containerNews/modifyPage",
|
|
|
+ query: Object,
|
|
|
+ title: "修改页面"
|
|
|
+ }
|
|
|
+ this.$router.push({ path: '/containerNews/boxDistribution'})
|
|
|
+ this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
|
|
|
+ if (this.isActive(view)) {
|
|
|
+ this.toLastView(visitedViews, view)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ Global.$emit("removeCache", "closeSelectedTag", view);
|
|
|
})
|
|
|
},
|
|
|
//地点带入
|
|
|
bringIn(value,row){
|
|
|
+ console.log(value)
|
|
|
for(let item in this.select){
|
|
|
- this.select[item].foldSite = value
|
|
|
+ for(let li in this.addressOptions){
|
|
|
+ if(this.queryParams.fUpdateaddress == this.addressOptions[li].fId){
|
|
|
+ this.$set(this.select[item],'foldSite',this.addressOptions[li].fName)
|
|
|
+ this.$set(this.select[item],'fold',this.queryParams.fUpdateaddress)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // this.select[item].foldSite = value
|
|
|
}
|
|
|
},
|
|
|
//空重带入选中列表
|