|
@@ -15,15 +15,12 @@ Ext.define('saas.view.sale.saleout.FormPanel', {
|
|
|
_statusField: 'pi_status',
|
|
_statusField: 'pi_status',
|
|
|
_statusCodeField: 'pi_statuscode',
|
|
_statusCodeField: 'pi_statuscode',
|
|
|
|
|
|
|
|
- _relationColumn: 'pd_piid',
|
|
|
|
|
_relationColumn: 'pd_piid',
|
|
_relationColumn: 'pd_piid',
|
|
|
_readUrl:basePath+'sale/prodinout/read/',
|
|
_readUrl:basePath+'sale/prodinout/read/',
|
|
|
_saveUrl:basePath+'sale/prodinout/save',
|
|
_saveUrl:basePath+'sale/prodinout/save',
|
|
|
_auditUrl:basePath+'sale/prodinout/audit',
|
|
_auditUrl:basePath+'sale/prodinout/audit',
|
|
|
_deleteUrl:basePath+'sale/prodinout/delete/',
|
|
_deleteUrl:basePath+'sale/prodinout/delete/',
|
|
|
- _deleteDetailUrl:basePath+'sale/prodinout/deleteItem/',
|
|
|
|
|
_turnInUrl:basePath+'sale/prodinout/turnProdIn/',
|
|
_turnInUrl:basePath+'sale/prodinout/turnProdIn/',
|
|
|
- _turnOutUrl:basePath+'sale/prodinout/turnProdOut/',
|
|
|
|
|
initId:0,
|
|
initId:0,
|
|
|
|
|
|
|
|
toolBtns: [{
|
|
toolBtns: [{
|
|
@@ -35,107 +32,47 @@ Ext.define('saas.view.sale.saleout.FormPanel', {
|
|
|
defaultItems: [{
|
|
defaultItems: [{
|
|
|
xtype: 'hidden',
|
|
xtype: 'hidden',
|
|
|
name: 'id',
|
|
name: 'id',
|
|
|
- bind: '{id}',
|
|
|
|
|
- fieldLabel: 'id',
|
|
|
|
|
- allowBlank: true,
|
|
|
|
|
- columnWidth: 0
|
|
|
|
|
|
|
+ fieldLabel: 'id'
|
|
|
}, {
|
|
}, {
|
|
|
- xtype : "textfield",
|
|
|
|
|
- name : "pi_inoutno",
|
|
|
|
|
- bind : "{pi_inoutno}",
|
|
|
|
|
- fieldLabel : "单据编号",
|
|
|
|
|
- allowBlank : true,
|
|
|
|
|
- columnWidth : 0.25
|
|
|
|
|
- },{
|
|
|
|
|
xtype : "textfield",
|
|
xtype : "textfield",
|
|
|
name : "pi_class",
|
|
name : "pi_class",
|
|
|
- bind : "{pi_class}",
|
|
|
|
|
fieldLabel : "单据类型",
|
|
fieldLabel : "单据类型",
|
|
|
readOnly:true,
|
|
readOnly:true,
|
|
|
allowBlank : false,
|
|
allowBlank : false,
|
|
|
- defaultValue:'销售出货单',
|
|
|
|
|
- columnWidth : 0.25
|
|
|
|
|
|
|
+ defaultValue:'销售出货单'
|
|
|
}, {
|
|
}, {
|
|
|
xtype : "hidden",
|
|
xtype : "hidden",
|
|
|
name : "pi_custid",
|
|
name : "pi_custid",
|
|
|
- bind : "{pi_custid}",
|
|
|
|
|
- fieldLabel : "客户ID",
|
|
|
|
|
- allowBlank : true,
|
|
|
|
|
- columnWidth : 0.0
|
|
|
|
|
|
|
+ fieldLabel : "客户ID"
|
|
|
}, {
|
|
}, {
|
|
|
- xtype : "textfield",
|
|
|
|
|
|
|
+ xtype : "hidden",
|
|
|
name : "pi_custcode",
|
|
name : "pi_custcode",
|
|
|
- bind : "{pi_custcode}",
|
|
|
|
|
- fieldLabel : "客户编号",
|
|
|
|
|
- hidden:true,
|
|
|
|
|
- allowBlank : true,
|
|
|
|
|
- columnWidth : 0,
|
|
|
|
|
|
|
+ fieldLabel : "客户编号"
|
|
|
}, {
|
|
}, {
|
|
|
xtype : "dbfindtrigger",
|
|
xtype : "dbfindtrigger",
|
|
|
name : "pi_custname",
|
|
name : "pi_custname",
|
|
|
- bind : "{pi_custname}",
|
|
|
|
|
- fieldLabel : "客户名称",
|
|
|
|
|
- allowBlank : true,
|
|
|
|
|
- columnWidth : 0.25
|
|
|
|
|
- },{
|
|
|
|
|
- xtype : "datefield",
|
|
|
|
|
- name : "pi_date",
|
|
|
|
|
- bind : "{pi_date}",
|
|
|
|
|
- fieldLabel : "单据日期",
|
|
|
|
|
- allowBlank : false,
|
|
|
|
|
- columnWidth : 0.25
|
|
|
|
|
- },{
|
|
|
|
|
- xtype : "textfield",
|
|
|
|
|
- name : "pi_total",
|
|
|
|
|
- bind : "{pi_total}",
|
|
|
|
|
- fieldLabel : "总额",
|
|
|
|
|
- allowBlank : true,
|
|
|
|
|
- readOnly: true,
|
|
|
|
|
- columnWidth : 0.25
|
|
|
|
|
|
|
+ fieldLabel : "客户名称"
|
|
|
}, {
|
|
}, {
|
|
|
xtype : "textfield",
|
|
xtype : "textfield",
|
|
|
- name : "pi_said",
|
|
|
|
|
- bind : "{pi_said}",
|
|
|
|
|
- fieldLabel : "销售单id",
|
|
|
|
|
- allowBlank : true,
|
|
|
|
|
- columnWidth : 0.25
|
|
|
|
|
- },{
|
|
|
|
|
- xtype : "textfield",
|
|
|
|
|
- name : "pi_sacode",
|
|
|
|
|
- bind : "{pi_sacode}",
|
|
|
|
|
- fieldLabel : "销售单号",
|
|
|
|
|
- allowBlank : true,
|
|
|
|
|
- columnWidth : 0.25
|
|
|
|
|
|
|
+ name : "pi_address",
|
|
|
|
|
+ fieldLabel : "交货地址",
|
|
|
|
|
+ columnWidth : 0.5
|
|
|
}, {
|
|
}, {
|
|
|
- xtype : "hidden",
|
|
|
|
|
- name : "pi_inid",
|
|
|
|
|
- bind : "{pi_inid}",
|
|
|
|
|
- fieldLabel : "出入库单id",
|
|
|
|
|
- allowBlank : true,
|
|
|
|
|
- columnWidth : 0.25
|
|
|
|
|
- },{
|
|
|
|
|
name : "detailGridField",
|
|
name : "detailGridField",
|
|
|
xtype : "detailGridField",
|
|
xtype : "detailGridField",
|
|
|
|
|
+ detnoColumn: 'pd_pdno',
|
|
|
storeModel:'saas.model.sale.ProdIODetail',
|
|
storeModel:'saas.model.sale.ProdIODetail',
|
|
|
- _detnoColumn: 'pd_pdno',
|
|
|
|
|
|
|
+ _deleteDetailUrl:basePath+'sale/prodinout/deleteItem/',
|
|
|
columns : [
|
|
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",
|
|
text : "id",
|
|
|
dataIndex : "id",
|
|
dataIndex : "id",
|
|
|
- xtype : "numbercolumn"
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ xtype : "hidden"
|
|
|
|
|
+ }, {
|
|
|
|
|
+ text : "物料id",
|
|
|
|
|
+ dataIndex : "pd_prodid",
|
|
|
|
|
+ width : 0
|
|
|
|
|
+ }, {
|
|
|
text : "物料编号",
|
|
text : "物料编号",
|
|
|
width : 200.0,
|
|
width : 200.0,
|
|
|
dataIndex : "pd_prodcode",
|
|
dataIndex : "pd_prodcode",
|
|
@@ -154,16 +91,25 @@ Ext.define('saas.view.sale.saleout.FormPanel', {
|
|
|
valueField : "value",
|
|
valueField : "value",
|
|
|
xtype : "dbfindtrigger"
|
|
xtype : "dbfindtrigger"
|
|
|
}
|
|
}
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ }, {
|
|
|
text : "名称",
|
|
text : "名称",
|
|
|
dataIndex : "pr_detail",
|
|
dataIndex : "pr_detail",
|
|
|
- ignore:true
|
|
|
|
|
|
|
+ ignore:true,
|
|
|
|
|
+ width : 150.0,
|
|
|
|
|
+ renderer: function (v, m, r) {
|
|
|
|
|
+ debugger;
|
|
|
|
|
+ return r.data["product"]?r.data["product"][m.column.dataIndex]:v;
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
text : "规格",
|
|
text : "规格",
|
|
|
dataIndex : "pr_spec",
|
|
dataIndex : "pr_spec",
|
|
|
- ignore:true
|
|
|
|
|
|
|
+ ignore:true,
|
|
|
|
|
+ width : 150.0,
|
|
|
|
|
+ renderer: function (v, m, r) {
|
|
|
|
|
+ debugger;
|
|
|
|
|
+ return r.data["product"]?r.data["product"][m.column.dataIndex]:v;
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
text : "出货数量",
|
|
text : "出货数量",
|
|
@@ -173,11 +119,18 @@ Ext.define('saas.view.sale.saleout.FormPanel', {
|
|
|
},
|
|
},
|
|
|
width : 120.0,
|
|
width : 120.0,
|
|
|
xtype : "numbercolumn",
|
|
xtype : "numbercolumn",
|
|
|
- format:'0',
|
|
|
|
|
|
|
+ format:'0,000.00',
|
|
|
items : null,
|
|
items : null,
|
|
|
summaryType: 'sum'
|
|
summaryType: 'sum'
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ }, {
|
|
|
|
|
+ text : "仓库ID",
|
|
|
|
|
+ dataIndex : "pd_whid",
|
|
|
|
|
+ width : 0
|
|
|
|
|
+ }, {
|
|
|
|
|
+ text : "仓库",
|
|
|
|
|
+ dataIndex : "pd_whcode",
|
|
|
|
|
+ width :0
|
|
|
|
|
+ }, {
|
|
|
text : "仓库",
|
|
text : "仓库",
|
|
|
dataIndex : "pd_whname",
|
|
dataIndex : "pd_whname",
|
|
|
width : 120.0,
|
|
width : 120.0,
|
|
@@ -207,7 +160,7 @@ Ext.define('saas.view.sale.saleout.FormPanel', {
|
|
|
items : null
|
|
items : null
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- text : "含税金额",
|
|
|
|
|
|
|
+ text : "金额",
|
|
|
dataIndex : "pd_total",
|
|
dataIndex : "pd_total",
|
|
|
width : 120.0,
|
|
width : 120.0,
|
|
|
xtype : "numbercolumn"
|
|
xtype : "numbercolumn"
|
|
@@ -232,45 +185,34 @@ Ext.define('saas.view.sale.saleout.FormPanel', {
|
|
|
dataIndex : "pd_orderdetno",
|
|
dataIndex : "pd_orderdetno",
|
|
|
xtype : "numbercolumn",
|
|
xtype : "numbercolumn",
|
|
|
flex:1
|
|
flex:1
|
|
|
- }, {
|
|
|
|
|
- text : "出入库明细id",
|
|
|
|
|
- dataIndex : "pd_ioid",
|
|
|
|
|
- width : 120.0,
|
|
|
|
|
- hidden:true
|
|
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
}, {
|
|
}, {
|
|
|
- format : "Y-m-d",
|
|
|
|
|
- xtype : "datefield",
|
|
|
|
|
- name : "createTime",
|
|
|
|
|
- bind : "{createTime}",
|
|
|
|
|
- fieldLabel : "创建时间",
|
|
|
|
|
- allowBlank : true,
|
|
|
|
|
- columnWidth : 0.25
|
|
|
|
|
|
|
+ xtype : "textfield",
|
|
|
|
|
+ name : "pi_total",
|
|
|
|
|
+ fieldLabel : "总额",
|
|
|
|
|
+ readOnly: true
|
|
|
|
|
+ }, {
|
|
|
|
|
+ xtype : "textfield",
|
|
|
|
|
+ name : "pi_recordman",
|
|
|
|
|
+ fieldLabel : "录入人",
|
|
|
|
|
+ readOnly:true
|
|
|
}, {
|
|
}, {
|
|
|
|
|
+ format : "Y-m-d",
|
|
|
xtype : "datefield",
|
|
xtype : "datefield",
|
|
|
- name : "updateTime",
|
|
|
|
|
- bind : "{updateTime}",
|
|
|
|
|
- fieldLabel : "更新时间",
|
|
|
|
|
- allowBlank : true,
|
|
|
|
|
- columnWidth : 0.25
|
|
|
|
|
|
|
+ name : "pi_recorddate",
|
|
|
|
|
+ fieldLabel : "录入日期",
|
|
|
|
|
+ readOnly:true
|
|
|
}, {
|
|
}, {
|
|
|
xtype : "textfield",
|
|
xtype : "textfield",
|
|
|
- readOnly : true,
|
|
|
|
|
- editable : false,
|
|
|
|
|
- name : "pi_status",
|
|
|
|
|
- bind : "{pi_status}",
|
|
|
|
|
- fieldLabel : "单据状态",
|
|
|
|
|
- allowBlank : true,
|
|
|
|
|
- columnWidth : 0.25
|
|
|
|
|
|
|
+ name : "pi_auditman",
|
|
|
|
|
+ fieldLabel : "审核人",
|
|
|
|
|
+ readOnly:true
|
|
|
}, {
|
|
}, {
|
|
|
- xtype : "hidden",
|
|
|
|
|
- readOnly : true,
|
|
|
|
|
- editable : false,
|
|
|
|
|
- name : "pi_statuscode",
|
|
|
|
|
- bind : "{pi_statuscode}",
|
|
|
|
|
- fieldLabel : "单据状态码",
|
|
|
|
|
- allowBlank : true,
|
|
|
|
|
- columnWidth : 0.0
|
|
|
|
|
|
|
+ format : "Y-m-d",
|
|
|
|
|
+ xtype : "datefield",
|
|
|
|
|
+ name : "pi_auditdate",
|
|
|
|
|
+ fieldLabel : "审核日期",
|
|
|
|
|
+ readOnly:true
|
|
|
}]
|
|
}]
|
|
|
});
|
|
});
|