tb-car-disincle-pay.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. <div>
  33. <el-row>
  34. <el-col span="12">
  35. <sa-info name="业务项" br><span style="font-weight: bold;">{{m.goodsName}}</span>
  36. </sa-info>
  37. </sa-info>
  38. <sa-info name="业务编号" br>{{m.no}}</sa-info>
  39. <sa-info name="客户名称" br>
  40. <span v-if="m.customerName">{{m.customerName}}</span>
  41. <span>-</span>
  42. </sa-info>
  43. </el-col>
  44. <el-col span="12">
  45. <sa-info name="作业时间" br>{{m.operateTime}}</sa-info>
  46. <sa-info name="录入时间" br>{{m.createTime}}</sa-info>
  47. <sa-info name="业务费用" br>{{m.itemPrice}}(元)</sa-info>
  48. </el-col>
  49. </el-row>
  50. <el-row>
  51. <el-col span="12">
  52. <div class="c-item">
  53. <label class="c-label"><span style="color: red;">*</span>收费方式:</label>
  54. <el-select v-model="m.payType">
  55. <el-option label="现场收费" :value="1"></el-option>
  56. <el-option label="扣预存款" :value="5"></el-option>
  57. </el-select>
  58. </div>
  59. <div class="c-item">
  60. <label class="c-label"><span style="color: red;">*</span>收费时间:</label>
  61. <el-date-picker type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
  62. v-model="m.payTime"></el-date-picker>
  63. </div>
  64. <div class="c-item">
  65. <label class="c-label">备注:</label>
  66. <el-input placeholder="请输入内容" v-model="m.remark">
  67. </el-input>
  68. </div>
  69. </el-col>
  70. <el-col span="12">
  71. <div class="c-item">
  72. <label class="c-label"><span style="color: red;">*</span>收费种类:</label>
  73. <el-select v-model="m.payChannelType">
  74. <el-option label="微信系统收款" :value="1"></el-option>
  75. <el-option label="微信门店收款" :value="2"></el-option>
  76. </el-select>
  77. </div>
  78. <div class="c-item">
  79. <label class="c-label"><span style="color: red;" v-if="m.payType==1">*</span>微信支付号:</label>
  80. <el-input placeholder="微信支付号" v-model="m.transactionId">
  81. </el-input>
  82. </div>
  83. </el-col>
  84. </el-row>
  85. <el-row v-for="(item,index) in m.cars">
  86. <el-divider content-position="left"><label
  87. style="font-weight: bold;">车牌号:{{item.carNo}}</label></el-divider>
  88. <el-col span="12">
  89. <div class="c-item">
  90. <label class="c-label">入场时间:</label>
  91. <el-date-picker type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
  92. v-model="item.realInTime"></el-date-picker>
  93. </div>
  94. <div class="c-item">
  95. <label class="c-label">离场时间:</label>
  96. <el-date-picker type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
  97. v-model="item.realOutTime"></el-date-picker>
  98. </div>
  99. </el-col>
  100. <el-col span="12">
  101. <sa-item name="入场通道" placeholder="请输入入场通道" v-model="item.inChannel" br>
  102. </sa-item>
  103. <sa-item name="离场通道" placeholder="请输入离场通道" v-model="item.outChannel" br>
  104. </sa-item>
  105. </el-col>
  106. </el-row>
  107. <el-row style="margin-top: 10px;">
  108. <el-collapse value='1'>
  109. <el-collapse-item name="1">
  110. <div slot="title">
  111. 具体业务项
  112. <label
  113. style="color: red; font-weight: bold;margin-left: 20px;">合计:({{m.itemPrice}}元)</label>
  114. </div>
  115. <el-table :data="tableData" style="width: 100%">
  116. <el-table-column prop="itemTypeName" label="收费项" width="180">
  117. </el-table-column>
  118. <el-table-column prop="itemName" label="收费明细" width="180">
  119. </el-table-column>
  120. <el-table-column prop="itemPrice" label="单价">
  121. </el-table-column>
  122. <el-table-column prop="unit" label="计费标准">
  123. </el-table-column>
  124. <el-table-column prop="num" label="数量">
  125. </el-table-column>
  126. <el-table-column prop="total" label="合计">
  127. </el-table-column>
  128. </el-table>
  129. </el-collapse-item>
  130. </el-collapse>
  131. </el-row>
  132. </div>
  133. </el-row>
  134. </el-form>
  135. </div>
  136. </div>
  137. <!-- ------- 底部按钮 ------- -->
  138. <div class="s-foot">
  139. <!-- <el-button class="c-btn" type="success" icon="el-icon" @click="print()">打印单据</el-button> -->
  140. <el-button type="success" @click="confirmFn">确认线下收费</el-button>
  141. </div>
  142. </div>
  143. <script>
  144. var app = new Vue({
  145. components: {
  146. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
  147. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  148. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  149. },
  150. el: '.vue-box',
  151. data: {
  152. id: sa.p('id', 0), // 获取数据ID
  153. m: {
  154. payType:1
  155. },
  156. tableData: [],
  157. upload: {
  158. visible: false,
  159. form: {
  160. id: '',
  161. ticket: ''
  162. }
  163. }
  164. },
  165. methods: {
  166. confirmFn() {
  167. let m = this.m;
  168. if(!m.payTime){
  169. sa.error('收费时间必填')
  170. return;
  171. }
  172. if(m.payType==1&&!m.transactionId){
  173. sa.error('线下收费支付微信号必填')
  174. return;
  175. }
  176. let cars = m.cars;
  177. let obj = {
  178. id: m.id,
  179. cars: JSON.stringify(cars),
  180. remark: m.remark,
  181. payType:m.payType,
  182. payChannelType:m.payChannelType,
  183. payTime:m.payTime,
  184. transactionId:m.transactionId
  185. }
  186. sa.confirm('是否确认该业务已线下收费?', function() {
  187. sa.ajax('/TbBusiness/manualConfirm', obj, function(res) {
  188. parent.app.f5(); // 刷新父页面列表
  189. sa.closeCurrIframe(); // 关闭本页
  190. }.bind(this))
  191. }.bind(this));
  192. },
  193. getInfo() {
  194. sa.ajax('/TbBusiness/getOtherBusinessById?id=' + this.id, function(res) {
  195. let data = res.data;
  196. data.remark = '线下收费'
  197. this.m = data;
  198. this.tableData = res.data.items;
  199. }.bind(this))
  200. }
  201. },
  202. mounted: function() {
  203. this.getInfo()
  204. }
  205. })
  206. </script>
  207. </body>
  208. </html>