| | |
| | | if (data.data == 'add') { |
| | | _this.title = '添加报销审批' |
| | | } |
| | | console.log(data) |
| | | console.log(_this.title) |
| | | }) |
| | | this.getOrderId('') |
| | | }, |
| | |
| | | popChange(n) { |
| | | // var detl=JSON.parse(JSON.stringify(this.newDetl)); // 牛逼 |
| | | let detl = {...this.newDetl} // 牛逼 |
| | | console.log(this.radiovalue2); |
| | | detl.expenseType$ = this.radiovalue2 |
| | | for (let k in this.radiolist2) { |
| | | if (this.radiolist2[k].name == this.radiovalue2) { |
| | |
| | | this.$refs.popup.close() |
| | | }, |
| | | radioChange(n) { |
| | | console.log('radioChange', n); |
| | | }, |
| | | showPicker(e) { |
| | | switch(e) { |
| | |
| | | this.tableData.splice(index,1) |
| | | }, |
| | | reimburseIdConfirm(e) { |
| | | console.log('confirm', e) |
| | | this.form[1].value = e.value[0] |
| | | this.form[1].submitVal = e.indexs[0] |
| | | this.reimburseId = false |
| | | console.log(this.form); |
| | | }, |
| | | checkDataConfirm(e) { |
| | | console.log('confirm', e) |
| | | this.form[2].value = e.value[0] |
| | | this.form[2].submitVal = e.indexs[0] |
| | | this.checkData = false |
| | | console.log(this.form); |
| | | }, |
| | | // 表单提交 |
| | | submit() { |
| | |
| | | param.checkData = k.value |
| | | } |
| | | } |
| | | console.log(this.form); |
| | | console.log(param); |
| | | param.reimburseOnlineDetls = this.tableData |
| | | if (param.reimburseId == null || param.reimburseId === '') { |
| | | uni.showToast({title: '报销类型不能为空', icon: "none", position: 'top'}) |
| | |
| | | uni.showToast({title: '请添加报销明细', icon: "none", position: 'top'}) |
| | | return |
| | | } |
| | | // console.log(this.orderIdList); |
| | | // console.log(this.orderIds); |
| | | console.log(param); |
| | | this.formAdd(param) |
| | | }, |
| | | formAdd(param) { |