tb-business-judge.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. <script src="../../static/sa.js"></script>
  18. <script src="../../static/kj/upload-util.js"></script>
  19. <style type="text/css">
  20. .c-panel .c-label {
  21. width: 8em;
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  27. <!-- ------- 内容部分 ------- -->
  28. <div class="s-body">
  29. <div class="c-panel">
  30. <el-form v-if="m">
  31. <el-row>
  32. <el-collapse value='1'>
  33. <el-collapse-item name="1">
  34. <div slot="title">
  35. 基础资料
  36. </div>
  37. <div>
  38. <el-row>
  39. <el-col span="12">
  40. <sa-info name="客户名称" br>{{m.customerName}}
  41. </sa-info>
  42. <sa-info name="业务项目" br>{{m.goodsName}}</sa-info>
  43. <sa-info name="作业时间" br>{{m.operateTime}}</sa-info>
  44. <sa-info name="业务费用" br>{{m.itemPrice}}(元)</sa-info>
  45. <sa-info style="margin-top: 0;" type="enum" name="审核状态"
  46. :value="m.confirmJudge" :jv="{0: '未审核', 1: '审核通过', 2: '审核驳回'}" br>
  47. </sa-info>
  48. <sa-info style="margin-top: 0;" name="审核人" br>{{m.confirmJudgeBy}}
  49. </sa-info>
  50. </el-col>
  51. <el-col span="12">
  52. <sa-info name="货主" br>{{m.owner}}</sa-info>
  53. <sa-info name="业务编号" br>{{m.no}}</sa-info>
  54. <sa-info name="录入时间" br>{{m.createTime}}</sa-info>
  55. <sa-info name="录入人" br>{{m.createBy}}</sa-info>
  56. <sa-info name="审核时间" br>{{m.confirmJudgeTime}}</sa-info>
  57. <sa-info name="审核意见" br v-if="m.confirmJudgeContent">
  58. {{m.confirmJudgeContent}}
  59. </sa-info>
  60. </el-col>
  61. </el-row>
  62. </div>
  63. </el-collapse-item>
  64. </el-collapse>
  65. </el-row>
  66. <el-row>
  67. <el-collapse value='1'>
  68. <el-collapse-item name="1">
  69. <div slot="title">
  70. 车辆信息
  71. </div>
  72. <el-table :data="m.cars" style="width: 100%">
  73. <sa-td name="车牌号" prop="carNo"></sa-td>
  74. <sa-td name="类型" prop="carType"></sa-td>
  75. <sa-td name="载重(kg)" prop="netWeight"></sa-td>
  76. <sa-td name="规格(米)" prop="carSize"></sa-td>
  77. <sa-td width="120" name="车辆状态" prop="isLock" type="enum"
  78. :jv="{1: '锁定[#ff0000]', 0: '正常[#005500]'}">
  79. </sa-td>
  80. <sa-td name="入场时间" prop="realInTime" width=180></sa-td>
  81. <sa-td name="离场时间" prop="realOutTime" width=180></sa-td>
  82. <el-table-column label="停车费">
  83. <template slot-scope="s">
  84. <label v-if="s.row.money">{{s.row.money}}</label>
  85. <label v-else>-</label>
  86. </template>
  87. </el-table-column>
  88. </el-table>
  89. </el-collapse-item>
  90. </el-collapse>
  91. </el-row>
  92. <el-row>
  93. <el-collapse value='1'>
  94. <el-collapse-item name="1">
  95. <div slot="title">
  96. 具体业务项
  97. <label
  98. style="color: red; font-weight: bold;margin-left: 20px;">合计:({{m.itemPrice}}元)</label>
  99. </div>
  100. <el-table :data="tableData" style="width: 100%">
  101. <el-table-column prop="itemTypeName" label="收费项" width="180">
  102. </el-table-column>
  103. <el-table-column prop="itemName" label="收费明细" width="180">
  104. </el-table-column>
  105. <el-table-column prop="itemPrice" label="单价">
  106. </el-table-column>
  107. <el-table-column prop="unit" label="计费标准">
  108. </el-table-column>
  109. <el-table-column prop="num" label="数量">
  110. </el-table-column>
  111. <el-table-column prop="total" label="合计">
  112. </el-table-column>
  113. </el-table>
  114. </el-collapse-item>
  115. </el-collapse>
  116. </el-row>
  117. </el-form>
  118. </div>
  119. </div>
  120. <!-- ------- 底部按钮 ------- -->
  121. <div class="s-foot">
  122. <el-button class="c-btn" type="success" icon="el-icon" @click="pass()">审核通过</el-button>
  123. <el-button class="c-btn" type="warning" icon="el-icon" @click="callback()">审核驳回</el-button>
  124. <el-button type="primary" @click="sa.closeCurrIframe()">关闭</el-button>
  125. </div>
  126. </div>
  127. <script>
  128. var app = new Vue({
  129. components: {
  130. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
  131. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  132. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  133. },
  134. el: '.vue-box',
  135. data: {
  136. id: sa.p('id', 0), // 获取数据ID
  137. m: null,
  138. tableData: [],
  139. },
  140. methods: {
  141. pass() {
  142. sa.ajax('/TbBusiness/confirmJudgePass', {
  143. id: this.id
  144. }, function(res) {
  145. sa.alert('审核通过', this.clean);
  146. }.bind(this))
  147. },
  148. callback() {
  149. let that = this;
  150. layer.prompt({
  151. title: '填写审核意见'
  152. }, function(content, index) {
  153. layer.close(index);
  154. sa.ajax('/TbBusiness/callback', {
  155. id: that.id,
  156. judgeContent: content
  157. }, function(res) {
  158. sa.alert('业务已驳回', that.clean);
  159. })
  160. });
  161. },
  162. clean() {
  163. parent.app.f5();
  164. sa.closeCurrIframe();
  165. },
  166. ok() {
  167. },
  168. getInfo() {
  169. sa.ajax('/TbBusiness/getOtherBusinessById?id=' + this.id, function(res) {
  170. this.m = res.data;
  171. this.tableData = res.data.items;
  172. }.bind(this))
  173. }
  174. },
  175. mounted: function() {
  176. this.getInfo()
  177. }
  178. })
  179. </script>
  180. </body>
  181. </html>