删除不必要的文件

This commit is contained in:
刘祥超
2021-10-26 20:43:47 +08:00
parent 6d6659eee1
commit 94cc29f227
6 changed files with 13 additions and 61 deletions

View File

@@ -1,4 +0,0 @@
<first-menu>
<menu-item href="/finance/bills" code="index">账单</menu-item>
<menu-item href="/finance/bills/generate" code="generate">生成账单</menu-item>
</first-menu>

View File

@@ -1,8 +0,0 @@
{$layout}
{$template "menu"}
<div class="margin"></div>
<div>
<button type="button" class="ui primary button" @click.prevent="generateBills()">生成上个月({{month}})账单</button>
<p class="comment">多次点击不会重复生成同样的账单。</p>
</div>

View File

@@ -1,16 +0,0 @@
Tea.context(function () {
this.generateBills = function () {
let that = this
teaweb.confirm("确定要生成上个月的账单吗?", function () {
that.$post(".generate")
.params({
month: that.month
})
.success(function () {
teaweb.success("生成成功", function () {
window.location = "/finance/bills"
})
})
})
}
})

View File

@@ -1,30 +0,0 @@
{$layout}
{$template "menu"}
<p class="comment" v-if="bills.length == 0">暂时还没有账单。</p>
<table class="ui table selectable" v-if="bills.length > 0">
<thead>
<tr>
<th class="width10">用户</th>
<th class="width10">月份</th>
<th class="width10">项目</th>
<th class="width10">金额</th>
<th>描述</th>
<th class="width10">已支付</th>
</tr>
</thead>
<tr v-for="bill in bills">
<td>{{bill.user.fullname}}</td>
<td>{{bill.month}}</td>
<td>{{bill.typeName}}</td>
<td>¥{{bill.amount}}元</td>
<td>{{bill.description}}</td>
<td>
<span class="green" v-if="bill.isPaid">Y</span>
<span v-else class="disabled">N</span>
</td>
</tr>
</table>
<div class="page" v-html="page"></div>