| | |
| | | // if (response.data.data.customerOrderList != null) { |
| | | // this.dataForm = response.data.data.customerOrderList |
| | | // |
| | | // console.log('0') |
| | | // if (this.dataForm.OrderOrContract) { |
| | | // console.log('1') |
| | | // // 将订单还是合同转义 |
| | | // if (this.dataForm.OrderOrContract == '0') { |
| | | // this.dataForm.OrderOrContract = '合同' |
| | |
| | | // } |
| | | // } |
| | | // } else { |
| | | // console.log('2') |
| | | this.dataForm = response.data.data |
| | | |
| | | // } |
| | |
| | | this.showPart = true |
| | | }, |
| | | selectPart(part) { |
| | | console.log(part); |
| | | if (part) { |
| | | this.dataForm.partNo = part.partNo |
| | | } |
| | |
| | | // 保存配置单 |
| | | saveConfig() { |
| | | 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.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | }) |
| | | } else { |
| | | newProcessConfigAddOne(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | } else { |
| | | this.$message.error('该销售订单号下,没有其他订单行') |
| | | /* const configId = this.configContent.id |
| | | console.log(this.configContent) |
| | | for ( |
| | | let i = this.configContent.processConfigDataList.length - 1; |
| | | i >= 0; |
| | |
| | | } |
| | | if (configId) { |
| | | newProcessConfigEdit(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | }) |
| | | } else { |
| | | newProcessConfigAdd(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | } |
| | | }) |
| | | /* const configId = this.configContent.id |
| | | console.log(this.configContent) |
| | | for ( |
| | | let i = this.configContent.processConfigDataList.length - 1; |
| | | i >= 0; |
| | |
| | | } |
| | | if (configId) { |
| | | newProcessConfigEdit(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | }) |
| | | } else { |
| | | newProcessConfigAdd(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | // var param = Object.assign({ current: 1, size: 20 }) |
| | | // getProcessConfigPage(param).then((res) => { |
| | | // const list = res.data.data.records |
| | | // console.log(list) |
| | | // }) |
| | | }, |
| | | // 获取确认 |