123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>开票信息表-详情</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport"
- content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
- <!-- 所有的 css js 资源 -->
- <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
- <link rel="stylesheet" href="../../static/sa.css">
- <script src="../../static/kj/vue.min.js"></script>
- <script src="../../static/kj/element-ui/index.js"></script>
- <script src="../../static/kj/httpVueLoader.js"></script>
- <script src="../../static/kj/jquery.min.js"></script>
- <script src="../../static/kj/layer/layer.js"></script>
- <script src="../../static/sa.js"></script>
- <style type="text/css">
- .c-panel .c-label {
- width: 8em;
- }
- </style>
- </head>
- <body>
- <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
- <!-- ------- 内容部分 ------- -->
- <div class="s-body">
- <div class="c-panel">
- <el-form v-if="m">
- <el-row>
- <el-collapse value='1'>
- <el-collapse-item name="1">
- <div slot="title">
- 基础信息
- </div>
- <div>
- <el-row>
- <el-col span="12">
- <sa-info name="客户名称" br>{{m.customerName}}</sa-info>
- <sa-info name="账单金额" br>{{m.totalMoney}}</sa-info>
- <sa-info type="enum" name="支付状态" :value="m.status" :jv="{0: '未开票', 1: '已开票'}"
- br></sa-info>
- <sa-info name="开票时间" br>{{m.invoiceTime}}</sa-info>
- <sa-info name="发票号" br>{{m.invoiceNo}}</sa-info>
- <sa-info name="创建时间" br>{{m.createTime}}</sa-info>
- </el-col>
- <el-col span="12">
- <sa-info name="主体名称" br>{{m.entityName}}</sa-info>
- <sa-info name="税号" br>{{m.taxIdNo}}</sa-info>
- <sa-info name="地址" br>{{m.address}}</sa-info>
- <sa-info name="电话" br>{{m.phone}}</sa-info>
- <sa-info name="开户银行" br>{{m.bank}}</sa-info>
- <sa-info name="银行账号" br>{{m.bankNo}}</sa-info>
- <sa-info name="邮箱" br>{{m.email}}</sa-info>
- </el-col>
- </el-row>
- </div>
- </el-collapse-item>
- </el-collapse>
- </el-row>
- <el-row>
- <el-collapse value='1'>
- <el-collapse-item name="1">
- <div slot="title">
- 开票明细
- </div>
- <el-table :data="feeDetails" style="width: 100%">
- <el-table-column label="业务类型" prop="itemTypeName"></el-table-column>
- <el-table-column label="数量" prop="num"></el-table-column>
- <el-table-column label="单价(元)" prop="unitPrice"></el-table-column>
- <el-table-column label="总价(元)" prop="itemPrice"></el-table-column>
- <el-table-column label="税率(%)">
- <template slot-scope="s">
- <span>{{s.row.taxRate * 100}}</span>
- </template>
- </el-table-column>
- <el-table-column label="税款(元)">
- <template slot-scope="s">
- <span>{{Number(s.row.taxPrice).toFixed(2)}}</span>
- </template>
- </el-table-column>
- <el-table-column label="不含税金额(元)">
- <template slot-scope="s">
- <span>{{Number(s.row.noTaxPrice).toFixed(2)}}</span>
- </template>
- </el-table-column>
- </el-table>
- </el-collapse-item>
- </el-collapse>
- </el-row>
- </el-form>
- </div>
- </div>
- <!-- ------- 底部按钮 ------- -->
- <div class="s-foot">
- <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
- <el-button @click="sa.closeCurrIframe()">取消</el-button>
- </div>
- </div>
- <script>
- var app = new Vue({
- components: {
- "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
- },
- el: '.vue-box',
- data: {
- id: sa.p('id', 0), // 获取数据ID
- m: null,
- feeDetails: '',
- },
- methods: {
- getDetails() {
- sa.ajax('/TbInvoiceInfo/getDetailsById?id=' + this.id, function (res) {
- this.feeDetails = res.data;
- }.bind(this))
- }
- },
- mounted: function () {
- sa.ajax('/TbInvoiceInfo/getById?id=' + this.id, function (res) {
- this.m = res.data;
- if (res.data == null) {
- sa.alert('未能查找到 id=' + this.id + " 详细数据");
- }
- }.bind(this))
- this.getDetails();
- }
- })
- </script>
- </body>
- </html>
|