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
9813ae2a
Commit
9813ae2a
authored
Jul 16, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了送出检委托单选择合同
parent
172fc0c8
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
25 deletions
+54
-25
default.vue
layouts/default.vue
+16
-4
ContractModal.vue
pages/meter-entrust/go-out-test/ContractModal.vue
+5
-5
MeterGoOutTestEdit.vue
pages/meter-entrust/go-out-test/MeterGoOutTestEdit.vue
+11
-1
ContractModal.vue
pages/meter-entrust/send-test/ContractModal.vue
+13
-14
MeterSendTestEdit.vue
pages/meter-entrust/send-test/MeterSendTestEdit.vue
+9
-1
No files found.
layouts/default.vue
View file @
9813ae2a
<
template
>
<
template
>
<div
>
<div
>
<header-menu
:crumbs=
"crumbsList"
@
on-result-change=
"_headerMenuResult"
/>
<header-menu
:crumbs=
"crumbsList"
@
on-result-change=
"_headerMenuResult"
/>
<div
v-if=
"show"
:class=
"
{'shrink-iview-layout-nuxt':isShrink}" class="iview-layout-nuxt">
<div
:class=
"
{'shrink-iview-layout-nuxt':isShrink}" class="iview-layout-nuxt">
<nuxt
/>
<nuxt
v-if=
"isRouterAlive"
/>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -19,7 +19,8 @@ export default {
...
@@ -19,7 +19,8 @@ export default {
return
{
return
{
isShrink
:
false
,
isShrink
:
false
,
crumbsList
:
[],
crumbsList
:
[],
show
:
false
show
:
false
,
isRouterAlive
:
false
}
}
},
},
watch
:
{
watch
:
{
...
@@ -28,16 +29,27 @@ export default {
...
@@ -28,16 +29,27 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
show
=
true
//
this.show = true
this
.
_setBreadCrumb
(
this
.
$route
)
this
.
_setBreadCrumb
(
this
.
$route
)
this
.
$nextTick
(()
=>
{
this
.
_initLoad
()
this
.
_initLoad
()
})
},
},
methods
:
{
methods
:
{
// 刷新
_reload
()
{
this
.
isRouterAlive
=
false
this
.
$nextTick
(()
=>
{
this
.
isRouterAlive
=
true
})
},
// 初始化加载
// 初始化加载
_initLoad
()
{
_initLoad
()
{
if
(
!
Global
.
getLn
())
{
if
(
!
Global
.
getLn
())
{
// 暂时没有登录-跳到首页
// 暂时没有登录-跳到首页
window
.
location
.
href
=
Global
.
ssoURL
window
.
location
.
href
=
Global
.
ssoURL
}
else
{
this
.
_reload
()
}
}
},
},
// 设置面包屑
// 设置面包屑
...
...
pages/meter-entrust/go-out-test/ContractModal.vue
View file @
9813ae2a
<
template
>
<
template
>
<div>
<div>
<Modal
v-model=
"showUserGroupModal"
>
<Modal
v-model=
"showUserGroupModal"
width=
"800"
>
<p
slot=
"header"
>
<p
slot=
"header"
>
{{
modalTitle
}}
{{
modalTitle
}}
</p>
</p>
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
</Col>
</Col>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
<el-table
<el-table
:height=
"300"
:data=
"getPage"
:data=
"getPage"
border
border
size=
"small"
size=
"small"
...
@@ -96,9 +95,10 @@ export default {
...
@@ -96,9 +95,10 @@ export default {
pageParams
:
{
rows
:
20
},
pageParams
:
{
rows
:
20
},
pageColumns
:
[
pageColumns
:
[
{
title
:
'合同编号'
,
key
:
'salesCode'
,
width
:
120
},
{
title
:
'合同编号'
,
key
:
'salesCode'
,
width
:
120
},
{
title
:
'委托单位'
,
key
:
'client'
,
width
:
200
},
{
title
:
'委托单位'
,
key
:
'client'
},
{
title
:
'联系人'
,
key
:
'person'
,
width
:
120
},
{
title
:
'联系人'
,
key
:
'person'
},
{
title
:
'联系电话'
,
key
:
'tel'
,
width
:
120
}
{
title
:
'联系电话'
,
key
:
'tel'
},
{
title
:
'样品名称'
,
key
:
'samples'
,
width
:
140
}
// { title: '传真', key: 'fax', width: 120 },
// { title: '传真', key: 'fax', width: 120 },
// { title: '详细地址', key: 'address', width: 250 },
// { title: '详细地址', key: 'address', width: 250 },
// { title: '登记日期', key: 'edate', width: 120, date: true },
// { title: '登记日期', key: 'edate', width: 120, date: true },
...
...
pages/meter-entrust/go-out-test/MeterGoOutTestEdit.vue
View file @
9813ae2a
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</Form-item>
</Form-item>
<Form-item
label=
"合同号:"
prop=
"contractCode"
class=
"width-48"
>
<Form-item
label=
"合同号:"
prop=
"contractCode"
class=
"width-48"
>
<Input
v-model=
"formObj.contractCode"
name=
"contractCode"
placeholder=
"请输入合同号"
style=
"width: 465px;"
/>
<Input
v-model=
"formObj.contractCode"
name=
"contractCode"
placeholder=
"请输入合同号"
style=
"width: 465px;"
/>
<span
@
click=
"_selectcontractCode"
style=
"font-size: 20px;color: #00b5ec;cursor: pointer"
class=
""
>
+
</span>
<span
v-if=
"showBtn"
@
click=
"_selectcontractCode"
style=
"font-size: 20px;color: #00b5ec;cursor: pointer"
class=
""
>
+
</span>
</Form-item>
</Form-item>
<Form-item
label=
"备注:"
prop=
"remark"
style=
"width: 99.8%"
>
<Form-item
label=
"备注:"
prop=
"remark"
style=
"width: 99.8%"
>
<Input
v-model=
"formObj.remark"
:rows=
"3"
name=
"remark"
type=
"textarea"
<Input
v-model=
"formObj.remark"
:rows=
"3"
name=
"remark"
type=
"textarea"
...
@@ -223,6 +223,7 @@ export default {
...
@@ -223,6 +223,7 @@ export default {
getPage
:
{
getPage
:
{
records
:
[]
records
:
[]
},
},
showBtn
:
true
,
testedCityData
:
[],
testedCityData
:
[],
customerData
:
[],
customerData
:
[],
searchOpen
:
true
,
searchOpen
:
true
,
...
@@ -451,6 +452,7 @@ export default {
...
@@ -451,6 +452,7 @@ export default {
},
},
_backData
(
data
)
{
_backData
(
data
)
{
console
.
log
(
typeof
this
.
index
)
console
.
log
(
typeof
this
.
index
)
console
.
log
(
data
)
this
.
getPage
.
records
[
this
.
index
].
name
=
data
.
name
this
.
getPage
.
records
[
this
.
index
].
name
=
data
.
name
this
.
getPage
.
records
[
this
.
index
].
aptitudeId
=
data
.
id
this
.
getPage
.
records
[
this
.
index
].
aptitudeId
=
data
.
id
this
.
getPage
.
records
[
this
.
index
].
verification
=
data
.
code
+
data
.
basis
this
.
getPage
.
records
[
this
.
index
].
verification
=
data
.
code
+
data
.
basis
...
@@ -472,6 +474,11 @@ export default {
...
@@ -472,6 +474,11 @@ export default {
this
.
formObj
.
odate
=
new
Date
(
data
.
odate
)
this
.
formObj
.
odate
=
new
Date
(
data
.
odate
)
this
.
formObj
.
contractCode
=
data
.
salesCode
this
.
formObj
.
contractCode
=
data
.
salesCode
this
.
formObj
.
operation
.
fee
=
data
.
discountPrice
this
.
formObj
.
operation
.
fee
=
data
.
discountPrice
if
(
data
.
sampleQuoteList
)
{
this
.
getPage
.
records
=
data
.
sampleQuoteList
}
else
{
this
.
getPage
.
records
=
[]
}
},
},
_selectjudgeBasis
(
index
)
{
_selectjudgeBasis
(
index
)
{
this
.
index
=
index
this
.
index
=
index
...
@@ -650,6 +657,7 @@ export default {
...
@@ -650,6 +657,7 @@ export default {
const
saveData
=
this
.
formObj
const
saveData
=
this
.
formObj
saveData
.
sampleList
=
this
.
getPage
.
records
saveData
.
sampleList
=
this
.
getPage
.
records
// 编辑
// 编辑
console
.
log
(
saveData
)
this
.
_edit
(
saveData
)
this
.
_edit
(
saveData
)
}
}
}
else
{
}
else
{
...
@@ -682,6 +690,7 @@ export default {
...
@@ -682,6 +690,7 @@ export default {
this
.
showModal
=
false
this
.
showModal
=
false
},
},
_open
()
{
_open
()
{
this
.
showBtn
=
true
this
.
showModal
=
true
this
.
showModal
=
true
this
.
_getList
()
this
.
_getList
()
this
.
$refs
.
formObj
.
resetFields
()
this
.
$refs
.
formObj
.
resetFields
()
...
@@ -696,6 +705,7 @@ export default {
...
@@ -696,6 +705,7 @@ export default {
},
},
_openEdit
(
formObj
)
{
_openEdit
(
formObj
)
{
this
.
showBtn
=
false
this
.
_getList
()
this
.
_getList
()
this
.
getPage
.
records
=
[]
this
.
getPage
.
records
=
[]
this
.
showModal
=
true
this
.
showModal
=
true
...
...
pages/meter-entrust/send-test/ContractModal.vue
View file @
9813ae2a
<
template
>
<
template
>
<div>
<div>
<Modal
v-model=
"showUserGroupModal"
width=
"
6
00"
>
<Modal
v-model=
"showUserGroupModal"
width=
"
8
00"
>
<p
slot=
"header"
>
<p
slot=
"header"
>
{{
modalTitle
}}
{{
modalTitle
}}
</p>
</p>
...
@@ -12,31 +12,30 @@
...
@@ -12,31 +12,30 @@
<Form-item
:label-width=
"70"
label=
"授权资质仪器名称"
>
<Form-item
:label-width=
"70"
label=
"授权资质仪器名称"
>
<Input
<Input
v-model=
"code"
v-model=
"code"
@
on-enter=
"_pageChange(1)"
placeholder=
"授权资质仪器名称"
placeholder=
"授权资质仪器名称"
style=
"width: 100%"
style=
"width: 100%"
@
on-enter=
"_pageChange(1)"
/>
/>
</Form-item>
</Form-item>
<Form-item
label=
"检测依据名称"
>
<Form-item
label=
"检测依据名称"
>
<Input
<Input
v-model=
"name"
v-model=
"name"
@
on-enter=
"_pageChange(1)"
placeholder=
"请输入检测依据名称"
placeholder=
"请输入检测依据名称"
style=
"width: 100%"
style=
"width: 100%"
@
on-enter=
"_pageChange(1)"
/>
/>
</Form-item>
</Form-item>
</Form>
</Form>
</Col>
</Col>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
<Col
span=
"24"
style=
"margin-bottom: 10px"
>
<el-table
<el-table
:height=
"300"
:data=
"getPage"
:data=
"getPage"
@
row-click=
"_rowChange"
@
row-dblclick=
"_dbClick"
border
border
size=
"small"
size=
"small"
highlight-current-row
highlight-current-row
style=
"width: 100%"
style=
"width: 100%"
@
row-click=
"_rowChange"
@
row-dblclick=
"_dbClick"
>
>
<el-table-column
<el-table-column
v-for=
"item in pageColumns"
v-for=
"item in pageColumns"
...
@@ -59,21 +58,21 @@
...
@@ -59,21 +58,21 @@
<Page
<Page
:total=
"getPage.total"
:total=
"getPage.total"
:page-size=
"getPage.size"
:page-size=
"getPage.size"
@
on-change=
"_pageChange"
@
on-page-size-change=
"_pageRows"
placement=
"top"
placement=
"top"
show-total
show-total
show-elevator
show-elevator
show-sizer
show-sizer
@
on-change=
"_pageChange"
@
on-page-size-change=
"_pageRows"
/>
/>
<div
style=
"clear: both"
/>
<div
style=
"clear: both"
/>
</Col>
</Col>
</Row>
</Row>
<div
slot=
"footer"
class=
"btn-width"
>
<div
slot=
"footer"
class=
"btn-width"
>
<Button
style=
"margin-left: 8px"
@
click=
"_cancel
"
>
<Button
@
click=
"_cancel"
style=
"margin-left: 8px
"
>
取消
取消
</Button>
</Button>
<Button
type=
"primary"
@
click=
"_ok
"
>
<Button
@
click=
"_ok"
type=
"primary
"
>
确定
确定
</Button>
</Button>
</div>
</div>
...
@@ -96,9 +95,10 @@ export default {
...
@@ -96,9 +95,10 @@ export default {
pageParams
:
{
rows
:
20
},
pageParams
:
{
rows
:
20
},
pageColumns
:
[
pageColumns
:
[
{
title
:
'合同编号'
,
key
:
'salesCode'
,
width
:
120
},
{
title
:
'合同编号'
,
key
:
'salesCode'
,
width
:
120
},
{
title
:
'委托单位'
,
key
:
'client'
,
width
:
200
},
{
title
:
'委托单位'
,
key
:
'client'
},
{
title
:
'联系人'
,
key
:
'person'
,
width
:
120
},
{
title
:
'联系人'
,
key
:
'person'
},
{
title
:
'联系电话'
,
key
:
'tel'
,
width
:
120
}
{
title
:
'联系电话'
,
key
:
'tel'
},
{
title
:
'样品名称'
,
key
:
'samples'
,
width
:
140
}
// { title: '传真', key: 'fax', width: 120 },
// { title: '传真', key: 'fax', width: 120 },
// { title: '详细地址', key: 'address', width: 250 },
// { title: '详细地址', key: 'address', width: 250 },
// { title: '登记日期', key: 'edate', width: 120, date: true },
// { title: '登记日期', key: 'edate', width: 120, date: true },
...
@@ -132,7 +132,6 @@ export default {
...
@@ -132,7 +132,6 @@ export default {
const
result
=
await
meterContract
.
pageContractForEntrust
(
this
.
formObj
)
const
result
=
await
meterContract
.
pageContractForEntrust
(
this
.
formObj
)
if
(
result
)
{
if
(
result
)
{
this
.
getPage
=
result
.
records
this
.
getPage
=
result
.
records
console
.
log
(
this
.
getPage
)
this
.
loading
=
false
this
.
loading
=
false
}
}
},
},
...
...
pages/meter-entrust/send-test/MeterSendTestEdit.vue
View file @
9813ae2a
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</Form-item>
</Form-item>
<Form-item
label=
"合同号:"
prop=
"contractCode"
class=
"width-96"
>
<Form-item
label=
"合同号:"
prop=
"contractCode"
class=
"width-96"
>
<Input
v-model=
"formObj.contractCode"
name=
"contractCode"
placeholder=
"请输入合同号"
style=
"width: 495px;"
/>
<Input
v-model=
"formObj.contractCode"
name=
"contractCode"
placeholder=
"请输入合同号"
style=
"width: 495px;"
/>
<span
@
click=
"_selectcontractCode"
style=
"font-size: 20px;color: #00b5ec;cursor: pointer"
class=
""
>
+
</span>
<span
v-if=
"showBtn"
@
click=
"_selectcontractCode"
style=
"font-size: 20px;color: #00b5ec;cursor: pointer"
class=
""
>
+
</span>
</Form-item>
</Form-item>
<Form-item
label=
"备注:"
prop=
"remark"
style=
"width: 99.8%"
>
<Form-item
label=
"备注:"
prop=
"remark"
style=
"width: 99.8%"
>
<Input
v-model=
"formObj.remark"
:rows=
"3"
name=
"remark"
type=
"textarea"
<Input
v-model=
"formObj.remark"
:rows=
"3"
name=
"remark"
type=
"textarea"
...
@@ -205,6 +205,7 @@ export default {
...
@@ -205,6 +205,7 @@ export default {
getPage
:
{
getPage
:
{
records
:
[]
records
:
[]
},
},
showBtn
:
true
,
customerData
:
[],
customerData
:
[],
cityData
:
[],
cityData
:
[],
searchOpen
:
true
,
searchOpen
:
true
,
...
@@ -473,6 +474,11 @@ export default {
...
@@ -473,6 +474,11 @@ export default {
this
.
formObj
.
odate
=
new
Date
(
data
.
odate
)
this
.
formObj
.
odate
=
new
Date
(
data
.
odate
)
this
.
formObj
.
contractCode
=
data
.
salesCode
this
.
formObj
.
contractCode
=
data
.
salesCode
this
.
formObj
.
operation
.
fee
=
data
.
discountPrice
this
.
formObj
.
operation
.
fee
=
data
.
discountPrice
if
(
data
.
sampleQuoteList
)
{
this
.
getPage
.
records
=
data
.
sampleQuoteList
}
else
{
this
.
getPage
.
records
=
[]
}
},
},
_add
()
{
_add
()
{
const
data
=
{
const
data
=
{
...
@@ -663,6 +669,7 @@ export default {
...
@@ -663,6 +669,7 @@ export default {
this
.
showModal
=
false
this
.
showModal
=
false
},
},
_open
(
formObj
)
{
_open
(
formObj
)
{
this
.
showBtn
=
true
this
.
showModal
=
true
this
.
showModal
=
true
this
.
_getList
()
this
.
_getList
()
this
.
$refs
.
formObj
.
resetFields
()
this
.
$refs
.
formObj
.
resetFields
()
...
@@ -685,6 +692,7 @@ export default {
...
@@ -685,6 +692,7 @@ export default {
}
}
},
},
_openEdit
(
formObj
)
{
_openEdit
(
formObj
)
{
this
.
showBtn
=
false
this
.
_getList
()
this
.
_getList
()
this
.
getPage
.
records
=
[]
this
.
getPage
.
records
=
[]
this
.
showModal
=
true
this
.
showModal
=
true
...
...
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