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
d395ed44
Commit
d395ed44
authored
Sep 28, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
废品通知单
parent
d2973864
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
107 additions
and
328 deletions
+107
-328
threeTable.vue
...omponents/components/ScrapNoticeDocReceipt/threeTable.vue
+60
-144
twoTable.vue
...eComponents/components/ScrapNoticeDocReceipt/twoTable.vue
+47
-184
No files found.
applications/dee-mes/src/privateComponents/components/ScrapNoticeDocReceipt/threeTable.vue
View file @
d395ed44
...
...
@@ -318,12 +318,11 @@ export default {
this
.
$refs
.
form
&&
this
.
$refs
[
'form'
].
resetFields
()
if
(
val
)
{
this
.
item
=
val
this
.
$set
(
this
.
form
,
'gysign'
,
val
.
assigneeName
)
Object
.
keys
(
this
.
form
).
forEach
((
key
)
=>
{
Object
.
keys
(
val
.
primaryBusinessObject
).
forEach
((
key2
)
=>
{
Object
.
keys
(
val
).
forEach
((
key2
)
=>
{
if
(
key
===
key2
)
{
if
(
val
.
primaryBusinessObject
[
key2
])
{
this
.
$set
(
this
.
form
,
key
,
val
.
primaryBusinessObject
[
key2
])
if
(
val
[
key2
])
{
this
.
$set
(
this
.
form
,
key
,
val
[
key2
])
}
}
})
...
...
@@ -353,160 +352,77 @@ export default {
}
},
created
()
{
this
.
getUserGroup
(
)
this
.
open
(
this
.
$attrs
[
'basic-data'
]
)
},
mounted
()
{},
methods
:
{
// 打开弹出框
open
(
val
)
{
if
(
this
.
$route
.
query
.
name
===
'我的请求'
||
this
.
$route
.
query
.
name
===
'办结任务'
||
this
.
$route
.
query
.
name
===
'已办任务'
||
this
.
$route
.
query
.
name
===
'废品通知单详情'
)
{
this
.
disabled
=
true
}
else
{
// 成本核算员节点Activity_1lgytbi和财务部会计Activity_07owud7
if
([
'Activity_1lgytbi'
,
'Activity_07owud7'
].
includes
(
val
.
taskkey
))
{
this
.
disabled
=
false
}
this
.
$nextTick
(()
=>
{
this
.
visible
=
true
this
.
item
=
val
})
},
// 获取用户群组
getUserGroup
()
{
const
params
=
{
searchItems
:
{
children
:
[{}],
items
:
[
{
fieldName
:
'userId'
,
operator
:
'EQ'
,
value
:
localStorage
.
getItem
(
'userId'
)
}
],
operator
:
'AND'
},
sortItem
:
[
{
fieldName
:
'id'
,
sortOrder
:
'asc'
}
]
}
this
.
HttpRequest
(
'/UserGroupRef/find/recursion'
,
params
,
'post'
)
.
then
((
res
)
=>
{
res
.
items
.
content
.
forEach
((
item
)
=>
{
if
(
item
.
groupName
===
'成本核算员'
)
{
// this.costEstimator = false
this
.
$nextTick
(()
=>
{
// this.$set(this.rules, 'quota', [
// {
// required: true,
// message: '请输入单件定额',
// trigger: 'blur'
// }
// ])
// this.$set(this.rules, 'consumeCount', [
// {
// required: true,
// message: '请输入消耗总数',
// trigger: 'blur'
// }
// ])
// this.$set(this.rules, 'price', [
// {
// required: true,
// message: '请输入单位价格',
// trigger: 'blur'
// }
// ])
// this.$set(this.rules, 'lossValue', [
// {
// required: true,
// message: '请输入损失价值',
// trigger: 'blur'
// }
// ])
// this.$set(this.rules, 'subMaterialLossValue', [
// {
// required: true,
// message: '请输入辅助材料损失价值',
// trigger: 'blur'
// }
// ])
// this.$set(this.rules, 'totalLossValue', [
// {
// required: true,
// message: '请输入合计损失总值',
// trigger: 'blur'
// }
// ])
})
}
else
if
(
item
.
groupName
===
'工艺员'
&&
this
.
$route
.
query
.
taskKey
===
'Activity_067g61s'
)
{
// } else if (item.groupName === '工艺员') {
this
.
technologist
=
false
this
.
$nextTick
(()
=>
{
this
.
$set
(
this
.
form
,
'gysign'
,
item
.
userName
)
this
.
$set
(
this
.
rules
,
'portCarNumber'
,
[
{
required
:
true
,
message
:
'请输入零件图号'
,
trigger
:
'blur'
}
])
this
.
$set
(
this
.
rules
,
'clmc'
,
[
{
required
:
true
,
message
:
'请输入材料名称'
,
trigger
:
'blur'
}
])
this
.
$set
(
this
.
rules
,
'clph'
,
[
{
required
:
true
,
message
:
'请输入材料牌号'
,
trigger
:
'blur'
}
])
this
.
$set
(
this
.
rules
,
'spec'
,
[
{
required
:
true
,
message
:
'请输入材料规格'
,
trigger
:
'blur'
}
])
this
.
$set
(
this
.
rules
,
'disassemblyDate'
,
[
{
required
:
true
,
message
:
'请输入拆卸废品时间'
,
trigger
:
'blur'
}
])
})
}
// if (val.taskkey === 'Activity_1lgytbi') {
// } else
if
(
val
.
taskkey
===
'Activity_07owud7'
)
{
this
.
technologist
=
false
this
.
$nextTick
(()
=>
{
this
.
$set
(
this
.
form
,
'gysign'
,
localStorage
.
getItem
(
'user'
))
this
.
technologist
=
false
this
.
$set
(
this
.
rules
,
'portCarNumber'
,
[
{
required
:
true
,
message
:
'请输入零件图号'
,
trigger
:
'blur'
}
])
this
.
$set
(
this
.
rules
,
'clmc'
,
[
{
required
:
true
,
message
:
'请输入材料名称'
,
trigger
:
'blur'
}
])
this
.
$set
(
this
.
rules
,
'clph'
,
[
{
required
:
true
,
message
:
'请输入材料牌号'
,
trigger
:
'blur'
}
])
this
.
$set
(
this
.
rules
,
'spec'
,
[
{
required
:
true
,
message
:
'请输入材料规格'
,
trigger
:
'blur'
}
])
this
.
$set
(
this
.
rules
,
'disassemblyDate'
,
[
{
required
:
true
,
message
:
'请输入拆卸废品时间'
,
trigger
:
'blur'
}
])
})
})
.
catch
((
err
)
=>
console
.
log
(
err
))
.
finally
(()
=>
{})
}
}
else
{
this
.
disabled
=
true
}
this
.
item
=
val
},
save
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
disab
=
true
const
params
=
{
id
:
this
.
item
.
pboId
,
dxClassname
:
'com.tf.mes.vo.prodTask.ScrapNoticeDocVO'
,
// 指定类路径
subTypeName
:
'ScrapNoticeDoc'
,
// 指定类型
id
:
this
.
item
.
id
,
operator
:
'MODIFY'
,
// 增加操作
...
this
.
form
}
this
.
HttpRequest
(
'/ScrapNoticeDoc/recursion'
,
params
,
'post'
)
.
then
((
res
)
=>
{
this
.
reset
(
'保存'
)
})
this
.
$api
.
recursion
(
'ScrapNoticeDoc'
,
params
).
then
((
res
)
=>
{
this
.
reset
(
'保存'
)
this
.
item
=
res
.
items
})
.
catch
((
err
)
=>
console
.
log
(
err
))
.
finally
(()
=>
{
this
.
disab
=
false
...
...
@@ -518,11 +434,11 @@ export default {
})
},
handleClose
()
{
this
.
visible
=
false
this
.
$emit
(
'cancel'
)
},
// 重置弹出框
reset
(
message
)
{
this
.
visible
=
false
this
.
handleClose
()
this
.
$message
({
message
:
`
${
message
}
成功`
,
type
:
'success'
...
...
applications/dee-mes/src/privateComponents/components/ScrapNoticeDocReceipt/twoTable.vue
View file @
d395ed44
This diff is collapsed.
Click to expand it.
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