tb-business-car-info.html 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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/print/jquery-2.0.3.js" type="text/javascript"></script>
  15. <script src="../../static/kj/layer/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. <style type="text/css">
  18. .s-body {
  19. margin: 0;
  20. }
  21. .c-panel .c-label {
  22. width: 8em;
  23. }
  24. .title {
  25. text-align: center;
  26. font-size: 20px;
  27. font-weight: bold;
  28. padding: 0 0 20px 0px;
  29. }
  30. </style>
  31. </head>
  32. <body>
  33. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  34. <!-- ------- 内容部分 ------- -->
  35. <div class="s-body">
  36. <div class="c-panel">
  37. <el-form v-if="m">
  38. <el-row>
  39. <el-col span="12">
  40. <sa-info name="车牌号" br>{{m.carNo}}</sa-info>
  41. <sa-info name="车牌颜色" br>{{m.color}}</sa-info>
  42. <sa-info name="车牌规格(米)" br>{{m.carSize}}</sa-info>
  43. <sa-info name="入场时间" br>{{m.realInTime}}<label v-if="m.inTimeSupplement===1">(补)</label>
  44. </sa-info>
  45. <sa-info name="补录时间" br v-if="m.inTimeSupplementTime">{{m.inTimeSupplementTime}}
  46. </sa-info>
  47. <sa-info name="入场通道" br>{{m.inChannel}}</sa-info>
  48. <sa-info name="备注" br v-if="m.remark">{{m.remark}}</sa-info>
  49. <sa-info type="img" name="入场图片" :value="m.inImage" br></sa-info>
  50. </el-col>
  51. <el-col span="12">
  52. <sa-info name="离场时间" br>{{m.realOutTime}}<label
  53. v-if="m.outTimeSupplement===1">(补)</label></sa-info>
  54. <sa-info name="补录时间" br v-if="m.outTimeSupplementTime">{{m.outTimeSupplementTime}}
  55. </sa-info>
  56. <sa-info name="离场通道" br>{{m.outChannel}}</sa-info>
  57. <sa-info name="停车费" br>{{m.money}}元</sa-info>
  58. <sa-info name="重量" br>
  59. <label v-if="m.netWeight">{{m.netWeight}}吨</label>
  60. <label v-else>未过磅</label>
  61. </sa-info>
  62. <sa-info name="支付状态" br>{{m.payType}}</sa-info>
  63. <sa-info name="出场确认说明" br v-if="m.outRemark">{{m.outRemark}}</sa-info>
  64. <sa-info type="img" name="离场图片" :value="m.outImage" br></sa-info>
  65. </el-col>
  66. <!-- <el-col span=8>
  67. <sa-info name="重量" br>
  68. <label v-if="m.netWeight">{{m.netWeight}}吨</label>
  69. <label v-else>未过磅</label>
  70. </sa-info>
  71. <sa-info name="过磅费" br>{{m.netweightMoney}}元</sa-info>
  72. <sa-info style="margin-top: 0;" type="enum" name="审核状态" :value="m.payNetweightMoney"
  73. :jv="{0: '未支付', 1: '已支付'}" br>
  74. </sa-info>
  75. <sa-info style="margin-top: 0;" name="支付时间" br>
  76. {{m.netweightMoneyTime}}
  77. </sa-info>
  78. </el-col> -->
  79. </el-row>
  80. <el-row v-if="businessList.length>0">
  81. <el-collapse value='1'>
  82. <el-collapse-item name="1">
  83. <div slot="title">
  84. 业务列表
  85. </div>
  86. <el-table :data="businessList" style="width: 100%">
  87. <sa-td name="业务单号" prop="no" width="180"></sa-td>
  88. <sa-td name="客户名称" prop="customerName" width="200"></sa-td>
  89. <sa-td name="企业" prop="pickCustomerName" width="170"></sa-td>
  90. <sa-td name="业务项" prop="goodsName" width="160"></sa-td>
  91. <sa-td name="费用(元)" prop="itemPrice" width="120"></sa-td>
  92. <sa-td name="已支付(元)" prop="payMoney" width="140"></sa-td>
  93. <sa-td width="160" name="创建时间" prop="createTime" width="140"></sa-td>
  94. </el-table>
  95. </el-collapse-item>
  96. </el-collapse>
  97. </el-row>
  98. <el-row v-if="tableData.length>0">
  99. <el-collapse value='2'>
  100. <el-collapse-item name="2">
  101. <div slot="title">
  102. 具体业务项(<span style="color: red;">总费用{{totalMoney}}元</span>)
  103. </div>
  104. <el-table :data="tableData" style="width: 100%">
  105. <el-table-column prop="itemTypeName" label="收费项" width="180">
  106. </el-table-column>
  107. <el-table-column prop="itemName" label="收费明细" width="200">
  108. </el-table-column>
  109. <el-table-column prop="itemPrice" label="单价" width="170">
  110. </el-table-column>
  111. <el-table-column prop="unit" label="计费标准" width="160">
  112. </el-table-column>
  113. <el-table-column prop="num" label="数量">
  114. </el-table-column>
  115. <el-table-column prop="total" label="合计" width="120">
  116. </el-table-column>
  117. <el-table-column prop="cabinetNo" label="柜号">
  118. </el-table-column>
  119. <el-table-column prop="cabinetType" label="取/存">
  120. <template slot-scope="s">
  121. <label v-if="s.row.cabinetType==-1">-</label>
  122. <label v-if="s.row.cabinetType==0">存柜</label>
  123. <label v-if="s.row.cabinetType==1">取柜</label>
  124. </template>
  125. </el-table-column>
  126. <el-table-column prop="cabinetType" label="柜状态">
  127. <template slot-scope="s">
  128. <label v-if="s.row.cabinetStatus==0">未取</label>
  129. <label v-if="s.row.cabinetStatus==1">已取</label>
  130. </template>
  131. </el-table-column>
  132. <el-table-column prop="coldStartTime" label="开始时间" width="160">
  133. </el-table-column>
  134. <sa-td name="开始时间图片" width="130" prop="startImage" type="img">
  135. </sa-td>
  136. <el-table-column prop="coldEndTime" label="结束时间" width="160">
  137. </el-table-column>
  138. <sa-td name="结束时间图片" width="130" prop="endImage" type="img">
  139. </sa-td>
  140. <el-table-column prop="payStatus" label="支付状态" width="100">
  141. <template slot-scope="s">
  142. <span v-if="s.row.itemName=='人工、机械装卸车辆'">
  143. <span v-if="m.payUnloadMoney==0">未支付</span>
  144. <span v-else>已支付</span>
  145. </span>
  146. <span v-else>
  147. <span v-if="s.row.payStatus==1">已支付</span>
  148. <span v-else>未支付</span>
  149. </span>
  150. </template>
  151. </el-table-column>
  152. <el-table-column prop="refundMoney" label="退款金额">
  153. </el-table-column>
  154. <el-table-column prop="payTime" label="支付时间" width="140">
  155. </el-table-column>
  156. <el-table-column prop="remark" label="备注" width="140">
  157. </el-table-column>
  158. </el-table>
  159. </el-collapse-item>
  160. </el-collapse>
  161. </el-row>
  162. </el-form>
  163. </div>
  164. </div>
  165. <!-- ------- 底部按钮 ------- -->
  166. <div class="s-foot">
  167. <!-- <el-button v-if="sa.isAuth('tb-business-car-judge')&&m.businessType===1&&m.confirmJudge!=1"
  168. class="c-btn" type="success" icon="el-icon" @click="pass()">审核通过</el-button>
  169. <el-button v-if="sa.isAuth('tb-business-car-judge')&&m.businessType===1&&m.confirmJudge==1"
  170. class="c-btn" type="warning" icon="el-icon" @click="callback()">审核驳回</el-button> -->
  171. <el-button v-if="sa.isAuth('tb-business-car-print')&&m.pay===1&&m.businessType===1" type="success"
  172. @click="printFn()">打印</el-button>
  173. <el-button type="success" @click="sa.closeCurrIframe()">关闭</el-button>
  174. </div>
  175. </div>
  176. <script>
  177. var app = new Vue({
  178. components: {
  179. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
  180. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  181. },
  182. el: '.vue-box',
  183. data: {
  184. businessList: [],
  185. tableData: [],
  186. id: sa.p('id', 0), // 获取数据ID
  187. m: {}
  188. },
  189. computed: {
  190. totalMoney() {
  191. let businessList = this.businessList;
  192. let money = 0;
  193. for (let i in businessList) {
  194. money += parseFloat(businessList[i].itemPrice);
  195. }
  196. return money;
  197. }
  198. },
  199. methods: {
  200. pass() {
  201. sa.ajax('/TbBusinessCar/confirmJudgePass', {
  202. id: this.id
  203. }, function(res) {
  204. let msg = res.msg;
  205. if (msg) {
  206. sa.alert(msg, this.clean);
  207. return;
  208. }
  209. sa.alert('审核通过', this.clean);
  210. }.bind(this))
  211. },
  212. callback() {
  213. let that = this;
  214. layer.prompt({
  215. title: '填写审核意见'
  216. }, function(content, index) {
  217. layer.close(index);
  218. sa.ajax('/TbBusinessCar/callback', {
  219. id: that.id,
  220. judgeContent: content
  221. }, function(res) {
  222. sa.alert('已驳回', that.clean);
  223. })
  224. });
  225. },
  226. clean() {
  227. parent.app.f5();
  228. sa.closeCurrIframe();
  229. },
  230. printFn() {
  231. sa.showIframe('凭据打印', 'tb-business-car-print.html?businessCarId=' + this.id, '800px', '100%');
  232. },
  233. getItemsByCarId() {
  234. sa.ajax('/TbBusinessItem/getByBusinessCarId', {
  235. businessCarId: this.id
  236. }, function(resp) {
  237. this.tableData = resp.data;
  238. }.bind(this))
  239. },
  240. getByBusinessCarId() {
  241. sa.ajax('/TbBusiness/getByBusinessCarId', {
  242. businessCarId: this.id
  243. }, function(resp) {
  244. this.businessList = resp.data;
  245. }.bind(this))
  246. },
  247. getById() {
  248. sa.ajax('/TbBusinessCar/getById?id=' + this.id, function(res) {
  249. this.m = res.data;
  250. if (res.data == null) {
  251. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  252. }
  253. }.bind(this))
  254. }
  255. },
  256. mounted: function() {
  257. this.getById();
  258. this.getItemsByCarId();
  259. this.getByBusinessCarId();
  260. }
  261. })
  262. </script>
  263. </body>
  264. </html>