|
|
@@ -6,17 +6,18 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
viewModel: 'purchase-purchaseIn-formmodel',
|
|
|
|
|
|
_title:'采购验收单',
|
|
|
+ _idField: 'id',
|
|
|
_codeField: 'pi_inoutno',
|
|
|
_statusField: 'pu_status',
|
|
|
_statusCodeField: 'pu_statuscode',
|
|
|
- _idField: 'id',
|
|
|
_detnoColumn: 'pd_pdno',
|
|
|
- _dataModelUrl:'http://192.168.253.58:8800/purchase/read/',
|
|
|
+ _relationColumn: 'pd_piid',
|
|
|
+ _readUrl:'http://192.168.253.58:8800/purchase/read/',
|
|
|
_saveUrl:'http://192.168.253.58:8800/purchase/save',
|
|
|
_auditUrl:'http://192.168.253.58:8800/purchase/audit',
|
|
|
_deleteUrl:'http://192.168.253.58:8800/purchase/delete/',
|
|
|
_deleteDetailUrl:'http://192.168.253.58:8800/purchase/deleteItem/',
|
|
|
- initId:0,
|
|
|
+ initId:11,
|
|
|
|
|
|
toolBtns: [{
|
|
|
xtype: 'button',
|
|
|
@@ -44,95 +45,80 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
xtype : "textfield",
|
|
|
name : "pi_class",
|
|
|
bind : "{pi_class}",
|
|
|
- fieldLabel : "类型",
|
|
|
+ fieldLabel : "单据类型",
|
|
|
readOnly:true,
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25
|
|
|
}, {
|
|
|
xtype : "hidden",
|
|
|
- name : "pu_vendid",
|
|
|
- bind : "{pu_vendid}",
|
|
|
+ name : "pi_vendid",
|
|
|
+ bind : "{pi_vendid}",
|
|
|
fieldLabel : "供应商ID",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.0
|
|
|
}, {
|
|
|
xtype : "textfield",
|
|
|
- name : "pu_vendcode",
|
|
|
- bind : "{pu_vendcode}",
|
|
|
+ name : "pi_vendcode",
|
|
|
+ bind : "{pi_vendcode}",
|
|
|
fieldLabel : "供应商编号",
|
|
|
hidden:true,
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0,
|
|
|
}, {
|
|
|
xtype : "dbfindtrigger",
|
|
|
- name : "pu_vendname",
|
|
|
- bind : "{pu_vendname}",
|
|
|
+ name : "pi_vendname",
|
|
|
+ bind : "{pi_vendname}",
|
|
|
fieldLabel : "供应商名称",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25
|
|
|
},{
|
|
|
xtype : "datefield",
|
|
|
- name : "pu_date",
|
|
|
- bind : "{pu_date}",
|
|
|
- fieldLabel : "采购日期",
|
|
|
+ name : "pi_date",
|
|
|
+ bind : "{pi_date}",
|
|
|
+ fieldLabel : "单据日期",
|
|
|
allowBlank : false,
|
|
|
columnWidth : 0.25
|
|
|
- }, {
|
|
|
- xtype : "hidden",
|
|
|
- name : "pu_buyerid",
|
|
|
- bind : "{pu_buyerid}",
|
|
|
- fieldLabel : "采购员ID",
|
|
|
- allowBlank : true,
|
|
|
- columnWidth : 0.0
|
|
|
- }, {
|
|
|
- xtype : "textfield",
|
|
|
- name : "pu_buyercode",
|
|
|
- bind : "{pu_buyercode}",
|
|
|
- fieldLabel : "采购员编号",
|
|
|
- allowBlank : true,
|
|
|
- hidden:true,
|
|
|
- columnWidth : 0
|
|
|
- }, {
|
|
|
- xtype : "dbfindtrigger",
|
|
|
- name : "pu_buyername",
|
|
|
- bind : "{pu_buyername}",
|
|
|
- fieldLabel : "采购员名称",
|
|
|
- allowBlank : true,
|
|
|
- columnWidth : 0.25
|
|
|
- }, {
|
|
|
+ },{
|
|
|
xtype : "textfield",
|
|
|
- name : "pu_shipaddresscode",
|
|
|
- bind : "{pu_shipaddresscode}",
|
|
|
- fieldLabel : "交货地址",
|
|
|
- allowBlank : true,
|
|
|
+ name : "pi_total",
|
|
|
+ bind : "{pi_total}",
|
|
|
+ fieldLabel : "总额",
|
|
|
+ allowBlank : true,
|
|
|
+ readOnly: true,
|
|
|
columnWidth : 0.25
|
|
|
}, {
|
|
|
xtype : "textfield",
|
|
|
- name : "pu_total",
|
|
|
- bind : "{pu_total}",
|
|
|
- fieldLabel : "单据金额",
|
|
|
+ name : "pi_pucode",
|
|
|
+ bind : "{pi_pucode}",
|
|
|
+ fieldLabel : "采购单号",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25
|
|
|
}, {
|
|
|
name : "detailGridField",
|
|
|
xtype : "detailGridField",
|
|
|
- bind: {
|
|
|
- store:{
|
|
|
- data:'{detailGridField}'
|
|
|
- }
|
|
|
- },
|
|
|
columns : [
|
|
|
{
|
|
|
text : "序号",
|
|
|
dataIndex : "pd_pdno",
|
|
|
- width : 80.0,
|
|
|
- xtype : "rownumberer"
|
|
|
+ width : 100,
|
|
|
+ xtype : "numbercolumn",
|
|
|
+ align : 'center',
|
|
|
+ format:'0',
|
|
|
+ summaryType: 'count',
|
|
|
+ summaryRenderer: function(value, summaryData, dataIndex) {
|
|
|
+ return Ext.String.format('合计: {0}条', value);
|
|
|
+ },
|
|
|
}, {
|
|
|
text : "id",
|
|
|
dataIndex : "id",
|
|
|
xtype : "numbercolumn"
|
|
|
},
|
|
|
{
|
|
|
+ text : "物料编号",
|
|
|
+ width : 200.0,
|
|
|
+ dataIndex : "pd_prodcode",
|
|
|
+ xtype : "",
|
|
|
+ items : null,
|
|
|
editor : {
|
|
|
displayField : "display",
|
|
|
editable : true,
|
|
|
@@ -145,35 +131,34 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
store : null,
|
|
|
valueField : "value",
|
|
|
xtype : "dbfindtrigger"
|
|
|
- },
|
|
|
- text : "物料编号",
|
|
|
- width : 200.0,
|
|
|
- dataIndex : "pd_prodcode",
|
|
|
- xtype : "",
|
|
|
- items : null
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
- text : "单位",
|
|
|
- editor : {
|
|
|
- xtype : "textfield"
|
|
|
- },
|
|
|
- dataIndex : "pd_unit",
|
|
|
- width : 120.0,
|
|
|
- xtype : "",
|
|
|
- items : null
|
|
|
+ text : "名称",
|
|
|
+ dataIndex : "pr_detail",
|
|
|
+ ignore:true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text : "规格",
|
|
|
+ dataIndex : "pr_spec",
|
|
|
+ ignore:true
|
|
|
},
|
|
|
{
|
|
|
text : "数量",
|
|
|
dataIndex : "pd_inqty",
|
|
|
+ editor : {
|
|
|
+ xtype : "numberfield"
|
|
|
+ },
|
|
|
width : 120.0,
|
|
|
xtype : "numbercolumn",
|
|
|
- items : null
|
|
|
+ format:'0',
|
|
|
+ items : null,
|
|
|
+ summaryType: 'sum'
|
|
|
},
|
|
|
{
|
|
|
text : "仓库",
|
|
|
dataIndex : "pd_whname",
|
|
|
width : 120.0,
|
|
|
- xtype : "numbercolumn",
|
|
|
items : null,
|
|
|
editor : {
|
|
|
displayField : "display",
|
|
|
@@ -216,21 +201,7 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
{
|
|
|
text : "采购单号",
|
|
|
dataIndex : "pd_ordercode",
|
|
|
- width : 120.0,
|
|
|
- flex : 1.0,
|
|
|
- editor : {
|
|
|
- displayField : "display",
|
|
|
- editable : true,
|
|
|
- format : "",
|
|
|
- hideTrigger : false,
|
|
|
- maxLength : 100.0,
|
|
|
- minValue : null,
|
|
|
- positiveNum : false,
|
|
|
- queryMode : "local",
|
|
|
- store : null,
|
|
|
- valueField : "value",
|
|
|
- xtype : "dbfindtrigger"
|
|
|
- }
|
|
|
+ width : 120.0
|
|
|
},{
|
|
|
text : "采购序号",
|
|
|
dataIndex : "pd_orderdetno",
|
|
|
@@ -257,8 +228,8 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
xtype : "textfield",
|
|
|
readOnly : true,
|
|
|
editable : false,
|
|
|
- name : "pu_status",
|
|
|
- bind : "{pu_status}",
|
|
|
+ name : "pi_status",
|
|
|
+ bind : "{pi_status}",
|
|
|
fieldLabel : "单据状态",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.25
|
|
|
@@ -266,8 +237,8 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
xtype : "hidden",
|
|
|
readOnly : true,
|
|
|
editable : false,
|
|
|
- name : "pu_statuscode",
|
|
|
- bind : "{pu_statuscode}",
|
|
|
+ name : "pi_statuscode",
|
|
|
+ bind : "{pi_statuscode}",
|
|
|
fieldLabel : "单据状态码",
|
|
|
allowBlank : true,
|
|
|
columnWidth : 0.0
|