This commit is contained in:
2025-09-16 10:13:01 +08:00
parent 088946e2ad
commit 9fc8bf2055
4 changed files with 14 additions and 14 deletions

View File

@@ -51,7 +51,7 @@
<view class="zd-row submit-bar">
<button class="zd-col-7 button-default" @tap="clearUp">清空</button>
<button class="zd-col-7 button-primary" @tap="seachList">查询</button>
<button class="zd-col-8 button-primary" :class="{'button-info': !dataList.length}" :disabled="disabled" @tap="_updatepoint_type">确认</button>
<button class="zd-col-8 button-primary" :class="{'button-info': !dataList.length}" :disabled="disabled" @tap="_updatePointType">确认</button>
</view>
</view>
</template>
@@ -59,7 +59,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {getInBillPointList, updatepoint_type} from '@/utils/getData4.js'
import {getInBillPointList, updatePointType} from '@/utils/getData4.js'
export default {
components: {
NavBar,
@@ -131,14 +131,14 @@
this.dataList = res.data
}
},
async _updatepoint_type () {
async _updatePointType () {
this.disabled = true
if (!dataList.length) {
if (!this.dataList.length) {
this.disabled = false
return
}
try {
let res = await updatepoint_type(this.dataList)
let res = await updatePointType(this.dataList)
if (res.code === '200') {
uni.showToast({
title: res.message,