| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- Ext.define('saas.view.sale.saleIn.FormPanel', {
- extend: 'saas.view.core.form.FormPanel',
- xtype: 'sale-salein-formpanel',
- controller: 'sale-salein-formpanel',
- viewModel: 'sale-salein-formpanel',
-
- viewName: 'sale-salein-formpanel',
- caller:'SaleIn',
-
- //字段属性
- _title:'销售退货单',
- _idField: 'id',
- _codeField: 'pi_inoutno',
- _statusField: 'pi_status',
- _statusCodeField: 'pi_statuscode',
-
- _relationColumn: 'pd_piid',
- _readUrl:'/api/sale/prodinout/read/',
- _saveUrl:'/api/sale/prodinout/save/',
- _auditUrl:'/api/sale/prodinout/audit/',
- _unAuditUrl:'/api/sale/prodinout/unAudit/',
- _deleteUrl:'/api/sale/prodinout/delete/',
- _turnInUrl:'/api/sale/prodinout/turnProdIn/',
- initId:0,
- defaultItems: [{
- xtype: 'hidden',
- name: 'id',
- fieldLabel: 'id'
- }, {
- xtype : "textfield",
- name : "pi_class",
- fieldLabel : "单据类型",
- readOnly:true,
- allowBlank : false,
- defaultValue:'销售退货单',
- allowBlank:false
- },{
- xtype : "hidden",
- name : "pi_custid",
- fieldLabel : "客户ID"
- },{
- xtype : "hidden",
- name : "pi_custcode",
- fieldLabel : "客户编号"
- }, {
- xtype : "dbfindtrigger",
- name : "pi_custname",
- fieldLabel : "客户名称",
- allowBlank:false,
- }, {
- xtype : "textfield",
- name : "pi_address",
- fieldLabel : "交货地址",
- columnWidth : 0.5
- }, {
- name : "detailGridField",
- xtype : "detailGridField",
- detnoColumn: 'pd_pdno',
- storeModel:'saas.model.sale.ProdIODetail',
- deleteDetailUrl:'/api/sale/prodinout/deleteDetail/',
- columns : [
- {
- text : "id",
- dataIndex : "id",
- xtype : "numbercolumn",
- width:0
- }, {
- text : "物料id",
- dataIndex : "pd_prodid",
- width :0
- }, {
- text : "物料编号",
- width : 200.0,
- dataIndex : "pd_prodcode",
- allowBlank:false,
- editor : {
- displayField : "display",
- editable : true,
- format : "",
- hideTrigger : false,
- maxLength : 100.0,
- minValue : null,
- positiveNum : false,
- queryMode : "local",
- store : null,
- valueField : "value",
- xtype : "multidbfindtrigger"
- }
- }, {
- text : "名称",
- dataIndex : "pr_detail",
- ignore:true,
- width : 150.0,
- renderer: function (v, m, r) {
- return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:v;
- }
- }, {
- text : "规格",
- dataIndex : "pr_spec",
- ignore:true,
- width : 150.0,
- renderer: function (v, m, r) {
- return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:v;
- }
- }, {
- text : "数量",
- dataIndex : "pd_inqty",
- allowBlank:false,
- editor : {
- xtype : "numberfield"
- },
- width : 120.0,
- xtype : "numbercolumn",
- format:'0',
- summaryType: 'sum'
- }, {
- text : "仓库ID",
- dataIndex : "pd_whid",
- width : 0
- }, {
- text : "仓库",
- dataIndex : "pd_whcode",
- width :0
- }, {
- text : "仓库",
- dataIndex : "pd_whname",
- allowBlank:false,
- width : 120.0,
- 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_sendprice",
- width : 120.0,
- editor : {
- xtype : "numberfield"
- },
- xtype : "numbercolumn",
- },
- {
- text : "含税金额",
- dataIndex : "pd_total",
- width : 120.0,
- xtype : "numbercolumn",
- summaryType: 'sum'
- }, {
- text : "税率",
- dataIndex : "pd_taxrate",
- width : 120.0,
- editor : {
- xtype : "numberfield"
- },
- xtype : "numbercolumn",
- items : null
- },
- {
- text : "未税金额",
- dataIndex : "pd_nettotal",
- xtype : "numbercolumn"
- },
- {
- text : "销售订单明细id",
- dataIndex : "pd_sdid",
- width : 120.0,
- hidden:true
- },
- {
- text : "销售单号",
- dataIndex : "pd_ordercode",
- width : 120.0
- },{
- text : "销售序号",
- dataIndex : "pd_orderdetno",
- xtype : "numbercolumn",
- flex:1
- }
- ]
- }, {
- xtype : "textfield",
- name : "pi_total",
- fieldLabel : "总额",
- readOnly: true
- }, {
- xtype : "textfield",
- name : "pi_recordman",
- fieldLabel : "录入人",
- readOnly:true
- }, {
- format : "Y-m-d",
- xtype : "datefield",
- name : "pi_recorddate",
- fieldLabel : "录入日期",
- readOnly:true
- }, {
- xtype : "textfield",
- name : "pi_auditman",
- fieldLabel : "审核人",
- readOnly:true
- }, {
- format : "Y-m-d",
- xtype : "datefield",
- name : "pi_auditdate",
- fieldLabel : "审核日期",
- readOnly:true
- }]
- });
|