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
44b706f8
Commit
44b706f8
authored
Jan 12, 2023
by
Step_by_step
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://hel.hand-china.com/komatsu/komatsu-lease-app
parents
a664c233
8b847b37
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
87 additions
and
59 deletions
+87
-59
index.js
src/modules/projectList/api/index.js
+1
-1
index.js
src/modules/projectList/store/index.js
+8
-5
index.vue
src/modules/projectList/views/index.vue
+15
-10
plan.vue
src/modules/projectList/views/plan.vue
+4
-1
projectForm.vue
src/modules/projectList/views/projectForm.vue
+7
-32
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
+2
-2
No files found.
src/modules/projectList/api/index.js
View file @
44b706f8
...
@@ -5,7 +5,7 @@ const baseURL = import.meta.env.DEV ? '/api' : import.meta.env.VITE_HTTP_BASE_UR
...
@@ -5,7 +5,7 @@ const baseURL = import.meta.env.DEV ? '/api' : import.meta.env.VITE_HTTP_BASE_UR
const
api
=
{
const
api
=
{
// 首页查询
// 首页查询
getProjectList
(
data
=
{})
{
getProjectList
(
data
=
{})
{
return
post
(
`
${
baseURL
}
/app/api/app/
financing/intention/query
`
,
data
)
return
post
(
`
${
baseURL
}
/app/api/app/
project/first/page
`
,
data
)
},
},
// 明细查询
// 明细查询
getProjectDetail
(
data
=
{}){
getProjectDetail
(
data
=
{}){
...
...
src/modules/projectList/store/index.js
View file @
44b706f8
const
state
=
{};
import
{
ref
,
computed
}
from
'vue'
import
{
defineStore
}
from
'pinia'
export
default
{
namespaced
:
true
,
export
const
useProjectList
=
defineStore
(
'formStore'
,
()
=>
{
state
,
const
contractId
=
ref
(
''
)
};
return
{
contractId
}
})
src/modules/projectList/views/index.vue
View file @
44b706f8
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<PullRefresh
v-model=
"refreshing"
@
refresh=
"getList"
class=
"scroll"
>
<PullRefresh
v-model=
"refreshing"
@
refresh=
"getList"
class=
"scroll"
>
<List
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"loadApproval"
>
<List
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"loadApproval"
>
<ListItem
v-for=
"item in listValue"
:other_title=
"item.other_title"
:title=
"item.title"
:values=
"item.values"
<ListItem
v-for=
"item in listValue"
:other_title=
"item.other_title"
:title=
"item.title"
:values=
"item.values"
@
click=
"jump"
/>
@
click=
"jump
(item.contractId)
"
/>
</List>
</List>
</PullRefresh>
</PullRefresh>
</section>
</section>
...
@@ -25,7 +25,9 @@ import ListItem from '@/components/ListItem.vue'
...
@@ -25,7 +25,9 @@ import ListItem from '@/components/ListItem.vue'
import
Plus
from
'@/components/Plus.vue'
import
Plus
from
'@/components/Plus.vue'
import
api
from
"../api"
;
import
api
from
"../api"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useProjectList
}
from
"../store"
;
const
formStore
=
useProjectList
()
// const listValue = $ref([
// const listValue = $ref([
// {
// {
// title: '2204-DB001-001',
// title: '2204-DB001-001',
...
@@ -42,18 +44,20 @@ let listValue = $ref([]);
...
@@ -42,18 +44,20 @@ let listValue = $ref([]);
const
getList
=
async
()
=>
{
const
getList
=
async
()
=>
{
// 下拉重置参数,重新加载
// 下拉重置参数,重新加载
let
list
=
await
api
.
getProjectList
({
userId
:
window
.
localStorage
.
getItem
(
'userId'
)});
let
res
=
await
api
.
getProjectList
({
userId
:
window
.
localStorage
.
getItem
(
'userId'
)});
if
(
list
.
result
===
'SUCCESS'
){
console
.
log
(
'hha'
,
res
);
list
=
list
.
data
.
map
(
item
=>
({
let
list
=
[]
if
(
res
.
success
){
list
=
res
.
rows
.
map
(
item
=>
({
...
item
,
...
item
,
title
:
item
.
i
ntention
Number
,
title
:
item
.
i
temProject
Number
,
other_title
:
item
.
creationDate
.
split
(
' '
)[
0
],
other_title
:
item
.
creationDate
?
.
split
(
' '
)[
0
],
values
:
[[
"机型"
,
"状态"
,
"代理店"
],
[
item
.
model
,
item
.
intentionStatusN
,
item
.
agen
t
BpName
]]
values
:
[[
"机型"
,
"状态"
,
"代理店"
],
[
item
.
model
,
item
.
intentionStatusN
,
item
.
agen
cy
BpName
]]
}))
}))
}
else
{
}
else
{
list
=
[];
list
=
[];
}
}
listValue
=
list
.
reverse
()
;
listValue
=
list
;
refreshing
=
false
;
refreshing
=
false
;
};
};
getList
();
getList
();
...
@@ -64,8 +68,9 @@ const loadApproval = () => {
...
@@ -64,8 +68,9 @@ const loadApproval = () => {
}
}
const
router
=
useRouter
();
const
router
=
useRouter
();
const
jump
=
()
=>
{
const
jump
=
(
id
)
=>
{
router
.
push
({
name
:
'projectList-views-projectForm'
})
formStore
.
contractId
=
id
;
router
.
push
({
name
:
'projectList-views-projectForm'
})
}
}
</
script
>
</
script
>
...
...
src/modules/projectList/views/plan.vue
View file @
44b706f8
...
@@ -51,8 +51,10 @@ import RepayPlan from '@/components/RepayPlan.vue'
...
@@ -51,8 +51,10 @@ import RepayPlan from '@/components/RepayPlan.vue'
import
{
Icon
}
from
'vant'
import
{
Icon
}
from
'vant'
import
{
useRouter
}
from
'vue-router'
import
{
useRouter
}
from
'vue-router'
import
api
from
"../api"
;
import
api
from
"../api"
;
import
{
useProjectList
}
from
"../store"
;
const
router
=
useRouter
()
const
router
=
useRouter
()
const
formStore
=
useProjectList
()
let
currencyObj
=
$ref
({
let
currencyObj
=
$ref
({
// financingCurrency: '200,000.00',
// financingCurrency: '200,000.00',
// headerCurrency: '5,000.00',
// headerCurrency: '5,000.00',
...
@@ -62,7 +64,8 @@ let currencyObj = $ref({
...
@@ -62,7 +64,8 @@ let currencyObj = $ref({
let
cashflow
=
[]
let
cashflow
=
[]
const
getRepayPlanInfo
=
async
()
=>
{
const
getRepayPlanInfo
=
async
()
=>
{
const
result
=
await
api
.
getRepaymentDetails
({
"contractId"
:
"777"
})
// "contractId": "777"
const
result
=
await
api
.
getRepaymentDetails
({
"contractId"
:
formStore
.
contractId
})
if
(
result
.
message
===
'请求成功'
){
if
(
result
.
message
===
'请求成功'
){
const
rows
=
result
.
rows
[
0
];
const
rows
=
result
.
rows
[
0
];
currencyObj
=
{
currencyObj
=
{
...
...
src/modules/projectList/views/projectForm.vue
View file @
44b706f8
...
@@ -23,9 +23,13 @@ import AuFormClass from "@/components/useAuForm";
...
@@ -23,9 +23,13 @@ import AuFormClass from "@/components/useAuForm";
import
GuarantorList
from
'../components/GuarantorList.vue'
import
GuarantorList
from
'../components/GuarantorList.vue'
import
{
onActivated
}
from
"vue"
;
import
{
onActivated
}
from
"vue"
;
import
api
from
"../api"
;
import
api
from
"../api"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useProjectList
}
from
"../store"
;
import
{
useRouter
,
useRoute
}
from
"vue-router"
;
const
route
=
useRoute
();
const
router
=
useRouter
();
const
formStore
=
useProjectList
()
const
formBaseConfigArr
=
[
const
formBaseConfigArr
=
[
{
{
title
:
'合同编号'
,
title
:
'合同编号'
,
...
@@ -279,9 +283,8 @@ const formleaseInfoConfig = $ref(new AuFormClass(formleaseInfoArr))
...
@@ -279,9 +283,8 @@ const formleaseInfoConfig = $ref(new AuFormClass(formleaseInfoArr))
let
contractId
=
$ref
(
null
);
let
contractId
=
$ref
(
null
);
const
projectInfoDetail
=
async
()
=>
{
const
projectInfoDetail
=
async
()
=>
{
// 下拉重置参数,重新加载
console
.
log
(
'url'
,
formStore
.
contractId
);
let
result
=
await
api
.
getProjectDetail
({
"contractId"
:
"777"
});
let
result
=
await
api
.
getProjectDetail
({
"contractId"
:
formStore
.
contractId
});
console
.
log
(
'list==='
,
result
);
if
(
result
.
success
)
{
if
(
result
.
success
)
{
let
rows
=
result
.
rows
;
let
rows
=
result
.
rows
;
let
baseInfo
=
[];
let
baseInfo
=
[];
...
@@ -331,37 +334,9 @@ const projectInfoDetail = async () => {
...
@@ -331,37 +334,9 @@ const projectInfoDetail = async () => {
projectInfoDetail
();
projectInfoDetail
();
// const setup = (props,ctx) => {
// // const router = useRouter();
// //router是全局路由对象,route= userRoute()是当前路由对象
// let router = useRouter();
// let gotoRepayPlan = () => {
// console.log('hhaha')
// router.push({
// //传递参数使用query的话,指定path或者name都行,但使用params的话,只能使用name指定
// // path:'/home',
// // query:{
// // num:1
// // }
// name: 'repayPlan-views-plan',
// params: {
// contractId: '777'
// }
// });
// }
// return{
// gotoRepayPlan
// }
// }
const
router
=
useRouter
();
const
gotoRepayPlan
=
()
=>
{
const
gotoRepayPlan
=
()
=>
{
console
.
log
(
contractId
);
router
.
push
({
router
.
push
({
name
:
'projectList-views-plan'
,
name
:
'projectList-views-plan'
,
query
:
{
contractId
:
contractId
}
})
})
}
}
...
...
src/modules/relatedProject/views/relatedFlow.vue
View file @
44b706f8
...
@@ -41,7 +41,7 @@ import { phoneReg } from '@/utils/Reg'
...
@@ -41,7 +41,7 @@ import { phoneReg } from '@/utils/Reg'
import
api
from
"../api"
;
import
api
from
"../api"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useRouter
}
from
"vue-router"
;
cons
t
step
=
$ref
(
1
);
le
t
step
=
$ref
(
1
);
const
firstFormConfig
=
$ref
(
new
AuFormClass
([
const
firstFormConfig
=
$ref
(
new
AuFormClass
([
{
{
...
...
src/modules/selfService/api/index.js
View file @
44b706f8
...
@@ -7,6 +7,10 @@ const api = {
...
@@ -7,6 +7,10 @@ const api = {
getSelfServiceList
(
data
=
{})
{
getSelfServiceList
(
data
=
{})
{
return
post
(
`
${
baseURL
}
/app/api/app/agency/auth/query`
,
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
=
{}){
getAreaList
(
data
=
{}){
return
post
(
`
${
baseURL
}
/app/api/app/agency/area/query`
,
data
)
return
post
(
`
${
baseURL
}
/app/api/app/agency/area/query`
,
data
)
...
...
src/modules/selfService/views/authorize.vue
View file @
44b706f8
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
<section
class=
"form"
>
<section
class=
"form"
>
<CellGroup
inset
>
<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
v-model=
"form.code"
readonly
label=
"授权对象编码"
input-align=
"right"
/>
<Field
required
v-model=
"form.areaName"
is-link
readonly
label=
"所属地区"
@
click=
"showArea = true"
<Field
required
v-model=
"form.areaName"
is-link
readonly
label=
"所属地区"
@
click=
"showArea = true"
input-align=
"right"
/>
input-align=
"right"
/>
...
@@ -18,8 +20,12 @@
...
@@ -18,8 +20,12 @@
<Button
type=
"primary"
block
@
click=
"confirm"
>
确认
</Button>
<Button
type=
"primary"
block
@
click=
"confirm"
>
确认
</Button>
</section>
</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"
>
<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>
</Picker>
</Popup>
</Popup>
<Popup
v-model:show=
"showPicker"
position=
"bottom"
>
<Popup
v-model:show=
"showPicker"
position=
"bottom"
>
...
@@ -36,19 +42,27 @@
...
@@ -36,19 +42,27 @@
<
script
setup
>
<
script
setup
>
import
{
goBack
}
from
"@/utils/globalFun"
import
{
goBack
}
from
"@/utils/globalFun"
import
Notice
from
"@/components/Notice.vue"
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
api
from
'../api'
import
{
useRouter
}
from
"vue-router"
;
const
router
=
useRouter
();
let
showArea
=
$ref
(
false
)
let
showArea
=
$ref
(
false
)
const
form
=
$ref
({
const
form
=
$ref
({
code
:
''
,
code
:
''
,
contractNumber
:
''
,
contractId
:
null
,
areaName
:
''
,
areaName
:
''
,
areaCode
:
''
,
areaCode
:
''
,
agencyName
:
''
,
agencyName
:
''
,
agencyCode
:
''
,
agencyCode
:
''
,
agencyId
:
''
,
agencyId
:
''
,
})
})
let
areaChangeVal
=
$ref
(
''
)
let
showProjectNumber
=
$ref
(
false
)
let
projectNumberColumns
=
$ref
([])
let
showPicker
=
$ref
(
false
);
let
showPicker
=
$ref
(
false
);
let
areaColumns
=
$ref
([]);
let
areaColumns
=
$ref
([]);
let
agencyColumns
=
$ref
([])
;
let
agencyColumns
=
$ref
([])
;
...
@@ -61,12 +75,19 @@ const agencyPagination = {
...
@@ -61,12 +75,19 @@ const agencyPagination = {
page
:
1
,
page
:
1
,
size
:
1000
,
size
:
1000
,
}
}
const
projectNumber
=
{
page
:
1
,
size
:
1000
}
const
projectNumberConfirm
=
(
selectValues
)
=>
{
form
.
contractNumber
=
selectValues
.
contractNumber
;
form
.
contractId
=
selectValues
.
contractId
;
showProjectNumber
=
false
;
}
const
areaConfirm
=
(
selectedValues
)
=>
{
const
areaConfirm
=
(
selectedValues
)
=>
{
form
.
areaName
=
selectedValues
.
value
;
form
.
areaName
=
selectedValues
.
value
;
form
.
areaCode
=
selectedValues
.
code
;
form
.
areaCode
=
selectedValues
.
code
;
// form.result = value;
// form
showArea
=
false
;
showArea
=
false
;
getAgencyList
();
getAgencyList
();
}
}
...
@@ -79,6 +100,13 @@ const agencyConfrim = (selectedValues) => {
...
@@ -79,6 +100,13 @@ const agencyConfrim = (selectedValues) => {
showPicker
=
false
;
showPicker
=
false
;
}
}
//监听所属区域是否改变
const
areaChange
=
(
selectValues
)
=>
{
form
.
agencyName
=
''
;
form
.
agencyCode
=
''
;
form
.
agencyId
=
''
;
}
//代理店模糊查询
//代理店模糊查询
const
searchAgency
=
()
=>
{
const
searchAgency
=
()
=>
{
agencyColumns
=
[];
agencyColumns
=
[];
...
@@ -87,13 +115,23 @@ const searchAgency = () => {
...
@@ -87,13 +115,23 @@ const searchAgency = () => {
const
confirm
=
async
()
=>
{
const
confirm
=
async
()
=>
{
const
param
=
{
const
param
=
{
contractId
:
''
,
contractId
:
form
.
contractId
,
agencyId
:
form
.
agencyId
,
agencyId
:
form
.
agencyId
,
receivets
:
new
Date
(),
receivets
:
new
Date
(),
}
}
const
res
=
await
api
.
confrimAgent
(
param
);
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
getAreaList
=
async
()
=>
{
const
res
=
await
api
.
getAreaList
({
receivets
:
+
new
Date
()
+
''
,
...
areaPagination
});
const
res
=
await
api
.
getAreaList
({
receivets
:
+
new
Date
()
+
''
,
...
areaPagination
});
...
...
src/modules/selfService/views/index.vue
View file @
44b706f8
...
@@ -42,7 +42,7 @@ const queryList = async () => {
...
@@ -42,7 +42,7 @@ const queryList = async () => {
if
(
res
.
total
==
0
)
finished
=
true
if
(
res
.
total
==
0
)
finished
=
true
res
.
rows
.
forEach
(
item
=>
{
res
.
rows
.
forEach
(
item
=>
{
listValue
.
push
({
listValue
.
push
({
title
:
item
.
authDate
+
''
||
''
,
title
:
item
.
authDate
.
split
(
' '
)[
0
]
+
''
||
''
,
values
:
[[
"授权对象编码"
,
"授权对象名称"
,
"所属区域"
],
[
item
.
agencyCode
,
item
.
agencyName
,
item
.
areaName
]],
values
:
[[
"授权对象编码"
,
"授权对象名称"
,
"所属区域"
],
[
item
.
agencyCode
,
item
.
agencyName
,
item
.
areaName
]],
...
item
...
item
})
})
...
@@ -66,7 +66,7 @@ const onRefresh = () => {
...
@@ -66,7 +66,7 @@ const onRefresh = () => {
};
};
const
loadApproval
=
()
=>
{
const
loadApproval
=
()
=>
{
pag
er
.
page
++
;
pag
ination
.
page
++
;
queryList
()
queryList
()
}
}
...
...
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