Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceView.js =================================================================== diff -u -r36238 -r36694 --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceView.js (.../invoiceView.js) (revision 36238) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceView.js (.../invoiceView.js) (revision 36694) @@ -471,7 +471,6 @@ isPatient = false; isPatientHeight = 236; } - invoiceStore.removeAll(); invoiceStore.on("beforeload", function (thiz, options) { thiz.baseParams["id"] = id; @@ -831,8 +830,23 @@ layout: 'form', labelWidth: 70, columnWidth: .5, + hidden: isPatient, items: [{ xtype: 'textfield', + fieldLabel: '病人姓名', + maxLength: '41', + id: 'patientName', + name: 'patientName', + readOnly: true, + anchor: '99%', + cls: 'x-item-disabled' + }] + }, { + layout: 'form', + labelWidth: 70, + columnWidth: .5, + items: [{ + xtype: 'textfield', fieldLabel: '住院号', maxLength: '41', id: 'hospitalNumber', @@ -841,9 +855,23 @@ anchor: '99%', cls: 'x-item-disabled' }] - }, - { + }, { layout: 'form', + labelWidth: 70, + columnWidth: .5, + hidden: isPatient, + items: [{ + xtype: 'textfield', + fieldLabel: '诊疗号', + maxLength: '41', + id: 'clinicNumber', + name: 'clinicNumber', + readOnly: true, + anchor: '99%', + cls: 'x-item-disabled' + }] + },{ + layout: 'form', columnWidth: 1, labelWidth: 70, hidden: isPatient, @@ -852,7 +880,6 @@ fieldLabel: '手术名称', id: 'operationName', name: 'operationName', - value: invoice.invoicePlan.operationName, anchor: '99.5%', height: 40, cls: 'x-item-disabled', @@ -867,28 +894,26 @@ hidden: isPatient, items: [{ xtype: 'textfield', - fieldLabel: '病人姓名', - value: invoice.invoicePlan.patientName, + fieldLabel: '医生姓名', maxLength: '41', - id: 'patientName', - name: 'patientName', + id: 'doctors', + name: 'doctors', readOnly: true, anchor: '99%', cls: 'x-item-disabled' }] }, { layout: 'form', - labelWidth: 70, + labelWidth: 90, columnWidth: .5, hidden: isPatient, items: [{ xtype: 'textfield', - fieldLabel: '医生姓名', - value: invoice.invoicePlan.doctors, + fieldLabel: '病人所属科室', maxLength: '41', - id: 'doctors', - name: 'doctors', + id: 'ascriptionDepartment', + name: 'ascriptionDepartment', readOnly: true, anchor: '99%', cls: 'x-item-disabled' @@ -905,7 +930,6 @@ maxLength: '41', id: 'operatingRoom', name: 'operatingRoom', - value: invoice.invoicePlan.operatingRoom, readOnly: true, anchor: '99%', cls: 'x-item-disabled' @@ -922,7 +946,6 @@ maxLength: '41', id: 'consoleName', name: 'consoleName', - value: invoice.invoicePlan.consoleName, readOnly: true, anchor: '99%', cls: 'x-item-disabled' @@ -1099,6 +1122,16 @@ top.Ext.getCmp('sender').setValue(cookieSender); } } + if(invoice.invoicePlan){ + top.Ext.getCmp('patientName').setValue(invoice.invoicePlan.patientName); + top.Ext.getCmp('hospitalNumber').setValue(invoice.invoicePlan.hospitalNumber); + top.Ext.getCmp('clinicNumber').setValue(invoice.invoicePlan.clinicNumber); + top.Ext.getCmp('operationName').setValue(invoice.invoicePlan.operationName); + top.Ext.getCmp('doctors').setValue(invoice.invoicePlan.doctors); + top.Ext.getCmp('operatingRoom').setValue(invoice.invoicePlan.operatingRoom); + top.Ext.getCmp('consoleName').setValue(invoice.invoicePlan.consoleName); + top.Ext.getCmp('ascriptionDepartment').setValue(invoice.invoicePlan.ascriptionDepartment); + } }, failure: function (form, action) { }