taker_list.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. <template>
  2. <div class="app-container">
  3. <!-- 筛选条件 -->
  4. <div>
  5. <el-form label-width="100px" size="small" label-position="left">
  6. <el-row :gutter="20">
  7. <el-col :xs="24" :sm="12" :lg="6">
  8. <el-form-item label="经销商名称" prop="account">
  9. <el-input placeholder="请输入经销商名称"></el-input>
  10. </el-form-item>
  11. </el-col>
  12. <el-col :xs="24" :sm="12" :lg="6">
  13. <el-form-item label="提货人姓名" prop="nickname">
  14. <el-input placeholder="请输入提货人姓名"></el-input>
  15. </el-form-item>
  16. </el-col>
  17. <el-col :xs="24" :sm="12" :lg="6">
  18. <el-form-item label="电话" prop="phone">
  19. <el-input placeholder="请输入电话"></el-input>
  20. </el-form-item>
  21. </el-col>
  22. <el-col :xs="24" :sm="12" :lg="6" class="tr">
  23. <el-form-item label="">
  24. <el-button size="small">清空</el-button>
  25. <el-button size="small" type="primary">搜索</el-button>
  26. </el-form-item>
  27. </el-col>
  28. </el-row>
  29. </el-form>
  30. </div>
  31. <!-- 按钮 -->
  32. <div class="btn-group clearfix">
  33. <div class="fl">
  34. <el-button type="primary" size="small" @click="addFn">新增</el-button>
  35. </div>
  36. <div class="fr">
  37. <el-button type="primary" size="small">导入</el-button>
  38. <el-button type="primary" size="small">导出</el-button>
  39. <el-button type="primary" size="small">打印</el-button>
  40. </div>
  41. </div>
  42. <!-- 列表 -->
  43. <div class="mymain-container">
  44. <div class="table">
  45. <el-table
  46. v-loading="listLoading"
  47. :data="dataList"
  48. element-loading-text="Loading"
  49. border
  50. fit
  51. highlight-current-row
  52. stripe
  53. >
  54. <el-table-column
  55. type="selection"
  56. align="center"
  57. min-width="100"
  58. ></el-table-column>
  59. <el-table-column
  60. align="center"
  61. label="经销商名称"
  62. prop="name"
  63. min-width="160"
  64. show-overflow-tooltip
  65. ></el-table-column>
  66. <el-table-column
  67. align="center"
  68. label="提货人姓名"
  69. prop="username"
  70. min-width="160"
  71. show-overflow-tooltip
  72. ></el-table-column>
  73. <el-table-column
  74. align="center"
  75. label="身份证"
  76. prop="userID"
  77. min-width="160"
  78. show-overflow-tooltip
  79. ></el-table-column>
  80. <el-table-column
  81. align="center"
  82. label="联系电话"
  83. prop="telephone"
  84. min-width="160"
  85. show-overflow-tooltip
  86. ></el-table-column>
  87. <el-table-column
  88. align="center"
  89. label="备用电话"
  90. prop="sparePhone"
  91. min-width="160"
  92. show-overflow-tooltip
  93. ></el-table-column>
  94. <el-table-column
  95. align="center"
  96. label="附件"
  97. prop="enclosure"
  98. min-width="160"
  99. show-overflow-tooltip
  100. ></el-table-column>
  101. <el-table-column
  102. align="center"
  103. label="有效期"
  104. prop="valid"
  105. min-width="160"
  106. show-overflow-tooltip
  107. ></el-table-column>
  108. <el-table-column
  109. align="center"
  110. label="创建人"
  111. prop="createUser"
  112. min-width="160"
  113. show-overflow-tooltip
  114. ></el-table-column>
  115. <el-table-column
  116. align="center"
  117. label="创建时间"
  118. prop="createDate"
  119. min-width="160"
  120. show-overflow-tooltip
  121. ></el-table-column>
  122. <el-table-column
  123. align="center"
  124. label="状态"
  125. prop="state"
  126. min-width="160"
  127. show-overflow-tooltip
  128. ></el-table-column>
  129. </el-table>
  130. </div>
  131. <!-- 分页 -->
  132. <div class="fr">
  133. <el-pagination
  134. :current-page="currentPage"
  135. :page-sizes="[10, 20, 30, 50]"
  136. :page-size="10"
  137. layout="total, sizes, prev, pager, next, jumper"
  138. :total="listTotal"
  139. >
  140. </el-pagination>
  141. </div>
  142. </div>
  143. <!-- 弹窗 -->
  144. <el-dialog
  145. title="提货人档案"
  146. :visible.sync="dialogForm"
  147. width="40%"
  148. :show-close="false"
  149. :close-on-click-modal="false"
  150. >
  151. <el-form ref="form" :model="addForm" label-width="120px">
  152. <el-form-item label="经销商名称">
  153. <el-select v-model="addForm.name" placeholder="名称">
  154. <el-option> dsdsds</el-option>
  155. </el-select>
  156. </el-form-item>
  157. <el-row>
  158. <el-col :span="12">
  159. <el-form-item label="提货人姓名">
  160. <el-input v-model="addForm.username"></el-input> </el-form-item
  161. ></el-col>
  162. <el-col :span="12">
  163. <el-form-item label="身份证号码">
  164. <el-input v-model="addForm.userID"></el-input> </el-form-item
  165. ></el-col>
  166. </el-row>
  167. <el-row>
  168. <el-col :span="12">
  169. <el-form-item label="联系电话">
  170. <el-input v-model="addForm.telephone"></el-input> </el-form-item
  171. ></el-col>
  172. <el-col :span="12">
  173. <el-form-item label="备用电话">
  174. <el-input v-model="addForm.sparePhone"></el-input> </el-form-item
  175. ></el-col>
  176. </el-row>
  177. <el-row>
  178. <el-col :span="12">
  179. <el-form-item label="有效期">
  180. <el-date-picker
  181. v-model="addForm.valid"
  182. type="date"
  183. placeholder="选择日期"
  184. >
  185. </el-date-picker> </el-form-item
  186. ></el-col>
  187. <el-col :span="12">
  188. <el-form-item label="验证码">
  189. <el-row :gutter="6">
  190. <el-col :span="14">
  191. <el-input v-model="addForm.Verification" />
  192. </el-col>
  193. <el-col :span="9">
  194. <el-button type="info">获取验证码</el-button>
  195. </el-col>
  196. </el-row>
  197. </el-form-item></el-col
  198. >
  199. </el-row>
  200. <el-form-item label="上传提货人附件">
  201. <el-upload class="upload-demo">
  202. <el-button size="small" type="info">点击上传</el-button>
  203. </el-upload>
  204. </el-form-item>
  205. </el-form>
  206. <div slot="footer" class="dialog-footer">
  207. <el-button @click="dialogForm = false">取 消</el-button>
  208. <el-button type="primary" @click="dialogForm = false">确 定</el-button>
  209. </div>
  210. </el-dialog>
  211. </div>
  212. </template>
  213. <script>
  214. export default {
  215. data() {
  216. return {
  217. currentPage: 1, // 当前页码
  218. pageSize: 10, // 每页数量
  219. listTotal: 0, // 列表总数
  220. addForm: {
  221. name: "",
  222. username: "",
  223. userID: "",
  224. telephone: "",
  225. sparePhone: "",
  226. valid: "",
  227. Verification: "",
  228. },
  229. dialogForm: false,
  230. dataList: [
  231. {
  232. name: "佛山市禅城区梁云冷气经营部",
  233. username: "张三",
  234. userID: "01234567891234567689",
  235. telephone: "01234567891",
  236. sparePhone: "1234567890",
  237. enclosure: "",
  238. valid: "2022-04-30",
  239. createUser: "张三",
  240. createDate: "2022-01-02 12:21",
  241. state: "失效",
  242. },
  243. {
  244. name: "佛山市禅城区梁云冷气经营部",
  245. username: "张三",
  246. userID: "01234567891234567689",
  247. telephone: "01234567891",
  248. sparePhone: "1234567890",
  249. enclosure: "",
  250. valid: "2022-04-30",
  251. createUser: "张三",
  252. createDate: "2022-01-02 12:21",
  253. state: "失效",
  254. },
  255. {
  256. name: "佛山市禅城区梁云冷气经营部",
  257. username: "张三",
  258. userID: "01234567891234567689",
  259. telephone: "01234567891",
  260. sparePhone: "1234567890",
  261. enclosure: "",
  262. valid: "2022-04-30",
  263. createUser: "张三",
  264. createDate: "2022-01-02 12:21",
  265. state: "失效",
  266. },
  267. ],
  268. searchForm: {
  269. name: "",
  270. username: "",
  271. telephone: "",
  272. },
  273. };
  274. },
  275. methods: {
  276. addFn() {
  277. this.dialogForm = true;
  278. },
  279. },
  280. };
  281. </script>
  282. <style lang="scss" scoped>
  283. ::v-deep .el-date-editor {
  284. width: 100%;
  285. }
  286. ::v-deep .el-select {
  287. width: 100%;
  288. }
  289. ::v-deep .el-col-9 .el-button {
  290. padding: 5px;
  291. }
  292. ::v-deep .el-dialog__header {
  293. background-color: #dddddd;
  294. }
  295. .base {
  296. padding: 20px 20px 0;
  297. }
  298. .table {
  299. margin-top: 12px;
  300. }
  301. .right {
  302. float: right;
  303. }
  304. </style>