Bläddra i källkod

‘对接口’

pull/17/head
Fanzink 2 år sedan
förälder
incheckning
b800893ea5
7 ändrade filer med 48 tillägg och 8 borttagningar
  1. +1
    -1
      src/api/basicData/Cache/area.js
  2. +1
    -1
      src/api/basicData/Cache/cache.js
  3. +2
    -2
      src/api/basicData/Cache/storageBox.js
  4. +1
    -1
      src/api/basicData/Equipment/equipmentInfo.js
  5. +39
    -0
      src/router/index.js
  6. +2
    -1
      src/views/basicData/Cache/cache.vue
  7. +2
    -2
      vue.config.js

+ 1
- 1
src/api/basicData/Cache/area.js Visa fil

@@ -41,7 +41,7 @@ export function areaAdd(data) { // 新增缓存区区域信息单条数据

export function areaCode() { // 获取缓存区区域信息code
return request({
url: '/api/wms/area/get-code',
url: '/api/wms/area/getCode',
method: 'post'
})
}


+ 1
- 1
src/api/basicData/Cache/cache.js Visa fil

@@ -41,7 +41,7 @@ export function cacheAdd(data) { // 新增缓存区信息单条数据

export function cacheCode() { // 获取缓存区信息code
return request({
url: '/api/wms/area/get-code',
url: '/api/wms/area/getCode',
method: 'post'
})
}


+ 2
- 2
src/api/basicData/Cache/storageBox.js Visa fil

@@ -41,7 +41,7 @@ export function storageBoxAdd(data) { // 新增存储箱单条数据

export function storageBoxCode() { // 获取存储箱code
return request({
url: '/api/wms/storagebox/get-code',
url: '/api/wms/storagebox/getCode',
method: 'post'
})
}
@@ -56,7 +56,7 @@ export function storageBoxDelete(id) { // 删除存储箱单条数据

export function PositionDetailInfoAdd(data) { // 新增存储箱地址单条数据
return request({
url: '/api/wms/storagebox-site/add',
url: '/api/wms/storagebox/add',
method: 'post',
data
})


+ 1
- 1
src/api/basicData/Equipment/equipmentInfo.js Visa fil

@@ -41,7 +41,7 @@ export function equipmentInfoAdd(data) { // 新增设备信息单条数据

export function equipmentInfoCode() { // 获取设备信息code
return request({
url: '/api/wms/equipment/get-code',
url: '/api/wms/equipment/getCode',
method: 'post'
})
}


+ 39
- 0
src/router/index.js Visa fil

@@ -224,6 +224,45 @@ export const constantRoutes = [
]
},
{
// path: '/form',
// component: Layout,
// redirect: '/form',
// name: 'formManage',
// meta: { title: routerTitle.form?.[language] || routerTitle.form.en, icon: 'form', iconPart: 'formManage', affix: true, required: true, requireToken: true, unuse: false },
// children: [{
// path: 'report',
// component: () => import('@/views/report-manage/ReportSortChoise'),
// name: 'Report',
// meta: { title: routerTitle.form.report?.[language] || routerTitle.form.report.en, icon: 'form', affix: true, required: true, requireToken: true }
// },
// {
// path: 'report-sort-list',
// component: () => import('@/views/report-manage/Report'),
// name: 'ReportSortList',
// hidden: true,
// meta: { title: routerTitle.form.reportSortList?.[language] || routerTitle.form.reportSortList.en, icon: 'form', affix: true, required: true, requireToken: true }
// },
// {
// path: 'report-view',
// component: () => import('@/views/report-manage/ReportView'),
// name: 'ReportDesign',
// meta: { title: routerTitle.form.reportView?.[language] || routerTitle.form.reportView.en, icon: 'form', affix: true, required: true, requireToken: true },
// hidden: true
// },
// {
// path: 'report-design',
// component: () => import('@/views/report-manage/ReportDesign'),
// name: 'ReportDesign',
// meta: { title: routerTitle.form.reportDesign?.[language] || routerTitle.form.reportDesign.en, icon: 'form', affix: true, required: true, requireToken: true }
// },
// {
// path: 'report-sort',
// component: () => import('@/views/report-manage/ReportSort/index'),
// name: 'ReportSort',
// meta: { title: routerTitle.form.reportSort?.[language] || routerTitle.form.reportSort.en, icon: 'form', affix: true, required: true, requireToken: true }
// }]
// },
// {
path: '/interface',
component: Layout,
redirect: '/interface',


+ 2
- 1
src/views/basicData/Cache/cache.vue Visa fil

@@ -44,6 +44,7 @@ import BaseTable from '@/components/BaseTable'
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
import { timeFormatter } from '@/filters'

/**
* 表格表头配置项 TypeScript接口注释
* tableConfig<ConfigItem> = []
@@ -133,7 +134,7 @@ export default {
methods: {
handleClick(raw) {
if (raw.type === 'delete') {
this.$confirm(`${this.$t('module.basicData.visual.TipsBefore')}[${raw.data.name}]?`, this.$t('module.basicData.visual.Tips'), {
this.$confirm(`${this.$t('module.basicData.visual.TipsBefore')}[${raw.data.tareaName}]?`, this.$t('module.basicData.visual.Tips'), {
confirmButtonText: this.$t('module.basicData.visual.confirmButtonText'),
cancelButtonText: this.$t('module.basicData.visual.cancelButtonText'),
type: 'warning'


+ 2
- 2
vue.config.js Visa fil

@@ -46,8 +46,8 @@ module.exports = {
// 这里写入需要代理的api和对应的目标地址
proxy: {
'/api': {
target: 'http://localhost:8080',
// target: 'http://192.168.0.188:8080',
// target: 'http://localhost:8080',
target: 'http://192.168.0.148:8080',
// target: 'http://192.168.0.127:8080',
// target: 'http://192.168.0.165:8080',
// target: 'http://192.168.43.105:8080',


Laddar…
Avbryt
Spara