fixed bug

This commit is contained in:
chenjianan
2019-07-29 14:40:12 +08:00
parent 8a36b0206a
commit a10ba6d033

View File

@@ -19,7 +19,7 @@
</el-input>-->
<span>机床-分组 零件号:</span>
<el-input v-model="machine_Group_part" clearable placeholder="例:机床号-组号 或 零件号" size="small" style="width:260px">
<el-button slot="append" icon="el-icon-right" @click="searchPartsByMachineGroup();partNumValue=''"/>
<el-button slot="append" icon="el-icon-right" @click="partNumValue='';searchPartsByMachineGroup();"/>
</el-input>
<el-select v-model="partNumValue" placeholder="选择零件编制工艺定额" size="small" @clear="clearDetail" @change="searchDetail()">
<el-option
@@ -715,7 +715,6 @@ export default {
initDirection() {
const direction = this.$getDirection()
direction.on('keyup', function(e, val) {
console.log(val)
if (e.keyCode === 39) {
direction.next()
}
@@ -1055,7 +1054,7 @@ export default {
},
fetchData() {
this.materialClass = []
getMaterial().then(response => {
getMaterial(1, 10).then(response => {
for (let i = 0; i < response.data.length; i++) {
this.materialClass.push({
label: response.data[i].材料,
@@ -1112,6 +1111,7 @@ export default {
searchPartsByMachineGroup() {
this.tableData = []
this.partNum = []
console.log(this.radio, 123123)
if (this.radio === 1) { // 未编制
this.disabled = false
this.isShow1 = true
@@ -1530,7 +1530,6 @@ export default {
this.materialName = ''
this.spec = ''
this.newNum = ''
this.searchParts()
this.searchPartsByMachineGroup()
this.$message.success('保存成功')
})