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