确认处理

This commit is contained in:
2022-10-14 16:05:55 +08:00
parent f95df039f3
commit a4fcb7e825
5 changed files with 29 additions and 17 deletions

View File

@@ -64,6 +64,7 @@
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled2" @tap="_confirmBlanking">确认下卷</button>
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled3" @tap="_finishBlanking">下卷完成</button>
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled4" @tap="_finish">结束</button>
<button class="submit-button" @tap="_queryRawFoilList">查询</button>
</view>
</view>
</template>
@@ -86,10 +87,14 @@
dataList: [],
pkId: '',
pkObj: {},
disabled1: false
disabled1: false,
disabled2: false,
disabled3: false,
disabled4: false
};
},
created () {
this._queryRawFoilList()
},
methods: {
handleChange (e) {
@@ -97,9 +102,6 @@
},
/** 初始化查询 */
async _queryRawFoilList () {
if (!this.val1 || !this.val2) {
return
}
let res = await queryRawFoilList(this.val1, this.val2)
this.dataList = [...res.rows]
},
@@ -116,6 +118,9 @@
icon: 'none'
})
this.disabled1 = false
this.pkId = ''
this.pkObj = {}
this._queryRawFoilList()
} catch (e) {
this.disabled1 = false
}
@@ -133,6 +138,9 @@
icon: 'none'
})
this.disabled2 = false
this.pkId = ''
this.pkObj = {}
this._queryRawFoilList()
} catch (e) {
this.disabled2 = false
}
@@ -150,6 +158,9 @@
icon: 'none'
})
this.disabled3 = false
this.pkId = ''
this.pkObj = {}
this._queryRawFoilList()
} catch (e) {
this.disabled3 = false
}
@@ -167,6 +178,9 @@
icon: 'none'
})
this.disabled4 = false
this.pkId = ''
this.pkObj = {}
this._queryRawFoilList()
} catch (e) {
this.disabled4 = false
}
@@ -184,6 +198,6 @@
width 92rpx
.slide_new table td:nth-child(2), .slide_new table th:nth-child(2)
position sticky
left 92rpx
left 89rpx
z-index 102
</style>