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
9cb44734
Commit
9cb44734
authored
Mar 19, 2024
by
wangdanlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调漆
parent
0a54a9d6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
175 additions
and
71 deletions
+175
-71
config.js
applications/dee-mes/src/api/config.js
+2
-0
index.vue
...src/privateComponents/components/AssignCradInfo/index.vue
+1
-1
index.vue
...eComponents/components/DeploymentCardInfoSelect/index.vue
+149
-65
index.vue
...ivateComponents/components/MutualAttachmentList/index.vue
+3
-1
index.vue
...s/src/privateComponents/components/ViscosityBox/index.vue
+20
-4
No files found.
applications/dee-mes/src/api/config.js
View file @
9cb44734
// eslint-disable-next-line no-unused-vars
import
{
get
}
from
'../utils/http'
// 删除索引
// eslint-disable-next-line no-redeclare
export
function
get
(
params
)
{
return
get
(
`/demo`
)
}
...
...
applications/dee-mes/src/privateComponents/components/AssignCradInfo/index.vue
View file @
9cb44734
...
...
@@ -61,7 +61,7 @@ export default {
}
else
{
this
.
cmpOptions
=
{
typeName
:
'AssignCardPaint'
,
layKey
:
'
assignCardInfo
'
layKey
:
'
AssignCardPaintView
'
}
}
}
...
...
applications/dee-mes/src/privateComponents/components/DeploymentCardInfoSelect/index.vue
View file @
9cb44734
...
...
@@ -71,9 +71,13 @@ export default {
formData
:
[]
},
requestOp
:
[],
isEdit
:
false
,
loading
:
false
,
time
:
null
time
:
null
,
typeEnum
:
{
AssignCardPaint
:
'ShellacCardPaint'
,
AssignCardLacquer
:
'ShellacCardLacquer'
},
subTypeName
:
''
}
},
computed
:
{
...
...
@@ -98,6 +102,9 @@ export default {
})
})
return
disabled
},
type
()
{
return
this
.
subTypeName
}
},
watch
:
{},
...
...
@@ -110,6 +117,7 @@ export default {
// 生命周期 - 挂载完成(可以访问 DOM 元素)
mounted
()
{
this
.
com
=
this
.
findByNameVnode
(
this
,
'DeeAsForm'
)
this
.
getSubTypeName
()
if
(
this
.
itemObj
.
attrKey
===
'certificateNo'
)
{
//
}
else
{
...
...
@@ -118,7 +126,6 @@ export default {
this
.
$set
(
this
.
form
,
key
,
this
.
basicData
.
setAttrs
[
key
])
})
}
this
.
isEdit
=
this
.
form
.
modelNo
&&
this
.
form
.
spec
&&
this
.
form
.
realityMark
if
(
this
.
basicData
.
setAttrs
)
{
this
.
initFn
()
}
else
{
...
...
@@ -127,6 +134,13 @@ export default {
}
},
methods
:
{
getSubTypeName
()
{
if
(
this
.
basicData
.
setAttrs
)
{
this
.
subTypeName
=
this
.
basicData
.
setAttrs
.
assignCard
.
subTypeName
}
else
{
this
.
subTypeName
=
this
.
basicData
.
subTypeName
||
this
.
form
.
subTypeName
}
},
initFn
()
{
let
params
=
[]
if
(
this
.
itemObj
.
attrKey
===
'modelNo'
)
{
...
...
@@ -143,7 +157,7 @@ export default {
{
'fieldName'
:
'subTypeName'
,
'operator'
:
'EQ'
,
'value'
:
'ShellacCardLacquer'
'value'
:
this
.
typeEnum
[
this
.
subTypeName
]
}
]
this
.
setOptions
(
'modelNo'
,
params
)
...
...
@@ -160,14 +174,18 @@ export default {
'fieldName'
:
'spec'
,
'operator'
:
'LIKE'
,
'value'
:
this
.
form
.
spec
||
''
},
{
'fieldName'
:
'subTypeName'
,
'operator'
:
'EQ'
,
'value'
:
this
.
typeEnum
[
this
.
subTypeName
]
}
]
this
.
setOptions
(
'spec'
,
params
)
}
}
if
(
this
.
itemObj
.
attrKey
===
'realityMark'
)
{
if
(
this
.
form
.
modelNo
&&
this
.
form
.
spec
)
{
params
=
[
let
params
=
[
{
'fieldName'
:
'modelNo'
,
'operator'
:
'LIKE'
,
...
...
@@ -182,12 +200,24 @@ export default {
'fieldName'
:
'realityMark'
,
'operator'
:
'LIKE'
,
'value'
:
this
.
form
.
realityMark
||
''
},
{
'fieldName'
:
'subTypeName'
,
'operator'
:
'EQ'
,
'value'
:
this
.
typeEnum
[
this
.
subTypeName
]
}
]
if
(
this
.
subTypeName
===
'ShellacCardLacquer'
)
{
if
(
!
this
.
form
.
modelNo
||
!
this
.
form
.
spec
)
{
return
false
}
}
else
{
params
=
params
.
filter
(
item
=>
item
.
fieldName
!==
'spec'
)
}
this
.
$set
(
this
.
form
,
'realityMark'
,
''
)
this
.
setOptions
(
'realityMark'
,
params
)
}
}
},
editInit
()
{
if
(
this
.
itemObj
.
attrKey
===
'modelNo'
)
{
...
...
@@ -200,7 +230,7 @@ export default {
{
'fieldName'
:
'subTypeName'
,
'operator'
:
'EQ'
,
'value'
:
'ShellacCardLacquer'
'value'
:
this
.
typeEnum
[
this
.
subTypeName
]
}
]
this
.
setOptions
(
'modelNo'
,
params
)
...
...
@@ -332,12 +362,17 @@ export default {
'value'
:
this
.
form
.
modelNo
||
''
},
{
'fieldName'
:
'spec
'
,
'fieldName'
:
this
.
subTypeName
===
'AssignCardLacquer'
?
'spec'
:
'realityMark
'
,
'operator'
:
'LIKE'
,
'value'
:
this
.
form
.
spec
||
''
},
{
'fieldName'
:
'subTypeName'
,
'operator'
:
'EQ'
,
'value'
:
this
.
typeEnum
[
this
.
subTypeName
]
}
]
this
.
setOptions
(
'spec
'
,
params
)
this
.
setOptions
(
this
.
subTypeName
===
'AssignCardLacquer'
?
'spec'
:
'realityMark
'
,
params
)
}
if
(
this
.
itemObj
.
attrKey
===
'spec'
)
{
this
.
$set
(
this
.
form
,
'realityMark'
,
''
)
...
...
@@ -356,19 +391,28 @@ export default {
'fieldName'
:
'realityMark'
,
'operator'
:
'LIKE'
,
'value'
:
this
.
form
.
realityMark
||
''
},
{
'fieldName'
:
'subTypeName'
,
'operator'
:
'EQ'
,
'value'
:
this
.
typeEnum
[
this
.
subTypeName
]
}
]
this
.
setOptions
(
'realityMark'
,
params
)
}
if
(
this
.
itemObj
.
attrKey
===
'realityMark'
)
{
if
(
this
.
itemObj
.
attrKey
===
'realityMark'
&&
this
.
form
.
realityMark
)
{
this
.
requestShellacDeploy
(
this
.
form
.
modelNo
,
this
.
form
.
spec
,
this
.
form
.
realityMark
)
}
},
requestShellacDeploy
(
modelNo
,
spec
,
realityMark
)
{
if
(
modelNo
&&
spec
&&
realityMark
)
{
const
params
=
{
'searchItems'
:
{
'items'
:
[
let
state
=
false
if
(
this
.
subTypeName
===
'AssignCardLacquer'
)
{
state
=
modelNo
&&
spec
&&
realityMark
}
else
{
state
=
modelNo
&&
realityMark
}
if
(
state
)
{
let
paramsItems
=
[
{
'fieldName'
:
'modelNo'
,
'operator'
:
'LIKE'
,
...
...
@@ -383,8 +427,19 @@ export default {
'fieldName'
:
'realityMark'
,
'operator'
:
'LIKE'
,
'value'
:
realityMark
},
{
'fieldName'
:
'subTypeName'
,
'operator'
:
'EQ'
,
'value'
:
this
.
typeEnum
[
this
.
subTypeName
]
}
],
]
if
(
this
.
subTypeName
===
'AssignCardPaint'
)
{
paramsItems
=
paramsItems
.
filter
(
item
=>
item
.
fieldName
!==
'spec'
)
}
const
params
=
{
'searchItems'
:
{
'items'
:
paramsItems
,
'operator'
:
'AND'
},
'openProps'
:
[],
...
...
@@ -398,6 +453,7 @@ export default {
post
(
`/ShellacDeploy/search`
,
params
)
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
this
.
subTypeName
===
'AssignCardLacquer'
)
{
this
.
$set
(
this
.
form
,
'standard'
,
res
.
items
.
content
[
0
].
standard
)
this
.
$set
(
this
.
form
,
'matching'
,
res
.
items
.
content
[
0
].
matching
)
this
.
$set
(
this
.
form
,
'theoreticalTemperature'
,
res
.
items
.
content
[
0
].
temperature
)
...
...
@@ -412,6 +468,26 @@ export default {
date
.
setDate
(
date
.
getDate
()
+
data
)
this
.
$set
(
this
.
form
,
'validityEnd'
,
this
.
$utils
.
dateFormat
(
date
.
toISOString
()))
}
}
else
{
this
.
$set
(
this
.
form
,
'shellacDeployId'
,
res
.
items
.
content
[
0
].
id
)
Object
.
keys
(
res
.
items
.
content
[
0
]).
forEach
(
key
=>
{
if
(
key
===
'temperature'
)
{
this
.
$set
(
this
.
form
,
'theoreticalTemperature'
,
res
.
items
.
content
[
0
][
key
])
}
else
if
(
key
===
'viscosity'
)
{
this
.
$set
(
this
.
form
,
'theoreticalViscosity'
,
res
.
items
.
content
[
0
][
key
])
}
else
if
(
key
===
'bulk'
)
{
this
.
$set
(
this
.
form
,
'mixRateType'
,
res
.
items
.
content
[
0
][
key
]
===
'A'
)
}
else
if
(
key
===
'hunting'
)
{
this
.
$set
(
this
.
form
,
'shockTime'
,
res
.
items
.
content
[
0
][
key
])
}
else
if
(
key
===
'hunting'
)
{
this
.
$set
(
this
.
form
,
'shockTime'
,
res
.
items
.
content
[
0
][
key
])
}
else
{
if
(
!
[
'modelNo'
,
'realityMark'
,
'id'
].
includes
(
key
))
{
this
.
$set
(
this
.
form
,
key
,
res
.
items
.
content
[
0
][
key
])
}
}
})
}
}
})
}
...
...
@@ -442,7 +518,7 @@ export default {
{
'fieldName'
:
'subTypeName'
,
'operator'
:
'EQ'
,
'value'
:
'ShellacCardLacquer'
'value'
:
this
.
typeEnum
[
this
.
subTypeName
]
}]
}
}
...
...
@@ -481,12 +557,20 @@ export default {
if
(
item
.
qualityPeriod
)
{
disabled
=
new
Date
().
getTime
()
>
Date
.
parse
(
item
.
qualityPeriod
)
}
if
(
this
.
subTypeName
===
'AssignCardPaint'
)
{
return
{
label
:
`
${
item
.
testNo
}
`
,
value
:
item
.
testNo
,
disabled
}
}
else
{
return
{
label
:
`
${
item
.
testNo
}
`
,
value
:
item
.
testNo
,
lotNo
:
item
.
lotNo
,
disabled
}
}
})
this
.
setFormDataAttr
(
attrKey
,
'options'
,
this
.
requestOp
)
}
...
...
applications/dee-mes/src/privateComponents/components/MutualAttachmentList/index.vue
View file @
9cb44734
...
...
@@ -155,6 +155,7 @@ export default {
name
=
'阿洛丁调配'
break
}
delete
this
.
setAttrs
.
modelNo
if
(
e
.
el
.
selectedData
.
length
===
0
)
{
this
.
$utils
.
showConfirm
(
`确定不关联
${
name
}
申请创建调配卡吗, 是否继续?`
,
...
...
@@ -215,7 +216,8 @@ export default {
'dxClassName'
:
'com.yonde.tf.mom.common.vo.schedule.AssignCardVO'
,
'subTypeName'
:
this
.
subTypeName
,
'operator'
:
'ADD'
,
productArea
:
this
.
productArea
productArea
:
this
.
productArea
,
createTimeTo
:
this
.
$moment
().
format
(
'YYYY-MM-DD hh:mm:ss'
)
}
post
(
`/AssignCard/recursion`
,
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
...
...
applications/dee-mes/src/privateComponents/components/ViscosityBox/index.vue
View file @
9cb44734
...
...
@@ -5,7 +5,7 @@
class=
"input-with-select el-input--small"
placeholder=
""
clearable
:disabled=
"
itemObj.readOnly
"
:disabled=
"
disabled
"
style=
"width: 40%"
@
change=
"change"
/>
...
...
@@ -15,7 +15,7 @@
class=
"input-with-select el-input--small"
placeholder=
""
clearable
:disabled=
"
itemObj.readOnly
"
:disabled=
"
disabled
"
style=
"width: 40%"
@
change=
"change"
/>
...
...
@@ -41,9 +41,13 @@ export default {
data
()
{
return
{
cup
:
''
,
second
:
''
second
:
''
,
com
:
{},
disabled
:
false
}
},
computed
:
{
},
watch
:
{
'form.id'
:
{
immediate
:
true
,
...
...
@@ -55,10 +59,22 @@ export default {
}
},
mounted
()
{
this
.
com
=
this
.
$utils
.
findByNameVnode
(
this
,
'DeeAsForm'
)
this
.
com
.
formData
.
forEach
(
item
=>
{
item
.
data
&&
item
.
data
.
forEach
(
x
=>
{
if
(
x
.
key
===
'viscosity'
)
{
this
.
disabled
=
x
.
component
.
disabled
}
})
})
},
methods
:
{
change
()
{
if
(
this
.
cup
&&
this
.
second
)
{
this
.
$emit
(
'input'
,
this
.
cup
+
' '
+
this
.
second
)
}
}
}
}
</
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