dealer_list.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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">清空</el-button>
  16. <el-button size="small" type="primary">搜索</el-button>
  17. </el-form-item>
  18. </el-col>
  19. </el-row>
  20. </el-form>
  21. </div>
  22. <div class="mymain-container">
  23. <div class="table">
  24. <el-table
  25. v-loading="listLoading"
  26. :data="dataList"
  27. element-loading-text="Loading"
  28. border
  29. fit
  30. highlight-current-row
  31. stripe
  32. >
  33. <el-table-column type="selection" min-width="160"></el-table-column>
  34. <el-table-column
  35. align="center"
  36. label="客户编码"
  37. prop="bianMa"
  38. min-width="160"
  39. label-class-name="bianma"
  40. class-name="fontstyle"
  41. ></el-table-column>
  42. <el-table-column
  43. align="center"
  44. label="客户名称"
  45. prop="username"
  46. min-width="160"
  47. ></el-table-column>
  48. <el-table-column
  49. align="center"
  50. label="简称"
  51. prop="jianCheng"
  52. min-width="160"
  53. ></el-table-column>
  54. <el-table-column
  55. align="center"
  56. label="单据状态"
  57. prop="danJuZhuangTai"
  58. min-width="160"
  59. ></el-table-column>
  60. <el-table-column
  61. align="center"
  62. label="禁用状态"
  63. prop="jinYong"
  64. min-width="160"
  65. ></el-table-column>
  66. <el-table-column
  67. align="center"
  68. label="使用组织"
  69. prop="use"
  70. min-width="160"
  71. ></el-table-column>
  72. <el-table-column
  73. align="center"
  74. label="审核人"
  75. prop="shenHeRen"
  76. min-width="160"
  77. ></el-table-column>
  78. <el-table-column
  79. align="center"
  80. label="审核日期"
  81. prop="shenHeDate"
  82. min-width="160"
  83. ></el-table-column>
  84. <el-table-column
  85. align="center"
  86. label="客户分组"
  87. prop="keHu"
  88. min-width="160"
  89. ></el-table-column>
  90. <el-table-column
  91. align="center"
  92. label="操作"
  93. prop="caozuo"
  94. min-width="160"
  95. show-overflow-tooltip
  96. >
  97. <el-button type="text" class="textColor" @click="editFn"
  98. >编辑</el-button
  99. >
  100. <el-button type="text" class="textColor">删除</el-button>
  101. </el-table-column>
  102. </el-table>
  103. </div>
  104. <!-- 分页 -->
  105. <div class="fr">
  106. <el-pagination
  107. :current-page="currentPage"
  108. :page-sizes="[10, 20, 30, 50]"
  109. :page-size="10"
  110. layout="total, sizes, prev, pager, next, jumper"
  111. :total="listTotal"
  112. >
  113. </el-pagination>
  114. </div>
  115. </div>
  116. </div>
  117. <DealerListDetail v-else />
  118. </div>
  119. </template>
  120. <script>
  121. import DealerListDetail from "./components/dealer_list-detail.vue";
  122. export default {
  123. data() {
  124. return {
  125. isShow: true,
  126. dataList: [
  127. {
  128. bianMa: "001",
  129. username: "张蕙兰",
  130. jianCheng: "zhl",
  131. danJuZhuangTai: "已审核",
  132. jinYong: "否",
  133. use: "广州格匠机电工程科技有限公司",
  134. shenHeRen: "郑桂茹",
  135. shenHeDate: "2020/11/11",
  136. keHu: "花都线",
  137. },
  138. {
  139. bianMa: "001",
  140. username: "张蕙兰",
  141. jianCheng: "zhl",
  142. danJuZhuangTai: "已审核",
  143. jinYong: "否",
  144. use: "广州格匠机电工程科技有限公司",
  145. shenHeRen: "郑桂茹",
  146. shenHeDate: "2020/11/11",
  147. keHu: "花都线",
  148. },
  149. {
  150. bianMa: "001",
  151. username: "张蕙兰",
  152. jianCheng: "zhl",
  153. danJuZhuangTai: "已审核",
  154. jinYong: "否",
  155. use: "广州格匠机电工程科技有限公司",
  156. shenHeRen: "郑桂茹",
  157. shenHeDate: "2020/11/11",
  158. keHu: "花都线",
  159. zip: 200333,
  160. },
  161. ], // 列表数据
  162. listLoading: false, // 列表加载loading
  163. screenForm: {
  164. // 筛选表单数据
  165. name: "", // 名称
  166. },
  167. currentPage: 1, // 当前页码
  168. pageSize: 10, // 每页数量
  169. listTotal: 0, // 列表总数
  170. };
  171. },
  172. components: {
  173. DealerListDetail,
  174. },
  175. created() {},
  176. computed: {},
  177. methods: {
  178. handleSizeChange() {},
  179. handleCurrentChange() {},
  180. handleNodeClick(data) {
  181. console.log(data);
  182. },
  183. editFn() {
  184. this.isShow = false;
  185. },
  186. },
  187. };
  188. </script>
  189. <style lang="scss" scoped>
  190. </style>