|
|
|
@ -32,6 +32,17 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="BU"> |
|
|
|
<el-select v-model="searchData.buNo" placeholder="请选择" style="width: 120px"> |
|
|
|
<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-button type="primary" @click="getDataList()">查询</el-button> |
|
|
|
<el-button type="primary" @click="addModal()">新增</el-button> |
|
|
|
@ -167,11 +178,12 @@ import { |
|
|
|
saveUserFavorite, |
|
|
|
removeUserFavorite |
|
|
|
} from '@/api/userFavorite.js' |
|
|
|
|
|
|
|
import {getAllBuList}from '@/api/factory/site.js' |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist_eam' |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
buList: [], |
|
|
|
favorite: false, |
|
|
|
exportData: [], |
|
|
|
exportName: "货位管理信息" + this.dayjs().format('YYYYMMDDHHmmss'), |
|
|
|
@ -183,6 +195,7 @@ export default { |
|
|
|
partNo: '', |
|
|
|
partDescription: '', |
|
|
|
spec: '', |
|
|
|
buNo:'', |
|
|
|
active: '', |
|
|
|
warehouseId: '', |
|
|
|
limit: 1, |
|
|
|
@ -196,6 +209,24 @@ export default { |
|
|
|
totalPage: 0, |
|
|
|
height: 200, |
|
|
|
columnList: [ |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 200101105, |
|
|
|
serialNumber: '200101105TableBuNo', |
|
|
|
tableId: "200101105Table", |
|
|
|
tableName: "货位管理表", |
|
|
|
columnProp: 'buDesc', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: 'BU', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 200101105, |
|
|
|
@ -379,7 +410,8 @@ export default { |
|
|
|
], |
|
|
|
modalData:{ |
|
|
|
flag: '', |
|
|
|
site: this.$store.state.user.site, |
|
|
|
site: '', |
|
|
|
buNo:'', |
|
|
|
locationId: '', |
|
|
|
locationName: '', |
|
|
|
warehouseId: '', |
|
|
|
@ -440,10 +472,12 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
created() { |
|
|
|
this. getBu () |
|
|
|
this.getDataList() |
|
|
|
this.getWareHouseList() |
|
|
|
// 动态列 |
|
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table',1) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
components: { |
|
|
|
@ -451,6 +485,16 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
getBu () { |
|
|
|
let tempData = { |
|
|
|
username: this.$store.state.user.name, |
|
|
|
} |
|
|
|
getAllBuList(tempData).then(({data}) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.buList = data.rows |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 批量打印 |
|
|
|
printList(){ |
|
|
|
partSpareLocationTemp(this.dataListSelections) |
|
|
|
@ -508,12 +552,13 @@ export default { |
|
|
|
addModal () { |
|
|
|
this.modalData = { |
|
|
|
flag: '1', |
|
|
|
site: this.$store.state.user.site, |
|
|
|
site: '', |
|
|
|
locationId: '', |
|
|
|
locationName: '', |
|
|
|
warehouseId: '', |
|
|
|
warehouseName: '', |
|
|
|
maxCapacity: '', |
|
|
|
buNo:'', |
|
|
|
active: 'Y', |
|
|
|
createBy: this.$store.state.user.name |
|
|
|
} |
|
|
|
@ -532,6 +577,7 @@ export default { |
|
|
|
warehouseName: row.warehouseName, |
|
|
|
maxCapacity: row.maxCapacity, |
|
|
|
active: row.active, |
|
|
|
buNo:row.buNo, |
|
|
|
updateBy: this.$store.state.user.name, |
|
|
|
} |
|
|
|
this.modalDisableFlag = true |
|
|
|
@ -639,6 +685,8 @@ export default { |
|
|
|
if (this.tagNo === 502) { |
|
|
|
this.modalData.warehouseId = val.warehouse_id |
|
|
|
this.modalData.warehouseName = val.warehouse_name |
|
|
|
this.modalData.site = val.Site |
|
|
|
this.modalData.buNo = val.Citem_code |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|