@fewangsit/wangsvue-fats 1.0.0-alpha.88 → 1.0.0-alpha.89
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.
|
@@ -3,14 +3,20 @@ import { Asset } from '@tagsamurai/fats-api-services/src/types/oldAssetService.t
|
|
|
3
3
|
import { QueryParams } from '../../components/datatable/DataTable.vue.d';
|
|
4
4
|
import { ClassComponent } from '../../components/ts-helpers.d';
|
|
5
5
|
|
|
6
|
+
export type AssetWithOptionalTAG = Omit<Asset, 'qr' | 'rfid'> & {
|
|
7
|
+
qr?: string | boolean;
|
|
8
|
+
rfid?: string | boolean;
|
|
9
|
+
};
|
|
10
|
+
|
|
6
11
|
export type ScanPayload = {
|
|
7
12
|
type: 'RFID' | 'QR';
|
|
8
13
|
code: string;
|
|
9
14
|
device: string; // Serial Number
|
|
15
|
+
asset?: AssetWithOptionalTAG;
|
|
10
16
|
};
|
|
11
17
|
|
|
12
18
|
export type ButtonAddByScanEmits = {
|
|
13
|
-
'update:modelValue': [assets:
|
|
19
|
+
'update:modelValue': [assets: AssetWithOptionalTAG[]];
|
|
14
20
|
'scan': [payload: ScanPayload];
|
|
15
21
|
};
|
|
16
22
|
|
|
@@ -19,7 +25,7 @@ export interface ButtonAddByScanProps {
|
|
|
19
25
|
* Defines asset data that already in the table.
|
|
20
26
|
*
|
|
21
27
|
*/
|
|
22
|
-
modelValue:
|
|
28
|
+
modelValue: AssetWithOptionalTAG[];
|
|
23
29
|
reportedDisposalAssets?: boolean;
|
|
24
30
|
noDisposalAssets?: boolean;
|
|
25
31
|
queryParams?: QueryParams;
|