diff --git a/src/api/factory/site.js b/src/api/factory/site.js
index d7cddae..b87df84 100644
--- a/src/api/factory/site.js
+++ b/src/api/factory/site.js
@@ -16,7 +16,7 @@ export const addUserBu = data => createAPI(`/site/addUserBu`,'post',data)
export const delUserBu = data => createAPI(`/site/delUserBu`,'post',data)
export const getBu = data => createAPI(`/site/getBu`,'post',data)
-
+export const getAllBuList = data => createAPI(`/site/getAllBuList`,'post',data)
export const getDeptList = data => createAPI(`/site/getDeptList`,'post',data)
export const addUserDept = data => createAPI(`/site/addUserDept`,'post',data)
diff --git a/src/views/modules/eam/eamWorkOrderForDefect.vue b/src/views/modules/eam/eamWorkOrderForDefect.vue
index 46ad944..a2f46d7 100644
--- a/src/views/modules/eam/eamWorkOrderForDefect.vue
+++ b/src/views/modules/eam/eamWorkOrderForDefect.vue
@@ -278,6 +278,9 @@
备件图片
+
+ 核心配件
+
diff --git a/src/views/modules/partspare/inventorystock.vue b/src/views/modules/partspare/inventorystock.vue
index 01bc4bf..b7e77c5 100644
--- a/src/views/modules/partspare/inventorystock.vue
+++ b/src/views/modules/partspare/inventorystock.vue
@@ -86,6 +86,17 @@
+
+
+
+
+
+
+
@@ -142,10 +153,11 @@ import {
getWareHouseList,
} from '@/api/partspare/wareHouseEntity.js'
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
-
+import {getAllBuList}from '@/api/factory/site.js'
export default {
data() {
return {
+ buList: [],
// 是否收藏
favorite: false,
// 导出 start
@@ -171,7 +183,8 @@ export default {
endQtyOnHand: '',
groupType: '0',
active: 'Y',
- safetyStock: ''
+ safetyStock: '',
+ buNo: '',
},
dataList: [],
wareHouseList: [],
@@ -186,6 +199,19 @@ export default {
columnList: [],
// 料号汇总
arrayPart: [
+ {
+ columnProp: 'buDesc',
+ headerAlign: "center",
+ align: "left",
+ columnLabel: 'BU',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: true,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 80,
+ },
{
columnProp: 'partNo',
headerAlign: "center",
@@ -311,6 +337,19 @@ export default {
}],
// 料号_序号
arrayColumns: [
+ {
+ columnProp: 'buDesc',
+ headerAlign: "center",
+ align: "left",
+ columnLabel: 'BU',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: true,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 80,
+ },
{
columnProp: 'partNo',
headerAlign: "center",
@@ -532,7 +571,7 @@ export default {
},
mounted() {
this.favoriteIsOk()
-
+ this. getBu ()
this.$nextTick(() => {
this.height = window.innerHeight - 210
this.columnList = this.arrayColumns
@@ -673,6 +712,16 @@ export default {
return s
},
// 导出 end
+ getBu () {
+ let tempData = {
+ username: this.$store.state.user.name,
+ }
+ getAllBuList(tempData).then(({data}) => {
+ if (data.code === 0) {
+ this.buList = data.rows
+ }
+ })
+ },
}
}
diff --git a/src/views/modules/partspare/partSpareLocation.vue b/src/views/modules/partspare/partSpareLocation.vue
index 26c3c5f..0077ae8 100644
--- a/src/views/modules/partspare/partSpareLocation.vue
+++ b/src/views/modules/partspare/partSpareLocation.vue
@@ -32,6 +32,17 @@
+
+
+
+
+
+
+
查询
新增
@@ -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
}
},
diff --git a/src/views/modules/partspare/partspare-add-or-update.vue b/src/views/modules/partspare/partspare-add-or-update.vue
index 0494610..6a4faa4 100644
--- a/src/views/modules/partspare/partspare-add-or-update.vue
+++ b/src/views/modules/partspare/partspare-add-or-update.vue
@@ -59,6 +59,16 @@
货位编码
+
+
+
+
+
+