Ext.define('saas.view.stock.otherIn.FormPanel', { extend: 'saas.view.core.form.FormPanel', xtype: 'stock-otherin-formpanel', controller: 'stock-otherin-formpanel', viewModel: 'stock-otherin-formpanel', viewName: 'stock-otherin-formpanel', caller:'OtherIn', //字段属性 _title:'其它入库单', _idField: 'id', _codeField: 'pi_inoutno', _statusField: 'pi_status', _statusCodeField: 'pi_statuscode', _relationColumn: 'pd_piid', _readUrl:basePath+'storage/prodinout/read/', _saveUrl:basePath+'storage/prodinout/save', _auditUrl:basePath+'storage/prodinout/audit', _deleteUrl:basePath+'storage/prodinout/delete/', _deleteDetailUrl:basePath+'storage/prodinout/deleteItem/', // _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/', // _baseVastUrl:'http://localhost:9000/prodinout/', initId:0, toolBtns: [], defaultItems: [{ xtype: 'hidden', name: 'id', fieldLabel: 'id', columnWidth: 0 },{ xtype : "textfield", name : "pi_class", fieldLabel : "单据类型", readOnly:true, allowBlank : false, defaultValue:'其它入库单' },{ xtype : "hidden", name : "pi_total", fieldLabel : "单据金额" }, { name : "detailGridField", xtype : "detailGridField", storeModel:'saas.model.document.ProductDTO', _detnoColumn: 'pd_pdno', columns : [ { text : "id", dataIndex : "id", xtype : "numbercolumn", hidden:true },{ text : "pd_piid", dataIndex : "pd_piid", xtype : "numbercolumn", hidden:true },{ text : "物料id", dataIndex : "pd_prodid", xtype : "numbercolumn" },{ 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, renderer: function (v, m, r) { return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:''; } }, { text : "规格", dataIndex : "pr_spec", ignore:true, renderer: function (v, m, r) { return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:''; } }, { text : "单位", dataIndex : "pr_unit", ignore:true, renderer: function (v, m, r) { return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:''; } }, { text : "数量", dataIndex : "pd_inqty", editor : { xtype : "numberfield" }, width : 120.0, xtype : "numbercolumn", format:'0', items : null, summaryType: 'sum' }, { text : "已转数", dataIndex : "pd_yqty", editor : { xtype : "numberfield" }, width : 120.0, xtype : "numbercolumn", format:'0', items : null, summaryType: 'sum' }, { text : "单价", editor : { xtype : "numberfield" }, format:'0,000.00', dataIndex : "pd_price", width : 120.0, xtype : "numbercolumn", items : null, summaryType: 'sum' }, { text : "税率", editor : { xtype : "numberfield" }, dataIndex : "pd_taxrate", width : 120.0, xtype : "numbercolumn", items : null }, { text : "未税金额", dataIndex : "pd_taxtotal", xtype : "numbercolumn" }, { text : "销售单明细id", dataIndex : "pd_sdid", width : 120.0, flex : 1.0, hidden:true },{ text : "销售单单号", dataIndex : "pd_sdid", width : 120.0, flex : 1.0 },{ text : "销售序号", dataIndex : "pd_sdid", width : 120.0, flex : 1.0 } ] },{ xtype : "textfield", name : "pi_recordman", fieldLabel : "录入人", readOnly:true, }, { format : "Y-m-d", xtype : "datefield", name : "createTime", fieldLabel : "创建时间" }, { xtype : "textfield", name : "pi_auditman", fieldLabel : "过账人" }, { format : "Y-m-d", xtype : "datefield", name : "pi_auditman", fieldLabel : "过账时间" }] });