Browse Source

打包后后端地址修改

master_hella_20240701
liuchen864 5 months ago
parent
commit
1f89fdaf74
  1. 5
      .env.development
  2. 43
      .env.hella13
  3. 43
      .env.hella14
  4. 40
      .env.hella16
  5. 44
      .env.hella8
  6. 43
      .env.hella9
  7. 13
      .env.prod
  8. 2
      .env.test
  9. 3
      .env.test-scp
  10. 5
      .env.wyf
  11. 1
      index.html
  12. 7
      package.json
  13. 12
      public/systemConfig.js
  14. 3
      src/components/Annex/src/Annex.vue
  15. 3
      src/components/Annex/src/AnnexLedger.vue
  16. 3
      src/components/Editor/src/Editor.vue
  17. 11
      src/components/ImportForm/src/ImportDetailForm.vue
  18. 11
      src/components/ImportForm/src/ImportForm.vue
  19. 5
      src/components/UploadFile/src/UploadFile.vue
  20. 4
      src/components/UploadFile/src/UploadImg.vue
  21. 4
      src/components/UploadFile/src/UploadImgs.vue
  22. 4
      src/config/axios/config.ts
  23. 46
      src/utils/systemParam.ts
  24. 3
      src/views/bpm/model/ModelImportForm.vue
  25. 4
      src/views/eam/item/index.vue
  26. 4
      src/views/eam/location/index.vue
  27. 3
      src/views/infra/customInterface/index.vue
  28. 3
      src/views/infra/druid/index.vue
  29. 4
      src/views/infra/file/FileForm.vue
  30. 3
      src/views/infra/server/index.vue
  31. 5
      src/views/infra/swagger/index.vue
  32. 4
      src/views/infra/webSocket/index.vue
  33. 6
      src/views/report/jmreport/index.vue
  34. 4
      src/views/system/user/UserImportForm.vue
  35. 3
      src/views/wms/basicDataManage/labelManage/callmaterials/index.vue
  36. 3
      src/views/wms/basicDataManage/labelManage/locationLabel/index.vue
  37. 5
      src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue
  38. 3
      src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue
  39. 3
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue
  40. 3
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  41. 3
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue
  42. 3
      src/views/wms/inventoryManage/balance/index.vue
  43. 3
      src/views/wms/inventoryManage/package/index.vue
  44. 3
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue
  45. 5
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue
  46. 3
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue
  47. 3
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
  48. 3
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  49. 3
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
  50. 3
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue
  51. 3
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  52. 3
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue
  53. 3
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue
  54. 3
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
  55. 3
      src/views/wms/productionManage/productredress/productredressRequestMain/index.vue
  56. 3
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue
  57. 3
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
  58. 6
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  59. 3
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue
  60. 3
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  61. 3
      src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue
  62. 3
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue
  63. 3
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierPackage/index.vue
  64. 3
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue
  65. 3
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  66. 3
      src/views/wms/reportList/index.vue
  67. 3
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
  68. 3
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

5
.env.development

@ -37,4 +37,7 @@ VITE_INTERFACE_URL='http://localhost:12080/magic/web/index.html'
VITE_JMREPORT_BASE_URL='http://localhost:12080'
# 租户配置
VITE_TENANT='["长春","成都"]'
VITE_TENANT='["长春","成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'

43
.env.hella13

@ -1,43 +0,0 @@
# wms海拉长春生产环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://172.21.32.13/api'
# 上传路径
VITE_UPLOAD_URL='http://172.21.32.13/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='http://172.21.32.13:90/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.21.32.13:90'
# 租户配置
VITE_TENANT='["长春"]'
# 查看质检报告环境
VITE_REPORT_URL = 'https://scp.faway-hella.com'

43
.env.hella14

@ -1,43 +0,0 @@
# wms海拉长春测试环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://172.21.32.14/api'
# 上传路径
VITE_UPLOAD_URL='http://172.21.32.14/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='http://172.21.32.14:90/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.21.32.14:90'
# 租户配置
VITE_TENANT='["长春"]'
# 查看质检报告环境
VITE_REPORT_URL = 'https://scptest.faway-hella.com'

40
.env.hella16

@ -1,40 +0,0 @@
# scp海拉长春测试环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='https://scptest.faway-hella.com/api'
# 上传路径
VITE_UPLOAD_URL='https://scptest.faway-hella.com/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='https://scptest.faway-hella.com/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='https://scptest.faway-hella.com'
# 租户配置
VITE_TENANT='["长春","成都"]'

44
.env.hella8

@ -1,44 +0,0 @@
# wms海拉成都生产环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://172.22.32.8/api'
# 上传路径
VITE_UPLOAD_URL='http://172.22.32.8/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='http://172.22.32.8:90/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.22.32.8:90'
# 租户配置
VITE_TENANT='["成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'https://scp.faway-hella.com'

43
.env.hella9

