Browse Source

完善代码

master
yunuo970428 2 weeks ago
parent
commit
ce2ada7467
  1. 12
      yxt-as-ui/src/views/storage/inventory/inventory.vue
  2. 12
      yxt-as-ui/src/views/storage/inventory/inventoryRefer.vue
  3. 12
      yxt-as-ui/src/views/storage/sparePartsInventory/sparePartsInventory.vue

12
yxt-as-ui/src/views/storage/inventory/inventory.vue

@ -303,6 +303,9 @@ export default {
this.getList()
},
selectWarehouseName(val) {
this.warehouseZoneList = []
this.wareAreaList = []
this.warehouseRackList = []
const choose = this.warehouseList.filter((item) => item.sid === val)
if (choose !== null || choose.length > 0) {
this.listQuery.params.warehouseName = choose[0].warehouseName
@ -313,9 +316,6 @@ export default {
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) => {
@ -325,6 +325,8 @@ export default {
})
},
selectWareZoneName(val) {
this.wareAreaList = []
this.warehouseRackList = []
const choose = this.warehouseZoneList.filter((item) => item.sid === val)
if (choose !== null && choose.length > 0) {
this.listQuery.params.wareZoneName = choose[0].zoneName
@ -334,8 +336,6 @@ export default {
}
this.listQuery.params.wareAreaName = ''
this.listQuery.params.warehouseRackCode = ''
this.wareAreaList = []
this.warehouseRackList = []
},
getWareAreaList(sid) {
getAllWarehouseareaByZoneSid({ qySid: sid }).then((res) => {
@ -345,6 +345,7 @@ export default {
})
},
selectWareAreaName(val) {
this.warehouseRackList = []
const choose = this.wareAreaList.filter((item) => item.sid === val)
if (choose !== null && choose.length > 0) {
this.listQuery.params.wareAreaName = choose[0].areaName
@ -353,7 +354,6 @@ export default {
this.listQuery.params.wareAreaName = ''
}
this.listQuery.params.warehouseRackCode = ''
this.warehouseRackList = []
},
getWarehouseRackList(sid) {
getAllRackByKQSid({ kqSid: sid }).then((res) => {

12
yxt-as-ui/src/views/storage/inventory/inventoryRefer.vue

@ -316,6 +316,9 @@ export default {
this.getList()
},
selectWarehouseName(val) {
this.warehouseZoneList = []
this.wareAreaList = []
this.warehouseRackList = []
const choose = this.warehouseList.filter((item) => item.sid === val)
if (choose !== null || choose.length > 0) {
this.listQuery.params.warehouseName = choose[0].warehouseName
@ -326,9 +329,6 @@ export default {
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) => {
@ -338,6 +338,8 @@ export default {
})
},
selectWareZoneName(val) {
this.wareAreaList = []
this.warehouseRackList = []
const choose = this.warehouseZoneList.filter((item) => item.sid === val)
if (choose !== null && choose.length > 0) {
this.listQuery.params.wareZoneName = choose[0].zoneName
@ -347,8 +349,6 @@ export default {
}
this.listQuery.params.wareAreaName = ''
this.listQuery.params.warehouseRackCode = ''
this.wareAreaList = []
this.warehouseRackList = []
},
getWareAreaList(sid) {
getAllWarehouseareaByZoneSid({ qySid: sid }).then((res) => {
@ -358,6 +358,7 @@ export default {
})
},
selectWareAreaName(val) {
this.warehouseRackList = []
const choose = this.wareAreaList.filter((item) => item.sid === val)
if (choose !== null && choose.length > 0) {
this.listQuery.params.wareAreaName = choose[0].areaName
@ -366,7 +367,6 @@ export default {
this.listQuery.params.wareAreaName = ''
}
this.listQuery.params.warehouseRackCode = ''
this.warehouseRackList = []
},
getWarehouseRackList(sid) {
getAllRackByKQSid({ kqSid: sid }).then((res) => {

12
yxt-as-ui/src/views/storage/sparePartsInventory/sparePartsInventory.vue

@ -243,6 +243,9 @@ export default {
this.getList()
},
selectWarehouseName(val) {
this.warehouseZoneList = []
this.wareAreaList = []
this.warehouseRackList = []
const choose = this.warehouseList.filter((item) => item.sid === val)
if (choose !== null || choose.length > 0) {
this.listQuery.params.warehouseName = choose[0].warehouseName
@ -253,9 +256,6 @@ export default {
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) => {
@ -265,6 +265,8 @@ export default {
})
},
selectWareZoneName(val) {
this.wareAreaList = []
this.warehouseRackList = []
const choose = this.warehouseZoneList.filter((item) => item.sid === val)
if (choose !== null && choose.length > 0) {
this.listQuery.params.wareZoneName = choose[0].zoneName
@ -274,8 +276,6 @@ export default {
}
this.listQuery.params.wareAreaName = ''
this.listQuery.params.warehouseRackCode = ''
this.wareAreaList = []
this.warehouseRackList = []
},
getWareAreaList(sid) {
getAllWarehouseareaByZoneSid({ qySid: sid }).then((res) => {
@ -285,6 +285,7 @@ export default {
})
},
selectWareAreaName(val) {
this.warehouseRackList = []
const choose = this.wareAreaList.filter((item) => item.sid === val)
if (choose !== null && choose.length > 0) {
this.listQuery.params.wareAreaName = choose[0].areaName
@ -293,7 +294,6 @@ export default {
this.listQuery.params.wareAreaName = ''
}
this.listQuery.params.warehouseRackCode = ''
this.warehouseRackList = []
},
getWarehouseRackList(sid) {
getAllRackByKQSid({ kqSid: sid }).then((res) => {

Loading…
Cancel
Save