tb-goods-units-info.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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="https://unpkg.com/element-ui@2.13.0/lib/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. <script src="../../static/kj/upload-util.js"></script>
  17. <style type="text/css">
  18. .c-panel .c-label{width: 8em;}
  19. </style>
  20. </head>
  21. <body>
  22. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  23. <!-- ------- 内容部分 ------- -->
  24. <div class="s-body">
  25. <div class="c-panel">
  26. <el-form v-if="m">
  27. <el-row :gutter="50">
  28. <el-col :span="12">
  29. <sa-info name="商品单位编号" br>{{m.unitsNo}}</sa-info>
  30. </el-col>
  31. <el-col :span="12">
  32. <sa-info name="管理商品的单位,比如吨、kg、个、柜;主要字段,名称,编号" br>{{m.units}}</sa-info>
  33. </el-col>
  34. </el-row>
  35. </el-form>
  36. </div>
  37. </div>
  38. <!-- ------- 底部按钮 ------- -->
  39. <div class="s-foot">
  40. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  41. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  42. </div>
  43. </div>
  44. <script>
  45. var app = new Vue({
  46. components: {
  47. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  48. },
  49. el: '.vue-box',
  50. data: {
  51. id: sa.p('id', 0), // 获取数据ID
  52. m: null
  53. },
  54. methods: {
  55. },
  56. mounted: function() {
  57. sa.ajax('/level-one-server/TbGoodsUnits/getById?id=' + this.id, function(res) {
  58. this.m = res.data;
  59. if(res.data == null) {
  60. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  61. }
  62. }.bind(this))
  63. }
  64. })
  65. </script>
  66. </body>
  67. </html>