tb-car-info.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. <style type="text/css">
  18. .c-panel .c-label {
  19. width: 8em;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  25. <!-- ------- 内容部分 ------- -->
  26. <div class="s-body">
  27. <div class="c-panel">
  28. <el-form v-if="m">
  29. <el-row>
  30. <el-col span=12>
  31. <sa-info name="归属" br>{{m.customerName}}</sa-info>
  32. <sa-info type="enum" name="类型" :value="m.carType" :jv="{0: '临时车',1: '行政车', 2: '业务车'}"
  33. br></sa-info>
  34. <sa-info name="归属" br>{{m.cardNo}}</sa-info>
  35. <sa-info name="车长(米)" br>{{m.cardSize}}</sa-info>
  36. <sa-info name="载重(吨)" br>{{m.weight}}</sa-info>
  37. </el-col>
  38. <el-col span=12>
  39. <sa-info name="联系人" br>{{m.people}}</sa-info>
  40. <sa-info name="联系电话" br>{{m.phone}}</sa-info>
  41. <sa-info name="最近入场时间" br>{{m.lastInTime}}</sa-info>
  42. <sa-info name="最近离场时间" br>{{m.lastOutTime}}</sa-info>
  43. <sa-info name="备注" br>{{m.remark}}</sa-info>
  44. </el-col>
  45. </el-row>
  46. </el-form>
  47. </div>
  48. </div>
  49. <!-- ------- 底部按钮 ------- -->
  50. <div class="s-foot">
  51. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  52. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  53. </div>
  54. </div>
  55. <script>
  56. var app = new Vue({
  57. components: {
  58. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  59. },
  60. el: '.vue-box',
  61. data: {
  62. id: sa.p('id', 0), // 获取数据ID
  63. m: null
  64. },
  65. methods: {},
  66. mounted: function () {
  67. sa.ajax('/TbCar/getById?id=' + this.id, function (res) {
  68. this.m = res.data;
  69. if (res.data == null) {
  70. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  71. }
  72. }.bind(this))
  73. }
  74. })
  75. </script>
  76. </body>
  77. </html>