mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-27 04:46:34 +08:00
删除不必要的文件
This commit is contained in:
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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"
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user