tb-import-goods-info.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <!-- 所有的 css js 资源 -->
  8. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  9. <link rel="stylesheet" href="../../static/sa.css">
  10. <script src="../../static/kj/vue.min.js"></script>
  11. <script src="../../static/kj/element-ui/index.js"></script>
  12. <script src="../../static/kj/httpVueLoader.js"></script>
  13. <script src="../../static/kj/jquery.min.js"></script>
  14. <script src="../../static/kj/layer/layer.js"></script>
  15. <script src="../../static/sa.js"></script>
  16. <style type="text/css">
  17. .c-panel .c-label{width: 22em;}
  18. table {
  19. font-family: arial, sans-serif;
  20. border-collapse: collapse;
  21. width: 90%;
  22. margin-top: 20px ;
  23. margin-left: auto;
  24. margin-right: auto;
  25. }
  26. th {
  27. border: 1px solid darkgray;
  28. text-align: left;
  29. height: 24px;
  30. padding: 8px;
  31. background-color: #dddddd;
  32. }
  33. td {
  34. border: 1px solid darkgray;
  35. text-align: left;
  36. padding: 8px;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  42. <!-- ------- 内容部分 ------- -->
  43. <div class="s-body">
  44. <div class="c-panel">
  45. <el-form v-if="m">
  46. <table>
  47. <tr>
  48. <th>业务编号</th>
  49. <td>{{m.platSeqNo}}</td>
  50. <th>商品序号</th>
  51. <td>{{m.gNo}}</td>
  52. </tr>
  53. <tr>
  54. <th>商品名称</th>
  55. <td>{{m.gName}}</td>
  56. <th>商品编号</th>
  57. <td>{{m.codeTs}}</td>
  58. </tr>
  59. <tr>
  60. <th>申报数量</th>
  61. <td>{{m.gQty}}</td>
  62. <th>规格型号</th>
  63. <td>{{m.gModel}}</td>
  64. </tr>
  65. <tr>
  66. <th>第一数量</th>
  67. <td>{{m.qty1}}</td>
  68. <th>商品毛重</th>
  69. <td>{{m.grossWt}}</td>
  70. </tr>
  71. <tr>
  72. <th>第二数量</th>
  73. <td>{{m.qty2}}</td>
  74. <th>商品净重</th>
  75. <td>{{m.netWt}}</td>
  76. </tr>
  77. <tr>
  78. <th>单位</th>
  79. <td>{{m.gUnit}}</td>
  80. <th>产销国</th>
  81. <td>{{m.originCountry}}</td>
  82. </tr>
  83. <tr>
  84. <th>第一计量单位</th>
  85. <td>{{m.unit1}}</td>
  86. <th>申报单价</th>
  87. <td>{{m.declPrice}}</td>
  88. </tr>
  89. <tr>
  90. <th>第二计量单位</th>
  91. <td>{{m.unit2}}</td>
  92. <th>申报总价</th>
  93. <td>{{m.declTotal}}</td>
  94. </tr>
  95. <tr>
  96. <th>储存条件</th>
  97. <td>
  98. <b v-if="m.storageEnvm == 1">常温</b>
  99. <b v-if="m.storageEnvm == 2">冷藏</b>
  100. <b v-if="m.storageEnvm == 3">冷冻</b>
  101. </td>
  102. <th>商品用途</th>
  103. <td>{{m.useTo}}</td>
  104. </tr>
  105. <tr>
  106. <th>商铺编码</th>
  107. <td>{{m.shopNo}}</td>
  108. <th>商铺名称</th>
  109. <td>{{m.shopName}}</td>
  110. </tr>
  111. <tr>
  112. <th>检疫检疫代码</th>
  113. <td>{{m.ciqCode}}</td>
  114. <th>检疫检疫名称</th>
  115. <td>{{m.ciqName}}</td>
  116. </tr>
  117. <tr>
  118. <th>包装类型</th>
  119. <td>{{m.wrapType}}</td>
  120. <th>创建时间</th>
  121. <td>{{sa.forDate(m.createTime, 2)}}</td>
  122. </tr>
  123. </table>
  124. </el-form>
  125. </div>
  126. </div>
  127. <!-- ------- 底部按钮 ------- -->
  128. <div class="s-foot">
  129. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  130. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  131. </div>
  132. </div>
  133. <script>
  134. var app = new Vue({
  135. components: {
  136. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  137. },
  138. el: '.vue-box',
  139. data: {
  140. id: sa.p('id', 0), // 获取数据ID
  141. m: null
  142. },
  143. methods: {
  144. },
  145. mounted: function() {
  146. sa.ajax('/level-one-server/TbImportGoods/getById?id=' + this.id, function(res) {
  147. this.m = res.data;
  148. if(res.data == null) {
  149. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  150. }
  151. }.bind(this))
  152. }
  153. })
  154. </script>
  155. </body>
  156. </html>