Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
komatsu-lease-app
Project
Project
Details
Activity
Releases
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
komatsu
komatsu-lease-app
Commits
81eb1ef4
Commit
81eb1ef4
authored
Jan 11, 2023
by
WangRui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feature]自助服务调整
parent
93c0a509
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
9 deletions
+51
-9
relatedFlow.vue
src/modules/relatedProject/views/relatedFlow.vue
+2
-2
index.js
src/modules/selfService/api/index.js
+4
-0
authorize.vue
src/modules/selfService/views/authorize.vue
+44
-6
index.vue
src/modules/selfService/views/index.vue
+1
-1
No files found.
src/modules/relatedProject/views/relatedFlow.vue
View file @
81eb1ef4
...
...
@@ -41,7 +41,7 @@ import { phoneReg } from '@/utils/Reg'
import
api
from
"../api"
;
import
{
useRouter
}
from
"vue-router"
;
cons
t
step
=
$ref
(
1
);
le
t
step
=
$ref
(
1
);
const
firstFormConfig
=
$ref
(
new
AuFormClass
([
{
...
...
@@ -253,4 +253,4 @@ const submit = async () => {
content: '*';
color: red;
}
</
style
>
\ No newline at end of file
</
style
>
src/modules/selfService/api/index.js
View file @
81eb1ef4
...
...
@@ -7,6 +7,10 @@ const api = {
getSelfServiceList
(
data
=
{})
{
return
post
(
`
${
baseURL
}
/app/api/app/agency/auth/query`
,
data
)
},
//查询关联项目
getContracNumberList
(
data
=
{}){
return
post
(
`
${
baseURL
}
/app/api/app/bind/contract/query/all`
,
data
)
},
//查询所有区域
getAreaList
(
data
=
{}){
return
post
(
`
${
baseURL
}
/app/api/app/agency/area/query`
,
data
)
...
...
src/modules/selfService/views/authorize.vue
View file @
81eb1ef4
...
...
@@ -6,6 +6,8 @@
<section
class=
"form"
>
<CellGroup
inset
>
<Field
required
v-model=
"form.contractNumber"
is-link
readonly
label=
"项目编号"
@
click=
"showProjectNumber = true"
input-align=
"right"
/>
<Field
v-model=
"form.code"
readonly
label=
"授权对象编码"
input-align=
"right"
/>
<Field
required
v-model=
"form.areaName"
is-link
readonly
label=
"所属地区"
@
click=
"showArea = true"
input-align=
"right"
/>
...
...
@@ -18,8 +20,12 @@
<Button
type=
"primary"
block
@
click=
"confirm"
>
确认
</Button>
</section>
<Popup
v-model:show=
"showProjectNumber"
position=
"bottom"
>
<Picker
:columns=
"projectNumberColumns"
:columns-field-names=
"
{text:'contractNumber', value: 'contractId'}" @confirm="projectNumberConfirm" @cancel="showProjectNumber = false" >
</Picker>
</Popup>
<Popup
v-model:show=
"showArea"
position=
"bottom"
>
<Picker
:columns=
"areaColumns"
:columns-field-names=
"
{text:'value', value: 'code'}" @confirm="areaConfirm" @cancel="showArea = false" >
<Picker
:columns=
"areaColumns"
:columns-field-names=
"
{text:'value', value: 'code'}" @confirm="areaConfirm" @c
hange="areaChange" @c
ancel="showArea = false" >
</Picker>
</Popup>
<Popup
v-model:show=
"showPicker"
position=
"bottom"
>
...
...
@@ -36,19 +42,27 @@
<
script
setup
>
import
{
goBack
}
from
"@/utils/globalFun"
import
Notice
from
"@/components/Notice.vue"
import
{
NavBar
,
Field
,
CellGroup
,
Popup
,
Picker
,
Button
,
Icon
,
Search
}
from
"vant"
;
import
{
NavBar
,
Field
,
CellGroup
,
Popup
,
Picker
,
Button
,
Icon
,
Search
,
Toast
}
from
"vant"
;
import
api
from
'../api'
import
{
useRouter
}
from
"vue-router"
;
const
router
=
useRouter
();
let
showArea
=
$ref
(
false
)
const
form
=
$ref
({
code
:
''
,
contractNumber
:
''
,
contractId
:
null
,
areaName
:
''
,
areaCode
:
''
,
agencyName
:
''
,
agencyCode
:
''
,
agencyId
:
''
,
})
let
areaChangeVal
=
$ref
(
''
)
let
showProjectNumber
=
$ref
(
false
)
let
projectNumberColumns
=
$ref
([])
let
showPicker
=
$ref
(
false
);
let
areaColumns
=
$ref
([]);
let
agencyColumns
=
$ref
([])
;
...
...
@@ -61,12 +75,19 @@ const agencyPagination = {
page
:
1
,
size
:
1000
,
}
const
projectNumber
=
{
page
:
1
,
size
:
1000
}
const
projectNumberConfirm
=
(
selectValues
)
=>
{
form
.
contractNumber
=
selectValues
.
contractNumber
;
form
.
contractId
=
selectValues
.
contractId
;
showProjectNumber
=
false
;
}
const
areaConfirm
=
(
selectedValues
)
=>
{
form
.
areaName
=
selectedValues
.
value
;
form
.
areaCode
=
selectedValues
.
code
;
// form.result = value;
// form
showArea
=
false
;
getAgencyList
();
}
...
...
@@ -79,6 +100,13 @@ const agencyConfrim = (selectedValues) => {
showPicker
=
false
;
}
//监听所属区域是否改变
const
areaChange
=
(
selectValues
)
=>
{
form
.
agencyName
=
''
;
form
.
agencyCode
=
''
;
form
.
agencyId
=
''
;
}
//代理店模糊查询
const
searchAgency
=
()
=>
{
agencyColumns
=
[];
...
...
@@ -87,13 +115,23 @@ const searchAgency = () => {
const
confirm
=
async
()
=>
{
const
param
=
{
contractId
:
''
,
contractId
:
form
.
contractId
,
agencyId
:
form
.
agencyId
,
receivets
:
new
Date
(),
}
const
res
=
await
api
.
confrimAgent
(
param
);
console
.
log
(
'hha'
,
res
);
if
(
res
.
success
){
Toast
.
success
(
'授权成功'
)
// router.push({ name: 'selfService-views-index' })
}
else
{
Toast
.
fail
(
'授权失败'
)
}
}
const
getContractList
=
async
()
=>
{
const
res
=
await
api
.
getContracNumberList
({
receivets
:
+
new
Date
()
+
''
,
...
projectNumber
})
projectNumberColumns
=
res
.
rows
}
getContractList
()
const
getAreaList
=
async
()
=>
{
const
res
=
await
api
.
getAreaList
({
receivets
:
+
new
Date
()
+
''
,
...
areaPagination
});
...
...
src/modules/selfService/views/index.vue
View file @
81eb1ef4
...
...
@@ -42,7 +42,7 @@ const queryList = async () => {
if
(
res
.
total
==
0
)
finished
=
true
res
.
rows
.
forEach
(
item
=>
{
listValue
.
push
({
title
:
item
.
authDate
+
''
||
''
,
title
:
item
.
authDate
.
split
(
' '
)[
0
]
+
''
||
''
,
values
:
[[
"授权对象编码"
,
"授权对象名称"
,
"所属区域"
],
[
item
.
agencyCode
,
item
.
agencyName
,
item
.
areaName
]],
...
item
})
...
...
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