tb-declare-info.html 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="https://unpkg.com/vue@2.6.10/dist/vue.min.js"></script>
  12. <script src="https://unpkg.com/element-ui@2.13.0/lib/index.js"></script>
  13. <script src="https://unpkg.com/http-vue-loader@1.4.2/src/httpVueLoader.js"></script>
  14. <script src="https://unpkg.com/jquery@3.4.1/dist/jquery.js"></script>
  15. <script src="https://www.layuicdn.com/layer-v3.1.1/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. <style type="text/css">
  18. .c-panel .c-label {
  19. width: 15em;
  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.goodsName}}</sa-info>
  32. <sa-info name="毛重(kg)" br>{{m.grossWeight}}</sa-info>
  33. <sa-info name="数量(件)" br>{{m.num}}</sa-info>
  34. <sa-info name="生产日期" br>{{m.productionDate}}</sa-info>
  35. <sa-info name="保质期(天)" br>{{m.expirationDate}}</sa-info>
  36. <sa-info name="储存条件" br>{{m.storageMode}}</sa-info>
  37. <sa-info name="生产方式" br>{{m.productionMode}}</sa-info>
  38. <sa-info name="原产国" br>{{m.origin}}</sa-info>
  39. <sa-info name="进口冷链食品生产商注册号" br>{{m.producerCode}}</sa-info>
  40. <sa-info name="货主单位" br>{{m.sendUnit}}</sa-info>
  41. <sa-info name="收货单位" br>{{m.receiveUnit}}</sa-info>
  42. <sa-info name="货物流向" br>{{m.route}}</sa-info>
  43. </el-col>
  44. <el-col span="12">
  45. <sa-info name="司机姓名" br>{{m.driverName}}</sa-info>
  46. <sa-info name="司机联系电话" br>{{m.driverPhone}}</sa-info>
  47. <!-- <sa-info name="代理商" br>{{m.agent}}</sa-info>-->
  48. <sa-info name="代理人联系电话" br>{{m.agentPhone}}</sa-info>
  49. <sa-info name="运输车(车头牌)" br>{{m.chinaCarNo}}</sa-info>
  50. <sa-info name="运输车(车尾牌)" br>{{m.chinaCarSuff}}</sa-info>
  51. <sa-info name="越南车车牌" br>{{m.carNo}}</sa-info>
  52. <sa-info name="海关报关单据" br>{{m.customProof}}</sa-info>
  53. <sa-info name="进口检验检疫证书" br>{{m.quarantineProof}}</sa-info>
  54. <sa-info name="商铺" br>{{m.shop}}</sa-info>
  55. <sa-info name="生产批号" br>{{m.productionCode}}</sa-info>
  56. <sa-info name="柜号" br>{{m.containerCode}}</sa-info>
  57. <sa-info name="申报时间" br>{{m.createTime}}</sa-info>
  58. </el-col>
  59. </el-row>
  60. </el-form>
  61. </div>
  62. </div>
  63. <!-- ------- 底部按钮 ------- -->
  64. <div class="s-foot">
  65. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  66. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  67. </div>
  68. </div>
  69. <script>
  70. var app = new Vue({
  71. components: {
  72. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  73. },
  74. el: '.vue-box',
  75. data: {
  76. id: sa.p('id', 0), // 获取数据ID
  77. m: null
  78. },
  79. methods: {},
  80. mounted: function () {
  81. sa.ajax('/TbDeclare/getById?id=' + this.id, function (res) {
  82. this.m = res.data;
  83. if (res.data == null) {
  84. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  85. }
  86. }.bind(this))
  87. }
  88. })
  89. </script>
  90. </body>
  91. </html>