bm-admin-ui 1.2.50-alpha → 1.2.51-alpha

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.
@@ -27135,10 +27135,17 @@ const _sfc_main$7 = defineComponent({
27135
27135
  let result = void 0;
27136
27136
  try {
27137
27137
  if (row[field]) {
27138
- result = await props.extraConfig.product.fetch({
27139
- productCode: row[field],
27140
- filterByShopcode: rule?.config?.dataFiltering
27141
- });
27138
+ if (isProductCenterSuit.value && field === "productCode") {
27139
+ result = await props.extraConfig.product.fetchForActivity({
27140
+ productCode: row[field],
27141
+ filterByShopcode: rule?.config?.dataFiltering
27142
+ });
27143
+ } else {
27144
+ result = await props.extraConfig.product.fetch({
27145
+ productCode: row[field],
27146
+ filterByShopcode: rule?.config?.dataFiltering
27147
+ });
27148
+ }
27142
27149
  if (!result) {
27143
27150
  row[field] = "";
27144
27151
  }
@@ -27149,10 +27149,17 @@ const _sfc_main$7 = vue.defineComponent({
27149
27149
  let result = void 0;
27150
27150
  try {
27151
27151
  if (row[field]) {
27152
- result = await props.extraConfig.product.fetch({
27153
- productCode: row[field],
27154
- filterByShopcode: rule?.config?.dataFiltering
27155
- });
27152
+ if (isProductCenterSuit.value && field === "productCode") {
27153
+ result = await props.extraConfig.product.fetchForActivity({
27154
+ productCode: row[field],
27155
+ filterByShopcode: rule?.config?.dataFiltering
27156
+ });
27157
+ } else {
27158
+ result = await props.extraConfig.product.fetch({
27159
+ productCode: row[field],
27160
+ filterByShopcode: rule?.config?.dataFiltering
27161
+ });
27162
+ }
27156
27163
  if (!result) {
27157
27164
  row[field] = "";
27158
27165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bm-admin-ui",
3
- "version": "1.2.50-alpha",
3
+ "version": "1.2.51-alpha",
4
4
  "private": false,
5
5
  "description": "An Admin Component Library for Bm",
6
6
  "license": "UNLICENSED",