掛單管理
This commit is contained in:
1 parent
8db6019ba3
commit
9e251fc7d4
12 files changed
+2197
-116
No files matched your search
@@ -2,7 +2,7 @@
|
||||
<div class="container-fluid">
|
||||
<nav>
|
||||
<!--<a href="create.aspx" class="btn btn-primary">新增</a>-->
|
||||
<button class="btn btn-primary" @click.prevent="changeViews()">新增</button>
|
||||
<button class="btn btn-primary" @click.prevent="changeViews('new',{})">新增</button>
|
||||
</nav>
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<label class="mb-0">掛單單號</label>
|
||||
@@ -26,10 +26,10 @@
|
||||
:item-class="item => item.is_timeout ? 'row-timeout' : ''"
|
||||
hide-default-footer>
|
||||
<template #item.actions="{item}">
|
||||
<button class="btn btn-primary">查看</button>
|
||||
<button class="btn btn-primary" @click.prevent="changeViews('view',item)">查看</button>
|
||||
<!--<a :href="'view.aspx?orderId='+item.guaDanOrderNo" class="btn btn-primary">查看</a>-->
|
||||
<button class="btn btn-secondary"
|
||||
:style="item.guadan_status?.code == 502 ? 'pointer-events: none; opacity: 0.5; cursor: not-allowed;' : ''">編輯</button>
|
||||
:style="item.guadan_status?.code == 502 ? 'pointer-events: none; opacity: 0.5; cursor: not-allowed;' : ''" @click.prevent="changeViews('edit',item)">編輯</button>
|
||||
<!--<a :href="'create.aspx?orderId='+item.guaDanOrderNo" class="btn btn-secondary"
|
||||
:style="item.guadan_status?.code == 502 ? 'pointer-events: none; opacity: 0.5; cursor: not-allowed;' : ''">編輯</a>-->
|
||||
<button class="btn btn-outline-danger" :style="item.guest_count != 0 ? 'pointer-events: none; opacity: 0.5; cursor: not-allowed;' : ''"
|
||||
@@ -147,9 +147,9 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
changeViews() {
|
||||
changeViews(action,item) {
|
||||
console.log("changeViews");
|
||||
this.$emit('custom-event', { action: 'new', item: "1" });
|
||||
this.$emit('custom-event', { action: action, item: item });
|
||||
},
|
||||
resetTableOptions() {
|
||||
this.options = {
|
||||
|
||||
Reference in new issue
Block a user