|
|
@@ -4,69 +4,55 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
|
|
|
controller: 'purchase-purchase-querypanel',
|
|
|
viewModel: 'purchase-purchase-querypanel',
|
|
|
+
|
|
|
viewName: 'purchase-purchase-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
|
|
|
+ getCondition: function(value) {
|
|
|
+ return 'pu_id=' + value;
|
|
|
+ }
|
|
|
}, {
|
|
|
xtype: 'textfield',
|
|
|
name: 'pu_code',
|
|
|
bind: '{pu_code}',
|
|
|
- fieldLabel: '单据编号',
|
|
|
- allowBlank: true,
|
|
|
- columnWidth: 0.25
|
|
|
+ fieldLabel: '单据编号'
|
|
|
}, {
|
|
|
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
|
|
|
+ fieldLabel: '供应商编号'
|
|
|
}, {
|
|
|
xtype: 'textfield',
|
|
|
name: 'pu_vendname',
|
|
|
bind: '{pu_vendname}',
|
|
|
- fieldLabel: '供应商名称',
|
|
|
- allowBlank: true,
|
|
|
- columnWidth: 0.25
|
|
|
+ fieldLabel: '供应商名称'
|
|
|
}, {
|
|
|
xtype: 'dbfindtrigger',
|
|
|
- name: 'pd_prodcode#pd_prodcode',
|
|
|
- //#pr_detail
|
|
|
+ name: 'pd_prodcode',
|
|
|
bind: '{pd_prodcode}',
|
|
|
fieldLabel: '物料编号',
|
|
|
- fieldMode: 'DETAIL',
|
|
|
- queryType: 'VAG',
|
|
|
- allowBlank: true,
|
|
|
- columnWidth: 0.25
|
|
|
+ showDetail: true
|
|
|
}, {
|
|
|
xtype: 'textfield',
|
|
|
name: 'pr_detail',
|
|
|
bind: '{pr_detail}',
|
|
|
- fieldLabel: '物料名称',
|
|
|
- allowBlank: true,
|
|
|
- columnWidth: 0.25
|
|
|
+ fieldLabel: '物料名称'
|
|
|
}, {
|
|
|
xtype: 'combobox',
|
|
|
name: 'pu_statuscode',
|
|
|
// bind: '{pu_statuscode}',
|
|
|
fieldLabel: '审核状态',
|
|
|
- allowBlank: true,
|
|
|
- columnWidth: 0.25,
|
|
|
queryMode: 'local',
|
|
|
displayField: 'pu_status',
|
|
|
valueField: 'pu_statuscode',
|
|
|
@@ -84,8 +70,6 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
name: 'pu_acceptstatuscode',
|
|
|
bind: '{pu_acceptstatuscode}',
|
|
|
fieldLabel: '入库状态',
|
|
|
- allowBlank: true,
|
|
|
- columnWidth: 0.25,
|
|
|
datas: [
|
|
|
["TURNIN", "已入库"],
|
|
|
["UNTURNIN", "未入库"],
|
|
|
@@ -96,29 +80,26 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
xtype: 'textfield',
|
|
|
name: 'pu_buyername',
|
|
|
bind: '{pu_buyername}',
|
|
|
- fieldLabel: '采购员',
|
|
|
- allowBlank: true
|
|
|
+ fieldLabel: '采购员'
|
|
|
}, {
|
|
|
xtype: 'textfield',
|
|
|
name: 'pu_total',
|
|
|
bind: '{pu_total}',
|
|
|
- fieldLabel: '金额',
|
|
|
- allowBlank: true
|
|
|
+ fieldLabel: '金额'
|
|
|
}, {
|
|
|
xtype: 'condatefield',
|
|
|
name: 'pu_delivery',
|
|
|
bind: '{pu_delivery}',
|
|
|
fieldLabel: '交货日期',
|
|
|
- allowBlank: true,
|
|
|
columnWidth: 1
|
|
|
}],
|
|
|
queryGridConfig: {
|
|
|
- _idField: 'pu_id',
|
|
|
- _codeField: 'pu_code',
|
|
|
- _title: '采购单',
|
|
|
- _addXtype: 'purchase-purchase-formpanel',
|
|
|
- _baseVastUrl: 'http://192.168.253.58:8800/purchase/',
|
|
|
- _baseColumn: [{
|
|
|
+ idField: 'pu_id',
|
|
|
+ codeField: 'pu_code',
|
|
|
+ addTitle: '采购单',
|
|
|
+ addXtype: 'purchase-purchase-formpanel',
|
|
|
+ baseVastUrl: 'http://192.168.253.58:8800/purchase/',
|
|
|
+ baseColumn: [{
|
|
|
text: '序号',
|
|
|
width: 80,
|
|
|
xtype: 'rownumberer'
|
|
|
@@ -156,7 +137,7 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
width: 120,
|
|
|
flex: 1
|
|
|
}],
|
|
|
- _relativeColumn: [{
|
|
|
+ relativeColumn: [{
|
|
|
text: '序号',
|
|
|
width: 80,
|
|
|
xtype: 'rownumberer'
|