| | |
| | | */ |
| | | actionTrigger = (record) => { |
| | | const { setting, btn, selectedData } = this.props |
| | | const _this = this |
| | | let data = [] |
| | | |
| | | if (record) { // 表格中触发按钮 |
| | |
| | | } 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}©Right=${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: '', |
| | |
| | | }, |
| | | onCancel() { |
| | | _this.props.updateStatus('refresh', 'grid') |
| | | // _this.props.updateStatus('over') |
| | | }, |
| | | }) |
| | | window.open(url) |
| | |
| | | |
| | | 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} |
| | |
| | | _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) |
| | | } |
| | |
| | | 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' |
| | |
| | | getOrder = (Id) => { |
| | | let param = { |
| | | func: 's_get_weixin_pay_native', |
| | | ID: Id, |
| | | // sandbox: 'Y' |
| | | ID: Id |
| | | } |
| | | |
| | | param.LTextOut = md5(param.ID + window.GLOB.appkey) |
| | |
| | | if (res.pay_status) { |
| | | this.setState({ |
| | | overdone: true |
| | | }) |
| | | Modal.success({ |
| | | title: '支付成功!', |
| | | content: '请刷新订单页面,查看订单状态。', |
| | | okText: '知道了', |
| | | onOk() { |
| | | window.close() |
| | | } |
| | | }) |
| | | return |
| | | } |
| | |
| | | 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) |
| | |
| | | this.setState({ |
| | | overdone: true |
| | | }) |
| | | Modal.success({ |
| | | title: '支付成功!', |
| | | content: '请刷新订单页面,查看订单状态。', |
| | | okText: '知道了', |
| | | onOk() { |
| | | window.close() |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |