diff --git a/yxt-as-ui/src/views/storage/inventory/inventory.vue b/yxt-as-ui/src/views/storage/inventory/inventory.vue
index 3a798a8426..13b3391091 100644
--- a/yxt-as-ui/src/views/storage/inventory/inventory.vue
+++ b/yxt-as-ui/src/views/storage/inventory/inventory.vue
@@ -19,10 +19,28 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
@@ -67,8 +85,10 @@
-
-
+
+
+
+
@@ -96,6 +116,7 @@ import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/storage/inventory'
import inventoryRecord from './inventoryRecord'
+import { getAllRackByKQSid, getAllWarehouse, getAllWarehouseareaByZoneSid, getAllWarehousezoneBysid } from '@/api/Common/dictcommons'
export default {
name: 'Capital',
@@ -144,6 +165,10 @@ export default {
tableKey: 0,
list: [],
sids: [], // 用于导出的时候保存已选择的SIDs
+ warehouseList: [],
+ warehouseZoneList: [],
+ wareAreaList: [],
+ warehouseRackList: [],
FormLoading: false,
listLoading: false,
// 翻页
@@ -156,6 +181,8 @@ export default {
goodsSpuName: '',
goodsSkuCode: '',
warehouseName: '',
+ wareZoneName: '',
+ wareAreaName: '',
warehouseRackCode: '',
supplierName: '',
manufacturerName: '',
@@ -171,12 +198,20 @@ export default {
},
created() {
// 初始化变量
+ this.init()
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
+ init() {
+ getAllWarehouse({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
+ if (res.success) {
+ this.warehouseList = res.data
+ }
+ })
+ },
// 搜索条件效果
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
@@ -252,6 +287,8 @@ export default {
goodsSpuName: '',
goodsSkuCode: '',
warehouseName: '',
+ wareZoneName: '',
+ wareAreaName: '',
warehouseRackCode: '',
supplierName: '',
manufacturerName: '',
@@ -265,6 +302,66 @@ export default {
}
this.getList()
},
+ selectWarehouseName(val) {
+ const choose = this.warehouseList.filter((item) => item.sid === val)
+ if (choose !== null || choose.length > 0) {
+ this.listQuery.params.warehouseName = choose[0].warehouseName
+ this.getWarehouseZoneList(choose[0].sid)
+ } else {
+ this.listQuery.params.warehouseName = ''
+ }
+ this.listQuery.params.wareZoneName = ''
+ this.listQuery.params.wareAreaName = ''
+ this.listQuery.params.warehouseRackCode = ''
+ this.warehouseZoneList = []
+ this.wareAreaList = []
+ this.warehouseRackList = []
+ },
+ getWarehouseZoneList(sid) {
+ getAllWarehousezoneBysid({ ckSid: sid }).then((res) => {
+ if (res.success) {
+ this.warehouseZoneList = res.data
+ }
+ })
+ },
+ selectWareZoneName(val) {
+ const choose = this.warehouseZoneList.filter((item) => item.sid === val)
+ if (choose !== null && choose.length > 0) {
+ this.listQuery.params.wareZoneName = choose[0].zoneName
+ this.getWareAreaList(choose[0].sid)
+ } else {
+ this.listQuery.params.wareZoneName = ''
+ }
+ this.listQuery.params.wareAreaName = ''
+ this.listQuery.params.warehouseRackCode = ''
+ this.wareAreaList = []
+ this.warehouseRackList = []
+ },
+ getWareAreaList(sid) {
+ getAllWarehouseareaByZoneSid({ qySid: sid }).then((res) => {
+ if (res.success) {
+ this.wareAreaList = res.data
+ }
+ })
+ },
+ selectWareAreaName(val) {
+ const choose = this.wareAreaList.filter((item) => item.sid === val)
+ if (choose !== null && choose.length > 0) {
+ this.listQuery.params.wareAreaName = choose[0].areaName
+ this.getWarehouseRackList(choose[0].sid)
+ } else {
+ this.listQuery.params.wareAreaName = ''
+ }
+ this.listQuery.params.warehouseRackCode = ''
+ this.warehouseRackList = []
+ },
+ getWarehouseRackList(sid) {
+ getAllRackByKQSid({ kqSid: sid }).then((res) => {
+ if (res.success) {
+ this.warehouseRackList = res.data
+ }
+ })
+ },
toCRK(row) {
this.viewState = 2
this.$refs['divCRK'].showInfo(row)
diff --git a/yxt-as-ui/src/views/storage/inventory/inventoryRefer.vue b/yxt-as-ui/src/views/storage/inventory/inventoryRefer.vue
index 49452f10fa..e53d95d9ed 100644
--- a/yxt-as-ui/src/views/storage/inventory/inventoryRefer.vue
+++ b/yxt-as-ui/src/views/storage/inventory/inventoryRefer.vue
@@ -19,10 +19,28 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
@@ -75,6 +93,8 @@
+
+
@@ -113,7 +133,7 @@ import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/storage/inventory'
-import { typeValues } from '@/api/Common/dictcommons'
+import { typeValues, getAllRackByKQSid, getAllWarehouse, getAllWarehouseareaByZoneSid, getAllWarehousezoneBysid } from '@/api/Common/dictcommons'
export default {
name: 'InventoryRefer',
@@ -157,6 +177,10 @@ export default {
dictValue: '入库'
}
],
+ warehouseList: [],
+ warehouseZoneList: [],
+ wareAreaList: [],
+ warehouseRackList: [],
FormLoading: false,
listLoading: false,
// 翻页
@@ -174,6 +198,8 @@ export default {
goodsSpuName: '',
goodsSkuCode: '',
warehouseName: '',
+ wareZoneName: '',
+ wareAreaName: '',
warehouseRackCode: '',
createTimeStart: '',
createTimeEnd: '',
@@ -202,6 +228,11 @@ export default {
this.busType_list = res.data
}
})
+ getAllWarehouse({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
+ if (res.success) {
+ this.warehouseList = res.data
+ }
+ })
},
// 搜索条件效果
clicksearchShow() {
@@ -269,6 +300,8 @@ export default {
goodsSpuName: '',
goodsSkuCode: '',
warehouseName: '',
+ wareZoneName: '',
+ wareAreaName: '',
warehouseRackCode: '',
createTimeStart: '',
createTimeEnd: '',
@@ -282,6 +315,66 @@ export default {
}
this.getList()
},
+ selectWarehouseName(val) {
+ const choose = this.warehouseList.filter((item) => item.sid === val)
+ if (choose !== null || choose.length > 0) {
+ this.listQuery.params.warehouseName = choose[0].warehouseName
+ this.getWarehouseZoneList(choose[0].sid)
+ } else {
+ this.listQuery.params.warehouseName = ''
+ }
+ this.listQuery.params.wareZoneName = ''
+ this.listQuery.params.wareAreaName = ''
+ this.listQuery.params.warehouseRackCode = ''
+ this.warehouseZoneList = []
+ this.wareAreaList = []
+ this.warehouseRackList = []
+ },
+ getWarehouseZoneList(sid) {
+ getAllWarehousezoneBysid({ ckSid: sid }).then((res) => {
+ if (res.success) {
+ this.warehouseZoneList = res.data
+ }
+ })
+ },
+ selectWareZoneName(val) {
+ const choose = this.warehouseZoneList.filter((item) => item.sid === val)
+ if (choose !== null && choose.length > 0) {
+ this.listQuery.params.wareZoneName = choose[0].zoneName
+ this.getWareAreaList(choose[0].sid)
+ } else {
+ this.listQuery.params.wareZoneName = ''
+ }
+ this.listQuery.params.wareAreaName = ''
+ this.listQuery.params.warehouseRackCode = ''
+ this.wareAreaList = []
+ this.warehouseRackList = []
+ },
+ getWareAreaList(sid) {
+ getAllWarehouseareaByZoneSid({ qySid: sid }).then((res) => {
+ if (res.success) {
+ this.wareAreaList = res.data
+ }
+ })
+ },
+ selectWareAreaName(val) {
+ const choose = this.wareAreaList.filter((item) => item.sid === val)
+ if (choose !== null && choose.length > 0) {
+ this.listQuery.params.wareAreaName = choose[0].areaName
+ this.getWarehouseRackList(choose[0].sid)
+ } else {
+ this.listQuery.params.wareAreaName = ''
+ }
+ this.listQuery.params.warehouseRackCode = ''
+ this.warehouseRackList = []
+ },
+ getWarehouseRackList(sid) {
+ getAllRackByKQSid({ kqSid: sid }).then((res) => {
+ if (res.success) {
+ this.warehouseRackList = res.data
+ }
+ })
+ },
doExport() {
const loading = this.$loading({
lock: true,
diff --git a/yxt-as-ui/src/views/storage/sparePartsInventory/sparePartsInventory.vue b/yxt-as-ui/src/views/storage/sparePartsInventory/sparePartsInventory.vue
index dd04db4dfc..4e5945373a 100644
--- a/yxt-as-ui/src/views/storage/sparePartsInventory/sparePartsInventory.vue
+++ b/yxt-as-ui/src/views/storage/sparePartsInventory/sparePartsInventory.vue
@@ -22,7 +22,28 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -52,7 +73,10 @@
-
+
+
+
+
@@ -75,6 +99,7 @@ import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/storage/sparePartsInventory'
+import { getAllRackByKQSid, getAllWarehouse, getAllWarehouseareaByZoneSid, getAllWarehousezoneBysid } from '@/api/Common/dictcommons'
export default {
name: 'SparePartsInventory',
@@ -101,6 +126,10 @@ export default {
tableKey: 0,
list: [],
sids: [], // 用于导出的时候保存已选择的SIDs
+ warehouseList: [],
+ warehouseZoneList: [],
+ wareAreaList: [],
+ warehouseRackList: [],
FormLoading: false,
listLoading: false,
// 翻页
@@ -114,6 +143,9 @@ export default {
goodsSpuName: '',
goodsSkuCode: '',
warehouseName: '',
+ wareZoneName: '',
+ wareAreaName: '',
+ warehouseRackCode: '',
billObjName: '',
manufacturerName: '',
orgPath: '',
@@ -125,12 +157,20 @@ export default {
},
created() {
// 初始化变量
+ this.init()
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
+ init() {
+ getAllWarehouse({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
+ if (res.success) {
+ this.warehouseList = res.data
+ }
+ })
+ },
// 搜索条件效果
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
@@ -190,6 +230,9 @@ export default {
goodsSpuName: '',
goodsSkuCode: '',
warehouseName: '',
+ wareZoneName: '',
+ wareAreaName: '',
+ warehouseRackCode: '',
billObjName: '',
manufacturerName: '',
orgPath: '',
@@ -199,6 +242,66 @@ export default {
}
this.getList()
},
+ selectWarehouseName(val) {
+ const choose = this.warehouseList.filter((item) => item.sid === val)
+ if (choose !== null || choose.length > 0) {
+ this.listQuery.params.warehouseName = choose[0].warehouseName
+ this.getWarehouseZoneList(choose[0].sid)
+ } else {
+ this.listQuery.params.warehouseName = ''
+ }
+ this.listQuery.params.wareZoneName = ''
+ this.listQuery.params.wareAreaName = ''
+ this.listQuery.params.warehouseRackCode = ''
+ this.warehouseZoneList = []
+ this.wareAreaList = []
+ this.warehouseRackList = []
+ },
+ getWarehouseZoneList(sid) {
+ getAllWarehousezoneBysid({ ckSid: sid }).then((res) => {
+ if (res.success) {
+ this.warehouseZoneList = res.data
+ }
+ })
+ },
+ selectWareZoneName(val) {
+ const choose = this.warehouseZoneList.filter((item) => item.sid === val)
+ if (choose !== null && choose.length > 0) {
+ this.listQuery.params.wareZoneName = choose[0].zoneName
+ this.getWareAreaList(choose[0].sid)
+ } else {
+ this.listQuery.params.wareZoneName = ''
+ }
+ this.listQuery.params.wareAreaName = ''
+ this.listQuery.params.warehouseRackCode = ''
+ this.wareAreaList = []
+ this.warehouseRackList = []
+ },
+ getWareAreaList(sid) {
+ getAllWarehouseareaByZoneSid({ qySid: sid }).then((res) => {
+ if (res.success) {
+ this.wareAreaList = res.data
+ }
+ })
+ },
+ selectWareAreaName(val) {
+ const choose = this.wareAreaList.filter((item) => item.sid === val)
+ if (choose !== null && choose.length > 0) {
+ this.listQuery.params.wareAreaName = choose[0].areaName
+ this.getWarehouseRackList(choose[0].sid)
+ } else {
+ this.listQuery.params.wareAreaName = ''
+ }
+ this.listQuery.params.warehouseRackCode = ''
+ this.warehouseRackList = []
+ },
+ getWarehouseRackList(sid) {
+ getAllRackByKQSid({ kqSid: sid }).then((res) => {
+ if (res.success) {
+ this.warehouseRackList = res.data
+ }
+ })
+ },
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)