printer.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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-input v-model="q.name" @on-enter="query" placeholder="名称"/>
  14. </i-col>
  15. <i-button @click="query">查询</i-button>
  16. <i-button @click="reloadSearch">重置</i-button>
  17. </div>
  18. <div class="buttons-group">
  19. #if($shiro.hasPermission("sys:printer:save"))
  20. <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
  21. #end
  22. #if($shiro.hasPermission("sys:printer:update"))
  23. <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
  24. #end
  25. #if($shiro.hasPermission("sys:printer:delete"))
  26. <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
  27. #end
  28. </div>
  29. </Row>
  30. <table id="jqGrid"></table>
  31. <div id="jqGridPager"></div>
  32. </div>
  33. <Card v-show="!showList">
  34. <p slot="title">{{title}}</p>
  35. <i-form ref="formValidate" :model="sysPrinter" :rules="ruleValidate" :label-width="100">
  36. <Form-item label="打印机名称" prop="name">
  37. <i-input v-model="sysPrinter.name" placeholder="打印机名称"/>
  38. </Form-item>
  39. <Form-item label="打印机编号" prop="sn">
  40. <i-input v-model="sysPrinter.sn" placeholder="打印机编号"/>
  41. </Form-item>
  42. <Form-item label="所属门店" prop="storeId">
  43. <!--<i-input v-model="sysPrinter.storeId" placeholder="所属门店"/>-->
  44. <i-select v-model="sysPrinter.storeId" filterable placeholder="所属门店"
  45. label-in-value>
  46. <i-option v-for="store in storeList" :value="store.id" :key="store.id">{{store.storeName}}
  47. </i-option>
  48. </i-select>
  49. </Form-item>
  50. <Form-item>
  51. <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
  52. <i-button type="warning" @click="reload" style="margin-left: 8px"/>
  53. 返回</i-button>
  54. <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
  55. </Form-item>
  56. </i-form>
  57. </Card>
  58. </div>
  59. <script src="${rc.contextPath}/js/sys/printer.js?_${date.systemTime}"></script>
  60. </body>
  61. </html>