tb-goods-units-info.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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: 30em;}
  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>
  28. <el-col>
  29. <sa-info name="商品单位编号" br>{{m.unitsNo}}</sa-info>
  30. </el-col>
  31. </el-row>
  32. <el-row>
  33. <el-col>
  34. <sa-info name="管理商品的单位,比如吨、kg、个、柜;主要字段,名称,编号" br>{{m.units}}</sa-info>
  35. </el-col>
  36. </el-row>
  37. </el-form>
  38. </div>
  39. </div>
  40. <!-- ------- 底部按钮 ------- -->
  41. <div class="s-foot">
  42. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  43. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  44. </div>
  45. </div>
  46. <script>
  47. var app = new Vue({
  48. components: {
  49. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  50. },
  51. el: '.vue-box',
  52. data: {
  53. id: sa.p('id', 0), // 获取数据ID
  54. m: null
  55. },
  56. methods: {
  57. },
  58. mounted: function() {
  59. sa.ajax('/level-one-server/TbGoodsUnits/getById?id=' + this.id, function(res) {
  60. this.m = res.data;
  61. if(res.data == null) {
  62. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  63. }
  64. }.bind(this))
  65. }
  66. })
  67. </script>
  68. </body>
  69. </html>