Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TFMOM
TF-MOM-WEB
Commits
4df8e3a6
Commit
4df8e3a6
authored
Nov 29, 2023
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量验收入库确认代码简化
parent
6409ecd3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
162 deletions
+0
-162
index.vue
...orkflow/task-center/myPlanTask/warehouseConfirm/index.vue
+0
-162
No files found.
applications/dee-task-center/src/views/workflow/task-center/myPlanTask/warehouseConfirm/index.vue
View file @
4df8e3a6
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
post
}
from
'@/utils/http'
export
default
{
export
default
{
name
:
'WarehouseConfirm'
,
name
:
'WarehouseConfirm'
,
components
:
{},
components
:
{},
...
@@ -38,13 +37,11 @@ export default {
...
@@ -38,13 +37,11 @@ export default {
computed
:
{},
computed
:
{},
watch
:
{},
watch
:
{},
created
()
{
created
()
{
// this.searchInStorageRequestItem()
},
},
mounted
()
{
mounted
()
{
this
.
$bus
.
$on
(
'refreshBatchSignDetails'
,
()
=>
{
this
.
$bus
.
$on
(
'refreshBatchSignDetails'
,
()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
applyTable
&&
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
this
.
$refs
.
applyTable
&&
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
// this.searchInStorageRequestItem()
})
})
})
})
},
},
...
@@ -52,165 +49,6 @@ export default {
...
@@ -52,165 +49,6 @@ export default {
methods
:
{
methods
:
{
selectionChange
(
val
)
{
selectionChange
(
val
)
{
this
.
selectionRows
=
val
this
.
selectionRows
=
val
},
searchInStorageRequestItem
()
{
console
.
log
(
this
,
'this'
)
// const searchData = obtainedParams.searchFormData ? obtainedParams.searchFormData.items : []
// const extraItems = obtainedParams.extraBaseParams || []
const
param
=
{
'rootCondition'
:
{
'pageFrom'
:
1
,
'pageSize'
:
999
,
'searchItems'
:
{
'children'
:
[
{
'items'
:
[
{
'fieldName'
:
'parentId'
,
'operator'
:
'ISNULL'
}
// ...extraItems,
// ...searchData
],
'operator'
:
'AND'
}
],
'items'
:
[]
},
'parentFilter'
:
true
,
'openProps'
:
[{
'name'
:
'inventoryReq'
,
'openProps'
:
[
{
'name'
:
'materialType'
}
]
},
{
'name'
:
'extMaterial'
,
'openProps'
:
[
{
'name'
:
'extUnit'
}
]
},
{
'name'
:
'extDxSipplier'
},
{
'name'
:
'storageZone'
},
{
'name'
:
'purchaseUnit'
},
{
'name'
:
'inventoryJobResponses'
,
'openProps'
:
[
{
'name'
:
'extWorkUnit'
},
{
'name'
:
'inventory'
}
]
}
],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
},
'childCondition'
:
{
'pageFrom'
:
1
,
'pageSize'
:
9999
,
'searchItems'
:
{
'children'
:
[],
'items'
:
[]
},
'openProps'
:
[{
'name'
:
'inventoryReq'
,
'openProps'
:
[
{
'name'
:
'materialType'
}
]
},
{
'name'
:
'extMaterial'
,
'openProps'
:
[
{
'name'
:
'extUnit'
}
]
},
{
'name'
:
'extDxSipplier'
},
{
'name'
:
'storageZone'
},
{
'name'
:
'purchaseUnit'
},
{
'name'
:
'inventoryJobResponses'
,
'openProps'
:
[
{
'name'
:
'extWorkUnit'
}
]
}
],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
}
}
// this.resultData = []
const
requestURL
=
'InStorageRequestItem/search/wfcInventoryItem?taskDefinitionKey='
+
this
.
selectData
.
taskKey
post
(
requestURL
,
param
).
then
(
res
=>
{
const
data
=
res
.
items
.
content
this
.
treeTableNoArrange
(
data
)
// this.pagination.total = data.length
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
},
treeTableNoArrange
(
tableData
)
{
this
.
resultData
=
tableData
.
map
((
item
,
i
)
=>
{
const
resData
=
{
...
item
.
pbo
}
resData
.
parentIndex
=
i
+
1
if
(
resData
.
children
)
{
resData
.
children
.
forEach
((
child
,
j
)
=>
{
child
.
parentIndex
=
resData
.
parentIndex
+
'.'
+
(
j
+
1
)
child
.
state
=
''
})
}
if
(
resData
.
inventoryJobResponses
&&
resData
.
inventoryJobResponses
.
length
)
{
resData
.
inventoryJobResponses
.
forEach
(
el
=>
{
if
(
el
.
subTypeName
===
'JobResponseInTest'
)
{
resData
.
testNo
=
el
.
testNo
resData
.
qualityPeriod
=
el
.
qualityPeriod
resData
.
longPeriod
=
el
.
longPeriod
}
if
(
el
.
subTypeName
===
'JobResponseInEntry'
)
{
resData
.
targetJobResponseId
=
el
.
id
resData
.
extWorkUnitCode
=
el
.
extWorkUnit
?
el
.
extWorkUnit
.
extcode
:
''
}
})
}
return
{
...
resData
,
processInstanceId
:
item
.
processTask
.
processInstanceId
,
processTaskId
:
item
.
processTask
.
id
}
})
// this.tableData = tableData
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment