From 4683c1ca3212bc4a071d4fc2af620e274878c002 Mon Sep 17 00:00:00 2001 From: zhouzy062 Date: Fri, 12 Apr 2024 09:15:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9-zzy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/store/newBuy/newDevices/newDevicesCode.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue index c8e2aca9..701b15bd 100644 --- a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue +++ b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue @@ -413,9 +413,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("无新增编码绑定"); From a34c0f55e27ad1511d60ef52f53150f1dcea47a4 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Fri, 12 Apr 2024 13:18:29 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=A2=86=E9=80=80=E4=BA=86=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../receive/receiveApplyAdd.vue | 7 ++++ .../receiveByCq/receiveApplyAddByCq.vue | 13 +++++++- .../receiveByCq/receiveExamineByCq.vue | 4 +-- .../claimAndRefund/return/returnApply.vue | 13 ++++++-- .../claimAndRefund/return/returnApplyAdd.vue | 17 ++++++++-- .../return/returnApplyAddByCq.vue | 3 ++ .../claimAndRefund/return/returnApplyByCq.vue | 11 +++++-- .../claimAndRefund/return/returnExamine.vue | 5 ++- .../newBuy/newDevices/newDevicesCode.vue | 32 ++----------------- 9 files changed, 65 insertions(+), 40 deletions(-) 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'); - }); - } + + + } };