king
2024-10-02 91a577205dec0b967ed1e94f31426a9062ff10f4
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')