| | |
| | | <el-input |
| | | v-model="dataForm.partNo" |
| | | placeholder="" |
| | | disabled |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="openSalesPartDialog()" |
| | | v-show="dataForm.id" |
| | | @click="openPartDialog()" |
| | | |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | |
| | | // 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.fileList = response.data.data.customerOrderAttachmentList |
| | | const sourceId = response.data.data.sourceId |
| | |
| | | } |
| | | }) |
| | | }, |
| | | // 零件选择 |
| | | // 零件选择 |
| | | openPartDialog() { |
| | | if ( |
| | | this.dataForm.coState === '01partUnCheck' || |
| | | this.dataForm.coState === '02technologyUnCheck' |
| | | ) { |
| | | this.showPart = true |
| | | } else { |
| | | this.$message.warning( |
| | | '订单只有在【零件待选】、【工艺文件待选】状态下,才能进行零件修改' |
| | | ) |
| | | } |
| | | this.showPart = true |
| | | }, |
| | | selectPart(part) { |
| | | if (part) { |
| | | this.dataForm.partNo = part.partNo |
| | | this.$refs.dataForm.validateField('partNo', (valid) => {}) |
| | | } |
| | | }, |
| | | // 零件选择 |
| | | // openPartDialog() { |
| | | // if ( |
| | | // this.dataForm.coState === '01partUnCheck' || |
| | | // this.dataForm.coState === '02technologyUnCheck' |
| | | // ) { |
| | | // this.showPart = true |
| | | // } else { |
| | | // this.$message.warning( |
| | | // '订单只有在【零件待选】、【工艺文件待选】状态下,才能进行零件修改' |
| | | // ) |
| | | // } |
| | | // }, |
| | | // selectPart(part) { |
| | | // if (part) { |
| | | // this.dataForm.partNo = part.partNo |
| | | // this.$refs.dataForm.validateField('partNo', (valid) => {}) |
| | | // } |
| | | // }, |
| | | // 全屏 |
| | | fullscreen() { |
| | | this.isFullScreen = !this.isFullScreen |
| | |
| | | this.getConfigFiles() |
| | | }, |
| | | delProcessConfigFile(row) { |
| | | if (row.lineNumber !== this.dataForm.otcLineNo) { |
| | | this.$message.error('上传文件行号与当前销售订单行号不一致,不允许删除') |
| | | } else { |
| | | this.$confirm('是否删除工艺配置文件', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | .then((data) => { |
| | | this.getConfigFiles() |
| | | }) |
| | | } |
| | | }, |
| | | downloadProcessConfigFile(row) { |
| | | downloadProcessConfigFile( |
| | |
| | | // 保存配置单 |
| | | 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) |
| | | // }) |
| | | }, |
| | | // 获取确认 |