Index: ssts-web/src/main/webapp/disinfectsystem/invoice/customInvoiceForm.js =================================================================== diff -u -r29837 -r30032 --- ssts-web/src/main/webapp/disinfectsystem/invoice/customInvoiceForm.js (.../customInvoiceForm.js) (revision 29837) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/customInvoiceForm.js (.../customInvoiceForm.js) (revision 30032) @@ -667,6 +667,7 @@ autoHeight:true, autoScroll : true, labelAlign:'right', + labelWidth :120, layout : 'form', items : [{ xtype : "fieldset", @@ -740,7 +741,6 @@ id : 'warehouseName' },{ layout : 'form', - labelWidth :70, columnWidth :.33, height:26, items : [{ @@ -749,7 +749,7 @@ maxLength : '16', id : 'departBarcode', name : 'departBarcode', - anchor : '99%', + anchor : '100%', listeners : { render : function(p) { p.getEl().on('keypress',function(e) { @@ -783,12 +783,11 @@ }] },{ layout : 'form', - labelWidth :70, columnWidth :.33, height:26, items : [{ xtype : 'combo', - fieldLabel : '科室', + fieldLabel : '申请科室', id : 'depart', name : 'depart', queryParam : 'spell', @@ -802,37 +801,89 @@ hideTrigger : false, typeAhead : false, allowBlank : false, - anchor : '99%', + anchor : '100%', listeners:{ select:function(combo, record, index){ var deptCoding = record.data.departCode; top.Ext.getCmp("orgUnitCoding").setValue(deptCoding); + Ext.Ajax.request({ + url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getDefaultSettleAccountDepart.do', + params: { + orgUnitCode: deptCoding + }, + success: function (response, options) { + var result = Ext.decode(response.responseText); + if (!result.success) { + showResult(resultObj.errMsg); + return; + } + var orgUnitCode = result.data.orgUnitCode || ''; + var name = result.data.name || ''; + top.Ext.getCmp('settleAccountsDepartCoding').setValue(orgUnitCode); + top.Ext.getCmp('settleAccountsDepart').setValue(name); + } + }); }, focus : function(thiz){ thiz.selectText(); } } }] + }, { + //结算科室编码 + xtype: 'hidden', + name: 'settleAccountsDepartCoding', + id: 'settleAccountsDepartCoding' },{ layout : 'form', - labelWidth :70, columnWidth :.33, height:26, items : [{ + xtype : 'combo', + fieldLabel : '结算科室', + id : 'settleAccountsDepart', + name : 'settleAccountsDepart', + queryParam : 'spell', + minChars : 0, + valueField : 'name', + displayField : 'name', + store : appDepartJsonStore, + forceSelection : true, + lazyInit : true, + triggerAction : 'all', + hideTrigger : false, + typeAhead : false, + allowBlank : false, + anchor : '100%', + listeners:{ + select:function(combo, record, index){ + var deptCoding = record.data.departCode; + top.Ext.getCmp("orgUnitCoding").setValue(deptCoding); + }, + focus : function(thiz){ + thiz.selectText(); + } + } + }] + }] + },{ + layout : 'form', + columnWidth :.33, + height:26, + items : [{ xtype : 'textfield', fieldLabel : '发货员', maxLength : '41', id : 'sender', name : 'sender', readOnly:true, allowBlank : false, - anchor : '99%', + anchor : '100%', value:$Id('userName').value, cls:'fieldReadOnlyNoRemove' }] },{ layout : 'form', - labelWidth :70, columnWidth :.33, id : 'assistantSenderBarcode_parent', name : 'assistantSenderBarcode_parent', @@ -844,7 +895,7 @@ maxLength : '16', id : 'assistantSenderBarcode', name : 'assistantSenderBarcode', - anchor : '99%', + anchor : '100%', listeners : { render : function(p) { p.getEl().on('keypress',function(e) { @@ -876,7 +927,6 @@ }] },{ layout : 'form', - labelWidth :70, columnWidth :.33, hidden: !getSystemSetConfig('showInvoiceAssistantSender',true), height:26, @@ -889,12 +939,11 @@ readOnly:true, allowBlank : false, allowBlank : !getSystemSetConfig('showInvoiceAssistantSender',true) || !getSystemSetConfig('invoiceAssistantSenderRequired',true), - anchor : '99%', + anchor : '100%', cls:'x-item-disabled' }] },{ layout : 'form', - labelWidth :90, columnWidth :.33, id : 'personInChargeBarcode_parent', name : 'personInChargeBarcode_parent', @@ -906,7 +955,7 @@ maxLength : '16', id : 'personInChargeBarcode', name : 'personInChargeBarcode', - anchor : '99%', + anchor : '100%', listeners : { render : function(p) { p.getEl().on('keypress',function(e) { @@ -933,7 +982,6 @@ }] },{ layout : 'form', - labelWidth :70, columnWidth :.33, hidden: !getSystemSetConfig('showInvoicePersonInCharge',true), height:26, @@ -945,12 +993,11 @@ name : 'personInCharge', readOnly:true, allowBlank : !getSystemSetConfig('showInvoicePersonInCharge',true) || !getSystemSetConfig('invoicePersonInChargeRequired',false), - anchor : '99%', + anchor : '100%', cls:'x-item-disabled' }] },{ layout : 'form', - labelWidth :70, columnWidth :.33, height:26, items : [{ @@ -962,7 +1009,7 @@ altFormats:'Y-m-d|Y-n-j|y-n-j|y-m-j|y-m-d|y-n-d|Y-n-d|Y-m-j|Ymd|Ynj|ynj|ymj|ymd|ynd|Ynd|Ymj|Y/m/d|Y/n/j|y/n/j|y/m/j|y/m/d|y/n/d|Y/n/d|Y/m/j', format:'Y-m-d H:i', // value:new Date(), - anchor : '99%', + anchor : '100%', listeners : { render : function() { setStartDate(top.Ext, 'yyyy/MM/dd HH:mm', 'sendTime'); //(发货时间,取服务器时间 cjr) @@ -972,7 +1019,6 @@ },{ columnWidth : .5, layout : 'form', - labelWidth : 90, columnWidth :.33, height:26, items:[{ @@ -990,7 +1036,7 @@ hideTrigger : true, typeAhead : false, allowBlank : false, - anchor : '99%', + anchor : '100%', listeners : { select : function(combo, record, index) { top.Ext.getCmp('warehouse').setValue(record.data.name); @@ -1008,7 +1054,6 @@ },{ layout : 'form', columnWidth : 1, - labelWidth :70, items : [{ xtype : 'textarea', fieldLabel : '备注', @@ -1018,7 +1063,7 @@ height : 40 }] }] - }] + },{ layout:'column', items:[{ @@ -1031,7 +1076,7 @@ columnWidth : 0.5, cm : cm, width : top.screen.width < 1280 ? top.screen.width*0.57-25 : 680, - height : top.screen.height < 864 ? windowH-240 : 455, + height : top.screen.height < 864 ? windowH-250 : 445, autoExpandColumn : 'deleteItem', enableHdMenu : false, frame : false, @@ -1178,7 +1223,7 @@ cm : recyclingapplicationCm, enableHdMenu : false, width : top.screen.width < 1280 ? top.screen.width*0.43-20 : 560, - height : top.screen.height < 864 ? windowH-240 : 455, + height : top.screen.height < 864 ? windowH-250 : 445, loadMask : true, tbar:[{ text:'发货汇总' Index: ssts-web/src/main/webapp/disinfectsystem/invoice/materialInvoiceView.js =================================================================== diff -u -r27770 -r30032 --- ssts-web/src/main/webapp/disinfectsystem/invoice/materialInvoiceView.js (.../materialInvoiceView.js) (revision 27770) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/materialInvoiceView.js (.../materialInvoiceView.js) (revision 30032) @@ -343,11 +343,12 @@ id : 'materialInvoiceForm', frame : true, labelSeparator : ':', - bodyStyle : 'padding:5px 5px 0px 25px', - width : 800, + bodyStyle : 'padding:5px 10px 0px 10px', + width : 930, autoHeight : true, autoScroll : true, - labelAlign : 'left', + labelAlign : 'right', + labelWidth:60, items:[{ layout : 'column', items : [{ @@ -382,7 +383,6 @@ id:'serialNum', columnWidth : .33, layout : 'form', - labelWidth : 40, hidden : true, items : [{ xtype : 'textfield', @@ -396,9 +396,8 @@ anchor : '95%' }] },{ - columnWidth : .22, + columnWidth : .33, layout : 'form', - labelWidth : 50, items : [{ xtype : 'textfield', fieldLabel : '操作员', @@ -412,9 +411,8 @@ anchor : '95%' }] },{ - columnWidth : .28, + columnWidth : .33, layout : 'form', - labelWidth : 60, items : [{ xtype : 'datefield', fieldLabel : '发货时间', @@ -424,17 +422,16 @@ altFormats:'Y-m-d|Y-n-j|y-n-j|y-m-j|y-m-d|y-n-d|Y-n-d|Y-m-j|Ymd|Ynj|ynj|ymj|ymd|ynd|Ynd|Ymj|Y/m/d|Y/n/j|y/n/j|y/m/j|y/m/d|y/n/d|Y/n/d|Y/m/j', // value : new Date(), editable: false, - anchor : '95%', + anchor : '90%', listeners : { render : function() { setStartDate(top.Ext, 'yyyy/MM/dd HH:mm', 'sendTime'); //(发货时间,取服务器时间 cjr) } } }] }, { - columnWidth : .25, + columnWidth : .33, layout : 'form', - labelWidth : 40, items : [{ xtype : 'combo', fieldLabel : '仓库', @@ -447,7 +444,7 @@ forceSelection : true, allowBlank : false, triggerAction : 'all', - anchor : '95%', + anchor : '90%', listeners : { select : function(combo,record,index){ top.Ext.getCmp("sourceWarehouseId").setValue(record.data.id); @@ -457,15 +454,14 @@ } }] },{ - columnWidth : .24, + columnWidth : .33, layout : 'form', - labelWidth : 40, items : [{ xtype : 'combo', id : 'departSearch', name : 'departSearch', queryParam : 'spell', - fieldLabel : '科室', + fieldLabel : '申请科室', minChars : 0, valueField : 'id', displayField : 'name', @@ -476,18 +472,60 @@ hideTrigger : true, typeAhead : false, allowBlank : false, - anchor : '95%', + anchor : '90%', listeners : { select : function(combo , record , index){ top.Ext.getCmp('departCoding').setValue(record.data.id); top.Ext.getCmp('depart').setValue(record.data.name); + Ext.Ajax.request({ + url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getDefaultSettleAccountDepart.do', + params: { + orgUnitCode: record.data.id + }, + success: function (response, options) { + var result = Ext.decode(response.responseText); + if (!result.success) { + showResult(resultObj.errMsg); + return; + } + var orgUnitCode = result.data.orgUnitCode || ''; + var name = result.data.name || ''; + top.Ext.getCmp('settleAccountsDepartCoding').setValue(orgUnitCode); + top.Ext.getCmp('settleAccountsDepart').setValue(name); + } + }); } } }] + }, { + //结算科室编码 + xtype: 'hidden', + name: 'settleAccountsDepartCoding', + id: 'settleAccountsDepartCoding' },{ + columnWidth : .33, + layout : 'form', + items : [{ + xtype : 'combo', + id : 'settleAccountsDepart', + name : 'settleAccountsDepart', + queryParam : 'spell', + fieldLabel : '结算科室', + minChars : 0, + valueField : 'id', + displayField : 'name', + store : departJsonStore, + forceSelection : true, + lazyInit : true, + triggerAction : 'all', + hideTrigger : true, + typeAhead : false, + allowBlank : false, + anchor : '90%' + }] + },{ columnWidth : 1, layout : 'form', - labelWidth : 50, items : [{ xtype : 'textarea', fieldLabel : '备注', @@ -579,7 +617,7 @@ }, {header : "删除",width : 20,menuDisabled : true,dataIndex : 'deleteButton', id:'expandColumn', renderer:renderDeleteButton} ]), - width : 950, + width : 910, height : 400, autoExpandColumn : 'expandColumn', clicksToEdit : 1,// 设置点击几次才可编辑 @@ -680,7 +718,7 @@ id : 'userecordName', name : 'userecordName', width : 200, - anchor : '95%', + anchor : '90%', emptyText : '点击选择使用记录', readOnly : true, listeners : { @@ -706,7 +744,7 @@ width : 40, regex: /^\d+$/, regexText:'只能输入数字', - anchor : '95%', + anchor : '90%', listeners : { specialkey : function(field, e) { if (e.getKey() == Ext.EventObject.ENTER) { @@ -1024,6 +1062,8 @@ top.Ext.getCmp("sendTime").setValue(Ext.util.Format.date(new Date(action.result.data.sendTime.time), 'Y-m-d H:i')); top.Ext.getCmp("sourceWarehouseName").setValue(action.result.data.sourceWarehouseName); top.Ext.getCmp("departSearch").setRawValue(action.result.data.depart); + top.Ext.getCmp("settleAccountsDepart").setRawValue(action.result.data.settleAccountsDepart); + top.Ext.getCmp("settleAccountsDepartCoding").setRawValue(action.result.data.settleAccountsDepartCoding); for(var i = 0 ;i < action.result.data.materialInvoiceItemList.length ;i++){ var materialName = action.result.data.materialInvoiceItemList[i].materialName; var materialInvoiceItem = new MaterialInvoiceItemRecord({ Index: ssts-web/src/main/webapp/disinfectsystem/returnMaterialRecord/returnMaterialRecordForm.js =================================================================== diff -u -r26075 -r30032 --- ssts-web/src/main/webapp/disinfectsystem/returnMaterialRecord/returnMaterialRecordForm.js (.../returnMaterialRecordForm.js) (revision 26075) +++ ssts-web/src/main/webapp/disinfectsystem/returnMaterialRecord/returnMaterialRecordForm.js (.../returnMaterialRecordForm.js) (revision 30032) @@ -5,6 +5,8 @@ top.Ext.getCmp("id").setValue(returnGoodsRecord.id); top.Ext.getCmp("operator").setValue(returnGoodsRecord.operator); top.Ext.getCmp("depart").setValue(returnGoodsRecord.depart); + top.Ext.getCmp("settleAccountsDepart").setValue(returnGoodsRecord.settleAccountsDepart); + top.Ext.getCmp("settleAccountsDepartCoding").setValue(returnGoodsRecord.settleAccountsDepartCoding); top.Ext.getCmp("returnTime").setValue(returnGoodsRecord.returnTime); // Ext.getCmp("signStatus").setValue(returnGoodsRecord.signStatus); top.Ext.getCmp("remark").setValue(returnGoodsRecord.remark); @@ -135,7 +137,7 @@ ]), listeners : { beforeload : function(store,option) { - store.baseParams['departCoding'] = getCurrentDepartCoding(); + store.baseParams['departCoding'] = getSettleAccountsDepartCoding(); } } }); @@ -258,6 +260,10 @@ function getCurrentDepartCoding(){ return top.Ext.getCmp('departCoding').getValue(); } + // 获取结算科室的编码 + function getSettleAccountsDepartCoding(){ + return top.Ext.getCmp('settleAccountsDepartCoding').getValue(); + } //获取当前部门 function getCurrentDepart(){ return top.Ext.getCmp('depart').getValue(); @@ -371,6 +377,9 @@ labelAlign:'right', autoHeight : true, autoScroll : true, + viewConfig:{ + labelWidth:80 + }, items : [{ xtype:"fieldset", layout:'column', @@ -405,7 +414,6 @@ },{ columnWidth : .5, layout : 'form', - labelWidth : 80, items : [{ xtype : 'textfield', fieldLabel : '操作人', @@ -421,7 +429,6 @@ }, { columnWidth : .5, layout : 'form', - labelWidth : 70, items : [{ xtype : 'datefieldWithMin', fieldLabel : '时间', @@ -442,7 +449,6 @@ }, { columnWidth : .5, layout : 'form', - labelWidth : 80, items : [{ xtype : 'textfield', fieldLabel : '退货人员工号', @@ -462,7 +468,6 @@ } ,{ columnWidth : .5, layout : 'form', - labelWidth : 70, items : [{ xtype : 'textfield', fieldLabel : '退货人', @@ -476,7 +481,6 @@ } , { columnWidth : .5, layout : 'form', - labelWidth : 80, items : [{ xtype : 'combo', id : 'depart', @@ -501,13 +505,62 @@ var tem = record.data.id; top.Ext.getCmp('departCoding').setValue(tem); updateGoodsComboStatus(); + Ext.Ajax.request({ + url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getDefaultSettleAccountDepart.do', + params: { + orgUnitCode: tem + }, + success: function (response, options) { + var result = Ext.decode(response.responseText); + if (!result.success) { + showResult(resultObj.errMsg); + return; + } + var orgUnitCode = result.data.orgUnitCode || ''; + var name = result.data.name || ''; + top.Ext.getCmp('settleAccountsDepartCoding').setValue(orgUnitCode); + top.Ext.getCmp('settleAccountsDepart').setValue(name); + } + }); } } }] + }, { + //结算科室编码 + xtype: 'hidden', + name: 'settleAccountsDepartCoding', + id: 'settleAccountsDepartCoding' + }, { + columnWidth : .5, + layout : 'form', + items : [{ + xtype : 'combo', + id : 'settleAccountsDepart', + name : 'settleAccountsDepart', + disabled:!editableConfig.editable, + queryParam : 'spell', + fieldLabel : '结算科室', + queryParam : 'spell', + minChars : 0, + valueField : 'name', + displayField : 'name', + anchor : '80%', + store : departJsonStore, + forceSelection : true, + lazyInit : true, + triggerAction : 'all', + hideTrigger : true, + typeAhead : false, + allowBlank : false, + listeners :{ + select:function(combo, record, index ){ + returnGoodsItemStore.removeAll(); + } + } + }] } ,{ columnWidth : .5, layout : 'form', - labelWidth : 70, items:[{ xtype : 'combo', fieldLabel : '退货仓库', @@ -522,8 +575,8 @@ triggerAction : 'all', hideTrigger : true, typeAhead : false, + anchor : '80%', allowBlank : false, - width : 100, listeners : { select : function(combo, record, index) { top.Ext.getCmp('warehouse').setValue(record.data.name); @@ -541,7 +594,6 @@ },{ columnWidth : .5, layout : 'form', - labelWidth : 80, items : [{ xtype : 'textfield', fieldLabel : '总金额', @@ -555,7 +607,6 @@ },{ columnWidth : 1, layout : 'form', - labelWidth : 80, items : [{ xtype : 'textarea', height : 45, @@ -635,7 +686,7 @@ return ; } ReturnMaterialRecordTableManager.loadMaterialPriceAmountInfoCanReturned( - getCurrentDepartCoding(),record.data.id,warehouseId,function(priceAmountList){ + getSettleAccountsDepartCoding(),record.data.id,warehouseId,function(priceAmountList){ if(priceAmountList != null){ setPrices(priceAmountList); } @@ -812,7 +863,6 @@ modal : true, // autoHeight : true, border : false, - height:580, plain : true, items : [ form ] });