|
@@ -70,7 +70,14 @@
|
|
<span class="cell__value">${{ item.payment_product }}</span>
|
|
<span class="cell__value">${{ item.payment_product }}</span>
|
|
</div>
|
|
</div>
|
|
<div v-if="item.discount_amount" class="cell">
|
|
<div v-if="item.discount_amount" class="cell">
|
|
- <span class="cell__label">Discount</span>
|
|
|
|
|
|
+ <span class="cell__label">{{
|
|
|
|
+ [
|
|
|
|
+ '',
|
|
|
|
+ 'Manager Discount',
|
|
|
|
+ 'Referer Discount',
|
|
|
|
+ 'Repeat Customer Discount',
|
|
|
|
+ ][item.discount_type] || 'Discount'
|
|
|
|
+ }}</span>
|
|
<span class="cell__value highlight"
|
|
<span class="cell__value highlight"
|
|
>-${{ item.discount_amount }}</span
|
|
>-${{ item.discount_amount }}</span
|
|
>
|
|
>
|
|
@@ -109,6 +116,7 @@
|
|
<script>
|
|
<script>
|
|
import { defineComponent } from 'vue'
|
|
import { defineComponent } from 'vue'
|
|
import * as api from '@/service/order'
|
|
import * as api from '@/service/order'
|
|
|
|
+import Dialog from '@/components/dialog'
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'OrderList',
|
|
name: 'OrderList',
|
|
@@ -129,6 +137,7 @@ export default defineComponent({
|
|
},
|
|
},
|
|
|
|
|
|
async deleteOrder(item) {
|
|
async deleteOrder(item) {
|
|
|
|
+ await Dialog.confirm('Confirm to delete?')
|
|
await api.deleteOrder(item.id)
|
|
await api.deleteOrder(item.id)
|
|
this.list.splice(this.list.indexOf(item), 1)
|
|
this.list.splice(this.list.indexOf(item), 1)
|
|
},
|
|
},
|