shopTable.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. export const rules = () => {
  2. return [{
  3. field: 'name',
  4. label: '门店名称',
  5. colWidth: '150',
  6. align: 'center',
  7. }, {
  8. field: 'contact',
  9. label: '联系人',
  10. colWidth: '120',
  11. align: 'center',
  12. }, {
  13. field: 'contactPhone',
  14. label: '联系电话',
  15. colWidth: '150',
  16. align: 'center',
  17. }, {
  18. field: 'district',
  19. label: '所在区/县',
  20. colWidth: '100',
  21. align: 'center',
  22. }, {
  23. field: 'address',
  24. label: '地址',
  25. colWidth: '100',
  26. align: 'center',
  27. }, {
  28. field: 'certificateNo',
  29. label: '许可证编号',
  30. colWidth: '150',
  31. align: 'center',
  32. }, {
  33. field: 'type',
  34. label: '经营类别',
  35. colWidth: '150',
  36. align: 'center',
  37. }, {
  38. field: 'businessArea',
  39. label: '经营区域',
  40. align: 'center',
  41. }, {
  42. field: 'legalPerson',
  43. label: '法人姓名',
  44. colWidth: '150',
  45. align: 'center',
  46. }, {
  47. field: 'issueAuthority',
  48. label: '发证部门',
  49. colWidth: '150',
  50. align: 'center',
  51. }, {
  52. field: 'issueTime',
  53. label: '发证时间',
  54. colWidth: '150',
  55. align: 'center',
  56. }, {
  57. field: 'startTime',
  58. label: '开始时间',
  59. colWidth: '150',
  60. align: 'center',
  61. }, {
  62. field: 'expireTime',
  63. label: '证件有效期',
  64. colWidth: '150',
  65. align: 'center',
  66. }, {
  67. field: 'description',
  68. label: '描述',
  69. colWidth: '150',
  70. align: 'center',
  71. },{
  72. field: 'cmpCode',
  73. label: '所属企业登记编码',
  74. colWidth: '150',
  75. align: 'center',
  76. }, {
  77. field: 'action',
  78. label: '操作',
  79. colWidth: '300px',
  80. align: 'center',
  81. labelButton: [{
  82. type: 'edit',
  83. label: '新增子级',
  84. icon: 'el-icon-edit',
  85. style: 'primary',
  86. }, {
  87. type: 'edit',
  88. label: '修改',
  89. icon: 'el-icon-edit',
  90. style: 'primary',
  91. }, {
  92. type: 'logs',
  93. label: '详情',
  94. icon: 'el-icon-tickets',
  95. }, {
  96. type: 'del',
  97. label: '删除',
  98. icon: 'el-icon-delete',
  99. style: 'danger',
  100. }]
  101. }]
  102. }
  103. export const employee = () => {
  104. return [{
  105. field: 'T_name',
  106. label: '管理员',
  107. align: 'center',
  108. }, {
  109. field: 'T_state',
  110. operation: true,
  111. label: '姓名',
  112. align: 'center',
  113. colWidth: '200px',
  114. }, {
  115. field: 'T_connect',
  116. label: '身份证号',
  117. align: 'center',
  118. colWidth: '200px',
  119. }, {
  120. field: 'T_connect',
  121. label: '工号',
  122. align: 'center',
  123. colWidth: '200px',
  124. }, {
  125. field: 'T_connect',
  126. label: '联系电话',
  127. align: 'center',
  128. colWidth: '200px',
  129. }, {
  130. field: 'T_connect',
  131. label: '用户类型',
  132. align: 'center',
  133. colWidth: '200px',
  134. }, {
  135. field: 'T_connect',
  136. label: '聘用状态',
  137. align: 'center',
  138. colWidth: '200px',
  139. }, {
  140. field: 'T_connect',
  141. label: '聘用日期',
  142. align: 'center',
  143. colWidth: '200px',
  144. }, {
  145. field: 'T_connect',
  146. label: '教育程度',
  147. align: 'center',
  148. colWidth: '200px',
  149. }, {
  150. field: 'T_connect',
  151. label: '岗位类型',
  152. align: 'center',
  153. colWidth: '200px',
  154. }, {
  155. field: 'T_connect',
  156. label: '资质',
  157. align: 'center',
  158. colWidth: '200px',
  159. }, {
  160. field: 'T_connect',
  161. label: '用户类型',
  162. align: 'center',
  163. colWidth: '200px',
  164. }, {
  165. field: 'action',
  166. label: '操作',
  167. colWidth: '200px',
  168. align: 'center',
  169. labelButton: [{
  170. type: 'edit',
  171. label: '编辑',
  172. icon: 'el-icon-edit',
  173. style: 'primary',
  174. }, {
  175. type: 'logs',
  176. label: '详情',
  177. icon: 'el-icon-tickets',
  178. // style: 'primary',
  179. }, {
  180. type: 'del',
  181. label: '删除',
  182. icon: 'el-icon-delete',
  183. style: 'danger',
  184. }]
  185. }]
  186. }