|
|
@@ -79,19 +79,23 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
toolbar: '#toolbar1',
|
|
|
pk: 'id',
|
|
|
sortName: 'id',
|
|
|
+ sortOrder: 'asc',
|
|
|
pageSize: 8,
|
|
|
pageList: [8, 20, 50, 'All'],
|
|
|
search: false,
|
|
|
singleSelect: true,
|
|
|
+ searchFormVisible: true,
|
|
|
+ searchFormTemplate: 'customformtpl',
|
|
|
columns: [
|
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'product_code', title: __('Product_code'), operate: 'LIKE'},
|
|
|
{field: 'product_name', title: __('Product_name'), operate: 'LIKE'},
|
|
|
- {field: 'temple', title: __('Temple'), operate: 'LIKE'},
|
|
|
- {field: 'main_unit', title: __('Main_unit'), operate: 'LIKE'},
|
|
|
- {field: 'sec_unit', title: __('Sec_unit'), operate: 'LIKE'},
|
|
|
- {field: 'proportion', title: __('Proportion'), operate: 'LIKE'},
|
|
|
+ {field: 'temple', title: __('Temple')},
|
|
|
+ {field: 'main_unit', title: __('Main_unit')},
|
|
|
+ {field: 'sec_unit', title: __('Sec_unit')},
|
|
|
+ {field: 'proportion', title: __('Proportion')},
|
|
|
+ {field: 'code', title: __('存货分类编码'), visible:false},
|
|
|
// {field: 'notes', title: __('Notes')},
|
|
|
// {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
@@ -117,6 +121,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
toolbar: '#toolbar2',
|
|
|
pk: 'id',
|
|
|
sortName: 'id',
|
|
|
+ sortOrder: 'asc',
|
|
|
pageSize: 8,
|
|
|
pageList: [8, 20, 50, 'All'],
|
|
|
search: false,
|
|
|
@@ -126,10 +131,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{checkbox: true},
|
|
|
{field: 'product_code', title: __('Product_code'), operate: 'LIKE'},
|
|
|
{field: 'product_name', title: __('Product_name'), operate: 'LIKE'},
|
|
|
- {field: 'temple', title: __('Temple'), operate: 'LIKE'},
|
|
|
- {field: 'main_unit', title: __('Main_unit'), operate: 'LIKE'},
|
|
|
- {field: 'sec_unit', title: __('Sec_unit'), operate: 'LIKE'},
|
|
|
- {field: 'proportion', title: __('Proportion'), operate: 'LIKE'},
|
|
|
+ {field: 'temple', title: __('Temple'), operate: false},
|
|
|
+ {field: 'main_unit', title: __('Main_unit'), operate: false},
|
|
|
+ {field: 'sec_unit', title: __('Sec_unit'), operate: false},
|
|
|
+ {field: 'proportion', title: __('Proportion'), operate: false},
|
|
|
// {field: 'notes', title: __('Notes')},
|
|
|
// {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|