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
0ddb8e0d
Commit
0ddb8e0d
authored
Jun 09, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了样本管理
parent
0c38d38b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
124 additions
and
1 deletions
+124
-1
labSampleFlow.vue
pages/drug-sample-flow/tabs/labSampleFlow.vue
+5
-1
transferListModal.vue
pages/drug-sample-flow/transferListModal.vue
+119
-0
No files found.
pages/drug-sample-flow/tabs/labSampleFlow.vue
View file @
0ddb8e0d
...
@@ -96,6 +96,7 @@
...
@@ -96,6 +96,7 @@
</element-table>
</element-table>
</Col>
</Col>
</Row>
</Row>
<transferListModal
ref=
"ListModal"
/>
<!--扫码接收-->
<!--扫码接收-->
<labReceiveScan
ref=
"receiveModal"
@
on-result-change=
"_formSearch"
/>
<labReceiveScan
ref=
"receiveModal"
@
on-result-change=
"_formSearch"
/>
...
@@ -107,9 +108,10 @@
...
@@ -107,9 +108,10 @@
import
{
drugSample
}
from
'../../../api'
import
{
drugSample
}
from
'../../../api'
import
labReceiveScan
from
'../labReceiveScan'
import
labReceiveScan
from
'../labReceiveScan'
import
fileManage
from
'../../base-manage/fileManage'
import
fileManage
from
'../../base-manage/fileManage'
import
transferListModal
from
'../transferListModal'
export
default
{
export
default
{
name
:
'PreparationManage'
,
name
:
'PreparationManage'
,
components
:
{
labReceiveScan
,
fileManage
},
components
:
{
labReceiveScan
,
fileManage
,
transferListModal
},
data
()
{
data
()
{
return
{
return
{
name
:
''
,
name
:
''
,
...
@@ -184,6 +186,7 @@ export default {
...
@@ -184,6 +186,7 @@ export default {
const
result
=
await
drugSample
.
pageSampleFlow
(
data
)
const
result
=
await
drugSample
.
pageSampleFlow
(
data
)
if
(
result
)
{
if
(
result
)
{
this
.
getPage
=
result
this
.
getPage
=
result
console
.
log
(
this
.
getPage
)
this
.
$refs
.
pageTable
.
_initTable
()
this
.
$refs
.
pageTable
.
_initTable
()
}
}
},
},
...
@@ -219,6 +222,7 @@ export default {
...
@@ -219,6 +222,7 @@ export default {
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
}
else
{
}
else
{
// this._receiveByIds(ids, `确认要接收 ${ids.length} 条数据吗?`)
// this._receiveByIds(ids, `确认要接收 ${ids.length} 条数据吗?`)
this
.
$refs
.
ListModal
.
_open
(
selectData
)
}
}
},
},
_receiveByIds
(
ids
,
content
)
{
_receiveByIds
(
ids
,
content
)
{
...
...
pages/drug-sample-flow/transferListModal.vue
0 → 100644
View file @
0ddb8e0d
<
template
>
<div>
<Modal
v-model=
"showListModal"
width=
"1200px"
>
<Row>
<Col
span=
"24"
/>
<element-table
ref=
"pageTable"
:page-columns=
"pageColumns"
:table-height=
"500"
:get-page=
"getPage"
>
<el-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
show-overflow-tooltip
sortable
:prop=
"item.key"
:label=
"item.title"
:align=
"item.align"
:width=
"item.width"
:min-width=
"200"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"item.datetime"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd HH:MM:ss'
):
''
}}
</span>
<span
v-else-if=
"item.status"
>
{{
scope
.
row
[
item
.
key
].
display
}}
</span>
<span
v-else-if=
"item.key==='num'"
>
<InputNumber
v-model=
"scope.row.num"
name=
"num"
placeholder=
"请输入数量"
style=
"width: 100px;"
/>
</span>
<span
v-else-if=
"item.key==='unit'"
>
<Input
v-model=
"scope.row.unit"
name=
"unit"
placeholder=
"请输入单位"
style=
"width: 100px;"
/>
</span>
<span
v-else-if=
"item.key==='person'"
>
<Input
v-model=
"scope.row.person"
name=
"person"
placeholder=
"请输入流转人"
style=
"width: 100px;"
/>
</span>
<span
v-else-if=
"item.key==='time'"
>
<el-date-picker
v-model=
"scope.row.time"
type=
"datetime"
placeholder=
"选择日期时间"
default-time=
"12:00:00"
>
</el-date-picker>
</span>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</el-table-column>
</element-table>
</Col>
</Row>
</Modal>
</div>
</template>
<
script
>
export
default
{
name
:
'TransferListModal'
,
data
()
{
return
{
showListModal
:
false
,
getPage
:
{
records
:
[]
},
num
:
0
,
unit
:
''
,
person
:
''
,
time
:
''
,
pageColumns
:
[
{
title
:
'样本编号'
,
key
:
'sampleCode'
,
width
:
140
,
fixed
:
'left'
,
align
:
'center'
},
{
title
:
'牌号'
,
key
:
'name'
,
width
:
130
,
align
:
'center'
},
{
title
:
'检测实验室'
,
key
:
'groupName'
,
width
:
140
,
fixed
:
'left'
,
align
:
'center'
},
{
title
:
'流转数量'
,
key
:
'num'
,
width
:
130
,
align
:
'center'
},
{
title
:
'流转单位'
,
key
:
'unit'
,
width
:
180
,
align
:
'center'
},
{
title
:
'流转人'
,
key
:
'person'
,
width
:
120
,
align
:
'center'
},
{
title
:
'流转时间'
,
key
:
'time'
,
width
:
300
,
align
:
'center'
}
]
}
},
methods
:
{
_open
(
data
)
{
this
.
showListModal
=
true
console
.
log
(
data
)
this
.
getPage
.
records
=
data
console
.
log
(
123
)
console
.
log
(
this
.
getPage
)
this
.
$refs
.
pageTable
.
_initTable
()
}
}
}
</
script
>
<
style
scoped
>
</
style
>
<
style
>
.el-date-editor
.el-range-separator
{
padding
:
0px
;
}
</
style
>
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