更新
This commit is contained in:
parent
a227548f38
commit
847acd0390
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-15 08:20:28
|
* @Date: 2021-11-15 08:20:28
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-07-06 10:38:26
|
* @LastEditTime: 2022-07-07 09:48:49
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
@ -23,7 +23,8 @@ const _import = require('./import-' + process.env.NODE_ENV)
|
|||||||
// 全局路由(无需嵌套上左右整体布局)
|
// 全局路由(无需嵌套上左右整体布局)
|
||||||
const globalRoutes = [
|
const globalRoutes = [
|
||||||
{ path: '/404', component: _import('common/404'), name: '404', meta: { title: '404未找到' } },
|
{ path: '/404', component: _import('common/404'), name: '404', meta: { title: '404未找到' } },
|
||||||
{ path: '/login', component: _import('common/login'), name: 'login', meta: { title: '登录' } }
|
{ path: '/login', component: _import('common/login'), name: 'login', meta: { title: '登录' } },
|
||||||
|
{ path: '/board', component: _import('common/board'), name: 'board', meta: { title: '车间生产看板', isTab: false } }
|
||||||
]
|
]
|
||||||
|
|
||||||
// 主入口路由(需嵌套上左右整体布局)
|
// 主入口路由(需嵌套上左右整体布局)
|
||||||
@ -39,7 +40,6 @@ const mainRoutes = {
|
|||||||
// 2. iframeUrl: 是否通过iframe嵌套展示内容, '以http[s]://开头': 是, '': 否
|
// 2. iframeUrl: 是否通过iframe嵌套展示内容, '以http[s]://开头': 是, '': 否
|
||||||
// 提示: 如需要通过iframe嵌套展示内容, 但不通过tab打开, 请自行创建组件使用iframe处理!
|
// 提示: 如需要通过iframe嵌套展示内容, 但不通过tab打开, 请自行创建组件使用iframe处理!
|
||||||
{ path: '/home', component: _import('common/home'), name: 'home', meta: { title: '首页', isTab: true } },
|
{ path: '/home', component: _import('common/home'), name: 'home', meta: { title: '首页', isTab: true } },
|
||||||
{ path: '/board', component: _import('common/board'), name: 'board', meta: { title: '车间生产看板', isTab: false } },
|
|
||||||
{ path: '/orderProcess', component: _import('common/order-process'), name: 'orderProcess', meta: { title: '订单加工', isTab: true } },
|
{ path: '/orderProcess', component: _import('common/order-process'), name: 'orderProcess', meta: { title: '订单加工', isTab: true } },
|
||||||
{ path: '/orderAuto', component: _import('common/order-auto'), name: 'orderAuto', meta: { title: '自动任务', isTab: true } },
|
{ path: '/orderAuto', component: _import('common/order-auto'), name: 'orderAuto', meta: { title: '自动任务', isTab: true } },
|
||||||
{ path: '/exWarehouse', component: _import('common/ex-warehouse'), name: 'exWarehouse', meta: { title: '货物出库', isTab: true } },
|
{ path: '/exWarehouse', component: _import('common/ex-warehouse'), name: 'exWarehouse', meta: { title: '货物出库', isTab: true } },
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2022-03-07 15:31:13
|
* @Date: 2022-03-07 15:31:13
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-07-06 16:08:05
|
* @LastEditTime: 2022-07-07 10:50:49
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -29,8 +29,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
const baseurl = window.SITE_CONFIG.baseUrl
|
this.url = window.SITE_CONFIG.wbUrl
|
||||||
this.url = baseurl.substring(5, baseurl.length - 4)
|
|
||||||
this.initWebSocket()
|
this.initWebSocket()
|
||||||
},
|
},
|
||||||
destroyed () {
|
destroyed () {
|
||||||
@ -42,7 +41,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
initWebSocket () {
|
initWebSocket () {
|
||||||
// 初始化weosocket
|
// 初始化weosocket
|
||||||
const path = `ws:${this.url}/qj/websocket/2`
|
const path = `ws://${this.url}/qj/websocket/2`
|
||||||
this.websock = new WebSocket(path)
|
this.websock = new WebSocket(path)
|
||||||
this.websock.onmessage = this.websocketonmessage
|
this.websock.onmessage = this.websocketonmessage
|
||||||
this.websock.onopen = this.websocketonopen
|
this.websock.onopen = this.websocketonopen
|
||||||
@ -76,7 +75,7 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.main-body {
|
.main-body {
|
||||||
min-height: 88vh;
|
min-height: 100vh;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: url(~@/assets/img/board/1.png) center no-repeat;
|
background: url(~@/assets/img/board/1.png) center no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
@ -70,12 +70,14 @@
|
|||||||
methods: {
|
methods: {
|
||||||
init (row, idx) {
|
init (row, idx) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.row = null
|
||||||
|
this.editIndex = null
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['dataForm'].resetFields()
|
this.$refs['dataForm'].resetFields()
|
||||||
if (row) {
|
if (row) {
|
||||||
this.row = row
|
this.row = JSON.parse(JSON.stringify(row))
|
||||||
this.dataForm = row
|
this.dataForm = JSON.parse(JSON.stringify(row))
|
||||||
this.editIndex = idx
|
this.editIndex = JSON.parse(JSON.stringify(idx))
|
||||||
}
|
}
|
||||||
this.$refs['idenCardNum'].focus()
|
this.$refs['idenCardNum'].focus()
|
||||||
})
|
})
|
||||||
@ -90,7 +92,6 @@
|
|||||||
'idenCardNum': this.dataForm.idenCardNum
|
'idenCardNum': this.dataForm.idenCardNum
|
||||||
})
|
})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
console.log(data)
|
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dataForm = data.data
|
this.dataForm = data.data
|
||||||
this.dataForm.targetQuantity = data.data.quantity
|
this.dataForm.targetQuantity = data.data.quantity
|
||||||
@ -110,7 +111,7 @@
|
|||||||
dataFormSubmit () {
|
dataFormSubmit () {
|
||||||
this.$refs['dataForm'].validate((valid) => {
|
this.$refs['dataForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.editIndex) {
|
if (this.editIndex || this.editIndex === 0) {
|
||||||
const taskList = JSON.parse(sessionStorage.getItem('taskList'))
|
const taskList = JSON.parse(sessionStorage.getItem('taskList'))
|
||||||
taskList.splice(this.editIndex, 1, this.dataForm)
|
taskList.splice(this.editIndex, 1, this.dataForm)
|
||||||
sessionStorage.setItem('taskList', JSON.stringify(taskList))
|
sessionStorage.setItem('taskList', JSON.stringify(taskList))
|
||||||
|
@ -199,7 +199,7 @@
|
|||||||
message: '请选择窑炉',
|
message: '请选择窑炉',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else if (this.processType !== 0 || this.processType !== 1) {
|
} else if (this.processType !== 0 && this.processType !== 1) {
|
||||||
this.$message.warning('请选择加工类型')
|
this.$message.warning('请选择加工类型')
|
||||||
} else {
|
} else {
|
||||||
this.$confirm(`确定提交任务?`, '提示', {
|
this.$confirm(`确定提交任务?`, '提示', {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-15 08:20:28
|
* @Date: 2021-11-15 08:20:28
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-07-06 16:28:27
|
* @LastEditTime: 2022-07-07 10:51:59
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -67,8 +67,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
const baseurl = window.SITE_CONFIG.baseUrl
|
this.url = window.SITE_CONFIG.wbUrl
|
||||||
this.url = baseurl.substring(5, baseurl.length - 4)
|
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
this.initWebSocket()
|
this.initWebSocket()
|
||||||
},
|
},
|
||||||
@ -98,7 +97,7 @@
|
|||||||
// })
|
// })
|
||||||
},
|
},
|
||||||
initWebSocket () { // 初始化weosocket
|
initWebSocket () { // 初始化weosocket
|
||||||
const path = `ws:${this.url}/qj/websocket/1`
|
const path = `ws://${this.url}/qj/websocket/1`
|
||||||
this.websock = new WebSocket(path)
|
this.websock = new WebSocket(path)
|
||||||
this.websock.onmessage = this.websocketonmessage
|
this.websock.onmessage = this.websocketonmessage
|
||||||
this.websock.onopen = this.websocketonopen
|
this.websock.onopen = this.websocketonopen
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: gtz
|
* @Author: gtz
|
||||||
* @Date: 2021-11-19 10:10:52
|
* @Date: 2021-11-19 10:10:52
|
||||||
* @LastEditors: gtz
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2021-12-09 11:08:41
|
* @LastEditTime: 2022-07-07 10:51:22
|
||||||
* @Description: file content
|
* @Description: file content
|
||||||
* @FilePath: \mt-qj-wms-ui\static\config\index-prod.js
|
* @FilePath: \mt-qj-wms-ui\static\config\index-prod.js
|
||||||
*/
|
*/
|
||||||
@ -10,13 +10,14 @@
|
|||||||
* 生产环境
|
* 生产环境
|
||||||
*/
|
*/
|
||||||
;(function () {
|
;(function () {
|
||||||
window.SITE_CONFIG = {};
|
window.SITE_CONFIG = {}
|
||||||
|
|
||||||
// api接口请求地址
|
// api接口请求地址
|
||||||
window.SITE_CONFIG['baseUrl'] = '/api';
|
window.SITE_CONFIG['baseUrl'] = '/api'
|
||||||
|
window.SITE_CONFIG['wbUrl'] = '192.168.1.18:8080'
|
||||||
|
|
||||||
// cdn地址 = 域名 + 版本号
|
// cdn地址 = 域名 + 版本号
|
||||||
window.SITE_CONFIG['domain'] = './'; // 域名
|
window.SITE_CONFIG['domain'] = './' // 域名
|
||||||
window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分)
|
window.SITE_CONFIG['version'] = '' // 版本号(年月日时分)
|
||||||
window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version;
|
window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version
|
||||||
})();
|
})()
|
||||||
|
Loading…
Reference in New Issue
Block a user