@fctc/widget-logic 3.8.2 → 3.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -4
- package/dist/index.mjs +3 -4
- package/dist/widget.js +3 -4
- package/dist/widget.mjs +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5419,18 +5419,17 @@ var many2oneFieldController = (props) => {
|
|
|
5419
5419
|
methods?.setValue(name, null);
|
|
5420
5420
|
setTempSelectedOption(null);
|
|
5421
5421
|
} else if (propValue) {
|
|
5422
|
-
if (isForm &&
|
|
5423
|
-
const optionsMany2OneField = fieldOptions ? (0, utils_exports.evalJSONContext)(fieldOptions) : null;
|
|
5422
|
+
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name) {
|
|
5424
5423
|
fetchGetDetail.mutate(
|
|
5425
5424
|
{
|
|
5426
|
-
model:
|
|
5425
|
+
model: optionsObject?.model,
|
|
5427
5426
|
ids: propValue?.id ?? propValue,
|
|
5428
5427
|
specification: widget === MANY2ONE_EXTERNAL ? optionsObject?.specification : {
|
|
5429
5428
|
id: {},
|
|
5430
5429
|
display_name: {}
|
|
5431
5430
|
},
|
|
5432
5431
|
context: { ...env.context },
|
|
5433
|
-
service:
|
|
5432
|
+
service: optionsObject ? optionsObject?.service : service,
|
|
5434
5433
|
xNode: service == "wesap" && dataUser.x_node
|
|
5435
5434
|
},
|
|
5436
5435
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -5499,18 +5499,17 @@ var many2oneFieldController = (props) => {
|
|
|
5499
5499
|
methods?.setValue(name, null);
|
|
5500
5500
|
setTempSelectedOption(null);
|
|
5501
5501
|
} else if (propValue) {
|
|
5502
|
-
if (isForm &&
|
|
5503
|
-
const optionsMany2OneField = fieldOptions ? (0, utils_exports.evalJSONContext)(fieldOptions) : null;
|
|
5502
|
+
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name) {
|
|
5504
5503
|
fetchGetDetail.mutate(
|
|
5505
5504
|
{
|
|
5506
|
-
model:
|
|
5505
|
+
model: optionsObject?.model,
|
|
5507
5506
|
ids: propValue?.id ?? propValue,
|
|
5508
5507
|
specification: widget === MANY2ONE_EXTERNAL ? optionsObject?.specification : {
|
|
5509
5508
|
id: {},
|
|
5510
5509
|
display_name: {}
|
|
5511
5510
|
},
|
|
5512
5511
|
context: { ...env.context },
|
|
5513
|
-
service:
|
|
5512
|
+
service: optionsObject ? optionsObject?.service : service,
|
|
5514
5513
|
xNode: service == "wesap" && dataUser.x_node
|
|
5515
5514
|
},
|
|
5516
5515
|
{
|
package/dist/widget.js
CHANGED
|
@@ -4656,18 +4656,17 @@ var many2oneFieldController = (props) => {
|
|
|
4656
4656
|
methods?.setValue(name, null);
|
|
4657
4657
|
setTempSelectedOption(null);
|
|
4658
4658
|
} else if (propValue) {
|
|
4659
|
-
if (isForm &&
|
|
4660
|
-
const optionsMany2OneField = fieldOptions ? (0, utils_exports.evalJSONContext)(fieldOptions) : null;
|
|
4659
|
+
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name) {
|
|
4661
4660
|
fetchGetDetail.mutate(
|
|
4662
4661
|
{
|
|
4663
|
-
model:
|
|
4662
|
+
model: optionsObject?.model,
|
|
4664
4663
|
ids: propValue?.id ?? propValue,
|
|
4665
4664
|
specification: widget === MANY2ONE_EXTERNAL ? optionsObject?.specification : {
|
|
4666
4665
|
id: {},
|
|
4667
4666
|
display_name: {}
|
|
4668
4667
|
},
|
|
4669
4668
|
context: { ...env.context },
|
|
4670
|
-
service:
|
|
4669
|
+
service: optionsObject ? optionsObject?.service : service,
|
|
4671
4670
|
xNode: service == "wesap" && dataUser.x_node
|
|
4672
4671
|
},
|
|
4673
4672
|
{
|
package/dist/widget.mjs
CHANGED
|
@@ -4713,18 +4713,17 @@ var many2oneFieldController = (props) => {
|
|
|
4713
4713
|
methods?.setValue(name, null);
|
|
4714
4714
|
setTempSelectedOption(null);
|
|
4715
4715
|
} else if (propValue) {
|
|
4716
|
-
if (isForm &&
|
|
4717
|
-
const optionsMany2OneField = fieldOptions ? (0, utils_exports.evalJSONContext)(fieldOptions) : null;
|
|
4716
|
+
if (isForm && optionsObject?.service && optionsObject?.model && !propValue?.display_name) {
|
|
4718
4717
|
fetchGetDetail.mutate(
|
|
4719
4718
|
{
|
|
4720
|
-
model:
|
|
4719
|
+
model: optionsObject?.model,
|
|
4721
4720
|
ids: propValue?.id ?? propValue,
|
|
4722
4721
|
specification: widget === MANY2ONE_EXTERNAL ? optionsObject?.specification : {
|
|
4723
4722
|
id: {},
|
|
4724
4723
|
display_name: {}
|
|
4725
4724
|
},
|
|
4726
4725
|
context: { ...env.context },
|
|
4727
|
-
service:
|
|
4726
|
+
service: optionsObject ? optionsObject?.service : service,
|
|
4728
4727
|
xNode: service == "wesap" && dataUser.x_node
|
|
4729
4728
|
},
|
|
4730
4729
|
{
|