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
cf29f055
Commit
cf29f055
authored
Jun 10, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改流转选择人员
parent
3d50a900
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
10 deletions
+76
-10
DrugSampleProductEdit.vue
pages/drug-register/product/DrugSampleProductEdit.vue
+20
-1
transferListModal.vue
pages/drug-sample-flow/transferListModal.vue
+56
-9
No files found.
pages/drug-register/product/DrugSampleProductEdit.vue
View file @
cf29f055
...
...
@@ -410,7 +410,26 @@ export default {
if
(
oMoth
.
length
<=
1
)
oMoth
=
'0'
+
oMoth
let
oDay
=
today
.
getDate
().
toString
()
if
(
oDay
.
length
<=
1
)
oDay
=
'0'
+
oDay
return
oYear
+
str
+
oMoth
+
str
+
oDay
const
hours
=
today
.
getHours
()
<
10
?
'0'
+
today
.
getHours
()
:
today
.
getHours
()
const
minutes
=
today
.
getMinutes
()
<
10
?
'0'
+
today
.
getMinutes
()
:
today
.
getMinutes
()
const
seconds
=
today
.
getSeconds
()
<
10
?
'0'
+
today
.
getSeconds
()
:
today
.
getSeconds
()
// return oYear + str + oMoth + str + oDay + hours + minutes + seconds
return
(
oYear
+
str
+
oMoth
+
str
+
oDay
+
' '
+
hours
+
':'
+
minutes
+
':'
+
seconds
)
},
_selectMaterielName
()
{
...
...
pages/drug-sample-flow/transferListModal.vue
View file @
cf29f055
...
...
@@ -10,9 +10,8 @@
:get-page=
"getPage"
>
<el-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
show-overflow-tooltip
v-for=
"(item,index) in pageColumns"
:key=
"index"
sortable
:prop=
"item.key"
:label=
"item.title"
...
...
@@ -31,18 +30,29 @@
<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;"
/>
<!--
<Input
v-model=
"scope.row.unit"
name=
"unit"
placeholder=
"请输入单位"
style=
"width: 100px;"
/>
-->
<Select
v-model=
"scope.row.unit"
>
<Option
v-for=
"item in options"
:key=
"item.name"
:value=
"item.name"
name=
"unit"
>
{{
item
.
name
}}
</Option>
</Select>
</span>
<span
v-else-if=
"item.key==='person'"
>
<Input
v-model=
"scope.row.person"
name=
"person"
placeholder=
"请输入流转人"
style=
"width: 100px;"
/>
<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"
placeholder=
"请选择人员"
@
click
.
native=
"_selectStaff(scope.$index)"
/>
</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
>
default-time=
"12:00:00"
/
>
</span>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
...
...
@@ -50,15 +60,21 @@
</
template
>
</el-table-column>
</element-table>
</Col>
</Row>
</Modal>
<UserInfo
ref=
"userModal"
is-change
@
on-result-change=
"_userData"
/>
</div>
</template>
<
script
>
import
UserInfo
from
'../../components/user-info-single/assignPerson'
export
default
{
name
:
'TransferListModal'
,
components
:
{
UserInfo
},
data
()
{
return
{
showListModal
:
false
,
...
...
@@ -66,9 +82,23 @@ export default {
records
:
[]
},
num
:
0
,
dataIndex
:
undefined
,
unit
:
''
,
person
:
''
,
salesmanId
:
''
,
salesmanPhone
:
''
,
time
:
''
,
options
:
[
{
name
:
'支'
},
{
name
:
'盒'
},
{
name
:
'条'
}
],
pageColumns
:
[
{
title
:
'样本编号'
,
...
...
@@ -92,12 +122,29 @@ export default {
width
:
180
,
align
:
'center'
},
{
title
:
'流转人'
,
key
:
'
person
'
,
width
:
120
,
align
:
'center'
},
{
title
:
'流转人'
,
key
:
'
flower
'
,
width
:
120
,
align
:
'center'
},
{
title
:
'流转时间'
,
key
:
'time'
,
width
:
300
,
align
:
'center'
}
]
}
},
methods
:
{
_selectStaff
(
index
)
{
this
.
dataIndex
=
index
console
.
log
(
index
)
this
.
$refs
.
userModal
.
_open
(
'salesman'
)
},
_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
// console.log(this.person)
// this.getPage = data
},
_open
(
data
)
{
this
.
showListModal
=
true
console
.
log
(
data
)
...
...
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