tb-invoice-info-info.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>开票信息表-详情</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
  8. <!-- 所有的 css js 资源 -->
  9. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="../../static/kj/vue.min.js"></script>
  12. <script src="../../static/kj/element-ui/index.js"></script>
  13. <script src="../../static/kj/httpVueLoader.js"></script>
  14. <script src="../../static/kj/jquery.min.js"></script>
  15. <script src="../../static/kj/layer/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. <style type="text/css">
  18. .c-panel .c-label {
  19. width: 8em;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  25. <!-- ------- 内容部分 ------- -->
  26. <div class="s-body">
  27. <div class="c-panel">
  28. <el-form v-if="m">
  29. <el-row>
  30. <el-collapse value='1'>
  31. <el-collapse-item name="1">
  32. <div slot="title">
  33. 基础信息
  34. </div>
  35. <div>
  36. <el-row>
  37. <el-col span="12">
  38. <sa-info name="客户名称" br>{{m.customerName}}</sa-info>
  39. <sa-info name="账单金额" br>{{m.totalMoney}}</sa-info>
  40. <sa-info type="enum" name="支付状态" :value="m.status" :jv="{0: '未开票', 1: '已开票'}"
  41. br></sa-info>
  42. <sa-info name="开票时间" br>{{m.invoiceTime}}</sa-info>
  43. <sa-info name="发票号" br>{{m.invoiceNo}}</sa-info>
  44. <sa-info name="创建时间" br>{{m.createTime}}</sa-info>
  45. </el-col>
  46. <el-col span="12">
  47. <sa-info name="主体名称" br>{{m.entityName}}</sa-info>
  48. <sa-info name="税号" br>{{m.taxIdNo}}</sa-info>
  49. <sa-info name="地址" br>{{m.address}}</sa-info>
  50. <sa-info name="电话" br>{{m.phone}}</sa-info>
  51. <sa-info name="开户银行" br>{{m.bank}}</sa-info>
  52. <sa-info name="银行账号" br>{{m.bankNo}}</sa-info>
  53. <sa-info name="邮箱" br>{{m.email}}</sa-info>
  54. </el-col>
  55. </el-row>
  56. </div>
  57. </el-collapse-item>
  58. </el-collapse>
  59. </el-row>
  60. <el-row>
  61. <el-collapse value='1'>
  62. <el-collapse-item name="1">
  63. <div slot="title">
  64. 开票明细
  65. </div>
  66. <el-table :data="feeDetails" style="width: 100%">
  67. <el-table-column label="业务类型" prop="itemTypeName"></el-table-column>
  68. <el-table-column label="数量" prop="num"></el-table-column>
  69. <el-table-column label="单价(元)" prop="unitPrice"></el-table-column>
  70. <el-table-column label="总价(元)" prop="itemPrice"></el-table-column>
  71. <el-table-column label="税率(%)">
  72. <template slot-scope="s">
  73. <span>{{s.row.taxRate * 100}}</span>
  74. </template>
  75. </el-table-column>
  76. <el-table-column label="税款(元)">
  77. <template slot-scope="s">
  78. <span>{{Number(s.row.taxPrice).toFixed(2)}}</span>
  79. </template>
  80. </el-table-column>
  81. <el-table-column label="不含税金额(元)">
  82. <template slot-scope="s">
  83. <span>{{Number(s.row.noTaxPrice).toFixed(2)}}</span>
  84. </template>
  85. </el-table-column>
  86. </el-table>
  87. </el-collapse-item>
  88. </el-collapse>
  89. </el-row>
  90. </el-form>
  91. </div>
  92. </div>
  93. <!-- ------- 底部按钮 ------- -->
  94. <div class="s-foot">
  95. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  96. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  97. </div>
  98. </div>
  99. <script>
  100. var app = new Vue({
  101. components: {
  102. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  103. },
  104. el: '.vue-box',
  105. data: {
  106. id: sa.p('id', 0), // 获取数据ID
  107. m: null,
  108. feeDetails: '',
  109. },
  110. methods: {
  111. getDetails() {
  112. sa.ajax('/TbInvoiceInfo/getDetailsById?id=' + this.id, function (res) {
  113. this.feeDetails = res.data;
  114. }.bind(this))
  115. }
  116. },
  117. mounted: function () {
  118. sa.ajax('/TbInvoiceInfo/getById?id=' + this.id, function (res) {
  119. this.m = res.data;
  120. if (res.data == null) {
  121. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  122. }
  123. }.bind(this))
  124. this.getDetails();
  125. }
  126. })
  127. </script>
  128. </body>
  129. </html>