| | |
| | | <el-form-item label="产品名称" style=" display: flex;"> |
| | | <el-select |
| | | v-model="form.partcode" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | @focus="getPartSelect" |
| | | @change="partChange" |
| | | > |
| | | <el-option |
| | |
| | | <el-form-item label="工艺路线" style=" display: flex;"> |
| | | <el-select |
| | | v-model="form.routecode" |
| | | filterable |
| | | :disabled="form.partcode===''" |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | |
| | | <el-form-item label="关联设备" style=" display: flex;"> |
| | | <el-select |
| | | v-model="form.eqpcode" |
| | | filterable |
| | | :disabled="form.stepcode===''" |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | |
| | | <el-select |
| | | v-show="operation==='add'" |
| | | v-model="dialogForm.partcode" |
| | | filterable |
| | | style="width: 220px" |
| | | placeholder="请选择" |
| | | :popper-append-to-body="false" |
| | | @focus="getPartSelect2" |
| | | @change="partDialogChange" |
| | | > |
| | | <el-option |
| | | v-for="item in partArr" |
| | | v-for="item in partArr2" |
| | | :key="item.partcode" |
| | | :label="item.partname" |
| | | :value="item.partcode" |
| | |
| | | v-show="operation==='add'" |
| | | v-model="dialogForm.routecode" |
| | | style="width: 220px" |
| | | filterable |
| | | :disabled="dialogForm.partcode===''" |
| | | placeholder="请选择" |
| | | :popper-append-to-body="false" |
| | |
| | | rows: 20 // 每页多少条 |
| | | }, |
| | | partArr: [], // 产品集合 |
| | | partArr2: [], // 产品集合对话框 |
| | | routeArr: [], // 产品集合 |
| | | stepArr: [], // 产品集合 |
| | | eqpArr: [], // 产品集合 |
| | |
| | | }, |
| | | created() { |
| | | this.getBeatRateSearch() |
| | | this.getPartSelect() |
| | | // this.getPartSelect() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | |
| | | const { data: res } = await PartSelect() |
| | | this.partArr = res |
| | | }, |
| | | async getPartSelect2() { |
| | | const { data: res } = await PartSelect() |
| | | this.partArr2 = res |
| | | }, |
| | | async partChange(val) { |
| | | const { data: res } = await PartSelectRpute({ partcode: val }) |
| | | this.routeArr = res |