1. 新增法會活動品項:牌位陽上與超度人數限制功能
2. 信眾資料新增全年性選項以及開始參加活動日期,自動報名並代入前一次的報名資料(品項)
This commit is contained in:
@@ -165,6 +165,8 @@
|
||||
{ text: '* 品項名稱', value: 'act_item_selected.text', sortable: false },
|
||||
{ text: '預設金額', value: 'price', sortable: false },
|
||||
{ text: '數量', value: 'qty', sortable: false },
|
||||
{ text: '陽上/祈福人數限制', value: 'limit_yang', sortable: false },
|
||||
{ text: '超渡人數限制', value: 'limit_chao', sortable: false },
|
||||
{ text: '', value: 'actions', sortable: false, width: "200px" },
|
||||
],
|
||||
footersDetail: {
|
||||
@@ -191,6 +193,10 @@
|
||||
price: 0,
|
||||
qty: 0,
|
||||
files: [],
|
||||
has_yang_limit: false,
|
||||
has_chao_limit: false,
|
||||
yang_limit_count: 0,
|
||||
chao_limit_count: 0,
|
||||
},
|
||||
defaultItem: {
|
||||
id: 0,
|
||||
@@ -203,6 +209,10 @@
|
||||
price: 0,
|
||||
qty: 0,
|
||||
files: [],
|
||||
has_yang_limit: false,
|
||||
has_chao_limit: false,
|
||||
yang_limit_count: 0,
|
||||
chao_limit_count: 0,
|
||||
},
|
||||
//列印
|
||||
data_table: {
|
||||
@@ -434,9 +444,8 @@
|
||||
this.close();
|
||||
},
|
||||
spliceNullData() {
|
||||
|
||||
//if new data ,then splice it
|
||||
if (this.editedItem.num == 0) {
|
||||
if (this.editedItem.num == 0) {
|
||||
for (var i = 0; i < this.desserts.map(x => x.id).length; i++) {
|
||||
if (this.desserts[i].id == this.editedItem.id) {
|
||||
this.desserts.splice(i, 1); break;
|
||||
@@ -482,6 +491,10 @@
|
||||
actItem_num: this.editedItem.act_item_selected.val,
|
||||
price: this.editedItem.price,
|
||||
qty: this.editedItem.qty,
|
||||
has_yang_limit: this.editedItem.has_yang_limit,
|
||||
has_chao_limit: this.editedItem.has_chao_limit,
|
||||
yang_limit_count: this.editedItem.yang_limit_count,
|
||||
chao_limit_count: this.editedItem.chao_limit_count,
|
||||
}
|
||||
axios
|
||||
.post(HTTP_HOST + 'api/activity/SaveRelatingData', pro_order_detail)
|
||||
@@ -1019,6 +1032,54 @@
|
||||
<v-text-field v-model="editedItem.qty" :hide-details="true" dense single-line v-if="item.id === editedItem.id" ></v-text-field>
|
||||
<span v-else>{{item.qty}}</span>
|
||||
</template>
|
||||
|
||||
<template v-slot:item.limit_yang="{ item }">
|
||||
<div class="d-flex align-center">
|
||||
<v-text-field v-model="editedItem.yang_limit_count" v-if="item.id === editedItem.id"
|
||||
type="number"
|
||||
dense
|
||||
:hide-details="true"
|
||||
single-line
|
||||
:disabled="!editedItem.has_yang_limit"
|
||||
suffix="人" >
|
||||
</v-text-field>
|
||||
<v-checkbox v-if="item.id === editedItem.id"
|
||||
v-model="editedItem.has_yang_limit"
|
||||
label="不限"
|
||||
hide-details
|
||||
class="ml-2 mt-0"
|
||||
:true-value="false"
|
||||
:false-value="true"
|
||||
:disabled="item.id !== editedItem.id">
|
||||
</v-checkbox>
|
||||
<span v-if="item.id !== editedItem.id && !item.has_yang_limit">不限</span>
|
||||
<span v-if="item.id !== editedItem.id && item.has_yang_limit">{{item.yang_limit_count}} 人</span>
|
||||
</div>
|
||||
</template>
|
||||
<template v-slot:item.limit_chao="{ item }">
|
||||
<div class="d-flex align-center">
|
||||
<v-text-field v-model="editedItem.chao_limit_count" v-if="item.id === editedItem.id"
|
||||
type="number"
|
||||
dense
|
||||
:hide-details="true"
|
||||
single-line
|
||||
:disabled="!editedItem.has_chao_limit"
|
||||
suffix="人" >
|
||||
</v-text-field>
|
||||
<v-checkbox v-if="item.id === editedItem.id"
|
||||
v-model="editedItem.has_chao_limit"
|
||||
label="不限"
|
||||
hide-details
|
||||
class="ml-2 mt-0"
|
||||
:true-value="false"
|
||||
:false-value="true"
|
||||
:disabled="item.id !== editedItem.id">
|
||||
</v-checkbox>
|
||||
<span v-if="item.id !== editedItem.id && !item.has_chao_limit">不限</span>
|
||||
<span v-if="item.id !== editedItem.id && item.has_chao_limit">{{item.chao_limit_count}} 人</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template v-slot:item.actions="{ item }">
|
||||
<template v-if="item.id === editedItem.id">
|
||||
<v-icon color="red" class="mr-2" @click="cancel">
|
||||
|
||||
Reference in New Issue
Block a user