Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/supplyroomtype/supplyRoomTypeForm.js =================================================================== diff -u -r40740 -r40745 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/supplyroomtype/supplyRoomTypeForm.js (.../supplyRoomTypeForm.js) (revision 40740) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/supplyroomtype/supplyRoomTypeForm.js (.../supplyRoomTypeForm.js) (revision 40745) @@ -18,6 +18,606 @@ Ext.getCmp('tdNamesOfAutobasketInsertion').setValue(names); } +function setRecordSequenceAndGetSupplyRoomItemsStr(store) { + setRecordSequence(store);// 设置序号 + return buildJSONStringFromStore(store); +} + +function getGridData() { + $Id('supplyRoom_type_first_supplyRoom').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreFirstSupplyRoom); + // 二级供应室 + $Id('supplyRoom_type_second_supplyRoom').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreSecondSupplyRoom); + // 科室申领配置 + $Id('supplyRoom_type_apply').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreApply); + // 结算科室配置 + $Id('supplyRoom_type_settleAccount').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreSettleAccount); + + var supplyRoomStoreUseRecordToApplicationNotInvoice = Ext.getCmp("supplyRoomUseRecordToApplicationNotInvoice").getStore(); + $Id('supplyRoom_type_userecord_to_application_not_invoice').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreUseRecordToApplicationNotInvoice); + // 器械位置流转科室 + $Id('supplyRoom_type_tousse_operation').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreTousseOperation); + //回收申请单不发货科室 + $Id('supplyRoom_type_recycling_application_not_invoice').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreRecyclingApplicationNotInvoice); + //高值耗材处理科室 + $Id('supplyRoom_type_ExpensiveGoods').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreExpensiveGoods); +} + +//保存 +function saveSupplyRoomCongfig() { + if (Ext.getCmp('autoSignInvoice').getValue() == '是') { + setHiddenFieldsAllowBlank(false); + } else { + setHiddenFieldsAllowBlank(true); + } + if (supplyRoomStoreFirstSupplyRoom.getCount() > 1) { + showResult('只允许设置一个一级供应室,请删除多余的科室后再保存!'); + return false; + } + + var dayStartTime = Ext.getCmp("dayStartTime").getValue(); + if (dayStartTime == "") { + showResult('一天的开始时间不能为空!'); + return false; + } + var saveImageMethod = Ext.getCmp("saveImageMethod").getValue(); + if (saveImageMethod == "") { + showResult('图片保存方式不能为空!'); + return false; + } + var invoiceOrigin = Ext.getCmp("invoiceOrigin").getValue(); + if (invoiceOrigin == "") { + showResult('发货数量依据不能为空!'); + return false; + } + var tousseDeliverOccasion = Ext.getCmp("tousseDeliverOccasion").getValue(); + if (tousseDeliverOccasion == "") { + showResult('器械包发货时间不能为空!'); + return false; + } + var printUserName = Ext.getCmp("printUserName").getValue(); + if (printUserName == "") { + showResult('配包打印用户姓名不能为空!'); + return false; + } + var autoMergeApplication = Ext.getCmp("autoMergeApplication").getValue(); + if (autoMergeApplication == "") { + showResult('是否自动合并申请单不能为空!'); + return false; + } + var noMergeApplicationTypes = null; + if (autoMergeApplication == '是') { + noMergeApplicationTypes = Ext.getCmp("noMergeApplicationTypes").getValue(); + } + var secondWashCountWorkload = Ext.getCmp("secondWashCountWorkload").getValue(); + if (secondWashCountWorkload == "") { + showResult('二次清洗是否统计工作量不能为空!'); + return false; + } + var dailyMonitoringMinute = Ext.getCmp("dailyMonitoringMinute").getValue(); + if (dailyMonitoringMinute + '' == "") { + showResult('每天例行监测灭菌完成分钟数不能为空!'); + return false; + } + var disposableGoodsWarningDate = Ext.getCmp("disposableGoodsWarningDate").getValue(); + if (disposableGoodsWarningDate == null) { + disposableGoodsWarningDate = ""; + } + var disposableGoodsExpTime = Ext.getCmp("disposableGoodsExpTime").getValue(); + if (disposableGoodsExpTime == "") { + showResult('一次性物品退货天数不能为空!'); + return false; + } + var isSecondSupplyRoomNeedRecycle = Ext.getCmp("isSecondSupplyRoomNeedRecycle").getValue(); + if (isSecondSupplyRoomNeedRecycle == "") { + showResult('二级供应室是否需要回收不能为空!'); + return false; + } + var isTousseDgMergeConvert = Ext.getCmp("isTousseDgMergeConvert").getValue(); + if (isTousseDgMergeConvert == "") { + showResult('器械包和一次性物品转换合并不能为空!'); + return false; + } + var damagedTousseAtCost = Ext.getCmp("damagedTousseAtCost").getValue(); + if (damagedTousseAtCost == "") { + showResult('报损器械计算科室成本不能为空!'); + return false; + } + var insideTousseMaterialOutCost = Ext.getCmp("insideTousseMaterialOutCost").getValue(); + if (insideTousseMaterialOutCost == "") { + showResult('包内材料扣减科室成本不能为空!'); + return false; + } + var foreignToussePrice = Ext.getCmp("foreignToussePrice").getValue(); + if (typeof (foreignToussePrice) != "number") { + showResult('外来器械包价格不能为空!'); + return false; + } + var diposablePriceFluctuation = Ext.getCmp("diposablePriceFluctuation").getValue(); + if (typeof (diposablePriceFluctuation) != "number") { + showResult('一次性物品价格浮动系数不能为空!'); + return false; + } + var toussePriceFluctuation = Ext.getCmp("toussePriceFluctuation").getValue(); + if (typeof (toussePriceFluctuation) != "number") { + showResult('器械包价格浮动系数不能为空!'); + return false; + } + var customToussePrice = Ext.getCmp("customToussePrice").getValue(); + if (typeof (customToussePrice) != "number") { + showResult('自定义器械包价格不能为空!'); + return false; + } + var idCardPrice = Ext.getCmp("idCardPrice").getValue(); + if (typeof (idCardPrice) != "number") { + showResult('标识牌价格不能为空!'); + return false; + } + var foreignTousseCleanedEntirely = Ext.getCmp("foreignTousseCleanedEntirely").getValue(); + if (foreignTousseCleanedEntirely == "") { + showResult('外来器械包是否整包清洗不能为空!'); + return false; + } + var foreignTousseNeedReview = Ext.getCmp("foreignTousseNeedReview").getRawValue(); + if (foreignTousseNeedReview == "") { + showResult('外来器械包是否审核不能为空!'); + return false; + } + var foreignTousseIsSecondRecycle = Ext.getCmp("foreignTousseIsSecondRecycle").getRawValue(); + var barcodePaperType = Ext.getCmp("barcodePaperType").getValue(); + if (barcodePaperType == "") { + showResult('外来器械包打印标签不能为空!'); + return false; + } + var expensiveGoodsPaperType = Ext.getCmp("expensiveGoodsPaperType").getValue(); + var bigPackageSterilizerType = Ext.getCmp("bigPackageSterilizerType").getValue(); + if (bigPackageSterilizerType == "") { + showResult('超大、重外来器械灭菌方式不能为空!'); + return false; + } + var isCustomTousseCleanEntirely = Ext.getCmp("isCustomTousseCleanEntirely").getValue(); + if (isCustomTousseCleanEntirely == "") { + showResult('自定义器械包是否整包清洗不能为空!'); + return false; + } + /*var afterRecyclingTousseDeliver = Ext.getCmp("afterRecyclingTousseDeliver").getValue(); + if(afterRecyclingTousseDeliver == ""){ + showResult('器械包回收后发货不能为空!'); + return false; + }*/ + var autoSignInvoice = Ext.getCmp("autoSignInvoice").getValue(); + if (autoSignInvoice == "") { + showResult('是否自动签收发货单不能为空!'); + return false; + } + var isSecondSupplyRoomAutoInvoice = Ext.getCmp("isSecondSupplyRoomAutoInvoice").getValue(); + if (isSecondSupplyRoomAutoInvoice == "") { + showResult('二级供应室是否自动发货不能为空!'); + return false; + } + var timingSignInvoiceTime = Ext.getCmp("timingSignInvoiceTime").getValue(); + + var warningTousseWhetherDelivery = Ext.getCmp("warningTousseWhetherDelivery").getValue(); + if (warningTousseWhetherDelivery == "") { + showResult('处于预警期器械包能否发货不能为空!'); + return false; + } + + var mergeTousseRuleForInvoiceBatchPrintStr = Ext.getCmp("mergeTousseRuleForInvoiceBatchPrintStr").getRawValue(); + if (mergeTousseRuleForInvoiceBatchPrintStr == "") { + showResult('合并发货单器械规则不能为空!'); + return false; + } + + var invoiceModeTousseRange = ''; + if (sstsConfig.onlyAvailableIsDisplayedOfInvoicePlanList) { + invoiceModeTousseRange = Ext.getCmp("invoiceModeTousseRange").getValue(); + } + + var kardexContainerHost = ''; + var kardexContainerPort = ''; + if (!SSTS_ContainerConnect_manager) { + kardexContainerHost = Ext.getCmp("kardexContainerHost").getValue(); + kardexContainerPort = Ext.getCmp("kardexContainerPort").getValue(); + } + + var kardexContainerAddr = ''; + if (sstsConfig.enableOperationReservationShippedToTraysOfKardexContainer) { + kardexContainerAddr = Ext.getCmp("kardexContainerAddr").getValue(); + } + + if (sstsConfig.enableExpensiveGoods) { + var supplierCertificationExpTime = Ext.getCmp("supplierCertificationExpTime").getValue(); + if (supplierCertificationExpTime == "") { + showResult('供应商注册证预警期天数不能为空!'); + return false; + } + } + if (sstsConfig.enableExpensiveGoods) { + var expensiveGoodsBillWarningTime = Ext.getCmp("expensiveGoodsBillWarningTime").getValue(); + if (expensiveGoodsBillWarningTime == "") { + showResult('高值耗材发票预警期天数不能为空!'); + return false; + } + } + + var tousseCamImgVidRetentionTime = ''; + var ftCamImgVidRetentionTime = ''; + //DGKHYY-29:时长 + if (sstsConfig.showCameraPhoto) { + tousseCamImgVidRetentionTime = Ext.getCmp("tousseCamImgVidRetentionTime").getValue(); + ftCamImgVidRetentionTime = Ext.getCmp("ftCamImgVidRetentionTime").getValue(); + if (parseInt(tousseCamImgVidRetentionTime) == 0 || parseInt(tousseCamImgVidRetentionTime) > 100000) { + showResult('器械包拍摄图片/视频保留时长不能为0或大于100000'); + return; + } + if (parseInt(ftCamImgVidRetentionTime) == 0 || parseInt(ftCamImgVidRetentionTime) > 100000) { + showResult('外来器械包拍摄图片/视频保留时长不能为0或大于100000'); + return; + } + } + + //SZSDSRMYY-130:使用记录结算科室取值范围 + var useRecordTiSettlementDepart = ''; + if (sstsConfig.enableTheSettlementDepartmentIsDepartOfPatientFunction) { + useRecordTiSettlementDepart = Ext.getCmp("useRecordTiSettlementDepart").getValue(); + } + + //ZSRY-73:添加用户时验证密码强度 + var verifyPasswordWhenNewUser = ''; + if (sstsConfig.needBeStrongPwdWhenModifyPwd) { + verifyPasswordWhenNewUser = Ext.getCmp("verifyPasswordWhenNewUser").getValue(); + } + + //GZFDZL-141:退货显示过期批次 + var returnExpiredDGBatchNumber = Ext.getCmp("returnExpiredDGBatchNumber").getValue(); + + //FSSZYY-37:停用长时间不登陆账号(天数) + var userNoLoginDateLimit = ''; + if (sstsConfig.enableDisableAccountsHaveNotLoggedInForALongTime) { + userNoLoginDateLimit = Ext.getCmp("userNoLoginDateLimit ").getValue(); + } + + //ZSWY-233:借物单弹窗提醒 + var borrowRemind = ''; + var borrowRemindFrequency = ''; + if (sstsConfig.enableCardinalityManagementOfBorrow) { + borrowRemind = Ext.getCmp("borrowRemind").getValue(); + borrowRemindFrequency = Ext.getCmp("borrowRemindFrequency").getValue(); + } + + //DGSETYY-78:无可选清洗程序处理方案 + var noOptionCleanMethodSolution = ''; + if (sstsConfig.enableAvailableWashProgramsOfTousseFunction) { + noOptionCleanMethodSolution = Ext.getCmp("noOptionCleanMethodSolution").getValue(); + } + + //GZSZYY-113:自定义设备维护记录修改权限设置 + var deviceMaintenanceUpdateMode = ''; + if (sstsConfig.isDeviceMaintenanceCus) { + deviceMaintenanceUpdateMode = Ext.getCmp("deviceMaintenanceUpdateMode").getValue(); + } + + //GZSZYY-118:自定义表单修改模式权限设置 + var defineFormModificationMode = ''; + if (!sstsConfig.closeFormDefinition) { + defineFormModificationMode = Ext.getCmp("defineFormModificationMode").getValue(); + } + + //QYSRMYY-76:密码重置周期(天) + var userPasswordResetCycle = ''; + if (sstsConfig.enablePeriodicLoginPasswordChange) { + userPasswordResetCycle = Ext.getCmp("userPasswordResetCycle").getValue(); + } + + //KSDQDYRMYY-13 + var isEnableTousseOpRecipient = '否'; + var isEnableTousseOpDestLocation = '否'; + var isEnableTousseOpSign = '否'; + var isEnableTousseUnReturnWarn = '否'; + if (sstsConfig.enableSurgicalInstrumentsManagement) { + isEnableTousseOpRecipient = Ext.getCmp("isEnableTousseOpRecipient").getValue(); + isEnableTousseOpDestLocation = Ext.getCmp("isEnableTousseOpDestLocation").getValue(); + isEnableTousseOpSign = Ext.getCmp("isEnableTousseOpSign").getValue(); + isEnableTousseUnReturnWarn = Ext.getCmp("isEnableTousseUnReturnWarn").getValue(); + } + var loginUserDefaultOpRecipient = '否'; + if (Ext.getCmp('loginUserDefaultOpRecipient')) { + loginUserDefaultOpRecipient = Ext.getCmp('loginUserDefaultOpRecipient').getValue(); + } + + var quickJumpOperationTousseOp = '无'; + if (Ext.getCmp('quickJumpOperationTousseOp')) { + quickJumpOperationTousseOp = Ext.getCmp('quickJumpOperationTousseOp').getValue(); + } + + //GDSRMYY-578:器械流转时限(小时) + var tousseOperationTimeLimit = ''; + if (sstsConfig.displayModeOfInstrumentRoomGoodsManagement == 1) { + tousseOperationTimeLimit = Ext.getCmp('tousseOperationTimeLimit').getValue(); + } + + //GDSRMYY-591:允许不流转直接使用 + var allowUseWithoutOperation = ''; + if (sstsConfig.checkTousseLocatedInOperatingRoomWhenAddUseRecord) { + allowUseWithoutOperation = Ext.getCmp('allowUseWithoutOperation').getValue(); + } + + var autoSignAfterPutInStorage = '否'; + if (sstsConfig.enableWarehousePositionModule) { + autoSignAfterPutInStorage = Ext.getCmp("autoSignAfterPutInStorage").getValue(); + } + + var quickJumpGroupStorage = '库存查看'; + if (Ext.getCmp('quickJumpGroupStorage')) { + quickJumpGroupStorage = Ext.getCmp('quickJumpGroupStorage').getValue(); + } + + if (quickJumpGroupStorage == '') { + showResult('快速跳转分组不能为空!'); + return false; + } + + var foreignTousseAppEndTime = Ext.getCmp("foreignTousseAppEndTime").getValue(); + var isFtOnlyImplantConvert = Ext.getCmp("isFtOnlyImplantConvert").getValue(); + var pdaHandoverSignature = ''; + if (sstsConfig.enableReturnHandoverOfForeignTousseFunction) { + pdaHandoverSignature = Ext.getCmp("pdaHandoverSignature").getValue(); + } + //NFYY-90:更改病人信息是否记录到备注 + var saveFtaModPatientInfoRemark = Ext.getCmp("saveFtaModPatientInfoRemark").getValue(); + //DGZYY-234:新增字段“外来器械包最大重量(kg)” + var ftMaxWeight = ''; + if (sstsConfig.foreignTousseAddWeight) { + ftMaxWeight = Ext.getCmp("ftMaxWeight").getValue(); + } + //ZSYY-429:新增同步归还接收人信息和显示归还接收人联系电话 + var displayRecipientPhoneNumber = ''; + var syncReturnRecipientInfo = ''; + if (sstsConfig.enableReturneeOfForeignTousseSupplier) { + displayRecipientPhoneNumber = Ext.getCmp("displayRecipientPhoneNumber").getValue(); + syncReturnRecipientInfo = Ext.getCmp("syncReturnRecipientInfo").getValue(); + } + var unitName = Ext.getCmp("unitName").getValue(); + var basketLoadeTousseAmount = Ext.getCmp("basketLoadeTousseAmount").getValue(); + var customTousseDefaultTaskGroup = Ext.getCmp("customTousseDefaultTaskGroup").getValue(); + var ctDefaultPackageType = Ext.getCmp("ctDefaultPackageType").getValue();//自定义器械包默认类型 + var customTousseNeedReview = Ext.getCmp("customTousseNeedReview").getValue();//自定义器械包是否审核 + var ctDefaultSterilingMethod = Ext.getCmp("ctDefaultSterilingMethod").getValue();//自定义器械包默认灭菌程序 + var ctBarcodePaperType = Ext.getCmp("ctBarcodePaperType").getValue();//自定义器械包打印标签 + var ctPrintOrgSource = Ext.getCmp("ctPrintOrgSource").getValue();//自定义器械包打印科室来源 + // var customTousseNeedRecycle = Ext.getCmp("customTousseNeedRecycle").getValue();//自定义器械包是否回收 + var fTHandleDepartAndTaskGroup = Ext.getCmp("fTHandleDepartAndTaskGroup").getValue(); + var ftDefaultSterilingMethod = Ext.getCmp("ftDefaultSterilingMethod").getValue(); + + var ftPrintOrgSource = Ext.getCmp("ftPrintOrgSource").getValue(); + var ftPrintAmount = Ext.getCmp("ftPrintAmount").getValue(); + var ftPrintAmountSource = Ext.getCmp("ftPrintAmountSource").getValue(); + //外来器械默认申请科室 + var ftApplyDepartment = ''; + var ftApplyDepartmentCode = ''; + if (Ext.getCmp("ftApplyDepartmentCombo").getRawValue()) { + ftApplyDepartment = Ext.getCmp("ftApplyDepartment").getValue(); + ftApplyDepartmentCode = Ext.getCmp("ftApplyDepartmentCode").getValue(); + } + + var instrumentUseRateWorkingDay = ''; + + if (sstsConfig.enableInstrumentLifeCycleTraceabilityManagement && !SSTS_InstrumentInstanceParamsConfig) { + instrumentUseRateWorkingDay = Ext.getCmp("instrumentUseRateWorkingDay").getValue(); + if (instrumentUseRateWorkingDay == '' || instrumentUseRateWorkingDay == 0) { + showResult('器械使用率工作天数系数不能为空或0!'); + return false; + } + } + + //GDSKQYY-10:装配后不自动加载到灭菌篮筐器械包 + var tdIdsOfAutobasketInsertion = ''; + if (sstsConfig.enbaleLoadAutomaticallyIntoBasketsAfterAssembly) { + tdIdsOfAutobasketInsertion = Ext.getCmp("tdIdsOfAutobasketInsertion").getValue(); + } + + var mergeApplicationDepartNameAndCodeArr = ""; + if (autoMergeApplication == "否" || autoMergeApplication == "") { + mergeApplicationDepartNameAndCodeArr = ""; + } else { + mergeApplicationDepartNameAndCodeArr = Ext.getCmp("autoMergeApplicationDepartsCodes").getValue(); + } + + var packingReviewTime = Ext.getCmp("packingReviewTime").getValue(); + var reviewSterilizationTime = Ext.getCmp("reviewSterilizationTime").getValue(); + var ftReleaseBasketAfterReturn = Ext.getCmp("ftReleaseBasketAfterReturn").getValue(); + var ftDefaultPackageType = Ext.getCmp("ftDefaultPackageType").getValue(); + var isORAppFormMerge = Ext.getCmp("isORAppFormMerge").getValue(); + var isDgConvertApplication = Ext.getCmp("isDgConvertApplication").getValue(); + var saveImagePath = Ext.getCmp("saveImagePath").getValue(); + var mergeTousseRuleForInvoiceBatchPrint = Ext.getCmp("mergeTousseRuleForInvoiceBatchPrint").getValue(); + var receiptor = Ext.getCmp("receiptor").getValue(); + var urgentLevelId = Ext.getCmp("urgentLevelId").getValue(); + + var dashboardsRefreshFrequency = '' + var dashboardsScreenSaver = '' + var noOperationTime = '' + var dashboardsQueryCycle = ''; + var urgentBroadcast = '否'; + var urgentBroadcastFrequency = 30; + + if (!SSTS_RealTimeDashboards) { + dashboardsRefreshFrequency = Ext.getCmp("dashboardsRefreshFrequency").getValue(); + dashboardsScreenSaver = Ext.getCmp("dashboardsScreenSaver").getValue(); + noOperationTime = Ext.getCmp("noOperationTime").getValue(); + dashboardsQueryCycle = Ext.getCmp("dashboardsQueryCycle").getValue(); + //ZJYY-145:新增字段 + urgentBroadcast = Ext.getCmp("urgentBroadcast").getValue(); + urgentBroadcastFrequency = Ext.getCmp("urgentBroadcastFrequency").getValue(); + } + + var handWrittenSignatureMode = '只允许手写签名'; + if (!SSTS_WriteSign_manager) { + handWrittenSignatureMode = Ext.getCmp("handWrittenSignatureMode").getValue(); + } + + var instrumentRepairRemindOrgUnitNames = ''; + var instrumentRepairRemindOrgUnitIds = ''; + + if (sstsConfig.enableInstrumentRepairManagement && sstsConfig.InstrumentRepairManagementVersion == 2) { + instrumentRepairRemindOrgUnitNames = Ext.getCmp("instrumentRepairRemindOrgUnitNames").getValue(); + instrumentRepairRemindOrgUnitIds = Ext.getCmp("instrumentRepairRemindOrgUnitIds").getValue(); + } + + + var myMask = new Ext.LoadMask(Ext.getBody(), { msg: "正在保存..." }); + myMask.show(); + + getGridData(); + var supplyRoom_type_first_supplyRoom = Ext.getCmp('supplyRoom_type_first_supplyRoom').getValue(); + var supplyRoom_type_second_supplyRoom = Ext.getCmp('supplyRoom_type_second_supplyRoom').getValue(); + var supplyRoom_type_apply = Ext.getCmp('supplyRoom_type_apply').getValue(); + var supplyRoom_type_settleAccount = Ext.getCmp('supplyRoom_type_settleAccount').getValue(); + var supplyRoom_type_userecord_to_application_not_invoice = Ext.getCmp('supplyRoom_type_userecord_to_application_not_invoice').getValue(); + var supplyRoom_type_tousse_operation = Ext.getCmp('supplyRoom_type_tousse_operation').getValue(); + var supplyRoom_type_recycling_application_not_invoice = Ext.getCmp('supplyRoom_type_recycling_application_not_invoice').getValue(); + var supplyRoom_type_ExpensiveGoods = Ext.getCmp('supplyRoom_type_ExpensiveGoods').getValue(); + Ext.Ajax.request({ + url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!saveSupplyRoomCongfig.do', + method: 'POST', + params: { + supplyRoom_type_first_supplyRoom: supplyRoom_type_first_supplyRoom, + supplyRoom_type_second_supplyRoom: supplyRoom_type_second_supplyRoom, + supplyRoom_type_apply: supplyRoom_type_apply, + supplyRoom_type_settleAccount: supplyRoom_type_settleAccount, + supplyRoom_type_userecord_to_application_not_invoice: supplyRoom_type_userecord_to_application_not_invoice, + supplyRoom_type_tousse_operation: supplyRoom_type_tousse_operation, + supplyRoom_type_recycling_application_not_invoice: supplyRoom_type_recycling_application_not_invoice, + supplyRoom_type_ExpensiveGoods: supplyRoom_type_ExpensiveGoods, //高值耗材的grid数据 + saveImageMethod: saveImageMethod,// + saveImagePath: saveImagePath,// + secondWashCountWorkload: secondWashCountWorkload,// + //afterRecyclingTousseDeliver:afterRecyclingTousseDeliver,// + autoMergeApplication: autoMergeApplication,// + autoSignInvoice: autoSignInvoice,// + bigPackageSterilizerType: bigPackageSterilizerType,// + barcodePaperType: barcodePaperType,// + urgentLevelId: urgentLevelId, + expensiveGoodsPaperType: expensiveGoodsPaperType,// + basketLoadeTousseAmount: basketLoadeTousseAmount,// + customTousseDefaultTaskGroup: customTousseDefaultTaskGroup,// + ctDefaultPackageType: ctDefaultPackageType,//自定义器械包默认类型 + customTousseNeedReview: customTousseNeedReview,//自定义器械包是否审核 + ctDefaultSterilingMethod: ctDefaultSterilingMethod,//自定义器械包默认灭菌程序 + ctBarcodePaperType: ctBarcodePaperType,//自定义器械包默认打印标签 + ctPrintOrgSource: ctPrintOrgSource,//自定义器械包打印科室来源 + // customTousseNeedRecycle : customTousseNeedRecycle,//自定义器械包是否回收 + customToussePrice: customToussePrice,// + dayStartTime: dayStartTime,// + packingReviewTime: packingReviewTime, + reviewSterilizationTime: reviewSterilizationTime, + disposableGoodsWarningDate: disposableGoodsWarningDate, + disposableGoodsExpTime: disposableGoodsExpTime,// + fTHandleDepartAndTaskGroup: fTHandleDepartAndTaskGroup, + diposablePriceFluctuation: diposablePriceFluctuation,// + dailyMonitoringMinute: dailyMonitoringMinute,// + foreignToussePrice: foreignToussePrice,// + foreignTousseCleanedEntirely: foreignTousseCleanedEntirely,// + ftReleaseBasketAfterReturn: ftReleaseBasketAfterReturn, + foreignTousseNeedReview: foreignTousseNeedReview,// + foreignTousseIsSecondRecycle: foreignTousseIsSecondRecycle, + foreignTousseAppEndTime: foreignTousseAppEndTime, + isFtOnlyImplantConvert: isFtOnlyImplantConvert, + pdaHandoverSignature: pdaHandoverSignature, + saveFtaModPatientInfoRemark: saveFtaModPatientInfoRemark, + ftMaxWeight: ftMaxWeight, + displayRecipientPhoneNumber: displayRecipientPhoneNumber, + syncReturnRecipientInfo: syncReturnRecipientInfo, + ftDefaultSterilingMethod: ftDefaultSterilingMethod,// + ftPrintOrgSource: ftPrintOrgSource, + ftPrintAmount: ftPrintAmount, + ftPrintAmountSource: ftPrintAmountSource, + ftApplyDepartment: ftApplyDepartment,// + ftApplyDepartmentCode: ftApplyDepartmentCode,// + ftDefaultPackageType: ftDefaultPackageType,// + idCardPrice: idCardPrice,// + invoiceOrigin: invoiceOrigin,// + tousseDeliverOccasion: tousseDeliverOccasion, + isORAppFormMerge: isORAppFormMerge,// + isDgConvertApplication: isDgConvertApplication,// + isTousseDgMergeConvert: isTousseDgMergeConvert,// + damagedTousseAtCost: damagedTousseAtCost, + insideTousseMaterialOutCost: insideTousseMaterialOutCost, + isCustomTousseCleanEntirely: isCustomTousseCleanEntirely,// + isSecondSupplyRoomNeedRecycle: isSecondSupplyRoomNeedRecycle,// + isSecondSupplyRoomAutoInvoice: isSecondSupplyRoomAutoInvoice,// + toussePriceFluctuation: toussePriceFluctuation,// + printUserName: printUserName,// + mergeTousseRuleForInvoiceBatchPrint: mergeTousseRuleForInvoiceBatchPrint,// + timingSignInvoiceTime: timingSignInvoiceTime,// + warningTousseWhetherDelivery: warningTousseWhetherDelivery,// + unitName: unitName, + supplierCertificationExpTime: supplierCertificationExpTime, //供应商注册证预警期 + expensiveGoodsBillWarningTime: expensiveGoodsBillWarningTime,//高值耗材发票预警期 + noMergeApplicationTypes: noMergeApplicationTypes, + instrumentUseRateWorkingDay: instrumentUseRateWorkingDay, + tdIdsOfAutobasketInsertion: tdIdsOfAutobasketInsertion, + mergeApplicationDepartArr: mergeApplicationDepartNameAndCodeArr, //自动合并申请单的科室编码和科室名称 + isEnableTousseOpRecipient: isEnableTousseOpRecipient, + isEnableTousseOpDestLocation: isEnableTousseOpDestLocation, + isEnableTousseOpSign: isEnableTousseOpSign, + isEnableTousseUnReturnWarn: isEnableTousseUnReturnWarn, + loginUserDefaultOpRecipient: loginUserDefaultOpRecipient, + quickJumpOperationTousseOp: quickJumpOperationTousseOp, + tousseOperationTimeLimit: tousseOperationTimeLimit, + allowUseWithoutOperation: allowUseWithoutOperation, + dashboardsRefreshFrequency: dashboardsRefreshFrequency, + autoSignAfterPutInStorage: autoSignAfterPutInStorage, + quickJumpGroupStorage: quickJumpGroupStorage, + noOperationTime: noOperationTime, + dashboardsQueryCycle: dashboardsQueryCycle, + urgentBroadcast: urgentBroadcast, + urgentBroadcastFrequency: urgentBroadcastFrequency, + handWrittenSignatureMode: handWrittenSignatureMode, + instrumentRepairRemindOrgUnitIds: instrumentRepairRemindOrgUnitIds, + instrumentRepairRemindOrgUnitNames: instrumentRepairRemindOrgUnitNames, + dashboardsScreenSaver: dashboardsScreenSaver, + tousseCamImgVidRetentionTime: tousseCamImgVidRetentionTime, + ftCamImgVidRetentionTime: ftCamImgVidRetentionTime, + useRecordTiSettlementDepart: useRecordTiSettlementDepart, + verifyPasswordWhenNewUser: verifyPasswordWhenNewUser, + returnExpiredDGBatchNumber: returnExpiredDGBatchNumber, + invoiceModeTousseRange: invoiceModeTousseRange, + userNoLoginDateLimit: userNoLoginDateLimit, + noOptionCleanMethodSolution: noOptionCleanMethodSolution, + deviceMaintenanceUpdateMode: deviceMaintenanceUpdateMode, + defineFormModificationMode: defineFormModificationMode, + userPasswordResetCycle: userPasswordResetCycle, + borrowRemind: borrowRemind, + borrowRemindFrequency: borrowRemindFrequency, + kardexContainerHost: kardexContainerHost, + kardexContainerPort: kardexContainerPort, + kardexContainerAddr: kardexContainerAddr, + receiptor: receiptor //自动签收发货单的签收人名字 + }, + success: function (response, options) { + var result = Ext.decode(response.responseText); + myMask.hide(); + if (result.success) { + supplyRoomStoreFirstSupplyRoom.reload(); + supplyRoomStoreSecondSupplyRoom.reload(); + supplyRoomStoreExpensiveGoods.reload(); + showResult('保存成功'); + } else { + showResult(result.message); + } + }, + failure: function (response, options) { + myMask.hide(); + var result = Ext.decode(response.responseText); + if (result && result.msg) { + showResult(result.msg); + } else { + showResult('保存失败'); + } + } + }); +} function openSelectOrgUnit(root) { var orgIds = $Id(root + 'Ids').value; var orgNames = $Id(root + 'Names').value; @@ -604,29 +1204,6 @@ dataIndex: 'id' }]); - function setRecordSequenceAndGetSupplyRoomItemsStr(store) { - setRecordSequence(store);// 设置序号 - return buildJSONStringFromStore(store); - } - function getGridData() { - $Id('supplyRoom_type_first_supplyRoom').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreFirstSupplyRoom); - // 二级供应室 - $Id('supplyRoom_type_second_supplyRoom').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreSecondSupplyRoom); - // 科室申领配置 - $Id('supplyRoom_type_apply').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreApply); - // 结算科室配置 - $Id('supplyRoom_type_settleAccount').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreSettleAccount); - - var supplyRoomStoreUseRecordToApplicationNotInvoice = Ext.getCmp("supplyRoomUseRecordToApplicationNotInvoice").getStore(); - $Id('supplyRoom_type_userecord_to_application_not_invoice').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreUseRecordToApplicationNotInvoice); - // 器械位置流转科室 - $Id('supplyRoom_type_tousse_operation').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreTousseOperation); - //回收申请单不发货科室 - $Id('supplyRoom_type_recycling_application_not_invoice').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreRecyclingApplicationNotInvoice); - //高值耗材处理科室 - $Id('supplyRoom_type_ExpensiveGoods').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreExpensiveGoods); - } - var taskGroupJsonStore = new Ext.data.SimpleStore({ fields: ['taskGroupName', 'departCode', 'departName'], url: WWWROOT + '/disinfectSystem/baseData/tousseDefinitionAction!getTaskGroupList.do', @@ -1333,7 +1910,7 @@ allowDecimals: false, emptyText: '天数', anchor: '100%', - maxValue:9999, + maxValue: 9999, allowBlank: true }] }, { @@ -1459,7 +2036,7 @@ fieldLabel: '密码重置周期(天)', id: 'userPasswordResetCycle', name: 'userPasswordResetCycle', - minValue: 1, + minValue: 0, maxValue: 9999, allowNegative: false, anchor: '100%', @@ -2287,7 +2864,7 @@ layout: 'form', labelWidth: 180, columnWidth: .25, - hidden:!sstsConfig.enableReturneeOfForeignTousseSupplier, + hidden: !sstsConfig.enableReturneeOfForeignTousseSupplier, items: [{ xtype: 'combo', fieldLabel: '显示归还接收人联系电话', @@ -2306,7 +2883,7 @@ forceSelection: true, allowBlank: true, triggerAction: 'all', - listeners:{ + listeners: { select: function (combo, record, index) { if (combo.getRawValue() == '是') { Ext.getCmp('syncReturnRecipientInfoBox').show(); @@ -2321,8 +2898,8 @@ layout: 'form', labelWidth: 180, columnWidth: .25, - id:'syncReturnRecipientInfoBox', - hidden:!sstsConfig.enableReturneeOfForeignTousseSupplier, + id: 'syncReturnRecipientInfoBox', + hidden: !sstsConfig.enableReturneeOfForeignTousseSupplier, items: [{ xtype: 'combo', fieldLabel: '归还时同步归还接收人信息', @@ -2531,8 +3108,8 @@ width: itemWidth, height: 80, labelWidth: 95, - hidden:!sstsConfig.enbaleLoadAutomaticallyIntoBasketsAfterAssembly, - items:[{ + hidden: !sstsConfig.enbaleLoadAutomaticallyIntoBasketsAfterAssembly, + items: [{ layout: 'form', labelWidth: 250, columnWidth: .99, @@ -4002,581 +4579,15 @@ { text: '保存', handler: function () { - if (Ext.getCmp('autoSignInvoice').getValue() == '是') { - setHiddenFieldsAllowBlank(false); + if (sstsConfig.enablePeriodicLoginPasswordChange) { + top.Ext.Msg.confirm('请确认', '修改后,密码重置周期将会重新计算,是否继续?', function (btn) { + if (btn == 'yes') { + saveSupplyRoomCongfig(); + } + }) } else { - setHiddenFieldsAllowBlank(true); + saveSupplyRoomCongfig(); } - - if (supplyRoomStoreFirstSupplyRoom.getCount() > 1) { - showResult('只允许设置一个一级供应室,请删除多余的科室后再保存!'); - return false; - } - - var dayStartTime = Ext.getCmp("dayStartTime").getValue(); - if (dayStartTime == "") { - showResult('一天的开始时间不能为空!'); - return false; - } - var saveImageMethod = Ext.getCmp("saveImageMethod").getValue(); - if (saveImageMethod == "") { - showResult('图片保存方式不能为空!'); - return false; - } - var invoiceOrigin = Ext.getCmp("invoiceOrigin").getValue(); - if (invoiceOrigin == "") { - showResult('发货数量依据不能为空!'); - return false; - } - var tousseDeliverOccasion = Ext.getCmp("tousseDeliverOccasion").getValue(); - if (tousseDeliverOccasion == "") { - showResult('器械包发货时间不能为空!'); - return false; - } - var printUserName = Ext.getCmp("printUserName").getValue(); - if (printUserName == "") { - showResult('配包打印用户姓名不能为空!'); - return false; - } - var autoMergeApplication = Ext.getCmp("autoMergeApplication").getValue(); - if (autoMergeApplication == "") { - showResult('是否自动合并申请单不能为空!'); - return false; - } - var noMergeApplicationTypes = null; - if (autoMergeApplication == '是') { - noMergeApplicationTypes = Ext.getCmp("noMergeApplicationTypes").getValue(); - } - var secondWashCountWorkload = Ext.getCmp("secondWashCountWorkload").getValue(); - if (secondWashCountWorkload == "") { - showResult('二次清洗是否统计工作量不能为空!'); - return false; - } - var dailyMonitoringMinute = Ext.getCmp("dailyMonitoringMinute").getValue(); - if (dailyMonitoringMinute + '' == "") { - showResult('每天例行监测灭菌完成分钟数不能为空!'); - return false; - } - var disposableGoodsWarningDate = Ext.getCmp("disposableGoodsWarningDate").getValue(); - if (disposableGoodsWarningDate == null) { - disposableGoodsWarningDate = ""; - } - var disposableGoodsExpTime = Ext.getCmp("disposableGoodsExpTime").getValue(); - if (disposableGoodsExpTime == "") { - showResult('一次性物品退货天数不能为空!'); - return false; - } - var isSecondSupplyRoomNeedRecycle = Ext.getCmp("isSecondSupplyRoomNeedRecycle").getValue(); - if (isSecondSupplyRoomNeedRecycle == "") { - showResult('二级供应室是否需要回收不能为空!'); - return false; - } - var isTousseDgMergeConvert = Ext.getCmp("isTousseDgMergeConvert").getValue(); - if (isTousseDgMergeConvert == "") { - showResult('器械包和一次性物品转换合并不能为空!'); - return false; - } - var damagedTousseAtCost = Ext.getCmp("damagedTousseAtCost").getValue(); - if (damagedTousseAtCost == "") { - showResult('报损器械计算科室成本不能为空!'); - return false; - } - var insideTousseMaterialOutCost = Ext.getCmp("insideTousseMaterialOutCost").getValue(); - if (insideTousseMaterialOutCost == "") { - showResult('包内材料扣减科室成本不能为空!'); - return false; - } - var foreignToussePrice = Ext.getCmp("foreignToussePrice").getValue(); - if (typeof (foreignToussePrice) != "number") { - showResult('外来器械包价格不能为空!'); - return false; - } - var diposablePriceFluctuation = Ext.getCmp("diposablePriceFluctuation").getValue(); - if (typeof (diposablePriceFluctuation) != "number") { - showResult('一次性物品价格浮动系数不能为空!'); - return false; - } - var toussePriceFluctuation = Ext.getCmp("toussePriceFluctuation").getValue(); - if (typeof (toussePriceFluctuation) != "number") { - showResult('器械包价格浮动系数不能为空!'); - return false; - } - var customToussePrice = Ext.getCmp("customToussePrice").getValue(); - if (typeof (customToussePrice) != "number") { - showResult('自定义器械包价格不能为空!'); - return false; - } - var idCardPrice = Ext.getCmp("idCardPrice").getValue(); - if (typeof (idCardPrice) != "number") { - showResult('标识牌价格不能为空!'); - return false; - } - var foreignTousseCleanedEntirely = Ext.getCmp("foreignTousseCleanedEntirely").getValue(); - if (foreignTousseCleanedEntirely == "") { - showResult('外来器械包是否整包清洗不能为空!'); - return false; - } - var foreignTousseNeedReview = Ext.getCmp("foreignTousseNeedReview").getRawValue(); - if (foreignTousseNeedReview == "") { - showResult('外来器械包是否审核不能为空!'); - return false; - } - var foreignTousseIsSecondRecycle = Ext.getCmp("foreignTousseIsSecondRecycle").getRawValue(); - var barcodePaperType = Ext.getCmp("barcodePaperType").getValue(); - if (barcodePaperType == "") { - showResult('外来器械包打印标签不能为空!'); - return false; - } - var expensiveGoodsPaperType = Ext.getCmp("expensiveGoodsPaperType").getValue(); - var bigPackageSterilizerType = Ext.getCmp("bigPackageSterilizerType").getValue(); - if (bigPackageSterilizerType == "") { - showResult('超大、重外来器械灭菌方式不能为空!'); - return false; - } - var isCustomTousseCleanEntirely = Ext.getCmp("isCustomTousseCleanEntirely").getValue(); - if (isCustomTousseCleanEntirely == "") { - showResult('自定义器械包是否整包清洗不能为空!'); - return false; - } - /*var afterRecyclingTousseDeliver = Ext.getCmp("afterRecyclingTousseDeliver").getValue(); - if(afterRecyclingTousseDeliver == ""){ - showResult('器械包回收后发货不能为空!'); - return false; - }*/ - var autoSignInvoice = Ext.getCmp("autoSignInvoice").getValue(); - if (autoSignInvoice == "") { - showResult('是否自动签收发货单不能为空!'); - return false; - } - var isSecondSupplyRoomAutoInvoice = Ext.getCmp("isSecondSupplyRoomAutoInvoice").getValue(); - if (isSecondSupplyRoomAutoInvoice == "") { - showResult('二级供应室是否自动发货不能为空!'); - return false; - } - var timingSignInvoiceTime = Ext.getCmp("timingSignInvoiceTime").getValue(); - - var warningTousseWhetherDelivery = Ext.getCmp("warningTousseWhetherDelivery").getValue(); - if (warningTousseWhetherDelivery == "") { - showResult('处于预警期器械包能否发货不能为空!'); - return false; - } - - var mergeTousseRuleForInvoiceBatchPrintStr = Ext.getCmp("mergeTousseRuleForInvoiceBatchPrintStr").getRawValue(); - if (mergeTousseRuleForInvoiceBatchPrintStr == "") { - showResult('合并发货单器械规则不能为空!'); - return false; - } - - var invoiceModeTousseRange = ''; - if (sstsConfig.onlyAvailableIsDisplayedOfInvoicePlanList) { - invoiceModeTousseRange = Ext.getCmp("invoiceModeTousseRange").getValue(); - } - - var kardexContainerHost = ''; - var kardexContainerPort = ''; - if (!SSTS_ContainerConnect_manager) { - kardexContainerHost = Ext.getCmp("kardexContainerHost").getValue(); - kardexContainerPort = Ext.getCmp("kardexContainerPort").getValue(); - } - - var kardexContainerAddr = ''; - if (sstsConfig.enableOperationReservationShippedToTraysOfKardexContainer) { - kardexContainerAddr = Ext.getCmp("kardexContainerAddr").getValue(); - } - - if (sstsConfig.enableExpensiveGoods) { - var supplierCertificationExpTime = Ext.getCmp("supplierCertificationExpTime").getValue(); - if (supplierCertificationExpTime == "") { - showResult('供应商注册证预警期天数不能为空!'); - return false; - } - } - if (sstsConfig.enableExpensiveGoods) { - var expensiveGoodsBillWarningTime = Ext.getCmp("expensiveGoodsBillWarningTime").getValue(); - if (expensiveGoodsBillWarningTime == "") { - showResult('高值耗材发票预警期天数不能为空!'); - return false; - } - } - - var tousseCamImgVidRetentionTime = ''; - var ftCamImgVidRetentionTime = ''; - //DGKHYY-29:时长 - if (sstsConfig.showCameraPhoto) { - tousseCamImgVidRetentionTime = Ext.getCmp("tousseCamImgVidRetentionTime").getValue(); - ftCamImgVidRetentionTime = Ext.getCmp("ftCamImgVidRetentionTime").getValue(); - if (parseInt(tousseCamImgVidRetentionTime) == 0 || parseInt(tousseCamImgVidRetentionTime) > 100000) { - showResult('器械包拍摄图片/视频保留时长不能为0或大于100000'); - return; - } - if (parseInt(ftCamImgVidRetentionTime) == 0 || parseInt(ftCamImgVidRetentionTime) > 100000) { - showResult('外来器械包拍摄图片/视频保留时长不能为0或大于100000'); - return; - } - } - - //SZSDSRMYY-130:使用记录结算科室取值范围 - var useRecordTiSettlementDepart = ''; - if (sstsConfig.enableTheSettlementDepartmentIsDepartOfPatientFunction) { - useRecordTiSettlementDepart = Ext.getCmp("useRecordTiSettlementDepart").getValue(); - } - - //ZSRY-73:添加用户时验证密码强度 - var verifyPasswordWhenNewUser = ''; - if (sstsConfig.needBeStrongPwdWhenModifyPwd) { - verifyPasswordWhenNewUser = Ext.getCmp("verifyPasswordWhenNewUser").getValue(); - } - - //GZFDZL-141:退货显示过期批次 - var returnExpiredDGBatchNumber = Ext.getCmp("returnExpiredDGBatchNumber").getValue(); - - //FSSZYY-37:停用长时间不登陆账号(天数) - var userNoLoginDateLimit = ''; - if(sstsConfig.enableDisableAccountsHaveNotLoggedInForALongTime){ - userNoLoginDateLimit = Ext.getCmp("userNoLoginDateLimit ").getValue(); - } - - //ZSWY-233:借物单弹窗提醒 - var borrowRemind = ''; - var borrowRemindFrequency = ''; - if(sstsConfig.enableCardinalityManagementOfBorrow){ - borrowRemind = Ext.getCmp("borrowRemind").getValue(); - borrowRemindFrequency = Ext.getCmp("borrowRemindFrequency").getValue(); - } - - //DGSETYY-78:无可选清洗程序处理方案 - var noOptionCleanMethodSolution = ''; - if(sstsConfig.enableAvailableWashProgramsOfTousseFunction){ - noOptionCleanMethodSolution = Ext.getCmp("noOptionCleanMethodSolution").getValue(); - } - - //GZSZYY-113:自定义设备维护记录修改权限设置 - var deviceMaintenanceUpdateMode = ''; - if(sstsConfig.isDeviceMaintenanceCus){ - deviceMaintenanceUpdateMode = Ext.getCmp("deviceMaintenanceUpdateMode").getValue(); - } - - //GZSZYY-118:自定义表单修改模式权限设置 - var defineFormModificationMode = ''; - if(!sstsConfig.closeFormDefinition){ - defineFormModificationMode = Ext.getCmp("defineFormModificationMode").getValue(); - } - - //QYSRMYY-76:密码重置周期(天) - var userPasswordResetCycle = ''; - if(sstsConfig.enablePeriodicLoginPasswordChange){ - userPasswordResetCycle = Ext.getCmp("userPasswordResetCycle").getValue(); - } - - //KSDQDYRMYY-13 - var isEnableTousseOpRecipient = '否'; - var isEnableTousseOpDestLocation = '否'; - var isEnableTousseOpSign = '否'; - var isEnableTousseUnReturnWarn = '否'; - if (sstsConfig.enableSurgicalInstrumentsManagement) { - isEnableTousseOpRecipient = Ext.getCmp("isEnableTousseOpRecipient").getValue(); - isEnableTousseOpDestLocation = Ext.getCmp("isEnableTousseOpDestLocation").getValue(); - isEnableTousseOpSign = Ext.getCmp("isEnableTousseOpSign").getValue(); - isEnableTousseUnReturnWarn = Ext.getCmp("isEnableTousseUnReturnWarn").getValue(); - } - var loginUserDefaultOpRecipient = '否'; - if (Ext.getCmp('loginUserDefaultOpRecipient')) { - loginUserDefaultOpRecipient = Ext.getCmp('loginUserDefaultOpRecipient').getValue(); - } - - var quickJumpOperationTousseOp = '无'; - if (Ext.getCmp('quickJumpOperationTousseOp')) { - quickJumpOperationTousseOp = Ext.getCmp('quickJumpOperationTousseOp').getValue(); - } - - //GDSRMYY-578:器械流转时限(小时) - var tousseOperationTimeLimit = ''; - if (sstsConfig.displayModeOfInstrumentRoomGoodsManagement == 1) { - tousseOperationTimeLimit = Ext.getCmp('tousseOperationTimeLimit').getValue(); - } - - //GDSRMYY-591:允许不流转直接使用 - var allowUseWithoutOperation = ''; - if (sstsConfig.checkTousseLocatedInOperatingRoomWhenAddUseRecord) { - allowUseWithoutOperation = Ext.getCmp('allowUseWithoutOperation').getValue(); - } - - var autoSignAfterPutInStorage = '否'; - if (sstsConfig.enableWarehousePositionModule) { - autoSignAfterPutInStorage = Ext.getCmp("autoSignAfterPutInStorage").getValue(); - } - - var quickJumpGroupStorage = '库存查看'; - if (Ext.getCmp('quickJumpGroupStorage')) { - quickJumpGroupStorage = Ext.getCmp('quickJumpGroupStorage').getValue(); - } - - if (quickJumpGroupStorage == '') { - showResult('快速跳转分组不能为空!'); - return false; - } - - var foreignTousseAppEndTime = Ext.getCmp("foreignTousseAppEndTime").getValue(); - var isFtOnlyImplantConvert = Ext.getCmp("isFtOnlyImplantConvert").getValue(); - var pdaHandoverSignature = ''; - if (sstsConfig.enableReturnHandoverOfForeignTousseFunction) { - pdaHandoverSignature = Ext.getCmp("pdaHandoverSignature").getValue(); - } - //NFYY-90:更改病人信息是否记录到备注 - var saveFtaModPatientInfoRemark = Ext.getCmp("saveFtaModPatientInfoRemark").getValue(); - //DGZYY-234:新增字段“外来器械包最大重量(kg)” - var ftMaxWeight = ''; - if (sstsConfig.foreignTousseAddWeight) { - ftMaxWeight = Ext.getCmp("ftMaxWeight").getValue(); - } - //ZSYY-429:新增同步归还接收人信息和显示归还接收人联系电话 - var displayRecipientPhoneNumber = ''; - var syncReturnRecipientInfo = ''; - if(sstsConfig.enableReturneeOfForeignTousseSupplier){ - displayRecipientPhoneNumber = Ext.getCmp("displayRecipientPhoneNumber").getValue(); - syncReturnRecipientInfo = Ext.getCmp("syncReturnRecipientInfo").getValue(); - } - var unitName = Ext.getCmp("unitName").getValue(); - var basketLoadeTousseAmount = Ext.getCmp("basketLoadeTousseAmount").getValue(); - var customTousseDefaultTaskGroup = Ext.getCmp("customTousseDefaultTaskGroup").getValue(); - var ctDefaultPackageType = Ext.getCmp("ctDefaultPackageType").getValue();//自定义器械包默认类型 - var customTousseNeedReview = Ext.getCmp("customTousseNeedReview").getValue();//自定义器械包是否审核 - var ctDefaultSterilingMethod = Ext.getCmp("ctDefaultSterilingMethod").getValue();//自定义器械包默认灭菌程序 - var ctBarcodePaperType = Ext.getCmp("ctBarcodePaperType").getValue();//自定义器械包打印标签 - var ctPrintOrgSource = Ext.getCmp("ctPrintOrgSource").getValue();//自定义器械包打印科室来源 - // var customTousseNeedRecycle = Ext.getCmp("customTousseNeedRecycle").getValue();//自定义器械包是否回收 - var fTHandleDepartAndTaskGroup = Ext.getCmp("fTHandleDepartAndTaskGroup").getValue(); - var ftDefaultSterilingMethod = Ext.getCmp("ftDefaultSterilingMethod").getValue(); - - var ftPrintOrgSource = Ext.getCmp("ftPrintOrgSource").getValue(); - var ftPrintAmount = Ext.getCmp("ftPrintAmount").getValue(); - var ftPrintAmountSource = Ext.getCmp("ftPrintAmountSource").getValue(); - //外来器械默认申请科室 - var ftApplyDepartment = ''; - var ftApplyDepartmentCode = ''; - if (Ext.getCmp("ftApplyDepartmentCombo").getRawValue()) { - ftApplyDepartment = Ext.getCmp("ftApplyDepartment").getValue(); - ftApplyDepartmentCode = Ext.getCmp("ftApplyDepartmentCode").getValue(); - } - - var instrumentUseRateWorkingDay = ''; - - if (sstsConfig.enableInstrumentLifeCycleTraceabilityManagement && !SSTS_InstrumentInstanceParamsConfig) { - instrumentUseRateWorkingDay = Ext.getCmp("instrumentUseRateWorkingDay").getValue(); - if (instrumentUseRateWorkingDay == '' || instrumentUseRateWorkingDay == 0) { - showResult('器械使用率工作天数系数不能为空或0!'); - return false; - } - } - - //GDSKQYY-10:装配后不自动加载到灭菌篮筐器械包 - var tdIdsOfAutobasketInsertion = ''; - if(sstsConfig.enbaleLoadAutomaticallyIntoBasketsAfterAssembly){ - tdIdsOfAutobasketInsertion = Ext.getCmp("tdIdsOfAutobasketInsertion").getValue(); - } - - var mergeApplicationDepartNameAndCodeArr = ""; - if (autoMergeApplication == "否" || autoMergeApplication == "") { - mergeApplicationDepartNameAndCodeArr = ""; - } else { - mergeApplicationDepartNameAndCodeArr = Ext.getCmp("autoMergeApplicationDepartsCodes").getValue(); - } - - var packingReviewTime = Ext.getCmp("packingReviewTime").getValue(); - var reviewSterilizationTime = Ext.getCmp("reviewSterilizationTime").getValue(); - var ftReleaseBasketAfterReturn = Ext.getCmp("ftReleaseBasketAfterReturn").getValue(); - var ftDefaultPackageType = Ext.getCmp("ftDefaultPackageType").getValue(); - var isORAppFormMerge = Ext.getCmp("isORAppFormMerge").getValue(); - var isDgConvertApplication = Ext.getCmp("isDgConvertApplication").getValue(); - var saveImagePath = Ext.getCmp("saveImagePath").getValue(); - var mergeTousseRuleForInvoiceBatchPrint = Ext.getCmp("mergeTousseRuleForInvoiceBatchPrint").getValue(); - var receiptor = Ext.getCmp("receiptor").getValue(); - var urgentLevelId = Ext.getCmp("urgentLevelId").getValue(); - - var dashboardsRefreshFrequency = '' - var dashboardsScreenSaver = '' - var noOperationTime = '' - var dashboardsQueryCycle = ''; - var urgentBroadcast = '否'; - var urgentBroadcastFrequency = 30; - - if (!SSTS_RealTimeDashboards) { - dashboardsRefreshFrequency = Ext.getCmp("dashboardsRefreshFrequency").getValue(); - dashboardsScreenSaver = Ext.getCmp("dashboardsScreenSaver").getValue(); - noOperationTime = Ext.getCmp("noOperationTime").getValue(); - dashboardsQueryCycle = Ext.getCmp("dashboardsQueryCycle").getValue(); - //ZJYY-145:新增字段 - urgentBroadcast = Ext.getCmp("urgentBroadcast").getValue(); - urgentBroadcastFrequency = Ext.getCmp("urgentBroadcastFrequency").getValue(); - } - - var handWrittenSignatureMode = '只允许手写签名'; - if (!SSTS_WriteSign_manager) { - handWrittenSignatureMode = Ext.getCmp("handWrittenSignatureMode").getValue(); - } - - var instrumentRepairRemindOrgUnitNames = ''; - var instrumentRepairRemindOrgUnitIds = ''; - - if (sstsConfig.enableInstrumentRepairManagement && sstsConfig.InstrumentRepairManagementVersion == 2) { - instrumentRepairRemindOrgUnitNames = Ext.getCmp("instrumentRepairRemindOrgUnitNames").getValue(); - instrumentRepairRemindOrgUnitIds = Ext.getCmp("instrumentRepairRemindOrgUnitIds").getValue(); - } - - - var myMask = new Ext.LoadMask(Ext.getBody(), { msg: "正在保存..." }); - myMask.show(); - - getGridData(); - var supplyRoom_type_first_supplyRoom = Ext.getCmp('supplyRoom_type_first_supplyRoom').getValue(); - var supplyRoom_type_second_supplyRoom = Ext.getCmp('supplyRoom_type_second_supplyRoom').getValue(); - var supplyRoom_type_apply = Ext.getCmp('supplyRoom_type_apply').getValue(); - var supplyRoom_type_settleAccount = Ext.getCmp('supplyRoom_type_settleAccount').getValue(); - var supplyRoom_type_userecord_to_application_not_invoice = Ext.getCmp('supplyRoom_type_userecord_to_application_not_invoice').getValue(); - var supplyRoom_type_tousse_operation = Ext.getCmp('supplyRoom_type_tousse_operation').getValue(); - var supplyRoom_type_recycling_application_not_invoice = Ext.getCmp('supplyRoom_type_recycling_application_not_invoice').getValue(); - var supplyRoom_type_ExpensiveGoods = Ext.getCmp('supplyRoom_type_ExpensiveGoods').getValue(); - Ext.Ajax.request({ - url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!saveSupplyRoomCongfig.do', - method: 'POST', - params: { - supplyRoom_type_first_supplyRoom: supplyRoom_type_first_supplyRoom, - supplyRoom_type_second_supplyRoom: supplyRoom_type_second_supplyRoom, - supplyRoom_type_apply: supplyRoom_type_apply, - supplyRoom_type_settleAccount: supplyRoom_type_settleAccount, - supplyRoom_type_userecord_to_application_not_invoice: supplyRoom_type_userecord_to_application_not_invoice, - supplyRoom_type_tousse_operation: supplyRoom_type_tousse_operation, - supplyRoom_type_recycling_application_not_invoice: supplyRoom_type_recycling_application_not_invoice, - supplyRoom_type_ExpensiveGoods: supplyRoom_type_ExpensiveGoods, //高值耗材的grid数据 - saveImageMethod: saveImageMethod,// - saveImagePath: saveImagePath,// - secondWashCountWorkload: secondWashCountWorkload,// - //afterRecyclingTousseDeliver:afterRecyclingTousseDeliver,// - autoMergeApplication: autoMergeApplication,// - autoSignInvoice: autoSignInvoice,// - bigPackageSterilizerType: bigPackageSterilizerType,// - barcodePaperType: barcodePaperType,// - urgentLevelId: urgentLevelId, - expensiveGoodsPaperType: expensiveGoodsPaperType,// - basketLoadeTousseAmount: basketLoadeTousseAmount,// - customTousseDefaultTaskGroup: customTousseDefaultTaskGroup,// - ctDefaultPackageType: ctDefaultPackageType,//自定义器械包默认类型 - customTousseNeedReview: customTousseNeedReview,//自定义器械包是否审核 - ctDefaultSterilingMethod: ctDefaultSterilingMethod,//自定义器械包默认灭菌程序 - ctBarcodePaperType: ctBarcodePaperType,//自定义器械包默认打印标签 - ctPrintOrgSource: ctPrintOrgSource,//自定义器械包打印科室来源 - // customTousseNeedRecycle : customTousseNeedRecycle,//自定义器械包是否回收 - customToussePrice: customToussePrice,// - dayStartTime: dayStartTime,// - packingReviewTime: packingReviewTime, - reviewSterilizationTime: reviewSterilizationTime, - disposableGoodsWarningDate: disposableGoodsWarningDate, - disposableGoodsExpTime: disposableGoodsExpTime,// - fTHandleDepartAndTaskGroup: fTHandleDepartAndTaskGroup, - diposablePriceFluctuation: diposablePriceFluctuation,// - dailyMonitoringMinute: dailyMonitoringMinute,// - foreignToussePrice: foreignToussePrice,// - foreignTousseCleanedEntirely: foreignTousseCleanedEntirely,// - ftReleaseBasketAfterReturn: ftReleaseBasketAfterReturn, - foreignTousseNeedReview: foreignTousseNeedReview,// - foreignTousseIsSecondRecycle: foreignTousseIsSecondRecycle, - foreignTousseAppEndTime: foreignTousseAppEndTime, - isFtOnlyImplantConvert: isFtOnlyImplantConvert, - pdaHandoverSignature: pdaHandoverSignature, - saveFtaModPatientInfoRemark: saveFtaModPatientInfoRemark, - ftMaxWeight: ftMaxWeight, - displayRecipientPhoneNumber: displayRecipientPhoneNumber, - syncReturnRecipientInfo: syncReturnRecipientInfo, - ftDefaultSterilingMethod: ftDefaultSterilingMethod,// - ftPrintOrgSource: ftPrintOrgSource, - ftPrintAmount: ftPrintAmount, - ftPrintAmountSource: ftPrintAmountSource, - ftApplyDepartment: ftApplyDepartment,// - ftApplyDepartmentCode: ftApplyDepartmentCode,// - ftDefaultPackageType: ftDefaultPackageType,// - idCardPrice: idCardPrice,// - invoiceOrigin: invoiceOrigin,// - tousseDeliverOccasion: tousseDeliverOccasion, - isORAppFormMerge: isORAppFormMerge,// - isDgConvertApplication: isDgConvertApplication,// - isTousseDgMergeConvert: isTousseDgMergeConvert,// - damagedTousseAtCost: damagedTousseAtCost, - insideTousseMaterialOutCost: insideTousseMaterialOutCost, - isCustomTousseCleanEntirely: isCustomTousseCleanEntirely,// - isSecondSupplyRoomNeedRecycle: isSecondSupplyRoomNeedRecycle,// - isSecondSupplyRoomAutoInvoice: isSecondSupplyRoomAutoInvoice,// - toussePriceFluctuation: toussePriceFluctuation,// - printUserName: printUserName,// - mergeTousseRuleForInvoiceBatchPrint: mergeTousseRuleForInvoiceBatchPrint,// - timingSignInvoiceTime: timingSignInvoiceTime,// - warningTousseWhetherDelivery: warningTousseWhetherDelivery,// - unitName: unitName, - supplierCertificationExpTime: supplierCertificationExpTime, //供应商注册证预警期 - expensiveGoodsBillWarningTime: expensiveGoodsBillWarningTime,//高值耗材发票预警期 - noMergeApplicationTypes: noMergeApplicationTypes, - instrumentUseRateWorkingDay: instrumentUseRateWorkingDay, - tdIdsOfAutobasketInsertion:tdIdsOfAutobasketInsertion, - mergeApplicationDepartArr: mergeApplicationDepartNameAndCodeArr, //自动合并申请单的科室编码和科室名称 - isEnableTousseOpRecipient: isEnableTousseOpRecipient, - isEnableTousseOpDestLocation: isEnableTousseOpDestLocation, - isEnableTousseOpSign: isEnableTousseOpSign, - isEnableTousseUnReturnWarn: isEnableTousseUnReturnWarn, - loginUserDefaultOpRecipient: loginUserDefaultOpRecipient, - quickJumpOperationTousseOp: quickJumpOperationTousseOp, - tousseOperationTimeLimit: tousseOperationTimeLimit, - allowUseWithoutOperation: allowUseWithoutOperation, - dashboardsRefreshFrequency: dashboardsRefreshFrequency, - autoSignAfterPutInStorage: autoSignAfterPutInStorage, - quickJumpGroupStorage: quickJumpGroupStorage, - noOperationTime: noOperationTime, - dashboardsQueryCycle: dashboardsQueryCycle, - urgentBroadcast: urgentBroadcast, - urgentBroadcastFrequency: urgentBroadcastFrequency, - handWrittenSignatureMode: handWrittenSignatureMode, - instrumentRepairRemindOrgUnitIds: instrumentRepairRemindOrgUnitIds, - instrumentRepairRemindOrgUnitNames: instrumentRepairRemindOrgUnitNames, - dashboardsScreenSaver: dashboardsScreenSaver, - tousseCamImgVidRetentionTime: tousseCamImgVidRetentionTime, - ftCamImgVidRetentionTime: ftCamImgVidRetentionTime, - useRecordTiSettlementDepart: useRecordTiSettlementDepart, - verifyPasswordWhenNewUser:verifyPasswordWhenNewUser, - returnExpiredDGBatchNumber:returnExpiredDGBatchNumber, - invoiceModeTousseRange: invoiceModeTousseRange, - userNoLoginDateLimit :userNoLoginDateLimit , - noOptionCleanMethodSolution:noOptionCleanMethodSolution, - deviceMaintenanceUpdateMode:deviceMaintenanceUpdateMode, - defineFormModificationMode:defineFormModificationMode, - userPasswordResetCycle:userPasswordResetCycle, - borrowRemind: borrowRemind, - borrowRemindFrequency: borrowRemindFrequency, - kardexContainerHost: kardexContainerHost, - kardexContainerPort: kardexContainerPort, - kardexContainerAddr: kardexContainerAddr, - receiptor: receiptor //自动签收发货单的签收人名字 - }, - success: function (response, options) { - var result = Ext.decode(response.responseText); - myMask.hide(); - if (result.success) { - supplyRoomStoreFirstSupplyRoom.reload(); - supplyRoomStoreSecondSupplyRoom.reload(); - supplyRoomStoreExpensiveGoods.reload(); - showResult('保存成功'); - } else { - showResult(result.message); - } - }, - failure: function (response, options) { - myMask.hide(); - var result = Ext.decode(response.responseText); - if (result && result.msg) { - showResult(result.msg); - } else { - showResult('保存失败'); - } - } - }); - } } ] @@ -4647,11 +4658,11 @@ //GDSKQYY-10:装配后不自动加载到灭菌篮筐器械包 if (sstsConfig.enbaleLoadAutomaticallyIntoBasketsAfterAssembly) { var autobasketInsertionConfigInfos = supplyRoomConfig.autobasketInsertionConfigInfos; - if(autobasketInsertionConfigInfos !== ''){ + if (autobasketInsertionConfigInfos !== '') { var obj = JSON.parse(autobasketInsertionConfigInfos); var idArr = []; var nameArr = []; - for(var k=0;k