Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-h5app-drs
Overview
Overview
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
zhuxiaomei
patzn-cloud-web-h5app-drs
Commits
56ac29dd
Commit
56ac29dd
authored
Nov 02, 2020
by
zhuxiaomei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样品名称和日期
parent
40adf466
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
SamplingListAdd.vue
src/page/sampling-list/SamplingListAdd.vue
+7
-7
SamplingListAddNet.vue
src/page/sampling-list/SamplingListAddNet.vue
+12
-7
No files found.
src/page/sampling-list/SamplingListAdd.vue
View file @
56ac29dd
...
@@ -751,7 +751,7 @@
...
@@ -751,7 +751,7 @@
:safe-area-inset-bottom=
"true"
:safe-area-inset-bottom=
"true"
:close-on-popstate=
"true"
>
:close-on-popstate=
"true"
>
<van-datetime-picker
<van-datetime-picker
:type=
"typ
e"
type=
"dat
e"
v-model=
"currentDate"
v-model=
"currentDate"
@
confirm=
"_dateOnConfirm"
@
confirm=
"_dateOnConfirm"
@
cancel=
"showPicker = false"
@
cancel=
"showPicker = false"
...
@@ -775,9 +775,9 @@
...
@@ -775,9 +775,9 @@
},
},
data
()
{
data
()
{
return
{
return
{
showPicker
:
false
,
showPicker
:
false
,
currentDate
:
new
Date
(),
currentDate
:
new
Date
(),
selectDateType
:
''
,
selectDateType
:
''
,
formObj
:
{
formObj
:
{
samplingNum
:
''
,
samplingNum
:
''
,
taskNum
:
''
,
taskNum
:
''
,
...
@@ -820,7 +820,7 @@
...
@@ -820,7 +820,7 @@
placeRemark
:
''
//保存时单独赋值 根据环节取对应的placeRemarkN
placeRemark
:
''
//保存时单独赋值 根据环节取对应的placeRemarkN
},
},
sample
:
{
sample
:
{
name
:
''
,
name
:
''
,
trademark
:
''
,
trademark
:
''
,
qrcode
:
''
,
qrcode
:
''
,
firstClass
:
''
,
firstClass
:
''
,
...
@@ -999,12 +999,12 @@
...
@@ -999,12 +999,12 @@
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
}
}
},
},
_selectDate
(
type
){
_selectDate
(
type
)
{
this
.
selectDateType
=
type
this
.
selectDateType
=
type
this
.
showPicker
=
true
this
.
showPicker
=
true
},
},
_dateOnConfirm
(
date
)
{
_dateOnConfirm
(
date
)
{
this
.
sample
.
sampleDate
=
this
.
$dateformat
(
date
,
this
.
format
)
this
.
sample
.
sampleDate
=
this
.
$dateformat
(
date
,
'yyyy-mm-dd'
)
this
.
showPicker
=
false
this
.
showPicker
=
false
}
}
}
}
...
...
src/page/sampling-list/SamplingListAddNet.vue
View file @
56ac29dd
...
@@ -748,7 +748,7 @@
...
@@ -748,7 +748,7 @@
:safe-area-inset-bottom=
"true"
:safe-area-inset-bottom=
"true"
:close-on-popstate=
"true"
>
:close-on-popstate=
"true"
>
<van-datetime-picker
<van-datetime-picker
:type=
"typ
e"
type=
"dat
e"
v-model=
"currentDate"
v-model=
"currentDate"
@
confirm=
"_dateOnConfirm"
@
confirm=
"_dateOnConfirm"
@
cancel=
"showPicker = false"
@
cancel=
"showPicker = false"
...
@@ -773,9 +773,9 @@
...
@@ -773,9 +773,9 @@
},
},
data
()
{
data
()
{
return
{
return
{
showPicker
:
false
,
showPicker
:
false
,
currentDate
:
new
Date
(),
currentDate
:
new
Date
(),
selectDateType
:
''
,
selectDateType
:
''
,
formObj
:
{
formObj
:
{
samplingNum
:
''
,
samplingNum
:
''
,
taskNum
:
''
,
taskNum
:
''
,
...
@@ -822,7 +822,7 @@
...
@@ -822,7 +822,7 @@
place
:
''
,
//保存时单独赋值 从place字段分离出
place
:
''
,
//保存时单独赋值 从place字段分离出
},
},
sample
:
{
sample
:
{
name
:
''
,
name
:
''
,
trademark
:
''
,
trademark
:
''
,
num
:
''
,
num
:
''
,
batchNo
:
''
,
batchNo
:
''
,
...
@@ -967,12 +967,17 @@
...
@@ -967,12 +967,17 @@
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
}
}
},
},
_selectDate
(
type
){
_selectDate
(
type
)
{
console
.
log
(
type
,
'type'
)
this
.
selectDateType
=
type
this
.
selectDateType
=
type
this
.
showPicker
=
true
this
.
showPicker
=
true
},
},
_dateOnConfirm
(
date
)
{
_dateOnConfirm
(
date
)
{
this
.
sample
.
sampleDate
=
this
.
$dateformat
(
date
,
this
.
format
)
switch
(
this
.
selectDateType
)
{
case
'sample.sampleDate'
:
this
.
sample
.
sampleDate
=
this
.
$dateformat
(
date
,
'yyyy-mm-dd'
)
break
}
this
.
showPicker
=
false
this
.
showPicker
=
false
}
}
}
}
...
...
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