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
3a176dee
Commit
3a176dee
authored
Oct 18, 2023
by
“lixuyan”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调配卡创建接口调试
parent
9c7c6dc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
99 additions
and
0 deletions
+99
-0
index.vue
...ivateComponents/components/MutualAttachmentList/index.vue
+99
-0
No files found.
applications/dee-mes/src/privateComponents/components/MutualAttachmentList/index.vue
0 → 100644
View file @
3a176dee
<
template
>
<dee-as-com
:lay-config=
"layConfig"
@
tableToolHandler=
"tableToolHandler"
/>
</
template
>
<
script
>
import
{
post
}
from
'@/utils/http'
export
default
{
name
:
'MutualAttachmentList'
,
componentName
:
'胶漆使用需求'
,
props
:
{
basicData
:
{
type
:
Object
,
default
:
null
}
},
data
()
{
return
{
}
},
computed
:
{
layConfig
()
{
return
{
typeName
:
'ExtSupportingItem'
,
layKey
:
'lacquerList'
}
}
},
mounted
()
{
},
methods
:
{
tableToolHandler
(
e
)
{
if
(
e
&&
e
.
key
&&
e
.
key
.
btnValue
)
{
console
.
log
(
e
)
let
type
const
{
btnValue
}
=
e
.
key
switch
(
btnValue
)
{
case
'addMix'
:
type
=
'AssignCardLacquer'
break
case
'addPaint'
:
type
=
'AssignCardPaint'
break
case
'addAlodine'
:
type
=
'AssignCardAlodine'
break
}
if
(
e
.
el
.
selectedData
.
length
===
0
)
{
this
.
$utils
.
showConfirm
(
`确定不关联胶漆调配申请创建调配卡吗, 是否继续?`
,
'提示'
,
'warning'
,
'确定'
,
'取消'
,
()
=>
{
this
.
adjustCardCreate
(
e
,
type
)
}
)
}
else
{
this
.
adjustCardCreate
(
e
,
type
)
}
}
},
adjustCardCreate
(
e
,
type
)
{
let
arr
=
[]
if
(
e
.
el
.
selectedData
.
length
===
0
)
{
arr
=
[
{
subTypeName
:
'AssignCardDetail'
,
targetId
:
''
,
targetIdType
:
'extSupportingItem'
}
]
}
else
{
e
.
el
.
selectedData
.
forEach
(
element
=>
{
arr
.
push
({
subTypeName
:
'AssignCardDetail'
,
targetId
:
element
.
id
,
targetIdType
:
'extSupportingItem'
})
})
}
const
params
=
{
dxClassName
:
'com.yonde.tf.mom.common.vo.schedule.AssignCardVO'
,
subTypeName
:
type
,
operator
:
'ADD'
,
assignCardDetails
:
arr
}
post
(
'/AssignCard/recursion'
,
params
)
.
then
((
res
)
=>
{
})
.
catch
((
err
)
=>
console
.
log
(
err
))
.
finally
(()
=>
{
})
}
}
}
</
script
>
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