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 + } } } }