| | |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.on('goBusinessDel', function(data) { |
| | | if (data.data == 'add') { |
| | | |
| | | _this.getOrderId('') |
| | | } |
| | | }) |
| | | // 项目跟踪传过来的 |
| | | eventChannel.on('addType', function(data) { |
| | | if (data.data.comeFrom == 'saleManage') { |
| | | _this.form2[0].info[0].submitVal = data.data.orderId |
| | | _this.form2[0].info[0].unshow = true |
| | | _this.form2[0].info[0].required = false |
| | | } |
| | | }) |
| | | |
| | |
| | | }, |
| | | methods: { |
| | | getOrderId(condition) { |
| | | // console.log(condition); |
| | | let _this = this |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/orderQueryName/auth`, |
| | |
| | | this.form[sub.type] = odd.id |
| | | } |
| | | } |
| | | } else { |
| | | this.form[sub.type] = sub.submitVal |
| | | } |
| | | } else { |
| | | this.form[sub.type] = sub.value |
| | |
| | | |
| | | } |
| | | } |
| | | // console.log(this.form.orderId); |
| | | // console.log(this.orderIds); |
| | | |
| | | console.log(this.form); |
| | | console.log(this.type); |
| | | this.formAdd(this.form) |
| | | // console.log(subPass); |
| | | if (subPass) { |
| | |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res) |
| | | if (res.code === 200) { |
| | | uni.showToast({title: '添加成功', icon: "none", position: 'top'}) |
| | | setTimeout(()=>{ |