| | |
| | | } |
| | | }) |
| | | |
| | | if (btn.verify && btn.verify.printEnable === 'true' && !btn.output && !ex.reps.includes('ID') && values.id) { |
| | | exps.push({ |
| | | key: 'ID', |
| | | value: values.id |
| | | }) |
| | | } |
| | | |
| | | if (process && btn.verify.workFlow === 'true') { |
| | | let flow = window.GLOB.UserCacheMap.get(btn.$flowId) |
| | | let node = null |
| | |
| | | setTimeout(() => { |
| | | Api.genericInterface(param).then(res => { |
| | | if (res.status) { |
| | | this.triggerNote(res, param.ID) // 消息 |
| | | this.triggerNote(res, param) // 消息 |
| | | } |
| | | resolve(res) |
| | | }, (error) => { |
| | |
| | | |
| | | Api.genericInterface(param, btn.$callbackScript, 'callback').then(res => { |
| | | if (res.status) { |
| | | this.triggerNote(res, param.ID) // 消息 |
| | | this.triggerNote(res, param) // 消息 |
| | | |
| | | if (params.length === 0) { |
| | | this.execSuccess(res) |
| | |
| | | |
| | | Api.genericInterface(param).then(res => { |
| | | if (res.status) { |
| | | this.triggerNote(res, param.ID) // 消息 |
| | | this.triggerNote(res, param) // 消息 |
| | | |
| | | if (params.length === 0) { |
| | | this.execSuccess(res) |
| | |
| | | |
| | | Api.genericInterface(param).then(res => { |
| | | if (res.status) { |
| | | this.triggerNote(res, param.ID) // 消息 |
| | | this.triggerNote(res, param) // 消息 |
| | | |
| | | if (params.length === 0) { |
| | | this.execSuccess(res) |
| | |
| | | return new Promise(resolve => { |
| | | Api.genericInterface(unCheckParam).then(result => { |
| | | if (result.status) { |
| | | that.triggerNote(result, param.ID) // 消息 |
| | | that.triggerNote(result, param) // 消息 |
| | | |
| | | if (params.length === 0) { |
| | | that.execSuccess(result) |
| | |
| | | |
| | | Api.genericInterface(param, btn.$callbackScript, 'callback').then(res => { |
| | | if (res.status) { |
| | | this.triggerNote(res, param.ID) // 消息 |
| | | this.triggerNote(res, param) // 消息 |
| | | |
| | | // 一次请求成功,进行下一项请求 |
| | | if (params.length === 0) { |
| | |
| | | }) |
| | | } |
| | | |
| | | triggerNote = (res, ID) => { |
| | | triggerNote = (res, param) => { |
| | | const { btn } = this.props |
| | | |
| | | if (!btn.verify) return |
| | |
| | | } |
| | | |
| | | if (btn.verify.printEnable === 'true') { |
| | | this.billPrint(id || ID) |
| | | let _id = id || param.ID |
| | | |
| | | if (!_id && param.data && param.data[0] && param.data[0].exps) { |
| | | param.data[0].exps.forEach(cell => { |
| | | if (cell.key === 'ID') { |
| | | _id = cell.value |
| | | } |
| | | }) |
| | | } |
| | | this.billPrint(_id) |
| | | } |
| | | |
| | | if (!id) return |