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
52c4d8af
Commit
52c4d8af
authored
Oct 30, 2020
by
zhuxiaomei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抽样单和历史抽样数据
parent
36ff3e3b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
232 additions
and
4 deletions
+232
-4
SamplingListAdd.vue
src/page/sampling-list/SamplingListAdd.vue
+70
-0
SamplingListAddNet.vue
src/page/sampling-list/SamplingListAddNet.vue
+74
-4
SamplingListDetail.vue
src/page/sampling-list/SamplingListDetail.vue
+44
-0
SamplingListDetailNet.vue
src/page/sampling-list/SamplingListDetailNet.vue
+44
-0
No files found.
src/page/sampling-list/SamplingListAdd.vue
View file @
52c4d8af
...
...
@@ -263,6 +263,46 @@
</table-col>
</table-row>
<table-row>
<table-col>
<van-field
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.firstClass"
label=
"大类"
></van-field>
</table-col>
<table-col>
<van-field
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.secondClass"
label=
"亚类"
></van-field>
</table-col>
</table-row>
<table-row>
<table-col>
<van-field
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.thirdClass"
label=
"次亚类"
></van-field>
</table-col>
<table-col>
<van-field
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.fourthClass"
label=
"细类"
></van-field>
</table-col>
</table-row>
<table-row>
<van-field
label-class=
"cus-field-class"
label-width=
"25%"
...
...
@@ -761,6 +801,10 @@
sample
:
{
trademark
:
''
,
qrcode
:
''
,
firstClass
:
''
,
secondClass
:
''
,
thirdClass
:
''
,
fourthClass
:
''
,
type
:
''
,
typeRemark
:
''
,
source
:
''
,
...
...
@@ -861,7 +905,33 @@
this
.
shelfId
=
result
.
shelfId
}
},
_valParams
(){
if
(
this
.
formObj
.
samplingNum
===
''
){
this
.
$toast
(
'请输入抽样单编号'
)
return
true
}
if
(
this
.
sample
.
firstClass
===
''
){
this
.
$toast
(
'请输入大类'
)
return
true
}
if
(
this
.
sample
.
secondClass
===
''
){
this
.
$toast
(
'请输入大亚类'
)
return
true
}
if
(
this
.
sample
.
thirdClass
===
''
){
this
.
$toast
(
'请输入次亚类'
)
return
true
}
if
(
this
.
sample
.
fourthClass
===
''
){
this
.
$toast
(
'请输入细类'
)
return
true
}
return
false
},
_ok
()
{
if
(
this
.
_valParams
()){
return
}
let
data
=
Object
.
assign
({},
this
.
formObj
,
{
nonNetTested
:
this
.
nonNetTested
},
{
sample
:
this
.
sample
})
data
.
sample
.
storageCondition
=
this
.
storageCondition
.
join
(
','
)
if
(
this
.
place
)
{
...
...
src/page/sampling-list/SamplingListAddNet.vue
View file @
52c4d8af
...
...
@@ -258,6 +258,46 @@
</table-col>
</table-row>
<table-row>
<table-col>
<van-field
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.firstClass"
label=
"大类"
></van-field>
</table-col>
<table-col>
<van-field
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.secondClass"
label=
"亚类"
></van-field>
</table-col>
</table-row>
<table-row>
<table-col>
<van-field
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.thirdClass"
label=
"次亚类"
></van-field>
</table-col>
<table-col>
<van-field
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.fourthClass"
label=
"细类"
></van-field>
</table-col>
</table-row>
<table-row>
<van-field
label-class=
"cus-field-class"
label-width=
"25%"
...
...
@@ -761,6 +801,10 @@
sample
:
{
trademark
:
''
,
num
:
''
,
firstClass
:
''
,
secondClass
:
''
,
thirdClass
:
''
,
fourthClass
:
''
,
type
:
''
,
typeRemak
:
''
,
source
:
''
,
...
...
@@ -823,13 +867,13 @@
this
.
formObj
[
key
]
=
result
[
key
]
}
}
for
(
let
key
in
this
.
netTested
)
{
if
(
result
.
netTested
[
key
])
{
for
(
let
key
in
this
.
netTested
)
{
if
(
result
.
netTested
[
key
])
{
this
.
netTested
=
result
.
netTested
[
key
]
}
}
for
(
let
key
in
this
.
sample
)
{
if
(
result
.
sample
[
key
])
{
for
(
let
key
in
this
.
sample
)
{
if
(
result
.
sample
[
key
])
{
this
.
sample
=
result
.
sample
[
key
]
}
}
...
...
@@ -837,7 +881,33 @@
this
.
shelfId
=
result
.
shelfId
}
},
_valParams
()
{
if
(
this
.
formObj
.
samplingNum
===
''
)
{
this
.
$toast
(
'请输入抽样单编号'
)
return
true
}
if
(
this
.
sample
.
firstClass
===
''
)
{
this
.
$toast
(
'请输入大类'
)
return
true
}
if
(
this
.
sample
.
secondClass
===
''
)
{
this
.
$toast
(
'请输入大亚类'
)
return
true
}
if
(
this
.
sample
.
thirdClass
===
''
)
{
this
.
$toast
(
'请输入次亚类'
)
return
true
}
if
(
this
.
sample
.
fourthClass
===
''
)
{
this
.
$toast
(
'请输入细类'
)
return
true
}
return
false
},
_ok
()
{
if
(
this
.
_valParams
())
{
return
}
let
data
=
Object
.
assign
({},
this
.
formObj
,
{
netTested
:
this
.
netTested
},
{
sample
:
this
.
sample
})
data
.
sample
.
storageCondition
=
this
.
storageCondition
.
join
(
','
)
if
(
this
.
place
)
{
...
...
src/page/sampling-list/SamplingListDetail.vue
View file @
52c4d8af
...
...
@@ -263,6 +263,46 @@
</table-col>
</table-row>
<table-row>
<table-col>
<van-field
readonly
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.firstClass"
label=
"大类"
></van-field>
</table-col>
<table-col>
<van-field
readonly
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.secondClass"
label=
"亚类"
></van-field>
</table-col>
</table-row>
<table-row>
<table-col>
<van-field
readonly
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.thirdClass"
label=
"次亚类"
></van-field>
</table-col>
<table-col>
<van-field
readonly
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.fourthClass"
label=
"细类"
></van-field>
</table-col>
</table-row>
<table-row>
<van-field
readonly
label-class=
"cus-field-class"
label-width=
"25%"
...
...
@@ -761,6 +801,10 @@
sample
:
{
trademark
:
''
,
qrcode
:
''
,
firstClass
:
''
,
secondClass
:
''
,
thirdClass
:
''
,
fourthClass
:
''
,
type
:
''
,
typeRemark
:
''
,
source
:
''
,
...
...
src/page/sampling-list/SamplingListDetailNet.vue
View file @
52c4d8af
...
...
@@ -258,6 +258,46 @@
</table-col>
</table-row>
<table-row>
<table-col>
<van-field
readonly
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.firstClass"
label=
"大类"
></van-field>
</table-col>
<table-col>
<van-field
readonly
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.secondClass"
label=
"亚类"
></van-field>
</table-col>
</table-row>
<table-row>
<table-col>
<van-field
readonly
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.thirdClass"
label=
"次亚类"
></van-field>
</table-col>
<table-col>
<van-field
readonly
label-class=
"cus-field-class"
label-width=
"50%"
label-align=
"center"
v-model=
"sample.fourthClass"
label=
"细类"
></van-field>
</table-col>
</table-row>
<table-row>
<van-field
readonly
label-class=
"cus-field-class"
label-width=
"25%"
...
...
@@ -761,6 +801,10 @@
sample
:
{
trademark
:
''
,
num
:
''
,
firstClass
:
''
,
secondClass
:
''
,
thirdClass
:
''
,
fourthClass
:
''
,
type
:
''
,
typeRemak
:
''
,
source
:
''
,
...
...
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