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
211252fb
Commit
211252fb
authored
Jun 11, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.patzn.com/wangweidong/pt-tobacco-lims-web
into dev
parents
429c0f43
66d5ba9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
6 deletions
+65
-6
transferListModal.vue
pages/drug-sample-flow/transferListModal.vue
+9
-5
fillResult.vue
pages/drug-test-input/data-entry/fillResult.vue
+56
-1
No files found.
pages/drug-sample-flow/transferListModal.vue
View file @
211252fb
...
...
@@ -40,8 +40,8 @@
<span
v-else-if=
"item.key==='flower'"
>
<!--
<Input
v-model=
"scope.row.person"
name=
"person"
placeholder=
"请输入流转人"
style=
"width: 100px;"
/>
-->
<Input
readonly=
"readonly"
v-model=
"scope.row.flower"
readonly=
"readonly"
placeholder=
"请选择人员"
@
click
.
native=
"_selectStaff(scope.$index)"
/>
...
...
@@ -74,6 +74,7 @@
<
script
>
import
UserInfo
from
'../../components/user-info-single/assignPerson'
import
{
drugSample
}
from
'../../api'
import
Global
from
'../../api/config'
export
default
{
name
:
'TransferListModal'
,
...
...
@@ -144,20 +145,21 @@ export default {
},
_userData
(
data
,
msg
,
index
,
contractTempData
)
{
console
.
log
(
data
)
console
.
log
(
this
.
getPage
.
records
)
// 选择人员返回数据
// 选择业务员
this
.
person
=
data
.
realname
alert
(
this
.
dataIndex
)
this
.
getPage
.
records
[
this
.
dataIndex
].
flowerId
=
data
.
userId
this
.
getPage
.
records
[
this
.
dataIndex
].
flower
=
data
.
realname
// alert(this.dataIndex)
this
.
getPage
.
records
[
this
.
dataIndex
].
flowerId
=
data
.
userId
// console.log(this.person)
// this.getPage = data
console
.
log
(
this
.
getPage
.
records
)
},
_open
(
data
)
{
this
.
showListModal
=
true
this
.
getPage
.
records
=
[]
const
length
=
data
.
length
const
user
=
Global
.
getUserInfo
()
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
const
object
=
data
[
i
]
const
obj
=
{}
...
...
@@ -166,9 +168,11 @@ export default {
obj
.
name
=
object
.
name
obj
.
groupName
=
object
.
groupName
obj
.
groupId
=
object
.
groupId
obj
.
flower
=
user
.
realname
obj
.
flowerId
=
user
.
userId
obj
.
flowQuantity
=
1
this
.
getPage
.
records
.
push
(
obj
)
}
this
.
$refs
.
pageTable
.
_initTable
()
},
_footerResult
(
msg
)
{
...
...
pages/drug-test-input/data-entry/fillResult.vue
View file @
211252fb
...
...
@@ -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,6 +606,33 @@ 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
=
{}
...
...
@@ -585,7 +640,7 @@ export default {
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