|
|
@ -1,8 +1,16 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="mod-config"> |
|
|
<div class="mod-config"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
<el-form-item :label="'工厂编码:'"> |
|
|
|
|
|
<el-input v-model="searchData.site" style="width: 120px"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item :label="'BU:'"> |
|
|
|
|
|
<el-select v-model="searchData.buNo" placeholder="请选择" style="width: 80px"> |
|
|
|
|
|
<el-option label="全部" value=""></el-option> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for = "i in buList" |
|
|
|
|
|
:key = "i.buNo" |
|
|
|
|
|
:label = "i.buDesc" |
|
|
|
|
|
:value = "i.buNo"> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'报关单号:'"> |
|
|
<el-form-item :label="'报关单号:'"> |
|
|
<el-input v-model="searchData.declarationNo" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="searchData.declarationNo" clearable style="width: 120px"></el-input> |
|
|
@ -1149,6 +1157,7 @@ |
|
|
import {getTableDefaultListLanguage} from "../../../api/table"; |
|
|
import {getTableDefaultListLanguage} from "../../../api/table"; |
|
|
import {EventBus} from "../../../main"; |
|
|
import {EventBus} from "../../../main"; |
|
|
import ExportUtil from "@/utils/export"; |
|
|
import ExportUtil from "@/utils/export"; |
|
|
|
|
|
import {getBuList}from '@/api/factory/site.js' |
|
|
export default { |
|
|
export default { |
|
|
name: "declaration", |
|
|
name: "declaration", |
|
|
components:{ |
|
|
components:{ |
|
|
@ -1251,6 +1260,7 @@ |
|
|
pageSize: 100, |
|
|
pageSize: 100, |
|
|
totalPage: 0, |
|
|
totalPage: 0, |
|
|
height: 200, |
|
|
height: 200, |
|
|
|
|
|
buList:[], |
|
|
dataList:[], |
|
|
dataList:[], |
|
|
dataList2:[], |
|
|
dataList2:[], |
|
|
dataListLoading: false, |
|
|
dataListLoading: false, |
|
|
@ -1258,7 +1268,7 @@ |
|
|
searchData: { |
|
|
searchData: { |
|
|
page: 1, |
|
|
page: 1, |
|
|
limit: 100, |
|
|
limit: 100, |
|
|
site:"", |
|
|
|
|
|
|
|
|
buNo:'', |
|
|
declarationNo:'', |
|
|
declarationNo:'', |
|
|
username:this.$store.state.user.name, |
|
|
username:this.$store.state.user.name, |
|
|
delNo:'', |
|
|
delNo:'', |
|
|
@ -2218,6 +2228,20 @@ |
|
|
this.currentRow = JSON.parse(JSON.stringify(row)); |
|
|
this.currentRow = JSON.parse(JSON.stringify(row)); |
|
|
this.refreshCurrentTabTable (); |
|
|
this.refreshCurrentTabTable (); |
|
|
}, |
|
|
}, |
|
|
|
|
|
getBu () { |
|
|
|
|
|
// 下拉只展示当前用户有权限的 BU;仅 1 个时默认选中,避免每次都要手动选 |
|
|
|
|
|
let tempData = { |
|
|
|
|
|
username: this.$store.state.user.name, |
|
|
|
|
|
} |
|
|
|
|
|
getBuList(tempData).then(({data}) => { |
|
|
|
|
|
if (data.code === 0) { |
|
|
|
|
|
this.buList = data.row2 |
|
|
|
|
|
if (this.buList.length===1) { |
|
|
|
|
|
this.searchData.buNo = this.buList[0].buNo; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
searchTable(){ |
|
|
searchTable(){ |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.page = this.pageIndex |
|
|
this.searchData.page = this.pageIndex |
|
|
@ -3275,6 +3299,7 @@ |
|
|
this.searchTable() |
|
|
this.searchTable() |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
|
|
|
this.getBu() |
|
|
// 动态列 |
|
|
// 动态列 |
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) |
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) |
|
|
} |
|
|
} |
|
|
|