From df7beed6c8aad523ab34d4e165871d61986987b0 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 1 May 2024 19:01:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20js=E6=94=B9=E6=88=90ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/{dept.js => dept.ts} | 0 src/api/{device.js => device.ts} | 0 src/api/{dict.js => dict.ts} | 0 src/api/{index.js => index.ts} | 0 src/api/{location.js => location.ts} | 0 src/api/{login.js => login.ts} | 0 src/api/{mold.js => mold.ts} | 0 src/api/{overhaulOrder.js => overhaulOrder.ts} | 0 src/api/{repairOrder.js => repairOrder.ts} | 0 src/api/{report.js => report.ts} | 0 src/api/{spareParts.js => spareParts.ts} | 0 ...ePartsApplication.js => sparePartsApplication.ts} | 0 ...ionApprove.js => sparePartsApplicationApprove.ts} | 0 ...rderList.js => sparePartsServiceWorkOrderList.ts} | 0 src/api/{spotCheckOrder.js => spotCheckOrder.ts} | 0 src/api/{upkeepOrder.js => upkeepOrder.ts} | 0 src/api/{upload.js => upload.ts} | 0 src/api/{user.js => user.ts} | 0 src/components/item/slectItemList.vue | 2 +- src/pages/device/index.vue | 2 +- src/pages/deviceReport/addForm.vue | 12 ++++++------ src/pages/deviceReport/index.vue | 2 +- src/pages/deviceReport/myDeviceReport.vue | 2 +- src/pages/index.vue | 2 +- src/pages/mine/changePassword.vue | 2 +- src/pages/mold/index.vue | 2 +- src/pages/overhaulOrder/addForm.vue | 12 ++++++------ src/pages/overhaulOrder/addServiceRecord.vue | 8 ++++---- src/pages/overhaulOrder/detail.vue | 2 +- src/pages/overhaulOrder/index.vue | 2 +- src/pages/overhaulOrder/reqairOrderList.vue | 2 +- src/pages/repairOrder/addForm.vue | 8 ++++---- src/pages/repairOrder/addServiceRecord.vue | 6 +++--- src/pages/repairOrder/detail.vue | 4 ++-- src/pages/repairOrder/index.vue | 2 +- src/pages/repairOrder/myOrder.vue | 2 +- src/pages/repairOrder/transfer.vue | 10 +++++----- src/pages/spareParts/index.vue | 2 +- src/pages/sparePartsApplication/addForm.vue | 10 +++++----- src/pages/sparePartsApplication/detail.vue | 4 ++-- src/pages/sparePartsApplication/index.vue | 2 +- .../mySparePartsApplication.vue | 2 +- src/pages/sparePartsApplicationApprove/index.vue | 2 +- .../mySparePartsApplicationApprove.vue | 2 +- src/pages/sparePartsServiceWorkOrderList/addForm.vue | 8 ++++---- .../mySparePartsService.vue | 2 +- src/pages/spotCheckOrder/addForm.vue | 8 ++++---- src/pages/spotCheckOrder/detail.vue | 6 +++--- src/pages/spotCheckOrder/index.vue | 2 +- src/pages/spotCheckOrder/myOrder.vue | 2 +- src/pages/upkeepOrder/addServiceRecord.vue | 8 ++++---- src/pages/upkeepOrder/detail.vue | 4 ++-- src/pages/upkeepOrder/index.vue | 2 +- src/pages/upkeepOrder/myOrder.vue | 2 +- 55 files changed, 77 insertions(+), 77 deletions(-) rename src/api/{dept.js => dept.ts} (100%) rename src/api/{device.js => device.ts} (100%) rename src/api/{dict.js => dict.ts} (100%) rename src/api/{index.js => index.ts} (100%) rename src/api/{location.js => location.ts} (100%) rename src/api/{login.js => login.ts} (100%) rename src/api/{mold.js => mold.ts} (100%) rename src/api/{overhaulOrder.js => overhaulOrder.ts} (100%) rename src/api/{repairOrder.js => repairOrder.ts} (100%) rename src/api/{report.js => report.ts} (100%) rename src/api/{spareParts.js => spareParts.ts} (100%) rename src/api/{sparePartsApplication.js => sparePartsApplication.ts} (100%) rename src/api/{sparePartsApplicationApprove.js => sparePartsApplicationApprove.ts} (100%) rename src/api/{sparePartsServiceWorkOrderList.js => sparePartsServiceWorkOrderList.ts} (100%) rename src/api/{spotCheckOrder.js => spotCheckOrder.ts} (100%) rename src/api/{upkeepOrder.js => upkeepOrder.ts} (100%) rename src/api/{upload.js => upload.ts} (100%) rename src/api/{user.js => user.ts} (100%) diff --git a/.env.development b/.env.development index c3f886a..e69c543 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ -VITE_BASE_URL=http://192.168.0.106:12080/admin-api +VITE_BASE_URL=http://localhost:12080/admin-api #VITE_BASE_URL=http://dev.ccwin-in.com:25202/api/admin-api VITE_BASE_URL_IMAGE=http://192.168.0.106:12080/admin-api diff --git a/src/api/dept.js b/src/api/dept.ts similarity index 100% rename from src/api/dept.js rename to src/api/dept.ts diff --git a/src/api/device.js b/src/api/device.ts similarity index 100% rename from src/api/device.js rename to src/api/device.ts diff --git a/src/api/dict.js b/src/api/dict.ts similarity index 100% rename from src/api/dict.js rename to src/api/dict.ts diff --git a/src/api/index.js b/src/api/index.ts similarity index 100% rename from src/api/index.js rename to src/api/index.ts diff --git a/src/api/location.js b/src/api/location.ts similarity index 100% rename from src/api/location.js rename to src/api/location.ts diff --git a/src/api/login.js b/src/api/login.ts similarity index 100% rename from src/api/login.js rename to src/api/login.ts diff --git a/src/api/mold.js b/src/api/mold.ts similarity index 100% rename from src/api/mold.js rename to src/api/mold.ts diff --git a/src/api/overhaulOrder.js b/src/api/overhaulOrder.ts similarity index 100% rename from src/api/overhaulOrder.js rename to src/api/overhaulOrder.ts diff --git a/src/api/repairOrder.js b/src/api/repairOrder.ts similarity index 100% rename from src/api/repairOrder.js rename to src/api/repairOrder.ts diff --git a/src/api/report.js b/src/api/report.ts similarity index 100% rename from src/api/report.js rename to src/api/report.ts diff --git a/src/api/spareParts.js b/src/api/spareParts.ts similarity index 100% rename from src/api/spareParts.js rename to src/api/spareParts.ts diff --git a/src/api/sparePartsApplication.js b/src/api/sparePartsApplication.ts similarity index 100% rename from src/api/sparePartsApplication.js rename to src/api/sparePartsApplication.ts diff --git a/src/api/sparePartsApplicationApprove.js b/src/api/sparePartsApplicationApprove.ts similarity index 100% rename from src/api/sparePartsApplicationApprove.js rename to src/api/sparePartsApplicationApprove.ts diff --git a/src/api/sparePartsServiceWorkOrderList.js b/src/api/sparePartsServiceWorkOrderList.ts similarity index 100% rename from src/api/sparePartsServiceWorkOrderList.js rename to src/api/sparePartsServiceWorkOrderList.ts diff --git a/src/api/spotCheckOrder.js b/src/api/spotCheckOrder.ts similarity index 100% rename from src/api/spotCheckOrder.js rename to src/api/spotCheckOrder.ts diff --git a/src/api/upkeepOrder.js b/src/api/upkeepOrder.ts similarity index 100% rename from src/api/upkeepOrder.js rename to src/api/upkeepOrder.ts diff --git a/src/api/upload.js b/src/api/upload.ts similarity index 100% rename from src/api/upload.js rename to src/api/upload.ts diff --git a/src/api/user.js b/src/api/user.ts similarity index 100% rename from src/api/user.js rename to src/api/user.ts diff --git a/src/components/item/slectItemList.vue b/src/components/item/slectItemList.vue index 70cdb35..8c67e40 100644 --- a/src/components/item/slectItemList.vue +++ b/src/components/item/slectItemList.vue @@ -39,7 +39,7 @@ import { onLoad, } from '@dcloudio/uni-app' - import * as repairOrderApi from "@/api/repairOrder.js" + import * as repairOrderApi from "@/api/repairOrder" const props = defineProps({ isShowSelectItem: { diff --git a/src/pages/device/index.vue b/src/pages/device/index.vue index f8aa637..81e82a4 100644 --- a/src/pages/device/index.vue +++ b/src/pages/device/index.vue @@ -50,7 +50,7 @@ import { getAccessToken } from '@/utils/auth' - import * as deviceApi from "@/api/device.js" + import * as deviceApi from "@/api/device" import Search from '../../components/search/index.vue' const { proxy } = getCurrentInstance() const params = ref({ diff --git a/src/pages/deviceReport/addForm.vue b/src/pages/deviceReport/addForm.vue index ce41fb3..bbdcdbc 100644 --- a/src/pages/deviceReport/addForm.vue +++ b/src/pages/deviceReport/addForm.vue @@ -70,12 +70,12 @@ ref, getCurrentInstance } from 'vue' - import * as deviceApi from "@/api/device.js" - import * as reportApi from "@/api/report.js" - import * as moldApi from "@/api/mold.js" - import * as dictApi from "@/api/dict.js" - import * as uploadApi from "@/api/upload.js" - import * as deptApi from "@/api/dept.js" + import * as deviceApi from "@/api/device" + import * as reportApi from "@/api/report" + import * as moldApi from "@/api/mold" + import * as dictApi from "@/api/dict" + import * as uploadApi from "@/api/upload" + import * as deptApi from "@/api/dept" const { proxy } = getCurrentInstance() const loading = ref(false) const type = ref('') diff --git a/src/pages/deviceReport/index.vue b/src/pages/deviceReport/index.vue index e10f5e8..9604490 100644 --- a/src/pages/deviceReport/index.vue +++ b/src/pages/deviceReport/index.vue @@ -71,7 +71,7 @@ ref, getCurrentInstance } from 'vue' - import * as reportApi from "@/api/report.js" + import * as reportApi from "@/api/report" import { useCountStore } from '@/store' // 获取自定义的store diff --git a/src/pages/deviceReport/myDeviceReport.vue b/src/pages/deviceReport/myDeviceReport.vue index 868849c..10ac040 100644 --- a/src/pages/deviceReport/myDeviceReport.vue +++ b/src/pages/deviceReport/myDeviceReport.vue @@ -59,7 +59,7 @@ ref, getCurrentInstance } from 'vue' - import * as reportApi from "@/api/report.js" + import * as reportApi from "@/api/report" const { proxy } = getCurrentInstance() const params = ref({ pageNo: 1, diff --git a/src/pages/index.vue b/src/pages/index.vue index 6cd4863..69094de 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -94,7 +94,7 @@ } from '@/utils/auth' import { storeToRefs } from 'pinia' import { useCountStore } from '@/store' - import * as sparePartsApplicationApproveApi from "@/api/sparePartsApplicationApprove.js" + import * as sparePartsApplicationApproveApi from "@/api/sparePartsApplicationApprove" const { proxy } = getCurrentInstance() console.log(proxy.$plugins) diff --git a/src/pages/mine/changePassword.vue b/src/pages/mine/changePassword.vue index 1dcadcd..12ba936 100644 --- a/src/pages/mine/changePassword.vue +++ b/src/pages/mine/changePassword.vue @@ -29,7 +29,7 @@ ref, getCurrentInstance } from 'vue' - import * as userApi from "@/api/user.js" + import * as userApi from "@/api/user" const { proxy } = getCurrentInstance() const newPassword = ref('') const oldPassword = ref('') diff --git a/src/pages/mold/index.vue b/src/pages/mold/index.vue index d04e644..609afc9 100644 --- a/src/pages/mold/index.vue +++ b/src/pages/mold/index.vue @@ -51,7 +51,7 @@ import { getAccessToken } from '@/utils/auth' - import * as moldApi from "@/api/mold.js" + import * as moldApi from "@/api/mold" import Search from '../../components/search/index.vue' const { proxy } = getCurrentInstance() const params = ref({ diff --git a/src/pages/overhaulOrder/addForm.vue b/src/pages/overhaulOrder/addForm.vue index 4f36151..f1fb474 100644 --- a/src/pages/overhaulOrder/addForm.vue +++ b/src/pages/overhaulOrder/addForm.vue @@ -107,12 +107,12 @@ ref, getCurrentInstance } from 'vue' - import * as overhaulOrderApi from "@/api/overhaulOrder.js" - import * as moldApi from "@/api/mold.js" - import * as dictApi from "@/api/dict.js" - import * as repairOrderApi from "@/api/repairOrder.js" - import * as deviceApi from "@/api/device.js" - import * as deptApi from "@/api/dept.js" + import * as overhaulOrderApi from "@/api/overhaulOrder" + import * as moldApi from "@/api/mold" + import * as dictApi from "@/api/dict" + import * as repairOrderApi from "@/api/repairOrder" + import * as deviceApi from "@/api/device" + import * as deptApi from "@/api/dept" const { proxy } = getCurrentInstance() const loading = ref(false) diff --git a/src/pages/overhaulOrder/addServiceRecord.vue b/src/pages/overhaulOrder/addServiceRecord.vue index a52a1ad..21500ff 100644 --- a/src/pages/overhaulOrder/addServiceRecord.vue +++ b/src/pages/overhaulOrder/addServiceRecord.vue @@ -148,10 +148,10 @@ ref, getCurrentInstance } from 'vue' - import * as overhaulOrderApi from "@/api/overhaulOrder.js" - import * as sparePartsApi from "@/api/spareParts.js" - import * as deptApi from "@/api/dept.js" - import * as dictApi from "@/api/dict.js" + import * as overhaulOrderApi from "@/api/overhaulOrder" + import * as sparePartsApi from "@/api/spareParts" + import * as deptApi from "@/api/dept" + import * as dictApi from "@/api/dict" import SelectItemList from "../../components/item/slectItemList.vue" const { proxy} = getCurrentInstance() const loading = ref(false) diff --git a/src/pages/overhaulOrder/detail.vue b/src/pages/overhaulOrder/detail.vue index 5f863ca..3bba058 100644 --- a/src/pages/overhaulOrder/detail.vue +++ b/src/pages/overhaulOrder/detail.vue @@ -163,7 +163,7 @@ ref, getCurrentInstance } from 'vue' - import * as overhaulOrderApi from "@/api/overhaulOrder.js" + import * as overhaulOrderApi from "@/api/overhaulOrder" import { useCountStore } from '@/store' const { proxy } = getCurrentInstance() diff --git a/src/pages/overhaulOrder/index.vue b/src/pages/overhaulOrder/index.vue index 72aaa21..0f33ed2 100644 --- a/src/pages/overhaulOrder/index.vue +++ b/src/pages/overhaulOrder/index.vue @@ -69,7 +69,7 @@ ref, getCurrentInstance } from 'vue' - import * as overhaulOrderApi from "@/api/overhaulOrder.js" + import * as overhaulOrderApi from "@/api/overhaulOrder" import { useCountStore } from '@/store' const store = useCountStore() const isEngineer = ref(false) diff --git a/src/pages/overhaulOrder/reqairOrderList.vue b/src/pages/overhaulOrder/reqairOrderList.vue index 941c154..e5aa69c 100644 --- a/src/pages/overhaulOrder/reqairOrderList.vue +++ b/src/pages/overhaulOrder/reqairOrderList.vue @@ -65,7 +65,7 @@ getCurrentInstance } from 'vue' - import * as repairOrderApi from "@/api/repairOrder.js" + import * as repairOrderApi from "@/api/repairOrder" const { proxy } = getCurrentInstance() const repairOrderList = ref([]) diff --git a/src/pages/repairOrder/addForm.vue b/src/pages/repairOrder/addForm.vue index d54200f..44fef00 100644 --- a/src/pages/repairOrder/addForm.vue +++ b/src/pages/repairOrder/addForm.vue @@ -90,10 +90,10 @@ ref, getCurrentInstance } from 'vue' - import * as deviceApi from "@/api/device.js" - import * as moldApi from "@/api/mold.js" - import * as dictApi from "@/api/dict.js" - import * as repairOrderApi from "@/api/repairOrder.js" + import * as deviceApi from "@/api/device" + import * as moldApi from "@/api/mold" + import * as dictApi from "@/api/dict" + import * as repairOrderApi from "@/api/repairOrder" import { useCountStore } from '@/store' const { proxy } = getCurrentInstance() diff --git a/src/pages/repairOrder/addServiceRecord.vue b/src/pages/repairOrder/addServiceRecord.vue index f1bd229..b245830 100644 --- a/src/pages/repairOrder/addServiceRecord.vue +++ b/src/pages/repairOrder/addServiceRecord.vue @@ -138,9 +138,9 @@ ref, getCurrentInstance } from 'vue' - import * as repairOrderApi from "@/api/repairOrder.js" - import * as sparePartsApi from "@/api/spareParts.js" - import * as deptApi from "@/api/dept.js" + import * as repairOrderApi from "@/api/repairOrder" + import * as sparePartsApi from "@/api/spareParts" + import * as deptApi from "@/api/dept" import SelectItemList from "../../components/item/slectItemList.vue" const { proxy } = getCurrentInstance() diff --git a/src/pages/repairOrder/detail.vue b/src/pages/repairOrder/detail.vue index 2dafd7e..b7dd1b8 100644 --- a/src/pages/repairOrder/detail.vue +++ b/src/pages/repairOrder/detail.vue @@ -284,8 +284,8 @@ ref, getCurrentInstance } from 'vue' - import * as dictApi from "@/api/dict.js" - import * as repairOrderApi from "@/api/repairOrder.js" + import * as dictApi from "@/api/dict" + import * as repairOrderApi from "@/api/repairOrder" import { useCountStore } from '@/store' const { proxy } = getCurrentInstance() diff --git a/src/pages/repairOrder/index.vue b/src/pages/repairOrder/index.vue index b160017..b64703e 100644 --- a/src/pages/repairOrder/index.vue +++ b/src/pages/repairOrder/index.vue @@ -69,7 +69,7 @@ getCurrentInstance, nextTick } from 'vue' - import * as repairOrderApi from "@/api/repairOrder.js" + import * as repairOrderApi from "@/api/repairOrder" import { useCountStore } from '@/store' const { proxy } = getCurrentInstance() diff --git a/src/pages/repairOrder/myOrder.vue b/src/pages/repairOrder/myOrder.vue index 01e323a..c31ace9 100644 --- a/src/pages/repairOrder/myOrder.vue +++ b/src/pages/repairOrder/myOrder.vue @@ -78,7 +78,7 @@ ref, getCurrentInstance } from 'vue' - import * as repairOrderApi from "@/api/repairOrder.js" + import * as repairOrderApi from "@/api/repairOrder" import { useCountStore } from '@/store' const { proxy } = getCurrentInstance() diff --git a/src/pages/repairOrder/transfer.vue b/src/pages/repairOrder/transfer.vue index e15a05f..ee1fe16 100644 --- a/src/pages/repairOrder/transfer.vue +++ b/src/pages/repairOrder/transfer.vue @@ -97,11 +97,11 @@ ref, getCurrentInstance } from 'vue' - import * as deviceApi from "@/api/device.js" - import * as moldApi from "@/api/mold.js" - import * as dictApi from "@/api/dict.js" - import * as repairOrderApi from "@/api/repairOrder.js" - import * as deptApi from "@/api/dept.js" + import * as deviceApi from "@/api/device" + import * as moldApi from "@/api/mold" + import * as dictApi from "@/api/dict" + import * as repairOrderApi from "@/api/repairOrder" + import * as deptApi from "@/api/dept" const { proxy } = getCurrentInstance() const loading = ref(false) diff --git a/src/pages/spareParts/index.vue b/src/pages/spareParts/index.vue index dd1130f..cd91128 100644 --- a/src/pages/spareParts/index.vue +++ b/src/pages/spareParts/index.vue @@ -49,7 +49,7 @@ import { getAccessToken } from '@/utils/auth' - import * as sparePartsApi from "@/api/spareParts.js" + import * as sparePartsApi from "@/api/spareParts" import Search from '../../components/search/index.vue' const { proxy } = getCurrentInstance() const params = ref({ diff --git a/src/pages/sparePartsApplication/addForm.vue b/src/pages/sparePartsApplication/addForm.vue index b257d78..c45ce53 100644 --- a/src/pages/sparePartsApplication/addForm.vue +++ b/src/pages/sparePartsApplication/addForm.vue @@ -129,11 +129,11 @@ ref, getCurrentInstance } from 'vue' - import * as sparePartsApplicationApi from "@/api/sparePartsApplication.js" - import * as sparePartsApi from "@/api/spareParts.js" - import * as deviceApi from "@/api/device.js" - import * as dictApi from "@/api/dict.js" - import * as moldApi from "@/api/mold.js" + import * as sparePartsApplicationApi from "@/api/sparePartsApplication" + import * as sparePartsApi from "@/api/spareParts" + import * as deviceApi from "@/api/device" + import * as dictApi from "@/api/dict" + import * as moldApi from "@/api/mold" const { proxy } = getCurrentInstance() const loading = ref(false) diff --git a/src/pages/sparePartsApplication/detail.vue b/src/pages/sparePartsApplication/detail.vue index 513a3bd..e5eed1e 100644 --- a/src/pages/sparePartsApplication/detail.vue +++ b/src/pages/sparePartsApplication/detail.vue @@ -56,8 +56,8 @@ ref, getCurrentInstance } from 'vue' - import * as sparePartsApplicationApi from "@/api/sparePartsApplication.js" - import * as sparePartsApplicationApproveApi from "@/api/sparePartsApplicationApprove.js" + import * as sparePartsApplicationApi from "@/api/sparePartsApplication" + import * as sparePartsApplicationApproveApi from "@/api/sparePartsApplicationApprove" const { proxy } = getCurrentInstance() const number = ref('') const data = ref({}) diff --git a/src/pages/sparePartsApplication/index.vue b/src/pages/sparePartsApplication/index.vue index 1a03734..46e9ad2 100644 --- a/src/pages/sparePartsApplication/index.vue +++ b/src/pages/sparePartsApplication/index.vue @@ -61,7 +61,7 @@ ref, getCurrentInstance } from 'vue' - import * as sparePartsApplicationApi from "@/api/sparePartsApplication.js" + import * as sparePartsApplicationApi from "@/api/sparePartsApplication" const { proxy } = getCurrentInstance() const params = ref({ pageNo: 1, diff --git a/src/pages/sparePartsApplication/mySparePartsApplication.vue b/src/pages/sparePartsApplication/mySparePartsApplication.vue index 8be18e5..769d902 100644 --- a/src/pages/sparePartsApplication/mySparePartsApplication.vue +++ b/src/pages/sparePartsApplication/mySparePartsApplication.vue @@ -60,7 +60,7 @@ ref, getCurrentInstance } from 'vue' - import * as sparePartsApplicationApi from "@/api/sparePartsApplication.js" + import * as sparePartsApplicationApi from "@/api/sparePartsApplication" const { proxy } = getCurrentInstance() const params = ref({ pageNo: 1, diff --git a/src/pages/sparePartsApplicationApprove/index.vue b/src/pages/sparePartsApplicationApprove/index.vue index a98d16a..83af593 100644 --- a/src/pages/sparePartsApplicationApprove/index.vue +++ b/src/pages/sparePartsApplicationApprove/index.vue @@ -60,7 +60,7 @@ ref, getCurrentInstance } from 'vue' - import * as sparePartsApplicationApproveApi from "@/api/sparePartsApplicationApprove.js" + import * as sparePartsApplicationApproveApi from "@/api/sparePartsApplicationApprove" const { proxy } = getCurrentInstance() const params = ref({ pageNo: 1, diff --git a/src/pages/sparePartsApplicationApprove/mySparePartsApplicationApprove.vue b/src/pages/sparePartsApplicationApprove/mySparePartsApplicationApprove.vue index 3fa5f10..bb54752 100644 --- a/src/pages/sparePartsApplicationApprove/mySparePartsApplicationApprove.vue +++ b/src/pages/sparePartsApplicationApprove/mySparePartsApplicationApprove.vue @@ -60,7 +60,7 @@ ref, getCurrentInstance } from 'vue' - import * as sparePartsApplicationApproveApi from "@/api/sparePartsApplicationApprove.js" + import * as sparePartsApplicationApproveApi from "@/api/sparePartsApplicationApprove" const { proxy } = getCurrentInstance() const params = ref({ diff --git a/src/pages/sparePartsServiceWorkOrderList/addForm.vue b/src/pages/sparePartsServiceWorkOrderList/addForm.vue index 30c3bca..4314f4a 100644 --- a/src/pages/sparePartsServiceWorkOrderList/addForm.vue +++ b/src/pages/sparePartsServiceWorkOrderList/addForm.vue @@ -108,10 +108,10 @@ ref, getCurrentInstance } from 'vue' - import * as sparePartsApi from "@/api/spareParts.js" - import * as sparePartsServiceWorkOrderListApi from "@/api/sparePartsServiceWorkOrderList.js" - import * as dictApi from "@/api/dict.js" - import * as locationApi from "@/api/location.js" + import * as sparePartsApi from "@/api/spareParts" + import * as sparePartsServiceWorkOrderListApi from "@/api/sparePartsServiceWorkOrderList" + import * as dictApi from "@/api/dict" + import * as locationApi from "@/api/location" const { proxy } = getCurrentInstance() const loading = ref(false) const type = ref('') diff --git a/src/pages/sparePartsServiceWorkOrderList/mySparePartsService.vue b/src/pages/sparePartsServiceWorkOrderList/mySparePartsService.vue index 9e5a000..f999bb5 100644 --- a/src/pages/sparePartsServiceWorkOrderList/mySparePartsService.vue +++ b/src/pages/sparePartsServiceWorkOrderList/mySparePartsService.vue @@ -66,7 +66,7 @@ ref, getCurrentInstance } from 'vue' - import * as sparePartsServiceWorkOrderListApi from "@/api/sparePartsServiceWorkOrderList.js" + import * as sparePartsServiceWorkOrderListApi from "@/api/sparePartsServiceWorkOrderList" const { proxy } = getCurrentInstance() const params = ref({ diff --git a/src/pages/spotCheckOrder/addForm.vue b/src/pages/spotCheckOrder/addForm.vue index a1642d6..37e8dba 100644 --- a/src/pages/spotCheckOrder/addForm.vue +++ b/src/pages/spotCheckOrder/addForm.vue @@ -97,10 +97,10 @@ getCurrentInstance } from 'vue' - import * as deviceApi from "@/api/device.js" - import * as moldApi from "@/api/mold.js" - import * as spotCheckOrderApi from "@/api/spotCheckOrder.js" - import * as dictApi from "@/api/dict.js" + import * as deviceApi from "@/api/device" + import * as moldApi from "@/api/mold" + import * as spotCheckOrderApi from "@/api/spotCheckOrder" + import * as dictApi from "@/api/dict" import { useCountStore } from '@/store' const { proxy } = getCurrentInstance() diff --git a/src/pages/spotCheckOrder/detail.vue b/src/pages/spotCheckOrder/detail.vue index 9ee814a..7440aa4 100644 --- a/src/pages/spotCheckOrder/detail.vue +++ b/src/pages/spotCheckOrder/detail.vue @@ -129,10 +129,10 @@ ref, getCurrentInstance } from 'vue' - import * as dictApi from "@/api/dict.js" - import * as repairOrderApi from "@/api/repairOrder.js" + import * as dictApi from "@/api/dict" + import * as repairOrderApi from "@/api/repairOrder" import { useCountStore } from '@/store' - import * as spotCheckOrderApi from "@/api/spotCheckOrder.js" + import * as spotCheckOrderApi from "@/api/spotCheckOrder" const { proxy } = getCurrentInstance() // 获取自定义的store diff --git a/src/pages/spotCheckOrder/index.vue b/src/pages/spotCheckOrder/index.vue index 7060915..14dff80 100644 --- a/src/pages/spotCheckOrder/index.vue +++ b/src/pages/spotCheckOrder/index.vue @@ -70,7 +70,7 @@ getCurrentInstance, nextTick } from 'vue' - import * as spotCheckOrderApi from "@/api/spotCheckOrder.js" + import * as spotCheckOrderApi from "@/api/spotCheckOrder" import { useCountStore } from '@/store' const { proxy } = getCurrentInstance() diff --git a/src/pages/spotCheckOrder/myOrder.vue b/src/pages/spotCheckOrder/myOrder.vue index f45162d..493169e 100644 --- a/src/pages/spotCheckOrder/myOrder.vue +++ b/src/pages/spotCheckOrder/myOrder.vue @@ -63,7 +63,7 @@ ref, getCurrentInstance } from 'vue' - import * as spotCheckOrderApi from "@/api/spotCheckOrder.js" + import * as spotCheckOrderApi from "@/api/spotCheckOrder" import { useCountStore } from '@/store' const { proxy } = getCurrentInstance() diff --git a/src/pages/upkeepOrder/addServiceRecord.vue b/src/pages/upkeepOrder/addServiceRecord.vue index 0c05337..39fe281 100644 --- a/src/pages/upkeepOrder/addServiceRecord.vue +++ b/src/pages/upkeepOrder/addServiceRecord.vue @@ -149,10 +149,10 @@ ref, getCurrentInstance } from 'vue' - import * as upkeepOrderApi from "@/api/upkeepOrder.js" - import * as sparePartsApi from "@/api/spareParts.js" - import * as deptApi from "@/api/dept.js" - import * as dictApi from "@/api/dict.js" + import * as upkeepOrderApi from "@/api/upkeepOrder" + import * as sparePartsApi from "@/api/spareParts" + import * as deptApi from "@/api/dept" + import * as dictApi from "@/api/dict" import SelectItemList from "../../components/item/slectItemList.vue" const { proxy} = getCurrentInstance() const loading = ref(false) diff --git a/src/pages/upkeepOrder/detail.vue b/src/pages/upkeepOrder/detail.vue index c76c75e..2cef5ec 100644 --- a/src/pages/upkeepOrder/detail.vue +++ b/src/pages/upkeepOrder/detail.vue @@ -177,8 +177,8 @@ ref, getCurrentInstance } from 'vue' - import * as moldApi from "@/api/mold.js" - import * as upkeepOrderApi from "@/api/upkeepOrder.js" + import * as moldApi from "@/api/mold" + import * as upkeepOrderApi from "@/api/upkeepOrder" const { proxy } = getCurrentInstance() const list = ref([{ name: '设备信息' diff --git a/src/pages/upkeepOrder/index.vue b/src/pages/upkeepOrder/index.vue index f151548..6e38f4f 100644 --- a/src/pages/upkeepOrder/index.vue +++ b/src/pages/upkeepOrder/index.vue @@ -61,7 +61,7 @@ ref, getCurrentInstance } from 'vue' - import * as upkeepOrderApi from "@/api/upkeepOrder.js" + import * as upkeepOrderApi from "@/api/upkeepOrder" const { proxy } = getCurrentInstance() const params = ref({ pageNo: 1, diff --git a/src/pages/upkeepOrder/myOrder.vue b/src/pages/upkeepOrder/myOrder.vue index a40a2a7..78348cf 100644 --- a/src/pages/upkeepOrder/myOrder.vue +++ b/src/pages/upkeepOrder/myOrder.vue @@ -76,7 +76,7 @@ ref, getCurrentInstance } from 'vue' - import * as upkeepOrderApi from "@/api/upkeepOrder.js" + import * as upkeepOrderApi from "@/api/upkeepOrder" const { proxy } = getCurrentInstance() const params = ref({ pageNo: 1,