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
472a197f
Commit
472a197f
authored
Apr 01, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
胶漆调配记录修改
parent
38c525f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
index.vue
...eComponents/components/DeploymentCardInfoSelect/index.vue
+19
-10
No files found.
applications/dee-mes/src/privateComponents/components/DeploymentCardInfoSelect/index.vue
View file @
472a197f
...
@@ -420,27 +420,36 @@ export default {
...
@@ -420,27 +420,36 @@ export default {
this
.
$set
(
this
.
form
,
'diluentLotNo'
,
obj
.
lotNo
)
this
.
$set
(
this
.
form
,
'diluentLotNo'
,
obj
.
lotNo
)
}
else
if
(
this
.
itemObj
.
attrKey
===
'baseModelNo'
)
{
}
else
if
(
this
.
itemObj
.
attrKey
===
'baseModelNo'
)
{
this
.
$set
(
this
.
form
,
'certificateNo'
,
''
)
this
.
$set
(
this
.
form
,
'certificateNo'
,
''
)
this
.
$set
(
this
.
form
,
'lotNo'
,
''
)
}
else
{
}
else
{
this
.
$set
(
this
.
form
,
this
.
itemObj
.
attrKey
,
value
)
this
.
$set
(
this
.
form
,
this
.
itemObj
.
attrKey
,
value
)
this
.
changeRequest
()
this
.
changeRequest
()
if
(
this
.
itemObj
.
attrKey
===
'spec'
)
{
if
(
this
.
itemObj
.
attrKey
===
'spec'
)
{
this
.
$set
(
this
.
form
,
'certificateNo'
,
''
)
this
.
$set
(
this
.
form
,
'lotNo'
,
''
)
this
.
setMixEndTime
()
}
else
if
(
this
.
itemObj
.
attrKey
===
'modelNo'
||
this
.
itemObj
.
attrKey
===
'realityMark'
)
{
this
.
$set
(
this
.
form
,
'certificateNo'
,
''
)
this
.
$set
(
this
.
form
,
'lotNo'
,
''
)
this
.
setMixEndTime
()
this
.
setMixEndTime
()
}
}
}
}
},
},
setMixEndTime
()
{
setMixEndTime
()
{
if
(
this
.
form
.
mixStartTime
)
{
if
(
this
.
form
.
mixStartTime
)
{
let
rawTime
=
Date
.
parse
(
this
.
form
.
mixStartTime
)
// 把时间转换成毫秒
// let rawTime = Date.parse(this.form.mixStartTime)// 把时间转换成毫秒
// const addTime = (!this.form.spec || this.form.spec === '/') ? 0 : Number(this.form.spec)
// rawTime = rawTime + (1000 * 60 * 60 * addTime)// 增加3小时。
// const newsTime = new Date(rawTime)// 时间重新格式化时间。
// const y = newsTime.getFullYear()
// const m = (newsTime.getMonth() + 1)
<
10
?
'0'
+
(
newsTime
.
getMonth
()
+
1
)
:
(
newsTime
.
getMonth
()
+
1
)
// const d = newsTime.getDate()
// const h = newsTime.getHours()
<
10
?
'0'
+
newsTime
.
getHours
()
:
newsTime
.
getHours
()
// const m2 = newsTime.getMinutes()
<
10
?
'0'
+
newsTime
.
getMinutes
()
:
newsTime
.
getMinutes
()
// const s = newsTime.getSeconds()
<
10
?
'0'
+
newsTime
.
getSeconds
()
:
newsTime
.
getSeconds
()
// const resultDate = y + '-' + m + '-' + d + ' ' + h + ':' + m2 + ':' + s
const
addTime
=
(
!
this
.
form
.
spec
||
this
.
form
.
spec
===
'/'
)
?
0
:
Number
(
this
.
form
.
spec
)
const
addTime
=
(
!
this
.
form
.
spec
||
this
.
form
.
spec
===
'/'
)
?
0
:
Number
(
this
.
form
.
spec
)
rawTime
=
rawTime
+
(
1000
*
60
*
60
*
addTime
)
// 增加3小时。
const
resultDate
=
this
.
$utils
.
addMinutes
(
this
.
form
.
mixStartTime
,
addTime
*
60
)
const
newsTime
=
new
Date
(
rawTime
)
// 时间重新格式化时间。
const
y
=
newsTime
.
getFullYear
()
const
m
=
(
newsTime
.
getMonth
()
+
1
)
<
10
?
'0'
+
(
newsTime
.
getMonth
()
+
1
)
:
(
newsTime
.
getMonth
()
+
1
)
const
d
=
newsTime
.
getDate
()
const
h
=
newsTime
.
getHours
()
<
10
?
'0'
+
newsTime
.
getHours
()
:
newsTime
.
getHours
()
const
m2
=
newsTime
.
getMinutes
()
<
10
?
'0'
+
newsTime
.
getMinutes
()
:
newsTime
.
getMinutes
()
const
s
=
newsTime
.
getSeconds
()
<
10
?
'0'
+
newsTime
.
getSeconds
()
:
newsTime
.
getSeconds
()
const
resultDate
=
y
+
'-'
+
m
+
'-'
+
d
+
' '
+
h
+
':'
+
m2
+
':'
+
s
this
.
$set
(
this
.
form
,
'mixEndTime'
,
resultDate
)
this
.
$set
(
this
.
form
,
'mixEndTime'
,
resultDate
)
}
}
},
},
...
...
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