|
@@ -26,22 +26,27 @@
|
|
|
<el-table-column label="会员编号" prop="membershipNo" min-width="100"/>
|
|
<el-table-column label="会员编号" prop="membershipNo" min-width="100"/>
|
|
|
<el-table-column label="账户余额(元)" prop="accountAmount" min-width="100"/>
|
|
<el-table-column label="账户余额(元)" prop="accountAmount" min-width="100"/>
|
|
|
<el-table-column label="入会时间" prop="time" min-width="120"/>
|
|
<el-table-column label="入会时间" prop="time" min-width="120"/>
|
|
|
-<!-- <el-table-column label="操作" min-width="180" fixed="right">-->
|
|
|
|
|
-<!-- <template #default="{ row }">-->
|
|
|
|
|
-<!-- -->
|
|
|
|
|
-<!-- </template>-->
|
|
|
|
|
-<!-- </el-table-column>-->
|
|
|
|
|
|
|
+ <el-table-column label="操作" min-width="180" fixed="right">
|
|
|
|
|
+ <template #default="{ row }">
|
|
|
|
|
+ <el-button type="primary" link @click="showChargeConsumeRecord(row)">余额变动记录</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<div class="flex justify-end mt-4">
|
|
<div class="flex justify-end mt-4">
|
|
|
<pagination v-model="pager" @change="getLists"/>
|
|
<pagination v-model="pager" @change="getLists"/>
|
|
|
</div>
|
|
</div>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <ChargeConsumeRecord @init="init()" ref="chargeConsumeRecordRef"></ChargeConsumeRecord>
|
|
|
</template>
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { useElabPaging } from '@/hooks/useElabPaging'
|
|
import { useElabPaging } from '@/hooks/useElabPaging'
|
|
|
import feedback from '@/utils/feedback'
|
|
import feedback from '@/utils/feedback'
|
|
|
import {queryMemberUser} from "@/api/membership";
|
|
import {queryMemberUser} from "@/api/membership";
|
|
|
|
|
+import ChargeConsumeRecord from './chargeConsumeRecord.vue'
|
|
|
|
|
+
|
|
|
|
|
+const router = useRouter()
|
|
|
|
|
+const chargeConsumeRecordRef = ref<InstanceType<typeof ChargeConsumeRecord>>()
|
|
|
|
|
|
|
|
const queryParams = reactive({
|
|
const queryParams = reactive({
|
|
|
mobile: ''
|
|
mobile: ''
|
|
@@ -100,5 +105,9 @@ const changeStatus = async (id: number, status: any) => {
|
|
|
getLists()
|
|
getLists()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+const showChargeConsumeRecord = async (row: any) => {
|
|
|
|
|
+ chargeConsumeRecordRef.value?.open(row)
|
|
|
|
|
+}
|
|
|
getLists()
|
|
getLists()
|
|
|
</script>
|
|
</script>
|