tb-invoice-order-info.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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.businessName}}</sa-info>
  39. <sa-info name="业务订单号" br>{{m.businessNo}}</sa-info>
  40. <sa-info name="微信支付订单号" br>{{m.transactionId}}</sa-info>
  41. <sa-info name="账单金额" br>{{m.billMoney}}</sa-info>
  42. <sa-info name="开票时间" br>{{m.invoiceTime}}</sa-info>
  43. </el-col>
  44. <el-col span="12">
  45. <sa-info type="img" name="账单截图" :value="m.billImage" br></sa-info>
  46. <sa-info type="enum" name="开票状态" :value="m.status"
  47. :jv="{0: '未申请', 1: '已申请', 2: '已开票'}" br></sa-info>
  48. <sa-info name="创建时间" br>{{m.createTime}}</sa-info>
  49. </el-col>
  50. </el-row>
  51. </div>
  52. </el-collapse-item>
  53. </el-collapse>
  54. </el-row>
  55. <el-row>
  56. <el-collapse value='1'>
  57. <el-collapse-item name="1">
  58. <div slot="title">
  59. 收费明细
  60. </div>
  61. <el-table :data="feeDetails" style="width: 100%">
  62. <el-table-column label="收费项目">
  63. <template slot-scope="s">
  64. <b v-if="s.row.feeType == 1">核酸检测</b>
  65. <b v-if="s.row.feeType == 2">消杀作业</b>
  66. <b v-if="s.row.feeType == 3">装卸作业</b>
  67. <b v-if="s.row.feeType == 4">停车费</b>
  68. <b v-if="s.row.feeType == 5">过磅费</b>
  69. <b v-if="s.row.feeType == 6">入场管理费</b>
  70. <b v-if="s.row.feeType == 7">充电打冷作业</b>
  71. </template>
  72. </el-table-column>
  73. <el-table-column label="业务类型" prop="itemTypeName"></el-table-column>
  74. <el-table-column label="车型" prop="itemName"></el-table-column>
  75. <el-table-column label="车牌号" prop="carNo" width="90px"></el-table-column>
  76. <el-table-column label="数量" prop="num"></el-table-column>
  77. <el-table-column label="单价(元)" prop="unitPrice"></el-table-column>
  78. <el-table-column label="总价(元)" prop="itemPrice"></el-table-column>
  79. <el-table-column label="税率(%)">
  80. <template slot-scope="s">
  81. <span>{{s.row.taxRate * 100}}</span>
  82. </template>
  83. </el-table-column>
  84. <el-table-column label="税款(元)">
  85. <template slot-scope="s">
  86. <span>{{Number(s.row.taxPrice).toFixed(2)}}</span>
  87. </template>
  88. </el-table-column>
  89. <el-table-column label="不含税金额(元)">
  90. <template slot-scope="s">
  91. <span>{{Number(s.row.noTaxPrice).toFixed(2)}}</span>
  92. </template>
  93. </el-table-column>
  94. <el-table-column label="业务单号" width="140px">
  95. <template slot-scope="s">
  96. <span v-if="s.row.businessNo != null && s.row.businessNo != ''">{{s.row.businessNo}}</span>
  97. <span v-else>{{s.row.businessCarNo}}</span>
  98. </template>
  99. </el-table-column>
  100. <!-- <sa-td name="订单编号" prop="transactionId" width="220px" ></sa-td>-->
  101. <el-table-column label="微信支付业务单号" width="220px">
  102. <template slot-scope="s">
  103. <el-tooltip :content="s.row.transactionId" placement="bottom" effect="light">
  104. <el-button class="keyButton">{{ s.row.transactionId }}</el-button>
  105. </el-tooltip>
  106. </template>
  107. </el-table-column>
  108. </el-table>
  109. </el-collapse-item>
  110. </el-collapse>
  111. </el-row>
  112. </el-form>
  113. </div>
  114. </div>
  115. <!-- ------- 底部按钮 ------- -->
  116. <div class="s-foot">
  117. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  118. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  119. </div>
  120. </div>
  121. <script>
  122. var app = new Vue({
  123. components: {
  124. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  125. },
  126. el: '.vue-box',
  127. data: {
  128. id: sa.p('id', 0), // 获取数据ID
  129. m: null,
  130. feeDetails: ''
  131. },
  132. methods: {
  133. getDetails(tranId) {
  134. if(tranId){
  135. sa.ajax('/TbInvoiceOrder/getDetailsByTransId?transactionId=' + tranId, function (res) {
  136. this.feeDetails = res.data;
  137. }.bind(this))
  138. }else {
  139. if(this.m.preOrderNum){
  140. sa.ajax('/TbInvoiceOrder/getDetailsByBusinessId?preOrderNum=' + this.m.preOrderNum, function (res) {
  141. this.feeDetails = res.data;
  142. }.bind(this))
  143. }
  144. }
  145. }
  146. },
  147. mounted: function () {
  148. sa.ajax('/TbInvoiceOrder/getById?id=' + this.id, function (res) {
  149. this.m = res.data;
  150. this.getDetails(this.m.transactionId);
  151. if (res.data == null) {
  152. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  153. }
  154. }.bind(this))
  155. }
  156. })
  157. </script>
  158. </body>
  159. </html>