tb-car-filing-judge.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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.deptName}}</sa-info>
  32. <sa-info name="联系人" br>{{m.driverName}}</sa-info>
  33. <sa-info name="联系电话" br>{{m.driverContact}}</sa-info>
  34. <sa-info name="联系人身份证" br>{{m.driverIdCard}}</sa-info>
  35. <sa-item type="datetime" name="备案过期" v-model="m.endTime" br></sa-item>
  36. </el-col>
  37. <el-col :span="12">
  38. <sa-info name="车牌号" br>{{m.carNo}}</sa-info>
  39. <sa-info name="商铺号" br v-if="m.shopCode">{{m.shopCode}}</sa-info>
  40. <sa-info name="创建时间" br>{{m.createTime}}</sa-info>
  41. <sa-info name="备注" br>{{m.remark}}</sa-info>
  42. <sa-item name="审核意见" type="textarea" v-model="m.judgeContent" br></sa-item>
  43. </el-col>
  44. </el-row>
  45. </el-form>
  46. </div>
  47. </div>
  48. <!-- ------- 底部按钮 ------- -->
  49. <div class="s-foot">
  50. <el-button type="success" @click="judge(1)">通过</el-button>
  51. <el-button type="danger" @click="judge(2)">不通过</el-button>
  52. </div>
  53. </div>
  54. <script>
  55. var app = new Vue({
  56. components: {
  57. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
  58. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue')
  59. },
  60. el: '.vue-box',
  61. data: {
  62. id: sa.p('id', 0), // 获取数据ID
  63. m: {
  64. endTime: '',
  65. judgeContent: ''
  66. }
  67. },
  68. methods: {
  69. judge(state) {
  70. sa.ajax('/TbCarFiling/judge', {
  71. id: this.id,
  72. judgeState: state
  73. }, function(res) {
  74. sa.alert('操作成功');
  75. setTimeout(() => {
  76. parent.app.f5(); // 刷新父页面列表
  77. sa.closeCurrIframe(); // 关闭本页
  78. }, 2000)
  79. }.bind(this))
  80. }
  81. },
  82. // 添加/修改 完成后的动作
  83. clean: function() {
  84. parent.app.f5(); // 刷新父页面列表
  85. sa.closeCurrIframe(); // 关闭本页
  86. },
  87. mounted: function() {
  88. sa.ajax('/TbCarFiling/getById?id=' + this.id, function(res) {
  89. this.m = res.data;
  90. if (res.data == null) {
  91. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  92. }
  93. }.bind(this))
  94. }
  95. })
  96. </script>
  97. </body>
  98. </html>