优化
This commit is contained in:
@@ -263,6 +263,15 @@
|
||||
this.pkId = this.pkId === e.workorder_id ? '' : e.workorder_id
|
||||
this.pkObj = this.pkId === e.workorder_id ? e : {}
|
||||
},
|
||||
clearUp () {
|
||||
this.index = ''
|
||||
this.index2 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
this.dataList = []
|
||||
this.pageNum = 1
|
||||
this.pkId = ''
|
||||
},
|
||||
async _getWeight () {
|
||||
if (!this.index2) {
|
||||
return
|
||||
|
||||
@@ -146,6 +146,7 @@
|
||||
clearUp () {
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this.seachList()
|
||||
},
|
||||
async _intoRegion () {
|
||||
this.disabled = true
|
||||
|
||||
@@ -205,8 +205,8 @@
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled = false
|
||||
}
|
||||
this.disabled = false
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.material_code === pkId}" @tap="toCheck(e)">
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.struct_code === pkId}" @tap="toCheck(e)">
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.struct_code}}</td>
|
||||
@@ -124,8 +124,8 @@
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.material_code ? '' : e.material_code
|
||||
this.pkObj = this.pkId === e.material_code ? e : {}
|
||||
this.pkId = this.pkId === e.struct_code ? '' : e.struct_code
|
||||
this.pkObj = this.pkId === e.struct_code ? e : {}
|
||||
},
|
||||
toEmpty () {
|
||||
this.val1 = ''
|
||||
|
||||
Reference in New Issue
Block a user