| | |
| | | _this.list = [] |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.on('reimburseOnlineDetl', function(data) { |
| | | console.log(data); |
| | | if (data.data == 'add') { |
| | | _this.title = '添加报销审批' |
| | | _this.fixtype = 'add' |
| | | _this.form[0].hide = false |
| | | } |
| | | if (data.data == 'modi') { |
| | | // _this.title = '添加报销审批' |
| | |
| | | } |
| | | |
| | | for (let element of this.orderIdList) { |
| | | if(element.value == this.orderId) { |
| | | if(element.value == this.form[0].value) { |
| | | param.orderId = element.id + '' |
| | | } |
| | | } |
| | |
| | | } |
| | | param.reimburseId = this.reimburseId2 |
| | | param.reimburseOnlineDetls = this.tableData |
| | | // if (param.reimburseId == null || param.reimburseId === '') { |
| | | // uni.showToast({title: '报销类型不能为空', icon: "none", position: 'top'}) |
| | | // return |
| | | // } |
| | | if (param.checkData == '') { |
| | | uni.showToast({title: '是否冲账不能为空', icon: "none", position: 'top'}) |
| | | return |
| | |
| | | data: JSON.stringify(param), |
| | | method: 'POST', |
| | | success(res) { |
| | | console.log(res); |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | uni.navigateBack({}) |
| | | uni.navigateBack({delta:2}) |
| | | } else if(res.code === 500) { |
| | | uni.showToast({title: res.msg, icon: "none", position: 'top'}) |
| | | } |