Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceView.js =================================================================== diff -u -r23072 -r25150 --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceView.js (.../invoiceView.js) (revision 23072) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceView.js (.../invoiceView.js) (revision 25150) @@ -1,6 +1,11 @@ var entityName = "发货单"; var grid; var tousseTypeDataArray = [['全部','全部'],['一次性物品','一次性物品'],['器械包','器械包'],['敷料包','敷料包'],['消毒物品','消毒物品'],['自定义器械包','自定义器械包'],['外来器械包','外来器械包'],['外来器械拆分小包','外来器械拆分小包'],['外部代理灭菌','外部代理灭菌']]; + +//预约或者自定义下的病人信息的显示与否 +var isPatient = false; +var isPatientHeight = 140; + var rd = new Ext.data.JsonReader({ fields : [ {name : 'id'}, @@ -430,13 +435,23 @@ } // 发货单窗口 -function openInvoiceForm(id, type) { +function openInvoiceForm(id, type, invoice) { + //weizhenyu + if(invoice.invoicePlanType == "自定义发货"){ + isPatientHeight = 140; + isPatient = true; + } + if(invoice.invoicePlanType == "手术预约申请单"){ + isPatient = false; + isPatientHeight = 236; + } + invoiceStore.removeAll(); invoiceStore.on("beforeload", function(thiz, options) { thiz.baseParams["id"] = id; }); invoiceStore.load(); - + recyclingErrorStore.removeAll(); recyclingErrorStore.on("beforeload", function(thiz, options) { thiz.baseParams["id"] = id; @@ -479,26 +494,26 @@ var recyclingErrorCm = new Ext.grid.ColumnModel([ {header : "材料名称",dataIndex : 'name',width : 200,menuDisabled : true}, {header : "缺失数量",dataIndex : 'count',width : 60,menuDisabled : true}, - {header : '单价',id : 'price',dataIndex : 'price',width : 60,value : 0,menuDisabled : true} + {header : '单价',id : 'price',dataIndex : 'price',width : 35,value : 0,menuDisabled : true} ]); var cm = new Ext.grid.ColumnModel([ {id : 'id',dataIndex : 'id',hidden : true}, - {header : "条码",dataIndex : 'barcode',width : 50,menuDisabled : true, + {header : "条码",dataIndex : 'barcode',width : 30,menuDisabled : true, renderer : function(v, p, record) { if(!isUndefinedOrNullOrEmpty(record.data.expensiveDGBarcode)){ return record.data.expensiveDGBarcode; } return record.data.barcode; }}, - {header : "物品名称",dataIndex : 'showTousseName',width : 170,menuDisabled : true}, + {header : "物品名称",dataIndex : 'showTousseName',width : 80,menuDisabled : true}, {header : "name",dataIndex : 'name',hidden : true,menuDisabled : true}, - {header : "批次/灭菌日期",dataIndex : 'batchNumber',width : 70,menuDisabled : true}, + {header : "批次/灭菌日期",dataIndex : 'batchNumber',width : 60,menuDisabled : true}, {header : "灭菌炉名称",dataIndex : 'sterilizerName',width : 100,menuDisabled : true,hidden : true}, {header : "炉次",dataIndex : 'frequency',width : 50,menuDisabled : true,hidden : true}, {id : 'diposable',header : "是否一次性材料",dataIndex : 'diposable',hidden : true,width : 50}, - {header : "单价",dataIndex : 'fluctuationPrice',width : 40,menuDisabled : false, + {header : "单价",dataIndex : 'fluctuationPrice',width : 30,menuDisabled : false, editor : new Ext.form.NumberField ({ listeners : { focus : function(thiz){ @@ -778,12 +793,99 @@ anchor : '99%', cls : 'x-item-disabled' }] - },{ + }, + { layout : 'form', columnWidth : 1, labelWidth : 70, + hidden : isPatient, items : [{ xtype : 'textfield', + fieldLabel : '手术名称', + id : 'operationName', + name : 'operationName', + value : invoice.invoicePlan.operationName, + anchor : '99.5%', + height : 40, + cls : 'x-item-disabled', + readOnly : true + }] + + }, + { + layout : 'form', + labelWidth : 70, + columnWidth : .5, + hidden : isPatient, + items : [{ + xtype : 'textfield', + fieldLabel : '病人姓名', + value : invoice.invoicePlan.patientName, + maxLength : '41', + id : 'patientName', + name : 'patientName', + readOnly : true, + anchor : '99%', + cls : 'x-item-disabled' + }] + }, + { + layout : 'form', + labelWidth : 70, + columnWidth : .5, + hidden : isPatient, + items : [{ + xtype : 'textfield', + fieldLabel : '医生姓名', + value : invoice.invoicePlan.doctors, + maxLength : '41', + id : 'doctors', + name : 'doctors', + readOnly : true, + anchor : '99%', + cls : 'x-item-disabled' + }] + }, + { + layout : 'form', + labelWidth : 70, + columnWidth : .5, + hidden : isPatient, + items : [{ + xtype : 'textfield', + fieldLabel : '手术间', + maxLength : '41', + id : 'operatingRoom', + name : 'operatingRoom', + value : invoice.invoicePlan.operatingRoom, + readOnly : true, + anchor : '99%', + cls : 'x-item-disabled' + }] + }, + { + layout : 'form', + labelWidth : 70, + columnWidth : .5, + hidden : isPatient, + items : [{ + xtype : 'textfield', + fieldLabel : '手术台次', + maxLength : '41', + id : 'consoleName', + name : 'consoleName', + value : invoice.invoicePlan.consoleName, + readOnly : true, + anchor : '99%', + cls : 'x-item-disabled' + }] + }, + { + layout : 'form', + columnWidth : 1, + labelWidth : 70, + items : [{ + xtype : 'textfield', fieldLabel : '备注', id : 'remark2', name : 'remark', @@ -805,7 +907,7 @@ cm : recyclingErrorCm, enableHdMenu : false, width : 405, - height : 135, + height : isPatientHeight, autoExpandColumn : 'price', frame : false, bodyStyle : 'border:1px solid #afd7af', @@ -1385,7 +1487,7 @@ } var id = records[0].data['id']; var invoiceType = records[0].data['recyclingApplicationType']; - openInvoiceForm(id, invoiceType); + openInvoiceForm(id, invoiceType, records[0].data); top.Ext.getCmp('recyclingApplicationWin').setTitle('发货信息'); }; @@ -1768,6 +1870,7 @@ {name : 'remark'}, {name : 'hospitalNumber'}, {name : 'invoicePlanType'}, + {name : 'invoicePlan'}, {name : 'receiptor'}, {name : 'receiptingTime'}, {name : 'personInCharge'}, @@ -2176,16 +2279,14 @@ var selectedTousseType = selectedTousseTypeCmp.getValue(); var invoiceDepartGroups = invoiceDepartGroupsCmp.getValue(); var selectedDisposableGoodsType = disposableGoodsTypeCmp.getValue(); -// alert(selectedTousseType) -// alert(invoiceDepartGroups) + var obj = { 'parm_s_selectedTousseType': [selectedTousseType], 'parm_s_selectedDepartCodes': [invoiceDepartGroups], 'parm_s_disposableGoodsType': [selectedDisposableGoodsType] }; return obj; } - }, readerDetail, InvoiceTableManager.findInvoiceTableList, null