Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pt-tobacco-lims-web
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
wangweidong
pt-tobacco-lims-web
Commits
66d5ba9e
Commit
66d5ba9e
authored
Jun 10, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据录入填写结果
parent
96944537
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
2 deletions
+57
-2
fillResult.vue
pages/drug-test-input/data-entry/fillResult.vue
+57
-2
No files found.
pages/drug-test-input/data-entry/fillResult.vue
View file @
66d5ba9e
...
...
@@ -98,10 +98,13 @@
<span
v-else-if=
"item.key==='sampleQuantity'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.sampleQuantity"
type=
"number"
size=
"medium"
placeholder=
"请输入样品量"
@
keydown
.
native=
"channelInputLimit"
@
blur=
"_handleSampleQuantityEdit(scope.row.id,scope.row.sampleQuantity)"
/>
</span>
...
...
@@ -120,6 +123,22 @@
<span
v-else-if=
"item.key==='recordWriiten'"
>
{{
scope
.
row
[
item
.
key
]
===
't'
?
'是'
:
'否'
}}
</span>
<span
v-else-if=
"item.key==='failQuantity'"
>
<el-input
v-model=
"scope.row.failQuantity"
type=
"number"
@
keydown
.
native=
"channelInputLimit"
@
blur=
"_handleFailQuantityEdit(scope.row.id,scope.row.failQuantity)"
/>
</span>
<span
v-else-if=
"item.key==='deviation'"
>
<el-input
v-model=
"scope.row.deviation"
size=
"medium"
placeholder=
"请输入检测结果"
@
blur=
"_handleDeviationEdit(scope.row.id,scope.row.deviation)"
/>
</span>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</el-table-column>
...
...
@@ -277,6 +296,15 @@ export default {
}
},
methods
:
{
channelInputLimit
(
e
)
{
const
key
=
e
.
key
// 不允许输入'e'和'.'
if
(
key
===
'e'
||
key
===
'.'
)
{
e
.
returnValue
=
false
return
false
}
return
true
},
// 分配时间
_assignDateChange
(
data
)
{
this
.
formObj
.
assignDateBegin
=
data
[
0
]
...
...
@@ -578,14 +606,41 @@ export default {
}
},
_handleDeviationEdit
:
async
function
(
id
,
deviation
)
{
if
(
deviation
!==
''
&&
undefined
!==
deviation
)
{
const
data
=
{}
data
.
id
=
id
data
.
deviation
=
deviation
const
result
=
await
drugItem
.
edit
(
data
)
if
(
result
)
{
// await this._page()
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
}
}
},
_handleFailQuantityEdit
:
async
function
(
id
,
failQuantity
)
{
if
(
failQuantity
!==
''
&&
undefined
!==
failQuantity
)
{
const
data
=
{}
data
.
id
=
id
data
.
failQuantity
=
failQuantity
const
result
=
await
drugItem
.
edit
(
data
)
if
(
result
)
{
// await this._page()
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
}
}
},
_handleSampleQuantityEdit
:
async
function
(
id
,
sampleQuantity
)
{
if
(
sampleQuantity
!==
''
&&
undefined
!==
sampleQuantity
)
{
const
data
=
{}
data
.
i
temIds
=
id
data
.
i
d
=
id
data
.
sampleQuantity
=
sampleQuantity
const
result
=
await
drugItem
.
edit
(
data
)
if
(
result
)
{
await
this
.
_page
()
//
await this._page()
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
}
...
...
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