cm-reporting 0.8.0 → 0.8.1

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.d.ts CHANGED
@@ -1536,13 +1536,16 @@ declare const _default: {
1536
1536
  "duplicateSmelterSelectionContent": "The same smelter cannot be selected twice under the same metal. Please choose another one.",
1537
1537
  "smelterNumberLookupNotFoundTitle": "Smelter number not found",
1538
1538
  "smelterNumberLookupNotFoundContent": "The system did not return data for this smelter number. Check the number and try again.",
1539
+ "smelterNumberLookupOutOfScopeTitle": "Smelter metal is outside the declaration scope",
1540
+ "smelterNumberLookupOutOfScopeContent": "This smelter belongs to a metal whose declaration Q1 and Q2 are not both Yes, so it was not filled automatically.",
1539
1541
  "smelterNumberLookupMultipleTitle": "Multiple smelters matched",
1540
1542
  "smelterNumberLookupMultipleContent": "The system returned multiple smelters and the library cannot choose one automatically. Narrow the lookup result in the host system."
1541
1543
  },
1542
1544
  "tips": {
1543
1545
  "reportPurpose": {
1544
1546
  "cmrt": "The purpose of this report is to collect sourcing information for tin, tantalum, tungsten, gold, and other metals used in products.",
1545
- "emrt": "The purpose of this report is to collect sourcing information for specific raw materials used in products, especially cobalt or natural mica."
1547
+ "emrt": "The purpose of this report is to collect sourcing information for specific raw materials used in products, especially cobalt or natural mica.",
1548
+ "amrt": "The purpose of this document is to collect sourcing information on minerals/metals used in products."
1546
1549
  }
1547
1550
  }
1548
1551
  };
@@ -1885,6 +1888,11 @@ export declare interface SmelterListIntegration {
1885
1888
  * - 返回多条时库会提示宿主收窄结果,不自动猜测
1886
1889
  */
1887
1890
  onLookupSmelterByNumber?: (ctx: SmelterNumberLookupContext) => Promise<ExternalPickResult<SmelterExternalPickItem>>;
1891
+ /**
1892
+ * CID 查询返回多条时,由宿主打开选择器让用户确认其中一条。
1893
+ * searchField 固定为 smelterNumber,searchValue 是用户输入的 CID。
1894
+ */
1895
+ onPickSmelterForNumberLookup?: (ctx: SmelterNumberLookupPickContext) => Promise<ExternalPickResult<SmelterExternalPickItem>>;
1888
1896
  /** 冶炼厂名称/选择入口交互模式:默认 'internal'(用户手填)。 */
1889
1897
  lookupMode?: SmelterLookupMode;
1890
1898
  }
@@ -1897,6 +1905,12 @@ export declare interface SmelterNumberLookupContext extends SmelterExternalConte
1897
1905
  smelterNumber: string;
1898
1906
  }
1899
1907
 
1908
+ export declare interface SmelterNumberLookupPickContext extends SmelterNumberLookupContext {
1909
+ searchField: 'smelterNumber';
1910
+ searchValue: string;
1911
+ candidates: ReadonlyArray<SmelterExternalPickItem>;
1912
+ }
1913
+
1900
1914
  /**
1901
1915
  * @file core/types/tableRows.ts
1902
1916
  * @description 模块实现。