Commit 0bcce179 authored by jingnan's avatar jingnan 👀

ERP相关_退库管理功能修改

parent bf59e813
...@@ -108,6 +108,7 @@ export default { ...@@ -108,6 +108,7 @@ export default {
if (val.retirementItems) { if (val.retirementItems) {
this.tableData = val.retirementItems.map(item => { this.tableData = val.retirementItems.map(item => {
item.operator = 'MODIFY' item.operator = 'MODIFY'
item.uniqueId = item.id
if (item.jobResponseSorting) { if (item.jobResponseSorting) {
if (item.jobResponseSorting.erpSortingItem && item.jobResponseSorting.erpSortingItem.erpSorting) { if (item.jobResponseSorting.erpSortingItem && item.jobResponseSorting.erpSortingItem.erpSorting) {
item.reqNo = item.jobResponseSorting.erpSortingItem.erpSorting.reqNo || '' item.reqNo = item.jobResponseSorting.erpSortingItem.erpSorting.reqNo || ''
...@@ -118,7 +119,7 @@ export default { ...@@ -118,7 +119,7 @@ export default {
item.scrapCount = null item.scrapCount = null
item.unit = item.jobResponseSorting.erpInventory && item.jobResponseSorting.erpInventory.unit item.unit = item.jobResponseSorting.erpInventory && item.jobResponseSorting.erpInventory.unit
item.testNo = item.jobResponseSorting.erpInventory && item.jobResponseSorting.erpInventory.testNo item.testNo = item.jobResponseSorting.erpInventory && item.jobResponseSorting.erpInventory.testNo
item.uniqueId = item.jobResponseSorting.id // item.uniqueId = item.jobResponseSorting.id
} }
} }
if (item.oldOutStorage) { if (item.oldOutStorage) {
...@@ -131,7 +132,7 @@ export default { ...@@ -131,7 +132,7 @@ export default {
item.scrapCount = item.oldOutStorage.scrapCount item.scrapCount = item.oldOutStorage.scrapCount
item.unit = item.oldOutStorage.inventory && item.oldOutStorage.inventory.extUnit && item.oldOutStorage.inventory.extUnit.unitName item.unit = item.oldOutStorage.inventory && item.oldOutStorage.inventory.extUnit && item.oldOutStorage.inventory.extUnit.unitName
item.testNo = item.oldOutStorage.inventory && item.oldOutStorage.inventory.testNo item.testNo = item.oldOutStorage.inventory && item.oldOutStorage.inventory.testNo
item.uniqueId = item.oldOutStorage.id // item.uniqueId = item.oldOutStorage.id
} }
} }
return item return item
......
...@@ -120,6 +120,11 @@ export default { ...@@ -120,6 +120,11 @@ export default {
type: 'ERP_SortAdjust', type: 'ERP_SortAdjust',
appId: 1626782774851 appId: 1626782774851
}, },
{
taskType: '配套自动退库确认',
type: 'ERP_MatchAutoReturnConfirm',
appId: 1626782774851
},
{ {
taskType: '库内退库确认', taskType: '库内退库确认',
type: 'ERP_StockBackConfirm', type: 'ERP_StockBackConfirm',
...@@ -215,9 +220,9 @@ export default { ...@@ -215,9 +220,9 @@ export default {
get(`/indexTask/task/ProdTask`, {}).then(res => { get(`/indexTask/task/ProdTask`, {}).then(res => {
this.$set(this.quickAccessList[index], 'taskCount', res.items.count) this.$set(this.quickAccessList[index], 'taskCount', res.items.count)
}) })
} else if (item.type === 'ERP_SortAdjust' || item.type === 'ERP_operatorConfirm') { } else if (item.type === 'ERP_SortAdjust' || item.type === 'ERP_operatorConfirm' || item.type === 'ERP_MatchAutoReturnConfirm') {
post(`/ErpSorting/currentUserSortingTaskCount`, {}).then(res => { post(`/ErpSorting/currentUserSortingTaskCount`, {}).then(res => {
const resKey = item.type === 'ERP_SortAdjust' ? '准备工任务数量' : '操作工任务数量' const resKey = item.type === 'ERP_SortAdjust' ? '准备工任务数量' : item.type === 'ERP_operatorConfirm' ? '操作工任务数量' : '自动配套退库任务'
this.$set(this.quickAccessList[index], 'taskCount', res.items[resKey]) this.$set(this.quickAccessList[index], 'taskCount', res.items[resKey])
}) })
} else if (item.type === 'ERP_StockBackConfirm') { } else if (item.type === 'ERP_StockBackConfirm') {
...@@ -261,7 +266,7 @@ export default { ...@@ -261,7 +266,7 @@ export default {
} }
}) })
this.$store.dispatch('app/closeSideBar', false) this.$store.dispatch('app/closeSideBar', false)
} else if (item.taskType === '准备工出库调整' || item.taskType === '操作工确认' || item.taskType === '库内退库确认') { } else if (item.taskType === '准备工出库调整' || item.taskType === '操作工确认' || item.taskType === '配套自动退库确认' || item.taskType === '库内退库确认') {
let pageNo = '' let pageNo = ''
switch (item.taskType) { switch (item.taskType) {
case '准备工出库调整': case '准备工出库调整':
...@@ -270,6 +275,9 @@ export default { ...@@ -270,6 +275,9 @@ export default {
case '操作工确认': case '操作工确认':
pageNo = '038a430e-facf-4fcb-9b98-2bf75c226681' pageNo = '038a430e-facf-4fcb-9b98-2bf75c226681'
break break
case '配套自动退库确认':
pageNo = '102e307a-342e-4786-8a9a-a50465ab1721'
break
case '库内退库确认': case '库内退库确认':
pageNo = '219cf48e-020a-4048-85d7-d5c2b83537f4' pageNo = '219cf48e-020a-4048-85d7-d5c2b83537f4'
break break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment