|
|
@@ -56,86 +56,42 @@ Ext.define('saas.view.core.dbfind.types.ProductMultiDbfindTrigger', {
|
|
|
dbColumns: [{
|
|
|
text: "物料ID",
|
|
|
hidden: true,
|
|
|
- dataIndex: "id",
|
|
|
+ dataIndex: "id"
|
|
|
}, {
|
|
|
- text: "物料编号",
|
|
|
+ text: "物料编号",
|
|
|
dataIndex: "pr_code",
|
|
|
- width: 150,
|
|
|
+ width: 150
|
|
|
}, {
|
|
|
text: "物料名称",
|
|
|
width: 200,
|
|
|
- dataIndex: "pr_detail",
|
|
|
+ dataIndex: "pr_detail"
|
|
|
}, {
|
|
|
- text: "规格",
|
|
|
+ text: "型号规格",
|
|
|
dataIndex: "pr_spec",
|
|
|
- width: 150,
|
|
|
- }, {
|
|
|
- text: "单位",
|
|
|
- dataIndex: "pr_unit",
|
|
|
- width: 80
|
|
|
- }, {
|
|
|
- text: "最新采购单价",
|
|
|
- dataIndex: "pr_purcprice",
|
|
|
- xtype: 'numbercolumn',
|
|
|
- hidden:true,
|
|
|
- }, {
|
|
|
- text: "仓库id",
|
|
|
- dataIndex: "pr_whid",
|
|
|
- hidden: true,
|
|
|
- }, {
|
|
|
- text: "仓库编号",
|
|
|
- dataIndex: "pr_whcode",
|
|
|
- hidden: true,
|
|
|
- }, {
|
|
|
- text: "仓库",
|
|
|
- dataIndex: "pr_whname",
|
|
|
- width: 200,
|
|
|
- hidden: true
|
|
|
- }, {
|
|
|
- text: "总库存数",
|
|
|
- dataIndex: "po_onhand",
|
|
|
- width: 110,
|
|
|
- xtype: 'numbercolumn',
|
|
|
- renderer: function (v) {
|
|
|
- var arr = (v + '.').split('.');
|
|
|
- var xr = (new Array(arr[1].length)).fill('0');
|
|
|
- var format = '0,000.' + xr.join();
|
|
|
- return Ext.util.Format.number(v, format);
|
|
|
- }
|
|
|
+ width: 150
|
|
|
}, {
|
|
|
text: "类型",
|
|
|
dataIndex: "pr_kind",
|
|
|
width: 110
|
|
|
}, {
|
|
|
- text: "型号",
|
|
|
- dataIndex: "pr_orispeccode",
|
|
|
- width: 150
|
|
|
- }, {
|
|
|
+ text: "单位",
|
|
|
+ dataIndex: "pr_spec",
|
|
|
+ width: 80
|
|
|
+ },{
|
|
|
text: "品牌",
|
|
|
dataIndex: "pr_brand",
|
|
|
width: 110
|
|
|
- }, {
|
|
|
- text: "供应商",
|
|
|
- dataIndex: "pr_vendname",
|
|
|
- width: 200
|
|
|
- }, {
|
|
|
- text: "最小包装",
|
|
|
- dataIndex: "pr_zxbzs",
|
|
|
+ },{
|
|
|
+ text: "库存",
|
|
|
+ dataIndex: "po_onhand",
|
|
|
width: 110,
|
|
|
xtype: 'numbercolumn',
|
|
|
renderer : function(v) {
|
|
|
- if(!v) {
|
|
|
- return 0;
|
|
|
- }
|
|
|
var arr = (v + '.').split('.');
|
|
|
- var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
|
|
|
- var format = '0.' + xr.join();
|
|
|
+ var xr = (new Array(arr[1].length)).fill('0');
|
|
|
+ var format = '0,000.' + xr.join();
|
|
|
return Ext.util.Format.number(v, format);
|
|
|
- },
|
|
|
- }, {
|
|
|
- text: "L/T",
|
|
|
- dataIndex: "pr_leadtime",
|
|
|
- width: 80
|
|
|
+ }
|
|
|
}]
|
|
|
|
|
|
});
|