From c772b9e6f4ade5cc5c4877db60053d788aae100a Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Fri, 19 Aug 2022 09:12:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86bug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B7=BB=E5=8A=A0=E5=9B=9E=E8=B0=83=E8=81=94?= =?UTF-8?q?=E5=8A=A8check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deviceManage/module/deviceDetail.vue | 30 +++++++++++++------ 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/src/views/storeManage/deviceManage/module/deviceDetail.vue b/src/views/storeManage/deviceManage/module/deviceDetail.vue index 894753c..7cd638e 100644 --- a/src/views/storeManage/deviceManage/module/deviceDetail.vue +++ b/src/views/storeManage/deviceManage/module/deviceDetail.vue @@ -86,16 +86,16 @@ - 借出 - 归还 - 入库 - 出库 + 借出 + 归还 + 入库 + 出库 - 借出 - 归还 - 入库 - 出库 + 借出 + 归还 + 入库 + 出库 通知 @@ -267,7 +267,7 @@ export default { computed: { addTypeStr() { const addType = this.deviceTypeOptions.find(deviceType => deviceType.name === this.selectedDeviceType) - const preTitle = this.crud.add > CRUD.STATUS.NORMAL ? '新增' : '编辑' + const preTitle = this.crud.status.add > CRUD.STATUS.NORMAL ? '新增' : '编辑' if (addType) { return preTitle + addType.name } else { @@ -489,6 +489,18 @@ export default { this.$refs.bindingParamsDlg.params = data this.$refs.bindingParamsDlg.bindParamsVisible = true }) + }, + isLinkageChange(value, type) { + if (!value && this.form.isCallback[type]) { + this.$message.error('取消对应回调选项后才能取消联动操作') + this.form.isLinkage[type] = true + } + }, + isCallbackChange(value, type) { + if (value && !this.form.isLinkage[type]) { + this.$message.error('选中对应联动选项后才能勾选回调操作') + this.form.isCallback[type] = false + } } } }