BasePanel.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. Ext.define('saas.view.document.bom.BasePanel', {
  2. extend: 'saas.view.core.base.BasePanel',
  3. xtype: 'document-bom-basepanel',
  4. controller: 'document-bom-basepanel',
  5. viewModel: 'document-bom-basepanel',
  6. searchField:[{
  7. xtype : "textfield",
  8. name: 'bo_mothername',
  9. fieldLabel: '产品名称'
  10. }],
  11. //字段属性
  12. _formXtype:'document-bom-formpanel',
  13. _title:'BOM资料',
  14. _batchOpenUrl:basePath+'ducument/bom/batchOpen',
  15. _batchCloseUrl:basePath+'ducument/bom/batchClose',
  16. _batchDeleteUrl:basePath+'ducument/bom/batchDelete',
  17. gridConfig: {
  18. idField: 'id',
  19. codeField: 'cu_code',
  20. dataUrl: basePath+'ducument/customer/list',
  21. columns : [{
  22. text : "客户id",
  23. width : 0,
  24. dataIndex : "id",
  25. xtype : "numbercolumn",
  26. },{
  27. text : "客户编号",
  28. width : 200.0,
  29. dataIndex : "cu_code",
  30. },
  31. {
  32. text : "客户名称",
  33. dataIndex : "cu_name",
  34. width : 120.0,
  35. },
  36. {
  37. text : "客户状态",
  38. dataIndex : "cu_status",
  39. width : 120.0,
  40. },
  41. {
  42. text : "客户UU",
  43. dataIndex : "cu_uu",
  44. width : 120.0,
  45. },
  46. {
  47. text : "默认客户地址",
  48. dataIndex : "ca_address",
  49. width : 120.0,
  50. },
  51. {
  52. text : "默认客户联系人",
  53. dataIndex : "cc_name",
  54. flex : 1.0,
  55. }]
  56. },
  57. });