Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
contactless-ionic
Project
Project
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
creditcard
contactless-ionic
Commits
33a687ba
Commit
33a687ba
authored
Oct 24, 2024
by
伊藤雄大
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'itou' into 'develop'
2024/10/24 See merge request
!4
parents
7ecadc6b
6cc47ea2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
67 deletions
+4
-67
claim-info.component.html
src/app/claim-list/claim-info/claim-info.component.html
+0
-15
claim-info.component.ts
src/app/claim-list/claim-info/claim-info.component.ts
+2
-33
claim-list.page.html
src/app/claim-list/claim-list.page.html
+2
-2
claim-list.page.ts
src/app/claim-list/claim-list.page.ts
+0
-15
claim-list.model.ts
src/app/model/claim-list.model.ts
+0
-2
No files found.
src/app/claim-list/claim-info/claim-info.component.html
View file @
33a687ba
...
...
@@ -4,21 +4,6 @@
<ion-col>
<ion-label
style=
"font-size:16px;"
>
{{model.agencyName}}
</ion-label>
</ion-col>
<ion-col
style=
"text-align:right;"
>
@if (model.cancelRequest == 0) {
<div
role=
"button"
id=
"cancelReq"
class=
"text-decoration-underline label-orange"
(
click
)="
onClickBefCancelReq
()"
>
取消依頼
</div>
<ion-alert
[
isOpen
]="
isCancelOpen
"
header=
"取消依頼しますか?"
[
buttons
]="
confirmButtons
"
(
didDismiss
)="
onClickCancelReq
($
event
)"
></ion-alert>
} @else {
<div
role=
"button"
id=
"cancelReqDone"
class=
"text-decoration-underline label-orange"
(
click
)="
onClickBefCancelReq
()"
>
取消依頼済
</div>
<ion-alert
[
isOpen
]="
isCancelOpen
"
header=
"取消依頼を解除しますか?"
[
buttons
]="
confirmButtons
"
(
didDismiss
)="
onClickCancelReq
($
event
)"
></ion-alert>
}
</ion-col>
</ion-row>
<ion-row>
<ion-col>
...
...
src/app/claim-list/claim-info/claim-info.component.ts
View file @
33a687ba
...
...
@@ -23,7 +23,6 @@ import { DecimalPipe } from '@angular/common';
export
class
ClaimInfoComponent
implements
OnInit
{
@
Input
()
model
:
ClaimListModel
=
new
ClaimListModel
();
@
Output
()
clickPayReq
:
EventEmitter
<
ClaimListModel
>
=
new
EventEmitter
<
ClaimListModel
>
();
@
Output
()
clickCancelReq
:
EventEmitter
<
ClaimListModel
>
=
new
EventEmitter
<
ClaimListModel
>
();
public
confirmButtons
=
[
{
...
...
@@ -36,8 +35,6 @@ export class ClaimInfoComponent implements OnInit {
},
];
//取消依頼メッセージダイアログ表示有無
isCancelOpen
:
boolean
=
false
;
//支払要求メッセージダイアログ表示有無
isPayOpen
:
boolean
=
false
;
...
...
@@ -53,45 +50,17 @@ export class ClaimInfoComponent implements OnInit {
}
/**
*
拒否リスト
情報取得
* @returns
拒否リスト
情報
*
請求
情報取得
* @returns
請求
情報
*/
getModel
():
ClaimListModel
{
return
this
.
model
;
}
/**
* 取消依頼ダイアログを表示する前の処理
*/
onClickBefCancelReq
():
void
{
if
(
this
.
model
.
payRequest
===
1
)
{
//既に支払要求済の場合は取消させない
alert
(
"既に支払要求済となっています。"
)
return
;
}
this
.
isCancelOpen
=
true
;
}
/**
* 取消依頼ダイアログ
* @param event
*/
onClickCancelReq
(
event
:
any
):
void
{
if
(
event
.
detail
.
role
===
'confirm'
)
{
this
.
clickCancelReq
.
emit
(
this
.
model
);
}
this
.
isCancelOpen
=
false
;
}
/**
* 支払要求ダイアログを表示する前の処理
*/
onClickBefPayReq
():
void
{
if
(
this
.
model
.
cancelRequest
===
1
)
{
//既に取消依頼済の場合は支払要求させない
alert
(
"既に取消依頼済となっています。"
);
return
;
}
this
.
isPayOpen
=
true
;
}
...
...
src/app/claim-list/claim-list.page.html
View file @
33a687ba
...
...
@@ -27,8 +27,7 @@
</ion-grid>
@for(model of claimList;track model.tokenId) {
<div
style=
"margin-top:10px;margin-left:10px;margin-right:10px;"
>
<app-claim-info
[
model
]="
model
"
(
clickPayReq
)="
onClickPayReq
($
event
)"
(
clickCancelReq
)="
onClickCancelReq
($
event
)"
></app-claim-info>
<app-claim-info
[
model
]="
model
"
(
clickPayReq
)="
onClickPayReq
($
event
)"
></app-claim-info>
</div>
}
</ion-content>
\ No newline at end of file
src/app/claim-list/claim-list.page.ts
View file @
33a687ba
...
...
@@ -66,21 +66,6 @@ export class ClaimListPage implements OnInit {
}
}
/**
* 取消依頼
* @param model 請求情報
*/
onClickCancelReq
(
model
:
ClaimListModel
):
void
{
if
(
this
.
claimList
)
{
for
(
let
i
=
0
;
i
<
this
.
claimList
.
length
;
i
++
)
{
if
(
this
.
claimList
[
i
].
tokenId
===
model
.
tokenId
&&
this
.
claimList
[
i
].
earningDate
===
model
.
earningDate
)
{
this
.
claimList
[
i
].
cancelRequest
=
this
.
claimList
[
i
].
cancelRequest
===
0
?
1
:
0
;
break
;
}
}
}
}
onClickPrev
():
void
{
}
...
...
src/app/model/claim-list.model.ts
View file @
33a687ba
...
...
@@ -18,8 +18,6 @@ export class ClaimListModel {
ngFlag
:
number
=
0
;
//支払要求
payRequest
:
number
=
0
;
//取消依頼
cancelRequest
:
number
=
0
;
detailList
?:
ClaimDetailModel
[];
}
...
...
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