| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <template>
- <el-card shadow="never">
- <yun-table
- :columns="columns"
- search="name,phone"
- toolbar="refresh,add,edit,del,more"
- ref="yuntable"
- :auth="auth"
- :extend="extend">
- </yun-table>
- </el-card>
- </template>
- <script>
- import table from "@components/Table.js";
- export default{
- components:{'YunTable':table},
- data:{
- auth:{
- add:Yunqi.auth.check('app\\admin\\controller\\shop\\Customer','add'),
- edit:Yunqi.auth.check('app\\admin\\controller\\shop\\Customer','edit'),
- del:Yunqi.auth.check('app\\admin\\controller\\shop\\Customer','del'),
- multi:Yunqi.auth.check('app\\admin\\controller\\shop\\Customer','multi'),
- recyclebin:Yunqi.auth.check('app\\admin\\controller\\shop\\Customer','recyclebin'),
- },
- extend:{
- index_url: 'shop/customer/index',
- add_url: 'shop/customer/add',
- edit_url: 'shop/customer/edit',
- del_url: 'shop/customer/del',
- multi_url: 'shop/customer/multi',
- download_url: 'shop/customer/download',
- recyclebin_url: 'shop/customer/recyclebin',
- },
- columns:[
- {checkbox: true},
- {field: 'id',title: __('ID'),width:80,sortable: true},
- {field: 'name',title: __('姓名'),operate:'LIKE'},
- {field: 'phone',title: __('手机'),operate: '='},
- {field: 'status', title: __('状态'),width:120,searchList: {1: __('正常'),2: __('停用')},formatter:Yunqi.formatter.switch},
- {field: 'account_term', title: __('账期'),searchList: {1: __('日结'), 2: __('周结'), 3: __('半月结')}},
- {field: 'remark', title: __('备注'),operate: false},
- {field: 'createtime', title: __('创建时间'), width:160,formatter: Yunqi.formatter.datetime,operate:false,sortable: true},
- {
- field: 'operate',
- title: __('操作'),
- width:150,
- action:{
- spec:{
- tooltip:true,
- icon:'fa fa-list',
- type:'info',
- text:__('关联规格'),
- method:'spec'
- },
- edit:true,
- del:true
- }
- }
- ]
- },
- methods: {
- spec:function (row){
- Yunqi.api.open({
- url:'shop/customer_spec/add',
- width:1000,
- title:__('关联规格'),
- icon:'fa fa-list'
- });
- },
- }
- }
- </script>
- <style>
- </style>
|