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
f3c10eaf
Commit
f3c10eaf
authored
Sep 17, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了试验委托评审
parent
a11084b0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
89 additions
and
67 deletions
+89
-67
soil-entrust.js
api/soil/soil-entrust.js
+2
-0
SampleItemSelect.vue
pages/meter-aptitude/standard-manage/SampleItemSelect.vue
+34
-32
EntrustRegister.vue
pages/meter-entrust/entrust-register/EntrustRegister.vue
+5
-0
EntrustRegisterEdit.vue
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
+45
-33
ReviewEntrust.vue
pages/meter-entrust/entrust-review/ReviewEntrust.vue
+3
-2
No files found.
api/soil/soil-entrust.js
View file @
f3c10eaf
...
...
@@ -8,6 +8,8 @@ import { https } from '../https'
export
default
{
// page
page
:
data
=>
http
.
post
(
'soil/v1/entrust/page'
,
data
).
then
(
res
=>
res
),
pageReview
:
data
=>
http
.
post
(
'soil/v1/entrust/page_review'
,
data
).
then
(
res
=>
res
),
getById
:
data
=>
http
.
get
(
'soil/v1/entrust/'
+
data
).
then
(
res
=>
res
),
getVOById
:
data
=>
http
.
get
(
'soil/v1/entrust/vo/'
+
data
).
then
(
res
=>
res
),
deleteById
:
data
=>
...
...
pages/meter-aptitude/standard-manage/SampleItemSelect.vue
View file @
f3c10eaf
...
...
@@ -4,21 +4,21 @@
<Modal
v-model=
"showModal"
:mask-closable=
"false"
:width=
"690"
title=
"检测项目管理"
:width=
"1200"
>
<Row>
<Col
span=
"24"
>
<Form
v-model=
"formObj"
inline
onsubmit=
"return false"
:label-width=
"90
"
>
<Form
v-model=
"formObj"
:label-width=
"90"
inline
onsubmit=
"return false
"
>
<Form-item
class=
"search-item"
label=
"检测项目:"
style=
"margin-left: -25px"
>
<Input
v-model=
"formObj.name"
placeholder=
"请输入检测项目"
clearable
@
on-enter=
"_formSearch"
/>
<Input
v-model=
"formObj.name"
@
on-enter=
"_formSearch"
placeholder=
"请输入检测项目"
clearable
/>
<input
v-model=
"formObj.catalogueId"
type=
"hidden"
>
</Form-item>
<!--
<Form-item
class=
"search-item"
label=
"检测依据:"
>
-->
<!--
<Input
v-model=
"formObj.code"
placeholder=
"请输入检测依据名称"
clearable
@
on-enter=
"_formSearch"
/>
-->
<!--
</Form-item>
-->
<Form-item
class=
"search-btn"
>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
</Form-item>
...
...
@@ -33,23 +33,23 @@
<element-table
ref=
"pageTable"
:page-columns=
"pageColumns"
select-data
:table-height=
"350"
:get-page=
"getPage"
:icon-msg=
"iconMsg"
:opt-col-width=
"80"
show-check-box
@
on-result-change=
"_tableResultChange"
select-data
show-check-box
>
<el-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
show-overflow-tooltip
sortable
:prop=
"item.key"
:label=
"item.title"
:width=
"item.width"
:min-width=
"200"
show-overflow-tooltip
sortable
>
<template
slot-scope=
"scope"
>
<span
v-if=
"item.key==='judged'"
>
...
...
@@ -80,7 +80,7 @@
blur
placeholder=
"请选择检测依据"
/>
<i
style=
"cursor: pointer;font-size: 14px;"
class=
"icons iconfont pt-search icon-search"
@
click
.
stop=
"_selectjudgeBasis(scope.$index)
"
></i>
<i
@
click
.
stop=
"_selectjudgeBasis(scope.$index)"
style=
"cursor: pointer;font-size: 14px;"
class=
"icons iconfont pt-search icon-search
"
></i>
</div>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
...
...
@@ -97,6 +97,8 @@
</div>
</template>
<
script
>
import
{
soilAptitude
}
from
'../../../api'
export
default
{
components
:
{},
data
()
{
...
...
@@ -118,18 +120,18 @@ export default {
{
id
:
''
,
name
:
'保存'
,
type
:
'primary'
}
],
pageColumns
:
[
{
title
:
'
项目类别'
,
key
:
'typ
e'
,
width
:
140
},
{
title
:
'
检测项目'
,
key
:
'nam
e'
,
width
:
140
},
{
title
:
'
子项目'
,
key
:
'sonItem
'
,
width
:
140
},
{
title
:
'方法'
,
key
:
'
method'
,
width
:
180
},
{
title
:
'设备'
,
key
:
'device'
,
width
:
180
},
{
title
:
'检测依据'
,
key
:
'code'
,
width
:
180
},
{
title
:
'检测科室'
,
key
:
'groupName'
,
width
:
110
},
{
title
:
'比较符'
,
key
:
'compareSymbol'
,
width
:
120
},
{
title
:
'限值'
,
key
:
'limitValue'
},
{
title
:
'单位'
,
key
:
'unit'
},
{
title
:
'是否系统判定'
,
key
:
'judged'
,
width
:
120
,
judged
:
true
},
{
title
:
'备注'
,
key
:
'remark'
}
{
title
:
'
试验名称'
,
key
:
'nam
e'
,
width
:
140
},
{
title
:
'
大类'
,
key
:
'mainTyp
e'
,
width
:
140
},
{
title
:
'
小类'
,
key
:
'smallType
'
,
width
:
140
},
{
title
:
'方法'
,
key
:
'
testMethod'
,
width
:
180
}
//
{ title: '设备', key: 'device', width: 180 },
//
{ title: '检测依据', key: 'code', width: 180 },
//
{ title: '检测科室', key: 'groupName', width: 110 },
//
{ title: '比较符', key: 'compareSymbol', width: 120 },
//
{ title: '限值', key: 'limitValue' },
//
{ title: '单位', key: 'unit' },
//
{ title: '是否系统判定', key: 'judged', width: 120, judged: true },
//
{ title: '备注', key: 'remark' }
],
catalogueId
:
''
,
getPage
:
{},
...
...
@@ -144,7 +146,7 @@ export default {
this
.
formObj
.
catalogueId
=
catalogueId
this
.
getPage
.
records
=
[]
this
.
$refs
.
pageTable
.
_hideLoading
()
//
this._page()
this
.
_page
()
// if (catalogueId) {
// this._page()
// }
...
...
@@ -180,16 +182,16 @@ export default {
break
}
},
//
_page: async function() {
// Object.assign(this.formObj, this.$refs.pageTable._searchParams()
)
// const result = await aptitudeItem.pageAptitudeItem(
// this.$serializeForm(this.formObj
)
// )
// if (result) {
//
this.getPage = result
// this.$refs.pageTable._initTable
()
//
}
//
},
_page
:
async
function
()
{
// this.$refs.pageTable._page('search-form-package', 'FoodJudgeBasis/page'
)
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
const
result
=
await
soilAptitude
.
page
(
this
.
$serializeForm
(
this
.
formObj
)
)
if
(
result
)
{
console
.
log
(
result
)
this
.
getPage
=
result
this
.
$refs
.
pageTable
.
_hideLoading
()
}
},
_btnClick
(
msg
)
{
switch
(
msg
)
{
case
'导入检测项目'
:
...
...
pages/meter-entrust/entrust-register/EntrustRegister.vue
View file @
f3c10eaf
...
...
@@ -87,6 +87,11 @@ export default {
id
:
''
,
name
:
'编辑'
},
{
type
:
'ios-list'
,
id
:
''
,
name
:
'试验列表'
},
// {
// type: 'ios-beaker',
// id: '',
...
...
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
View file @
f3c10eaf
...
...
@@ -79,6 +79,14 @@
<el-input
v-model=
"scope.row.sampleDescribe"
blur
placeholder=
"请输入土质描述"
></el-input>
</div>
<div
v-else-if=
"item.key==='itemNames'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.itemNames"
blur
placeholder=
"试验项目"
readonly
/>
</div>
<div
v-else
@
click
.
stop=
"_handleRow(scope)"
>
<span>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</div>
...
...
@@ -166,6 +174,7 @@ export default {
pageColumns
:
[
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
140
},
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
140
},
{
title
:
'试验项目'
,
key
:
'itemNames'
,
width
:
140
},
{
title
:
'试样深度'
,
key
:
'sampleDepth'
,
width
:
140
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
150
},
{
title
:
'土质描述'
,
key
:
'sampleDescribe'
}
...
...
@@ -205,6 +214,7 @@ export default {
formObj
:
{},
selectIds
:
[],
indexList
:
[],
itemList
:
[],
ruleValidate
:
{
client
:
[
{
...
...
@@ -267,38 +277,38 @@ export default {
methods
:
{
_itemImportBack
(
data
)
{
console
.
log
(
'传过来的数据'
,
data
)
//
for (let i = 0; i
<
data
.
length
;
i
++
)
{
//
data[i].id = undefined
//
}
//
const info = data
//
console.log('去掉id后的data', info)
//
for (let i = 0; i
<
this
.
indexList
.
length
;
i
++
)
{
//
const index = this.indexList[i]
// if (this.getPage.records[index].drugItem
List !== undefined) {
//
const name = []
// this.itemList = this.getPage.records[index].drugItem
List
//
name.push(this.getPage.records[index].itemNames)
//
for (let i = 0; i
<
info
.
length
;
i
++
)
{
//
console.log(this.getPage.records[index].itemNames[i])
//
this.itemList.push(info[i])
//
name.push(info[i].name)
//
}
//
this.getPage.records[index].itemNames = name.join('、')
// this.getPage.records[index].drugItem
List = this.itemList
//
this.$set(this.getPage.records, index, this.getPage.records[index])
//
} else {
//
const name = []
//
this.itemList = []
//
for (let i = 0; i
<
info
.
length
;
i
++
)
{
//
this.itemList.push(info[i])
//
name.push(info[i].name)
//
}
//
this.getPage.records[index].itemNames = name.join('、')
// this.getPage.records[index].drugItem
List = this.itemList
//
this.$set(this.getPage.records, index, this.getPage.records[index])
//
}
//
}
//
console.log(this.getPage.records)
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
data
[
i
].
id
=
undefined
}
const
info
=
data
console
.
log
(
'去掉id后的data'
,
info
)
for
(
let
i
=
0
;
i
<
this
.
indexList
.
length
;
i
++
)
{
const
index
=
this
.
indexList
[
i
]
if
(
this
.
getPage
.
records
[
index
].
experiment
List
!==
undefined
)
{
const
name
=
[]
this
.
itemList
=
this
.
getPage
.
records
[
index
].
experiment
List
name
.
push
(
this
.
getPage
.
records
[
index
].
itemNames
)
for
(
let
i
=
0
;
i
<
info
.
length
;
i
++
)
{
console
.
log
(
this
.
getPage
.
records
[
index
].
itemNames
[
i
])
this
.
itemList
.
push
(
info
[
i
])
name
.
push
(
info
[
i
].
name
)
}
this
.
getPage
.
records
[
index
].
itemNames
=
name
.
join
(
'、'
)
this
.
getPage
.
records
[
index
].
experiment
List
=
this
.
itemList
this
.
$set
(
this
.
getPage
.
records
,
index
,
this
.
getPage
.
records
[
index
])
}
else
{
const
name
=
[]
this
.
itemList
=
[]
for
(
let
i
=
0
;
i
<
info
.
length
;
i
++
)
{
this
.
itemList
.
push
(
info
[
i
])
name
.
push
(
info
[
i
].
name
)
}
this
.
getPage
.
records
[
index
].
itemNames
=
name
.
join
(
'、'
)
this
.
getPage
.
records
[
index
].
experiment
List
=
this
.
itemList
this
.
$set
(
this
.
getPage
.
records
,
index
,
this
.
getPage
.
records
[
index
])
}
}
console
.
log
(
this
.
getPage
.
records
)
},
_cusNameChange
(
msg
,
data
)
{
// this.financeObj = {} // 清空维护发票信息的数据
...
...
@@ -477,7 +487,8 @@ export default {
sampleDepth
:
''
,
samplePack
:
''
,
sampleDescribe
:
''
,
siteNo
:
''
siteNo
:
''
,
itemNames
:
''
}
this
.
getPage
.
records
.
unshift
(
data
)
},
...
...
@@ -634,6 +645,7 @@ export default {
// 添加
// const saveData = this.formObj
data
.
sampleList
=
this
.
getPage
.
records
console
.
log
(
data
)
this
.
_save
(
data
)
}
else
{
// const saveData = this.formObj
...
...
pages/meter-entrust/entrust-review/ReviewEntrust.vue
View file @
f3c10eaf
...
...
@@ -252,8 +252,9 @@ export default {
},
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
console
.
log
(
'this.formObj'
,
this
.
formObj
)
const
result
=
await
soilEntrust
.
page
(
this
.
formObj
)
const
result
=
await
soilEntrust
.
pageReview
(
this
.
$serializeForm
(
this
.
formObj
)
)
if
(
result
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
getPage
=
result
...
...
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