freight.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. #parse("sys/header.html")
  6. </head>
  7. <body>
  8. <div id="rrapp" v-cloak>
  9. <div v-show="showList">
  10. <Row :gutter="16">
  11. <div class="search-group">
  12. <i-col span="4">
  13. <i-button type="ghost" @click="reload"><i class="fa fa-refresh"></i>&nbsp;刷新</i-button>
  14. </i-col>
  15. </div>
  16. <div class="buttons-group">
  17. #if($shiro.hasPermission("freight:save"))
  18. <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
  19. #end
  20. #if($shiro.hasPermission("freight:update"))
  21. <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
  22. #end
  23. #if($shiro.hasPermission("freight:delete"))
  24. <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
  25. #end
  26. </div>
  27. </Row>
  28. <table id="jqGrid"></table>
  29. <div id="jqGridPager"></div>
  30. </div>
  31. <Card v-show="!showList">
  32. <p slot="title">{{title}}</p>
  33. <i-form ref="formValidate" :model="freight" :rules="ruleValidate" :label-width="140">
  34. <Form-item label="模版名称" prop="name">
  35. <i-input v-model="freight.name" placeholder="模版名称"/>
  36. </Form-item>
  37. <Form-item label="模版类型" prop="templateType">
  38. <Radio-group v-model="freight.templateType">
  39. <Radio label="0">
  40. <span>买家承担运费</span>
  41. </Radio>
  42. <Radio label="1">
  43. <span>卖家包邮</span>
  44. </Radio>
  45. </Radio-group>
  46. </Form-item>
  47. <Form-item label="计价方式" prop="pricingManner">
  48. <Radio-group v-model="freight.pricingManner" @on-change="changeUnit">
  49. <Radio label="0">
  50. <span>按件数</span>
  51. </Radio>
  52. <Radio label="1">
  53. <span>按重量</span>
  54. </Radio>
  55. <Radio label="2">
  56. <span>按体积</span>
  57. </Radio>
  58. </Radio-group>
  59. </Form-item>
  60. <Form-item label="配送区域及运费" prop="freightItem">
  61. <table class="table table-bordered">
  62. <tr>
  63. <td style="text-align: center; width: 400px">可配送区域</td>
  64. <td id="first" style="text-align: center; width: 100px">首件(个)</td>
  65. <td style="text-align: center; width: 100px">运费</td>
  66. <td id="continue" style="text-align: center; width: 100px">续件(个)</td>
  67. <td style="text-align: center; width: 100px">续费</td>
  68. <!--<td style="text-align: center; width: 90px">操作</td>-->
  69. </tr>
  70. <tr v-for="(item,index) in freightItemEntityList" v-show="item.isDelete==0">
  71. <td>
  72. <Checkbox v-model="item.deliveryArea" disabled />所有地区默认配送
  73. </td>
  74. <td>
  75. <Input-number :min="0" :step="1" v-model="item.firstPiece" style="width: 260px;" />
  76. </td>
  77. <td>
  78. <Input-number :min="0" :step="1" v-model="item.freight" style="width: 260px;" />
  79. </td>
  80. <td>
  81. <Input-number :min="0" :step="1" v-model="item.continuePiece" style="width: 260px;" />
  82. </td>
  83. <td>
  84. <Input-number :min="0" :step="1" v-model="item.renew" style="width: 260px;" />
  85. </td>
  86. <!--<td align="center">
  87. <button v-if="index == 0" class="btn btn-primary btn-sm" type="button"
  88. @click="addItemRow">
  89. <i class="fa fa-plus"></i>
  90. </button>
  91. <button class="btn red btn-sm" type="button" @click="delItemRow(index)">
  92. <i class="fa fa-trash-o"></i>
  93. </button>
  94. </td>-->
  95. </tr>
  96. </table>
  97. </Form-item>
  98. <Form-item label="" prop="isDefault">
  99. <Checkbox v-model="freight.isDefault"/>设为新商品默认模板
  100. </Form-item>
  101. </i-form>
  102. <div style="padding-left: 20px">
  103. <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
  104. <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
  105. </div>
  106. </Card>
  107. </div>
  108. <!-- 选择类型 -->
  109. <div id="categoryLayer" style="display: none;padding:10px;">
  110. <ul id="categoryTree" class="ztree"></ul>
  111. </div>
  112. <script src="${rc.contextPath}/js/shop/freight.js?_${date.systemTime}"></script>
  113. </body>
  114. </html>