tb-business-info.html 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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. .c-item {
  24. min-width: 270px;
  25. padding-right: 10px;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  31. <!-- ------- 内容部分 ------- -->
  32. <div class="s-body">
  33. <div class="c-panel">
  34. <el-form v-if="m">
  35. <el-row>
  36. <el-collapse value='1'>
  37. <el-collapse-item name="1">
  38. <div slot="title">
  39. 基础资料
  40. </div>
  41. <div>
  42. <el-row>
  43. <el-col span="12">
  44. <sa-info name="客户名称" br>{{m.customerName}}</sa-info>
  45. <sa-info name="业务编号" br>{{m.no}}</sa-info>
  46. <sa-info name="境外车牌号" br>{{m.cardNo}}</sa-info>
  47. <sa-info name="境外车规格" br>{{m.cardSize}}(米)</sa-info>
  48. <sa-info name="货物" br>{{m.goodsName}}</sa-info>
  49. <sa-info name="载重" br>{{m.netWeight}}(kg)</sa-info>
  50. <sa-info type="enum" name="支付状态" :value="m.payStatus"
  51. :jv="{1: '未支付', 2: '已支付未确认', 3: '已支付已确认'}" br></sa-info>
  52. <sa-info type="img" name="核酸报告" :value="m.nucleicReport" br></sa-info>
  53. <sa-info type="img" name="消杀合格证" :value="m.disinfectReport" br></sa-info>
  54. </el-col>
  55. <el-col span="12">
  56. <sa-info name="录入时间" br>{{m.createTime}}</sa-info>
  57. <sa-info name="录入人" br>{{m.createBy}}</sa-info>
  58. <sa-info name="中国车牌" br>{{m.chinaCarNo}}</sa-info>
  59. <sa-info name="业务费用" br>{{m.itemPrice}}(元)</sa-info>
  60. <sa-info name="合计费用" br>{{m.totalMoney}}(元)</sa-info>
  61. <sa-info name="支付时间" br>{{m.payTime}}</sa-info>
  62. </el-col>
  63. </el-row>
  64. </div>
  65. </el-collapse-item>
  66. </el-collapse>
  67. </el-row>
  68. <el-row>
  69. <el-collapse value='1'>
  70. <el-collapse-item name="1">
  71. <div slot="title">
  72. 车辆信息
  73. </div>
  74. <el-table :data="m.cars" style="width: 100%">
  75. <sa-td name="车牌号" prop="carNo"></sa-td>
  76. <sa-td width="130" name="支付状态" prop="pay" type="enum"
  77. :jv="{0: '未支付[#ff0000]', 1: '已支付[#005500]'}">
  78. </sa-td>
  79. <el-table-column label="停车费">
  80. <template slot-scope="s">
  81. <label v-if="s.row.money">{{s.row.money}}</label>
  82. <label v-else>-</label>
  83. </template>
  84. </el-table-column>
  85. <sa-td name="联系人" prop="driverName"></sa-td>
  86. <sa-td name="联系号码" prop="driverPhone"></sa-td>
  87. <sa-td name="入场时间" prop="realInTime" width=180></sa-td>
  88. <sa-td name="离场时间" prop="realOutTime" width=180></sa-td>
  89. </el-table>
  90. </el-collapse-item>
  91. </el-collapse>
  92. </el-row>
  93. <el-row>
  94. <el-collapse value='1'>
  95. <el-collapse-item name="1">
  96. <div slot="title">
  97. 具体业务项
  98. <label
  99. style="color: red; font-weight: bold;margin-left: 20px;">合计:({{m.itemPrice}}元)</label>
  100. </div>
  101. <el-table :data="tableData" style="width: 100%">
  102. <el-table-column prop="itemTypeName" label="业务分类" width="180">
  103. </el-table-column>
  104. <el-table-column prop="itemName" label="具体项目" width="180">
  105. </el-table-column>
  106. <el-table-column prop="itemPrice" label="单价">
  107. </el-table-column>
  108. <el-table-column prop="unit" label="计费标准">
  109. </el-table-column>
  110. <el-table-column prop="num" label="数量">
  111. </el-table-column>
  112. <el-table-column prop="total" label="合计">
  113. </el-table-column>
  114. <sa-td width="120" name="支付状态" prop="payStatus" type="enum"
  115. :jv="{0: '未支付[#ff0000]', 1: '已支付[#005500]'}">
  116. </sa-td>
  117. <el-table-column prop="payTime" label="支付时间" width=180>
  118. </el-table-column>
  119. <sa-td type="img-list" name="凭据" prop="ticket"></sa-td>
  120. <el-table-column label="其他凭据">
  121. <template slot-scope="s">
  122. <el-button class="c-btn" type="primary" @click="uploadFn(s.row)">上传
  123. </el-button>
  124. </template>
  125. </el-table-column>
  126. </el-table>
  127. </el-collapse-item>
  128. </el-collapse>
  129. </el-row>
  130. </el-form>
  131. </div>
  132. </div>
  133. <!-- ------- 底部按钮 ------- -->
  134. <div class="s-foot">
  135. <el-button class="c-btn" type="success" icon="el-icon" @click="print()">打印单据</el-button>
  136. <el-button type="success" @click="sa.closeCurrIframe()">关闭</el-button>
  137. </div>
  138. <el-dialog title="上传凭据" :visible.sync="upload.visible" width="400">
  139. <el-form>
  140. <sa-item type="img-list" name="凭据图片" v-model="upload.form.ticket" br></sa-item>
  141. </el-form>
  142. <span slot="footer" class="dialog-footer">
  143. <el-button @click="upload.visible=false">取 消</el-button>
  144. <el-button type="primary" @click="ok()">确 定</el-button>
  145. </span>
  146. </el-dialog>
  147. </div>
  148. <script>
  149. var app = new Vue({
  150. components: {
  151. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
  152. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  153. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  154. },
  155. el: '.vue-box',
  156. data: {
  157. id: sa.p('id', 0), // 获取数据ID
  158. m: null,
  159. tableData: [],
  160. upload: {
  161. visible: false,
  162. form: {
  163. id: '',
  164. ticket: ''
  165. }
  166. }
  167. },
  168. methods: {
  169. print: function () {
  170. sa.showIframe('打印收费单据', 'print.html?id=' + this.id, '1000px', '100%');
  171. },
  172. uploadFn(data) {
  173. Object.assign(this.upload, {
  174. visible: true,
  175. form: data
  176. })
  177. },
  178. ok() {
  179. if (!this.upload.form.ticket) {
  180. sa.error('请上传凭据');
  181. return;
  182. }
  183. sa.ajax('/TbBusinessItem/update', this.upload.form, function (resp) {
  184. this.upload.visible = false;
  185. }.bind(this))
  186. },
  187. getInfo() {
  188. sa.ajax('/TbBusiness/getById?id=' + this.id, function (res) {
  189. this.m = res.data;
  190. this.tableData = res.data.items;
  191. }.bind(this))
  192. }
  193. },
  194. mounted: function () {
  195. this.getInfo()
  196. }
  197. })
  198. </script>
  199. </body>
  200. </html>