Compare commits

...

2 Commits
master ... gtz

Author SHA1 Message Date
ec506645a7 update 2022-03-21 01:10:08 +08:00
21b2eac76e update 2022-03-20 11:24:39 +08:00
18 changed files with 166 additions and 33 deletions

View File

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

View File

@ -22,6 +22,9 @@
<icon-svg class="iconClass" name="新建"></icon-svg>
新增
</el-button>
<el-button size="small" type="success" @click="resetCarStatus()">
重置车辆状态
</el-button>
</el-form-item>
</el-form>
<el-table
@ -160,6 +163,32 @@
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) {
this.$confirm(`确定对[id=${id}]进行删除操作?`, '提示', {

View File

@ -34,18 +34,60 @@
align="center"
label="客户信息">
</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
prop="quantity"
header-align="center"
align="center"
label="数量">
</el-table-column>
<el-table-column
prop="weight"
header-align="center"
align="center"
label="重量">
</el-table-column>
<el-table-column
prop="unit"
header-align="center"
align="center"
label="单位">
</el-table-column>
</el-table-column>
</el-table>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button>

View File

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

View File

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

View File

@ -28,8 +28,8 @@
<el-form-item v-if="dataForm.autoTaskType === 2" label="开始加工炉">
<el-form-item label="加工起点" prop="startPosition" style="margin-bottom: 24px">
<el-select v-model="dataForm.startPosition" :disabled="!(dataForm.autoTaskType)">
<el-option value="YYT003" label="液压台3"></el-option>
<el-option value="YYT004" label="液压台4"></el-option>
<el-option value="YYT003" label="入口液压台3"></el-option>
<el-option value="YYT004" label="入口液压台4"></el-option>
</el-select>
</el-form-item>
<el-form-item label="加工炉" prop="firstPosition" style="margin-bottom: 24px">
@ -46,8 +46,8 @@
<el-form-item label="清洗炉">
<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-option value="YYT003" label="液压台3"></el-option>
<el-option value="YYT004" label="液压台4"></el-option>
<el-option value="YYT003" label="入口液压台3"></el-option>
<el-option value="YYT004" label="入口液压台4"></el-option>
</el-select>
</el-form-item>
<el-form-item label="加工炉" prop="secPosition" style="margin-bottom: 24px">

View File

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

View File

@ -41,7 +41,9 @@
return {
loading: false,
websock: '',
url: ''
url: '',
id: 1,
heart: null
}
},
components: {
@ -67,14 +69,16 @@
}
},
created () {
const baseurl = window.SITE_CONFIG.baseUrl
this.url = baseurl.slice(5)
this.url = window.SITE_CONFIG.baseWsUrl
this.getUserInfo()
this.initWebSocket()
},
mounted () {
this.resetDocumentClientHeight()
},
destroyed () {
clearInterval(this.heart)
},
methods: {
//
resetDocumentClientHeight () {
@ -98,15 +102,20 @@
// })
},
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.onmessage = this.websocketonmessage
this.websock.onopen = this.websocketonopen
this.websock.onerror = this.websocketonerror
this.websock.onclose = this.websocketclose
},
websocketonopen () { // send
this.websocketsend(JSON.stringify())
websocketonopen () { //
this.heartFun()
},
heartFun () { //
this.heart = setInterval(() => {
this.websocketsend('1')
}, 30000)
},
websocketonerror () { //
this.initWebSocket()
@ -118,8 +127,8 @@
duration: 15000
})
},
websocketsend () { //
this.websock.send()
websocketsend (msg) { //
this.websock.send(msg)
},
websocketclose (e) { //
console.log('断开连接', e)

View File

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

View File

@ -37,6 +37,9 @@
<el-table-column
prop="createTime"
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
prop="taskSource"
@ -55,7 +58,7 @@
<template slot-scope="scope">
<span>{{
scope.row.taskType === 0
? "缓存到窑炉加工"
? "加工"
: scope.row.taskType === 1
? "出炉到缓存"
: scope.row.taskType === 2
@ -83,7 +86,7 @@
width="80"
label="详情">
<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>
</el-table-column>
<el-table-column
@ -119,6 +122,7 @@
</template>
<script>
import moment from 'moment'
//
const statusList = {
0: '等待执行',
@ -138,7 +142,8 @@
pageSize: 10,
totalPage: 0,
dataListLoading: false,
statusList
statusList,
moment
}
},
activated () {

View File

@ -52,6 +52,9 @@
<el-table-column
prop="createTime"
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
prop="time"
@ -75,6 +78,8 @@
</template>
<script>
import moment from 'moment'
export default {
data () {
return {
@ -88,7 +93,8 @@
totalPage: 0,
dataListLoading: false,
selectionDataList: [],
carList: []
carList: [],
moment
}
},
created () {

View File

@ -57,6 +57,9 @@
prop="createTime"
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
prop="time"
@ -83,6 +86,8 @@
</template>
<script>
import moment from 'moment'
export default {
data () {
return {
@ -96,7 +101,8 @@ export default {
totalPage: 0,
dataListLoading: false,
selectionDataList: [],
kilnList: []
kilnList: [],
moment
}
},
created () {

View File

@ -43,6 +43,9 @@
<el-table-column
prop="createTime"
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
prop="idenCardNum"
@ -132,6 +135,7 @@
</template>
<script>
import moment from 'moment'
import orderDetail from './components/order-history-detail'
//
const statusList = {
@ -163,7 +167,8 @@
dataListLoading: false,
orderDetailVisible: false,
statusList,
orderVoidList
orderVoidList,
moment
}
},
components: {

View File

@ -62,6 +62,9 @@
prop="createTime"
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
prop="taskSource"
@ -83,7 +86,7 @@
<template slot-scope="scope">
<span>{{
scope.row.taskType === 0
? "缓存到窑炉加工"
? "加工"
: scope.row.taskType === 1
? "出炉到缓存"
: scope.row.taskType === 2
@ -145,6 +148,7 @@
</template>
<script>
import moment from 'moment'
//
const statusList = {
0: '等待执行',
@ -167,7 +171,8 @@ export default {
totalPage: 0,
dataListLoading: false,
orderDetailVisible: false,
statusList
statusList,
moment
}
},
activated () {

View File

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

View File

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

View File

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

View File

@ -12,7 +12,9 @@
window.SITE_CONFIG = {}
// 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地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './' // 域名