|
|
@@ -0,0 +1,234 @@
|
|
|
+Ext.define('saas.view.stock.otherOut.FormPanel', {
|
|
|
+ extend: 'saas.view.core.form.FormPanel',
|
|
|
+ xtype: 'stock-otherOut-formpanel',
|
|
|
+
|
|
|
+ controller: 'stock-otherOut-formcontroller',
|
|
|
+ viewModel: 'stock-otherOut-formmodel',
|
|
|
+
|
|
|
+ //字段属性
|
|
|
+ _title:'其它入库单',
|
|
|
+ _idField: 'id',
|
|
|
+ _codeField: 'pi_inoutno',
|
|
|
+ _statusField: 'pi_status',
|
|
|
+ _statusCodeField: 'pi_statuscode',
|
|
|
+ _detnoColumn: 'pd_pdno',
|
|
|
+ _relationColumn: 'pd_piid',
|
|
|
+ _readUrl:'http://localhost:8800/purchase/read/',
|
|
|
+ _saveUrl:'http://localhost:8800/purchase/save',
|
|
|
+ _auditUrl:'http://localhost:8800/purchase/audit',
|
|
|
+ _deleteUrl:'http://localhost:8800/purchase/delete/',
|
|
|
+ _deleteDetailUrl:'http://localhost:8800/purchase/deleteItem/',
|
|
|
+ _turnInUrl:'http://localhost:8800/purchase/turnProdin/',
|
|
|
+ initId:0,
|
|
|
+
|
|
|
+ toolBtns: [],
|
|
|
+
|
|
|
+ defaultItems: [{
|
|
|
+ xtype: 'hidden',
|
|
|
+ name: 'id',
|
|
|
+ bind: '{id}',
|
|
|
+ fieldLabel: 'id',
|
|
|
+ allowBlank: true,
|
|
|
+ columnWidth: 0
|
|
|
+ },{
|
|
|
+ xtype : "hidden",
|
|
|
+ name : "pi_vendid",
|
|
|
+ bind : "{pi_vendid}",
|
|
|
+ fieldLabel : "供应商ID",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.0
|
|
|
+ }, {
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "pi_vendcode",
|
|
|
+ bind : "{pi_vendcode}",
|
|
|
+ fieldLabel : "供应商编号",
|
|
|
+ hidden:true,
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0,
|
|
|
+ }, {
|
|
|
+ xtype : "dbfindtrigger",
|
|
|
+ name : "pi_vendname",
|
|
|
+ bind : "{pi_vendname}",
|
|
|
+ fieldLabel : "供应商名称",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25
|
|
|
+ }, {
|
|
|
+ xtype : "datefield",
|
|
|
+ name : "pi_date",
|
|
|
+ bind : "{pi_date}",
|
|
|
+ fieldLabel : "单据日期",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25
|
|
|
+ },{
|
|
|
+ xtype : "numberfield",
|
|
|
+ name : "pi_total",
|
|
|
+ bind : "{pi_total}",
|
|
|
+ fieldLabel : "单据金额",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.25
|
|
|
+ }, {
|
|
|
+ name : "detailGridField",
|
|
|
+ xtype : "detailGridField",
|
|
|
+ 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 : "id",
|
|
|
+ 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_qty",
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }, {
|
|
|
+ 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
|
|
|
+ }]
|
|
|
+});
|