|
|
@@ -74,32 +74,39 @@ Ext.define('saas.view.sys.maxnumbers.DataList', {
|
|
|
}],
|
|
|
|
|
|
columns : [{
|
|
|
- text : "id",
|
|
|
+ text : 'id',
|
|
|
width : 0,
|
|
|
- dataIndex : "id",
|
|
|
- xtype : "numbercolumn",
|
|
|
+ dataIndex : 'id',
|
|
|
+ xtype : 'numbercolumn',
|
|
|
},{
|
|
|
- text : "单据名称",
|
|
|
+ text : '单据名称',
|
|
|
width : 200.0,
|
|
|
- dataIndex : "mn_name",
|
|
|
- xtype : "",
|
|
|
+ dataIndex : 'mn_name',
|
|
|
+ xtype : '',
|
|
|
},
|
|
|
{
|
|
|
- text : "单据前缀",
|
|
|
- dataIndex : "mn_leadcode",
|
|
|
+ text : '单据前缀',
|
|
|
+ dataIndex : 'mn_leadcode',
|
|
|
width : 120.0,
|
|
|
- xtype : "",
|
|
|
+ xtype : '',
|
|
|
},
|
|
|
{
|
|
|
- text : "单据规则",
|
|
|
- dataIndex : "mn_rule",
|
|
|
- width : 220.0,
|
|
|
- xtype : "",
|
|
|
+ text : '单据规则',
|
|
|
+ dataIndex : 'mn_rule',
|
|
|
+ width : 220.0,
|
|
|
+ renderer: function(v) {
|
|
|
+ var o = {
|
|
|
+ yyyymmdd: '年月日',
|
|
|
+ yyyymm: '年月',
|
|
|
+ 无: '无'
|
|
|
+ }
|
|
|
+ return o[v];
|
|
|
+ },
|
|
|
},{
|
|
|
- text : "流水长度",
|
|
|
- dataIndex : "mn_number",
|
|
|
+ text : '流水长度',
|
|
|
+ dataIndex : 'mn_number',
|
|
|
width : 120.0,
|
|
|
- xtype : "",
|
|
|
+ xtype : '',
|
|
|
}],
|
|
|
|
|
|
dbSearchFields: [],
|
|
|
@@ -132,7 +139,7 @@ Ext.define('saas.view.sys.maxnumbers.DataList', {
|
|
|
beforeload: function (store, op) {
|
|
|
var condition = me.condition;
|
|
|
if (Ext.isEmpty(condition)) {
|
|
|
- condition = "";
|
|
|
+ condition = '';
|
|
|
}
|
|
|
Ext.apply(store.proxy.extraParams, {
|
|
|
number: op._page,
|