change
This commit is contained in:
@@ -80,7 +80,7 @@
|
|||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
this.title = options.title
|
this.title = options.title
|
||||||
// this.searchList()
|
this.searchList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleBlur (e) {
|
handleBlur (e) {
|
||||||
@@ -154,6 +154,14 @@
|
|||||||
if (!this.checkedArr.length) {
|
if (!this.checkedArr.length) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
let allValid = this.checkedArr.every(item => item.qty !== '');
|
||||||
|
if (!allValid) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '数量必填',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$store.dispatch('setPublicArr', this.checkedArr)
|
this.$store.dispatch('setPublicArr', this.checkedArr)
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,8 +44,8 @@
|
|||||||
<tr v-for="(e, i) in dataList" :key="i">
|
<tr v-for="(e, i) in dataList" :key="i">
|
||||||
<td>{{e.material_name}}</td>
|
<td>{{e.material_name}}</td>
|
||||||
<td>{{e.material_code}}</td>
|
<td>{{e.material_code}}</td>
|
||||||
<!-- <td>{{e.qty}}</td> -->
|
<td>{{e.qty}}</td>
|
||||||
<td><input type="number" class="sin_input" v-model="e.qty" @blur="handleBlur(e)"></td>
|
<!-- <td><input type="number" class="sin_input" v-model="e.qty" @blur="handleBlur(e)"></td> -->
|
||||||
<td>{{e.pcsn}}</td>
|
<td>{{e.pcsn}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -155,17 +155,17 @@
|
|||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let allValid = this.dataList.every(item => item.qty !== '');
|
// let allValid = this.dataList.every(item => item.qty !== '');
|
||||||
console.log(allValid, 666)
|
// console.log(allValid, 666)
|
||||||
console.log(this.dataList, 666)
|
// console.log(this.dataList, 666)
|
||||||
if (!allValid) {
|
// if (!allValid) {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: '数量必填',
|
// title: '数量必填',
|
||||||
icon: 'none'
|
// icon: 'none'
|
||||||
})
|
// })
|
||||||
this.disabled = false
|
// this.disabled = false
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
try {
|
try {
|
||||||
let res = await groupPlate(this.dataList, this.val2, this.val1)
|
let res = await groupPlate(this.dataList, this.val2, this.val1)
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
|
|||||||
Reference in New Issue
Block a user