@ -1,43 +0,0 @@
# wms海拉成都测试环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://172.22.32.9/api'
# 上传路径
VITE_UPLOAD_URL='http://172.22.32.9/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='http://172.22.32.9:90/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.22.32.9:90'
# 租户配置
VITE_TENANT='["成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'https://scptest.faway-hella.com'

13
.env.hella15 → .env.prod

@ -1,13 +1,13 @@
# scp海拉长春生产环境
# 生产环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='https://scp.faway-hella.com/api'
VITE_BASE_URL='http://dev.ccwin-in.com:25300/api'
# 上传路径
VITE_UPLOAD_URL='https://scp.faway-hella.com/api/admin-api/infra/file/upload'
VITE_UPLOAD_URL='http://dev.ccwin-in.com:25300/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
@ -31,10 +31,13 @@ VITE_BASE_PATH=/
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='https://scp.faway-hella.com/magic/web/index.html'
VITE_INTERFACE_URL='http://dev.ccwin-in.com:25310/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='https://scp.faway-hella.com'
VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25310'
# 租户配置
VITE_TENANT='["长春","成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'

2
.env.test

@ -28,7 +28,7 @@ VITE_SOURCEMAP=false
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='http://dev.ccwin-in.com:25310/magic/web/index.html'

3
.env.test-scp

@ -39,3 +39,6 @@ VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25311'
# 租户配置
VITE_TENANT='["长春","成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'

5
.env.wyf

@ -48,4 +48,7 @@ VITE_INTERFACE_URL='http://dev.ccwin-in.com:25310/magic/web/index.html'
VITE_JMREPORT_BASE_URL='http://192.168.0.108:12080'
# 租户配置
VITE_TENANT='["长春","成都"]'
VITE_TENANT='["长春","成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'

1
index.html

@ -8,6 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="富维海拉智慧工厂管理平台" />
<meta name="description" content="富维海拉智慧工厂管理平台" />
<script src="/systemConfig.js"></script>
<title>%VITE_APP_TITLE%</title>
</head>
<body>

7
package.json

@ -9,12 +9,7 @@
"wyf": "vite --mode wyf",
"test": "vite build --mode test",
"test-scp": "vite build --mode test-scp",
"hella8": "vite build --mode hella8",
"hella9": "vite build --mode hella9",
"hella13": "vite build --mode hella13",
"hella14": "vite build --mode hella14",
"hella15": "vite build --mode hella15",
"hella16": "vite build --mode hella16",
"prod": "vite build --mode prod",
"preview": "vite preview",
"lint": "eslint --fix --ext .js,.vue src"
},

12
public/systemConfig.js

@ -0,0 +1,12 @@
let systemConfig = {
// 请求路径
baseUrl: 'http://172.22.32.8/api',
// 上传路径
uploadUrl: 'http://172.22.32.8/api/admin-api/infra/file/upload',
// 自定义接口路径
interfaceUrl: 'http://172.22.32.8:90/magic/web/index.html',
// 积木报表请求路径
jmreportBaseUrl: 'http://172.22.32.8:90',
// 查看质检报告环境
reportUrl: 'https://scp.faway-hella.com'
}

3
src/components/Annex/src/Annex.vue

