| 12345678910111213141516171819202122232425262728 |
- Ext.define('saas.model.sale.b2b.PurchaseDetail', {
- extend: 'saas.model.Base',
- fields: [
- { name: 'id', type: 'int' }, // id
- { name: 'sd_prodid', type: 'int' }, // 物料id
- { name: 'sd_prodcode', type: 'string' }, // 物料编号
- { name: 'sd_proddetail', type: 'string' }, // 物料名称
- { name: 'sd_prodbrand', type: 'string' }, // 品牌
- { name: 'sd_orispeccode', type: 'string' }, // 型号
- { name: 'sd_prodspec', type: 'string' }, // 规格
- { name: 'sd_custprodcode', type: 'string' }, // 客户料号
- { name: 'sd_custorispeccode', type: 'string' }, // 客户型号
- { name: 'sd_custprodspec', type: 'string' }, // 客户规格
- { name: 'sd_qty', type: 'float' }, // 数量
- { name: 'sd_produnit', type: 'string' }, // 单位
- { name: 'sd_price', type: 'float' }, // 含税单价
- { name: 'sd_taxrate', type: 'float' }, // 税率
- { name: 'sd_total', type: 'float', // 价税合计
- convert: function(v, rec) {
- var t = rec.get('sd_price') * rec.get('sd_qty');
- return Number(saas.util.BaseUtil.numberFormat(t, 4, false));
- },
- depends: ['sd_price', 'sd_qty'] },
- { name: 'sd_delivery', type: 'string' }, // 交货日期
- { name: 'sd_remark', type: 'string' }, // 备注
- ],
- });
|