king
2020-07-15 fa3470f48ebd003ff97eed1340483da7833c0832
2020-07-15
3个文件已修改
37 ■■■■ 已修改文件
src/tabviews/zshare/actionList/newpagebutton/index.jsx 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/utils.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/pay/index.jsx 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/newpagebutton/index.jsx
@@ -42,6 +42,7 @@
   */
  actionTrigger = (record) => {
    const { setting, btn, selectedData } = this.props
    const _this = this
    let data = []
    if (record) { // 表格中触发按钮
@@ -88,9 +89,8 @@
    } else if (btn.pageTemplate === 'pay') {
      let _p = `ID=${Id}&userid=${sessionStorage.getItem('UserID')}&LoginUID=${sessionStorage.getItem('LoginUID')}&logo=${window.GLOB.doclogo}&name=${sessionStorage.getItem('Full_Name')}&suid=${sessionStorage.getItem('SessionUid')}&icp=${window.GLOB.ICP}&copyRight=${window.GLOB.copyRight}`
      let url = '#/pay/' +  window.btoa(window.encodeURIComponent(_p))
      let _this = this
      _this.props.updateStatus('start')
      this.props.updateStatus('start')
      confirm({
        title: '请在付款页面完成订单支付。',
        content: '',
@@ -102,7 +102,6 @@
        },
        onCancel() {
          _this.props.updateStatus('refresh', 'grid')
          // _this.props.updateStatus('over')
        },
      })
      window.open(url)
src/utils/utils.js
@@ -962,7 +962,8 @@
        
        aaa: select @ErrorCode as ErrorCode,@retmsg as retmsg`
      if (window.GLOB.systemType !== 'production' && options.sysType !== 'cloud') {
      // if (window.GLOB.systemType !== 'production' && options.sysType !== 'cloud') {
      if (window.GLOB.systemType !== 'production') {
        let fsql = `
        ${_sql}
        ${_sqlInsert}
@@ -1592,7 +1593,8 @@
    _sql += `
        aaa: select @ErrorCode as ErrorCode,@retmsg as retmsg`
    if (window.GLOB.systemType !== 'production' && options.sysType !== 'cloud') {
    // if (window.GLOB.systemType !== 'production' && options.sysType !== 'cloud') {
    if (window.GLOB.systemType !== 'production') {
      _sql = _sql.replace(/\n\s{8}/ig, '\n')
      console.log(_sql)
    }
src/views/pay/index.jsx
@@ -2,7 +2,7 @@
import moment from 'moment'
import md5 from 'md5'
import QRCode from 'qrcode.react'
import { notification, Tabs } from 'antd'
import { notification, Tabs, Modal } from 'antd'
import Api from '@/api'
import Utils from '@/utils/utils.js'
@@ -70,8 +70,7 @@
  getOrder = (Id) => {
    let param = {
      func: 's_get_weixin_pay_native',
      ID: Id,
      // sandbox: 'Y'
      ID: Id
    }
    param.LTextOut = md5(param.ID + window.GLOB.appkey)
@@ -99,6 +98,14 @@
        if (res.pay_status) {
          this.setState({
            overdone: true
          })
          Modal.success({
            title: '支付成功!',
            content: '请刷新订单页面,查看订单状态。',
            okText: '知道了',
            onOk() {
              window.close()
            }
          })
          return
        }
@@ -163,8 +170,7 @@
      if ((second - 1) % 5 === 0) {
        let param = {
          func: 's_get_weixin_pay_native_status',
          out_trade_no: orderNo,
          // sandbox: 'Y'
          out_trade_no: orderNo
        }
        param.LTextOut = md5(orderNo + window.GLOB.appkey)
@@ -176,6 +182,14 @@
            this.setState({
              overdone: true
            })
            Modal.success({
              title: '支付成功!',
              content: '请刷新订单页面,查看订单状态。',
              okText: '知道了',
              onOk() {
                window.close()
              }
            })
          }
        })
      }