This commit is contained in:
parent
835e2b4165
commit
50b1cb31a6
@ -202,16 +202,25 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{-- 印刷処理用 JS --}}
|
{{-- 印刷処理用 JS --}}
|
||||||
<script>
|
<script>
|
||||||
// タグ発送宛名印刷
|
// タグ発送宛名印刷
|
||||||
function handlePrintLabels() {
|
function handlePrintLabels() {
|
||||||
var checkboxes = document.querySelectorAll('input[name="ids[]"]:checked');
|
var checkboxes = document.querySelectorAll('input[name="ids[]"]:checked');
|
||||||
if (checkboxes.length === 0) {
|
if (checkboxes.length === 0) {
|
||||||
alert('1件以上選択してください。');
|
$.alert({
|
||||||
|
title: '選択エラー',
|
||||||
|
content: '1件以上選択してください。'
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (confirm('タグ発送用宛名を印刷してよろしいですか?')) {
|
$.confirm({
|
||||||
|
title: '確認',
|
||||||
|
content: 'タグ発送用宛名を印刷してよろしいですか?',
|
||||||
|
buttons: {
|
||||||
|
はい: {
|
||||||
|
btnClass: 'btn-primary',
|
||||||
|
action: function () {
|
||||||
var form = document.createElement('form');
|
var form = document.createElement('form');
|
||||||
form.method = 'POST';
|
form.method = 'POST';
|
||||||
form.action = '/tagissue/print-unissued-labels';
|
form.action = '/tagissue/print-unissued-labels';
|
||||||
@ -232,6 +241,10 @@
|
|||||||
form.submit();
|
form.submit();
|
||||||
document.body.removeChild(form);
|
document.body.removeChild(form);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
いいえ: function () {}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// ステータス変更処理
|
// ステータス変更処理
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user