@ -33,6 +33,7 @@ import PreviewPDF from '@/components/PreviewPDF/index.vue'
import UploadFile from '@/components/UploadFile/src/UploadFile.vue'
import { formatDate } from '@/utils/formatTime'
import * as FileApi from '@/api/wms/file'
import { getBaseUrl } from '@/utils/systemParam'
const message = useMessage() //
const { t } = useI18n() //
defineComponent({
@ -91,7 +92,7 @@ const deleteAnnex = async (id) => {
emit('deleteAnnexSuccess')
}
const downFile = (item)=>{
window.open(import.meta.env.VITE_BASE_URL + '/admin-api/infra/file/0/get/' + item.path)
window.open(getBaseUrl() + '/admin-api/infra/file/0/get/' + item.path)
}
const previewRef = ref<InstanceType<typeof PreviewPDF>>()

3
src/components/Annex/src/AnnexLedger.vue

@ -34,6 +34,7 @@ import PreviewPDF from '@/components/PreviewPDF/index.vue'
import UploadFile from '@/components/UploadFile/src/UploadFile.vue'
import { formatDate } from '@/utils/formatTime'
import * as FileApi from '@/api/wms/file'
import { getBaseUrl } from '@/utils/systemParam'
const message = useMessage() //
const { t } = useI18n() //
defineComponent({
@ -94,7 +95,7 @@ const deleteAnnex = async (id) => {
emit('deleteAnnexSuccess',id)
}
const downFile = (item)=>{
window.open(import.meta.env.VITE_BASE_URL + '/admin-api/infra/file/0/get/' + item.path)
window.open(getBaseUrl() + '/admin-api/infra/file/0/get/' + item.path)
}
const previewRef = ref<InstanceType<typeof PreviewPDF>>()

3
src/components/Editor/src/Editor.vue

@ -7,6 +7,7 @@ import { isNumber } from '@/utils/is'
import { ElMessage } from 'element-plus'
import { useLocaleStore } from '@/store/modules/locale'
import { getAccessToken, getTenantId } from '@/utils/auth'
import { getUploadUrl } from '@/utils/systemParam'
defineOptions({ name: 'Editor' })
@ -88,7 +89,7 @@ const editorConfig = computed((): IEditorConfig => {
scroll: true,
MENU_CONF: {
['uploadImage']: {
server: import.meta.env.VITE_UPLOAD_URL,
server: getUploadUrl(),
// 2M
maxFileSize: 5 * 1024 * 1024,
// 100

11
src/components/ImportForm/src/ImportDetailForm.vue

@ -104,6 +104,7 @@
<script lang="ts" setup>
import { getAccessToken, getTenantId } from '@/utils/auth'
import download from '@/utils/download'
import { getBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'ImportDetailForm' })
const { t } = useI18n()
@ -201,7 +202,7 @@ const coverIsDisable = ref(props.coverIsDisable) //覆盖是否禁用,默认值
const updatePart = ref(props.updatePart) //
const outFile = ref(props.outFile) //
const importUrl = import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + props.url
const importUrl = getBaseUrl() + import.meta.env.VITE_API_URL + props.url
/** 打开弹窗 */
const open = () => {
@ -243,13 +244,13 @@ const submitFormSuccess = (response: any) => {
// download.excel(file, 'file_' + new Date().getTime())
// url
// const downloadElement = document.createElement('a')
// console.log(172, import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + '/' + response.data.errorFile)
// console.log(172, import.meta.env.VITE_BASE_URL + '/admin-api/opt/profile/' + response.data.errorFile)
// console.log(172, getBaseUrl() + import.meta.env.VITE_API_URL + '/' + response.data.errorFile)
// console.log(172, getBaseUrl() + '/admin-api/opt/profile/' + response.data.errorFile)
window.open(
import.meta.env.VITE_BASE_URL + '/admin-api' + response.data.errorFile,
getBaseUrl() + '/admin-api' + response.data.errorFile,
'222'
)
// downloadElement.setAttribute('href', import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + response.data.errorFile )
// downloadElement.setAttribute('href', getBaseUrl() + import.meta.env.VITE_API_URL + response.data.errorFile )
//
// downloadElement.click()
})

11
src/components/ImportForm/src/ImportForm.vue

@ -104,6 +104,7 @@
<script lang="ts" setup>
import { getAccessToken, getTenantId } from '@/utils/auth'
import download from '@/utils/download'
import { getBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'ImportForm' })
const { t } = useI18n()
@ -201,7 +202,7 @@ const coverIsDisable = ref(props.coverIsDisable) //覆盖是否禁用,默认值
const updatePart = ref(props.updatePart) //
const outFile = ref(props.outFile) //
const importUrl = import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + props.url
const importUrl = getBaseUrl() + import.meta.env.VITE_API_URL + props.url
/** 打开弹窗 */
const open = () => {
@ -243,13 +244,13 @@ const submitFormSuccess = (response: any) => {
// download.excel(file, 'file_' + new Date().getTime())
// url
// const downloadElement = document.createElement('a')
// console.log(172, import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + '/' + response.data.errorFile)
// console.log(172, import.meta.env.VITE_BASE_URL + '/admin-api/opt/profile/' + response.data.errorFile)
// console.log(172, getBaseUrl() + import.meta.env.VITE_API_URL + '/' + response.data.errorFile)
// console.log(172, getBaseUrl() + '/admin-api/opt/profile/' + response.data.errorFile)
window.open(
import.meta.env.VITE_BASE_URL + '/admin-api' + response.data.errorFile,
getBaseUrl() + '/admin-api' + response.data.errorFile,
'222'
)
// downloadElement.setAttribute('href', import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + response.data.errorFile )
// downloadElement.setAttribute('href', getBaseUrl() + import.meta.env.VITE_API_URL + response.data.errorFile )
//
// downloadElement.click()
})

5
src/components/UploadFile/src/UploadFile.vue

@ -38,10 +38,11 @@
</template>
<script lang="ts" setup>
import { PropType } from 'vue'
import { propTypes } from '@/utils/propTypes'
import { getAccessToken, getTenantId } from '@/utils/auth'
import type { UploadInstance, UploadUserFile, UploadProps, UploadRawFile } from 'element-plus'
import { getUploadUrl } from '@/utils/systemParam'
const { t } = useI18n() //
defineOptions({ name: 'UploadFile' })
@ -55,7 +56,7 @@ const props = defineProps({
required: true
},
title: propTypes.string.def('文件上传'),
updateUrl: propTypes.string.def(import.meta.env.VITE_UPLOAD_URL),
updateUrl: propTypes.string.def(getUploadUrl()),
upData: propTypes.object.def(),
fileType: propTypes.array.def(['apk','doc', 'xls', 'ppt', 'txt', 'pdf','png', 'jpg', 'jpeg']), // , ['png', 'jpg', 'jpeg']
fileSize: propTypes.number.def(5), // (MB)

4
src/components/UploadFile/src/UploadImg.vue

@ -52,10 +52,10 @@
<script lang="ts" setup>
import type { UploadProps } from 'element-plus'
import { generateUUID } from '@/utils'
import { propTypes } from '@/utils/propTypes'
import { getAccessToken, getTenantId } from '@/utils/auth'
import { getUploadUrl } from '@/utils/systemParam'
defineOptions({ name: 'UploadImg' })
@ -74,7 +74,7 @@ type FileTypes =
//
const props = defineProps({
modelValue: propTypes.string.def(''),
updateUrl: propTypes.string.def(import.meta.env.VITE_UPLOAD_URL),
updateUrl: propTypes.string.def(getUploadUrl()),
upData: propTypes.object.def(),
drag: propTypes.bool.def(true), // ==> true
disabled: propTypes.bool.def(false), // ==> false

4
src/components/UploadFile/src/UploadImgs.vue

@ -49,9 +49,9 @@
import { PropType } from 'vue'
import type { UploadFile, UploadProps, UploadUserFile } from 'element-plus'
import { ElNotification } from 'element-plus'
import { propTypes } from '@/utils/propTypes'
import { getAccessToken, getTenantId } from '@/utils/auth'
import { getUploadUrl } from '@/utils/systemParam'
defineOptions({ name: 'UploadImgs' })
@ -74,7 +74,7 @@ const props = defineProps({
type: Array as PropType<UploadUserFile[]>,
required: true
},
updateUrl: propTypes.string.def(import.meta.env.VITE_UPLOAD_URL),
updateUrl: propTypes.string.def(getUploadUrl()),
upData: propTypes.object.def(),
drag: propTypes.bool.def(true), // ==> true
disabled: propTypes.bool.def(false), // ==> false

4
src/config/axios/config.ts

@ -1,3 +1,5 @@
import { getBaseUrl } from '@/utils/systemParam'
const config: {
base_url: string
result_code: number | string
@ -7,7 +9,7 @@ const config: {
/**
* api请求基础路径
*/
base_url: import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL,
base_url: getBaseUrl() + import.meta.env.VITE_API_URL,
/**
*
*/

46
src/utils/systemParam.ts

@ -0,0 +1,46 @@
const baseUrl = ref(import.meta.env.VITE_BASE_URL)
const uploadUrl = ref(import.meta.env.VITE_UPLOAD_URL)
const interfaceUrl = ref(import.meta.env.VITE_INTERFACE_URL)
const jmreportBaseUrl = ref(import.meta.env.VITE_JMREPORT_BASE_URL)
const reportUrl = ref(import.meta.env.VITE_REPORT_URL)
const mode = ref(import.meta.env.MODE)
// 获取baseUrl
export const getBaseUrl = () => {
if(mode.value === 'production') {
return systemConfig.baseUrl
} else {
return baseUrl.value
}
}
// 获取uploadUrl
export const getUploadUrl = () => {
if(mode.value === 'production') {
return systemConfig.uploadUrl
} else {
return uploadUrl.value
}
}
// 获取interfaceUrl
export const getInterfaceUrl = () => {
if(mode.value === 'production') {
return systemConfig.interfaceUrl
} else {
return interfaceUrl.value
}
}
// 获取jmreportBaseUrl
export const getJmreportBaseUrl = () => {
if(mode.value === 'production') {
return systemConfig.jmreportBaseUrl
} else {
return jmreportBaseUrl.value
}
}
// 获取reportUrl
export const getReportUrl = () => {
if(mode.value === 'production') {
return systemConfig.reportUrl
} else {
return reportUrl.value
}
}

3
src/views/bpm/model/ModelImportForm.vue

@ -51,6 +51,7 @@
</template>
<script lang="ts" setup>
import { getAccessToken, getTenantId } from '@/utils/auth'
import { getBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'ModelImportForm' })
@ -69,7 +70,7 @@ const formRules = reactive({
})
const formRef = ref() // Ref
const uploadRef = ref() // Ref
const importUrl = import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + '/bpm/model/import'
const importUrl = getBaseUrl() + import.meta.env.VITE_API_URL + '/bpm/model/import'
const uploadHeaders = ref() // Header
const fileList = ref([]) //

4
src/views/eam/item/index.vue

@ -88,6 +88,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { SearchTable } from '@/components/SearchTable'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'Item' })
@ -99,8 +100,7 @@ routeName.value = route.name
const itemNumber = ref()
const tableColumns = ref(Item.allSchemas.tableColumns)
const importFormRef = ref()
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/view/950552010397122560?token=' + getAccessToken())
const src = ref(getJmreportBaseUrl() + '/jmreport/view/950552010397122560?token=' + getAccessToken())
const showView = ref(false)
const viewTitle = ref('图片预览')

4
src/views/eam/location/index.vue

@ -75,6 +75,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'Location' })
@ -86,8 +87,7 @@ const routeName = ref()
routeName.value = route.name
const tableColumns = ref(Location.allSchemas.tableColumns)
const importFormRef = ref()
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/view/950537917716037632?token=' + getAccessToken())
const src = ref(getJmreportBaseUrl() + '/jmreport/view/950537917716037632?token=' + getAccessToken())
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {

3
src/views/infra/customInterface/index.vue

@ -2,8 +2,9 @@
<IFrame :src="src"/>
</template>
<script lang="ts" setup name="CustomInterface">
import { jmreportBaseUrl } from '@/utils/systemParam'
// import { getAccessToken, getTenantId } from '@/utils/auth'
const src = import.meta.env.VITE_INTERFACE_URL
const src = jmreportBaseUrl()
// window.MAGIC_EDITOR_CONFIG = {
// request: {

3
src/views/infra/druid/index.vue

@ -9,7 +9,8 @@ import * as ConfigApi from '@/api/infra/config'
defineOptions({ name: 'InfraDruid' })
const loading = ref(true) //
const url = ref(import.meta.env.VITE_BASE_URL + '/druid/index.html')
import { getBaseUrl } from '@/utils/systemParam'
const url = ref(getBaseUrl() + '/druid/index.html')
/** 初始化 */
onMounted(async () => {

4
src/views/infra/file/FileForm.vue

@ -40,7 +40,9 @@ const message = useMessage() // 消息弹窗
const dialogVisible = ref(false) //
const formLoading = ref(false) //
const url = import.meta.env.VITE_UPLOAD_URL
import { getUploadUrl } from '@/utils/systemParam'
const url = getUploadUrl()
const uploadHeaders = ref() // Header
const fileList = ref([]) //
const data = ref({ path: '' })

3
src/views/infra/server/index.vue

@ -5,11 +5,12 @@
</template>
<script lang="ts" setup>
import * as ConfigApi from '@/api/infra/config'
import { getBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'InfraAdminServer' })
const loading = ref(true) //
const src = ref(import.meta.env.VITE_BASE_URL + '/admin/applications')
const src = ref(getBaseUrl() + '/admin/applications')
/** 初始化 */
onMounted(async () => {

5
src/views/infra/swagger/index.vue

@ -5,12 +5,13 @@
</template>
<script lang="ts" setup>
import * as ConfigApi from '@/api/infra/config'
import { getBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'InfraSwagger' })
const loading = ref(true) //
const src = ref(import.meta.env.VITE_BASE_URL + '/doc.html') // Knife4j UI
// const src = ref(import.meta.env.VITE_BASE_URL + '/swagger-ui') // Swagger UI
const src = ref(getBaseUrl() + '/doc.html') // Knife4j UI
// const src = ref(getBaseUrl() + '/swagger-ui') // Swagger UI
/** 初始化 */
onMounted(async () => {

4
src/views/infra/webSocket/index.vue

@ -59,6 +59,7 @@
import { formatDate } from '@/utils/formatTime'
import { useUserStore } from '@/store/modules/user'
import { useWebSocket } from '@vueuse/core'
import { getBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'InfraWebSocket' })
@ -67,8 +68,7 @@ const userStore = useUserStore()
const sendValue = ref('')
const server = ref(
(import.meta.env.VITE_BASE_URL + '/websocket/message').replace('http', 'ws') +
'?userId=' +
(getBaseUrl() + '/websocket/message').replace('http', 'ws') + '?userId=' +
userStore.getUser.id
)

6
src/views/report/jmreport/index.vue

@ -5,9 +5,7 @@
</template>
<script lang="ts" setup>
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'JimuReport' })
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/list?token=' + getAccessToken())
const src = ref(getJmreportBaseUrl() + '/jmreport/list?token=' + getAccessToken())
</script>

4
src/views/system/user/UserImportForm.vue

@ -44,6 +44,7 @@
import * as UserApi from '@/api/system/user'
import { getAccessToken, getTenantId } from '@/utils/auth'
import download from '@/utils/download'
import { getBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'SystemUserImportForm' })
@ -52,8 +53,7 @@ const message = useMessage() // 消息弹窗
const dialogVisible = ref(false) //
const formLoading = ref(false) //
const uploadRef = ref()
const importUrl =
import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + '/system/user/import'
const importUrl = getBaseUrl() + import.meta.env.VITE_API_URL + '/system/user/import'
const uploadHeaders = ref() // Header
const fileList = ref([]) //
const updateSupport = ref(0) //

3
src/views/wms/basicDataManage/labelManage/callmaterials/index.vue

@ -78,6 +78,7 @@ import { getAccessToken } from '@/utils/auth'
import * as PackageApi from '@/api/wms/package'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'Callmaterials' })
@ -267,7 +268,7 @@ const handleExport = async () => {
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/924811818898698240?token=' + getAccessToken())
const srcPoint = ref(BASE_URL + '/jmreport/view/940818992169918464?token=' + getAccessToken())
//

3
src/views/wms/basicDataManage/labelManage/locationLabel/index.vue

@ -53,6 +53,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as PackageApi from '@/api/wms/package'
import { formatTime } from '@/utils/index'
import * as Itempackaging from '@/api/wms/itempackaging'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'LocationLabel' })
@ -183,7 +184,7 @@ const handleExport = async () => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/929174607016689664?token=' + getAccessToken())
//
const handlePoint = async (row) => {

5
src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue

@ -66,6 +66,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as PackageApi from '@/api/wms/package'
import { formatTime } from '@/utils/index'
import * as Itempackaging from '@/api/wms/itempackage'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'PurchasePackage' })
@ -252,7 +253,7 @@ const handleExport = async () => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
//
// const handlePoint = async (row) => {
@ -330,4 +331,4 @@ onMounted(async () => {
getList()
})
</script>
@/api/wms/itempackage
@/api/wms/itempackage

3
src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue

@ -67,6 +67,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as PackageApi from '@/api/wms/package'
import { formatTime } from '@/utils/index'
import * as Itempackaging from '@/api/wms/itempackage'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'PurchasePackage' })
@ -253,7 +254,7 @@ const handleExport = async () => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const labelType = ref('') //
const handlePoint = async (row) => {
console.log(row.packingNumber,445555555555555);

3
src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue

@ -69,6 +69,7 @@ import * as CustomerreturnRecordMainApi from '@/api/wms/customerreturnRecordMain
import * as CustomerreturnRecordDetailApi from '@/api/wms/customerreturnRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getJmreportBaseUrl } from '@/utils/systemParam'
// 退
defineOptions({ name: 'CustomerreturnRecordMain' })
@ -177,7 +178,7 @@ const searchFormClick = (searchData) => {
getList() //
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/929216638195793920?token=' + getAccessToken())
//
const handlePoint = async (row) => {

3
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -115,6 +115,7 @@ import {
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data'
import * as PackageApi from '@/api/wms/package'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
// 退
defineOptions({ name: 'CustomerreturnRequestMain' })
@ -451,7 +452,7 @@ const submitFormLabel = async (formType, data) => {
formLabelRef.value.dialogVisible = false
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const labelType = ref('') //
//
const showLabelRef = ref()

3
src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue

@ -69,6 +69,7 @@ import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain'
import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'DeliverRecordMain' })
@ -190,7 +191,7 @@ const handleExport = async () => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/929209659733770240?token=' + getAccessToken())
//
const handlePoint = async (row) => {

3
src/views/wms/inventoryManage/balance/index.vue

@ -69,6 +69,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'Balance' })
@ -244,7 +245,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue,'transactionBalance')
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const labelType = ref('') //
//
const handlePoint = async (row) => {

3
src/views/wms/inventoryManage/package/index.vue

@ -64,6 +64,7 @@ import { getAccessToken } from '@/utils/auth'
import { Package,PackageRules } from './package.data'
import * as PackageApi from '@/api/wms/package'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { getJmreportBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'package' })
@ -238,7 +239,7 @@ const handleExport = async () => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
// form
const formsSuccess = async (formType,data) => {

3
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue

@ -71,6 +71,7 @@ import * as InventoryinitRecordDetailApi from '@/api/wms/inventoryinitRecordDeta
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'InventoryinitRecordMain' })
@ -196,7 +197,7 @@ const getSelectionRows = (currentPage,currentPageSelectionRows) => {
})
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const handleSelectionPoint = async ()=>{
let rows:any = []
selectionRows.value.forEach(item=>{

5
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue

@ -70,6 +70,7 @@ import * as printLabelCorrelationApi from '@/api/wms/printLabelCorrelation'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as PackageApi from '@/api/wms/package'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'PackageoverMain' })
@ -136,7 +137,7 @@ const buttonTableClick = async (val, row) => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const labelType = ref('') //
//
const handlePoint = async (row) => {
@ -203,4 +204,4 @@ const searchFormClick = (searchData) => {
onMounted(async () => {
getList()
})
</script>
</script>

3
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue

@ -50,6 +50,7 @@ import { PackageoverRetrospect } from './packageoverRetrospect.data'
import * as PackageoverRetrospectApi from '@/api/wms/packageoverRetrospect'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as PackageApi from '@/api/wms/package'
import { getJmreportBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'PackageoverRetrospect' })
@ -89,7 +90,7 @@ const buttonTableClick = async (val, row) => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const labelType = ref('') //
//
const handlePoint = async (row) => {

3
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -131,6 +131,7 @@ import * as PackageApi from "@/api/wms/package";
import { formatTime } from '@/utils/index'
import { getAccessToken } from '@/utils/auth'
import * as StdcostpriceApi from '@/api/wms/stdcostprice'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'UnplannedreceiptRequestMain' })
@ -794,7 +795,7 @@ const tableFormSelectOnBlur = (field, val, row, index) => {
}
//
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/936912164754612224?token=' + getAccessToken())
const labelPrint = async (row) => {
window.open(src.value + '&request_number=' + row.number)

3
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -107,6 +107,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as ItembasicApi from '@/api/wms/itembasic'
import * as PackageApi from '@/api/wms/package'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
// 退
defineOptions({ name: 'ProductionreturnRequestMain' })
@ -685,7 +686,7 @@ const submitFormLabel = async (formType, data) => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
//
const handlePoint = async (row) => {
//

3
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -107,6 +107,7 @@ import * as ItembasicApi from '@/api/wms/itembasic'
import * as PackageApi from '@/api/wms/package'
import { formatTime } from '@/utils/index'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
// 退
defineOptions({ name: 'ProductionreturnRequestMainNo' })
@ -609,7 +610,7 @@ const submitFormLabel = async (formType, data) => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
//
// const handlePoint = async (row) => {
// //

3
src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue

@ -100,6 +100,7 @@ import {
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts'
import * as ProductreceiptRequestDetailApi from '@/api/wms/productreceiptRequestDetail'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
//
@ -207,7 +208,7 @@ const buttonTableClick = async (val, row) => {
labelPrint(row)
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
//
const searchTableRef = ref()
const labelType = ref('') //

3
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -146,6 +146,7 @@ import * as PackageApi from '@/api/wms/package'
import { formatTime } from '@/utils/index'
import { getAccessToken } from '@/utils/auth'
import dayjs from 'dayjs'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
//
defineOptions({ name: 'ProductreceiptRequestMain' })
@ -663,7 +664,7 @@ const detailValidate = (data) => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
//
const handlePoint = async (row) => {
//

3
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -121,6 +121,7 @@ import { getAccessToken } from '@/utils/auth'
import {
SupplierdeliverRequestPackage
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'ProductreceiptRecordMainA' })
@ -274,7 +275,7 @@ const labelPrint = async (row) => {
searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true)
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
// --
const searchTableSuccess1 = async (formField, searchField, val, formRef, type, row) => {
console.log('批量打印',val)

3
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

@ -146,6 +146,7 @@ import * as ItembasicApi from '@/api/wms/itembasic'
import * as PackageApi from '@/api/wms/package'
import { formatTime } from '@/utils/index'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'ProductreceiptRequestMainA' })
@ -665,7 +666,7 @@ const detailValidate = (data) => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
//
const handlePoint = async (row) => {
//

3
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -137,6 +137,7 @@ import { getAccessToken } from '@/utils/auth'
import {
SupplierdeliverRequestPackage
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'ProductreceiptRequestMain' })
@ -656,7 +657,7 @@ const detailValidate = (data) => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
//
const handlePoint = async (row) => {

3
src/views/wms/productionManage/productredress/productredressRequestMain/index.vue

@ -112,6 +112,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { getJmreportBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'ProductredressRequestMain' })
@ -481,7 +482,7 @@ const detailValidate = (data) => {
}
}
// const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
// const BASE_URL = getJmreportBaseUrl()
// //
// const handlePoint = async (row) => {
// //

3
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue

@ -103,6 +103,7 @@ import * as PurchasereceiptJobMainApi from '@/api/wms/purchasereceiptJobMain'
import * as PurchasereceiptJobDetailApi from '@/api/wms/purchasereceiptJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getReportUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'PurchasereceiptJobMain' })
@ -257,7 +258,7 @@ const showQualityReport = ref(false)
const qualityReport = ref('')
const checkQualityReport = async (row)=>{
showQualityReport.value = true
qualityReport.value = `${import.meta.env.VITE_REPORT_URL}/purchasereceiptReport?asnNumber=${row.asnNumber}`
qualityReport.value = `${getReportUrl()}/purchasereceiptReport?asnNumber=${row.asnNumber}`
}
/** 关闭按钮操作 */

3
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue

@ -114,6 +114,7 @@ import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecord
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { PurchasereceiptRequestTabsList } from '@/utils/disposition/tabsList'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getReportUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'PurchasereceiptRecordMain' })
const message = useMessage() //
@ -192,7 +193,7 @@ const showQualityReport = ref(false)
const qualityReport = ref('')
const checkQualityReport = async (row)=>{
showQualityReport.value = true
qualityReport.value = `${import.meta.env.VITE_REPORT_URL}/purchasereceiptReport?asnNumber=${row.asnNumber}`
qualityReport.value = `${getReportUrl()}/purchasereceiptReport?asnNumber=${row.asnNumber}`
}
/** 生成采购上架申请按钮操作 */

6
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -166,6 +166,8 @@ import * as SupplieritemApi from '@/api/wms/supplieritem'
import { getAccessToken } from '@/utils/auth'
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail'
import * as ItembasicApi from '@/api/wms/itembasic'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { getReportUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'PurchasereceiptRequestMain' })
@ -406,7 +408,7 @@ const showQualityReport = ref(false)
const qualityReport = ref('')
const checkQualityReport = async (row)=>{
showQualityReport.value = true
qualityReport.value = `${import.meta.env.VITE_REPORT_URL}/purchasereceiptReport?asnNumber=${row.asnNumber}`
qualityReport.value = `${getReportUrl()}/purchasereceiptReport?asnNumber=${row.asnNumber}`
}
//
@ -434,7 +436,7 @@ const submitFormLabel = async (formType, data) => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
//

3
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue

@ -69,6 +69,7 @@ import * as PurchasereturnRecordDetailApi from '@/api/wms/purchasereturnRecordDe
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { getAccessToken } from '@/utils/auth'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getJmreportBaseUrl } from '@/utils/systemParam'
// 退
defineOptions({ name: 'PurchasereturnRecordMain' })
@ -144,7 +145,7 @@ const buttonTableClick = async (val, row) => {
}
//
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const documentSrc = ref(BASE_URL + '/jmreport/view/920874172025987072?token=' + getAccessToken())
const handleDocumentPrint = async (id) => {
window.open(documentSrc.value + '&id=' + id)

3
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -136,6 +136,7 @@ import * as PackageApi from '@/api/wms/package'
import { getAccessToken } from '@/utils/auth'
import * as BalanceApi from '@/api/wms/balance'
import { async } from '@antv/x6/lib/registry/marker/async'
import { getJmreportBaseUrl } from '@/utils/systemParam'
// 退
defineOptions({ name: 'PurchasereturnRequestMain' })
@ -937,7 +938,7 @@ const detailOpenForm = (type, row) =>{
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
//

3
src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue

@ -100,6 +100,7 @@ import * as PutawayJobDetailApi from '@/api/wms/putawayJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import {getAccessToken} from "@/utils/auth";
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'PutawayJobMain' })
@ -283,7 +284,7 @@ const buttonTableClick = async (val, row) => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/956092950844162048?token=' + getAccessToken())
const handleDocumentPrint = async (row) => {
window.open(src.value+'&id='+row.masterId)

3
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

@ -133,6 +133,7 @@ import { getAccessToken } from '@/utils/auth'
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail'
import { PurchaseDetail } from '../../supplierdeliver/purchaseMain/purchaseMain.data'
import * as ItembasicApi from '@/api/wms/itembasic'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'PurchasereceiptRequestMain' })
@ -428,7 +429,7 @@ const submitFormLabel = async (formType, data) => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
//

