index.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <el-card shadow="never">
  3. <yun-table
  4. :columns="columns"
  5. search="name,phone"
  6. toolbar="refresh,add,edit,del,more"
  7. ref="yuntable"
  8. :auth="auth"
  9. :extend="extend">
  10. </yun-table>
  11. </el-card>
  12. </template>
  13. <script>
  14. import table from "@components/Table.js";
  15. export default{
  16. components:{'YunTable':table},
  17. data:{
  18. auth:{
  19. add:Yunqi.auth.check('app\\admin\\controller\\goods\\ProductConfig','add'),
  20. edit:Yunqi.auth.check('app\\admin\\controller\\goods\\ProductConfig','edit'),
  21. del:Yunqi.auth.check('app\\admin\\controller\\goods\\ProductConfig','del'),
  22. multi:Yunqi.auth.check('app\\admin\\controller\\goods\\ProductConfig','multi'),
  23. recyclebin:Yunqi.auth.check('app\\admin\\controller\\goods\\ProductConfig','recyclebin'),
  24. },
  25. extend:{
  26. index_url: 'goods/product_config/index',
  27. add_url: 'goods/product_config/add',
  28. edit_url: 'goods/product_config/edit',
  29. del_url: 'goods/product_config/del',
  30. multi_url: 'goods/product_config/multi',
  31. download_url: 'goods/product_config/download',
  32. recyclebin_url: 'goods/product_config/recyclebin',
  33. },
  34. columns:[
  35. {checkbox: true},
  36. {field: 'id',title: __('ID'),width:80,sortable: true},
  37. {field: 'type_id',title: __('品种'),operate:'LIKE', searchList: Yunqi.data.varietyList},
  38. {field: 'title',title: __('标题'),operate: '='},
  39. {field: 'another_name', title: __('别名'),operate:'LIKE'},
  40. {field: 'weight', title: __('重量(斤)'),operate: false},
  41. {field: 'pack_specs_title', title: __('打包规格'),operate: false},
  42. { field: "labor_cost_money", title: "工价", operate: false },
  43. { field: "one_surcharge_money", title: "单层保温金额", operate: false },
  44. { field: "two_surcharge_money", title: "双层保温金额", operate: false },
  45. //{field: 'type_box', title: __('包装箱'),operate: false, searchList: Yunqi.data.packingList},
  46. {field: 'status', title: __('状态'),width:120,searchList: {1: __('正常'),2: __('停用')},formatter:Yunqi.formatter.switch},
  47. {field: 'sort', title: __('排序'), operate:false,sortable: true},
  48. {field: 'createtime', title: __('创建时间'), width:160,formatter: Yunqi.formatter.datetime,operate:false,sortable: true},
  49. {
  50. field: 'operate',
  51. title: __('操作'),
  52. width:150,
  53. action:{sort:true,edit:true,del:true}
  54. }
  55. ]
  56. },
  57. methods: {
  58. }
  59. }
  60. </script>
  61. <style>
  62. </style>