This commit is contained in:
2025-10-10 15:47:45 +08:00
parent fc9b4933a1
commit 7f28dabc1d
5 changed files with 20 additions and 9 deletions

View File

@@ -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

View File

@@ -146,6 +146,7 @@
clearUp () {
this.pkId = ''
this.pkObj = {}
this.seachList()
},
async _intoRegion () {
this.disabled = true

View File

@@ -205,8 +205,8 @@
title: res.message,
icon: 'none'
})
this.disabled = false
}
this.disabled = false
} catch (e) {
this.disabled = false
}

View File

@@ -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 = ''