Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
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
patzn-cloud-web-back-soil
Commits
ed4e6879
Commit
ed4e6879
authored
Jun 16, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
送样流程
parent
ebfefe6c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
10 deletions
+18
-10
meter-sample.js
api/meter/meter-sample.js
+6
-0
MeterSampleFlow.vue
pages/meter-send/sample-flow/MeterSampleFlow.vue
+1
-1
transferListModal.vue
pages/meter-send/sample-flow/transferListModal.vue
+11
-9
No files found.
api/meter/meter-sample.js
View file @
ed4e6879
...
...
@@ -70,6 +70,12 @@ export default {
http
.
post
(
'meter/v1/sample/submit_report_to_check?ids='
+
data
)
.
then
(
res
=>
res
),
submitFlow
:
data
=>
https
.
post
(
'meter/v1/sample/sample_flow'
,
JSON
.
stringify
(
data
))
.
then
(
res
=>
res
),
generateReport
:
data
=>
https
.
post
(
'meter/v1/sample/report_generate'
,
JSON
.
stringify
(
data
))
...
...
pages/meter-send/sample-flow/MeterSampleFlow.vue
View file @
ed4e6879
...
...
@@ -47,7 +47,7 @@
</div>
<MeterPersonItemTaskManage
ref=
"personModal"
></MeterPersonItemTaskManage>
<personModal
ref=
"personModal"
></personModal>
<ListModal
ref=
"ListModal"
></ListModal>
<ListModal
ref=
"ListModal"
@
on-result-change=
"_page"
></ListModal>
</div>
</template>
<
script
>
...
...
pages/meter-send/sample-flow/transferListModal.vue
View file @
ed4e6879
...
...
@@ -41,9 +41,9 @@
<!--
<Input
v-model=
"scope.row.person"
name=
"person"
placeholder=
"请输入流转人"
style=
"width: 100px;"
/>
-->
<Input
v-model=
"scope.row.flower"
@
click
.
native=
"_selectStaff(scope.$index)"
readonly=
"readonly"
placeholder=
"请选择人员"
@
click
.
native=
"_selectStaff(scope.$index)"
/>
</span>
<span
v-else-if=
"item.key==='flowTime'"
>
...
...
@@ -67,7 +67,7 @@
<modal-footer
ref=
"footerModal"
:footer=
"footerList"
@
on-result-change=
"_footerResult"
/>
</div>
</Modal>
<UserInfo
ref=
"userModal"
@
on-result-change=
"_userData"
is-change
/>
<UserInfo
ref=
"userModal"
is-change
@
on-result-change=
"_userData"
/>
</div>
</template>
...
...
@@ -75,6 +75,7 @@
import
UserInfo
from
'../../../components/user-info-single/assignPerson'
// import { drugSample } from '../../api'
import
Global
from
'../../../api/config'
import
{
meterSample
}
from
'../../../api'
export
default
{
name
:
'TransferListModal'
,
...
...
@@ -185,6 +186,7 @@ export default {
const
object
=
data
[
i
]
const
obj
=
{}
// obj.sampleId = object.id
obj
.
id
=
object
.
id
obj
.
code
=
object
.
code
obj
.
name
=
object
.
name
obj
.
spec
=
object
.
spec
...
...
@@ -193,7 +195,7 @@ export default {
obj
.
flower
=
user
.
realname
obj
.
flowerId
=
user
.
userId
obj
.
flowTime
=
time
obj
.
flowQuantity
=
1
obj
.
flowQuantity
=
object
.
quantity
this
.
getPage
.
records
.
push
(
obj
)
}
// this.$refs.pageTable._initTable()
...
...
@@ -217,12 +219,12 @@ export default {
console
.
log
(
data
)
},
_flow
:
async
function
(
data
)
{
// const result = await drugSample.submitFlow({ sampleFlows
: data })
//
if (result) {
//
this.showListModal = false
//
this.$message.success('流转成功')
//
this.$emit('on-result-change')
//
}
const
result
=
await
meterSample
.
submitFlow
({
sampleVOList
:
data
})
if
(
result
)
{
this
.
showListModal
=
false
this
.
$message
.
success
(
'流转成功'
)
this
.
$emit
(
'on-result-change'
)
}
}
}
}
...
...
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