fix:提交入库按钮在待入库为0或表单未清空时置灰不可点击

This commit is contained in:
ShenQiLun 2026-07-02 17:15:36 +08:00
parent ea29f72e78
commit ba9bf955bb

View File

@ -725,7 +725,7 @@
<view class="submit-btn" :class="{ disabled: pendingCount >= 200 }" @click="submitUpload">
<text class="submit-text">确认上传</text>
</view>
<view class="receive-btn" @click="submitReceive">
<view class="receive-btn" :class="{ disabled: pendingCount === 0 || !isFormCleared }" @click="submitReceive">
<text class="receive-text">提交入库{{ pendingCount }}</text>
</view>
</view>
@ -1088,6 +1088,14 @@ export default {
},
computed: {
//
isFormCleared() {
if (this.swiperIndex === 0) {
return !(this.isbn || this.bookName)
} else {
return !(this.noIsbnBookName)
}
},
warehouseLocked() {
return !!(this._warehouseLocked)
},
@ -4475,6 +4483,11 @@ picker {
justify-content: center;
}
.receive-btn.disabled {
opacity: 0.5;
pointer-events: none;
}
.receive-text {
color: #ffffff;
font-size: 30rpx;