|
|
|
@ -3,12 +3,12 @@ |
|
|
|
<!-- 查询条件 --> |
|
|
|
<el-form :inline="true" label-position="top" :model="searchData"> |
|
|
|
<el-form-item :label="'BU'"> |
|
|
|
<el-select v-model="searchData.buDesc" placeholder="请选择" clearable style="width: 130px"> |
|
|
|
<el-select v-model="searchData.buNo" placeholder="请选择" clearable style="width: 130px"> |
|
|
|
<el-option |
|
|
|
v-for = "i in userBuList" |
|
|
|
v-for = "i in buList" |
|
|
|
:key = "i.buNo" |
|
|
|
:label = "i.buDesc" |
|
|
|
:value = "i.buDesc"> |
|
|
|
:value = "i.buNo"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
@ -1044,7 +1044,7 @@ |
|
|
|
} from '@/api/part/partInformation.js' |
|
|
|
import {getFileContentList, downLoadObjectFile} from '@/api/eam/eam_object_list.js' |
|
|
|
import {deleteObjectFile} from '@/api/eam/eam.js' |
|
|
|
import {getSiteAndBuByUserName} from "@/api/eam/eam.js" |
|
|
|
import {getSiteAndBuByUserName, getSiteAndBuByUserName2} from "@/api/qc/qc.js" |
|
|
|
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist_eam' |
|
|
|
import partUploadFile from "./part_upload_file" |
|
|
|
@ -1105,6 +1105,7 @@ |
|
|
|
exportFooter: [], |
|
|
|
resultList: [], |
|
|
|
userBuList: [], |
|
|
|
buList: [], |
|
|
|
// ======== 行高 ======== |
|
|
|
height: 200, |
|
|
|
secondHeight: 200, |
|
|
|
@ -1118,7 +1119,7 @@ |
|
|
|
searchData: { |
|
|
|
site: '', |
|
|
|
userName: this.$store.state.user.name, |
|
|
|
buDesc: '', |
|
|
|
buNo: '', |
|
|
|
partNo: '', |
|
|
|
startDate: '', |
|
|
|
endDate: '', |
|
|
|
@ -2145,6 +2146,8 @@ |
|
|
|
this.getButtonAuthData() |
|
|
|
// 获取用户的 site 和 bu |
|
|
|
this.getSiteAndBuByUserName() |
|
|
|
// 获取用户的 site 和 bu |
|
|
|
this.getSiteAndBuByUserName2() |
|
|
|
// 动态列 |
|
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) |
|
|
|
if (!this.authSearch) { |
|
|
|
@ -2154,6 +2157,18 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
// 获取用户的bu |
|
|
|
getSiteAndBuByUserName2 () { |
|
|
|
let tempData = { |
|
|
|
username: this.$store.state.user.name, |
|
|
|
} |
|
|
|
getSiteAndBuByUserName2(tempData).then(({data}) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.buList = data.rows |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取用户的bu |
|
|
|
getSiteAndBuByUserName () { |
|
|
|
let tempData = { |
|
|
|
@ -3578,8 +3593,8 @@ |
|
|
|
}) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.modalData.codeNo = val.Code_no |
|
|
|
this.$set(this.modalData, 'codeDesc', val.Code_desc) |
|
|
|
this.modalData.codeNo = val.code_no |
|
|
|
this.$set(this.modalData, 'codeDesc', val.code_desc) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|