|
|
@@ -3,8 +3,7 @@ Ext.define('saas.view.test.query.FormPanel', {
|
|
|
xtype: 'test-query-formpanel',
|
|
|
|
|
|
controller: 'test-query-formcontroller',
|
|
|
- viewModel: 'test-query-formmodel',
|
|
|
- viewName:'test-query-formpanel',
|
|
|
+ // viewModel: 'test-query-formmodel',
|
|
|
|
|
|
//字段属性
|
|
|
_codeField: 'pu_code',
|
|
|
@@ -15,28 +14,20 @@ Ext.define('saas.view.test.query.FormPanel', {
|
|
|
xtype: 'core-query-queryformpanel',
|
|
|
//_baseItems
|
|
|
items:[
|
|
|
- {
|
|
|
- xtype: 'hidden',
|
|
|
- name: 'pu_id',
|
|
|
- bind:'{pu_id}',
|
|
|
- fieldLabel: 'ID',
|
|
|
- allowBlank: true,
|
|
|
- columnWidth: 0
|
|
|
- },
|
|
|
{
|
|
|
xtype: 'dbfindtrigger',
|
|
|
name: 'pu_code',
|
|
|
- bind:'{pu_code}',
|
|
|
fieldLabel: '单据编号',
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25,
|
|
|
- configUrl: resources/json/purchase/vendorColumnsDbfind.json,
|
|
|
- dataUrl: resources/json/purchase/vendorDataDbfind.json
|
|
|
+ bind:'{pu_code}',
|
|
|
+ configUrl: 'resources/json/purchase/vendorColumnsDbfind.json',
|
|
|
+ dataUrl: 'resources/json/purchase/vendorDataDbfind.json'
|
|
|
},
|
|
|
{
|
|
|
xtype: 'condatefield',
|
|
|
name: 'pu_date',
|
|
|
- bind: '{pu_date}',
|
|
|
+ bind:'{pu_date}',
|
|
|
fieldLabel: '采购日期',
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0.5
|
|
|
@@ -44,87 +35,106 @@ Ext.define('saas.view.test.query.FormPanel', {
|
|
|
{
|
|
|
xtype: 'dbfindtrigger',
|
|
|
name: 'pu_vendcode',
|
|
|
- bind: '{pu_vendcode}',
|
|
|
+ bind:'{pu_vendcode}',
|
|
|
fieldLabel: '供应商编号',
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25,
|
|
|
- configUrl: resources/json/purchase/vendorColumnsDbfind.json,
|
|
|
- dataUrl: resources/json/purchase/vendorDataDbfind.json
|
|
|
+ value:'1234',
|
|
|
+ configUrl: 'resources/json/purchase/vendorColumnsDbfind.json',
|
|
|
+ dataUrl: 'resources/json/purchase/vendorDataDbfind.json'
|
|
|
},
|
|
|
{
|
|
|
xtype: 'textfield',
|
|
|
name: 'pu_vendname',
|
|
|
- bind: '{pu_vendname}',
|
|
|
+ bind:'{pu_vendname}',
|
|
|
fieldLabel: '供应商名称',
|
|
|
allowBlank: true,
|
|
|
+ value:'4321',
|
|
|
columnWidth: 0.25
|
|
|
},
|
|
|
{
|
|
|
xtype: 'dbfindtrigger',
|
|
|
name: 'pd_prodcode',
|
|
|
- bind: '{pd_prodcode}',
|
|
|
+ bind:'{pd_prodcode}',
|
|
|
fieldLabel: '物料编号',
|
|
|
fieldMode: 'DETAIL',
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25,
|
|
|
- configUrl: resources/json/purchase/vendorColumnsDbfind.json,
|
|
|
- dataUrl: resources/json/purchase/vendorDataDbfind.json
|
|
|
+ configUrl: 'resources/json/purchase/vendorColumnsDbfind.json',
|
|
|
+ dataUrl: 'resources/json/purchase/vendorDataDbfind.json'
|
|
|
},
|
|
|
{
|
|
|
xtype: 'textfield',
|
|
|
name: 'pr_detail',
|
|
|
- bind: '{pr_detail}',
|
|
|
+ bind:'{pr_detail}',
|
|
|
fieldLabel: '物料名称',
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25
|
|
|
},
|
|
|
{
|
|
|
- xtype: 'remotecombo',
|
|
|
+ xtype: 'combobox',
|
|
|
name:'pr_statuscode',
|
|
|
- bind: '{pr_statuscode}',
|
|
|
+ bind:'{pr_statuscode}',
|
|
|
fieldLabel: '审核状态',
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25,
|
|
|
+ queryMode: 'local',
|
|
|
+ displayField: 'pr_status',
|
|
|
+ valueField: 'pr_statuscode',
|
|
|
store: Ext.create('Ext.data.Store', {
|
|
|
fields: ['pr_statuscode', 'pr_status'],
|
|
|
- queryMode: 'local',
|
|
|
- displayField: 'pr_status',
|
|
|
- valueField: 'pr_statuscode',
|
|
|
data :[
|
|
|
["$ALL","全部"],
|
|
|
- ["=AUDITED" ,"已审核"],
|
|
|
- ["<>AUDITED","未审核"]
|
|
|
+ ["= 'AUDITED'" ,"已审核"],
|
|
|
+ ["<> 'AUDITED'","未审核"]
|
|
|
]
|
|
|
})
|
|
|
},
|
|
|
{
|
|
|
- xtype: 'remotecombo',
|
|
|
+ xtype: 'combobox',
|
|
|
name: 'pu_acceptstatuscode',
|
|
|
- bind: '{pu_acceptstatuscode}',
|
|
|
+ bind:'{pu_acceptstatuscode}',
|
|
|
fieldLabel: '入库状态',
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25,
|
|
|
+ queryMode: 'local',
|
|
|
+ displayField: 'pu_acceptstatus',
|
|
|
+ valueField: 'pu_acceptstatuscode',
|
|
|
store: Ext.create('Ext.data.Store', {
|
|
|
fields: ['pu_acceptstatuscode', 'pu_acceptstatus'],
|
|
|
- queryMode: 'local',
|
|
|
- displayField: 'pu_acceptstatus',
|
|
|
- valueField: 'pu_acceptstatuscode',
|
|
|
data :[
|
|
|
["$ALL","全部"],
|
|
|
- ["=TURNOUT","已入库"],
|
|
|
- ["=NULL","未入库"],
|
|
|
- ["=PARTOUT","部分入库"]
|
|
|
+ ["= 'TURNOUT'","已入库"],
|
|
|
+ ["is NULL","未入库"],
|
|
|
+ ["= 'PARTOUT'","部分入库"]
|
|
|
]
|
|
|
})
|
|
|
}
|
|
|
]
|
|
|
},{
|
|
|
xtype: 'core-query-gridpanel',
|
|
|
+ fields:[
|
|
|
+ {
|
|
|
+ name : 'pu_id'
|
|
|
+ },{
|
|
|
+ name : 'pu_code'
|
|
|
+ },{
|
|
|
+ name : 'pu_status'
|
|
|
+ },{
|
|
|
+ name : 'pu_date'
|
|
|
+ },{
|
|
|
+ name : 'pu_vendcode'
|
|
|
+ },{
|
|
|
+ name : 'pu_vendname'
|
|
|
+ },{
|
|
|
+ name : 'pu_taxtotal'
|
|
|
+ }
|
|
|
+ ],
|
|
|
columns: [
|
|
|
{
|
|
|
text: '序号',
|
|
|
width: 80,
|
|
|
- xtype: rownumberer
|
|
|
+ xtype: 'rownumberer'
|
|
|
},
|
|
|
{
|
|
|
text: 'id',
|
|
|
@@ -142,25 +152,30 @@ Ext.define('saas.view.test.query.FormPanel', {
|
|
|
dataIndex: 'pu_status',
|
|
|
width: 120
|
|
|
}
|
|
|
- //,
|
|
|
- // {
|
|
|
- // text: 下单时间,
|
|
|
- // dataIndex: puDate,
|
|
|
- // width: 120,
|
|
|
- // xtype: datecolumn
|
|
|
- // },
|
|
|
- // {
|
|
|
- // text: 供应商名称,
|
|
|
- // dataIndex: puVendname,
|
|
|
- // width: 200
|
|
|
- // },
|
|
|
- // {
|
|
|
- // text: 含税金额,
|
|
|
- // dataIndex: puTaxtotal,
|
|
|
- // width: 120,
|
|
|
- // xtype: numbercolumn,
|
|
|
- // flex: 1
|
|
|
- // }
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ text: '下单时间',
|
|
|
+ dataIndex: 'pu_date',
|
|
|
+ width: 120,
|
|
|
+ xtype: 'datecolumn'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '供应商编号',
|
|
|
+ dataIndex: 'pu_vendcode',
|
|
|
+ width: 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '供应商名称',
|
|
|
+ dataIndex: 'pu_vendname',
|
|
|
+ width: 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '含税金额',
|
|
|
+ dataIndex: 'pu_taxtotal',
|
|
|
+ width: 120,
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ flex: 1
|
|
|
+ }
|
|
|
]
|
|
|
}]
|
|
|
});
|