han\hanst 2 weeks ago
parent
commit
7baeda9d4a
  1. 31
      src/views/modules/ecss/declaration.vue

31
src/views/modules/ecss/declaration.vue

@ -1,8 +1,16 @@
<template>
<div class="mod-config">
<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 :label="'报关单号:'">
<el-input v-model="searchData.declarationNo" clearable style="width: 120px"></el-input>
@ -1149,6 +1157,7 @@
import {getTableDefaultListLanguage} from "../../../api/table";
import {EventBus} from "../../../main";
import ExportUtil from "@/utils/export";
import {getBuList}from '@/api/factory/site.js'
export default {
name: "declaration",
components:{
@ -1251,6 +1260,7 @@
pageSize: 100,
totalPage: 0,
height: 200,
buList:[],
dataList:[],
dataList2:[],
dataListLoading: false,
@ -1258,7 +1268,7 @@
searchData: {
page: 1,
limit: 100,
site:"",
buNo:'',
declarationNo:'',
username:this.$store.state.user.name,
delNo:'',
@ -2218,6 +2228,20 @@
this.currentRow = JSON.parse(JSON.stringify(row));
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(){
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
@ -3275,6 +3299,7 @@
this.searchTable()
},
created() {
this.getBu()
//
this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
}

Loading…
Cancel
Save