warehouse_list.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <template>
  2. <div class="app-container">
  3. <div v-if="isShow">
  4. <!-- 筛选条件 -->
  5. <div>
  6. <el-form label-width="70px" size="small" label-position="left">
  7. <el-row :gutter="20">
  8. <el-col :xs="24" :sm="12" :lg="6">
  9. <el-form-item label="关键字" prop="account">
  10. <el-input placeholder="请输入关键字"></el-input>
  11. </el-form-item>
  12. </el-col>
  13. <el-col :xs="24" :sm="12" :lg="18" class="tr">
  14. <el-form-item label="">
  15. <el-button size="small" @click="resetScreenForm"
  16. >清空</el-button
  17. >
  18. <el-button size="small" type="primary" @click="submitScreenForm"
  19. >搜索</el-button
  20. >
  21. </el-form-item>
  22. </el-col>
  23. </el-row>
  24. </el-form>
  25. </div>
  26. <div class="mymain-container">
  27. <div class="table">
  28. <el-table
  29. v-loading="listLoading"
  30. :data="dataList"
  31. element-loading-text="Loading"
  32. border
  33. fit
  34. highlight-current-row
  35. stripe
  36. >
  37. <el-table-column type="selection" min-width="100"></el-table-column>
  38. <el-table-column
  39. align="center"
  40. label="编码"
  41. prop="bianMa"
  42. min-width="100"
  43. label-class-name="bianma"
  44. class-name="fontstyle"
  45. ></el-table-column>
  46. <el-table-column
  47. align="center"
  48. label="名称"
  49. prop="name"
  50. min-width="100"
  51. ></el-table-column>
  52. <el-table-column
  53. align="center"
  54. label="仓库地址"
  55. prop="address"
  56. min-width="100"
  57. ></el-table-column>
  58. <el-table-column
  59. align="center"
  60. label="仓库负责人"
  61. prop="storeUser"
  62. min-width="100"
  63. ></el-table-column>
  64. <el-table-column
  65. align="center"
  66. label="仓库属性"
  67. prop="storeAttribute"
  68. min-width="100"
  69. ></el-table-column>
  70. <el-table-column
  71. align="center"
  72. label="第三方仓储类型"
  73. prop="storeType"
  74. min-width="100"
  75. ></el-table-column>
  76. <el-table-column
  77. align="center"
  78. label="数据状态"
  79. prop="dataState"
  80. min-width="100"
  81. ></el-table-column>
  82. <el-table-column
  83. align="center"
  84. label="允许即时库存负库存"
  85. prop="allow"
  86. min-width="100"
  87. ></el-table-column>
  88. <el-table-column
  89. align="center"
  90. label="启用仓位管理"
  91. prop="openStore"
  92. min-width="100"
  93. ></el-table-column>
  94. <el-table-column
  95. align="center"
  96. label="不参与可发量统计"
  97. prop="noStatistics"
  98. min-width="100"
  99. ></el-table-column>
  100. <el-table-column
  101. align="center"
  102. label="参与预警"
  103. prop="warning"
  104. min-width="100"
  105. ></el-table-column>
  106. <el-table-column
  107. align="center"
  108. label="操作"
  109. prop="caozuo"
  110. min-width="160"
  111. show-overflow-tooltip
  112. >
  113. <el-button type="text" class="textColor" @click="editFn"
  114. >编辑</el-button
  115. >
  116. <el-button type="text" class="textColor">删除</el-button>
  117. </el-table-column>
  118. </el-table>
  119. </div>
  120. <!-- 分页 -->
  121. <div class="fr">
  122. <el-pagination
  123. :current-page="currentPage"
  124. :page-sizes="[10, 20, 30, 50]"
  125. :page-size="10"
  126. layout="total, sizes, prev, pager, next, jumper"
  127. :total="listTotal"
  128. >
  129. </el-pagination>
  130. </div>
  131. </div>
  132. </div>
  133. <WarehouseListDetail v-else />
  134. </div>
  135. </template>
  136. <script>
  137. import WarehouseListDetail from "./components/warehouse_list-detail.vue";
  138. export default {
  139. data() {
  140. return {
  141. isShow: true,
  142. dataList: [
  143. {
  144. bianMa: "BXGM001",
  145. name: "冰箱美国仓",
  146. address: "",
  147. storeUser: "",
  148. storeAttribute: "普通仓库",
  149. storeType: "",
  150. dataState: "已审核",
  151. allow: "否",
  152. openStore: "否",
  153. noStatistics: "否",
  154. warning: "是",
  155. },
  156. {
  157. bianMa: "BXGM001",
  158. name: "冰箱美国仓",
  159. address: "",
  160. storeUser: "",
  161. storeAttribute: "普通仓库",
  162. storeType: "",
  163. dataState: "已审核",
  164. allow: "否",
  165. openStore: "否",
  166. noStatistics: "否",
  167. warning: "是",
  168. },
  169. {
  170. bianMa: "BXGM001",
  171. name: "冰箱美国仓",
  172. address: "",
  173. storeUser: "",
  174. storeAttribute: "普通仓库",
  175. storeType: "",
  176. dataState: "已审核",
  177. allow: "否",
  178. openStore: "否",
  179. noStatistics: "否",
  180. warning: "是",
  181. },
  182. ], // 列表数据
  183. screenForm: {
  184. // 筛选表单数据
  185. name: "", // 名称
  186. },
  187. currentPage: 1, // 当前页码
  188. pageSize: 10, // 每页数量
  189. listTotal: 0, // 列表总数
  190. };
  191. },
  192. components: {
  193. WarehouseListDetail,
  194. },
  195. methods: {
  196. editFn() {
  197. this.isShow = false;
  198. },
  199. },
  200. };
  201. </script>
  202. <style lang="scss" scoped>
  203. // ::v-deep .fontstyle {
  204. // color: #0909ff;
  205. // }
  206. // ::v-deep .bianma {
  207. // color: #409eff;
  208. // }
  209. </style>