Index: ssts-web/src/main/webapp/disinfectsystem/config/nfykdxnfyy/config.js =================================================================== diff -u -r33679 -r36031 --- ssts-web/src/main/webapp/disinfectsystem/config/nfykdxnfyy/config.js (.../config.js) (revision 33679) +++ ssts-web/src/main/webapp/disinfectsystem/config/nfykdxnfyy/config.js (.../config.js) (revision 36031) @@ -310,6 +310,8 @@ hideUnprintedDisposableGoodsInvoicePlan:true, //发货计划待发货物品变色规则。 colorChangeRuleOfInvoicPlanToSendGoodsList:2, + //隐藏器械包定义的字段 + hideFieldsOfTousseView:["costPrice"], //启用借物单单独发货功能 enableBorrowInvoicePlanSeperateSend:true Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseForm.js =================================================================== diff -u -r34957 -r36031 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseForm.js (.../tousseForm.js) (revision 34957) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseForm.js (.../tousseForm.js) (revision 36031) @@ -886,6 +886,12 @@ e.getTarget().setAttribute('data-qtip', '点击开始编辑'); } }); + var costPriceHidden = false; + if(sstsConfig.hideFieldsOfTousseView){ + if(sstsConfig.hideFieldsOfTousseView.indexOf('costPrice') >= 0){ + costPriceHidden = true; + } + } var colWidth = 0.33; formObj = new top.Ext.FormPanel({ id: 'tousseDefinitionForm', @@ -1273,6 +1279,7 @@ layout: 'form', labelWidth: fontSize == 12 ? 90 : 100, labelAlign: "right", + hidden:costPriceHidden, items: [{ xtype: 'numberfield', fieldLabel: "成本价格", @@ -3240,7 +3247,9 @@ totalMoney = add(totalMoney, muls);//相加 }); - top.Ext.getCmp('costPrice').setValue(totalMoney); + if(top.Ext.getCmp('costPrice')){ + top.Ext.getCmp('costPrice').setValue(totalMoney); + } } /** Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseView.js =================================================================== diff -u -r34957 -r36031 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseView.js (.../tousseView.js) (revision 34957) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseView.js (.../tousseView.js) (revision 36031) @@ -165,6 +165,12 @@ $Id('parm_s_enableBelongDepartFilter').value = "true" } } + var costPriceHidden = false; + if(sstsConfig.hideFieldsOfTousseView){ + if(sstsConfig.hideFieldsOfTousseView.indexOf('costPrice') >= 0){ + costPriceHidden = true; + } + } var columns = [ {header : "器械包名称",width : 180,dataIndex : 'name', renderer : modifyRecord}, {header : "器械包类别",width : 90,dataIndex : 'tousseType'}, @@ -173,7 +179,7 @@ {header : "优先处理科室",width : 100,dataIndex : 'handlerDepartName'}, {header : "所属任务组",width : 100,dataIndex : 'taskGroup'}, {header : "价格(元)",width : 65,dataIndex : 'price'}, - {header : "成本价格",width : 65,dataIndex : 'costPrice',sortable: false,menuDisabled : true}, + {header : "成本价格",width : 65,dataIndex : 'costPrice',sortable: false,menuDisabled : true,hidden:costPriceHidden}, {header : "借出单价(元)",width : 100,dataIndex : 'borrowPrice'}, {header : "大小",width : 60,dataIndex : 'packageSize'}, {header : "器械包分组",width : 90,dataIndex : 'tousseGroupName'},