it does not have a type annotation and is referenced directly or indirectly in its own initializer

关于在vue3 reactive中使用TypeScript时,出现’state’ implicitly has type ‘any’ because it does not have a type annotation and is referenced directly or indirectly in its own initializer.报错。

在这里插入图片描述
在这里插入图片描述

关于这个错误的解释是:

state”隐式具有类型“any”,因为它没有类型注释并且在其自己的初始化程序中直接或间接引用

解决方案

出现这个问题时由于TypeScript里自带的类型检测,导致编译报错,但实际并不影响程序是使用,毕竟他在js中是完全可行的。
在这里插入图片描述
这个解决方法是用了TypeScript中的类型断言,通过类型断言这种方式可以告诉编译器,“相信我,我知道自己在干什么”类型断言好比其它语言里的类型转换,但是不进行特殊的数据检查和解构。 它没有运行时的影响,只是在编译阶段起作用。 TypeScript会假设你,程序员,已经进行了必须的检查。
简言之,你(编译器)别问我(程序)了,我知道自己在干什么。

Started by user admin Running as SYSTEM Building in workspace /var/jenkins_home/workspace/zq-web The recommended git tool is: NONE using credential jenkins-username > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/zq-web/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url http://39.105.179.91:30080/smart-factory/smart-web.git # timeout=10 Fetching upstream changes from http://39.105.179.91:30080/smart-factory/smart-web.git > git --version # timeout=10 > git --version # 'git version 2.39.5' using GIT_ASKPASS to set credentials > git fetch --tags --force --progress -- http://39.105.179.91:30080/smart-factory/smart-web.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 Checking out Revision 00dafb09bd552fe14c7cf270a553c497223d95b7 (refs/remotes/origin/main) > git config core.sparsecheckout # timeout=10 > git checkout -f 00dafb09bd552fe14c7cf270a553c497223d95b7 # timeout=10 Commit message: "first" > git rev-list --no-walk 00dafb09bd552fe14c7cf270a553c497223d95b7 # timeout=10 [zq-web] $ /bin/sh -xe /tmp/jenkins12597757760880265825.sh + npm config set registry https://registry.npmmirror.com -g + npm install --force npm warn using --force Recommended protections disabled. npm warn ERESOLVE overriding peer dependency npm warn While resolving: vue-echarts@7.0.3 npm warn Found: echarts@6.0.0 npm warn node_modules/echarts npm warn echarts@"^6.0.0" from the root project npm warn npm warn Could not resolve dependency: npm warn peer echarts@"^5.5.1" from vue-echarts@7.0.3 npm warn node_modules/vue-echarts npm warn vue-echarts@"^7.0.3" from the root project npm warn npm warn Conflicting peer dependency: echarts@5.6.0 npm warn node_modules/echarts npm warn peer echarts@"^5.5.1" from vue-echarts@7.0.3 npm warn node_modules/vue-echarts npm warn vue-echarts@"^7.0.3" from the root project removed 125 packages in 845ms 39 packages are looking for funding run `npm fund` for details + npm install --save-dev vite-plugin-node-polyfills crypto-browserify --force npm warn using --force Recommended protections disabled. npm warn ERESOLVE overriding peer dependency npm warn While resolving: vue-echarts@7.0.3 npm warn Found: echarts@6.0.0 npm warn node_modules/echarts npm warn echarts@"^6.0.0" from the root project npm warn npm warn Could not resolve dependency: npm warn peer echarts@"^5.5.1" from vue-echarts@7.0.3 npm warn node_modules/vue-echarts npm warn vue-echarts@"^7.0.3" from the root project npm warn npm warn Conflicting peer dependency: echarts@5.6.0 npm warn node_modules/echarts npm warn peer echarts@"^5.5.1" from vue-echarts@7.0.3 npm warn node_modules/vue-echarts npm warn vue-echarts@"^7.0.3" from the root project added 125 packages in 3s 78 packages are looking for funding run `npm fund` for details + npm run build > vite-project@0.0.0 build > vue-tsc -b && vite build src/components/Menu.vue(58,1): error TS6133: 'router' is declared but its value is never read. src/components/Menu.vue(59,1): error TS6192: All imports in import declaration are unused. src/components/Menu.vue(63,7): error TS6133: 'switchValue' is declared but its value is never read. src/components/Menu.vue(78,7): error TS6133: 'handleSwitch' is declared but its value is never read. src/request/api/record.ts(5,6): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled. src/request/api/record.ts(15,32): error TS7006: Parameter 'data' implicitly has an 'any' type. src/request/api/record.ts(18,33): error TS7006: Parameter 'id' implicitly has an 'any' type. src/request/api/user.ts(5,6): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled. src/request/api/user.ts(21,26): error TS7006: Parameter 'data' implicitly has an 'any' type. src/routes/index.ts(69,41): error TS2307: Cannot find module '@/views/MonitorView.vue' or its corresponding type declarations. src/store/modules/report.ts(13,22): error TS7006: Parameter 'data' implicitly has an 'any' type. src/store/modules/user.ts(17,21): error TS7006: Parameter 'data' implicitly has an 'any' type. src/store/modules/user.ts(34,14): error TS2339: Property 'token' does not exist on type '{ userLogin(data: any): Promise<string>; userLogout(): Promise<string>; } & { userInfo: {}; } & _StoreWithState<"User", { userInfo: {}; }, {}, { userLogin(data: any): Promise<string>; userLogout(): Promise<...>; }> & _StoreWithGetters_Readonly<...> & _StoreWithGetters_Writable<...> & PiniaCustomProperties<...>'. src/store/modules/user.ts(35,14): error TS2339: Property 'username' does not exist on type '{ userLogin(data: any): Promise<string>; userLogout(): Promise<string>; } & { userInfo: {}; } & _StoreWithState<"User", { userInfo: {}; }, {}, { userLogin(data: any): Promise<string>; userLogout(): Promise<...>; }> & _StoreWithGetters_Readonly<...> & _StoreWithGetters_Writable<...> & PiniaCustomProperties<...>'. src/store/modules/user.ts(36,14): error TS2339: Property 'avatar' does not exist on type '{ userLogin(data: any): Promise<string>; userLogout(): Promise<string>; } & { userInfo: {}; } & _StoreWithState<"User", { userInfo: {}; }, {}, { userLogin(data: any): Promise<string>; userLogout(): Promise<...>; }> & _StoreWithGetters_Readonly<...> & _StoreWithGetters_Writable<...> & PiniaCustomProperties<...>'. src/store/modules/user.ts(37,28): error TS2554: Expected 0 arguments, but got 1. src/store/modules/user.ts(41,41): error TS2304: Cannot find name 'result'. src/views/authorityManage/index.vue(144,39): error TS2551: Property 'name1' does not exist on type '{ name: string; region: string; }'. Did you mean 'name'? src/views/authorityManage/index.vue(147,39): error TS2551: Property 'name2' does not exist on type '{ name: string; region: string; }'. Did you mean 'name'? src/views/authorityManage/index.vue(150,39): error TS2551: Property 'name3' does not exist on type '{ name: string; region: string; }'. Did you mean 'name'? src/views/authorityManage/index.vue(153,39): error TS2551: Property 'name4' does not exist on type '{ name: string; region: string; }'. Did you mean 'name'? src/views/authorityManage/index.vue(177,26): error TS2339: Property 'handleUpload' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { Plus: DefineComponent<{}, void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., any>; ... 26 more ...; resetMemberForm: (formEl: any) => void; }, ... 23 more ..., {}>'. src/views/authorityManage/index.vue(194,26): error TS2339: Property 'handleUpload' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { Plus: DefineComponent<{}, void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., any>; ... 26 more ...; resetMemberForm: (formEl: any) => void; }, ... 23 more ..., {}>'. src/views/authorityManage/index.vue(287,7): error TS6133: 'defaultProps' is declared but its value is never read. src/views/authorityManage/index.vue(351,22): error TS7006: Parameter 'tab' implicitly has an 'any' type. src/views/authorityManage/index.vue(351,26): error TS7006: Parameter 'event' implicitly has an 'any' type. src/views/authorityManage/index.vue(364,25): error TS6133: 'node' is declared but its value is never read. src/views/authorityManage/index.vue(364,25): error TS7006: Parameter 'node' implicitly has an 'any' type. src/views/authorityManage/index.vue(364,30): error TS6133: 'data' is declared but its value is never read. src/views/authorityManage/index.vue(364,30): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/authorityManage/index.vue(381,25): error TS7006: Parameter 'index' implicitly has an 'any' type. src/views/authorityManage/index.vue(381,32): error TS7006: Parameter 'row' implicitly has an 'any' type. src/views/authorityManage/index.vue(391,29): error TS7006: Parameter 'index' implicitly has an 'any' type. src/views/authorityManage/index.vue(391,36): error TS7006: Parameter 'row' implicitly has an 'any' type. src/views/authorityManage/index.vue(395,33): error TS7006: Parameter 'formEl' implicitly has an 'any' type. src/views/authorityManage/index.vue(397,26): error TS7006: Parameter 'valid' implicitly has an 'any' type. src/views/authorityManage/index.vue(397,33): error TS7006: Parameter 'fields' implicitly has an 'any' type. src/views/authorityManage/index.vue(406,26): error TS7006: Parameter 'formEl' implicitly has an 'any' type. src/views/authorityManage/index.vue(412,33): error TS7006: Parameter 'formEl' implicitly has an 'any' type. src/views/authorityManage/index.vue(414,26): error TS7006: Parameter 'valid' implicitly has an 'any' type. src/views/authorityManage/index.vue(414,33): error TS7006: Parameter 'fields' implicitly has an 'any' type. src/views/authorityManage/index.vue(423,26): error TS7006: Parameter 'formEl' implicitly has an 'any' type. src/views/crownBlock.vue(82,28): error TS2339: Property 'resetForm' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { formInline: { user: string; region: string; date: string; }; value1: Ref<boolean, boolean>; value2: Ref<boolean, boolean>; list: Ref<...>; }, ... 23 more ..., {}>'. src/views/crownBlock.vue(82,38): error TS2339: Property 'ruleFormRef' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { formInline: { user: string; region: string; date: string; }; value1: Ref<boolean, boolean>; value2: Ref<boolean, boolean>; list: Ref<...>; }, ... 23 more ..., {}>'. src/views/crownBlock.vue(83,43): error TS2339: Property 'onSubmit' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { formInline: { user: string; region: string; date: string; }; value1: Ref<boolean, boolean>; value2: Ref<boolean, boolean>; list: Ref<...>; }, ... 23 more ..., {}>'. src/views/crownBlock.vue(89,22): error TS2339: Property 'tableData' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { formInline: { user: string; region: string; date: string; }; value1: Ref<boolean, boolean>; value2: Ref<boolean, boolean>; list: Ref<...>; }, ... 23 more ..., {}>'. src/views/deliverRecord/deliverDetail.vue(14,19): error TS2339: Property 'cargo_code' does not exist on type 'never'. src/views/deliverRecord/deliverDetail.vue(18,55): error TS2339: Property 'car_schedule_id' does not exist on type '{}'. src/views/deliverRecord/deliverDetail.vue(19,56): error TS2339: Property 'cargo_name' does not exist on type '{}'. src/views/deliverRecord/deliverDetail.vue(20,68): error TS2339: Property 'gross_weight' does not exist on type 'never'. src/views/deliverRecord/deliverDetail.vue(21,56): error TS2339: Property 'car_plate_number' does not exist on type '{}'. src/views/deliverRecord/deliverDetail.vue(22,67): error TS2339: Property 'spec' does not exist on type 'never'. src/views/deliverRecord/deliverDetail.vue(23,57): error TS2339: Property 'warranty_start_date' does not exist on type '{}'. src/views/deliverRecord/deliverDetail.vue(23,88): error TS2339: Property 'warranty_start_date' does not exist on type '{}'. src/views/deliverRecord/deliverDetail.vue(23,126): error TS2339: Property 'warranty_end_date' does not exist on type '{}'. src/views/deliverRecord/deliverDetail.vue(23,155): error TS2339: Property 'warranty_end_date' does not exist on type '{}'. src/views/deliverRecord/deliverDetail.vue(24,68): error TS2339: Property 'cargo_code' does not exist on type 'never'. src/views/deliverRecord/deliverDetail.vue(25,54): error TS2339: Property 'shift_plan' does not exist on type '{}'. src/views/deliverRecord/deliverDetail.vue(29,78): error TS2339: Property 'step_name' does not exist on type 'never'. src/views/deliverRecord/deliverDetail.vue(29,101): error TS2339: Property 'step_name' does not exist on type 'never'. src/views/deliverRecord/deliverDetail.vue(30,51): error TS2339: Property 'operator' does not exist on type 'never'. src/views/deliverRecord/deliverDetail.vue(31,52): error TS2339: Property 'create_time' does not exist on type 'never'. src/views/deliverRecord/deliverDetail.vue(32,51): error TS2339: Property 'car_plate_number' does not exist on type 'never'. src/views/deliverRecord/deliverDetail.vue(35,25): error TS7022: 'item' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. src/views/deliverRecord/deliverDetail.vue(35,33): error TS2448: Block-scoped variable 'item' used before its declaration. src/views/deliverRecord/deliverDetail.vue(46,48): error TS2339: Property 'flow_info' does not exist on type 'never'. src/views/deliverRecord/deliverDetail.vue(133,33): error TS6133: 'ArrowRight' is declared but its value is never read. src/views/deliverRecord/deliverDetail.vue(137,1): error TS6133: 'log' is declared but its value is never read. src/views/deliverRecord/deliverDetail.vue(150,28): error TS7006: Parameter 'index' implicitly has an 'any' type. src/views/deliverRecord/deliverDetail.vue(152,14): error TS2339: Property 'schedule_step_info' does not exist on type '{}'. src/views/deliverRecord/deliverDetail.vue(152,37): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/deliverRecord/deliverDetail.vue(153,24): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. src/views/deliverRecord/deliverDetail.vue(155,26): error TS2339: Property 'step_info' does not exist on type 'never'. src/views/deliverRecord/deliverDetail.vue(155,40): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/deliverRecord/deliverDetail.vue(156,24): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. src/views/deliverRecord/deliverDetail.vue(160,29): error TS2339: Property 'step_name' does not exist on type 'never'. src/views/deliverRecord/deliverDetail.vue(163,3): error TS2554: Expected 2 arguments, but got 1. src/views/deliverRecord/deliverDetail.vue(168,22): error TS7006: Parameter 'tab' implicitly has an 'any' type. src/views/deliverRecord/deliverDetail.vue(168,27): error TS6133: 'event' is declared but its value is never read. src/views/deliverRecord/deliverDetail.vue(168,27): error TS7006: Parameter 'event' implicitly has an 'any' type. src/views/deliverRecord/deliverDetail.vue(172,26): error TS7006: Parameter 'id' implicitly has an 'any' type. src/views/deliverRecord/deliverDetail.vue(174,10): error TS2339: Property 'code' does not exist on type 'AxiosResponse<any, any>'. src/views/deliverRecord/index.vue(22,24): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ handleSearch0: (data: any) => void; handleSearch1: (data: any) => void; handleSearch2: (data: any) => void; handleSearch3: (data: any) => void; }'. No index signature with a parameter of type 'string' was found on type '{ handleSearch0: (data: any) => void; handleSearch1: (data: any) => void; handleSearch2: (data: any) => void; handleSearch3: (data: any) => void; }'. src/views/deliverRecord/index.vue(23,23): error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ handleClear0: () => void; handleClear1: () => void; handleClear2: () => void; handleClear3: () => void; }'. src/views/deliverRecord/index.vue(23,37): error TS2551: Property 'clearMethodName' does not exist on type '{ name: string; input: string; list: never[]; methodName: string; activeName: string; } | { name: string; input: string; list: never[]; methodName: string; activeName?: undefined; }'. Did you mean 'methodName'? Property 'clearMethodName' does not exist on type '{ name: string; input: string; list: never[]; methodName: string; activeName: string; }'. src/views/deliverRecord/index.vue(28,22): error TS2339: Property 'value' does not exist on type 'never'. src/views/deliverRecord/index.vue(29,24): error TS2339: Property 'label' does not exist on type 'never'. src/views/deliverRecord/index.vue(30,24): error TS2339: Property 'value' does not exist on type 'never'. src/views/deliverRecord/index.vue(68,39): error TS2339: Property 'preserveExpanded' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { Search: DefineComponent<{}, void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., any>; ... 22 more ...; handleDetail: (index: any, row: any) => void; }, ... 23 more ..., {}>'. src/views/deliverRecord/index.vue(99,35): error TS6133: 'scope' is declared but its value is never read. src/views/deliverRecord/index.vue(114,34): error TS6133: 'row' is declared but its value is never read. src/views/deliverRecord/index.vue(160,28): error TS2339: Property 'disabled' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { Search: DefineComponent<{}, void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., any>; ... 22 more ...; handleDetail: (index: any, row: any) => void; }, ... 23 more ..., {}>'. src/views/deliverRecord/index.vue(161,30): error TS2339: Property 'background' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { Search: DefineComponent<{}, void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., any>; ... 22 more ...; handleDetail: (index: any, row: any) => void; }, ... 23 more ..., {}>'. src/views/deliverRecord/index.vue(292,23): error TS7006: Parameter 'date' implicitly has an 'any' type. src/views/deliverRecord/index.vue(300,25): error TS7006: Parameter 'status' implicitly has an 'any' type. src/views/deliverRecord/index.vue(307,19): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/deliverRecord/index.vue(313,19): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/deliverRecord/index.vue(319,19): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/deliverRecord/index.vue(325,19): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/deliverRecord/index.vue(326,17): error TS2551: Property 'receiver_name' does not exist on type '{ car_plate_number: string; car_schedule_id: string; cargo_code: string; receive_name: string; limit: number; page: number; search_text: string; sort: string; sorts: string; start: number; state: string; time_condition: { ...; }[]; work_type: string; status: number; }'. Did you mean 'receive_name'? src/views/deliverRecord/index.vue(345,17): error TS2551: Property 'receiver_name' does not exist on type '{ car_plate_number: string; car_schedule_id: string; cargo_code: string; receive_name: string; limit: number; page: number; search_text: string; sort: string; sorts: string; start: number; state: string; time_condition: { ...; }[]; work_type: string; status: number; }'. Did you mean 'receive_name'? src/views/deliverRecord/index.vue(358,15): error TS2551: Property 'receiver_name' does not exist on type '{ car_plate_number: string; car_schedule_id: string; cargo_code: string; receive_name: string; limit: number; page: number; search_text: string; sort: string; sorts: string; start: number; state: string; time_condition: { ...; }[]; work_type: string; status: number; }'. Did you mean 'receive_name'? src/views/deliverRecord/index.vue(374,27): error TS2304: Cannot find name 'TabsPaneContext'. src/views/deliverRecord/index.vue(374,44): error TS6133: 'event' is declared but its value is never read. src/views/deliverRecord/index.vue(384,29): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/deliverRecord/index.vue(387,10): error TS2339: Property 'code' does not exist on type 'AxiosResponse<any, any>'. src/views/deliverRecord/index.vue(390,33): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/deliverRecord/index.vue(400,32): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/deliverRecord/index.vue(402,10): error TS2339: Property 'code' does not exist on type 'AxiosResponse<any, any>'. src/views/deliverRecord/index.vue(404,5): error TS2322: Type '{ label: unknown; value: unknown; }[]' is not assignable to type 'never[]'. Type '{ label: unknown; value: unknown; }' is not assignable to type 'never'. src/views/deliverRecord/index.vue(404,47): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/deliverRecord/index.vue(406,5): error TS2322: Type '{ label: unknown; value: unknown; }[]' is not assignable to type 'never[]'. Type '{ label: unknown; value: unknown; }' is not assignable to type 'never'. src/views/deliverRecord/index.vue(406,48): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/deliverRecord/index.vue(408,5): error TS2322: Type '{ label: unknown; value: unknown; }[]' is not assignable to type 'never[]'. Type '{ label: unknown; value: unknown; }' is not assignable to type 'never'. src/views/deliverRecord/index.vue(408,48): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/deliverRecord/index.vue(410,5): error TS2322: Type '{ label: unknown; value: unknown; }[]' is not assignable to type 'never[]'. Type '{ label: unknown; value: unknown; }' is not assignable to type 'never'. src/views/deliverRecord/index.vue(410,48): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/deliverRecord/index.vue(421,25): error TS6133: 'index' is declared but its value is never read. src/views/deliverRecord/index.vue(421,25): error TS7006: Parameter 'index' implicitly has an 'any' type. src/views/deliverRecord/index.vue(421,31): error TS7006: Parameter 'row' implicitly has an 'any' type. src/views/deliverRecord/index.vue(423,8): error TS2339: Property 'sap_room' does not exist on type '{ name: string; region: string; date1: string; date2: string; delivery: boolean; type: never[]; resource: string; desc: string; }'. src/views/deliverRecord/index.vue(424,8): error TS2339: Property 'calculated_room' does not exist on type '{ name: string; region: string; date1: string; date2: string; delivery: boolean; type: never[]; resource: string; desc: string; }'. src/views/deliverRecord/index.vue(425,8): error TS2339: Property 'small_room' does not exist on type '{ name: string; region: string; date1: string; date2: string; delivery: boolean; type: never[]; resource: string; desc: string; }'. src/views/deliverRecord/index.vue(426,8): error TS2339: Property 'receiver_name' does not exist on type '{ name: string; region: string; date1: string; date2: string; delivery: boolean; type: never[]; resource: string; desc: string; }'. src/views/deliverRecord/index.vue(429,23): error TS7006: Parameter 'index' implicitly has an 'any' type. src/views/deliverRecord/index.vue(429,29): error TS7006: Parameter 'row' implicitly has an 'any' type. src/views/deliverRecord/index.vue(445,26): error TS7006: Parameter 'warrantyDate' implicitly has an 'any' type. src/views/deliverRecord/index.vue(445,40): error TS7006: Parameter 'receiptDate' implicitly has an 'any' type. src/views/deliverRecord/index.vue(451,26): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. src/views/deliverRecord/index.vue(451,36): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. src/views/forkliftView.vue(87,30): error TS2339: Property 'resetForm' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { value1: Ref<boolean, boolean>; value2: Ref<boolean, boolean>; list: Ref<{ order: number; time: number; status: string; }[], { order: number; time: number; status: string; }[] | { ...; }[]>; formInline: { ...; }; tableData: { ...; }[]; }, ... 23 more ...'. src/views/forkliftView.vue(87,40): error TS2339: Property 'ruleFormRef' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { value1: Ref<boolean, boolean>; value2: Ref<boolean, boolean>; list: Ref<{ order: number; time: number; status: string; }[], { order: number; time: number; status: string; }[] | { ...; }[]>; formInline: { ...; }; tableData: { ...; }[]; }, ... 23 more ...'. src/views/forkliftView.vue(88,45): error TS2339: Property 'onSubmit' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { value1: Ref<boolean, boolean>; value2: Ref<boolean, boolean>; list: Ref<{ order: number; time: number; status: string; }[], { order: number; time: number; status: string; }[] | { ...; }[]>; formInline: { ...; }; tableData: { ...; }[]; }, ... 23 more ...'. src/views/forkliftView.vue(118,32): error TS2339: Property 'gridData' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { value1: Ref<boolean, boolean>; value2: Ref<boolean, boolean>; list: Ref<{ order: number; time: number; status: string; }[], { order: number; time: number; status: string; }[] | { ...; }[]>; formInline: { ...; }; tableData: { ...; }[]; }, ... 23 more ...'. src/views/goodsStat/goodsDetail.vue(12,24): error TS2339: Property 'methodMap' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { ruleFormRef: Ref<any, any>; formInline: { user: string; region: string; date: string; }; tableData: { date: string; name: string; address: string; sum: number; }[]; sortsArr: Ref<...>; onSubmit: () => void; resetForm: (formEl: any) => void; }, ... 23...'. src/views/goodsStat/goodsDetail.vue(16,22): error TS2339: Property 'value' does not exist on type 'never'. src/views/goodsStat/goodsDetail.vue(17,24): error TS2339: Property 'label' does not exist on type 'never'. src/views/goodsStat/goodsDetail.vue(18,24): error TS2339: Property 'value' does not exist on type 'never'. src/views/goodsStat/goodsDetail.vue(100,20): error TS7006: Parameter 'formEl' implicitly has an 'any' type. src/views/goodsStat/index.vue(83,26): error TS7016: Could not find a declaration file for module '@/components/LineBarChart.vue'. '/var/jenkins_home/workspace/zq-web/src/components/LineBarChart.vue' implicitly has an 'any' type. src/views/goodsStat/index.vue(84,26): error TS7016: Could not find a declaration file for module '@/components/StackedChart.vue'. '/var/jenkins_home/workspace/zq-web/src/components/StackedChart.vue' implicitly has an 'any' type. src/views/goodsStat/index.vue(88,21): error TS6133: 'name' is declared but its value is never read. src/views/goodsStat/index.vue(88,21): error TS7006: Parameter 'name' implicitly has an 'any' type. src/views/goodsStat/index.vue(88,26): error TS7006: Parameter 'index' implicitly has an 'any' type. src/views/homeView.vue(14,24): error TS2339: Property 'nickname' does not exist on type '{}'. src/views/loginView.vue(74,53): error TS2304: Cannot find name 'ComponentInternalInstance'. src/views/monitorView.vue(18,40): error TS6133: 'value' is declared but its value is never read. src/views/personStat/index.vue(100,23): error TS7016: Could not find a declaration file for module '@/components/RingChart.vue'. '/var/jenkins_home/workspace/zq-web/src/components/RingChart.vue' implicitly has an 'any' type. src/views/personStat/index.vue(148,20): error TS7006: Parameter 'formEl' implicitly has an 'any' type. src/views/receiveRecord/index.vue(22,24): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ handleSearch0: (data: any) => void; handleSearch1: (data: any) => void; handleSearch2: (data: any) => void; handleSearch3: (data: any) => void; }'. No index signature with a parameter of type 'string' was found on type '{ handleSearch0: (data: any) => void; handleSearch1: (data: any) => void; handleSearch2: (data: any) => void; handleSearch3: (data: any) => void; }'. src/views/receiveRecord/index.vue(23,23): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ handleClear0: () => void; handleClear1: () => void; handleClear2: () => void; handleClear3: () => void; }'. No index signature with a parameter of type 'string' was found on type '{ handleClear0: () => void; handleClear1: () => void; handleClear2: () => void; handleClear3: () => void; }'. src/views/receiveRecord/index.vue(28,22): error TS2339: Property 'value' does not exist on type 'never'. src/views/receiveRecord/index.vue(29,24): error TS2339: Property 'label' does not exist on type 'never'. src/views/receiveRecord/index.vue(30,24): error TS2339: Property 'value' does not exist on type 'never'. src/views/receiveRecord/index.vue(68,39): error TS2339: Property 'preserveExpanded' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { Search: DefineComponent<{}, void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., any>; ... 22 more ...; handleDetail: (index: any, row: any) => void; }, ... 23 more ..., {}>'. src/views/receiveRecord/index.vue(100,34): error TS6133: 'row' is declared but its value is never read. src/views/receiveRecord/index.vue(123,35): error TS6133: 'scope' is declared but its value is never read. src/views/receiveRecord/index.vue(150,28): error TS2339: Property 'disabled' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { Search: DefineComponent<{}, void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., any>; ... 22 more ...; handleDetail: (index: any, row: any) => void; }, ... 23 more ..., {}>'. src/views/receiveRecord/index.vue(151,30): error TS2339: Property 'background' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { Search: DefineComponent<{}, void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., any>; ... 22 more ...; handleDetail: (index: any, row: any) => void; }, ... 23 more ..., {}>'. src/views/receiveRecord/index.vue(165,33): error TS2339: Property 'sap_room' does not exist on type '{ name: string; region: string; date1: string; date2: string; delivery: boolean; type: never[]; resource: string; desc: string; }'. src/views/receiveRecord/index.vue(168,33): error TS2339: Property 'calculated_room' does not exist on type '{ name: string; region: string; date1: string; date2: string; delivery: boolean; type: never[]; resource: string; desc: string; }'. src/views/receiveRecord/index.vue(171,33): error TS2339: Property 'small_room' does not exist on type '{ name: string; region: string; date1: string; date2: string; delivery: boolean; type: never[]; resource: string; desc: string; }'. src/views/receiveRecord/index.vue(178,33): error TS2339: Property 'receiver_name' does not exist on type '{ name: string; region: string; date1: string; date2: string; delivery: boolean; type: never[]; resource: string; desc: string; }'. src/views/receiveRecord/index.vue(283,23): error TS7006: Parameter 'date' implicitly has an 'any' type. src/views/receiveRecord/index.vue(291,25): error TS7006: Parameter 'status' implicitly has an 'any' type. src/views/receiveRecord/index.vue(298,19): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/receiveRecord/index.vue(304,19): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/receiveRecord/index.vue(310,19): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/receiveRecord/index.vue(316,19): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/receiveRecord/index.vue(317,17): error TS2551: Property 'receiver_name' does not exist on type '{ car_plate_number: string; car_schedule_id: string; cargo_code: string; receive_name: string; limit: number; page: number; search_text: string; sort: string; sorts: string; start: number; state: string; time_condition: { ...; }[]; work_type: string; status: number; }'. Did you mean 'receive_name'? src/views/receiveRecord/index.vue(336,17): error TS2551: Property 'receiver_name' does not exist on type '{ car_plate_number: string; car_schedule_id: string; cargo_code: string; receive_name: string; limit: number; page: number; search_text: string; sort: string; sorts: string; start: number; state: string; time_condition: { ...; }[]; work_type: string; status: number; }'. Did you mean 'receive_name'? src/views/receiveRecord/index.vue(349,15): error TS2551: Property 'receiver_name' does not exist on type '{ car_plate_number: string; car_schedule_id: string; cargo_code: string; receive_name: string; limit: number; page: number; search_text: string; sort: string; sorts: string; start: number; state: string; time_condition: { ...; }[]; work_type: string; status: number; }'. Did you mean 'receive_name'? src/views/receiveRecord/index.vue(365,27): error TS2304: Cannot find name 'TabsPaneContext'. src/views/receiveRecord/index.vue(365,44): error TS6133: 'event' is declared but its value is never read. src/views/receiveRecord/index.vue(375,29): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/receiveRecord/index.vue(378,10): error TS2339: Property 'code' does not exist on type 'AxiosResponse<any, any>'. src/views/receiveRecord/index.vue(381,33): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/receiveRecord/index.vue(391,32): error TS7006: Parameter 'data' implicitly has an 'any' type. src/views/receiveRecord/index.vue(393,10): error TS2339: Property 'code' does not exist on type 'AxiosResponse<any, any>'. src/views/receiveRecord/index.vue(395,5): error TS2322: Type '{ label: unknown; value: unknown; }[]' is not assignable to type 'never[]'. Type '{ label: unknown; value: unknown; }' is not assignable to type 'never'. src/views/receiveRecord/index.vue(395,47): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/receiveRecord/index.vue(397,5): error TS2322: Type '{ label: unknown; value: unknown; }[]' is not assignable to type 'never[]'. Type '{ label: unknown; value: unknown; }' is not assignable to type 'never'. src/views/receiveRecord/index.vue(397,48): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/receiveRecord/index.vue(399,5): error TS2322: Type '{ label: unknown; value: unknown; }[]' is not assignable to type 'never[]'. Type '{ label: unknown; value: unknown; }' is not assignable to type 'never'. src/views/receiveRecord/index.vue(399,48): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/receiveRecord/index.vue(401,5): error TS2322: Type '{ label: unknown; value: unknown; }[]' is not assignable to type 'never[]'. Type '{ label: unknown; value: unknown; }' is not assignable to type 'never'. src/views/receiveRecord/index.vue(401,48): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/receiveRecord/index.vue(412,25): error TS6133: 'index' is declared but its value is never read. src/views/receiveRecord/index.vue(412,25): error TS7006: Parameter 'index' implicitly has an 'any' type. src/views/receiveRecord/index.vue(412,31): error TS7006: Parameter 'row' implicitly has an 'any' type. src/views/receiveRecord/index.vue(414,8): error TS2339: Property 'sap_room' does not exist on type '{ name: string; region: string; date1: string; date2: string; delivery: boolean; type: never[]; resource: string; desc: string; }'. src/views/receiveRecord/index.vue(415,8): error TS2339: Property 'calculated_room' does not exist on type '{ name: string; region: string; date1: string; date2: string; delivery: boolean; type: never[]; resource: string; desc: string; }'. src/views/receiveRecord/index.vue(416,8): error TS2339: Property 'small_room' does not exist on type '{ name: string; region: string; date1: string; date2: string; delivery: boolean; type: never[]; resource: string; desc: string; }'. src/views/receiveRecord/index.vue(417,8): error TS2339: Property 'receiver_name' does not exist on type '{ name: string; region: string; date1: string; date2: string; delivery: boolean; type: never[]; resource: string; desc: string; }'. src/views/receiveRecord/index.vue(420,23): error TS7006: Parameter 'index' implicitly has an 'any' type. src/views/receiveRecord/index.vue(420,29): error TS7006: Parameter 'row' implicitly has an 'any' type. src/views/receiveRecord/index.vue(436,26): error TS7006: Parameter 'warrantyDate' implicitly has an 'any' type. src/views/receiveRecord/index.vue(436,40): error TS7006: Parameter 'receiptDate' implicitly has an 'any' type. src/views/receiveRecord/index.vue(442,26): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. src/views/receiveRecord/index.vue(442,36): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. src/views/receiveRecord/receiveDetail.vue(14,19): error TS2339: Property 'cargo_code' does not exist on type 'never'. src/views/receiveRecord/receiveDetail.vue(18,55): error TS2339: Property 'car_schedule_id' does not exist on type '{}'. src/views/receiveRecord/receiveDetail.vue(19,56): error TS2339: Property 'cargo_name' does not exist on type '{}'. src/views/receiveRecord/receiveDetail.vue(20,68): error TS2339: Property 'gross_weight' does not exist on type 'never'. src/views/receiveRecord/receiveDetail.vue(21,56): error TS2339: Property 'car_plate_number' does not exist on type '{}'. src/views/receiveRecord/receiveDetail.vue(22,67): error TS2339: Property 'spec' does not exist on type 'never'. src/views/receiveRecord/receiveDetail.vue(23,57): error TS2339: Property 'warranty_start_date' does not exist on type '{}'. src/views/receiveRecord/receiveDetail.vue(23,88): error TS2339: Property 'warranty_start_date' does not exist on type '{}'. src/views/receiveRecord/receiveDetail.vue(23,126): error TS2339: Property 'warranty_end_date' does not exist on type '{}'. src/views/receiveRecord/receiveDetail.vue(23,155): error TS2339: Property 'warranty_end_date' does not exist on type '{}'. src/views/receiveRecord/receiveDetail.vue(24,68): error TS2339: Property 'cargo_code' does not exist on type 'never'. src/views/receiveRecord/receiveDetail.vue(25,67): error TS2339: Property 'net_weight' does not exist on type 'never'. src/views/receiveRecord/receiveDetail.vue(26,55): error TS2339: Property 'receiver_name' does not exist on type '{}'. src/views/receiveRecord/receiveDetail.vue(29,78): error TS2339: Property 'step_name' does not exist on type 'never'. src/views/receiveRecord/receiveDetail.vue(29,101): error TS2339: Property 'step_name' does not exist on type 'never'. src/views/receiveRecord/receiveDetail.vue(30,51): error TS2339: Property 'operator' does not exist on type 'never'. src/views/receiveRecord/receiveDetail.vue(31,52): error TS2339: Property 'create_time' does not exist on type 'never'. src/views/receiveRecord/receiveDetail.vue(32,51): error TS2339: Property 'car_plate_number' does not exist on type 'never'. src/views/receiveRecord/receiveDetail.vue(35,25): error TS7022: 'item' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. src/views/receiveRecord/receiveDetail.vue(35,33): error TS2448: Block-scoped variable 'item' used before its declaration. src/views/receiveRecord/receiveDetail.vue(105,33): error TS6133: 'ArrowRight' is declared but its value is never read. src/views/receiveRecord/receiveDetail.vue(109,1): error TS6133: 'log' is declared but its value is never read. src/views/receiveRecord/receiveDetail.vue(122,28): error TS7006: Parameter 'index' implicitly has an 'any' type. src/views/receiveRecord/receiveDetail.vue(124,14): error TS2339: Property 'schedule_step_info' does not exist on type '{}'. src/views/receiveRecord/receiveDetail.vue(124,37): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/receiveRecord/receiveDetail.vue(125,24): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. src/views/receiveRecord/receiveDetail.vue(127,26): error TS2339: Property 'step_info' does not exist on type 'never'. src/views/receiveRecord/receiveDetail.vue(127,40): error TS7006: Parameter 'item' implicitly has an 'any' type. src/views/receiveRecord/receiveDetail.vue(128,24): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. src/views/receiveRecord/receiveDetail.vue(132,29): error TS2339: Property 'step_name' does not exist on type 'never'. src/views/receiveRecord/receiveDetail.vue(135,3): error TS2554: Expected 2 arguments, but got 1. src/views/receiveRecord/receiveDetail.vue(140,22): error TS7006: Parameter 'tab' implicitly has an 'any' type. src/views/receiveRecord/receiveDetail.vue(140,27): error TS6133: 'event' is declared but its value is never read. src/views/receiveRecord/receiveDetail.vue(140,27): error TS7006: Parameter 'event' implicitly has an 'any' type. src/views/receiveRecord/receiveDetail.vue(144,26): error TS7006: Parameter 'id' implicitly has an 'any' type. src/views/receiveRecord/receiveDetail.vue(146,10): error TS2339: Property 'code' does not exist on type 'AxiosResponse<any, any>'. vite.config.ts(9,25): error TS2307: Cannot find module 'path' or its corresponding type declarations. vite.config.ts(34,20): error TS2304: Cannot find name '__dirname'. Build step 'Execute shell' marked build as failure SSH: Current build result is [FAILURE], not going to run. Finished: FAILURE
最新发布
10-31
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值