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
a11084b0
Commit
a11084b0
authored
Sep 17, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了试验委托登记编辑
parent
c44e2d0e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
32 deletions
+56
-32
soil-entrust.js
api/soil/soil-entrust.js
+18
-4
EntrustRegister.vue
pages/meter-entrust/entrust-register/EntrustRegister.vue
+17
-15
EntrustRegisterEdit.vue
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
+16
-11
ItemManage.vue
pages/soil-sample-manage/sample-receive/ItemManage.vue
+0
-0
ReceiveByEntrust.vue
pages/soil-sample-manage/sample-receive/ReceiveByEntrust.vue
+5
-2
No files found.
api/soil/soil-entrust.js
View file @
a11084b0
...
@@ -3,15 +3,29 @@
...
@@ -3,15 +3,29 @@
*/
*/
import
http
from
'../http'
import
http
from
'../http'
//
import { https } from '../https'
import
{
https
}
from
'../https'
export
default
{
export
default
{
// page
// page
page
:
data
=>
http
.
post
(
'soil/v1/entrust/page'
,
data
).
then
(
res
=>
res
),
page
:
data
=>
http
.
post
(
'soil/v1/entrust/page'
,
data
).
then
(
res
=>
res
),
getVOById
:
data
=>
http
.
get
(
'soil/v1/entrust/'
+
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
=>
deleteById
:
data
=>
http
.
delete
(
'soil/v1/entrust/?ids='
+
data
).
then
(
res
=>
res
),
http
.
delete
(
'soil/v1/entrust/?ids='
+
data
).
then
(
res
=>
res
),
// 保存
// 保存
save
:
data
=>
http
.
post
(
'soil/v1/entrust/'
,
data
).
then
(
res
=>
res
),
save
:
data
=>
edit
:
data
=>
http
.
put
(
'soil/v1/entrust/'
+
data
.
id
,
data
.
obj
)
https
.
post
(
'soil/v1/entrust/add_entrust'
,
JSON
.
stringify
(
data
))
.
then
(
res
=>
res
),
edit
:
data
=>
http
.
put
(
'soil/v1/entrust/'
+
data
.
id
,
data
.
obj
),
editDTO
:
data
=>
https
.
post
(
'soil/v1/entrust/edit_entrust'
,
JSON
.
stringify
(
data
))
.
then
(
res
=>
res
),
submit
:
data
=>
https
.
post
(
'soil/v1/entrust/submit_to_review?ids='
+
data
).
then
(
res
=>
res
),
submitSkipReview
:
data
=>
https
.
post
(
'soil/v1/entrust/submit_to_skip_review?ids='
+
data
)
.
then
(
res
=>
res
)
}
}
pages/meter-entrust/entrust-register/EntrustRegister.vue
View file @
a11084b0
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</span>
<span
v-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</span>
<!--
<span
v-else-if=
"item.status"
>
{{
scope
.
row
[
item
.
key
].
display
}}
</span>
--
>
<span
v-else-if=
"item.status"
>
{{
scope
.
row
[
item
.
key
].
display
}}
</span
>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
soil
Aptitude
,
soil
Entrust
}
from
'../../../api'
import
{
soilEntrust
}
from
'../../../api'
import
http
from
'../../../api/http'
import
http
from
'../../../api/http'
import
Operation
from
'../../../components/operation/Operation'
import
Operation
from
'../../../components/operation/Operation'
import
EntrustRegisterEdit
from
'./EntrustRegisterEdit'
import
EntrustRegisterEdit
from
'./EntrustRegisterEdit'
...
@@ -69,18 +69,17 @@ export default {
...
@@ -69,18 +69,17 @@ export default {
type
:
'success'
,
type
:
'success'
,
id
:
''
,
id
:
''
,
name
:
'添加'
name
:
'添加'
},
{
type
:
'success'
,
id
:
''
,
name
:
'提交至评审'
},
{
type
:
'success'
,
id
:
''
,
name
:
'提交'
}
}
// ,
// {
// type: 'success',
// id: '',
// name: '提交至评审'
// },
// {
// type: 'success',
// id: '',
// name: '提交'
// }
],
],
iconMsg
:
[
iconMsg
:
[
{
{
...
@@ -234,14 +233,14 @@ export default {
...
@@ -234,14 +233,14 @@ export default {
}
}
},
},
_subToRe
:
async
function
(
ids
)
{
_subToRe
:
async
function
(
ids
)
{
const
result
=
await
soil
Aptitude
.
submit
(
ids
)
const
result
=
await
soil
Entrust
.
submit
(
ids
)
if
(
result
)
{
if
(
result
)
{
this
.
_resultChange
(
'提交成功'
)
this
.
_resultChange
(
'提交成功'
)
}
}
},
},
_subToSkipRe
:
async
function
(
ids
)
{
_subToSkipRe
:
async
function
(
ids
)
{
const
result
=
await
soil
Aptitude
.
submitSkipReview
(
ids
)
const
result
=
await
soil
Entrust
.
submitSkipReview
(
ids
)
if
(
result
)
{
if
(
result
)
{
this
.
_resultChange
(
'提交成功'
)
this
.
_resultChange
(
'提交成功'
)
}
}
...
@@ -261,6 +260,9 @@ export default {
...
@@ -261,6 +260,9 @@ export default {
case
'iconClick'
:
case
'iconClick'
:
this
.
_iconClick
(
data
.
name
,
data
.
rowData
,
data
.
componentName
)
this
.
_iconClick
(
data
.
name
,
data
.
rowData
,
data
.
componentName
)
break
break
case
'page'
:
this
.
_page
()
break
case
'changeSize'
:
case
'changeSize'
:
this
.
_page
()
this
.
_page
()
break
break
...
...
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
View file @
a11084b0
...
@@ -63,8 +63,8 @@
...
@@ -63,8 +63,8 @@
<!-- >
</el-input>
-->
<!-- >
</el-input>
-->
<!--
<a
@
on-result-change=
"_judgeBasisChange"
@
click=
"_selectjudgeBasis(scope.$rowIndex)"
style=
"font-size: 18px;"
class=
""
>
+
</a>
-->
<!--
<a
@
on-result-change=
"_judgeBasisChange"
@
click=
"_selectjudgeBasis(scope.$rowIndex)"
style=
"font-size: 18px;"
class=
""
>
+
</a>
-->
<!--
</div>
-->
<!--
</div>
-->
<div
v-if=
"item.key==='s
ampleCode
'"
@
click
.
stop=
"_handleRow(scope)"
>
<div
v-if=
"item.key==='s
iteNo
'"
@
click
.
stop=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.s
ampleCode"
blur
placeholder=
"请输入试样
编号"
<el-input
v-model=
"scope.row.s
iteNo"
blur
placeholder=
"请输入现场
编号"
></el-input>
></el-input>
</div>
</div>
<div
v-if=
"item.key==='sampleDepth'"
@
click
.
stop=
"_handleRow(scope)"
>
<div
v-if=
"item.key==='sampleDepth'"
@
click
.
stop=
"_handleRow(scope)"
>
...
@@ -79,6 +79,9 @@
...
@@ -79,6 +79,9 @@
<el-input
v-model=
"scope.row.sampleDescribe"
blur
placeholder=
"请输入土质描述"
<el-input
v-model=
"scope.row.sampleDescribe"
blur
placeholder=
"请输入土质描述"
></el-input>
></el-input>
</div>
</div>
<div
v-else
@
click
.
stop=
"_handleRow(scope)"
>
<span>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</div>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
</PTVXETable>
</PTVXETable>
...
@@ -162,6 +165,7 @@ export default {
...
@@ -162,6 +165,7 @@ export default {
],
],
pageColumns
:
[
pageColumns
:
[
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
140
},
{
title
:
'试样编号'
,
key
:
'sampleCode'
,
width
:
140
},
{
title
:
'现场编号'
,
key
:
'siteNo'
,
width
:
140
},
{
title
:
'试样深度'
,
key
:
'sampleDepth'
,
width
:
140
},
{
title
:
'试样深度'
,
key
:
'sampleDepth'
,
width
:
140
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
150
},
{
title
:
'样品包装类型'
,
key
:
'samplePack'
,
width
:
150
},
{
title
:
'土质描述'
,
key
:
'sampleDescribe'
}
{
title
:
'土质描述'
,
key
:
'sampleDescribe'
}
...
@@ -472,7 +476,8 @@ export default {
...
@@ -472,7 +476,8 @@ export default {
sampleCode
:
''
,
sampleCode
:
''
,
sampleDepth
:
''
,
sampleDepth
:
''
,
samplePack
:
''
,
samplePack
:
''
,
sampleDescribe
:
''
sampleDescribe
:
''
,
siteNo
:
''
}
}
this
.
getPage
.
records
.
unshift
(
data
)
this
.
getPage
.
records
.
unshift
(
data
)
},
},
...
@@ -628,11 +633,13 @@ export default {
...
@@ -628,11 +633,13 @@ export default {
if
(
this
.
$string
(
this
.
id
).
isEmpty
())
{
if
(
this
.
$string
(
this
.
id
).
isEmpty
())
{
// 添加
// 添加
// const saveData = this.formObj
// const saveData = this.formObj
// this._save(data)
data
.
sampleList
=
this
.
getPage
.
records
this
.
_save
(
data
)
}
else
{
}
else
{
// const saveData = this.formObj
// const saveData = this.formObj
console
.
log
(
data
)
console
.
log
(
data
)
data
.
id
=
this
.
id
data
.
id
=
this
.
id
data
.
sampleList
=
this
.
getPage
.
records
this
.
_edit
(
data
)
this
.
_edit
(
data
)
}
}
}
else
{
}
else
{
...
@@ -685,13 +692,16 @@ export default {
...
@@ -685,13 +692,16 @@ export default {
this
.
showBtn
=
false
this
.
showBtn
=
false
this
.
showModal
=
true
this
.
showModal
=
true
this
.
$refs
.
formObj
.
resetFields
()
this
.
$refs
.
formObj
.
resetFields
()
this
.
getPage
.
records
=
[]
this
.
_hideLoading
()
this
.
_hideLoading
()
this
.
id
=
''
this
.
id
=
''
this
.
modalTitle
=
'委托单编辑'
this
.
modalTitle
=
'委托单编辑'
this
.
id
=
formObj
.
id
this
.
id
=
formObj
.
id
this
.
formObj
=
formObj
this
.
formObj
=
formObj
this
.
_showTime
(
formObj
)
this
.
_showTime
(
formObj
)
// this.getPage.records = formObj.sampleList
if
(
formObj
.
sampleList
)
{
this
.
getPage
.
records
=
formObj
.
sampleList
}
// for (let i = 0; i
<
formObj
.
sampleList
.
length
;
i
++
)
{
// for (let i = 0; i
<
formObj
.
sampleList
.
length
;
i
++
)
{
// if (formObj.sampleList[i].lastTime !== undefined) {
// if (formObj.sampleList[i].lastTime !== undefined) {
// this.getPage.records[i].lastTime = new Date(
// this.getPage.records[i].lastTime = new Date(
...
@@ -753,12 +763,7 @@ export default {
...
@@ -753,12 +763,7 @@ export default {
}
}
},
},
_edit
:
async
function
(
data
)
{
_edit
:
async
function
(
data
)
{
const
result
=
await
soilEntrust
.
edit
({
const
result
=
await
soilEntrust
.
editDTO
(
data
)
id
:
this
.
formObj
.
id
,
obj
:
data
})
console
.
log
(
'修改后'
)
console
.
log
(
result
)
if
(
result
)
{
if
(
result
)
{
this
.
_resultChange
(
'编辑成功!'
)
this
.
_resultChange
(
'编辑成功!'
)
}
}
...
...
pages/soil-sample-manage/sample-receive/ItemManage.vue
0 → 100644
View file @
a11084b0
This diff is collapsed.
Click to expand it.
pages/soil-sample-manage/sample-receive/ReceiveByEntrust.vue
View file @
a11084b0
...
@@ -61,17 +61,20 @@
...
@@ -61,17 +61,20 @@
<!--选择领样人-->
<!--选择领样人-->
<UserInfo
ref=
"userModal"
@
on-result-change=
"_userResult"
></UserInfo>
<UserInfo
ref=
"userModal"
@
on-result-change=
"_userResult"
></UserInfo>
<SampleManage
ref=
"sampleManageModal"
@
on-result-change=
"_page"
></SampleManage>
<SampleManage
ref=
"sampleManageModal"
@
on-result-change=
"_page"
></SampleManage>
<ItemManage
ref=
"itemManageModal"
@
on-result-change=
"_page"
></ItemManage>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
UserInfo
from
'../../../components/user-info-single/AssignPerson'
import
UserInfo
from
'../../../components/user-info-single/AssignPerson'
import
{
soilEntrust
}
from
'../../../api'
import
{
soilEntrust
}
from
'../../../api'
import
SampleManage
from
'./entrust-sample-manage/SampleManage'
import
SampleManage
from
'./entrust-sample-manage/SampleManage'
import
ItemManage
from
'./ItemManage'
export
default
{
export
default
{
components
:
{
components
:
{
UserInfo
,
UserInfo
,
SampleManage
SampleManage
,
ItemManage
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -350,7 +353,7 @@ export default {
...
@@ -350,7 +353,7 @@ export default {
this
.
_editModal
(
data
.
id
,
data
.
type
,
data
.
cname
)
this
.
_editModal
(
data
.
id
,
data
.
type
,
data
.
cname
)
break
break
case
'项目管理'
:
case
'项目管理'
:
this
.
$refs
.
ref
Modal
.
_open
(
data
.
id
)
this
.
$refs
.
itemManage
Modal
.
_open
(
data
.
id
)
break
break
case
'编辑协议'
:
case
'编辑协议'
:
this
.
_editModals
(
res
,
data
)
this
.
_editModals
(
res
,
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