| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- Ext.define('saas.view.test.query.QueryPanel', {
- extend: 'saas.view.core.query.QueryPanel',
- xtype: 'test-query-querypanel',
- // controller: 'test-query-formcontroller',
- // viewModel: 'test-query-formmodel',
- viewName: 'test-query-formpanel',
- _baseVastUrl:'http://192.168.253.58:8800/purchase/',
- _idField:'pu_id',
- _codeField:'pu_code',
- queryFormItems: [{
- 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'
- }, {
- xtype: 'condatefield',
- name: 'pu_date',
- bind: '{pu_date}',
- fieldLabel: '采购日期',
- allowBlank: true,
- columnWidth: 0.5
- }, {
- xtype: 'dbfindtrigger',
- name: 'pu_vendcode',
- bind: '{pu_vendcode}',
- fieldLabel: '供应商编号',
- allowBlank: true,
- columnWidth: 0.25,
- configUrl: 'resources/json/purchase/vendorColumnsDbfind.json',
- dataUrl: 'resources/json/purchase/vendorDataDbfind.json'
- }, {
- xtype: 'textfield',
- name: 'pu_vendname',
- bind: '{pu_vendname}',
- fieldLabel: '供应商名称',
- allowBlank: true,
- columnWidth: 0.25
- }, {
- xtype: 'dbfindtrigger',
- name: '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'
- }, {
- xtype: 'textfield',
- name: 'pr_detail',
- bind: '{pr_detail}',
- fieldLabel: '物料名称',
- allowBlank: true,
- columnWidth: 0.25
- }, {
- xtype: 'remotecombo',
- name: 'pr_statuscode',
- bind: '{pr_statuscode}',
- fieldLabel: '审核状态',
- allowBlank: true,
- columnWidth: 0.25,
- store: Ext.create('Ext.data.Store', {
- fields: ['pr_statuscode', 'pr_status'],
- queryMode: 'local',
- displayField: 'pr_status',
- valueField: 'pr_statuscode',
- data: [
- ["$ALL", "全部"],
- ["=AUDITED", "已审核"],
- ["<>AUDITED", "未审核"]
- ]
- })
- }, {
- xtype: 'remotecombo',
- name: 'pu_acceptstatuscode',
- bind: '{pu_acceptstatuscode}',
- fieldLabel: '入库状态',
- allowBlank: true,
- columnWidth: 0.25,
- store: Ext.create('Ext.data.Store', {
- fields: ['pu_acceptstatuscode', 'pu_acceptstatus'],
- queryMode: 'local',
- displayField: 'pu_acceptstatus',
- valueField: 'pu_acceptstatuscode',
- data: [
- ["$ALL", "全部"],
- ["=TURNOUT", "已入库"],
- ["=NULL", "未入库"],
- ["=PARTOUT", "部分入库"]
- ]
- })
- }],
- moreQueryFormItems: [{
- xtype: 'textfield',
- name: 'pu_buyername',
- bind: '{pu_buyername}',
- fieldLabel: '采购员',
- allowBlank: true
- }, {
- xtype: 'textfield',
- name: 'pu_total',
- bind: '{pu_total}',
- fieldLabel: '金额',
- allowBlank: true
- }, {
- xtype: 'condatefield',
- name: 'pu_delivery',
- bind: '{pu_delivery}',
- fieldLabel: '交货日期',
- allowBlank: true,
- columnWidth: 1
- }],
- queryGridConfig: {
- _idField:'pu_id',
- _codeField:'pu_code',
- columns: [{
- text: '序号',
- width: 80,
- xtype: 'rownumberer'
- }, {
- text: 'id',
- dataIndex: 'pu_id',
- width: 100,
- xtype: 'numbercolumn'
- }, {
- text: '单据编号',
- dataIndex: 'pu_code',
- width: 120
- }, {
- text: '单据状态',
- dataIndex: 'pu_status',
- width: 120
- }, {
- text: '下单日期',
- dataIndex: 'pu_indate',
- xtype:'datecolumn',
- width: 200
- },{
- text: '供应商名称',
- dataIndex: 'pu_vendname',
- width: 120
- },{
- text: '含税金额',
- dataIndex: 'pu_taxtotal',
- xtype:'numbercolumn',
- width: 120
- },{
- text: '金额',
- dataIndex: 'pu_total',
- xtype:'numbercolumn',
- width: 120
- }]
- }
- });
|