This commit is contained in:
2025-07-14 09:46:42 +08:00
parent 271b4dd42d
commit a2f7cedc05
4 changed files with 14 additions and 14 deletions

View File

@@ -57,7 +57,7 @@
</view>
<view class="zd-row submit-bar">
<button class="zd-col-6 button-primary" @tap="seachList">查询</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !pkId}" @tap="_materialConfirm">确认</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !dataList.length}" @tap="_materialConfirm">确认</button>
</view>
</view>
</template>
@@ -106,7 +106,7 @@
methods: {
async _getSect () {
try {
let res = await getSect()
let res = await getSect('XB')
if (res) {
this.options = res
} else {
@@ -168,7 +168,7 @@
},
async _materialConfirm () {
this.disabled = true
if (!this.val1 || !this.val2 || !this.pkId) {
if (!this.dataList.length) {
this.disabled = false
return
}