修改
This commit is contained in:
parent
fa6c4eeb53
commit
99ea384470
@ -5,12 +5,8 @@ VITE_APP_TITLE = 伊特机械MES
|
|||||||
VITE_APP_ENV = 'development'
|
VITE_APP_ENV = 'development'
|
||||||
|
|
||||||
# 开发环境
|
# 开发环境
|
||||||
<<<<<<< HEAD
|
|
||||||
VITE_APP_BASE_API = 'http://192.168.5.232:8888/api'
|
|
||||||
=======
|
|
||||||
|
|
||||||
#VITE_APP_BASE_API = 'http://192.168.12.4:8888/api'
|
#VITE_APP_BASE_API = 'http://192.168.12.4:8888/api'
|
||||||
>>>>>>> f1e25f58a96a8b7737687ce50afef4b34cda2541
|
|
||||||
#VITE_APP_BASE_API = 'http://192.168.5.14:9100/gateway'
|
#VITE_APP_BASE_API = 'http://192.168.5.14:9100/gateway'
|
||||||
|
|
||||||
VITE_APP_BASE_API = 'http://localhost/api'
|
VITE_APP_BASE_API = 'http://localhost/api'
|
||||||
|
|||||||
@ -24,9 +24,10 @@
|
|||||||
"html2canvas": "^1.4.1",
|
"html2canvas": "^1.4.1",
|
||||||
"jsencrypt": "^3.3.2",
|
"jsencrypt": "^3.3.2",
|
||||||
"jspdf": "^4.2.1",
|
"jspdf": "^4.2.1",
|
||||||
"naive-ui":"^2.37.3",
|
"naive-ui": "^2.37.3",
|
||||||
"pinia": "^2.1.7",
|
"pinia": "^2.1.7",
|
||||||
"pinia-plugin-persistedstate": "^3.2.1",
|
"pinia-plugin-persistedstate": "^3.2.1",
|
||||||
|
"seemly": "^0.3.10",
|
||||||
"three": "^0.184.0",
|
"three": "^0.184.0",
|
||||||
"vue": "^3.4.15",
|
"vue": "^3.4.15",
|
||||||
"vue-draggable-plus": "^0.6.1",
|
"vue-draggable-plus": "^0.6.1",
|
||||||
|
|||||||
@ -50,6 +50,9 @@ importers:
|
|||||||
pinia-plugin-persistedstate:
|
pinia-plugin-persistedstate:
|
||||||
specifier: ^3.2.1
|
specifier: ^3.2.1
|
||||||
version: 3.2.3(pinia@2.3.1(typescript@5.9.3)(vue@3.5.31(typescript@5.9.3)))
|
version: 3.2.3(pinia@2.3.1(typescript@5.9.3)(vue@3.5.31(typescript@5.9.3)))
|
||||||
|
seemly:
|
||||||
|
specifier: ^0.3.10
|
||||||
|
version: 0.3.10
|
||||||
three:
|
three:
|
||||||
specifier: ^0.184.0
|
specifier: ^0.184.0
|
||||||
version: 0.184.0
|
version: 0.184.0
|
||||||
|
|||||||
@ -30,7 +30,7 @@ export function nccodelist(params:any) {
|
|||||||
//下发
|
//下发
|
||||||
export function batchIssue(data:any) {
|
export function batchIssue(data:any) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/biz/ncCode/issue',
|
url: '/biz/ncCode/issue',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -39,7 +39,7 @@ export function batchIssue(data:any) {
|
|||||||
//删除
|
//删除
|
||||||
export function deleteIssue(ids:any) {
|
export function deleteIssue(ids:any) {
|
||||||
return request({
|
return request({
|
||||||
url: `api/biz/ncCode/${ids}`,
|
url: `/biz/ncCode/${ids}`,
|
||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -52,3 +52,28 @@ export function issuecopy(data:any) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//任务树
|
||||||
|
export function opertree() {
|
||||||
|
return request({
|
||||||
|
url: `biz/ncCode/operationTree`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//生产NC编码
|
||||||
|
export function generateNccode() {
|
||||||
|
return request({
|
||||||
|
url: `biz/ncCode/generateNcCode`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//导出
|
||||||
|
export function exportNccode(params:any) {
|
||||||
|
return request({
|
||||||
|
url: `biz/ncCode/export`,
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@ -43,3 +43,13 @@ export function reportingwork(data:any) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//登出设备
|
||||||
|
export function terlogout(data:any) {
|
||||||
|
return request({
|
||||||
|
url: '/terminal/logout',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -40,7 +40,7 @@
|
|||||||
</template>
|
</template>
|
||||||
全屏
|
全屏
|
||||||
</n-button> -->
|
</n-button> -->
|
||||||
<!-- <n-button @click="refresh" ghost style="margin-right: 20px;color: #fff;">
|
<n-button @click="refresh" ghost style="margin-right: 20px;color: #fff;">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<n-icon>
|
<n-icon>
|
||||||
<Sync />
|
<Sync />
|
||||||
@ -48,9 +48,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
刷新
|
刷新
|
||||||
</n-button> -->
|
</n-button>
|
||||||
<!--switchworks-->
|
<!--switchworks-->
|
||||||
<n-button ghost style="color: #fff;" @click="handover">
|
<n-button ghost style="margin-right: 20px;color: #fff;" @click="handover">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<n-icon>
|
<n-icon>
|
||||||
<SwapHorizontalOutline />
|
<SwapHorizontalOutline />
|
||||||
@ -58,6 +58,14 @@
|
|||||||
</template>
|
</template>
|
||||||
工位交接
|
工位交接
|
||||||
</n-button>
|
</n-button>
|
||||||
|
<n-button ghost style="color: #fff;" @click="handover">
|
||||||
|
<template #icon>
|
||||||
|
<n-icon>
|
||||||
|
<LogOutOutline />
|
||||||
|
</n-icon>
|
||||||
|
</template>
|
||||||
|
退出登录
|
||||||
|
</n-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="total" style="display: none;">
|
<div class="total" style="display: none;">
|
||||||
@ -422,10 +430,10 @@
|
|||||||
<template v-if="loglist.length > 0">
|
<template v-if="loglist.length > 0">
|
||||||
<div v-for="n in loglist" style="margin-bottom: 18px;padding: 12px;border:1px solid #afafaf;border-radius:10px;background:#2d475c;">
|
<div v-for="n in loglist" style="margin-bottom: 18px;padding: 12px;border:1px solid #afafaf;border-radius:10px;background:#2d475c;">
|
||||||
<div style="display: flex;align-items: center;justify-content: space-between;font-size: 16px;">
|
<div style="display: flex;align-items: center;justify-content: space-between;font-size: 16px;">
|
||||||
<div>张三三</div>
|
<div>{{n.userName}}</div>
|
||||||
<div>{{n.createTime}}</div>
|
<div>{{n.createTime}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size: 20px;">{{operationType[n.operationType]}}</div>
|
<div style="font-size: 20px;">{{operationType[n.operationType+'']}}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
@ -571,7 +579,7 @@
|
|||||||
</n-form>
|
</n-form>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<div style="position: absolute;top: 50%;left: 50%;width: 400px;height: 580px;padding: 20px;transform: translate(-50%,-50%);border-radius: 20px;border: 1px #b7b7b7 solid;background: #1e2a40;">
|
<div style="position: absolute;top: 50%;left: 50%;width: 400px;height: 500px;padding: 20px;transform: translate(-50%,-50%);border-radius: 20px;border: 1px #b7b7b7 solid;background: #1e2a40;">
|
||||||
<div style="width: 100%;padding:10px 20px;text-align: center;">
|
<div style="width: 100%;padding:10px 20px;text-align: center;">
|
||||||
<n-icon size="40" color="#00a2ff">
|
<n-icon size="40" color="#00a2ff">
|
||||||
<EarthOutline />
|
<EarthOutline />
|
||||||
@ -718,7 +726,8 @@ import {
|
|||||||
StopCircleOutline,
|
StopCircleOutline,
|
||||||
ShapesOutline,
|
ShapesOutline,
|
||||||
LogoWebComponent,
|
LogoWebComponent,
|
||||||
TimerSharp
|
TimerSharp,
|
||||||
|
LogOutOutline
|
||||||
} from '@vicons/ionicons5'
|
} from '@vicons/ionicons5'
|
||||||
|
|
||||||
import Circlebom from './circle.vue'
|
import Circlebom from './circle.vue'
|
||||||
@ -730,10 +739,10 @@ import {
|
|||||||
workstation,
|
workstation,
|
||||||
taskdetail,
|
taskdetail,
|
||||||
operationlist,
|
operationlist,
|
||||||
reportingwork
|
reportingwork,
|
||||||
|
terlogout
|
||||||
} from '@/api/proterminal'
|
} from '@/api/proterminal'
|
||||||
import { element, label } from 'three/tsl'
|
|
||||||
import { Value } from 'three/examples/jsm/inspector/ui/Values.js'
|
|
||||||
|
|
||||||
//import { dictDataApi } from '@/api/org'
|
//import { dictDataApi } from '@/api/org'
|
||||||
|
|
||||||
@ -800,10 +809,16 @@ const ticketStatus :any = {
|
|||||||
|
|
||||||
//日志类型
|
//日志类型
|
||||||
const operationType :any = {
|
const operationType :any = {
|
||||||
1:'开始',
|
'-1':'登出',
|
||||||
2:'暂停',
|
'0':'登入',
|
||||||
3:'报工',
|
'1':'开始',
|
||||||
4:'撤回'
|
'2':'暂停',
|
||||||
|
'3':'报工',
|
||||||
|
'4':'撤回',
|
||||||
|
'5':'叫料',
|
||||||
|
'6':'调车',
|
||||||
|
'7':'工位交接',
|
||||||
|
'8':'工位交接确认'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,8 @@ export default defineConfig({
|
|||||||
port: 3000,
|
port: 3000,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target:'http://192.168.12.4:8888/', //'http://192.168.5.230:8888',
|
target:'http://192.168.12.4:8888/',
|
||||||
|
//target:'http://192.168.12.230:8888',
|
||||||
//target:'http://192.168.5.230:8888',
|
//target:'http://192.168.5.230:8888',
|
||||||
//target:'http://192.168.5.232:8888/',
|
//target:'http://192.168.5.232:8888/',
|
||||||
//target:'http://localhost:8888',
|
//target:'http://localhost:8888',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user