diff --git a/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue b/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue index 4d7e3668..e2e4e195 100644 --- a/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue +++ b/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue @@ -549,6 +549,10 @@ export default { return } this.queryParams.leaseApplyDetails.forEach(item=>{ + if(item.num==0){ + this.$message.error('机具类型库存量为零无法领料'); + return + } if(item.preNum==''){ this.$message.error('请填写预领数量'); return @@ -602,8 +606,11 @@ export default { }, checkNum(row){ + let maxNum = row.num if(row.preNum<=1){ row.preNum = 1 + }else if(row.preNum>=maxNum){ + row.preNum = maxNum } }, /////// 设备类型树 切换 diff --git a/sgzb-ui/src/views/claimAndRefund/receiveByCq/receiveApplyAddByCq.vue b/sgzb-ui/src/views/claimAndRefund/receiveByCq/receiveApplyAddByCq.vue index a7c3894d..dfd1af0b 100644 --- a/sgzb-ui/src/views/claimAndRefund/receiveByCq/receiveApplyAddByCq.vue +++ b/sgzb-ui/src/views/claimAndRefund/receiveByCq/receiveApplyAddByCq.vue @@ -123,7 +123,7 @@ - + @@ -477,29 +471,9 @@ export default { const obj = { path: "/store/newBuy/newDevicesList" } this.$tab.closeOpenPage(obj); }, - /** 删除按钮操作 */ - handleDelete(row) { - const dictIds = row.maId ; - this.$modal.confirm('是否确认删除该数据项?').then(function() { - return delMacode(dictIds); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("删除成功"); - }).catch(() => {}); - }, - /** 导出按钮操作 */ - handleExport() { - this.download('system/dict/type/export', { - ...this.queryParams - }, `type_${new Date().getTime()}.xlsx`) - }, - /** 刷新缓存按钮操作 */ - handleRefreshCache() { - refreshCache().then(() => { - this.$modal.msgSuccess("刷新成功"); - this.$store.dispatch('dict/cleanDict'); - }); - } + + + } };