3
src/views/wms/purchasereceiptManage/supplierdeliver/supplierPackage/index.vue

@ -64,6 +64,7 @@ import { getAccessToken } from '@/utils/auth'
import { Package,PackageRules } from './supplierPackage.data'
import * as PackageApi from '@/api/wms/package'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { getJmreportBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'PurchasePackage' })
@ -237,7 +238,7 @@ const handleExport = async () => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
//
const handlePoint = async (id) => {

3
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue

@ -114,6 +114,7 @@ import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverReque
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { getAccessToken } from '@/utils/auth'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'SupplierdeliverRecordMain' })
@ -207,7 +208,7 @@ const handlerCreatePurchasereceiptRequest = async (number:string) => {
}
//
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
//const documentSrc = ref(BASE_URL + '/jmreport/view/884680688168280064?token=' + getAccessToken())
const documentSrc = ref(BASE_URL + '/jmreport/view/932556833517789184?token=' + getAccessToken())
const handleDocumentPrint = async (id) => {

3
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -185,6 +185,7 @@ import { PurchasePlanDetail } from '../purchasePlanMain/purchasePlanMain.data'
import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
import supplierdeliverBasicForm from './supplierdeliverBasicForm.vue'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'SupplierdeliverRequestMain' })
@ -868,7 +869,7 @@ const clearInput = async (field,row,index) => {
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
getListApi: PurchasePlanDetailApi.getPurchasePlanDetailPage //

3
src/views/wms/reportList/index.vue

@ -7,10 +7,11 @@
<script setup lang="ts">
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
// const url = ref('http://localhost:12080/jmreport/view/881686740529258496')
const route = useRoute() //
const str = route.path.split('/')[3]
const url = ref(import.meta.env.VITE_JMREPORT_BASE_URL + '/jmreport/view/'+ str+ '?token='+ getAccessToken())
const url = ref(getJmreportBaseUrl() + '/jmreport/view/'+ str+ '?token='+ getAccessToken())
console.log(url);
</script>

3
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue

@ -76,6 +76,7 @@
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import { getJmreportBaseUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'PurchaseclaimRequestMain' })
@ -420,7 +421,7 @@
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/882550592342003712?token=' + getAccessToken())
console.log(src)
//

3
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -186,6 +186,7 @@
import { Supplier } from '../../../basicDataManage/supplierManage/supplier/supplier.data'
import { getAccessToken } from '@/utils/auth'
import { ElMessageBox } from 'element-plus'
import { getJmreportBaseUrl } from '@/utils/systemParam'
defineOptions({ name: 'SupplierinvoiceRequestMain' })
@ -959,7 +960,7 @@ const importSuccess = () => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const BASE_URL = getJmreportBaseUrl()
//
const documentSupplierdeliverRecordSrc = ref(BASE_URL + '/jmreport/view/932556833517789184?token=' + getAccessToken())

Loading…
Cancel
Save