king
2022-07-01 04a71ecb03c8aaebceade470045ea8676f0baf2f
src/views/billprint/index.jsx
@@ -37,6 +37,7 @@
    data: '',
    tempId: '',
    config: null,
    urlParam: null,
    auto: true
  }
@@ -58,7 +59,8 @@
        sessionStorage.setItem('localDataM', param.dataM || '')
        this.setState({
          BID: param.id || '',
          tempId: param.tempId
          tempId: param.tempId,
          urlParam: param
        }, () => {
          this.getMenuParam()
        })
@@ -135,7 +137,7 @@
  }
  getMenuParam = () => {
    const { tempId, BID } = this.state
    const { tempId, BID, urlParam } = this.state
    let _param = {
      func: 'sPC_Get_LongParam',
@@ -243,6 +245,16 @@
          })
        }
        if (config.urlFields) {
          config.urlFields.forEach(field => {
            let val = `'${urlParam ? (urlParam[field] || '') : ''}'`
            regs.push({
              reg: new RegExp('@' + field + '@', 'ig'),
              value: val
            })
          })
        }
        config.components = config.components.map(component => {
          if (component.action) component.action = []
          if (component.search) component.search = []