| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- 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 : "过账时间"
- }]
- });
|