|
|
@@ -25,7 +25,7 @@ Ext.define('saas.view.sale.sale.FormPanel', {
|
|
|
|
|
|
toolBtns: [{
|
|
|
xtype: 'button',
|
|
|
- text: '转出货单',
|
|
|
+ text: '转销售出货单',
|
|
|
handler: 'turnOut'
|
|
|
}],
|
|
|
|
|
|
@@ -54,16 +54,20 @@ Ext.define('saas.view.sale.sale.FormPanel', {
|
|
|
}, {
|
|
|
name : "detailGridField",
|
|
|
xtype : "detailGridField",
|
|
|
- detnoColumn: 'sd_detno',
|
|
|
+ detnoColumn: 'sd_detno',
|
|
|
storeModel:'saas.model.sale.Saledetail',
|
|
|
_deleteDetailUrl:basePath+'sale/deleteItem/',
|
|
|
columns : [
|
|
|
{
|
|
|
text : "id",
|
|
|
dataIndex : "id",
|
|
|
- xtype : "hidden"
|
|
|
- },
|
|
|
- {
|
|
|
+ xtype : "numbercolumn",
|
|
|
+ width:0
|
|
|
+ }, {
|
|
|
+ text : "物料id",
|
|
|
+ dataIndex : "pd_prodid",
|
|
|
+ width : 0
|
|
|
+ }, {
|
|
|
text : "物料编号",
|
|
|
width : 200.0,
|
|
|
dataIndex : "sd_prodcode",
|
|
|
@@ -82,18 +86,15 @@ Ext.define('saas.view.sale.sale.FormPanel', {
|
|
|
valueField : "value",
|
|
|
xtype : "dbfindtrigger"
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
+ }, {
|
|
|
text : "名称",
|
|
|
dataIndex : "pr_detail",
|
|
|
ignore:true,
|
|
|
width : 150.0,
|
|
|
renderer: function (v, m, r) {
|
|
|
- debugger;
|
|
|
return r.data["product"]?r.data["product"][m.column.dataIndex]:v;
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
+ }, {
|
|
|
text : "规格",
|
|
|
dataIndex : "pr_spec",
|
|
|
ignore:true,
|
|
|
@@ -101,8 +102,7 @@ Ext.define('saas.view.sale.sale.FormPanel', {
|
|
|
renderer: function (v, m, r) {
|
|
|
return r.data["product"]?r.data["product"][m.column.dataIndex]:v;
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
+ }, {
|
|
|
text : "数量",
|
|
|
dataIndex : "sd_qty",
|
|
|
editor : {
|
|
|
@@ -113,7 +113,7 @@ Ext.define('saas.view.sale.sale.FormPanel', {
|
|
|
format:'0,000.00',
|
|
|
items : null,
|
|
|
summaryType: 'sum'
|
|
|
- },
|
|
|
+ },
|
|
|
{
|
|
|
text : "单价",
|
|
|
editor : {
|
|
|
@@ -171,19 +171,6 @@ Ext.define('saas.view.sale.sale.FormPanel', {
|
|
|
ignore:true,
|
|
|
flex : 1.0,
|
|
|
}
|
|
|
- /* {
|
|
|
- text : "已转数",
|
|
|
- dataIndex : "sd_yqty",
|
|
|
- editor : {
|
|
|
- xtype : "numberfield"
|
|
|
- },
|
|
|
- width : 120.0,
|
|
|
- xtype : "numbercolumn",
|
|
|
- format:'0',
|
|
|
-
|
|
|
- items : null,
|
|
|
- summaryType: 'sum'
|
|
|
- }, */
|
|
|
]
|
|
|
}, {
|
|
|
xtype : "textfield",
|