| | |
| | | }, |
| | | updateCurrOrder() { |
| | | const configId = this.configContent.id |
| | | console.log(this.configContent) |
| | | for ( |
| | | let i = this.configContent.processConfigDataList.length - 1; |
| | | i >= 0; |
| | |
| | | } |
| | | if (configId) { |
| | | newProcessConfigEditOne(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.innerVisible = false |
| | | this.$message.success('保存成功') |
| | |
| | | }) |
| | | } else { |
| | | newProcessConfigAddOne(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.innerVisible = false |
| | | this.$message.success('保存成功') |
| | |
| | | if (orderIds.length > 0) { |
| | | orderIds.push(this.customerOrderId) |
| | | const configId = this.configContent.id |
| | | console.log(this.configContent) |
| | | for ( |
| | | let i = this.configContent.processConfigDataList.length - 1; |
| | | i >= 0; |
| | |
| | | } |
| | | this.configContent.orderIdList = orderIds |
| | | newProcessConfigEdit(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.innerVisible = false |
| | | this.$message.success('保存成功') |