tb-item-rules-info.html 2.6 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="../../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: 8em;}
  18. </style>
  19. </head>
  20. <body>
  21. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  22. <!-- ------- 内容部分 ------- -->
  23. <div class="s-body">
  24. <div class="c-panel">
  25. <el-form v-if="m">
  26. <sa-info type="num" name="主键" :value="m.id" br></sa-info>
  27. <sa-info name="指定的商品" br>{{m.goodsCodes}}</sa-info>
  28. <sa-info type="datetime" name="创建时间" :value="m.createTime" br></sa-info>
  29. <sa-info name="更新者id" br>{{m.updateBy}}</sa-info>
  30. <sa-info name="更新者名称" br>{{m.updateByName}}</sa-info>
  31. <sa-info type="datetime" name="更新时间" :value="m.updateTime" br></sa-info>
  32. <sa-info name="更新人" br>{{m.updateById}}</sa-info>
  33. <sa-info type="enum" name="类型" :value="m.feeType" :jv="{1: '按交易额收取', 2: '按次收取', 3: '按吨'}" br></sa-info>
  34. <sa-info name="百分比fee_type=1时生效" br>{{m.percent}}</sa-info>
  35. <sa-info name="收费金额fee_type=2时生效" br>{{m.feeMoney}}</sa-info>
  36. </el-form>
  37. </div>
  38. </div>
  39. <!-- ------- 底部按钮 ------- -->
  40. <div class="s-foot">
  41. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  42. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  43. </div>
  44. </div>
  45. <script>
  46. var app = new Vue({
  47. components: {
  48. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  49. },
  50. el: '.vue-box',
  51. data: {
  52. id: sa.p('id', 0), // 获取数据ID
  53. m: null
  54. },
  55. methods: {
  56. },
  57. mounted: function() {
  58. sa.ajax('/TbItemRules/getById?id=' + this.id, function(res) {
  59. this.m = res.data;
  60. if(res.data == null) {
  61. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  62. }
  63. }.bind(this))
  64. }
  65. })
  66. </script>
  67. </body>
  68. </html>