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