|
@@ -9,204 +9,186 @@ Ext.define('saas.view.stock.otherIn.QueryPanel', {
|
|
|
|
|
|
|
|
queryFormItems: [{
|
|
queryFormItems: [{
|
|
|
xtype: 'hidden',
|
|
xtype: 'hidden',
|
|
|
- name: 'pu_id',
|
|
|
|
|
- bind: '{pu_id}',
|
|
|
|
|
|
|
+ name: 'id',
|
|
|
|
|
+ bind: '{id}',
|
|
|
fieldLabel: 'ID',
|
|
fieldLabel: 'ID',
|
|
|
allowBlank: true,
|
|
allowBlank: true,
|
|
|
columnWidth: 0
|
|
columnWidth: 0
|
|
|
}, {
|
|
}, {
|
|
|
xtype: 'textfield',
|
|
xtype: 'textfield',
|
|
|
- name: 'pu_code',
|
|
|
|
|
- bind: '{pu_code}',
|
|
|
|
|
|
|
+ name: 'pi_inoutno',
|
|
|
|
|
+ bind: '{pi_inoutno}',
|
|
|
fieldLabel: '单据编号',
|
|
fieldLabel: '单据编号',
|
|
|
allowBlank: true,
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25
|
|
columnWidth: 0.25
|
|
|
}, {
|
|
}, {
|
|
|
xtype: 'condatefield',
|
|
xtype: 'condatefield',
|
|
|
- name: 'pu_date',
|
|
|
|
|
- bind: '{pu_date}',
|
|
|
|
|
- fieldLabel: '采购日期',
|
|
|
|
|
|
|
+ name: 'pi_date',
|
|
|
|
|
+ bind: '{pi_date}',
|
|
|
|
|
+ fieldLabel: '单据日期',
|
|
|
allowBlank: true,
|
|
allowBlank: true,
|
|
|
columnWidth: 0.5
|
|
columnWidth: 0.5
|
|
|
}, {
|
|
}, {
|
|
|
- xtype: 'dbfindtrigger',
|
|
|
|
|
- name: 'pu_vendcode',
|
|
|
|
|
- bind: '{pu_vendcode}',
|
|
|
|
|
|
|
+ xtype: 'textfield',
|
|
|
|
|
+ name: 'pi_vendcode',
|
|
|
|
|
+ bind: '{pi_vendcode}',
|
|
|
fieldLabel: '供应商编号',
|
|
fieldLabel: '供应商编号',
|
|
|
allowBlank: true,
|
|
allowBlank: true,
|
|
|
|
|
+ hidden:true,
|
|
|
columnWidth: 0.25
|
|
columnWidth: 0.25
|
|
|
}, {
|
|
}, {
|
|
|
xtype: 'textfield',
|
|
xtype: 'textfield',
|
|
|
- name: 'pu_vendname',
|
|
|
|
|
- bind: '{pu_vendname}',
|
|
|
|
|
|
|
+ name: 'pi_vendname',
|
|
|
|
|
+ bind: '{pi_vendname}',
|
|
|
fieldLabel: '供应商名称',
|
|
fieldLabel: '供应商名称',
|
|
|
allowBlank: true,
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25
|
|
columnWidth: 0.25
|
|
|
}, {
|
|
}, {
|
|
|
xtype: 'dbfindtrigger',
|
|
xtype: 'dbfindtrigger',
|
|
|
- name: 'pd_prodcode#pd_prodcode',
|
|
|
|
|
- //#pr_detail
|
|
|
|
|
|
|
+ name: 'pd_prodcode',
|
|
|
bind: '{pd_prodcode}',
|
|
bind: '{pd_prodcode}',
|
|
|
fieldLabel: '物料编号',
|
|
fieldLabel: '物料编号',
|
|
|
fieldMode: 'DETAIL',
|
|
fieldMode: 'DETAIL',
|
|
|
- queryType: 'VAG',
|
|
|
|
|
|
|
+ queryType:'VAG',
|
|
|
|
|
+ hidden:true,
|
|
|
allowBlank: true,
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25
|
|
columnWidth: 0.25
|
|
|
}, {
|
|
}, {
|
|
|
- xtype: 'textfield',
|
|
|
|
|
- name: 'pr_detail',
|
|
|
|
|
|
|
+ xtype: 'dbfindtrigger',
|
|
|
|
|
+ name: 'pr_detail#pd_prodcode',
|
|
|
bind: '{pr_detail}',
|
|
bind: '{pr_detail}',
|
|
|
fieldLabel: '物料名称',
|
|
fieldLabel: '物料名称',
|
|
|
allowBlank: true,
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25
|
|
columnWidth: 0.25
|
|
|
}, {
|
|
}, {
|
|
|
xtype: 'combobox',
|
|
xtype: 'combobox',
|
|
|
- name: 'pu_statuscode',
|
|
|
|
|
- // bind: '{pu_statuscode}',
|
|
|
|
|
|
|
+ name: 'pi_statuscode',
|
|
|
|
|
+ bind: '{pi_statuscode}',
|
|
|
fieldLabel: '审核状态',
|
|
fieldLabel: '审核状态',
|
|
|
allowBlank: true,
|
|
allowBlank: true,
|
|
|
columnWidth: 0.25,
|
|
columnWidth: 0.25,
|
|
|
queryMode: 'local',
|
|
queryMode: 'local',
|
|
|
- displayField: 'pu_status',
|
|
|
|
|
- valueField: 'pu_statuscode',
|
|
|
|
|
- editable:false,
|
|
|
|
|
|
|
+ displayField: 'pi_status',
|
|
|
|
|
+ valueField: 'pi_statuscode',
|
|
|
store: Ext.create('Ext.data.ArrayStore', {
|
|
store: Ext.create('Ext.data.ArrayStore', {
|
|
|
- fields: ['pu_statuscode', 'pu_status'],
|
|
|
|
|
- data: [
|
|
|
|
|
- ["$ALL", "全部"],
|
|
|
|
|
- ["AUDITED", "已审核"],
|
|
|
|
|
- ["UNAUDITED", "未审核"]
|
|
|
|
|
- ]
|
|
|
|
|
- })
|
|
|
|
|
- }, {
|
|
|
|
|
- xtype: 'multicombo',
|
|
|
|
|
- name: 'pu_acceptstatuscode',
|
|
|
|
|
- bind: '{pu_acceptstatuscode}',
|
|
|
|
|
- fieldLabel: '入库状态',
|
|
|
|
|
- allowBlank: true,
|
|
|
|
|
- columnWidth: 0.25,
|
|
|
|
|
- datas: [
|
|
|
|
|
- ["TURNIN", "已入库"],
|
|
|
|
|
- ["UNTURNIN", "未入库"],
|
|
|
|
|
- ["PARTIN", "部分入库"]
|
|
|
|
|
- ]
|
|
|
|
|
- }],
|
|
|
|
|
- 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
|
|
|
|
|
|
|
+ fields: ['pi_statuscode', 'pi_status'],
|
|
|
|
|
+ data: [
|
|
|
|
|
+ ["ALL", "全部"],
|
|
|
|
|
+ ["AUDITED", "已审核"],
|
|
|
|
|
+ ["UNAUDITED", "未审核"]
|
|
|
|
|
+ ]
|
|
|
|
|
+ }),
|
|
|
|
|
+ getCondition: function(value) {
|
|
|
|
|
+ if(value == 'ALL') {
|
|
|
|
|
+ return '1=1';
|
|
|
|
|
+ }else {
|
|
|
|
|
+ return 'pi_statuscode=\'' + value + '\'';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}],
|
|
}],
|
|
|
|
|
+ moreQueryFormItems: [],
|
|
|
queryGridConfig: {
|
|
queryGridConfig: {
|
|
|
- idField: 'pu_id',
|
|
|
|
|
- codeField: 'pu_code',
|
|
|
|
|
|
|
+ idField: 'id',
|
|
|
|
|
+ codeField: 'pi_inoutno',
|
|
|
addTitle: '其它入库单',
|
|
addTitle: '其它入库单',
|
|
|
addXtype: 'stock-otherin-formpanel',
|
|
addXtype: 'stock-otherin-formpanel',
|
|
|
defaultCondition:' pi_class = \'其它入库单\'',
|
|
defaultCondition:' pi_class = \'其它入库单\'',
|
|
|
- baseVastUrl: 'http://localhost:9000/prodinout/',
|
|
|
|
|
|
|
+ baseVastUrl: basePath+'storage/prodinout/',
|
|
|
baseColumn: [{
|
|
baseColumn: [{
|
|
|
text: '序号',
|
|
text: '序号',
|
|
|
width: 80,
|
|
width: 80,
|
|
|
xtype: 'rownumberer'
|
|
xtype: 'rownumberer'
|
|
|
}, {
|
|
}, {
|
|
|
text: 'id',
|
|
text: 'id',
|
|
|
- dataIndex: 'pu_id',
|
|
|
|
|
|
|
+ dataIndex: 'id',
|
|
|
width: 100,
|
|
width: 100,
|
|
|
xtype: 'numbercolumn'
|
|
xtype: 'numbercolumn'
|
|
|
}, {
|
|
}, {
|
|
|
text: '单据编号',
|
|
text: '单据编号',
|
|
|
- dataIndex: 'pu_code',
|
|
|
|
|
|
|
+ dataIndex: 'pi_inoutno',
|
|
|
width: 120
|
|
width: 120
|
|
|
}, {
|
|
}, {
|
|
|
text: '单据状态',
|
|
text: '单据状态',
|
|
|
- dataIndex: 'pu_status',
|
|
|
|
|
|
|
+ dataIndex: 'pi_status',
|
|
|
|
|
+ width: 120
|
|
|
|
|
+ }, {
|
|
|
|
|
+ text: '单据类型',
|
|
|
|
|
+ dataIndex: 'pi_class',
|
|
|
width: 120
|
|
width: 120
|
|
|
}, {
|
|
}, {
|
|
|
text: '下单日期',
|
|
text: '下单日期',
|
|
|
- dataIndex: 'pu_indate',
|
|
|
|
|
- xtype: 'datecolumn',
|
|
|
|
|
|
|
+ dataIndex: 'pi_date',
|
|
|
|
|
+ xtype:'datecolumn',
|
|
|
width: 200
|
|
width: 200
|
|
|
- }, {
|
|
|
|
|
|
|
+ },{
|
|
|
text: '供应商名称',
|
|
text: '供应商名称',
|
|
|
- dataIndex: 'pu_vendname',
|
|
|
|
|
|
|
+ dataIndex: 'pi_vendname',
|
|
|
width: 120
|
|
width: 120
|
|
|
- }, {
|
|
|
|
|
|
|
+ },{
|
|
|
text: '含税金额',
|
|
text: '含税金额',
|
|
|
- dataIndex: 'pu_taxtotal',
|
|
|
|
|
- xtype: 'numbercolumn',
|
|
|
|
|
|
|
+ dataIndex: 'pi_total',
|
|
|
|
|
+ xtype:'numbercolumn',
|
|
|
width: 120
|
|
width: 120
|
|
|
- }, {
|
|
|
|
|
- text: '金额',
|
|
|
|
|
- dataIndex: 'pu_total',
|
|
|
|
|
- xtype: 'numbercolumn',
|
|
|
|
|
|
|
+ },{
|
|
|
|
|
+ text: '不含税金额',
|
|
|
|
|
+ dataIndex: 'pi_nettotal',
|
|
|
|
|
+ xtype:'numbercolumn',
|
|
|
width: 120,
|
|
width: 120,
|
|
|
flex: 1
|
|
flex: 1
|
|
|
}],
|
|
}],
|
|
|
relativeColumn: [{
|
|
relativeColumn: [{
|
|
|
- text: '序号',
|
|
|
|
|
- width: 80,
|
|
|
|
|
- xtype: 'rownumberer'
|
|
|
|
|
|
|
+ text : "序号",
|
|
|
|
|
+ dataIndex : "pd_pdno",
|
|
|
|
|
+ width : 100,
|
|
|
|
|
+ xtype : "numbercolumn",
|
|
|
|
|
+ align : 'center'
|
|
|
}, {
|
|
}, {
|
|
|
text: 'id',
|
|
text: 'id',
|
|
|
dataIndex: 'pu_id',
|
|
dataIndex: 'pu_id',
|
|
|
- width: 100,
|
|
|
|
|
|
|
+ width: 0,
|
|
|
xtype: 'numbercolumn'
|
|
xtype: 'numbercolumn'
|
|
|
}, {
|
|
}, {
|
|
|
text: '单据编号',
|
|
text: '单据编号',
|
|
|
- dataIndex: 'pu_code',
|
|
|
|
|
|
|
+ dataIndex: 'pd_inoutno',
|
|
|
width: 120
|
|
width: 120
|
|
|
}, {
|
|
}, {
|
|
|
text: '单据状态',
|
|
text: '单据状态',
|
|
|
- dataIndex: 'pu_status',
|
|
|
|
|
|
|
+ dataIndex: 'pi_status',
|
|
|
width: 120
|
|
width: 120
|
|
|
}, {
|
|
}, {
|
|
|
text: '下单日期',
|
|
text: '下单日期',
|
|
|
- dataIndex: 'pu_indate',
|
|
|
|
|
- xtype: 'datecolumn',
|
|
|
|
|
|
|
+ dataIndex: 'pi_date',
|
|
|
|
|
+ xtype:'datecolumn',
|
|
|
width: 200
|
|
width: 200
|
|
|
- }, {
|
|
|
|
|
|
|
+ },{
|
|
|
text: '供应商名称',
|
|
text: '供应商名称',
|
|
|
- dataIndex: 'pu_vendname',
|
|
|
|
|
- width: 120
|
|
|
|
|
- }, {
|
|
|
|
|
- text: '采购序号',
|
|
|
|
|
- dataIndex: 'pd_detno',
|
|
|
|
|
- xtype: 'numbercolumn',
|
|
|
|
|
|
|
+ dataIndex: 'pi_vendname',
|
|
|
width: 120
|
|
width: 120
|
|
|
- }, {
|
|
|
|
|
|
|
+ },{
|
|
|
text: '物料编号',
|
|
text: '物料编号',
|
|
|
dataIndex: 'pd_prodcode',
|
|
dataIndex: 'pd_prodcode',
|
|
|
width: 120
|
|
width: 120
|
|
|
- }, {
|
|
|
|
|
- text: '数量',
|
|
|
|
|
- dataIndex: 'pd_qty',
|
|
|
|
|
- xtype: 'numbercolumn',
|
|
|
|
|
|
|
+ },{
|
|
|
|
|
+ text: '入库数量',
|
|
|
|
|
+ dataIndex: 'pd_inqty',
|
|
|
|
|
+ xtype:'numbercolumn',
|
|
|
width: 120
|
|
width: 120
|
|
|
- }, {
|
|
|
|
|
- text: '单价',
|
|
|
|
|
|
|
+ },{
|
|
|
|
|
+ text: '成本单价',
|
|
|
dataIndex: 'pd_price',
|
|
dataIndex: 'pd_price',
|
|
|
- xtype: 'numbercolumn',
|
|
|
|
|
- width: 120
|
|
|
|
|
- }, {
|
|
|
|
|
- text: '已转数',
|
|
|
|
|
- dataIndex: 'pd_ytqy',
|
|
|
|
|
- xtype: 'numbercolumn',
|
|
|
|
|
|
|
+ xtype:'numbercolumn',
|
|
|
width: 120,
|
|
width: 120,
|
|
|
flex: 1
|
|
flex: 1
|
|
|
|
|
+ },{
|
|
|
|
|
+ text: '金额',
|
|
|
|
|
+ dataIndex: 'pd_total',
|
|
|
|
|
+ xtype:'numbercolumn',
|
|
|
|
|
+ width: 120
|
|
|
|
|
+ },{
|
|
|
|
|
+ text: '税率',
|
|
|
|
|
+ dataIndex: 'pd_taxrate',
|
|
|
|
|
+ xtype:'numbercolumn',
|
|
|
|
|
+ width: 120
|
|
|
}]
|
|
}]
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|