From f3a8b609580d160f2d15b0c2fab28784a38cba71 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@prec-tech.com>
Date: 星期二, 04 七月 2023 17:44:48 +0800
Subject: [PATCH] 备品附属品选择 附属品追加
---
force-app/main/default/lwc/lexInputLookupCell/lexInputLookupCell.html | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/lwc/lexInputLookupCell/lexInputLookupCell.html b/force-app/main/default/lwc/lexInputLookupCell/lexInputLookupCell.html
index 081898f..e7e600a 100644
--- a/force-app/main/default/lwc/lexInputLookupCell/lexInputLookupCell.html
+++ b/force-app/main/default/lwc/lexInputLookupCell/lexInputLookupCell.html
@@ -4,7 +4,7 @@
* @Author: chen jing wu
* @Date: 2023-04-27 11:38:36
* @LastEditors: chen jing wu
- * @LastEditTime: 2023-04-27 11:44:04
+ * @LastEditTime: 2023-05-18 16:37:50
-->
<template>
<template if:true={isLookup}>
@@ -12,7 +12,12 @@
object-api-name={apiName}
record-id=''
>
- <lightning-input-field field-name={fieldName} onclick={handleinputChange} variant="label-hidden"> </lightning-input-field>
+ <template if:true={isRequired}>
+ <lightning-input-field field-name={fieldName} onclick={handleinputChange} variant="label-hidden" disabled={isDisable} required> </lightning-input-field>
+ </template>
+ <template if:false={isRequired}>
+ <lightning-input-field field-name={fieldName} onclick={handleinputChange} variant="label-hidden" disabled={isDisable}> </lightning-input-field>
+ </template>
</lightning-record-edit-form>
</template>
</template>
\ No newline at end of file
--
Gitblit v1.9.1