| | |
| | | prop="partname" |
| | | label="产品名称" |
| | | min-width="200" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | |
| | | <el-option |
| | | v-for="item in partArr2" |
| | | :key="item.partcode" |
| | | :label="item.partname" |
| | | :label="item.partname + ' / '+ item.partcode" |
| | | :value="item.partcode" |
| | | /> |
| | | </el-select> |
| | |
| | | this.form.routecode = '' |
| | | this.form.stepcode = '' |
| | | this.form.eqpcode = '' |
| | | this.search() |
| | | }, |
| | | async routeChange(val) { |
| | | const { data: res } = await RouteSelectStep({ routecode: val }) |
| | | this.stepArr = res |
| | | this.form.stepcode = '' |
| | | this.form.eqpcode = '' |
| | | this.search() |
| | | }, |
| | | async stepChange(val) { |
| | | const { data: res } = await StepSelectEqp({ stepcode: val }) |
| | | this.eqpArr = res |
| | | this.form.eqpcode = '' |
| | | this.search() |
| | | }, |
| | | // 重置 |
| | | reset() { |
| | |
| | | }, |
| | | // 保存行 |
| | | async saveRow(row) { |
| | | if (parseFloat(row.unprice) <= 0 && this.eqpTable.steptype !== 'W') { |
| | | return this.$message.info('计件单价必须大于零!') |
| | | } |
| | | const data = { |
| | | partcode: this.eqpTable.partcode, // 产品编码 |
| | | routecode: this.eqpTable.routecode, // 工艺路线编码 |