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
c6e8292e
Commit
c6e8292e
authored
Dec 06, 2022
by
WangRui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feature]项目查询和明细页面调整
parent
5482e697
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
7 deletions
+103
-7
ListItem.vue
src/components/ListItem.vue
+2
-2
GuarantorList.vue
src/modules/projectList/components/GuarantorList.vue
+60
-0
projectForm.vue
src/modules/projectList/views/projectForm.vue
+41
-5
No files found.
src/components/ListItem.vue
View file @
c6e8292e
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</h1>
</h1>
<hr
/>
<hr
/>
</
template
>
</
template
>
<table
:class=
"{ only_two: values[0].length < 3, more_four: values[0].length > 3 }"
>
<table
:class=
"{ only_two: values[0].length < 3, more_four: values[0].length >
=
3 }"
>
<
template
v-for=
"(value, i ) in values"
>
<
template
v-for=
"(value, i ) in values"
>
<tr>
<tr>
<th
v-if=
"i === 0"
v-for=
"text in value"
>
{{
text
}}
</th>
<th
v-if=
"i === 0"
v-for=
"text in value"
>
{{
text
}}
</th>
...
...
src/modules/projectList/components/GuarantorList.vue
0 → 100644
View file @
c6e8292e
<
template
>
<Cell
v-if=
"!!moduleName"
:title=
"moduleName"
class=
"cell-title"
/>
<table>
<template
v-for=
"(value, i ) in values"
>
<tr>
<th
v-if=
"i === 0"
v-for=
"text in value"
>
{{
text
}}
</th>
<td
v-else
v-for=
"text in value"
>
{{
text
}}
</td>
</tr>
</
template
>
</table>
</template>
<
script
setup
>
import
{
Cell
}
from
'vant'
defineProps
({
moduleName
:
{
type
:
String
,
default
:
''
},
values
:
{
type
:
Array
,
default
()
{
return
[]
}
},
})
defineEmits
([
'click'
])
</
script
>
<
style
scoped
lang=
"less"
>
.cell-title {
:deep(.van-cell__title span::before) {
display: inline-block;
height: 50%;
width: 3px;
background-color: #3D59C0;
content: "";
margin-right: 5px;
}
:deep(.van-cell__value) {
color: black;
}
}
table {
width: 100%;
background-color: #fff;
th {
color: gray;
}
td,
th {
text-align: center;
height: 25px;
line-height: 20px;
}
}
</
style
>
src/modules/projectList/views/projectForm.vue
View file @
c6e8292e
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
<div
class=
"content"
>
<div
class=
"content"
>
<section
class=
"form-area"
>
<section
class=
"form-area"
>
<AuForm
v-model=
"formBaseConfig"
:key=
"form"
moduleName=
"项目基本信息"
/>
<AuForm
v-model=
"formBaseConfig"
:key=
"form"
moduleName=
"项目基本信息"
/>
</section>
<GuarantorList
:values=
"listArr"
moduleName=
"担保方信息"
/>
<section
class=
"form-area"
>
<AuForm
v-model=
"formGuarantorConfig"
:key=
"form"
moduleName=
"开票信息"
/>
<AuForm
v-model=
"formGuarantorConfig"
:key=
"form"
moduleName=
"开票信息"
/>
<Cell
title=
"还款计划"
is-link
class=
"cell-title"
to=
"/repayplan/views/plan"
/>
</section>
</section>
</div>
</div>
</div>
</div>
...
@@ -15,11 +15,22 @@
...
@@ -15,11 +15,22 @@
<
script
setup
>
<
script
setup
>
import
{
goBack
}
from
"@/utils/globalFun"
import
{
goBack
}
from
"@/utils/globalFun"
import
{
NavBar
,
Button
,
Field
}
from
"vant"
;
import
{
NavBar
,
Button
,
Field
,
Cell
}
from
"vant"
;
import
AuForm
from
'@/components/AuForm.vue'
;
import
AuForm
from
'@/components/AuForm.vue'
;
import
AuFormClass
from
"@/components/useAuForm"
;
import
AuFormClass
from
"@/components/useAuForm"
;
import
GuarantorList
from
'../components/GuarantorList.vue'
const
form
=
$ref
();
const
form
=
$ref
();
const
listArr
=
$ref
([
{
sortId
:
1
,
name
:
'李某某'
},
{
sortId
:
2
,
name
:
'担保人2'
},
])
const
formBaseConfig
=
$ref
(
new
AuFormClass
([
const
formBaseConfig
=
$ref
(
new
AuFormClass
([
{
{
title
:
'合同编号'
,
title
:
'合同编号'
,
...
@@ -66,7 +77,7 @@ const formGuarantorConfig = $ref(new AuFormClass([
...
@@ -66,7 +77,7 @@ const formGuarantorConfig = $ref(new AuFormClass([
title
:
'纳税人类别'
,
title
:
'纳税人类别'
,
propName
:
'paymentReqDate'
,
propName
:
'paymentReqDate'
,
type
:
'input'
,
type
:
'input'
,
value
:
''
,
value
:
'
啊哈哈哈
'
,
isRequired
:
false
,
isRequired
:
false
,
disabled
:
true
,
disabled
:
true
,
},
},
...
@@ -82,7 +93,7 @@ const formGuarantorConfig = $ref(new AuFormClass([
...
@@ -82,7 +93,7 @@ const formGuarantorConfig = $ref(new AuFormClass([
title
:
'发票抬头'
,
title
:
'发票抬头'
,
propName
:
'paymentReqDat3e'
,
propName
:
'paymentReqDat3e'
,
type
:
'input'
,
type
:
'input'
,
value
:
''
,
value
:
'
23456567X
'
,
isRequired
:
false
,
isRequired
:
false
,
disabled
:
true
disabled
:
true
},
},
...
@@ -106,6 +117,20 @@ const formGuarantorConfig = $ref(new AuFormClass([
...
@@ -106,6 +117,20 @@ const formGuarantorConfig = $ref(new AuFormClass([
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.cell-title {
:deep(.van-cell__title span::before) {
display: inline-block;
height: 50%;
width: 3px;
background-color: #3D59C0;
content: "";
margin-right: 5px;
}
:deep(.van-cell__value) {
color: black;
}
}
.sub {
.sub {
width: 70%;
width: 70%;
margin: 50px auto 5px;
margin: 50px auto 5px;
...
@@ -113,6 +138,17 @@ const formGuarantorConfig = $ref(new AuFormClass([
...
@@ -113,6 +138,17 @@ const formGuarantorConfig = $ref(new AuFormClass([
.form-area {
.form-area {
padding: 10px;
padding: 10px;
.myformList+.myformList {
margin-top: 0px;
}
:deep(.van-field__label) {
color: #019ae5;
width: 35%;
}
:deep(.van-field__control--right){
text-align: left;
color: #323233 !important;
}
}
}
.content {
.content {
...
...
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