|
|
@@ -126,10 +126,18 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
valueField : "value",
|
|
|
xtype : "productMultiDbfindTrigger"
|
|
|
}
|
|
|
- },{
|
|
|
- text: 'model映射需要',
|
|
|
- dataIndex: 'productDTO',
|
|
|
- hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text : "品牌",
|
|
|
+ width : 150.0,
|
|
|
+ dataIndex : "pr_brand",
|
|
|
+ ignore:true,
|
|
|
+ renderer: function (v, m, r) {
|
|
|
+ if(!v){
|
|
|
+ return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:null;
|
|
|
+ }
|
|
|
+ return v;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
text : "名称",
|
|
|
@@ -138,23 +146,28 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
ignore:true,
|
|
|
renderer: function (v, m, r) {
|
|
|
if(!v){
|
|
|
- return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:null;
|
|
|
- }
|
|
|
+ return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:null;
|
|
|
+ }
|
|
|
return v;
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- text : "规格",
|
|
|
- dataIndex : "pr_spec",
|
|
|
- width : 150.0,
|
|
|
+ text : "型号",
|
|
|
+ width : 200.0,
|
|
|
+ dataIndex : "pr_orispeccode",
|
|
|
ignore:true,
|
|
|
renderer: function (v, m, r) {
|
|
|
if(!v){
|
|
|
- return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:null;
|
|
|
- }
|
|
|
+ return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:null;
|
|
|
+ }
|
|
|
return v;
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ text: 'model映射需要',
|
|
|
+ dataIndex: 'productDTO',
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
text : "数量",
|
|
|
dataIndex : "pd_inqty",
|
|
|
@@ -179,6 +192,34 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
var format = '0.' + xr.join('');
|
|
|
return Ext.util.Format.number(v, format);
|
|
|
}
|
|
|
+ },{
|
|
|
+ text : "单位",
|
|
|
+ width : 80.0,
|
|
|
+ dataIndex : "pr_unit",
|
|
|
+ ignore:true,
|
|
|
+ renderer: function (v, m, r) {
|
|
|
+ if(!v){
|
|
|
+ return r.data["productDTO"]?r.data["productDTO"][m.column.dataIndex]:null;
|
|
|
+ }
|
|
|
+ return v;
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ text : "单价(元)",
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ width : 110.0,
|
|
|
+ editor : {
|
|
|
+ xtype : "numberfield",
|
|
|
+ decimalPrecision: 8,
|
|
|
+ minValue:0
|
|
|
+ },
|
|
|
+ dataIndex : "pd_orderprice",
|
|
|
+ width : 120.0,
|
|
|
+ renderer : function(v) {
|
|
|
+ var arr = (v + '.').split('.');
|
|
|
+ var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
|
|
|
+ var format = '0,000.' + xr.join('');
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ },
|
|
|
}, {
|
|
|
text : "已转数",
|
|
|
dataIndex : "pd_yqty",
|
|
|
@@ -233,23 +274,6 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- text : "单价",
|
|
|
- xtype: 'numbercolumn',
|
|
|
- width : 110.0,
|
|
|
- editor : {
|
|
|
- xtype : "numberfield",
|
|
|
- decimalPrecision: 8,
|
|
|
- minValue:0
|
|
|
- },
|
|
|
- dataIndex : "pd_orderprice",
|
|
|
- width : 120.0,
|
|
|
- renderer : function(v) {
|
|
|
- var arr = (v + '.').split('.');
|
|
|
- var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
|
|
|
- var format = '0,000.' + xr.join('');
|
|
|
- return Ext.util.Format.number(v, format);
|
|
|
- },
|
|
|
- }, {
|
|
|
xtype: 'numbercolumn',
|
|
|
text : "税率",
|
|
|
dataIndex : "pd_taxrate",
|
|
|
@@ -264,7 +288,7 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
return Ext.util.Format.number(v, '0');
|
|
|
},
|
|
|
},{
|
|
|
- text : "含税金额",
|
|
|
+ text : "含税金额(元)",
|
|
|
xtype: 'numbercolumn',
|
|
|
dataIndex : "pd_ordertotal",
|
|
|
width : 110.0,
|
|
|
@@ -288,7 +312,7 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- text : "未税金额",
|
|
|
+ text : "未税金额(元)",
|
|
|
xtype: 'numbercolumn',
|
|
|
dataIndex : "pd_nettotal",
|
|
|
width : 110.0,
|