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 @@ - + @@ -413,9 +407,11 @@ export default { /** 提交按钮 */ submitForm: function() { // console.log(this.codeList) - if(this.hasDuplicateField(this.codeList, 'assetsCode')){ - this.$modal.msgError("固定资产编码绑定失败,存在重复编码,请重新输入"); - return false + if(this.form.fixCode==0){ + if(this.hasDuplicateField(this.codeList, 'assetsCode')){ + this.$modal.msgError("固定资产编码绑定失败,存在重复编码,请重新输入"); + return false + } } if(this.codeList.length==0){ this.$modal.msgError("无新增编码绑定"); @@ -475,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'); - }); - } + + + } };