| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- Ext.define('saas.view.stock.appropriationInOut.FormPanel', {
- extend: 'saas.view.core.form.FormPanel',
- xtype: 'stock-appropriationinout-formpanel',
- controller: 'stock-appropriationinout-formpanel',
- viewModel: 'stock-appropriationinout-formpanel',
-
- //字段属性
- _title:'调拨单',
- _idField: 'id',
- _codeField: 'pi_inoutno',
- _statusField: 'pi_status',
- _statusCodeField: 'pi_statuscode',
-
- _relationColumn: 'pd_piid',
- _readUrl:'http://localhost:9000/prodinout/read/',
- _saveUrl:'http://localhost:9000/prodinout/save',
- _auditUrl:'http://localhost:9000/prodinout/audit',
- _deleteUrl:'http://localhost:9000/prodinout/delete/',
- _deleteDetailUrl:'http://localhost:9000/prodinout/deleteItem/',
- initId:0,
-
- toolBtns: [],
- defaultItems: [{
- xtype: 'hidden',
- name: 'id',
- bind: '{id}',
- fieldLabel: 'id',
- allowBlank: true,
- columnWidth: 0
- },{
- xtype : "textfield",
- name : "pi_inoutno",
- bind : "{pi_inoutno}",
- fieldLabel : "调拨单号",
- allowBlank : true,
- columnWidth : 0.25
- },{
- xtype : "textfield",
- name : "pi_class",
- bind : "{pi_class}",
- fieldLabel : "单据类型",
- readOnly:true,
- allowBlank : true,
- hidden:true,
- defaultValue:"调拨单",
- columnWidth : 0.25
- },{
- xtype : "datefield",
- name : "pi_date",
- bind : "{pi_date}",
- fieldLabel : "单据日期",
- allowBlank : true,
- columnWidth : 0.25
- },{
- name : "detailGridField",
- xtype : "detailGridField",
- _detnoColumn: 'pd_pdno',
- columns : [
- {
- text : "序号",
- dataIndex : "pd_pdno",
- 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",
- hidden:true
- },{
- text : "pd_piid",
- dataIndex : "pd_piid",
- xtype : "numbercolumn",
- hidden:true
- },
- {
- text : "物料编号",
- width : 200.0,
- dataIndex : "pd_prodcode",
- xtype : "",
- items : null,
- editor : {
- displayField : "display",
- editable : true,
- format : "",
- hideTrigger : false,
- maxLength : 100.0,
- minValue : null,
- positiveNum : false,
- queryMode : "local",
- store : null,
- valueField : "value",
- xtype : "dbfindtrigger"
- }
- },
- {
- text : "名称",
- dataIndex : "pr_detail",
- ignore:true
- },
- {
- text : "规格",
- dataIndex : "pr_spec",
- ignore:true
- },
- {
- text : "单位",
- dataIndex : "pr_unit",
- ignore:true
- },
- {
- text : "数量",
- dataIndex : "pd_inqty",
- editor : {
- xtype : "numberfield"
- },
- width : 120.0,
- xtype : "numbercolumn",
- format:'0',
- items : null,
- summaryType: 'sum'
- }, {
- text : "拨出仓库id",
- dataIndex : "pd_whid",
- xtype : "numbercolumn",
- hidden:true
- },
- {
- text : "拨出仓库编号",
- dataIndex : "pd_whcode",
- width : 120.0,
- items : null,
- editor : {
- displayField : "display",
- editable : true,
- format : "",
- hideTrigger : false,
- maxLength : 100.0,
- minValue : null,
- positiveNum : false,
- queryMode : "local",
- store : null,
- valueField : "value",
- xtype : "dbfindtrigger"
- }
- },{
- text : "拨出仓库名称",
- dataIndex : "pd_whname",
- width : 120.0
- },{
- text : "拨入仓库id",
- dataIndex : "pd_inwhid",
- xtype : "numbercolumn",
- hidden:true
- },{
- text : "拨入仓库编号",
- dataIndex : "pd_inwhcode",
- width : 120.0,
- items : null,
- editor : {
- displayField : "display",
- editable : true,
- format : "",
- hideTrigger : false,
- maxLength : 100.0,
- minValue : null,
- positiveNum : false,
- queryMode : "local",
- store : null,
- valueField : "value",
- xtype : "dbfindtrigger"
- }
- },{
- text : "拨入仓库名称",
- dataIndex : "pd_inwhname",
- width : 120.0
- }
-
-
-
- ]
- }, {
- format : "Y-m-d",
- xtype : "datefield",
- name : "createTime",
- bind : "{createTime}",
- fieldLabel : "创建时间",
- allowBlank : true,
- columnWidth : 0.25
- }, {
- xtype : "datefield",
- name : "updateTime",
- bind : "{updateTime}",
- fieldLabel : "更新时间",
- allowBlank : true,
- columnWidth : 0.25
- }, {
- xtype : "textfield",
- readOnly : true,
- editable : false,
- name : "pu_status",
- bind : "{pi_status}",
- fieldLabel : "单据状态",
- allowBlank : true,
- columnWidth : 0.25
- }, {
- xtype : "hidden",
- readOnly : true,
- editable : false,
- name : "pi_statuscode",
- bind : "{pi_statuscode}",
- fieldLabel : "单据状态码",
- allowBlank : true,
- columnWidth : 0.0
- }]
- });
|