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
f67c9d17
Commit
f67c9d17
authored
Dec 03, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了收样室试验科室下拉菜单
parent
b1946a80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
+37
-2
SoilSampleItemManage.vue
...le-receive/entrust-sample-manage/SoilSampleItemManage.vue
+37
-2
No files found.
pages/soil-sample-manage/sample-receive/entrust-sample-manage/SoilSampleItemManage.vue
View file @
f67c9d17
...
...
@@ -41,6 +41,7 @@
:field=
"item.key"
:title=
"item.title"
:min-width=
"item.width?item.width:200"
:edit-render=
"item.editCell?
{autofocus: 'input'}:null"
:fixed="item.fixed?item.fixed:undefined" sortable>
<template
slot-scope=
"scope"
>
<div
v-if=
"item.detail"
>
...
...
@@ -57,6 +58,11 @@
</el-select>
<span
v-if=
"!showOption"
>
{{
scope
.
row
[
item
.
key
]
===
0
?
'否'
:
'是'
}}
</span>
</div>
<div
v-else-if=
"item.key==='groupName'"
@
click=
"_handleRow(scope)"
>
<AutoCompletes
v-model=
"scope.row.groupName"
:handle-obj=
"scope.row"
:down-data=
"groupoptions"
@
on-result-change=
"_selGroup"
style=
"editable:false"
clearable
placeholder=
"请选择试验室"
show-key=
"name"
></AutoCompletes>
</div>
<div
v-else-if=
"item.key==='status'"
>
{{
scope
.
row
[
item
.
key
].
display
}}
</div>
...
...
@@ -117,9 +123,10 @@
</template>
<
script
>
import
http
from
'../../../../api/http'
import
{
soilEntrust
}
from
'../../../../api'
import
AutoCompletes
from
'../../../../components/base/AutoCompletes'
import
{
soilAptitude
,
soilEntrust
}
from
'../../../../api'
export
default
{
components
:
{},
components
:
{
AutoCompletes
},
data
()
{
return
{
formId
:
'SampleItemManage'
,
...
...
@@ -130,6 +137,7 @@ export default {
showModal
:
false
,
modalTitle
:
'管理检测项目'
,
selectIds
:
[],
groupoptions
:
[],
itemId
:
''
,
index
:
''
,
showOption
:
true
,
...
...
@@ -145,6 +153,7 @@ export default {
pageColumns
:
[
{
title
:
'试验名称'
,
key
:
'name'
,
width
:
160
},
{
title
:
'试验项目英文简写'
,
key
:
'shortName'
,
width
:
140
},
{
title
:
'试验科室'
,
key
:
'groupName'
,
width
:
140
,
editCell
:
true
},
{
title
:
'大类'
,
key
:
'mainType'
,
width
:
140
},
{
title
:
'小类'
,
key
:
'smallType'
},
{
title
:
'检测依据'
,
key
:
'testBasis'
,
width
:
180
},
...
...
@@ -177,6 +186,31 @@ export default {
}
},
methods
:
{
_getGroupList
:
async
function
()
{
const
result
=
await
soilAptitude
.
getGroupList
()
if
(
result
)
{
this
.
groupoptions
=
result
}
},
_selGroup
(
msg
,
data
,
handleObj
)
{
console
.
log
(
handleObj
)
if
(
msg
===
'select'
)
{
this
.
getPage
.
records
[
this
.
currentIndex
].
groupName
=
data
.
name
this
.
getPage
.
records
[
this
.
currentIndex
].
groupId
=
data
.
id
const
tempData
=
{}
tempData
.
groupName
=
data
.
name
tempData
.
groupId
=
data
.
id
this
.
_editItem
(
handleObj
.
id
,
tempData
)
}
},
_editItem
:
async
function
(
id
,
obj
)
{
const
result
=
await
soilEntrust
.
editItem
({
id
:
id
,
obj
:
obj
})
if
(
result
)
{
this
.
$Message
.
success
(
'修改成功'
)
}
else
{
this
.
$Message
.
warning
(
'修改失败'
)
}
},
_selectjudgeBasis
(
id
,
index
)
{
console
.
log
(
id
)
this
.
itemId
=
id
...
...
@@ -451,6 +485,7 @@ export default {
this
.
showModal
=
true
this
.
sampleId
=
id
// 委托id
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
_getGroupList
()
this
.
_page
()
},
_openRecord
(
id
)
{
...
...
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