Compare commits

..

3 Commits

Author SHA1 Message Date
ec506645a7 update 2022-03-21 01:10:08 +08:00
21b2eac76e update 2022-03-20 11:24:39 +08:00
34311763b1 update 2022-03-19 11:48:15 +08:00
36 changed files with 214 additions and 63 deletions

View File

@@ -22,7 +22,7 @@ module.exports = {
// 代理列表, 是否开启代理通过[./dev.env.js]配置 // 代理列表, 是否开启代理通过[./dev.env.js]配置
proxyTable: devEnv.OPEN_PROXY === false ? {} : { proxyTable: devEnv.OPEN_PROXY === false ? {} : {
'/proxyApi': { '/proxyApi': {
target: 'http://192.168.1.66:8080', target: 'http://192.168.1.7:8080',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/proxyApi': '/api' '^/proxyApi': '/api'

28
package-lock.json generated
View File

@@ -5593,12 +5593,14 @@
"balanced-match": { "balanced-match": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
@@ -5613,17 +5615,20 @@
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"console-control-strings": { "console-control-strings": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
@@ -5740,7 +5745,8 @@
"inherits": { "inherits": {
"version": "2.0.3", "version": "2.0.3",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"ini": { "ini": {
"version": "1.3.5", "version": "1.3.5",
@@ -5752,6 +5758,7 @@
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"number-is-nan": "^1.0.0" "number-is-nan": "^1.0.0"
} }
@@ -5766,6 +5773,7 @@
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
@@ -5773,12 +5781,14 @@
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"minipass": { "minipass": {
"version": "2.3.5", "version": "2.3.5",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"safe-buffer": "^5.1.2", "safe-buffer": "^5.1.2",
"yallist": "^3.0.0" "yallist": "^3.0.0"
@@ -5797,6 +5807,7 @@
"version": "0.5.1", "version": "0.5.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"minimist": "0.0.8" "minimist": "0.0.8"
} }
@@ -5877,7 +5888,8 @@
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"object-assign": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
@@ -5889,6 +5901,7 @@
"version": "1.4.0", "version": "1.4.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1"
} }
@@ -6010,6 +6023,7 @@
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"code-point-at": "^1.0.0", "code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",

View File

@@ -23,6 +23,13 @@ img {
vertical-align: middle; vertical-align: middle;
} }
/* El-Message
------------------------------ */
.el-message {
.el-message__content {
font-size: 24px;
}
}
/* Utils /* Utils
------------------------------ */ ------------------------------ */

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="18px" viewBox="0 0 20 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="20px" height="18px" viewBox="0 0 20 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>outdent</title> <title></title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<g id="登录页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.649999976"> <g id="登录页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.649999976">
<g id="进工业炉加工_录入托盘标识卡信息" transform="translate(-370.000000, -23.000000)" fill="#000000" fill-rule="nonzero"> <g id="进工业炉加工_录入托盘标识卡信息" transform="translate(-370.000000, -23.000000)" fill="#000000" fill-rule="nonzero">

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>出库on</title> <title>出库</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<defs> <defs>
<linearGradient x1="50%" y1="-35.9917859%" x2="50%" y2="100%" id="linearGradient-1"> <linearGradient x1="50%" y1="-35.9917859%" x2="50%" y2="100%" id="linearGradient-1">

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>编组 13</title> <title>总电流</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<g id="登录页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="登录页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="能源管理/用能源分析" transform="translate(-385.000000, -370.000000)" fill-rule="nonzero"> <g id="能源管理/用能源分析" transform="translate(-385.000000, -370.000000)" fill-rule="nonzero">

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>编组 7</title> <title>总电量</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<g id="登录页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="登录页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="能源管理/用能源分析" transform="translate(-385.000000, -239.000000)"> <g id="能源管理/用能源分析" transform="translate(-385.000000, -239.000000)">

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>Shape</title> <title>新建</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<g id="登录页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="登录页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="进工业炉加工_录入托盘标识卡信息" transform="translate(-1840.000000, -90.000000)" fill="#FFFFFF"> <g id="进工业炉加工_录入托盘标识卡信息" transform="translate(-1840.000000, -90.000000)" fill="#FFFFFF">

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="14px" height="12px" viewBox="0 0 14 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="14px" height="12px" viewBox="0 0 14 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>编组</title> <title>日历</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" fill-opacity="0.5"> <g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" fill-opacity="0.5">
<g id="select/时间_开始" transform="translate(-194.000000, -9.000000)" fill="#000000"> <g id="select/时间_开始" transform="translate(-194.000000, -9.000000)" fill="#000000">

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="11px" height="6px" viewBox="0 0 11 6" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="11px" height="6px" viewBox="0 0 11 6" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>箭头 右</title> <title>更多</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<g id="登录页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="登录页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="进工业炉加工_录入托盘标识卡信息" transform="translate(-1882.000000, -29.000000)" fill="#000000" fill-rule="nonzero"> <g id="进工业炉加工_录入托盘标识卡信息" transform="translate(-1882.000000, -29.000000)" fill="#000000" fill-rule="nonzero">

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="15px" height="14px" viewBox="0 0 15 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="15px" height="14px" viewBox="0 0 15 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>编组 33</title> <title>维护开始</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="icon/界面内/维护开始" transform="translate(-1.000000, -1.000000)"> <g id="icon/界面内/维护开始" transform="translate(-1.000000, -1.000000)">

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="15px" height="14px" viewBox="0 0 15 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="15px" height="14px" viewBox="0 0 15 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>编组 32</title> <title>维护结束</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="icon/界面内/维护结束" transform="translate(-1.000000, -1.000000)"> <g id="icon/界面内/维护结束" transform="translate(-1.000000, -1.000000)">

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>常用购票人编辑32</title> <title>修改</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="icon/界面内/编辑" transform="translate(-1.000000, -1.000000)" fill-rule="nonzero"> <g id="icon/界面内/编辑" transform="translate(-1.000000, -1.000000)" fill-rule="nonzero">

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>3.1 设置</title> <title>设置</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<g id="登录页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="登录页面" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="进工业炉加工_录入托盘标识卡信息" transform="translate(-1744.000000, -22.000000)" fill="#000000" fill-rule="nonzero"> <g id="进工业炉加工_录入托盘标识卡信息" transform="translate(-1744.000000, -22.000000)" fill="#000000" fill-rule="nonzero">

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="14px" height="12px" viewBox="0 0 14 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="14px" height="12px" viewBox="0 0 14 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>详情备份</title> <title>详情</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="icon/界面内/详情" transform="translate(-1.000000, -2.000000)" fill-rule="nonzero"> <g id="icon/界面内/详情" transform="translate(-1.000000, -2.000000)" fill-rule="nonzero">

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>生产和加工情况</title> <title>进工业炉加工</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<defs> <defs>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1"> <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 60 (88103) - https://sketch.com --> <!-- Generator: Sketch 60 (88103) - https://sketch.com -->
<title>编组 15</title> <title>追加加工</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<defs> <defs>
<linearGradient x1="50%" y1="0.100295608%" x2="50%" y2="100%" id="linearGradient-1"> <linearGradient x1="50%" y1="0.100295608%" x2="50%" y2="100%" id="linearGradient-1">

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -22,6 +22,9 @@
<icon-svg class="iconClass" name="新建"></icon-svg> <icon-svg class="iconClass" name="新建"></icon-svg>
新增 新增
</el-button> </el-button>
<el-button size="small" type="success" @click="resetCarStatus()">
重置车辆状态
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table <el-table
@@ -160,6 +163,32 @@
this.$refs.addOrUpdate.init(id) this.$refs.addOrUpdate.init(id)
}) })
}, },
// 重置车辆状态
resetCarStatus () {
this.$confirm(`确定重置车辆状态?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http({
url: this.$http.adornUrl('/vehicle/resetStatus'),
method: 'post'
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.getDataList()
}
})
} else {
this.$message.error(data.msg)
}
})
}).catch(() => {})
},
// 删除 // 删除
deleteHandle (id) { deleteHandle (id) {
this.$confirm(`确定对[id=${id}]进行删除操作?`, '提示', { this.$confirm(`确定对[id=${id}]进行删除操作?`, '提示', {

View File

@@ -34,18 +34,60 @@
align="center" align="center"
label="客户信息"> label="客户信息">
</el-table-column> </el-table-column>
<el-table-column
prop="productName"
header-align="center"
align="center"
label="产品名称">
</el-table-column>
<el-table-column
prop="orderNo"
header-align="center"
align="center"
label="订单号">
</el-table-column>
<el-table-column
prop="taskCode"
header-align="center"
align="center"
label="任务编码">
</el-table-column>
<el-table-column
prop="currTaskId"
header-align="center"
align="center"
label="当前任务ID">
</el-table-column>
<el-table-column
prop="materialDes"
header-align="center"
align="center"
label="物料牌号">
</el-table-column>
<el-table-column
prop="craftIll"
header-align="center"
align="center"
label="工艺要求">
<el-table-column <el-table-column
prop="quantity" prop="quantity"
header-align="center" header-align="center"
align="center" align="center"
label="数量"> label="数量">
</el-table-column> </el-table-column>
<el-table-column
prop="weight"
header-align="center"
align="center"
label="重量">
</el-table-column>
<el-table-column <el-table-column
prop="unit" prop="unit"
header-align="center" header-align="center"
align="center" align="center"
label="单位"> label="单位">
</el-table-column> </el-table-column>
</el-table-column>
</el-table> </el-table>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button> <el-button @click="visible = false">取消</el-button>

View File

@@ -34,9 +34,14 @@
</el-card> </el-card>
<el-card class="base-container" style="margin-top: 20px; min-height: 200px"> <el-card class="base-container" style="margin-top: 20px; min-height: 200px">
<el-row :gutter="30" style="padding: 20px;"> <el-row :gutter="30" style="padding: 20px;">
<el-col class="footer-item-container" :span="6" v-for="count in 4" :key="count"> <el-col class="footer-item-container" :offset="3" :span="6">
<el-card class="footer-item-box base-container" @click.native="selectPlat(count)"> <el-card class="footer-item-box base-container" @click.native="selectPlat(1)">
<div class="plat" style="font-size: 24px">液压台{{ count }}</div> <div class="plat" style="font-size: 24px">出口液压台1</div>
</el-card>
</el-col>
<el-col class="footer-item-container" :offset="6" :span="6">
<el-card class="footer-item-box base-container" @click.native="selectPlat(2)">
<div class="plat" style="font-size: 24px">出口液压台2</div>
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row>
@@ -157,7 +162,8 @@ export default {
.wareBox-button { .wareBox-button {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
right: 0; margin-left: -22px;
font-size: 18px;
} }
} }
.line { .line {
@@ -168,7 +174,7 @@ export default {
border-right: 200px solid #ddd; border-right: 200px solid #ddd;
} }
.enableBox { .enableBox {
background: #EFF3FF; background: #aaccFF;
} }
.disableBox { .disableBox {
background: #F4F4F4; background: #F4F4F4;

View File

@@ -100,7 +100,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
scope.row.taskType === 0 scope.row.taskType === 0
? "缓存到窑炉加工" ? "炉加工"
: scope.row.taskType === 1 : scope.row.taskType === 1
? "出炉到缓存" ? "出炉到缓存"
: scope.row.taskType === 2 : scope.row.taskType === 2

View File

@@ -28,8 +28,8 @@
<el-form-item v-if="dataForm.autoTaskType === 2" label="开始加工炉"> <el-form-item v-if="dataForm.autoTaskType === 2" label="开始加工炉">
<el-form-item label="加工起点" prop="startPosition" style="margin-bottom: 24px"> <el-form-item label="加工起点" prop="startPosition" style="margin-bottom: 24px">
<el-select v-model="dataForm.startPosition" :disabled="!(dataForm.autoTaskType)"> <el-select v-model="dataForm.startPosition" :disabled="!(dataForm.autoTaskType)">
<el-option value="YYT003" label="液压台3"></el-option> <el-option value="YYT003" label="入口液压台3"></el-option>
<el-option value="YYT004" label="液压台4"></el-option> <el-option value="YYT004" label="入口液压台4"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="加工炉" prop="firstPosition" style="margin-bottom: 24px"> <el-form-item label="加工炉" prop="firstPosition" style="margin-bottom: 24px">
@@ -46,8 +46,8 @@
<el-form-item label="清洗炉"> <el-form-item label="清洗炉">
<el-form-item label="加工起点" v-if="dataForm.autoTaskType !== 2" prop="startPosition" style="margin-bottom: 24px"> <el-form-item label="加工起点" v-if="dataForm.autoTaskType !== 2" prop="startPosition" style="margin-bottom: 24px">
<el-select v-model="dataForm.startPosition" :disabled="!(dataForm.autoTaskType)"> <el-select v-model="dataForm.startPosition" :disabled="!(dataForm.autoTaskType)">
<el-option value="YYT003" label="液压台3"></el-option> <el-option value="YYT003" label="入口液压台3"></el-option>
<el-option value="YYT004" label="液压台4"></el-option> <el-option value="YYT004" label="入口液压台4"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="加工炉" prop="secPosition" style="margin-bottom: 24px"> <el-form-item label="加工炉" prop="secPosition" style="margin-bottom: 24px">
@@ -246,7 +246,7 @@
}) })
} }
this.$http({ this.$http({
url: this.$http.adornUrl(`currTask/createAutoTask`), url: this.$http.adornUrl(`/currTask/createAutoTask`),
method: 'post', method: 'post',
data: this.$http.adornData(requestData) data: this.$http.adornData(requestData)
}).then(({data}) => { }).then(({data}) => {

View File

@@ -289,10 +289,14 @@
}, },
// 弹出提交任务弹窗 // 弹出提交任务弹窗
handleSubmit () { handleSubmit () {
this.submitFormVisible = true if (this.dataList.length) {
this.$nextTick(() => { this.submitFormVisible = true
this.$refs.submitForm.init(this.dataList) this.$nextTick(() => {
}) this.$refs.submitForm.init(this.dataList)
})
} else {
this.$message.warning('请至少添加一条任务!')
}
}, },
handleAutoDetail (id) { handleAutoDetail (id) {
this.autoDetailVisible = true this.autoDetailVisible = true

View File

@@ -12,7 +12,7 @@
:visible.sync="visible" :visible.sync="visible"
> >
<div class="wareBox" v-for="count in 4" v-bind:key="count" @click="setPoint(count)"> <div class="wareBox" v-for="count in 4" v-bind:key="count" @click="setPoint(count)">
<div class="plat">提升平{{count}}</div> <div class="plat">液压{{count}}</div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button> <el-button @click="visible = false">取消</el-button>
@@ -39,7 +39,7 @@ export default {
setPoint (count) { setPoint (count) {
console.log(count, this.pointType) console.log(count, this.pointType)
this.visible = false this.visible = false
this.$emit('refreshPoint', count, this.pointType) this.$emit('refreshPoint', 'YYT00' + count, this.pointType)
} }
} }
} }

View File

@@ -15,10 +15,8 @@
</el-form-item> </el-form-item>
<el-form-item style="margin-left:1%"> <el-form-item style="margin-left:1%">
<el-select v-model="startPosition" size="small" placeholder="任务起点位置" clearable> <el-select v-model="startPosition" size="small" placeholder="任务起点位置" clearable>
<el-option :value="1" label="提升平台1" /> <el-option value="YYT003" label="入口液压台3" />
<el-option :value="2" label="提升平台2" /> <el-option value="YYT004" label="入口液压台4" />
<el-option :value="3" label="提升平台3" />
<el-option :value="4" label="提升平台4" />
</el-select> </el-select>
<!-- <el-button style="margin-left:10px" type="primary" @click="getPoint(0)">{{startPosition}}</el-button> --> <!-- <el-button style="margin-left:10px" type="primary" @click="getPoint(0)">{{startPosition}}</el-button> -->
</el-form-item> </el-form-item>
@@ -199,7 +197,7 @@
message: '请选择窑炉', message: '请选择窑炉',
type: 'warning' type: 'warning'
}) })
} else if (!this.processType) { } else if (!this.processType && this.processType !== 0) {
this.$message.warning('请选择加工类型') this.$message.warning('请选择加工类型')
} else { } else {
this.$confirm(`确定提交任务?`, '提示', { this.$confirm(`确定提交任务?`, '提示', {
@@ -208,7 +206,7 @@
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$http({ this.$http({
url: this.$http.adornUrl(`currTask/createProcessTask`), url: this.$http.adornUrl(`/currTask/createProcessTask`),
method: 'post', method: 'post',
data: this.$http.adornData({ data: this.$http.adornData({
craftCode: '', craftCode: '',

View File

@@ -41,7 +41,9 @@
return { return {
loading: false, loading: false,
websock: '', websock: '',
url: '' url: '',
id: 1,
heart: null
} }
}, },
components: { components: {
@@ -67,14 +69,16 @@
} }
}, },
created () { created () {
const baseurl = window.SITE_CONFIG.baseUrl this.url = window.SITE_CONFIG.baseWsUrl
this.url = baseurl.slice(5)
this.getUserInfo() this.getUserInfo()
this.initWebSocket() this.initWebSocket()
}, },
mounted () { mounted () {
this.resetDocumentClientHeight() this.resetDocumentClientHeight()
}, },
destroyed () {
clearInterval(this.heart)
},
methods: { methods: {
// 重置窗口可视高度 // 重置窗口可视高度
resetDocumentClientHeight () { resetDocumentClientHeight () {
@@ -98,15 +102,20 @@
// }) // })
}, },
initWebSocket () { // 初始化weosocket initWebSocket () { // 初始化weosocket
const path = `ws:${this.url}/qj/websocket/${'id'}` const path = `${this.url}qj/websocket/${this.id}`
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
this.websock.onerror = this.websocketonerror this.websock.onerror = this.websocketonerror
this.websock.onclose = this.websocketclose this.websock.onclose = this.websocketclose
}, },
websocketonopen () { // 连接建立之后执行send方法发送数据 websocketonopen () { // 连接建立之后建立心跳
this.websocketsend(JSON.stringify()) this.heartFun()
},
heartFun () { // 心跳函数
this.heart = setInterval(() => {
this.websocketsend('1')
}, 30000)
}, },
websocketonerror () { // 连接建立失败重连 websocketonerror () { // 连接建立失败重连
this.initWebSocket() this.initWebSocket()
@@ -118,8 +127,8 @@
duration: 15000 duration: 15000
}) })
}, },
websocketsend () { // 数据发送 websocketsend (msg) { // 数据发送
this.websock.send() this.websock.send(msg)
}, },
websocketclose (e) { // 关闭 websocketclose (e) { // 关闭
console.log('断开连接', e) console.log('断开连接', e)

View File

@@ -44,6 +44,9 @@
prop="taskType" prop="taskType"
label="任务类型" label="任务类型"
> >
<template slot-scope="scope">
{{ scope.row.taskType >= 0 ? taskTypeList[scope.row.taskType] : '' }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="remark" prop="remark"
@@ -102,7 +105,11 @@ export default {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
totalPage: 0, totalPage: 0,
dataListLoading: false dataListLoading: false,
taskTypeList: {
0: '初始加工',
1: '复加工'
}
} }
}, },
activated () { activated () {

View File

@@ -37,6 +37,9 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="发起时间"> label="发起时间">
<template slot-scope="scope">
{{ scope.row.createTime ? moment(scope.row.createTime).format('YYYY-MM-D HH:mm:ss') : '' }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="taskSource" prop="taskSource"
@@ -55,7 +58,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
scope.row.taskType === 0 scope.row.taskType === 0
? "缓存到窑炉加工" ? "炉加工"
: scope.row.taskType === 1 : scope.row.taskType === 1
? "出炉到缓存" ? "出炉到缓存"
: scope.row.taskType === 2 : scope.row.taskType === 2
@@ -83,7 +86,7 @@
width="80" width="80"
label="详情"> label="详情">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="Detail(scope.row.id)">详情</el-button> <el-button v-if="scope.row.status === 0" type="text" size="small" @click="Detail(scope.row.id)">详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -119,6 +122,7 @@
</template> </template>
<script> <script>
import moment from 'moment'
// 任务状态列表 // 任务状态列表
const statusList = { const statusList = {
0: '等待执行', 0: '等待执行',
@@ -138,7 +142,8 @@
pageSize: 10, pageSize: 10,
totalPage: 0, totalPage: 0,
dataListLoading: false, dataListLoading: false,
statusList statusList,
moment
} }
}, },
activated () { activated () {

View File

@@ -52,6 +52,9 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="报警时间"> label="报警时间">
<template slot-scope="scope">
{{ scope.row.createTime ? moment(scope.row.createTime).format('YYYY-MM-D HH:mm:ss') : '' }}
</template>
</el-table-column> </el-table-column>
<!-- <el-table-column <!-- <el-table-column
prop="time" prop="time"
@@ -75,6 +78,8 @@
</template> </template>
<script> <script>
import moment from 'moment'
export default { export default {
data () { data () {
return { return {
@@ -88,7 +93,8 @@
totalPage: 0, totalPage: 0,
dataListLoading: false, dataListLoading: false,
selectionDataList: [], selectionDataList: [],
carList: [] carList: [],
moment
} }
}, },
created () { created () {

View File

@@ -57,6 +57,9 @@
prop="createTime" prop="createTime"
label="报警时间" label="报警时间"
> >
<template slot-scope="scope">
{{ scope.row.createTime ? moment(scope.row.createTime).format('YYYY-MM-D HH:mm:ss') : '' }}
</template>
</el-table-column> </el-table-column>
<!-- <el-table-column <!-- <el-table-column
prop="time" prop="time"
@@ -83,6 +86,8 @@
</template> </template>
<script> <script>
import moment from 'moment'
export default { export default {
data () { data () {
return { return {
@@ -96,7 +101,8 @@ export default {
totalPage: 0, totalPage: 0,
dataListLoading: false, dataListLoading: false,
selectionDataList: [], selectionDataList: [],
kilnList: [] kilnList: [],
moment
} }
}, },
created () { created () {

View File

@@ -43,6 +43,9 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="获取时间"> label="获取时间">
<template slot-scope="scope">
{{ scope.row.createTime ? moment(scope.row.createTime).format('YYYY-MM-D HH:mm:ss') : '' }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="idenCardNum" prop="idenCardNum"
@@ -132,6 +135,7 @@
</template> </template>
<script> <script>
import moment from 'moment'
import orderDetail from './components/order-history-detail' import orderDetail from './components/order-history-detail'
// 任务状态列表 // 任务状态列表
const statusList = { const statusList = {
@@ -163,7 +167,8 @@
dataListLoading: false, dataListLoading: false,
orderDetailVisible: false, orderDetailVisible: false,
statusList, statusList,
orderVoidList orderVoidList,
moment
} }
}, },
components: { components: {

View File

@@ -62,6 +62,9 @@
prop="createTime" prop="createTime"
label="发起时间" label="发起时间"
> >
<template slot-scope="scope">
{{ scope.row.createTime ? moment(scope.row.createTime).format('YYYY-MM-D HH:mm:ss') : '' }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="taskSource" prop="taskSource"
@@ -83,7 +86,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
scope.row.taskType === 0 scope.row.taskType === 0
? "缓存到窑炉加工" ? "炉加工"
: scope.row.taskType === 1 : scope.row.taskType === 1
? "出炉到缓存" ? "出炉到缓存"
: scope.row.taskType === 2 : scope.row.taskType === 2
@@ -145,6 +148,7 @@
</template> </template>
<script> <script>
import moment from 'moment'
// 任务状态列表 // 任务状态列表
const statusList = { const statusList = {
0: '等待执行', 0: '等待执行',
@@ -167,7 +171,8 @@ export default {
totalPage: 0, totalPage: 0,
dataListLoading: false, dataListLoading: false,
orderDetailVisible: false, orderDetailVisible: false,
statusList statusList,
moment
} }
}, },
activated () { activated () {

View File

@@ -14,6 +14,8 @@
// api接口请求地址 // api接口请求地址
window.SITE_CONFIG['baseUrl'] = '/api'; window.SITE_CONFIG['baseUrl'] = '/api';
// WS请求地址
window.SITE_CONFIG['baseWsUrl'] = 'ws://192.168.6.66:8080/'
// cdn地址 = 域名 + 版本号 // cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './'; // 域名 window.SITE_CONFIG['domain'] = './'; // 域名

View File

@@ -6,6 +6,8 @@
// api接口请求地址 // api接口请求地址
window.SITE_CONFIG['baseUrl'] = 'http://localhost:8080/renren-fast'; window.SITE_CONFIG['baseUrl'] = 'http://localhost:8080/renren-fast';
// WS请求地址
window.SITE_CONFIG['baseWsUrl'] = 'ws://192.168.1.7:8080/'
// cdn地址 = 域名 + 版本号 // cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './'; // 域名 window.SITE_CONFIG['domain'] = './'; // 域名

View File

@@ -6,6 +6,8 @@
// api接口请求地址 // api接口请求地址
window.SITE_CONFIG['baseUrl'] = 'http://localhost:8080/renren-fast'; window.SITE_CONFIG['baseUrl'] = 'http://localhost:8080/renren-fast';
// WS请求地址
window.SITE_CONFIG['baseWsUrl'] = 'ws://192.168.1.7:8080/'
// cdn地址 = 域名 + 版本号 // cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './'; // 域名 window.SITE_CONFIG['domain'] = './'; // 域名

View File

@@ -12,7 +12,9 @@
window.SITE_CONFIG = {} window.SITE_CONFIG = {}
// api接口请求地址 // api接口请求地址
window.SITE_CONFIG['baseUrl'] = 'http://192.168.0.134:8080/' window.SITE_CONFIG['baseUrl'] = 'http://192.168.1.7:8080/'
// WS请求地址
window.SITE_CONFIG['baseWsUrl'] = 'ws://192.168.1.7:8080/'
// cdn地址 = 域名 + 版本号 // cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './' // 域名 window.SITE_CONFIG['domain'] = './' // 域名