| | |
| | | <el-input |
| | | v-model="dataForm.partNo" |
| | | placeholder="" |
| | | disabled |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="openSalesPartDialog()" |
| | | v-show="dataForm.id==null" |
| | | @click="openPartDialog()" |
| | | |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | |
| | | // } 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) { |
| | | console.log(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 |