| | |
| | | } |
| | | |
| | | submitCard = () => { |
| | | const { selectApp, visible } = this.state |
| | | const { selectApp, visible, applist } = this.state |
| | | |
| | | this.mobcardRef.handleConfirm().then(res => { |
| | | this.setState({ |
| | | confirmloading: true |
| | | }) |
| | | |
| | | let ID = '' |
| | | if (visible === 'edit') { |
| | | ID = selectApp.ID |
| | | } else { |
| | | let lowerKei = res.kei_no.toLowerCase() |
| | | if (lowerKei === 'mob') { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '应用编码不允许使用mob!', |
| | | duration: 3 |
| | | }) |
| | | return |
| | | } else if (applist.filter(app => app.kei_no.toLowerCase() === lowerKei).length > 0) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '应用编码已存在!', |
| | | duration: 3 |
| | | }) |
| | | return |
| | | } |
| | | ID = md5(window.GLOB.appkey + res.kei_no) |
| | | } |
| | | |
| | | this.setState({ |
| | | confirmloading: true |
| | | }) |
| | | |
| | | let param = { |
| | | func: 's_kei_addupt', |
| | | ID: ID, |