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
8c44b00e
Commit
8c44b00e
authored
Nov 10, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.patzn.com/wangweidong/pt-cloud-service-soil-web
into dev
parents
b88d9831
a04cbfa6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
498 deletions
+37
-498
ItemManage.vue
pages/soil-sample-manage/sample-take/ItemManage.vue
+22
-467
TakeBySample.vue
pages/soil-sample-manage/sample-take/TakeBySample.vue
+0
-11
TakeSampleManage.vue
pages/soil-sample-manage/sample-take/TakeSampleManage.vue
+13
-17
SampleManage.vue
...st-task-manage-his/entrust-sample-manage/SampleManage.vue
+2
-3
No files found.
pages/soil-sample-manage/sample-take/ItemManage.vue
View file @
8c44b00e
...
...
@@ -7,31 +7,31 @@
<Row>
<!--查询-->
<Col
span=
"24"
>
<Form
:label-width=
"110"
v-show=
"searchOpen
"
inline
onsubmit=
"return false"
>
<Form
v-show=
"searchOpen"
:label-width=
"110
"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<Form-item
label=
"样品编号:"
class=
"search-item"
>
<Input
@
on-enter=
"_formSearch"
v-model=
"formObj.num"
placeholder=
"请输入样品编号"
clearable
/>
<Input
v-model=
"formObj.num"
placeholder=
"请输入样品编号"
clearable
@
on-enter=
"_formSearch"
/>
</Form-item>
<Form-item
label=
"样品名称:"
class=
"search-item"
>
<Input
@
on-enter=
"_formSearch"
v-model=
"formObj.sampleName"
placeholder=
"请输入样品名称"
clearable
/>
<Input
v-model=
"formObj.sampleName"
placeholder=
"请输入样品名称"
clearable
@
on-enter=
"_formSearch"
/>
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
</Button>
</Form-item>
</Form>
</Col>
<!--操作-->
<Col
span=
"24"
>
<btn-list
:msg=
"btn"
@
on-result-change=
"_btnClick"
:show-search-btn=
"true"
class=
"contHide
"
>
<btn-list
:msg=
"btn"
:show-search-btn=
"true"
class=
"contHide"
@
on-result-change=
"_btnClick
"
>
</btn-list>
</Col>
<!-- 表格 -->
<Col
span=
"24"
>
<PTVXETable
ref=
"pageTable"
:tableHeight=
"tableHeight"
@
on-result-change=
"_tableResultChange"
:getPage=
"getPage"
ref=
"pageTable"
:table-height=
"tableHeight"
:get-page=
"getPage"
is-group
select-data
>
select-data
@
on-result-change=
"_tableResultChange"
>
<vxe-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
...
...
@@ -54,21 +54,21 @@
<div
v-else-if=
"item.key==='qualified'"
>
{{
scope
.
row
.
qualified
?
scope
.
row
.
qualified
.
display
:
''
}}
</div>
<!--科室 start-->
<div
v-else-if=
"item.key==='groupName'"
>
<el-select
v-model=
"scope.row.groupName"
@
change=
"_groupChange"
@
click
.
native
.
stop=
"_handleRow(scope)
"
transfer
size=
"small
"
>
<el-option
:label=
"item.name"
:value=
"item.name"
v-for=
"item in groupData
"
:
key
=
"item.name"
></el-option>
<el-select
v-model=
"scope.row.groupName"
transfer
size=
"small
"
@
change=
"_groupChange"
@
click
.
native
.
stop=
"_handleRow(scope)
"
>
<el-option
v-for=
"item in groupData"
:key=
"item.name"
:label=
"item.name
"
:
value
=
"item.name"
></el-option>
</el-select>
</div>
<!--科室 end-->
<!--检测依据简称 start-->
<div
v-else-if=
"item.key==='testBasisSm'"
>
<el-select
v-model=
"scope.row.testBasisSm"
@
change=
"_saveTestBasisSm(scope)"
placeholder=
"请选择检测依据简称"
size=
"small"
style=
"width:100%"
>
style=
"width:100%"
@
change=
"_saveTestBasisSm(scope)"
>
<el-option
v-for=
"item in testBasisSmList"
:key=
"item"
...
...
@@ -77,23 +77,6 @@
</el-option>
</el-select>
</div>
<!--检测依据简称 end-->
<!--检测依据名+号 start-->
<div
v-else-if=
"item.key==='testBasisAndName'"
>
<AutoCompletesTestBasis
:value=
"scope.row.testBasisAndName"
:downData=
"testBasisData"
@
on-result-change=
"_testBasisChange"
:handleObj=
"scope"
placeholder=
"请选择检测依据"
focus
blur
></AutoCompletesTestBasis>
</div>
<!--检测依据名+号 end-->
<!--检测方法 start-->
<div
v-else-if=
"item.key==='testMethod'"
>
<AutoCompletes
:value=
"scope.row.testMethod"
:downData=
"testMethodData"
@
on-result-change=
"_testMethodChange"
:handleObj=
"scope"
placeholder=
"请选择检测方法"
focus
blur
show-key=
"testMethod"
></AutoCompletes>
</div>
<!--检测方法 end-->
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
</
template
>
<
template
slot-scope=
"scope"
>
...
...
@@ -148,7 +131,10 @@ export default {
// {type: '', id: 'food-sampling-list-reset-sc-id', name: '重置省局ID',},
],
sampleId
:
''
,
formObj
:
{},
formObj
:
{
groupId
:
undefined
,
sampleId
:
undefined
},
receiveDateList
:
[],
ctimeList
:
[],
samplingDateList
:
[],
...
...
@@ -211,185 +197,7 @@ export default {
}
})
},
// 方法简称(只是这个界面同批量的方法一样)
_saveTestBasisSm
(
data
)
{
this
.
currentRow
=
data
.
row
this
.
$store
.
dispatch
(
'FoodItem/assignmentAbbreviation'
,
{
ids
:
this
.
currentRow
.
id
,
abbreviation
:
this
.
currentRow
.
testBasisSm
})
.
then
(()
=>
{
const
result
=
this
.
$store
.
state
.
FoodItem
.
success
if
(
result
)
{
// 不要刷新表格,只刷新当前行数据
this
.
$store
.
dispatch
(
'FoodItem/getItemByContract'
,
{
id
:
this
.
currentRow
.
id
,
contractId
:
this
.
formObj
.
contractId
,
page
:
1
,
rows
:
1
,
qced
:
0
})
.
then
(()
=>
{
const
newObj
=
this
.
$store
.
state
.
FoodItem
.
page
.
records
if
(
newObj
&&
newObj
.
length
>
0
)
{
this
.
$set
(
this
.
currentRow
,
'testBasisAndName'
,
newObj
[
0
].
testBasisAndName
?
newObj
[
0
].
testBasisAndName
:
''
)
this
.
$set
(
this
.
currentRow
,
'testBasisId'
,
newObj
[
0
].
testBasisId
?
newObj
[
0
].
testBasisId
:
''
)
this
.
$set
(
this
.
currentRow
,
'testBasisName'
,
newObj
[
0
].
testBasisName
?
newObj
[
0
].
testBasisName
:
''
)
this
.
$set
(
this
.
currentRow
,
'testBasis'
,
newObj
[
0
].
testBasis
?
newObj
[
0
].
testBasis
:
''
)
this
.
$set
(
this
.
currentRow
,
'testMethod'
,
newObj
[
0
].
testMethod
?
newObj
[
0
].
testMethod
:
''
)
this
.
$set
(
this
.
currentRow
,
'groupName'
,
newObj
[
0
].
groupName
?
newObj
[
0
].
groupName
:
''
)
this
.
$set
(
this
.
currentRow
,
'groupId'
,
newObj
[
0
].
groupId
?
newObj
[
0
].
groupId
:
''
)
}
})
}
})
},
// 获取检测依据
_testBasisList
(
data
)
{
const
obj
=
{}
if
(
this
.
currentRow
.
name
)
{
obj
.
name
=
this
.
currentRow
.
name
}
else
{
// 没有填检测项目检测依据的下拉就为空
this
.
testBasisData
=
[]
return
}
if
(
data
)
{
obj
.
testBasis
=
data
}
this
.
$store
.
dispatch
(
'FoodAptitudeItem/getTestBasis'
,
obj
).
then
(()
=>
{
this
.
testBasisData
=
this
.
$store
.
state
.
FoodAptitudeItem
.
list
})
},
// 检测依据结果
_testBasisChange
(
msg
,
data
,
handleObj
)
{
this
.
_handleRow
(
handleObj
)
switch
(
msg
)
{
case
'select'
:
this
.
currentRow
.
testBasisAndName
=
data
.
testBasis
+
' '
+
data
.
testBasisName
this
.
currentRow
.
testBasis
=
data
.
testBasis
this
.
currentRow
.
testBasisId
=
data
.
stdId
this
.
currentRow
.
testBasisName
=
data
.
testBasisName
this
.
currentRow
.
groupId
=
data
.
groupId
?
data
.
groupId
:
this
.
groupData
[
0
].
id
this
.
currentRow
.
groupName
=
data
.
groupName
?
data
.
groupName
:
this
.
groupData
[
0
].
name
this
.
_save
()
break
case
'query'
:
this
.
currentRow
.
testBasisAndName
=
data
// 只要搜索就清空已填的值
this
.
currentRow
.
testBasisName
=
''
this
.
currentRow
.
testBasisId
=
''
this
.
currentRow
.
testBasis
=
''
this
.
_testBasisList
(
data
)
break
case
'focus'
:
this
.
_testBasisList
()
break
case
'blur'
:
// 如果没有依据,则清空
if
(
this
.
currentRow
.
testBasisId
===
''
)
{
this
.
currentRow
.
testBasisAndName
=
''
}
this
.
_save
()
break
}
},
// 获取检测方法
_testMethodList
(
testMethod
)
{
const
obj
=
{}
if
(
this
.
currentRow
.
name
&&
this
.
currentRow
.
testBasisId
)
{
obj
.
name
=
this
.
currentRow
.
name
obj
.
stdId
=
this
.
currentRow
.
testBasisId
}
else
{
this
.
testMethodData
=
[]
return
}
if
(
testMethod
)
{
obj
.
testMethod
=
testMethod
}
this
.
$store
.
dispatch
(
'FoodAptitudeItem/getTestMethod'
,
obj
).
then
(()
=>
{
this
.
testMethodData
=
this
.
$store
.
state
.
FoodAptitudeItem
.
list
})
},
// 检测方法结果
_testMethodChange
(
msg
,
data
,
handleObj
)
{
this
.
_handleRow
(
handleObj
)
switch
(
msg
)
{
case
'select'
:
this
.
$set
(
this
.
currentRow
,
'testMethod'
,
data
.
testMethod
)
// testMethodTemp 临时存在
this
.
$set
(
this
.
currentRow
,
'testMethodTemp'
,
data
.
testMethod
)
// 查询科室
this
.
$store
.
dispatch
(
'FoodAptitudeItem/getGroupInfo'
,
{
name
:
this
.
currentRow
.
name
,
stdId
:
this
.
currentRow
.
testBasisId
,
testMethod
:
this
.
currentRow
.
testMethod
})
.
then
(()
=>
{
const
groupObj
=
this
.
$store
.
state
.
FoodAptitudeItem
.
model
this
.
$set
(
this
.
currentRow
,
'groupId'
,
groupObj
.
groupId
)
this
.
$set
(
this
.
currentRow
,
'groupName'
,
groupObj
.
groupName
)
this
.
_save
()
})
break
case
'query'
:
this
.
$set
(
this
.
currentRow
,
'testMethod'
,
data
.
testMethod
)
this
.
$set
(
this
.
currentRow
,
'testMethodTemp'
,
''
)
this
.
_testMethodList
(
data
.
testMethod
)
break
case
'focus'
:
this
.
_testMethodList
()
break
case
'blur'
:
// 只能选择检测方法
if
(
this
.
currentRow
.
testMethodTemp
===
''
||
this
.
currentRow
.
testMethodTemp
===
undefined
)
{
this
.
$set
(
this
.
currentRow
,
'testMethod'
,
''
)
}
this
.
_save
()
break
}
},
// 抽样日期
_samplingDateChange
(
data
)
{
this
.
formObj
.
samplingDateBegin
=
data
[
0
]
...
...
@@ -407,10 +215,6 @@ export default {
},
_tableResultChange
(
msg
,
data
)
{
switch
(
msg
)
{
case
'page'
:
this
.
getPage
=
this
.
$store
.
state
.
FoodItem
.
page
this
.
selectIds
=
[]
break
case
'selectData'
:
const
selectIds
=
[]
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
...
...
@@ -426,201 +230,16 @@ export default {
},
_btnClick
(
msg
)
{
switch
(
msg
)
{
case
'匹配省抽项目'
:
this
.
_matchItem
()
break
case
'删除'
:
this
.
_deleteSelected
()
break
case
'选择依据简称'
:
this
.
_selTestBasisSm
()
break
case
'重置省局ID'
:
this
.
_resetScId
()
break
case
'终止'
:
this
.
_operateItem
(
msg
)
break
case
'恢复终止项目'
:
this
.
_operateItem
(
msg
)
break
case
'search'
:
this
.
searchOpen
=
!
this
.
searchOpen
break
}
},
// 恢复、终止
_operateItem
(
name
)
{
const
ids
=
this
.
selectIds
if
(
ids
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
}
else
if
(
name
===
'终止'
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定要'
+
name
+
'这 '
+
ids
.
length
+
' 条项目?'
,
onOk
:
()
=>
{
this
.
$refs
.
reasonModal
.
_open
(
'终止原因'
)
}
})
}
else
if
(
name
===
'恢复终止项目'
)
{
this
.
$store
.
dispatch
(
'FoodItem/restoreVerification'
,
{
ids
:
this
.
selectIds
.
join
(
','
)
})
.
then
(()
=>
{
const
result
=
this
.
$store
.
state
.
FoodItem
.
success
this
.
_restore
(
result
)
})
}
},
// 终止项目恢复
_restore
(
result
)
{
if
(
result
!==
''
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
result
,
onOk
:
()
=>
{
this
.
$store
.
dispatch
(
'FoodItem/projectRestore'
,
{
ids
:
this
.
selectIds
.
join
(
','
),
contractId
:
this
.
formObj
.
contractId
,
deleteReport
:
1
})
.
then
(()
=>
{
this
.
_resultChange
(
'恢复成功!'
)
})
}
})
}
else
{
this
.
$store
.
dispatch
(
'FoodItem/projectRestore'
,
{
ids
:
this
.
selectIds
.
join
(
','
),
contractId
:
this
.
formObj
.
contractId
,
deleteReport
:
0
})
.
then
(()
=>
{
this
.
_resultChange
(
'恢复成功!'
)
})
}
},
// 原因返回的结果
_reasonResult
(
data
,
msg
)
{
const
temp
=
{
reason
:
data
,
ids
:
this
.
selectIds
.
join
(
','
),
contractId
:
this
.
formObj
.
contractId
}
if
(
msg
===
'终止原因'
)
{
this
.
$store
.
dispatch
(
'FoodItem/archivesStop'
,
temp
).
then
(()
=>
{
this
.
_resultChange
(
'终止成功!'
)
})
}
},
_resetScId
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'请确认是否重置整个任务下所有检测项目的省局ID?'
,
onOk
:
()
=>
{
this
.
_resetScIdOk
()
}
})
}
else
{
this
.
_resetScIdOk
()
}
},
_resetScIdOk
()
{
const
obj
=
{
contractId
:
this
.
formObj
.
contractId
}
if
(
this
.
selectIds
.
length
)
{
obj
.
ids
=
this
.
selectIds
.
join
(
','
)
}
this
.
$store
.
dispatch
(
'FoodItem/resetProvinceItemId'
,
obj
).
then
(()
=>
{
if
(
this
.
$store
.
state
.
FoodItem
.
success
)
{
this
.
$Message
.
success
(
'操作成功!'
)
this
.
_page
()
}
})
},
// 选择检测依据简称
_selTestBasisSm
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条检测项目!'
)
}
else
{
this
.
$store
.
dispatch
(
'FoodItem/listAbbreviationByItem'
,
{
ids
:
this
.
selectIds
.
join
(
','
)
})
.
then
(()
=>
{
const
result
=
this
.
$store
.
state
.
FoodItem
.
list
// 弹出选择框
this
.
$refs
.
basisSmModal
.
_open
(
this
.
selectIds
,
result
)
})
}
},
_matchItem
()
{
const
list
=
this
.
selectData
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
const
obj
=
this
.
selectData
.
find
(
item
=>
item
.
name
!==
list
[
i
].
name
)
if
(
obj
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'一次只能手动匹配同一分类下的同一项目,您选中的检测项目名称不同,是否继续?'
,
onOk
:
()
=>
{
this
.
$refs
.
matchModal
.
_open
(
this
.
selectIds
,
this
.
formObj
.
contractId
)
}
})
return
}
}
this
.
$refs
.
matchModal
.
_open
(
this
.
selectIds
,
this
.
formObj
.
contractId
)
},
_matchChange
(
msg
)
{
switch
(
msg
)
{
case
'page'
:
this
.
_page
()
break
case
'manual'
:
this
.
$refs
.
tabModal
.
_open
(
this
.
formObj
.
contractId
,
this
.
selectIds
,
this
.
selectData
[
0
].
samplingNum
,
this
.
selectData
[
0
].
provinceClassifyId
)
break
}
},
_deleteSelected
()
{
// 批量删除
const
ids
=
this
.
selectIds
if
(
ids
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请选择一条或多条数据!'
)
}
else
{
this
.
_deleteByIds
(
ids
,
'确定删除 '
+
ids
.
length
+
' 条记录?'
)
}
},
_deleteByIds
(
ids
,
content
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
content
,
onOk
:
()
=>
{
this
.
$store
.
dispatch
(
'FoodItem/deleteItemByIds'
,
{
ids
:
ids
.
join
(
','
)
})
.
then
(()
=>
{
this
.
_resultChange
(
'删除成功!'
)
})
}
})
},
_resultChange
(
msg
)
{
if
(
this
.
$store
.
state
.
FoodItem
.
success
)
{
this
.
_page
()
this
.
$Message
.
success
(
msg
)
this
.
selectIds
=
[]
this
.
$emit
(
'on-result-change'
)
}
},
_formSearch
()
{
...
...
@@ -639,79 +258,15 @@ export default {
console
.
log
(
result
)
}
},
_open
(
id
,
type
)
{
_open
(
id
,
groupId
)
{
this
.
sampleId
=
id
this
.
formObj
=
this
.
$resetFields
(
this
.
formObj
)
this
.
type
=
type
this
.
formObj
.
sampleId
=
id
this
.
formObj
.
groupId
=
groupId
this
.
showModal
=
true
this
.
currentRow
=
{}
this
.
selectGroupData
=
[]
this
.
_page
()
},
_detailModal
(
id
)
{
this
.
$store
.
dispatch
(
'FoodSample/getByGovernId'
,
id
).
then
(()
=>
{
this
.
$refs
.
governSampleDetail
.
_open
(
this
.
$store
.
state
.
FoodSample
.
governModel
)
})
},
// 保存 除结果判定(除手工判定)
_save
()
{
let
tempBool
=
true
setTimeout
(()
=>
{
if
(
tempBool
)
{
this
.
$refs
.
pageTable
.
_showLoading
()
}
},
1500
)
const
item
=
this
.
currentRow
const
obj
=
{
unit
:
item
.
unit
,
testMethod
:
item
.
testMethod
,
limitDefault
:
item
.
limitDefault
,
limitValue
:
item
.
limitValue
,
compareSymbol
:
item
.
compareSymbol
,
limitType
:
item
.
limitType
,
judged
:
item
.
judged
,
detection
:
item
.
detection
,
labRemark
:
item
.
labRemark
,
microbeN
:
item
.
microbeN
?
item
.
microbeN
:
0
,
microbeC
:
item
.
microbeC
?
item
.
microbeC
:
0
,
microbeM
:
item
.
microbeM
?
item
.
microbeM
:
0
,
microbeBm
:
item
.
microbeBm
?
item
.
microbeBm
:
0
,
qualified
:
item
.
qualified
.
value
,
subClass
:
item
.
subClass
,
testBasisSm
:
item
.
testBasisSm
,
testBasisName
:
item
.
testBasisName
,
testBasis
:
item
.
testBasis
,
singleConclusion
:
item
.
singleConclusion
,
groupId
:
item
.
groupId
,
groupName
:
item
.
groupName
}
if
(
item
.
testBasisId
)
{
obj
.
testBasisId
=
item
.
testBasisId
}
if
(
item
.
judgeBasisId
)
{
obj
.
judgeBasisId
=
item
.
judgeBasisId
obj
.
judgeBasis
=
item
.
judgeBasis
obj
.
judgeBasisName
=
item
.
judgeBasisName
}
else
{
obj
.
judgeBasis
=
item
.
judgeBasis
obj
.
judgeBasisName
=
item
.
judgeBasisName
}
const
data
=
{
id
:
item
.
id
,
obj
:
obj
}
this
.
$store
.
dispatch
(
'FoodItem/itemEdit'
,
data
).
then
(()
=>
{
if
(
this
.
$store
.
state
.
FoodItem
.
success
)
{
tempBool
=
false
this
.
$refs
.
pageTable
.
_hideLoading
()
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
tempBool
=
false
this
.
$refs
.
pageTable
.
_hideLoading
()
}
})
}
}
}
...
...
pages/soil-sample-manage/sample-take/TakeBySample.vue
View file @
8c44b00e
...
...
@@ -114,23 +114,12 @@ export default {
id
:
'rel-sample-receive-del-sample'
,
name
:
'删除'
},
copy
:
{
type
:
'ios-copy'
,
id
:
'rel-sample-receive-copy-sample'
,
name
:
'复制'
},
record
:
{
type
:
'ios-clock'
,
id
:
''
,
name
:
'操作日志'
,
componentName
:
'FoodSampleRecord'
},
sampleDownloadContract
:
{
type
:
'share'
,
id
:
'food-sample-receive-sample-download-contract'
,
name
:
'导出委托协议'
},
getPage
:
{},
pageColumns
:
[
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
130
},
...
...
pages/soil-sample-manage/sample-take/TakeSampleManage.vue
View file @
8c44b00e
<
template
>
<div>
<Modal
v-model=
"showSampleModal"
@
on-visible-change=
"_visibleChange
"
width=
"1100"
class=
"zIndex-900 modal-footer-non
e"
>
<Modal
v-model=
"showSampleModal"
width=
"1100
"
class=
"zIndex-900 modal-footer-none"
@
on-visible-change=
"_visibleChang
e"
>
<div>
<!--内容-->
<Row>
<!--查询-->
<Col
span=
"24"
style=
"padding-bottom: 5px"
>
<Form
id=
"search-wait"
v-show=
"searchOpen
"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<Form
v-show=
"searchOpen"
id=
"search-wait
"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<Form-item
label=
"试样编号:"
class=
"search-item"
>
<Input
v-model=
"formObj.sampleCode"
@
on-enter=
"_formSearch"
name=
"sampleCode"
placeholder=
"请输入样品编号"
clearable
></Input>
<Input
v-model=
"formObj.sampleCode"
name=
"sampleCode"
placeholder=
"请输入样品编号"
clearable
@
on-enter=
"_formSearch"
></Input>
<input
name=
"contractId"
type=
"hidden"
>
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
</Button>
</Form-item>
</Form>
</Col>
<Col
span=
"24"
>
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
@
on-result-change=
"_btnClick"
class=
"contHide
"
>
<btn-list
:msg=
"btn"
:open=
"searchOpen"
:show-search-btn=
"true"
class=
"contHide"
@
on-result-change=
"_btnClick
"
>
<!--
<template
slot=
"processTask"
>
-->
<!--
<div
class=
"fr process-task"
>
-->
<!--
<Button
@
click=
"_exportReceiveRecord"
>
导出交接记录
</Button>
-->
...
...
@@ -33,8 +33,8 @@
:table-height=
"tableHeight"
:get-page=
"getPage"
:icon-msg=
"iconMsg"
@
on-result-change=
"_tableResultChange"
select-data
>
select-data
@
on-result-change=
"_tableResultChange"
>
<vxe-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
...
...
@@ -76,8 +76,8 @@ export default {
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
100
,
fixed
:
'left'
},
{
title
:
'试样深度'
,
key
:
'sampleDepth'
,
width
:
95
},
{
title
:
'检测科室'
,
key
:
'groupName'
,
width
:
95
},
{
title
:
'土质描述'
,
key
:
'
sampleDescribe'
,
width
:
1
85
},
{
title
:
'样品描述'
,
key
:
'
describeDetail'
,
width
:
185
},
{
title
:
'土质描述'
,
key
:
'
describeDetail'
,
width
:
2
85
},
{
title
:
'样品描述'
,
key
:
'
sampleDescribe'
,
width
:
130
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
120
},
{
title
:
'样品制备人'
,
key
:
'preparer'
,
width
:
120
},
{
title
:
'样品制备时间'
,
key
:
'prepareDate'
,
width
:
135
,
date
:
true
}
...
...
@@ -213,7 +213,7 @@ export default {
this
.
_editModal
(
true
,
data
)
break
case
'试验项目'
:
this
.
_itemManage
(
data
.
sampleId
)
this
.
_itemManage
(
data
.
sampleId
,
data
.
groupId
)
break
case
'复制'
:
this
.
_copySample
(
data
)
...
...
@@ -230,13 +230,9 @@ export default {
}
})
},
_itemManage
(
data
)
{
_itemManage
(
sampleId
,
groupId
)
{
// 管理检测项目
if
(
this
.
recordHis
)
{
this
.
$refs
.
sampleItemManage
.
_openRecord
(
data
)
}
else
{
this
.
$refs
.
ItemManage
.
_open
(
data
)
}
this
.
$refs
.
ItemManage
.
_open
(
sampleId
,
groupId
)
},
_btnClick
(
msg
,
currentComponent
)
{
this
.
currentComponent
=
currentComponent
...
...
pages/soil-test-manage/test-task-manage-his/entrust-sample-manage/SampleManage.vue
View file @
8c44b00e
...
...
@@ -43,12 +43,11 @@ export default {
},
methods
:
{
_open
(
contractId
,
type
,
name
)
{
this
.
type
=
type
// 类型(采样或送样)
this
.
type
=
type
this
.
name
=
name
this
.
showSampleModal
=
true
this
.
entrustId
=
contractId
// 合同id
this
.
entrustId
=
contractId
this
.
activeName
=
'waitReceive'
// this.currentComponent = 'waitScan'
this
.
selectIds
=
[]
this
.
_waitPage
()
},
...
...
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