|
|
@@ -17,43 +17,43 @@ Ext.define('saas.view.sale.b2b.Purchase', {
|
|
|
Ext.apply(this, {
|
|
|
searchField: [{
|
|
|
xtype: 'textfield',
|
|
|
- name: 'keyword',
|
|
|
+ name: 'sa_custname',
|
|
|
columnWidth: 0.15,
|
|
|
emptyText:'请输入客户名称'
|
|
|
}, {
|
|
|
xtype: 'condatefield',
|
|
|
- name: 'date',
|
|
|
+ name: 'createTime',
|
|
|
fieldLabel: '日期',
|
|
|
columnWidth: 0.5,
|
|
|
labelWidth: 50,
|
|
|
}, {
|
|
|
xtype: 'textfield',
|
|
|
- name: 'keyword',
|
|
|
+ name: 'sa_salecode',
|
|
|
labelWidth: 0,
|
|
|
columnWidth: 0.15,
|
|
|
emptyText: '销售单号'
|
|
|
}, {
|
|
|
xtype: 'checkbox',
|
|
|
- name: 'status',
|
|
|
+ name: 'sa_sendstatus',
|
|
|
fieldLabel: '已结案',
|
|
|
columnWidth: 0.1,
|
|
|
labelWidth: 50,
|
|
|
getCondition: function(v) {
|
|
|
if(v) {
|
|
|
- return 'status=' + Number(v);
|
|
|
+ return "sa_sendstatus='已关闭'";
|
|
|
}else {
|
|
|
return '1=1';
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
xtype: 'checkbox',
|
|
|
- name: 'status',
|
|
|
+ name: 'sa_sendstatus',
|
|
|
fieldLabel: '待出货',
|
|
|
columnWidth: 0.1,
|
|
|
labelWidth: 50,
|
|
|
getCondition: function(v) {
|
|
|
if(v) {
|
|
|
- return 'status=' + Number(v);
|
|
|
+ return "sa_sendstatus='未出库'";
|
|
|
}else {
|
|
|
return '1=1';
|
|
|
}
|
|
|
@@ -169,35 +169,5 @@ Ext.define('saas.view.sale.b2b.Purchase', {
|
|
|
}
|
|
|
|
|
|
return conditionValue;
|
|
|
- },
|
|
|
-
|
|
|
- getExtraParams: function(store, op, condition) {
|
|
|
- var temp = {};
|
|
|
-
|
|
|
- for(let x = 0; x < condition.length; x++) {
|
|
|
- let c = condition[x];
|
|
|
- if(c.field == 'keyword') {
|
|
|
- temp.keyword = c.value;
|
|
|
- }else if(c.field == 'date') {
|
|
|
- temp.fromDate = new Date(c.value.split(',')[0]).getTime();
|
|
|
- temp.endDate = new Date(c.value.split(',')[1]).getTime();
|
|
|
- }else if(c.field == 'quoted') {
|
|
|
- temp.quoted = c.value == 'all' ? null : c.value;
|
|
|
- }else if(c.field == 'closed') {
|
|
|
- // temp.endDate = c.value == 'all' ? null : (
|
|
|
- // c.value == '0' ?
|
|
|
- // );
|
|
|
- }
|
|
|
- }
|
|
|
- let obj = {
|
|
|
- pageNumber: store.exportNumber?store.exportNumber:op._page,
|
|
|
- pageSize: store.exportPageSize?store.exportPageSize:store.pageSize
|
|
|
- };
|
|
|
- for(let k in temp) {
|
|
|
- if(!!temp[k]) {
|
|
|
- obj[k] = temp[k];
|
|
|
- }
|
|
|
- }
|
|
|
- return obj;
|
|
|
- },
|
|
|
+ }
|
|
|
});
|