tb-car-disincle-info.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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="8">
  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">
  46. {{m.businessGoodsName}}
  47. </sa-info>
  48. <sa-info name="数量(件)" br v-if="m.businessGoodsNum">
  49. {{m.businessGoodsNum}}
  50. </sa-info>
  51. <sa-info name="补录人" br v-if="m.supplementBy">{{m.supplementBy}}
  52. </sa-info>
  53. <sa-info name="补录时间" br v-if="m.supplementTime">{{m.supplementTime}}
  54. </sa-info>
  55. <sa-info name="补录原因" br v-if="m.supplementReason">{{m.supplementReason}}
  56. </sa-info>
  57. <sa-info type="enum" name="OA流程" :value="m.sendOa"
  58. :jv="{0: '未发起', 1: '已发起'}" br v-if="m.supplementTime">
  59. </sa-info>
  60. </el-col>
  61. <el-col span="8">
  62. <sa-info name="企业" br v-if="m.pickCustomerName">{{m.pickCustomerName}}
  63. </sa-info>
  64. <sa-info name="业务编号" br>{{m.no}}</sa-info>
  65. <sa-info name="录入时间" br>{{m.createTime}}</sa-info>
  66. <!-- <sa-info name="录入人" br>{{m.createBy}}</sa-info> -->
  67. <!-- <sa-info style="margin-top: 0;" type="enum" name="支付状态"
  68. :value="m.payStatus" :jv="{1: '未支付', 2: '已支付未确认', 3: '已支付'}">
  69. </sa-info> -->
  70. <sa-info name="已支付金额(元)" br>{{m.payMoney}}</sa-info>
  71. <sa-info name="最近支付时间" br>{{m.payTime}}</sa-info>
  72. <sa-info name="发起人" br v-if="m.sendBy">{{m.sendBy}}</sa-info>
  73. <sa-info name="发起时间" br v-if="m.sendTime">{{m.sendTime}}</sa-info>
  74. <sa-info name="审批结果" br v-if="m.oaResult">{{m.oaResult}}</sa-info>
  75. <sa-info name="审批意见" br v-if="m.oaContent">{{m.oaContent}}</sa-info>
  76. </el-col>
  77. <el-col span=8 >
  78. <sa-info style="margin-top: 0;" type="enum" name="审核状态" :value="m.confirmJudge"
  79. :jv="{0: '未审核', 1: '审核通过', 2: '审核驳回'}" br>
  80. </sa-info>
  81. <sa-info style="margin-top: 0;" name="审核人" br>
  82. {{m.judgeBy}}
  83. </sa-info>
  84. <sa-info name="审核时间" br>{{m.confirmJudgeTime}}</sa-info>
  85. <sa-info name="审核意见" br v-if="m.confirmJudgeContent">
  86. {{m.confirmJudgeContent}}
  87. </sa-info>
  88. </el-col>
  89. </el-row>
  90. </div>
  91. </el-collapse-item>
  92. </el-collapse>
  93. </el-row>
  94. <el-row>
  95. <el-collapse value='1'>
  96. <el-collapse-item name="1">
  97. <div slot="title">
  98. 车辆信息
  99. </div>
  100. <el-table :data="m.cars" style="width: 100%">
  101. <sa-td name="车牌号" prop="carNo"></sa-td>
  102. <sa-td name="类型" prop="carType"></sa-td>
  103. <el-table-column label="重量(吨)">
  104. <template slot-scope="s">
  105. <label v-if="!s.row.netWeight">未过磅</label>
  106. <label v-else>{{s.row.netWeight}}</label>
  107. </template>
  108. </el-table-column>
  109. <sa-td name="司机姓名" prop="driverName" v-if="m.goodsCode=='A10003'"></sa-td>
  110. <sa-td name="司机号码" prop="driverPhone" width=130 v-if="m.goodsCode=='A10003'"></sa-td>
  111. <sa-td name="入场时间" prop="realInTime" width=180></sa-td>
  112. <sa-td name="离场时间" prop="realOutTime" width=180></sa-td>
  113. <el-table-column label="停车费">
  114. <template slot-scope="s">
  115. <label v-if="s.row.money">{{s.row.money}}</label>
  116. <label v-else>-</label>
  117. </template>
  118. </el-table-column>
  119. <sa-td width="130" name="支付状态" prop="payType">
  120. </sa-td>
  121. <el-table-column prop="payTime" label="支付时间" width="150">
  122. </el-table-column>
  123. </el-table>
  124. </el-collapse-item>
  125. </el-collapse>
  126. </el-row>
  127. <el-row>
  128. <div style="display: flex;margin-top: 10px;">
  129. <div>
  130. 具体业务项
  131. <label
  132. style="color: red; font-weight: bold;margin-left: 20px;">合计:({{m.itemPrice}}元)
  133. </label>
  134. </div>
  135. <div>
  136. <el-button v-if="sa.isAuth('tb-business-item-supplement&&m.hasError==1')" type="primary"
  137. style="position: absolute;right: 40px;" @click="supplementFn">补录单
  138. </el-button>
  139. </div>
  140. </div>
  141. <el-table :data="tableData" style="width: 100%;margin-top: 20px;">
  142. <el-table-column prop="itemTypeName" label="业务类型">
  143. </el-table-column>
  144. <el-table-column prop="itemName" label="车型" >
  145. </el-table-column>
  146. <el-table-column prop="itemPrice" label="单价">
  147. </el-table-column>
  148. <el-table-column prop="unit" label="计费标准">
  149. </el-table-column>
  150. <el-table-column prop="cabinetNo" label="柜号" v-if="m.goodsCode=='A10003'">
  151. </el-table-column>
  152. <el-table-column prop="cabinetType" label="取/存" v-if="m.goodsCode=='A10003'">
  153. <template slot-scope="s">
  154. <label v-if="s.row.cabinetType==-1">-</label>
  155. <label v-if="s.row.cabinetType==0">存柜</label>
  156. <label v-if="s.row.cabinetType==1">取柜</label>
  157. </template>
  158. </el-table-column>
  159. <el-table-column prop="cabinetType" label="柜状态" v-if="m.goodsCode=='A10003'">
  160. <template slot-scope="s">
  161. <label v-if="s.row.cabinetStatus==0">未取</label>
  162. <label v-if="s.row.cabinetStatus==1">已取</label>
  163. </template>
  164. </el-table-column>
  165. <el-table-column prop="num" label="数量">
  166. </el-table-column>
  167. <el-table-column prop="coldStartTime" label="开始时间" width="160" v-if="m.goodsCode=='A10003'||m.goodsCode=='A10004'||m.goodsCode=='A10005'">
  168. </el-table-column>
  169. <sa-td name="开始时间图片" width="130" prop="startImage" type="img" v-if="m.goodsCode=='A10004'">
  170. </sa-td>
  171. <el-table-column prop="coldEndTime" label="结束时间" width="160" v-if="m.goodsCode=='A10003'||m.goodsCode=='A10004'||m.goodsCode=='A10005'">
  172. </el-table-column>
  173. <sa-td name="结束时间图片" width="130" prop="endImage" type="img" v-if="m.goodsCode=='A10004'">
  174. </sa-td>
  175. <el-table-column prop="total" label="合计">
  176. </el-table-column>
  177. <sa-td width="120" name="支付状态" prop="payStatus" type="enum"
  178. :jv="{0: '未支付[#ff0000]', 1: '已支付[#005500]',3: '无需支付[#005500]', 4: '已退款[#ff0000]'}">
  179. </sa-td>
  180. <el-table-column prop="refundMoney" label="退款金额">
  181. </el-table-column>
  182. <el-table-column prop="payTime" label="支付时间" width="150">
  183. </el-table-column>
  184. <sa-td width="120" name="订单状态" prop="hasError" type="enum"
  185. :jv="{0: '正常[#005500]', 1: '异常[#ff0000]'}">
  186. </sa-td>
  187. <el-table-column label="操作" width="60px" fixed="right">
  188. <template slot-scope="s">
  189. <el-button class="c-btn" type="warning" v-if="s.row.payStatus==0"
  190. @click="delFn(s.row)">
  191. 删除
  192. </el-button>
  193. </template>
  194. </el-table-column>
  195. </el-table>
  196. </el-row>
  197. </el-form>
  198. </div>
  199. </div>
  200. <!-- ------- 底部按钮 ------- -->
  201. <div class="s-foot">
  202. <!-- <el-button class="c-btn" type="success" icon="el-icon" @click="print()">打印单据</el-button> -->
  203. <!-- <el-button v-if="sa.isAuth('tb-flex-business-judge')&&m.confirmJudge!=1"
  204. class="c-btn" type="success" icon="el-icon" @click="pass()">审核通过</el-button>
  205. <el-button v-if="sa.isAuth('tb-flex-business-judge')&&m.confirmJudge==1"
  206. class="c-btn" type="warning" icon="el-icon" @click="callback()">审核驳回</el-button> -->
  207. <el-button type="success" @click="sa.closeCurrIframe()">关闭</el-button>
  208. </div>
  209. <el-dialog title="上传凭据" :visible.sync="upload.visible" width="400">
  210. <el-form>
  211. <sa-item type="img-list" name="凭据图片" v-model="upload.form.ticket" br></sa-item>
  212. </el-form>
  213. <span slot="footer" class="dialog-footer">
  214. <el-button @click="upload.visible=false">取 消</el-button>
  215. <el-button type="primary" @click="ok()">确 定</el-button>
  216. </span>
  217. </el-dialog>
  218. </div>
  219. <script>
  220. var app = new Vue({
  221. components: {
  222. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
  223. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  224. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  225. },
  226. el: '.vue-box',
  227. data: {
  228. id: sa.p('id', 0), // 获取数据ID
  229. m: {},
  230. tableData: [],
  231. upload: {
  232. visible: false,
  233. form: {
  234. id: '',
  235. ticket: ''
  236. }
  237. }
  238. },
  239. methods: {
  240. pass() {
  241. sa.ajax('/TbBusiness/confirmJudgePass', {
  242. id: this.id
  243. }, function(res) {
  244. let msg = res.msg;
  245. if (msg) {
  246. sa.alert(msg, this.clean);
  247. return;
  248. }
  249. sa.alert('审核通过', this.clean);
  250. }.bind(this))
  251. },
  252. callback() {
  253. let that = this;
  254. layer.prompt({
  255. title: '填写审核意见'
  256. }, function(content, index) {
  257. layer.close(index);
  258. sa.ajax('/TbBusiness/callback', {
  259. id: that.id,
  260. judgeContent: content
  261. }, function(res) {
  262. sa.alert('已驳回', that.clean);
  263. })
  264. });
  265. },
  266. clean() {
  267. parent.app.f5();
  268. sa.closeCurrIframe();
  269. },
  270. delFn(data) {
  271. sa.confirm('是否确认删除该收费项?', function() {
  272. sa.ajax('/TbBusinessItem/del', {
  273. id: data.id
  274. }, function(res) {
  275. sa.alert('已删除', this.getInfo());
  276. }.bind(this));
  277. }.bind(this));
  278. },
  279. print: function() {
  280. sa.showIframe('打印收费单据', 'print.html?id=' + this.id, '1000px', '100%');
  281. },
  282. uploadFn(data) {
  283. Object.assign(this.upload, {
  284. visible: true,
  285. form: data
  286. })
  287. },
  288. del(data) {
  289. sa.confirm('是否确认删除该收费项?', function() {
  290. sa.ajax('/TbBusinessItem/del', {
  291. id: data.id
  292. }, function(res) {
  293. sa.alert('已删除', this.getInfo());
  294. }.bind(this));
  295. }.bind(this));
  296. },
  297. supplementFn() {
  298. sa.showIframe('补交费', 'tb-business-item-supplement.html?id=' + this.m.id, '600px', '70%');
  299. },
  300. getInfo() {
  301. sa.ajax('/TbBusiness/getOtherBusinessById?id=' + this.id, function(res) {
  302. this.m = res.data;
  303. this.tableData = res.data.items;
  304. }.bind(this))
  305. }
  306. },
  307. mounted: function() {
  308. this.getInfo()
  309. }
  310. })
  311. </script>
  312. </body>
  313. </html>