// 发票类型维护
import React from 'react';
//import '../../assets/css/system.css';
import store from '../../store';
import {
  Form, Input, Row, Col, Button, Pagination, Spin, Select, Switch, message, Transfer, Modal
} from 'antd';
import { $http } from '../../containers/config/https';
const { Option } = Select;
const FormItem = Form.Item;

const formItemLayout = {    // label 和input宽度
  labelCol: { span: 12 },
  wrapperCol: { span: 12 },
};
const formItemLayoutC = {    // label 和input宽度
  labelCol: { span: 18 },
  wrapperCol: { span: 6 },
};
class HBOPSysConfigs extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      userInfo: {},
      // 主菜单列表数据
      data: [],
      // 抽屉显示
      visible: false,
      // 是否显示loading
      showLoading: true,
      // 表格loading
      loading: false,
      ///穿梭框数据
      admReasonList: [],
      orderSubCatAll: [],
      orderSubCatChose: [],
      locAll: [],
      locChose: [],
      groupAll: [],
      groupChose: [],
      //输出的参数说明
      HospID: '',
      HospDesc: '',						//;医院		
      IfOrdSubCat: false,						//;是否按照医嘱子类拆分发票 Y 是,N 否 
      IfRecLoc: false,						//;是否按照接收科室拆分发票 Y 是,N 否
      IfPresc: false,	 						//;是否按照处方拆分发票 Y 是,N 否
      IfAdm: false,	 						//;是否按照就诊拆分发票 Y 是,N 否
      PrintCount: '',	 					//;发票打印明细数量 0表示不打印,其他数字表示打印数量,和拆票有关联,不单纯指打印数量
      IfPrintHerbalDetail: false,				//;中草药是否打印明细 Y 是,N 否
      HerbalDesc: '',						//;中草药描述 打印中草药费
      RoundRole: '',						//;现金舍入规则 0 不舍入,5 四舍五入,6 五舍六入
      CodeVersion: '',						//;代码版本 记录当前医院调用的代码版本
      AccConnInsu: false,	 					//;账户支付是否连接医保 Y 是,N 否
      CashierConnInsu: false,					//;门诊收费是否连接医保 Y 是,N 否 
      OPSearchFlag: '',					//;门诊就诊检索条件 0 按日期,1 按时间
      OPSearchData: '',					//;门诊检索值 根据上一个条件判断是日期还是时间
      EPSearchFlag: '',					//;急诊就诊检索条件 0 按日期,1 按时间
      EPSearchData: '',					//;急诊检索值 根据上一个条件判断是日期还是时间
      RefAuthFlag: false,						//;退费是否需要审批 0 不需要,1 需要
      RefAuthMode: '',					    //;退费审核模式 判断上一个是否需要审批,停医嘱也是一种审批----1 门诊审核后退费,2 医生停医嘱退费,3 医生停医嘱后再门诊审核退费----1 门诊审核后退费：已发药品退药后无需审核退费,未发药品需要审核；治疗、检查、检验类项目执行后需撤销执行且审核后退费(无先后顺序),其他医嘱均需审核退费;,2 医生停医嘱退费：已发药品退药后无需审核退费,未发需停医嘱退费；其他项目均需停医嘱无需审核退费,3、医生停医嘱后再门诊审核退费：已发药品退药后需审核退费,未发需停医嘱再审核退费；其他项目均需停医嘱再审核退费
      AvoidOrdSubCat: '',				    //;免审核医嘱子类 #号分割 #1#2#3#
      IfLimitSkintestCharge: false, 		    //;是否限制皮试医嘱收费 Y 是,N 否  原液则都能收费,皮试液需判断是否闲置,
      RefAuthTimeOut: '',				    //;退费审核超时时间 单位为分
      ChargeType: '',					    //;结算类型 0 按费别接收医嘱,1 接收全部医嘱
      PrescLimit: '',					    //;药物医嘱限制 0 无限制,1 按处方限制,2 按开单科室限制,3 按接收科室限制
      IfRegInv: false,						//;集中打印是否分开挂号收费发票 Y 是,N 否
      IfOneVSMany: false, 					//;集中打印发票1对多 Y 是,N 否（1对多是指相同一个支付方式才可以打印在同一张发票上）
      IfMergeByInvDate: false,				//;集中打印发票按发票日期合并 Y 是,N 否
      IfRefAuthFlagExceptCashier: false,	    //;收费员补录医嘱是否需要审核退费 Y 是,N 否
      SuperGroup: '',					    //;超级权限安全组(针对计费操作) #号分割 #1#2#3# 
      SuperLoc: '', 						//;超级权限科室(针对计费操作、退费审核) #号分割 #1#2#3#   HB_Loc
      GuidePrint: '',					    //;导诊单打印 0 收费处,1 医生站 
      EPStayChargeMode: '', 				//;急诊留观收费模式 0 门诊收费模式,1 住院押金模式
      AgeMode: '', 						//;年龄按就诊日期还是按实际日期 0 就诊日期,1 实际日期
      AdmReason: '', 					    //;默认费别
      IfSupplementOrd: false, 				//;收费界面是否可以补录医嘱
      IfAllAdmPay: false,					    //;是否多次就诊一次结算
      IfAccManagement: false,				    //;是否使用公用账户
      SumMationModel: '',				    //;计算总和模式 0，先约再求和，1，求和再约
      ManagementPassWord: '',              //账户默认密码
      PriceDecimalNum: '',                 // 计费价格小数位数
      DefaultInputBox: '',                  // 界面默认光标在卡号/登记号上
      Discountlevel: '',                   /// 系统按折扣(优惠)高低计算
      AccPayVerification: '',              /// 卡消息校验方式
      ifAccPrint:'',                      ///预交金打印发票 
      languageTable1: {}, // 国际化Table1
      languageTable2: {}, // 国际化Table2
      languageData: {}, // 国际化语言包
      language: {},   // 国际化语言
      languageCode: JSON.parse(window.sessionStorage.userData).language, // 国际化语言标识
    };

  }

  componentWillMount() {
    let sessionInfo = window.sessionStorage.userData ? JSON.parse(window.sessionStorage.userData) : {};
    this.setState({
      HospID: sessionInfo.hospID,
    })
  }



  //生命周期函数自动加载
  componentDidMount() {
    this.tableList();
    this.handleQuery();
    this.handleHospQuery();
    this.handleAdmReason();
    this.setState({
      showLoading: false
    })
  }
  componentWillUnmount() {
    this.setState = (state, callback) => { return; };
  }

  //条件元素的改变
  // 查询条件 --- 安全组，打印模板，集中打印模板6
  onChangeHospDr = (value) => {
    this.setState({ HospID: value }, () => {
      this.handleQuery();
      this.handleAdmReason();
    }
    );
  }

  ///穿梭框数据的改变
  //////AvoidOrdSubCat;免审核医嘱子类 #号分割 #1#2#3#
  /////;超级权限安全组(针对计费操作) #号分割 #1#2#3# 
  ///超级权限科室(针对计费操作、退费审核) #号分割 #1#2#3#   HB_Loc
  onChangeAvoidOrdSubCat = (targetKeys) => {
    this.setState({ orderSubCatChose: targetKeys });
  }
  onChangeSuperGroup = (targetKeys) => {
    this.setState({ groupChose: targetKeys });
  }
  onChangeSuperLoc = (targetKeys) => {
    this.setState({ locChose: targetKeys });
  }

  // 重置userInfo
  resetUserInfo() {
    this.setState({ userInfo: {} })
  }


  // 获取主列表columns
  tableList = () => {
    var data = {
      params: [{
        "reactCode": ["HBOPSysConfig"],
        "compontName": "HBOPSysConfig",
        "type": "C"
      }]
    }
    console.log(1, data)
    $http.post('urlS', this, {
      code: '01040073',
      data: data,
      success: function (res) {
        console.log("resdtyui",res);
        if (+res.errorCode === 0) {
          let resC = res.result.C
          let { languageCode } = this.state
          for (var i = 0; i < resC.length; i++) {
            resC[i].key = i;
          }
          if (languageCode === "EN") {
            resC.map((item, i) => {
              item.title = item.enDescripts
            })
          }

          if (languageCode === "CN") {
            resC.map((item, i) => {
              item.title = item.descripts
            })
          }

          this.setState({

            languageTable1: res.result.B || {},  // 国际化Table1
            languageTable2: res.result.C || {},  // 国际化Table2
            languageData: res.result.language || {},  // 国际化语言包
          }, () => {
            this.LanCNEN(this.state.languageCode)
          })
        }
      }
    })
  }

  LanCNEN = (code) => {
    let { languageData } = this.state
    this.setState({
      language: languageData[code]
    }, () => {
      console.log(this.state.language)
    })
  }





  handleHospQuery = () => {
    let data = {}
    let sessionInfo = window.sessionStorage.userData ? JSON.parse(window.sessionStorage.userData) : {};
    data = {
      params: [{
        hospitalId: "",
        logonGroupID: sessionInfo.groupID,
        logonHospID: sessionInfo.hospID,
        hospRequired: "1",
      }]
    }
    $http.post('urlS', this, {
      code: '01040001',
      data: data,
      success: function (res) {
        if (+res.errorCode === 0 && res.depDoctor) {
          let tempList = [];
          for (var i = 0; i < res.depDoctor.length; i++) {
            tempList.push(<Option key={res.depDoctor[i].id}>{res.depDoctor[i].descripts}</Option>)
          }
          this.setState({
            hospList: tempList
          })
        }
      }
    })
  }



  handleAdmReason = () => {
    let { HospID } = this.state
    let data = {}
    data = {
      params: [{
        hospID: HospID,
      }]
    }
    $http.post('urlS', this, {
      code: '05100094',
      data: data,
      success: function (res) {
        if (+res.errorCode === 0 && res.dataArr) {
          let tempList = [];
          for (var i = 0; i < res.dataArr.length; i++) {
            tempList.push(<Option key={res.dataArr[i].id}>{res.dataArr[i].descripts}</Option>)
          }
          this.setState({
            admReasonList: tempList
          })
        }
      }
    })
  }

  onChangeHospID = (value) => {
    this.setState({ HospID: value }, () => { this.handleQuery(); }
    );
  }

  onChangeHospDesc = (e) => {
    this.setState({ HospDesc: e.target.value }
    );
  }

  onChangeIfOrdSubCat = (checked) => {
    this.setState({ IfOrdSubCat: checked });
  }

  onChangeIfRecLoc = (checked) => {
    this.setState({ IfRecLoc: checked });
  }

  onChangeIfPresc = (checked) => {
    this.setState({ IfPresc: checked });
  }
  onChangeIfAdm = (checked) => {
    this.setState({ IfAdm: checked });
  }



  ///12
  onChangePrintCount = (e) => {
    this.setState({ PrintCount: e.target.value }
    );
  }
  onChangeIfPrintHerbalDetail = (checked) => {
    this.setState({ IfPrintHerbalDetail: checked });
  }
  onChangeHerbalDesc = (e) => {
    this.setState({ HerbalDesc: e.target.value }
    );
  }
  onChangeRoundRole = (e) => {
    this.setState({ RoundRole: e.target.value }
    );
  }

  onChangeCodeVersion = (e) => {
    this.setState({ CodeVersion: e.target.value }
    );
  }

  onChangeAccConnInsu = (checked) => {
    this.setState({ AccConnInsu: checked });
  }



  ///18
  onChangeCashierConnInsu = (checked) => {
    this.setState({ CashierConnInsu: checked });
  }
  onChangeOPSearchFlag = (value) => {
    this.setState({ OPSearchFlag: value });
  }
  onChangeOPSearchData = (e) => {
    this.setState({ OPSearchData: e.target.value }
    );
  }
  onChangeEPSearchFlag = (value) => {
    this.setState({ EPSearchFlag: value });
  }
  onChangeEPSearchData = (e) => {
    this.setState({ EPSearchData: e.target.value }
    );
  }
  onChangeRefAuthFlag = (checked) => {
    this.setState({ RefAuthFlag: checked });
  }

  ///24
  onChangeRefAuthMode = (value) => {
    this.setState({ RefAuthMode: value });
  }

  onChangeRefAuthMode = (value) => {
    this.setState({ RefAuthMode: value });
  }
  onChangeIfLimitSkintestCharge = (checked) => {
    this.setState({ IfLimitSkintestCharge: checked });
  }

  onChangeRefAuthTimeOut = (e) => {
    this.setState({ RefAuthTimeOut: e.target.value }
    );
  }
  onChangeChargeType = (value) => {
    this.setState({ ChargeType: value });
  }
  onChangePrescLimit = (value) => {
    this.setState({ PrescLimit: value });
  }

  ///30
  onChangeIfRegInv = (checked) => {
    this.setState({ IfRegInv: checked });
  }
  onChangeIfOneVSMany = (checked) => {
    this.setState({ IfOneVSMany: checked });
  }
  onChangeIfMergeByInvDate = (checked) => {
    this.setState({ IfMergeByInvDate: checked });
  }
  onChangeIfRefAuthFlagExceptCashier = (checked) => {
    this.setState({ IfRefAuthFlagExceptCashier: checked });
  }



  ///38
  onChangeGuidePrint = (value) => {
    this.setState({ GuidePrint: value });
  }
  onChangeEPStayChargeMode = (value) => {
    this.setState({ EPStayChargeMode: value });
  }
  onChangeAgeMode = (value) => {
    this.setState({ AgeMode: value });
  }
  onChangeAdmReason = (value) => {
    this.setState({ AdmReason: value });
  }

  onChangeIfSupplementOrd = (checked) => {
    this.setState({ IfSupplementOrd: checked });
  }
  onChangeIfAllAdmPay = (checked) => {
    this.setState({ IfAllAdmPay: checked });
  }
  onChangeIfAccManagement = (checked) => {
    this.setState({ IfAccManagement: checked });
  }
  onChangeSumMationModel = (value) => {
    this.setState({ SumMationModel: value });
  }
  onChangeManagementPassWord = (e) => {
    this.setState({ ManagementPassWord: e.target.value });
  }
  onChangePriceDecimalNum = (e) => {
    this.setState({ PriceDecimalNum: e.target.value });
  }
  ///新增字段
  onChangeDefaultInputBox = (value) => {
    this.setState({ DefaultInputBox: value });
  }
  onChangeDiscountlevel = (value) => {
    this.setState({ Discountlevel: value });
  }
  onChangeAccPayVerification = (e) => {
    this.setState({ AccPayVerification: e.target.value });
  }


 ///30
 onChangeifAccPrint = (checked) => {
  this.setState({ ifAccPrint: checked });
}
  // 查询
  handleQuery = () => {
    let { HospID } = this.state;
    let data = {}
    data = {
      params: [{
        hospID: HospID
      }]
    }
    $http.post('urlS', this, {
      code: '05100091',
      data: data,
      success: function (res) {
        if (+res.errorCode === 0) {
          //trans有3个
          let orderSubCatAll = res.ordSubCatTransObj.orderSubCatData
          let orderSubCatChose = res.ordSubCatTransObj.ordSubCatIDChoseArr
          let locAll = res.locTransObj.loc
          let locChose = res.locTransObj.locIDChoseArr
          let groupAll = res.groupTransObj.group
          let groupChose = res.groupTransObj.groupIDChoseArr
          this.setState({
            orderSubCatAll: orderSubCatAll,
            orderSubCatChose: orderSubCatChose,
            locAll: locAll,
            locChose: locChose,
            groupAll: groupAll,
            groupChose: groupChose
          })
          ///
          if (res.ID) {
            let HospID = ""
            if (res.HospDr !== "") { HospID = res.HospDr + "" }

            let HospDesc = ""
            if (res.HospDesc !== "") { HospDesc = res.HospDesc + "" }

            let IfOrdSubCat = false
            if (res.IfOrdSubCat == "Y") { IfOrdSubCat = true }

            let IfRecLoc = false
            if (res.IfRecLoc == "Y") { IfRecLoc = true }

            let IfPresc = false
            if (res.IfPresc == "Y") { IfPresc = true }

            let IfAdm = false
            if (res.IfAdm == "Y") { IfAdm = true }


            let PrintCount = ""

            if (res.PrintCount !== "") { PrintCount = res.PrintCount + "" }

            let IfPrintHerbalDetail = false
            if (res.IfPrintHerbalDetail == "Y") { IfPrintHerbalDetail = true }

            let HerbalDesc = ""
            if (res.HerbalDesc !== "") { HerbalDesc = res.HerbalDesc + "" }

            let RoundRole = ""
            if (res.RoundRole !== "") { RoundRole = res.RoundRole + "" }

            //10





            let CodeVersion = ""
            if (res.CodeVersion !== "") { CodeVersion = res.CodeVersion + "" }

            let AccConnInsu = false
            if (res.AccConnInsu == "Y") { AccConnInsu = true }

            let CashierConnInsu = false
            if (res.CashierConnInsu == "Y") { CashierConnInsu = true }

            let OPSearchFlag = ""
            if (res.OPSearchFlag !== "") { OPSearchFlag = res.OPSearchFlag + "" }

            let OPSearchData = ""
            if (res.OPSearchData !== "") { OPSearchData = res.OPSearchData + "" }

            let EPSearchFlag = ""
            if (res.EPSearchFlag !== "") { EPSearchFlag = res.EPSearchFlag + "" }
            //16




            let EPSearchData = ""
            if (res.EPSearchData !== "") { EPSearchData = res.EPSearchData + "" }

            let RefAuthFlag = false
            if (res.RefAuthFlag == "1") { RefAuthFlag = true }

            let RefAuthMode = ""
            if (res.RefAuthMode !== "") { RefAuthMode = res.RefAuthMode + "" }

            let IfLimitSkintestCharge = false
            if (res.IfLimitSkintestCharge == "Y") { IfLimitSkintestCharge = true }

            let RefAuthTimeOut = ""
            if (res.RefAuthTimeOut !== "") { RefAuthTimeOut = res.RefAuthTimeOut + "" }

            let ChargeType = ""
            if (res.ChargeType !== "") { ChargeType = res.ChargeType + "" }
            //22





            let PrescLimit = ""
            if (res.PrescLimit !== "") { PrescLimit = res.PrescLimit + "" }

            let IfRegInv = false
            if (res.IfRegInv == "Y") { IfRegInv = true }

            let IfOneVSMany = false
            if (res.IfOneVSMany == "Y") { IfOneVSMany = true }

            let IfMergeByInvDate = false
            if (res.IfMergeByInvDate == "Y") { IfMergeByInvDate = true }

            let IfRefAuthFlagExceptCashier = false
            if (res.IfRefAuthFlagExceptCashier == "Y") { IfRefAuthFlagExceptCashier = true }

            let GuidePrint = ""
            if (res.GuidePrint !== "") { GuidePrint = res.GuidePrint + "" }

            //28




            let EPStayChargeMode = ""
            if (res.EPStayChargeMode !== "") { EPStayChargeMode = res.EPStayChargeMode + "" }

            let AgeMode = ""
            if (res.AgeMode !== "") { AgeMode = res.AgeMode + "" }

            let AdmReason = ""
            if (res.AdmReason !== "") { AdmReason = res.AdmReason + "" }

            let IfSupplementOrd = false
            if (res.IfSupplementOrd == "Y") { IfSupplementOrd = true }

            let IfAllAdmPay = false
            if (res.IfAllAdmPay == "Y") { IfAllAdmPay = true }

            let IfAccManagement = false
            if (res.IfAccManagement == "Y") { IfAccManagement = true }

            let SumMationModel = ""
            if (res.SumMationModel !== "") { SumMationModel = res.SumMationModel + "" }
            let ManagementPassWord = ""
            if (res.ManagementPassWord !== "") { ManagementPassWord = res.ManagementPassWord + "" }
            let PriceDecimalNum = ""
            if (res.PriceDecimalNum !== "") { PriceDecimalNum = res.PriceDecimalNum + "" }
            let DefaultInputBox = ""
            if (res.DefaultInputBox !== "") { DefaultInputBox = res.DefaultInputBox + "" }
            let Discountlevel = ""
            if (res.Discountlevel !== "") { Discountlevel = res.Discountlevel + "" }
            let AccPayVerification = ""
            if (res.AccPayVerification !== "") { AccPayVerification = res.AccPayVerification + "" }

            let ifAccPrint = false
            if (res.ifAccPrint == "Y") { ifAccPrint = true }



            //35
            this.setState({
              orderSubCatAll: orderSubCatAll,
              orderSubCatChose: orderSubCatChose,
              locAll: locAll,
              locChose: locChose,
              groupAll: groupAll,
              groupChose: groupChose,
              HospID: HospID,
              HospDesc: HospDesc,
              IfOrdSubCat: IfOrdSubCat,
              IfRecLoc: IfRecLoc,
              IfPresc: IfPresc,
              IfAdm: IfAdm,
              PrintCount: PrintCount,
              IfPrintHerbalDetail: IfPrintHerbalDetail,
              HerbalDesc: HerbalDesc,
              RoundRole: RoundRole,
              CodeVersion: CodeVersion,
              AccConnInsu: AccConnInsu,
              CashierConnInsu: CashierConnInsu,
              OPSearchFlag: OPSearchFlag,
              OPSearchData: OPSearchData,
              EPSearchFlag: EPSearchFlag,
              EPSearchData: EPSearchData,
              RefAuthFlag: RefAuthFlag,
              RefAuthMode: RefAuthMode,
              IfLimitSkintestCharge: IfLimitSkintestCharge,
              RefAuthTimeOut: RefAuthTimeOut,
              ChargeType: ChargeType,
              PrescLimit: PrescLimit,
              IfRegInv: IfRegInv,
              IfOneVSMany: IfOneVSMany,
              IfMergeByInvDate: IfMergeByInvDate,
              IfRefAuthFlagExceptCashier: IfRefAuthFlagExceptCashier,
              GuidePrint: GuidePrint,
              EPStayChargeMode: EPStayChargeMode,
              AgeMode: AgeMode,
              AdmReason: AdmReason,
              IfSupplementOrd: IfSupplementOrd,
              IfAllAdmPay: IfAllAdmPay,
              IfAccManagement: IfAccManagement,
              SumMationModel: SumMationModel,
              ManagementPassWord: ManagementPassWord,
              PriceDecimalNum: PriceDecimalNum,
              DefaultInputBox: DefaultInputBox,
              Discountlevel: Discountlevel,
              AccPayVerification: AccPayVerification,
              ifAccPrint:ifAccPrint,
            })
          } else {
            //入参先不改
            let HospDesc = ""
            let IfOrdSubCat = false
            let IfRecLoc = false
            let IfPresc = false
            let IfAdm = false
            let PrintCount = ""
            let IfPrintHerbalDetail = false
            let HerbalDesc = ""
            let RoundRole = ""
            let CodeVersion = ""
            let AccConnInsu = false
            let CashierConnInsu = false
            let OPSearchFlag = ""
            let OPSearchData = ""
            let EPSearchFlag = ""
            //16
            let EPSearchData = ""
            let RefAuthFlag = false
            let RefAuthMode = ""
            let IfLimitSkintestCharge = false
            let RefAuthTimeOut = ""
            let ChargeType = ""
            //22
            let PrescLimit = ""
            let IfRegInv = false
            let IfOneVSMany = false
            let IfMergeByInvDate = false
            let IfRefAuthFlagExceptCashier = false
            let GuidePrint = ""
            //28
            let EPStayChargeMode = ""
            let AgeMode = ""
            let AdmReason = ""
            let IfSupplementOrd = false
            let IfAllAdmPay = false
            let IfAccManagement = false
            let SumMationModel = ""
            let ManagementPassWord = ""
            let PriceDecimalNum = ""
            let DefaultInputBox = ""
            let Discountlevel = ""
            let AccPayVerification = ""
            let ifAccPrint=false

            //35
            this.setState({
              orderSubCatAll: orderSubCatAll,
              orderSubCatChose: orderSubCatChose,
              locAll: locAll,
              locChose: locChose,
              groupAll: groupAll,
              groupChose: groupChose,
              HospDesc: HospDesc,
              IfOrdSubCat: IfOrdSubCat,
              IfRecLoc: IfRecLoc,
              IfPresc: IfPresc,
              IfAdm: IfAdm,
              PrintCount: PrintCount,
              IfPrintHerbalDetail: IfPrintHerbalDetail,
              HerbalDesc: HerbalDesc,
              RoundRole: RoundRole,
              CodeVersion: CodeVersion,
              AccConnInsu: AccConnInsu,
              CashierConnInsu: CashierConnInsu,
              OPSearchFlag: OPSearchFlag,
              OPSearchData: OPSearchData,
              EPSearchFlag: EPSearchFlag,
              EPSearchData: EPSearchData,
              RefAuthFlag: RefAuthFlag,
              RefAuthMode: RefAuthMode,
              IfLimitSkintestCharge: IfLimitSkintestCharge,
              RefAuthTimeOut: RefAuthTimeOut,
              ChargeType: ChargeType,
              PrescLimit: PrescLimit,
              IfRegInv: IfRegInv,
              IfOneVSMany: IfOneVSMany,
              IfMergeByInvDate: IfMergeByInvDate,
              IfRefAuthFlagExceptCashier: IfRefAuthFlagExceptCashier,
              GuidePrint: GuidePrint,
              EPStayChargeMode: EPStayChargeMode,
              AgeMode: AgeMode,
              AdmReason: AdmReason,
              IfSupplementOrd: IfSupplementOrd,
              IfAllAdmPay: IfAllAdmPay,
              IfAccManagement: IfAccManagement,
              SumMationModel: SumMationModel,
              ManagementPassWord: ManagementPassWord,
              PriceDecimalNum: PriceDecimalNum,
              DefaultInputBox: DefaultInputBox,
              Discountlevel: Discountlevel,
              AccPayVerification: AccPayVerification,
              ifAccPrint:ifAccPrint,
            })
          }
        }
      }
    })

  }


  //保存
  handleSave = () => {
    const { form: { validateFields } } = this.props;
    let { orderSubCatChose, locChose, groupChose } = this.state;
    let sessionInfo = window.sessionStorage.userData ? JSON.parse(window.sessionStorage.userData) : {};
    validateFields((errors, values) => {
      // 验证成功
      if (errors === null) {
        let obj = values;
        obj.createUserID = sessionInfo.userID;
        obj.updateUserID = sessionInfo.userID;
        obj.orderSubCatChose = orderSubCatChose;
        obj.locChose = locChose;
        obj.groupChose = groupChose;
        //进行数据转换
        let IfOrdSubCat = 'N'
        if (obj.IfOrdSubCat) { IfOrdSubCat = 'Y' }
        obj.IfOrdSubCat = IfOrdSubCat
        let IfRecLoc = 'N'
        if (obj.IfRecLoc) { IfRecLoc = 'Y' }
        obj.IfRecLoc = IfRecLoc
        let IfPresc = 'N'
        if (obj.IfPresc) { IfPresc = 'Y' }
        obj.IfPresc = IfPresc
        let IfAdm = 'N'
        if (obj.IfAdm) { IfAdm = 'Y' }
        obj.IfAdm = IfAdm
        let IfPrintHerbalDetail = 'N'
        if (obj.IfPrintHerbalDetail) { IfPrintHerbalDetail = 'Y' }
        obj.IfPrintHerbalDetail = IfPrintHerbalDetail
        let AccConnInsu = 'N'
        if (obj.AccConnInsu) { AccConnInsu = 'Y' }
        obj.AccConnInsu = AccConnInsu
        let CashierConnInsu = 'N'
        if (obj.CashierConnInsu) { CashierConnInsu = 'Y' }
        obj.CashierConnInsu = CashierConnInsu
        let RefAuthFlag = 0
        if (obj.RefAuthFlag) { RefAuthFlag = 1 }
        obj.RefAuthFlag = RefAuthFlag
        let IfLimitSkintestCharge = 'N'
        if (obj.IfLimitSkintestCharge) { IfLimitSkintestCharge = 'Y' }
        obj.IfLimitSkintestCharge = IfLimitSkintestCharge
        let IfRegInv = 'N'
        if (obj.IfRegInv) { IfRegInv = 'Y' }
        obj.IfRegInv = IfRegInv
        //10

        let IfOneVSMany = 'N'
        if (obj.IfOneVSMany) { IfOneVSMany = 'Y' }
        obj.IfOneVSMany = IfOneVSMany
        let IfMergeByInvDate = 'N'
        if (obj.IfMergeByInvDate) { IfMergeByInvDate = 'Y' }
        obj.IfMergeByInvDate = IfMergeByInvDate
        let IfRefAuthFlagExceptCashier = 'N'
        if (obj.IfRefAuthFlagExceptCashier) { IfRefAuthFlagExceptCashier = 'Y' }
        obj.IfRefAuthFlagExceptCashier = IfRefAuthFlagExceptCashier
        let IfSupplementOrd = 'N'
        if (obj.IfSupplementOrd) { IfSupplementOrd = 'Y' }
        obj.IfSupplementOrd = IfSupplementOrd
        let IfAllAdmPay = 'N'
        if (obj.IfAllAdmPay) { IfAllAdmPay = 'Y' }
        obj.IfAllAdmPay = IfAllAdmPay
        let IfAccManagement = 'N'
        if (obj.IfAccManagement) { IfAccManagement = 'Y' }
        obj.IfAccManagement = IfAccManagement
        //16

        let ifAccPrint = 'N'
        if (obj.ifAccPrint) { ifAccPrint = 'Y' }
        obj.ifAccPrint = ifAccPrint

        //处理需要传递的obj 
        $http.post('urlADS', this, {
          code: '05100096',
          data: obj,
          success: function (res) {
            if (+res.errorCode === 0) {
              message.success('保存成功');
              this.handleQuery();
            }
          },
          error: function (error) {
            message.error('保存失败：' + error);
          }
        })
      }
    });
  }

  render() {
    const { getFieldDecorator } = this.props.form;
    let { language } = this.state
    return (
      <Spin tip="加载中..." spinning={this.state.showLoading}>
        <div style={{ marginBottom: '30px', marginLeft: '10px' }}>
          <Form>
            {/*0000006*/}
            <Row style={{ marginTop: "30px" }}>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigqxzyy && language.HBOPSysConfigqxzyy.descripts} {...formItemLayout}>
                  {getFieldDecorator('HospDr', {
                    initialValue: this.state.HospID,
                    rules: [{ required: true, message: '请选择' }]

                  })(
                    <Select
                      showSearch
                      placeholder="请输入"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangeHospID}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      {this.state.hospList}
                    </Select>
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigyymc && language.HBOPSysConfigyymc.descripts} {...formItemLayout}>
                  {getFieldDecorator('HospDesc', {
                    initialValue: this.state.HospDesc,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Input placeholder="请输入" style={{ width: '150px' }} onChange={this.onChangeHospDesc} />
                  )}
                </FormItem>
              </Col>

              <Col span={4}>
                <FormItem label={language.HBOPSysConfigdymxs && language.HBOPSysConfigdymxs.descripts} {...formItemLayout}>
                  {getFieldDecorator('PrintCount', {
                    initialValue: this.state.PrintCount,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Input placeholder="请输入数字" style={{ width: '150px' }} onChange={this.onChangePrintCount} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigzcym && language.HBOPSysConfigzcym.descripts} {...formItemLayout}>
                  {getFieldDecorator('HerbalDesc', {
                    initialValue: this.state.HerbalDesc,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Input placeholder="请输入" style={{ width: '150px' }} onChange={this.onChangeHerbalDesc} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigxjsr && language.HBOPSysConfigxjsr.descripts} {...formItemLayout}>
                  {getFieldDecorator('RoundRole', {
                    initialValue: this.state.RoundRole,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Input placeholder="请输入数字" style={{ width: '150px' }} onChange={this.onChangeRoundRole} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigdmbb && language.HBOPSysConfigdmbb.descripts} {...formItemLayout}>
                  {getFieldDecorator('CodeVersion', {
                    initialValue: this.state.CodeVersion,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Input placeholder="请输入" style={{ width: '150px' }} onChange={this.onChangeCodeVersion} />
                  )}
                </FormItem>
              </Col>
            </Row>


            {/*0000012*/}
            <Row style={{ marginTop: "30px" }}>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigmzjs && language.HBOPSysConfigmzjs.descripts} {...formItemLayout}>
                  {getFieldDecorator('OPSearchFlag', {
                    initialValue: this.state.OPSearchFlag,
                    rules: [{ required: true, message: '请选择' }]

                  })(
                    <Select
                      showSearch
                      allowClear={true}
                      placeholder="请选择"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangeOPSearchFlag}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      <Option value="0">按日期</Option>
                      <Option value="1">按时间</Option>
                    </Select>
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigmzjsz && language.HBOPSysConfigmzjsz.descripts} {...formItemLayout}>
                  {getFieldDecorator('OPSearchData', {
                    initialValue: this.state.OPSearchData,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Input placeholder="请输入数字" style={{ width: '150px' }} onChange={this.onChangeOPSearchData} />
                  )}
                </FormItem>
              </Col>

              <Col span={4}>
                <FormItem label={language.HBOPSysConfigjzjs && language.HBOPSysConfigjzjs.descripts} {...formItemLayout}>
                  {getFieldDecorator('EPSearchFlag', {
                    initialValue: this.state.EPSearchFlag,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Select
                      showSearch
                      allowClear={true}
                      placeholder="请选择"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangeEPSearchFlag}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      <Option value="0">按日期</Option>
                      <Option value="1">按时间</Option>
                    </Select>
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigjzjsz && language.HBOPSysConfigjzjsz.descripts} {...formItemLayout}>
                  {getFieldDecorator('EPSearchData', {
                    initialValue: this.state.EPSearchData,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Input placeholder="请输入数字" style={{ width: '150px' }} onChange={this.onChangeEPSearchData} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigtfsh && language.HBOPSysConfigtfsh.descripts} {...formItemLayout}>
                  {getFieldDecorator('RefAuthMode', {
                    initialValue: this.state.RefAuthMode,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Select
                      showSearch
                      allowClear={true}
                      placeholder="请选择"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangeRefAuthMode}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      <Option value="1">门诊审核后退费</Option>
                      <Option value="2">医生停医嘱退费</Option>
                      <Option value="3">医生停医嘱后再门诊审核退费</Option>
                    </Select>
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigtfcssj && language.HBOPSysConfigtfcssj.descripts} {...formItemLayout}>
                  {getFieldDecorator('RefAuthTimeOut', {
                    initialValue: this.state.RefAuthTimeOut,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Input placeholder="请输入数字" style={{ width: '150px' }} onChange={this.onChangeRefAuthTimeOut} />
                  )}
                </FormItem>
              </Col>
            </Row>


            {/*0000018*/}
            <Row style={{ marginTop: "30px" }}>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigjslx && language.HBOPSysConfigjslx.descripts} {...formItemLayout}>
                  {getFieldDecorator('ChargeType', {
                    initialValue: this.state.ChargeType,
                    rules: [{ required: true, message: '请选择' }]

                  })(
                    <Select
                      showSearch
                      allowClear={true}
                      placeholder="请输入"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangeChargeType}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      <Option value="0">按费别接收医嘱</Option>
                      <Option value="1">接收全部医嘱</Option>
                    </Select>
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigywyzxz && language.HBOPSysConfigywyzxz.descripts} {...formItemLayout}>
                  {getFieldDecorator('PrescLimit', {
                    initialValue: this.state.PrescLimit,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Select
                      showSearch
                      allowClear={true}
                      placeholder="请输入"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangePrescLimit}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      <Option value="0">无限制</Option>
                      <Option value="1">按处方限制</Option>
                      <Option value="2">按开单科室限制</Option>
                      <Option value="3">按接收科室限制</Option>
                    </Select>
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigjszhms && language.HBOPSysConfigjszhms.descripts}{...formItemLayout}>
                  {getFieldDecorator('SumMationModel', {
                    initialValue: this.state.SumMationModel,
                    rules: [{ required: true, message: '请选择' }]

                  })(
                    <Select
                      showSearch
                      allowClear={true}
                      placeholder="请输入"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangeSumMationModel}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      <Option value="0">先约再求和</Option>
                      <Option value="1">先求和再约</Option>
                    </Select>
                  )}
                </FormItem>
              </Col>
              {/* 导诊单打印
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigdzjdy && language.HBOPSysConfigdzjdy.descripts}{...formItemLayout}>
                  {getFieldDecorator('GuidePrint', {
                    initialValue: this.state.GuidePrint,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Select
                      showSearch
                      allowClear={true}
                      placeholder="请输入"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangeGuidePrint}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      <Option value="0">收费处</Option>
                      <Option value="1">医生站</Option>
                    </Select>
                  )}
                </FormItem>
              </Col> */}
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigjzlgsf && language.HBOPSysConfigjzlgsf.descripts}{...formItemLayout}>
                  {getFieldDecorator('EPStayChargeMode', {
                    initialValue: this.state.EPStayChargeMode,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Select
                      showSearch
                      allowClear={true}
                      placeholder="请输入"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangeEPStayChargeMode}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      <Option value="0">门诊收费模式</Option>
                      <Option value="1">住院收费模式</Option>
                    </Select>
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfignljs && language.HBOPSysConfignljs.descripts}{...formItemLayout}>
                  {getFieldDecorator('AgeMode', {
                    initialValue: this.state.AgeMode,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Select
                      showSearch
                      allowClear={true}
                      placeholder="请输入"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangeAgeMode}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      <Option value="0">就诊日期</Option>
                      <Option value="1">实际日期</Option>
                    </Select>
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigmrfb && language.HBOPSysConfigmrfb.descripts}{...formItemLayout}>
                  {getFieldDecorator('AdmReason', {
                    initialValue: this.state.AdmReason,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Select
                      showSearch
                      allowClear={true}
                      placeholder="请输入"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangeAdmReason}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      {this.state.admReasonList}
                    </Select>
                  )}
                </FormItem>
              </Col>
            </Row>




            {/*0000024*/}
            <Row style={{ marginTop: "30px" }}>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigifAccPrint && language.HBOPSysConfigifAccPrint.descripts} {...formItemLayoutC}>
                  {getFieldDecorator('ifAccPrint', {
                    initialValue: this.state.ifAccPrint,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeifAccPrint} checked={this.state.ifAccPrint} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigazyzzlcffp && language.HBOPSysConfigazyzzlcffp.descripts} {...formItemLayoutC}>
                  {getFieldDecorator('IfOrdSubCat', {
                    initialValue: this.state.IfOrdSubCat,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfOrdSubCat} checked={this.state.IfOrdSubCat} />
                  )}
                </FormItem>
              </Col>

              <Col span={4}>
                <FormItem label={language.HBOPSysConfigazjskscffp && language.HBOPSysConfigazjskscffp.descripts} {...formItemLayoutC}>
                  {getFieldDecorator('IfRecLoc', {
                    initialValue: this.state.IfRecLoc,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfRecLoc} checked={this.state.IfRecLoc} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigazcfcffp && language.HBOPSysConfigazcfcffp.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('IfPresc', {
                    initialValue: this.state.IfPresc,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfPresc} checked={this.state.IfPresc} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigazjzcffp && language.HBOPSysConfigazjzcffp.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('IfAdm', {
                    initialValue: this.state.IfAdm,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfAdm} checked={this.state.IfAdm} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigzcydymx && language.HBOPSysConfigzcydymx.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('IfPrintHerbalDetail', {
                    initialValue: this.state.IfPrintHerbalDetail,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfPrintHerbalDetail} checked={this.state.IfPrintHerbalDetail} />
                  )}
                </FormItem>
              </Col>
            </Row>


            {/*0000030*/}
            <Row style={{ marginTop: "30px" }}>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigzhzfljyb && language.HBOPSysConfigzhzfljyb.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('AccConnInsu', {
                    initialValue: this.state.AccConnInsu,
                    rules: [{ required: true, message: '请选择' }]

                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeAccConnInsu} checked={this.state.AccConnInsu} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigmzsfljyb && language.HBOPSysConfigmzsfljyb.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('CashierConnInsu', {
                    initialValue: this.state.CashierConnInsu,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeCashierConnInsu} checked={this.state.CashierConnInsu} />
                  )}
                </FormItem>
              </Col>

              {/*<Col span={4}>
                                    <FormItem label="退费需要审批：" {...formItemLayoutC}>
                                        {getFieldDecorator('RefAuthFlag', {
                                            initialValue:this.state.RefAuthFlag,
                                            rules: [{ required: true, message: '请输入' }]
                                        })(
                                            <Switch checkedChildren="1" unCheckedChildren="0" checked={this.state.RefAuthFlag} onChange={this.onChangeRefAuthFlag} />
                                        )}
                                    </FormItem>    
                                        </Col>*/}
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigxzpsyzsf && language.HBOPSysConfigxzpsyzsf.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('IfLimitSkintestCharge', {
                    initialValue: this.state.IfLimitSkintestCharge,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfLimitSkintestCharge} checked={this.state.IfLimitSkintestCharge} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigfghfp && language.HBOPSysConfigfghfp.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('IfRegInv', {
                    initialValue: this.state.IfRegInv,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfRegInv} checked={this.state.IfRegInv} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigdyfpydd && language.HBOPSysConfigdyfpydd.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('IfOneVSMany', {
                    initialValue: this.state.IfOneVSMany,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfOneVSMany} checked={this.state.IfOneVSMany} />
                  )}
                </FormItem>
              </Col>
              {/*/还原时要去掉这里的="使用公用账户下方的注释：*/}
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigsygyzh && language.HBOPSysConfigsygyzh.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('IfAccManagement', {
                    initialValue: this.state.IfAccManagement,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfAccManagement} checked={this.state.IfAccManagement} />
                  )}
                </FormItem>
              </Col>
            </Row>



            {/*0000035*/}
            <Row style={{ marginTop: "30px" }}>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigfparqhb && language.HBOPSysConfigfparqhb.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('IfMergeByInvDate', {
                    initialValue: this.state.IfMergeByInvDate,
                    rules: [{ required: true, message: '请选择' }]

                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfMergeByInvDate} checked={this.state.IfMergeByInvDate} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigbyzxshtf && language.HBOPSysConfigbyzxshtf.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('IfRefAuthFlagExceptCashier', {
                    initialValue: this.state.IfRefAuthFlagExceptCashier,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfRefAuthFlagExceptCashier} checked={this.state.IfRefAuthFlagExceptCashier} />
                  )}
                </FormItem>
              </Col>

              <Col span={4}>
                <FormItem label={language.HBOPSysConfigsfblyz && language.HBOPSysConfigsfblyz.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('IfSupplementOrd', {
                    initialValue: this.state.IfSupplementOrd,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfSupplementOrd} checked={this.state.IfSupplementOrd} />
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigdcjzycjs && language.HBOPSysConfigdcjzycjs.descripts}{...formItemLayoutC}>
                  {getFieldDecorator('IfAllAdmPay', {
                    initialValue: this.state.IfAllAdmPay,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Switch checkedChildren="Y" unCheckedChildren="N" onChange={this.onChangeIfAllAdmPay} checked={this.state.IfAllAdmPay} />
                  )}
                </FormItem>
              </Col>
              <Col span={3}>
                <FormItem label={language.HBOPSysConfigzhmrmm && language.HBOPSysConfigzhmrmm.descripts}{...formItemLayout}>
                  {getFieldDecorator('ManagementPassWord', {
                    initialValue: this.state.ManagementPassWord,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Input placeholder="请输入" style={{ width: '150px' }} onChange={this.onChangeManagementPassWord} />
                  )}
                </FormItem>
              </Col>
              <Col span={5}>
                <FormItem label={language.HBOPSysConfigjfjgxsws && language.HBOPSysConfigjfjgxsws.descripts} {...formItemLayout}>
                  {getFieldDecorator('PriceDecimalNum', {
                    initialValue: this.state.PriceDecimalNum,
                    rules: [{ required: true, message: '请输入' }]
                  })(
                    <Input placeholder="请输入" style={{ width: '150px' }} onChange={this.onChangePriceDecimalNum} />
                  )}
                </FormItem>
              </Col>
              {/*<Col span={4}>
                                    <FormItem label="使用公用账户：" {...formItemLayoutC}>
                                        {getFieldDecorator('IfAccManagement', {
                                            initialValue:this.state.IfAccManagement,
                                            rules: [{ required: true, message: '请输入' }]
                                        })(
                                            <Switch checkedChildren="Y" unCheckedChildren="N"  onChange={this.onChangeIfAccManagement} checked={this.state.IfAccManagement}/>
                                        )}
                                    </FormItem>    
                                        </Col>*/}
            </Row>
            <Row style={{ marginTop: "30px" }}>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigmrgb && language.HBOPSysConfigmrgb.descripts}{...formItemLayout}>
                  {getFieldDecorator('DefaultInputBox', {
                    initialValue: this.state.DefaultInputBox,
                    rules: [{ message: '请选择' }]

                  })(
                    <Select
                      showSearch
                      allowClear={true}
                      placeholder="请输入"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangeDefaultInputBox}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      <Option value="CardNo">卡号上</Option>
                      <Option value="PatNo">登记号上</Option>
                    </Select>
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigzkyx && language.HBOPSysConfigzkyx.descripts} {...formItemLayout}>
                  {getFieldDecorator('Discountlevel', {
                    initialValue: this.state.Discountlevel,
                    rules: [{ message: '请输入' }]
                  })(
                    <Select
                      showSearch
                      allowClear={true}
                      placeholder="请输入"
                      optionFilterProp="children"
                      style={{ width: '150px' }}
                      onChange={this.onChangeDiscountlevel}
                      filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                    >
                      <Option value="H">折扣高优先</Option>
                      <Option value="L">折扣低优先</Option>
                    </Select>
                  )}
                </FormItem>
              </Col>
              <Col span={4}>
                <FormItem label={language.HBOPSysConfigkxy && language.HBOPSysConfigkxy.descripts}{...formItemLayout}>
                  {getFieldDecorator('AccPayVerification', {
                    initialValue: this.state.AccPayVerification,
                    rules: [{ message: '请输入' }]
                  })(
                    <Input placeholder="请输入" style={{ width: '150px' }} onChange={this.onChangeAccPayVerification} />
                  )}
                </FormItem>
              </Col>
            </Row>
          </Form>
          {/* <Row style={{ marginTop:"30px"}}>
                                <Col style={{  display:"inline" }} span={8}>
                                    <Transfer
                                        style={{ marginLeft: '20px' }}
                                        dataSource={this.state.orderSubCatAll}
                                        showSearch
                                        listStyle={{
                                            width: '170px',
                                            height: '300px',
                                        }}
                                        titles={['选择医嘱子类', '免审核医嘱子类']}
                                        operations={['添加', '移除']}
                                        targetKeys={this.state.orderSubCatChose}
                                        onChange={this.onChangeAvoidOrdSubCat}
                                        render={item => `${item.descripts}`}
                                        footer={this.renderFooter}
                                    />
                                </Col>
                                <Col style={{  display:"inline"}} span={8}>
                                    <Transfer
                                        style={{  marginLeft: '20px'}}
                                        dataSource={this.state.locAll}
                                        showSearch
                                        listStyle={{
                                            width: '170px',
                                            height: '300px',
                                        }}
                                        titles={['选择科室', '超级权限科室']}
                                        operations={['添加', '移除']}
                                        targetKeys={this.state.locChose}
                                        onChange={this.onChangeSuperLoc}
                                        render={item => `${item.descripts}`}
                                        footer={this.renderFooter}
                                    />
                                </Col>
                                <Col style={{  display:"inline" }} span={8}>
                                    <Transfer
                                        style={{ marginLeft: '20px'}}
                                        dataSource={this.state.groupAll}
                                        showSearch
                                        listStyle={{
                                            width: '170px',
                                            height: '300px',
                                        }}
                                        titles={['选择角色', '超级角色权限']}
                                        operations={['添加', '移除']}
                                        targetKeys={this.state.groupChose}
                                        onChange={this.onChangeSuperGroup}
                                        render={item => `${item.descripts}`}
                                        footer={this.renderFooter}
                                    />
                                </Col>
                             </Row>
                                    */}
          <Row style={{ marginTop: '20px', marginLeft: '680px' }}><Button type="primary" onClick={this.handleSave} style={{ marginLeft: "20px" }}>{language.HBOPSysConfigbc && language.HBOPSysConfigbc.descripts}</Button></Row>
        </div>
      </Spin>
    );
  }
}

const HBOPSysConfig = Form.create()(HBOPSysConfigs);
export default HBOPSysConfig;
