king
2024-10-02 36276e96db8e9633f4bd68257e4c80fa0efe8c1d
src/views/billprint/index.jsx
@@ -1043,6 +1043,21 @@
        }
      }
      if (this.state.config.printPage === 'custom' && this.state.config.printScripts) {
        try {
          // eslint-disable-next-line
          let func = new Function('components', 'pages', 'notification', this.state.config.printScripts)
          func(comps, pages, notification)
        } catch (e) {
          console.warn(e)
          notification.warning({
            top: 92,
            message: '自定义脚本执行错误!',
            duration: 5
          })
        }
      } else {
      while (!over) {
        let page = []
        let count = 0
@@ -1102,6 +1117,7 @@
          over = true
        }
      }
      }
      let total = pages.length
      let date = moment().format('YYYY-MM-DD')