12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- Ext.define('make.model.make.MakePickDetail', {
- extend: 'saas.model.Base',
- fields: [
- { name: 'id', type: 'int' }, // id
- { name: 'pd_prodid', type: 'int' }, // 物料id
- { name: 'pd_prodcode', type: 'string' }, // 物料编号
- { name: 'pr_brand', type: 'string' }, // 厂家/品牌
- { name: 'pr_detail', type: 'string' }, // 名称
- { name: 'pr_orispeccode', type: 'string' }, // 型号
- { name: 'pr_spec', type: 'string' }, // 规格
- { name: 'pd_outqty', type: 'float' }, // 数量
- { name: 'pr_unit', type: 'string' }, // 单位
- { name: 'pd_price', type: 'float'}, // 单价
- { name: 'pd_total', type: 'float', // 金额
- convert: function(v, rec) {
- var t = rec.get('pd_price') * rec.get('pd_outqty');
- return Number(saas.util.BaseUtil.numberFormat(t, 2, false));
- },
- depends: ['pd_price', 'pd_outqty']
- },
- { name: 'pd_whid', type: 'int' }, // 仓库id
- { name: 'pd_whcode', type: 'string' }, // 仓库编号
- { name: 'pd_whname', type: 'string' }, // 仓库
- { name: 'pd_orderid', type: 'int' }, // 采购单明细id
- { name: 'pd_ordercode', type: 'string' }, // 采购单号
- { name: 'pd_orderdetno', type: 'int' }, // 采购序号
- { name: 'pd_remark', type: 'string' }, // 备注
- { name: 'pd_text1', type: 'string' },
- { name: 'pd_text2', type: 'string' },
- { name: 'pd_text3', type: 'string' },
- { name: 'pd_text4', type: 'string' },
- { name: 'pd_text5', type: 'string' },
- { name: 'mm_qty', type: 'float'}, // 应领数量
- { name: 'mm_havegetqty', type: 'float'}, // 已领数量
- { name: 'pd_mmid', type: 'int' },
- { name: 'pd_maid', type: 'int' }
- ],
- //一对一映射
- associations: [{ type: 'hasOne', model: 'saas.model.document.ProductDTO', associationKey: 'ProductDTO'}]
- });
|