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
a4edc668
Commit
a4edc668
authored
Sep 14, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了试验委托登记
parent
b20192d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
48 deletions
+48
-48
soil-entrust.js
api/soil/soil-entrust.js
+2
-1
EntrustRegisterEdit.vue
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
+31
-33
EntrustRegisterHis.vue
pages/meter-entrust/entrust-register/EntrustRegisterHis.vue
+15
-14
No files found.
api/soil/soil-entrust.js
View file @
a4edc668
...
@@ -9,7 +9,8 @@ export default {
...
@@ -9,7 +9,8 @@ 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
),
getVOById
:
data
=>
http
.
get
(
'soil/v1/entrust/'
+
data
).
then
(
res
=>
res
),
deleteById
:
data
=>
http
.
delete
(
'soil/v1/entrust/'
+
data
).
then
(
res
=>
res
),
deleteById
:
data
=>
http
.
delete
(
'soil/v1/entrust/?ids='
+
data
).
then
(
res
=>
res
),
// 保存
// 保存
save
:
data
=>
http
.
post
(
'soil/v1/entrust/'
,
data
).
then
(
res
=>
res
),
save
:
data
=>
http
.
post
(
'soil/v1/entrust/'
,
data
).
then
(
res
=>
res
),
edit
:
data
=>
http
.
put
(
'soil/v1/entrust/'
+
data
.
id
,
data
.
obj
)
edit
:
data
=>
http
.
put
(
'soil/v1/entrust/'
+
data
.
id
,
data
.
obj
)
...
...
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
View file @
a4edc668
<
template
>
<
template
>
<div>
<div>
<Modal
v-model=
"showModal"
:mask-closable=
"false"
width=
"
125
0"
>
<Modal
v-model=
"showModal"
:mask-closable=
"false"
width=
"
70
0"
>
<p
slot=
"header"
>
{{
modalTitle
}}
</p>
<p
slot=
"header"
>
{{
modalTitle
}}
</p>
<div>
<div>
<Form
id=
"MeterSendTestEdit"
ref=
"formObj"
:model=
"formObj"
:rules=
"ruleValidate"
:label-width=
"90"
inline
>
<Form
id=
"MeterSendTestEdit"
ref=
"formObj"
:model=
"formObj"
:rules=
"ruleValidate"
:label-width=
"90"
inline
>
...
@@ -11,19 +11,20 @@
...
@@ -11,19 +11,20 @@
</Form-item>
</Form-item>
<Form-item
label=
"委托日期:"
prop=
"entrustDate"
class=
"width-48"
>
<Form-item
label=
"委托日期:"
prop=
"entrustDate"
class=
"width-48"
>
<Date-picker
v-model=
"formObj.entrustDate"
@
on-change=
"_ctimeChange"
type=
"date"
split-panels
style=
"width:100%;"
<Date-picker
v-model=
"formObj.entrustDate"
@
on-change=
"_ctimeChange"
type=
"date"
split-panels
style=
"width:100%;"
placeholder=
"请选择委托日期"
></Date-picker>
placeholder=
"请选择委托日期"
name=
"entrustDate"
></Date-picker>
</Form-item>
</Form-item>
<Form-item
label=
"钻孔名称"
prop=
"boreholeName"
class=
"width-48"
>
<Form-item
label=
"钻孔名称"
prop=
"boreholeName"
class=
"width-48"
>
<Input
v-model=
"formObj.boreholeName"
name=
"boreholeName"
placeholder=
"请输入名称"
/>
<Input
v-model=
"formObj.boreholeName"
name=
"boreholeName"
placeholder=
"请输入名称"
/>
</Form-item>
</Form-item>
<Form-item
label=
"钻孔位置"
prop=
"borehole
Name
"
class=
"width-48"
>
<Form-item
label=
"钻孔位置"
prop=
"borehole
Location
"
class=
"width-48"
>
<Input
v-model=
"formObj.boreholeLocation"
name=
"boreholeLocation"
placeholder=
"请输入名称"
/>
<Input
v-model=
"formObj.boreholeLocation"
name=
"boreholeLocation"
placeholder=
"请输入名称"
/>
</Form-item>
</Form-item>
<Form-item
label=
"水深(米)"
prop=
"waterDepth"
class=
"width-48"
>
<Form-item
label=
"水深(米)"
prop=
"waterDepth"
class=
"width-48"
>
<Input
v-model=
"formObj.waterDepth"
name=
"waterDepth"
placeholder=
"请输入名称"
/>
<Input
v-model=
"formObj.waterDepth"
name=
"waterDepth"
placeholder=
"请输入名称"
/>
</Form-item>
</Form-item>
<Form-item
label=
"制表日期"
prop=
"tabulateDate"
class=
"width-48"
>
<Form-item
label=
"制单日期:"
prop=
"tabulateDate"
class=
"width-48"
>
<Input
v-model=
"formObj.tabulateDate"
name=
"tabulateDate"
placeholder=
"请输入名称"
/>
<Date-picker
v-model=
"formObj.tabulateDate"
@
on-change=
"_tabulateChange"
name=
"tabulateDate"
type=
"date"
split-panels
style=
"width:100%;"
placeholder=
"请选择委托日期"
></Date-picker>
</Form-item>
</Form-item>
<Form-item
label=
"制表人"
prop=
"tabulater"
class=
"width-48"
>
<Form-item
label=
"制表人"
prop=
"tabulater"
class=
"width-48"
>
<Input
v-model=
"formObj.tabulater"
name=
"tabulater"
placeholder=
"请输入名称"
/>
<Input
v-model=
"formObj.tabulater"
name=
"tabulater"
placeholder=
"请输入名称"
/>
...
@@ -145,9 +146,7 @@ export default {
...
@@ -145,9 +146,7 @@ export default {
id
:
''
,
id
:
''
,
modalTitle
:
''
,
modalTitle
:
''
,
subcontractorId
:
''
,
subcontractorId
:
''
,
formObj
:
{
formObj
:
{},
id
:
''
},
ruleValidate
:
{
ruleValidate
:
{
client
:
[
client
:
[
...
@@ -284,9 +283,11 @@ export default {
...
@@ -284,9 +283,11 @@ export default {
}
}
},
},
_ctimeChange
(
data
)
{
_ctimeChange
(
data
)
{
console
.
log
(
'时间'
,
data
)
this
.
formObj
.
entrustDate
=
data
this
.
formObj
.
entrustDate
=
data
},
},
_tabulateChange
(
data
)
{
this
.
formObj
.
tabulateDate
=
data
},
_odateChange
(
data
)
{
_odateChange
(
data
)
{
this
.
formObj
.
odate
=
data
this
.
formObj
.
odate
=
data
},
},
...
@@ -514,14 +515,16 @@ export default {
...
@@ -514,14 +515,16 @@ export default {
this
.
$refs
.
formObj
.
validate
(
valid
=>
{
this
.
$refs
.
formObj
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
data
=
this
.
$serialize
(
'MeterSendTestEdit'
)
const
data
=
this
.
$serialize
(
'MeterSendTestEdit'
)
Object
.
assign
(
this
.
formObj
,
data
)
//
Object.assign(this.formObj, data)
if
(
this
.
$string
(
this
.
id
).
isEmpty
())
{
if
(
this
.
$string
(
this
.
id
).
isEmpty
())
{
// 添加
// 添加
const
saveData
=
this
.
formObj
//
const saveData = this.formObj
this
.
_save
(
saveD
ata
)
this
.
_save
(
d
ata
)
}
else
{
}
else
{
const
saveData
=
this
.
formObj
// const saveData = this.formObj
this
.
_edit
(
saveData
)
console
.
log
(
data
)
data
.
id
=
this
.
id
this
.
_edit
(
data
)
}
}
}
else
{
}
else
{
this
.
$Message
.
error
(
'表单验证失败!'
)
this
.
$Message
.
error
(
'表单验证失败!'
)
...
@@ -558,9 +561,7 @@ export default {
...
@@ -558,9 +561,7 @@ export default {
this
.
$refs
.
formObj
.
resetFields
()
this
.
$refs
.
formObj
.
resetFields
()
this
.
_hideLoading
()
this
.
_hideLoading
()
if
(
this
.
$string
(
formObj
).
isEmpty
())
{
if
(
this
.
$string
(
formObj
).
isEmpty
())
{
this
.
getPage
.
records
=
[]
this
.
id
=
''
this
.
id
=
''
this
.
formObj
.
id
=
''
this
.
formObj
.
entrustDate
=
new
Date
()
this
.
formObj
.
entrustDate
=
new
Date
()
this
.
modalTitle
=
'委托单新增'
this
.
modalTitle
=
'委托单新增'
}
else
{
}
else
{
...
@@ -572,38 +573,35 @@ export default {
...
@@ -572,38 +573,35 @@ export default {
},
},
_openEdit
(
formObj
)
{
_openEdit
(
formObj
)
{
this
.
showBtn
=
false
this
.
showBtn
=
false
this
.
getPage
.
records
=
[]
this
.
showModal
=
true
this
.
showModal
=
true
this
.
$refs
.
formObj
.
resetFields
()
this
.
$refs
.
formObj
.
resetFields
()
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
//
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(
formObj
.
sampleList
[
i
].
lastTime
//
formObj.sampleList[i].lastTime
)
//
)
}
//
}
}
//
}
},
},
_showTime
(
formObj
)
{
_showTime
(
formObj
)
{
if
(
this
.
formObj
.
odate
===
undefined
)
{
this
.
formObj
.
odate
=
''
}
else
{
this
.
formObj
.
odate
=
new
Date
(
formObj
.
odate
)
console
.
log
(
'转换格式后的时间'
,
this
.
formObj
.
odate
)
}
if
(
this
.
formObj
.
entrustDate
===
undefined
)
{
if
(
this
.
formObj
.
entrustDate
===
undefined
)
{
this
.
formObj
.
entrustDate
=
''
this
.
formObj
.
entrustDate
=
''
}
else
{
}
else
{
this
.
formObj
.
entrustDate
=
new
Date
(
formObj
.
entrustDate
)
this
.
formObj
.
entrustDate
=
new
Date
(
formObj
.
entrustDate
)
}
}
if
(
this
.
formObj
.
tabulateDate
===
undefined
)
{
this
.
formObj
.
tabulateDate
=
''
}
else
{
this
.
formObj
.
tabulateDate
=
new
Date
(
formObj
.
tabulateDate
)
}
},
},
_showAddress
(
formObj
)
{
_showAddress
(
formObj
)
{
this
.
testedCityData
=
[]
this
.
testedCityData
=
[]
...
...
pages/meter-entrust/entrust-register/EntrustRegisterHis.vue
View file @
a4edc668
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<Form-item
class=
"search-item"
label=
"委托商:"
>
<Form-item
class=
"search-item"
label=
"委托商:"
>
<Input
v-model=
"formObj.client"
@
on-enter=
"_formSearch"
name=
"client"
placeholder=
"请输入委托单位"
clearable
/>
<Input
v-model=
"formObj.client"
@
on-enter=
"_formSearch"
name=
"client"
placeholder=
"请输入委托单位"
clearable
/>
</Form-item>
</Form-item>
<Form-item
class=
"search-item"
label=
"委托
单
号:"
>
<Form-item
class=
"search-item"
label=
"委托
编
号:"
>
<Input
v-model=
"formObj.entrustCode"
@
on-enter=
"_formSearch"
name=
"entrustCode"
placeholder=
"请输入委托单号"
clearable
/>
<Input
v-model=
"formObj.entrustCode"
@
on-enter=
"_formSearch"
name=
"entrustCode"
placeholder=
"请输入委托单号"
clearable
/>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Form-item
class=
"search-btn"
>
...
@@ -37,8 +37,7 @@
...
@@ -37,8 +37,7 @@
:min-width=
"item.width?item.width:200"
:min-width=
"item.width?item.width:200"
: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.key==='edate'"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
<span
v-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</span>
</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>
...
@@ -81,18 +80,20 @@ export default {
...
@@ -81,18 +80,20 @@ export default {
selectIds
:
[],
selectIds
:
[],
getPage
:
{},
getPage
:
{},
pageColumns
:
[
pageColumns
:
[
{
title
:
'委托单位'
,
key
:
'client'
,
width
:
200
},
{
title
:
'委托商'
,
key
:
'client'
,
width
:
200
},
{
title
:
'联系人'
,
key
:
'person'
,
width
:
120
},
{
title
:
'委托编号'
,
key
:
'entrustCode'
,
width
:
120
},
{
title
:
'委托编号'
,
key
:
'entrustCode'
,
width
:
120
},
{
title
:
'联系电话'
,
key
:
'tel'
,
width
:
120
},
{
title
:
'委托日期'
,
key
:
'entrustDate'
,
width
:
120
,
date
:
true
},
{
title
:
'传真'
,
key
:
'fax'
,
width
:
120
},
{
title
:
'钻孔位置'
,
key
:
'boreholeLocation'
,
width
:
120
},
{
title
:
'详细地址'
,
key
:
'address'
,
width
:
250
},
{
title
:
'水深(米)'
,
key
:
'waterDepth'
,
width
:
120
},
{
title
:
'邮编'
,
key
:
'postcode'
},
{
title
:
'钻孔名称'
,
key
:
'boreholeName'
,
width
:
120
},
{
title
:
'E-mail'
,
key
:
'email'
,
width
:
120
},
{
title
:
'进度'
,
key
:
'progress'
,
width
:
120
,
status
:
true
},
{
title
:
'委托日期'
,
key
:
'edate'
,
width
:
120
},
{
title
:
'工程号'
,
key
:
'projectNo'
,
width
:
120
},
{
title
:
'费用合计'
,
key
:
'fee'
,
width
:
120
},
{
title
:
'报告编号'
,
key
:
'reportCode'
,
width
:
120
},
{
title
:
'合同号'
,
key
:
'contractCode'
,
width
:
120
},
{
title
:
'制表日期'
,
key
:
'tabulateDate'
,
width
:
120
,
date
:
true
},
{
title
:
'备注'
,
key
:
'remark'
}
{
title
:
'制表人'
,
key
:
'tabulater'
,
width
:
120
},
{
title
:
'批准日期'
,
key
:
'approveDate'
,
width
:
120
,
date
:
true
},
{
title
:
'批准人'
,
key
:
'approver'
,
width
:
120
},
{
title
:
'检验类别'
,
key
:
'testType'
,
width
:
120
}
]
]
}
}
},
},
...
...
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