tb-car-disincle-error-add.html 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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 v-if="m.customerName">{{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 name="货物名称" br v-if="m.businessGoodsName">{{m.businessGoodsName}}</sa-info>
  46. <sa-info name="数量(件)" br v-if="m.businessGoodsNum">{{m.businessGoodsNum}}</sa-info>
  47. <sa-info name="补录人" br v-if="m.supplementBy">{{m.supplementBy}}
  48. </sa-info>
  49. <sa-info name="补录时间" br v-if="m.supplementTime">{{m.supplementTime}}
  50. </sa-info>
  51. <sa-info name="补录原因" br v-if="m.supplementReason">{{m.supplementReason}}
  52. </sa-info>
  53. <sa-info type="enum" name="OA流程" :value="m.sendOa"
  54. :jv="{0: '未发起', 1: '已发起'}" br v-if="m.supplementTime">
  55. </sa-info>
  56. </el-col>
  57. <el-col span="12">
  58. <sa-info name="企业" br v-if="m.pickCustomerName">{{m.pickCustomerName}}</sa-info>
  59. <sa-info name="业务编号" br>{{m.no}}</sa-info>
  60. <sa-info name="录入时间" br>{{m.createTime}}</sa-info>
  61. <!-- <sa-info name="录入人" br>{{m.createBy}}</sa-info> -->
  62. <sa-info style="margin-top: 0;" type="enum" name="支付状态"
  63. :value="m.payStatus" :jv="{1: '未支付', 2: '已支付未确认', 3: '已支付'}">
  64. </sa-info>
  65. <sa-info name="已支付金额(元)" br>{{m.payMoney}}</sa-info>
  66. <sa-info name="支付时间" br>{{m.payTime}}</sa-info>
  67. <sa-info name="发起人" br v-if="m.sendBy">{{m.sendBy}}</sa-info>
  68. <sa-info name="发起时间" br v-if="m.sendTime">{{m.sendTime}}</sa-info>
  69. <sa-info name="审批结果" br v-if="m.oaResult">{{m.oaResult}}</sa-info>
  70. <sa-info name="审批意见" br v-if="m.oaContent">{{m.oaContent}}</sa-info>
  71. </el-col>
  72. </el-row>
  73. </div>
  74. </el-collapse-item>
  75. </el-collapse>
  76. </el-row>
  77. <el-row>
  78. <el-collapse value='1'>
  79. <el-collapse-item name="1">
  80. <div slot="title">
  81. 车辆信息
  82. </div>
  83. <el-table :data="m.cars" style="width: 100%">
  84. <sa-td name="车牌号" prop="carNo"></sa-td>
  85. <sa-td name="类型" prop="carType"></sa-td>
  86. <sa-td name="载重(kg)" prop="netWeight"></sa-td>
  87. <sa-td name="规格(米)" prop="carSize"></sa-td>
  88. <sa-td width="120" name="车辆状态" prop="isLock" type="enum"
  89. :jv="{1: '锁定[#ff0000]', 0: '正常[#005500]'}">
  90. </sa-td>
  91. <sa-td name="入场时间" prop="realInTime" width=180></sa-td>
  92. <sa-td name="离场时间" prop="realOutTime" width=180></sa-td>
  93. <el-table-column label="停车费">
  94. <template slot-scope="s">
  95. <label v-if="s.row.money">{{s.row.money}}</label>
  96. <label v-else>-</label>
  97. </template>
  98. </el-table-column>
  99. <sa-td width="130" name="支付状态" prop="payType">
  100. </sa-td>
  101. <el-table-column prop="payTime" label="支付时间" width="150">
  102. </el-table-column>
  103. </el-table>
  104. </el-collapse-item>
  105. </el-collapse>
  106. </el-row>
  107. <el-row>
  108. <div style="display: flex;margin-top: 10px;">
  109. <div>
  110. 具体业务项
  111. <label
  112. style="color: red; font-weight: bold;margin-left: 20px;">合计:({{m.itemPrice}}元)
  113. </label>
  114. </div>
  115. <div>
  116. <el-button v-if="sa.isAuth('tb-business-item-supplement')" type="primary"
  117. style="position: absolute;right: 40px;" @click="supplementFn">补交费
  118. </el-button>
  119. </div>
  120. </div>
  121. <el-table :data="tableData" style="width: 100%;margin-top: 20px;">
  122. <el-table-column prop="itemTypeName" label="业务类型" width="180">
  123. </el-table-column>
  124. <el-table-column prop="itemName" label="车型" width="180">
  125. </el-table-column>
  126. <el-table-column prop="itemPrice" label="单价">
  127. </el-table-column>
  128. <el-table-column prop="unit" label="计费标准">
  129. </el-table-column>
  130. <el-table-column prop="num" label="数量">
  131. </el-table-column>
  132. <el-table-column prop="total" label="合计">
  133. </el-table-column>
  134. <sa-td width="120" name="支付状态" prop="payStatus" type="enum"
  135. :jv="{0: '未支付[#ff0000]', 1: '已支付[#005500]'}">
  136. </sa-td>
  137. <el-table-column prop="payTime" label="支付时间" width="150">
  138. </el-table-column>
  139. <sa-td width="120" name="订单状态" prop="hasError" type="enum"
  140. :jv="{0: '正常[#005500]', 1: '异常[#ff0000]'}">
  141. </sa-td>
  142. </el-table>
  143. </el-row>
  144. </el-form>
  145. </div>
  146. </div>
  147. <!-- ------- 底部按钮 ------- -->
  148. <div class="s-foot">
  149. <!-- <el-button class="c-btn" type="success" icon="el-icon" @click="print()">打印单据</el-button> -->
  150. <el-button type="success" @click="sa.closeCurrIframe()">关闭</el-button>
  151. </div>
  152. <el-dialog title="上传凭据" :visible.sync="upload.visible" width="400">
  153. <el-form>
  154. <sa-item type="img-list" name="凭据图片" v-model="upload.form.ticket" br></sa-item>
  155. </el-form>
  156. <span slot="footer" class="dialog-footer">
  157. <el-button @click="upload.visible=false">取 消</el-button>
  158. <el-button type="primary" @click="ok()">确 定</el-button>
  159. </span>
  160. </el-dialog>
  161. </div>
  162. <script>
  163. var app = new Vue({
  164. components: {
  165. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
  166. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  167. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  168. },
  169. el: '.vue-box',
  170. data: {
  171. id: sa.p('id', 0), // 获取数据ID
  172. m: null,
  173. tableData: [],
  174. upload: {
  175. visible: false,
  176. form: {
  177. id: '',
  178. ticket: ''
  179. }
  180. }
  181. },
  182. methods: {
  183. print: function() {
  184. sa.showIframe('打印收费单据', 'print.html?id=' + this.id, '1000px', '100%');
  185. },
  186. uploadFn(data) {
  187. Object.assign(this.upload, {
  188. visible: true,
  189. form: data
  190. })
  191. },
  192. del(data) {
  193. sa.confirm('是否确认删除该收费项?', function() {
  194. sa.ajax('/TbBusinessItem/del', {
  195. id: data.id
  196. }, function(res) {
  197. sa.alert('已删除', this.getInfo());
  198. }.bind(this));
  199. }.bind(this));
  200. },
  201. supplementFn() {
  202. sa.showIframe('补交费', 'tb-business-item-supplement.html?id=' + this.m.id, '600px', '70%');
  203. },
  204. getInfo() {
  205. sa.ajax('/TbBusiness/getOtherBusinessById?id=' + this.id, function(res) {
  206. this.m = res.data;
  207. this.tableData = res.data.items;
  208. }.bind(this))
  209. }
  210. },
  211. mounted: function() {
  212. this.getInfo()
  213. }
  214. })
  215. </script>
  216. </body>
  217. </html>