|
|
@@ -2,11 +2,12 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
extend: 'saas.view.core.query.QueryPanel',
|
|
|
xtype: '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',
|
|
|
+ _baseVastUrl: 'http://192.168.253.58:8800/purchase/',
|
|
|
+ _idField: 'pu_id',
|
|
|
+ _codeField: 'pu_code',
|
|
|
queryFormItems: [{
|
|
|
xtype: 'hidden',
|
|
|
name: 'pu_id',
|
|
|
@@ -21,20 +22,21 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
fieldLabel: '单据编号',
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25,
|
|
|
- dataUrl:'http://192.168.253.41:9480/api/document/vendor/getVendorsByCondition',
|
|
|
- dbfinds:[{
|
|
|
- from:'ve_code',to:'pu_code'
|
|
|
+ dataUrl: 'http://192.168.253.41:9480/api/document/vendor/getVendorsByCondition',
|
|
|
+ dbfinds: [{
|
|
|
+ from: 've_code',
|
|
|
+ to: 'pu_code'
|
|
|
}],
|
|
|
- dbColumns:[{
|
|
|
- conditionCode:'ve_id',
|
|
|
+ dbColumns: [{
|
|
|
+ conditionCode: 've_id',
|
|
|
"text": "供应商ID",
|
|
|
"flex": 0,
|
|
|
"dataIndex": "ve_id",
|
|
|
"width": 0,
|
|
|
"xtype": "",
|
|
|
"items": null
|
|
|
- },{
|
|
|
- conditionCode:'ve_code',
|
|
|
+ }, {
|
|
|
+ conditionCode: 've_code',
|
|
|
"text": "供应商编号",
|
|
|
"flex": 1,
|
|
|
"dataIndex": "ve_code",
|
|
|
@@ -42,14 +44,14 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
"xtype": "",
|
|
|
"items": null
|
|
|
}, {
|
|
|
- conditionCode:'ve_name',
|
|
|
+ conditionCode: 've_name',
|
|
|
"text": "供应商名称",
|
|
|
"flex": 1,
|
|
|
"dataIndex": "ve_name",
|
|
|
"xtype": "",
|
|
|
"items": null
|
|
|
}, {
|
|
|
- conditionCode:'ve_type',
|
|
|
+ conditionCode: 've_type',
|
|
|
"text": "供应商类型",
|
|
|
"flex": 0,
|
|
|
"dataIndex": "ve_type",
|
|
|
@@ -86,7 +88,7 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
bind: '{pd_prodcode}',
|
|
|
fieldLabel: '物料编号',
|
|
|
fieldMode: 'DETAIL',
|
|
|
- queryType:'VAG',
|
|
|
+ queryType: 'VAG',
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25,
|
|
|
configUrl: 'resources/json/purchase/vendorColumnsDbfind.json',
|
|
|
@@ -101,14 +103,14 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
}, {
|
|
|
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.ArrayStore', {
|
|
|
+ displayField: 'pr_status',
|
|
|
+ valueField: 'pr_statuscode',
|
|
|
+ store: Ext.create('Ext.data.ArrayStore', {
|
|
|
fields: ['pr_statuscode', 'pr_status'],
|
|
|
data: [
|
|
|
["$ALL", "全部"],
|
|
|
@@ -119,15 +121,17 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
}, {
|
|
|
xtype: 'multicombo',
|
|
|
name: 'pu_acceptstatuscode',
|
|
|
- // bind: '{pu_acceptstatuscode}',
|
|
|
+ bind: '{pu_acceptstatuscode}',
|
|
|
+ readOnly: false,
|
|
|
+ editable: false,
|
|
|
fieldLabel: '入库状态',
|
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25,
|
|
|
datas: [
|
|
|
- ["TURNOUT", "已入库"],
|
|
|
- ["NOOUT", "未入库"],
|
|
|
- ["PARTOUT", "部分入库"]
|
|
|
- ]
|
|
|
+ ["TURNOUT", "已入库"],
|
|
|
+ ["NOOUT", "未入库"],
|
|
|
+ ["PARTOUT", "部分入库"]
|
|
|
+ ]
|
|
|
}],
|
|
|
moreQueryFormItems: [{
|
|
|
xtype: 'textfield',
|
|
|
@@ -150,11 +154,11 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
columnWidth: 1
|
|
|
}],
|
|
|
queryGridConfig: {
|
|
|
- _idField:'pu_id',
|
|
|
- _codeField:'pu_code',
|
|
|
- _title:'采购单',
|
|
|
- _addXtype:'test-order-formpanel',
|
|
|
- _baseVastUrl:'http://192.168.253.58:8800/purchase/',
|
|
|
+ _idField: 'pu_id',
|
|
|
+ _codeField: 'pu_code',
|
|
|
+ _title: '采购单',
|
|
|
+ _addXtype: 'test-order-formpanel',
|
|
|
+ _baseVastUrl: 'http://192.168.253.58:8800/purchase/',
|
|
|
_baseColumn: [{
|
|
|
text: '序号',
|
|
|
width: 80,
|
|
|
@@ -175,21 +179,21 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
}, {
|
|
|
text: '下单日期',
|
|
|
dataIndex: 'pu_indate',
|
|
|
- xtype:'datecolumn',
|
|
|
+ xtype: 'datecolumn',
|
|
|
width: 200
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '供应商名称',
|
|
|
dataIndex: 'pu_vendname',
|
|
|
width: 120
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '含税金额',
|
|
|
dataIndex: 'pu_taxtotal',
|
|
|
- xtype:'numbercolumn',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
width: 120
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '金额',
|
|
|
dataIndex: 'pu_total',
|
|
|
- xtype:'numbercolumn',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
width: 120,
|
|
|
flex: 1
|
|
|
}],
|
|
|
@@ -213,35 +217,35 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
}, {
|
|
|
text: '下单日期',
|
|
|
dataIndex: 'pu_indate',
|
|
|
- xtype:'datecolumn',
|
|
|
+ xtype: 'datecolumn',
|
|
|
width: 200
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '供应商名称',
|
|
|
dataIndex: 'pu_vendname',
|
|
|
width: 120
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '采购序号',
|
|
|
dataIndex: 'pd_detno',
|
|
|
- xtype:'numbercolumn',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
width: 120
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '物料编号',
|
|
|
dataIndex: 'pd_prodcode',
|
|
|
width: 120
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '数量',
|
|
|
dataIndex: 'pd_qty',
|
|
|
- xtype:'numbercolumn',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
width: 120
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '单价',
|
|
|
dataIndex: 'pd_price',
|
|
|
- xtype:'numbercolumn',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
width: 120
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '已转数',
|
|
|
dataIndex: 'pd_ytqy',
|
|
|
- xtype:'numbercolumn',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
width: 120,
|
|
|
flex: 1
|
|
|
}]
|