更新
This commit is contained in:
@@ -406,7 +406,7 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="10">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="零件图号">
|
||||
<el-select
|
||||
v-model="tuhaoValue"
|
||||
@@ -419,15 +419,23 @@
|
||||
v-for="item in tuhao"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
:value="item.value">
|
||||
<div style="float: left">{{ item.label }}</div>
|
||||
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.name1 }}</div>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="10">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="零件名称">
|
||||
<el-input v-model="remark1" size="small" readonly style="width: 150px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="规格">
|
||||
<el-input v-model="guige" size="small" readonly style="width: 150px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-table :data="tableData4" style="width: 97%;max-height: 250px;margin-top: 15px" size="mini" border height="250px">
|
||||
<el-table-column align="center" label="工艺序号" width="80">
|
||||
@@ -681,6 +689,7 @@ export default {
|
||||
perNum2: '',
|
||||
tuhao: [],
|
||||
tuhaoValue: '',
|
||||
guige: '',
|
||||
check1: 0,
|
||||
check2: 0,
|
||||
check3: 0,
|
||||
@@ -1297,10 +1306,12 @@ export default {
|
||||
this.CraftmanValue = this.CraftmanValue2
|
||||
this.perNum = this.perNum2
|
||||
this.remark1 = ''
|
||||
this.guige = ''
|
||||
this.tuhaoValue = ''
|
||||
},
|
||||
inputChange() { // 零件号改变
|
||||
this.remark1 = ''
|
||||
this.guige = ''
|
||||
this.tuhaoValue = ''
|
||||
},
|
||||
// 典艺工艺查询
|
||||
@@ -1368,6 +1379,7 @@ export default {
|
||||
this.tuhao.push({
|
||||
label: response.data[i].零件图号,
|
||||
name: response.data[i].零件名称,
|
||||
name1: response.data[i].规格,
|
||||
value: response.data[i].工艺计划流水号
|
||||
})
|
||||
}
|
||||
@@ -1387,11 +1399,13 @@ export default {
|
||||
// 当完成工艺号改变时,零件名称改变,并获取工艺要求
|
||||
numChange1() {
|
||||
this.remark1 = ''
|
||||
this.guige = ''
|
||||
this.tableData4 = null
|
||||
console.log(this.tuhaoValue)
|
||||
for (let i = 0; i < this.tuhao.length; i++) {
|
||||
if (this.tuhaoValue === this.tuhao[i].value) {
|
||||
this.remark1 = this.tuhao[i].name
|
||||
this.guige = this.tuhao[i].name1
|
||||
this.num = this.tuhao[i].value
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user