| | |
| | | /> |
| | | <el-table-column |
| | | prop="partcode" |
| | | min-width="160" |
| | | min-width="120" |
| | | label="产品编码" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="partname" |
| | | label="产品名称" |
| | | min-width="160" |
| | | 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> |
| | |
| | | <div> |
| | | <i class="el-icon-s-operation" style="color:#42b983;margin: -20px 10px 20px 0" />工序集合 |
| | | </div> |
| | | <div style="display: flex;background-color: #F2F6FC;padding:20px 0 20px 20px; min-height: 100px"> |
| | | |
| | | <div style="display: flex;background-color: #F2F6FC;padding:10px; min-height: 100px"> |
| | | <el-radio-group v-model="dialogForm.stepcode" @change="radioChange"> |
| | | <el-radio |
| | | v-for="item in stepDialogArr" |
| | | v-for="(item,index) in stepDialogArr" |
| | | :key="item.code" |
| | | :style="{marginLeft:index%7===0?0:'10px',marginBottom:'10px'}" |
| | | :label="item.name" |
| | | border |
| | | /> |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-button v-show="row.isVisible===1" type="text" @click="saveRow(row)">保存</el-button> |
| | | <el-button v-show="row.isVisible===1" type="text" @click="cancelRow(row)">取消</el-button> |
| | | <el-button v-show="row.isVisible===0" type="text" @click="editRow(row)">编辑</el-button> |
| | | <el-button v-show="row.isVisible===0" type="text" @click="copyRow(row)">复制</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="saveRow(row)">保存</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="cancelRow(row)">取消</el-button> |
| | | <el-button v-if="row.isVisible===0" type="text" @click="editRow(row)">编辑</el-button> |
| | | <el-button v-if="row.isVisible===0" type="text" @click="copyRow(row)">复制</el-button> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | 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, // 工艺路线编码 |
| | |
| | | // 取消行 |
| | | cancelRow(row) { |
| | | this.getEqpTable() |
| | | this.radioChange(this.radioChangeTempValue) |
| | | this.dialogForm.stepcode = this.radioChangeTempValue |
| | | this.isEqpTableEdit = true |
| | | }, |
| | | // 编辑行 |