Ext.define('make.view.make.makeDetail.QueryPanel_3', { extend: 'saas.view.core.query.QueryPanel', xtype: 'make-makedetail-querypanel-3', controller: 'make-makedetail-querypanel', viewModel: { extend: 'saas.view.core.query.QueryPanelModel', data: { form: {}, // 查询字段记录 addEnable: false, // 显示新增按钮 auditEnable: false, // 显示审核按钮 printEnable: false, // 显示打印按钮 importEnable: false, // 显示导入按钮 exportEnable: true, // 显示导出按钮 closeEnable: false, // 显示关闭按钮 deleteEnable: false, // 显示删除按钮 deleteDisable:false, //删除按钮是否可使用 openAudit:false,//单独显示审核按钮 openUnAudit:false,//单独显示反审核按钮 openEnable:false, //显示开启 针对已取消列表 configurable: true, // 允许列设置 } }, viewName: 'make-makedetail-querypanel-3', caller: 'MakeDetail', //importUploadPath: '/api/purchse/makereturn/saveToFormal', initComponent: function () { var me = this ; Ext.apply(this, { queryFormItems: [{ xtype: 'condatefield', name: 'make.createTime', fieldLabel: '日期', columnWidth: 0.5, operation: 'between', },{ xtype: 'multiqueryField', columnWidth: 0.4, name: 'multi_query', querys: { "MakeCode": {"field": "ma_code" ,"desc": "制造单号"}, "BillCode": {"field": "ma_salecode" ,"desc": "订单号"}, "Cust": {"field": "ma_custcode" ,"desc": "客户"}, "Prod": {"field": "ma_prodcode", "dbfinds": [{//物料 from: 'pr_code', to: 'ma_prodcode' },{ from: 'pr_detail', to: 'pr_detail' }]}, "Emp":{"field": "prodinout.creatorName", "dbfinds": [{ from: 'em_name', to: 'prodinout.creatorName' }]}, }, setShowDetail: function(v){ this.showDetail = false; } }], moreQueryFormItems: [{ xtype: 'saledetailDbfindTrigger', name: 'ma_salecode', fieldLabel: '订单编号' },{ xtype: "customerDbfindTrigger", name: "ma_custname", fieldLabel: "客户名称", },{ xtype: 'condatefield', name: 'ma_delivery', fieldLabel: '交货日期', value:7, columnWidth: 1 },{ xtype: 'productDbfindTrigger', name: 'ma_prodcode', fieldLabel: '物料编号' },{ xtype: 'textfield', name: 'pr_detail', fieldLabel: '产品名称', readOnly: true, getCondition: function(value) { if(!value) { return '1=1'; }else { return 'p.pr_detail like\'%' + value + '%\''; } } }, { xtype: 'textfield', name: 'pr_orispeccode', fieldLabel: '产品型号', readOnly: true, getCondition: function(value) { if(!value) { return '1=1'; }else { return 'p.pr_orispeccode like\'%' + value + '%\''; } } }, { xtype: "remotecombo", name: "pr_brand", fieldLabel: "厂家/品牌", storeUrl: '/api/document/productbrand/getCombo', editable: false, hiddenBtn:true, getCondition: function(value) { if(!value) { return '1=1'; }else { return 'p.pr_brand like\'%' + value + '%\''; } } },{ xtype: "remotecombo", name: "ma_kind", fieldLabel: "制造类型", storeUrl:'/api/make/kind/list/make', valueField:'mk_name', displayField: 'mk_name', editable: false, hiddenBtn:true },{ xtype: 'remotecombo', name: "ma_wcname", fieldLabel: "工作中心", storeUrl: '/api/document/workcenter/getCombo', editable: false, hiddenBtn:true },{ xtype: 'combobox', name: 'ma_statuscode', fieldLabel: '审核状态', queryMode: 'local', displayField: 'ma_status', valueField: 'ma_statuscode', emptyText :'全部', editable:false, store: Ext.create('Ext.data.ArrayStore', { fields: ['ma_statuscode', 'ma_status'], data: [ ["ALL", "全部"], ["AUDITED", "已审核"], ["UNAUDITED", "未审核"] ] }), getCondition: function(value) { if(value == 'ALL') { return '1=1'; }else { return 'ma_statuscode=\'' + value + '\''; } } }, { xtype: 'employeeDbfindTrigger', name: 'creatorName', fieldLabel: '录入人', emptyText:'请输入账户名称或姓名', getCondition: function(value) { if(!value) { return '1=1'; }else { return 'make.creatorName like\'%' + value + '%\''; } } },{ xtype: 'condatefield', name: 'ma_planbegindate', fieldLabel: '计划开工日期', value:7, columnWidth: 1 },{ xtype: 'condatefield', name: 'ma_planenddate', fieldLabel: '计划完工日期', value:7, columnWidth: 1 },{ xtype: 'condatefield', name: 'make.createTime', fieldLabel: '录入日期', value:7, columnWidth: 1 }, { xtype: 'employeeDbfindTrigger', name: 'ma_auditman', fieldLabel: '审核人', emptyText:'请输入账户名称或姓名', }], queryGridConfig: { idField: 'ma_id', codeField: 'ma_code', mainIdField:'ma_id', detailIdField:'mm_id', addTitle: '制造单', addXtype: 'make-makebase-formpanel', baseVastUrl:me.baseVastUrl, defaultCondition: me.defaultCondition, caller: me.caller, useGridCaller :true, toolBtns: [{ text: '转退料', xtype: 'button', handler: 'turnBack' },{ text: '转报废', xtype: 'button', handler: 'turnScrap' }], groupField:'ma_code', groupHeaderTpl: Ext.create('Ext.XTemplate', '