MakeMaterial.js 863 B

12345678910111213141516171819
  1. Ext.define('make.model.make.MakeMaterial', {
  2. extend: 'saas.model.Base',
  3. fields: [
  4. { name: 'id', type: 'int' }, // id
  5. { name: 'mm_prodid', type: 'int' }, // 物料id
  6. { name: 'mm_prodcode', type: 'string' }, // 物料编号
  7. { name: 'pr_brand', type: 'string' }, // 厂家/品牌
  8. { name: 'pr_detail', type: 'string' }, // 名称
  9. { name: 'pr_orispeccode', type: 'string' }, // 型号
  10. { name: 'pr_spec', type: 'string' }, // 规格
  11. { name: 'mm_oneuseqty', type: 'float' }, // 单位用量
  12. { name: 'mm_qty', type: 'float' }, // 数量
  13. { name: 'pr_unit', type: 'string' }, // 单位
  14. { name: 'mm_remark', type: 'string'}, // 备注
  15. ],
  16. //一对一映射
  17. associations: [{ type: 'hasOne', model: 'saas.model.document.ProductDTO', associationKey: 'ProductDTO'}]
  18. });