selectDocSku.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. define(function (require) {
  2. return function (context) {
  3. return {
  4. xtype: 'widget',
  5. dialogId: 'selectDocSku',
  6. title: '产品检索',
  7. width: 800,
  8. height: 450,
  9. grid: {
  10. xtype: 'grid',
  11. url: demoApi('/getSkuInfo'),
  12. queryParams: { query: context.query, ownerId: context.ownerId },
  13. idField: 'skuId',
  14. columns: [[
  15. { field: 'skuId', hidden: true },
  16. { field: 'allowExceRece', hidden: true },
  17. { field: 'exceRecePerc', hidden: true },
  18. { field: 'skuCode', title: '产品编号', width: 100, },
  19. { field: 'skuName', title: '产品名称', width: 150, },
  20. { field: 'logogram', title: '助记码', width: 100, },
  21. { field: 'skuDesc', title: '产品描述', width: 150, },
  22. { field: 'manufacturer', title: '生产厂家', width: 150, },
  23. { field: 'packName', title: '包装名称', width: 100, },
  24. { field: 'defCustomerPack', title: '默认收货单位', hidden: true },
  25. { field: 'packUnit', title: '收货单位', width: 80 },
  26. { field: 'planLocatCode', title: '计划库位', width: 120, hidden: true, },
  27. { field: 'packId', title: 'packId', hidden: true },
  28. { field: 'packMeasspec', title: 'packMeasspec', hidden: true },
  29. { field: 'packCode', title: 'packCode', hidden: true },
  30. { field: 'zpackMeasspec', title: 'zpackMeasspec', hidden: true }
  31. ]]
  32. }
  33. };
  34. };
  35. });