Skip to content

Commit 686dc80

Browse files
committed
新規患者登録モーダルに利用規約同意をスキップするチェックボックスを追加
1 parent 4a6318c commit 686dc80

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

components/PatientRegister.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
患者にSMSを送信する
2424
</VCheckbox>
2525
</div>
26+
<div class="inputContainer">
27+
<VCheckbox v-model="checkSkipAcceptPolicy" name="skipAcceptPolicy">
28+
利用規約同意をスキップする
29+
</VCheckbox>
30+
</div>
2631
<ActionButton
2732
type="submit"
2833
:theme="btnTheme"
@@ -34,6 +39,7 @@
3439
mobileTel: inputMobileTel,
3540
memo: inputMemo,
3641
sendSMS: checkSendSMS,
42+
isAccepted: checkSkipAcceptPolicy,
3743
})
3844
"
3945
>
@@ -60,6 +66,7 @@ export default class PatientRegister extends Vue {
6066
inputMobileTel = ''
6167
inputMemo = ''
6268
checkSendSMS = false
69+
checkSkipAcceptPolicy = true
6370
6471
@Prop({ default: '' })
6572
errorMessage?: string

pages/center/_centerId/index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ export default class CenterId extends Vue {
219219
mobileTel: string
220220
memo: string | undefined
221221
sendSMS: boolean
222+
isAccepted: boolean
222223
}): void {
223224
this.isProcessing = true
224225
const phoneNumber = value.mobileTel.replace(/-/g, '')
@@ -229,6 +230,7 @@ export default class CenterId extends Vue {
229230
memo: value.memo,
230231
display: true,
231232
sendSMS: value.sendSMS,
233+
isAccepted: value.isAccepted,
232234
}
233235
patientsStore
234236
.create(newPatient)

types/component-interfaces/patient.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export interface ConsumePatient {
1616
memo?: string | undefined
1717
display: boolean
1818
sendSMS: boolean
19+
isAccepted: boolean
1920
}
2021
export interface RegisteredPatient {
2122
phone: string

0 commit comments

Comments
 (0)