Merge branch 'master' into b_lms2
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
ENV = 'development'
|
||||
|
||||
# 接口地址
|
||||
VUE_APP_BASE_API = 'http://localhost:8011'
|
||||
VUE_APP_WS_API = 'ws://localhost:8011'
|
||||
VUE_APP_BASE_API = 'http://localhost:8010'
|
||||
VUE_APP_WS_API = 'ws://localhost:8010'
|
||||
|
||||
# 是否启用 babel-plugin-dynamic-import-node插件
|
||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
"vue-echarts": "^5.0.0-beta.0",
|
||||
"vue-highlightjs": "^1.3.3",
|
||||
"vue-image-crop-upload": "^2.5.0",
|
||||
"vue-particles": "^1.0.9",
|
||||
"vue-print-nb": "^1.7.5",
|
||||
"vue-router": "3.0.2",
|
||||
"vue-seamless-scroll": "^1.1.23",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
window.g = {
|
||||
dev: {
|
||||
VUE_APP_BASE_API: 'http://127.0.0.1:8015'
|
||||
VUE_APP_BASE_API: 'http://10.1.3.94:8011'
|
||||
},
|
||||
prod: {
|
||||
VUE_APP_BASE_API: 'http://127.0.0.1:8012'
|
||||
VUE_APP_BASE_API: 'http://10.1.3.94:8011'
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -24,11 +24,11 @@ export function edit(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function finish(task_id) {
|
||||
export function finish(data) {
|
||||
return request({
|
||||
url: 'api/task/finish/' + task_id,
|
||||
url: 'api/task/finish',
|
||||
method: 'post',
|
||||
data: task_id
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 5.0 KiB |
BIN
acs/nladmin-ui/src/assets/images/logo1.png
Normal file
BIN
acs/nladmin-ui/src/assets/images/logo1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.6 KiB |
@@ -2,11 +2,11 @@
|
||||
<div class="sidebar-logo-container" :class="{'collapse':collapse}" :style="{ backgroundColor: sideTheme === 'theme-dark' ? variables.menuBg : variables.menuLightBackground }">
|
||||
<transition name="sidebarLogoFade">
|
||||
<router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
|
||||
<img v-if="logo" :src="logo" class="sidebar-logo" />
|
||||
<img v-if="logo" :src="logo" class="sidebar-logo">
|
||||
<h1 v-else class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }} </h1>
|
||||
</router-link>
|
||||
<router-link v-else key="expand" class="sidebar-logo-link" to="/">
|
||||
<img v-if="logo" :src="logo" class="sidebar-logo" />
|
||||
<img v-if="logo" :src="logo" class="sidebar-logo">
|
||||
<h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }} </h1>
|
||||
</router-link>
|
||||
</transition>
|
||||
@@ -24,6 +24,13 @@ export default {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '诺力开发平台',
|
||||
logo: Logo,
|
||||
title_param: 'platform'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
variables() {
|
||||
return variables
|
||||
@@ -32,13 +39,6 @@ export default {
|
||||
return this.$store.state.settings.sideTheme
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '诺力开发平台',
|
||||
logo: Logo,
|
||||
title_param: 'platform'
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getValueByCode(this.title_param).then(res => {
|
||||
this.title = res.value
|
||||
@@ -70,8 +70,8 @@ export default {
|
||||
width: 100%;
|
||||
|
||||
& .sidebar-logo {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
width: 55px;
|
||||
height: 15px;
|
||||
vertical-align: middle;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,9 @@ import 'font-awesome/css/font-awesome.css'
|
||||
import mavonEditor from 'mavon-editor'
|
||||
import 'mavon-editor/dist/css/index.css'
|
||||
|
||||
import VueParticles from 'vue-particles'
|
||||
Vue.use(VueParticles)
|
||||
|
||||
// 数据字典
|
||||
import dict from './components/Dict'
|
||||
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
<rrOperation/>
|
||||
<rrOperation />
|
||||
</div>
|
||||
<crudOperation :permission="permission"/>
|
||||
<crudOperation :permission="permission" />
|
||||
<!--表单组件-->
|
||||
<el-dialog
|
||||
:close-on-click-modal="false"
|
||||
@@ -27,32 +27,32 @@
|
||||
>
|
||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
|
||||
<el-form-item label="OPC编码" prop="opc_code">
|
||||
<el-input v-model="form.opc_code" style="width: 370px;"/>
|
||||
<el-input v-model="form.opc_code" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="OPC名称" prop="opc_name">
|
||||
<el-input v-model="form.opc_name" style="width: 370px;"/>
|
||||
<el-input v-model="form.opc_name" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="OPC地址">
|
||||
<el-input v-model="form.opc_host" style="width: 370px;"/>
|
||||
<el-input v-model="form.opc_host" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="用户名">
|
||||
<el-input v-model="form.user" style="width: 370px;"/>
|
||||
<el-input v-model="form.user" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="密码" prop="password">
|
||||
<el-input v-model="form.password" style="width: 370px;" type="password"/>
|
||||
<el-input v-model="form.password" style="width: 370px;" type="password" />
|
||||
<el-button :loading="crud.cu === 2" type="primary" @click="getDetail()">详情</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item label="程序ID">
|
||||
<el-input v-model="form.prog_id" style="width: 370px;"/>
|
||||
<el-input v-model="form.prog_id" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="注册表ID">
|
||||
<el-input v-model="form.cls_id" style="width: 370px;"/>
|
||||
<el-input v-model="form.cls_id" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="domain">
|
||||
<el-input v-model="form.domain" style="width: 370px;"/>
|
||||
<el-input v-model="form.domain" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" style="width: 380px;" rows="5" type="textarea"/>
|
||||
<el-input v-model="form.remark" style="width: 380px;" rows="5" type="textarea" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@@ -63,18 +63,18 @@
|
||||
|
||||
<el-dialog title="PLC管理" :visible.sync="dialogPlcFormVisible" width="550px">
|
||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
|
||||
<el-input v-model="form.opc_server_id" type="hidden" prop="opc_server_id"/>
|
||||
<el-input v-model="form.opc_server_id" type="hidden" prop="opc_server_id" />
|
||||
<el-form-item label="PLC编码" prop="plc_code">
|
||||
<el-input v-model="form.plc_code" style="width: 370px;"/>
|
||||
<el-input v-model="form.plc_code" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="OPC名称" prop="plc_opc_name">
|
||||
<el-input v-model="form.plc_opc_name" style="width: 370px;" disabled/>
|
||||
<el-input v-model="form.plc_opc_name" style="width: 370px;" disabled />
|
||||
</el-form-item>
|
||||
<el-form-item label="PLC名称" prop="plc_name">
|
||||
<el-input v-model="form.plc_name" style="width: 370px;"/>
|
||||
<el-input v-model="form.plc_name" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="PLC地址" prop="plc_host">
|
||||
<el-input v-model="form.plc_host" style="width: 370px;"/>
|
||||
<el-input v-model="form.plc_host" style="width: 370px;" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@@ -97,30 +97,30 @@
|
||||
@select-all="crud.selectAllChange"
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="selection" width="55"/>
|
||||
<el-table-column prop="opc_code" label="OPC编码" width="100"/>
|
||||
<el-table-column prop="opc_name" label="OPC名称"/>
|
||||
<el-table-column prop="opc_host" label="OPC地址" min-width="130"/>
|
||||
<el-table-column prop="type" label="类型"/>
|
||||
<el-table-column prop="user" label="用户名" min-width="100"/>
|
||||
<el-table-column prop="password" label="密码"/>
|
||||
<el-table-column prop="prog_id" label="程序ID" min-width="150"/>
|
||||
<el-table-column prop="cls_id" label="注册表ID" min-width="150"/>
|
||||
<el-table-column prop="domain" label="domain"/>
|
||||
<el-table-column prop="remark" label="备注" min-width="100"/>
|
||||
<el-table-column prop="createtime" label="创建时间"/>
|
||||
<el-table-column label="操作" width="200px" align="center" fixed="right">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column prop="opc_code" label="OPC编码" width="100" />
|
||||
<el-table-column prop="opc_name" label="OPC名称" />
|
||||
<el-table-column prop="opc_host" label="OPC地址" min-width="130" />
|
||||
<el-table-column prop="type" label="类型" />
|
||||
<el-table-column prop="user" label="用户名" min-width="100" />
|
||||
<el-table-column prop="password" label="密码" />
|
||||
<el-table-column prop="prog_id" label="程序ID" min-width="150" />
|
||||
<el-table-column prop="cls_id" label="注册表ID" min-width="150" />
|
||||
<el-table-column prop="domain" label="domain" />
|
||||
<el-table-column prop="remark" label="备注" min-width="100" />
|
||||
<el-table-column prop="createtime" label="创建时间" />
|
||||
<el-table-column label="操作" width="180px" align="center" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" size="small" @click="handleClick(scope.row,'1')">修改</el-button>
|
||||
<el-button type="text" size="small" @click="handleClick(scope.row,'2')">删除</el-button>
|
||||
<el-button v-if="scope.row.opc_flag === '1'" type="text" size="small" @click="handleClick(scope.row,'0')">
|
||||
<el-button type="text" icon="el-icon-edit" size="small" @click="handleClick(scope.row,'1')">修改</el-button>
|
||||
<el-button type="text" icon="el-icon-delete" size="small" @click="handleClick(scope.row,'2')">删除</el-button>
|
||||
<el-button v-if="scope.row.opc_flag === '1'" type="text" icon="el-icon-plus" size="small" @click="handleClick(scope.row,'0')">
|
||||
新增PLC
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination/>
|
||||
<pagination />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<el-dialog
|
||||
:close-on-click-modal="false"
|
||||
:before-close="crud.cancelCU"
|
||||
:visible.sync="crud.status.cu > 0"
|
||||
:visible.sync="crud.status.cu"
|
||||
:title="crud.status.title"
|
||||
width="500px"
|
||||
>
|
||||
@@ -63,10 +63,10 @@
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column prop="device_code" label="设备编码" />
|
||||
<el-table-column prop="error_code" label="报警编码" />
|
||||
<el-table-column prop="error_info" label="报警信息" />
|
||||
<el-table-column prop="error_time" label="报警时间" />
|
||||
<el-table-column prop="device_code" label="设备编码" :min-width="flexWidth('device_code',crud.data,'设备编码')" />
|
||||
<el-table-column prop="error_code" label="报警编码" :min-width="flexWidth('error_code',crud.data,'报警编码')" />
|
||||
<el-table-column prop="error_info" label="报警信息" :min-width="flexWidth('error_info',crud.data,'报警信息')" />
|
||||
<el-table-column prop="error_time" label="报警时间" :min-width="flexWidth('error_time',crud.data,'报警时间')" />
|
||||
<el-table-column
|
||||
v-permission="['admin','acsDeviceErrorLog:edit','acsDeviceErrorLog:del']"
|
||||
label="操作"
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
<el-dialog
|
||||
:close-on-click-modal="false"
|
||||
:before-close="crud.cancelCU"
|
||||
:visible.sync="crud.status.cu > 0"
|
||||
:visible.sync="crud.status.cu"
|
||||
:title="crud.status.title"
|
||||
width="500px"
|
||||
>
|
||||
@@ -95,45 +95,45 @@
|
||||
style="width: 100%;"
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column v-if="false" prop="instruction_id" label="指令标识" />
|
||||
<el-table-column prop="instruction_code" label="指令编号" width="200" />
|
||||
<el-table-column prop="task_code" label="任务号" />
|
||||
<el-table-column prop="vehicle_code" label="载具号" />
|
||||
<el-table-column v-if="false" prop="instruction_id" label="指令标识" :min-width="flexWidth('instruction_id',crud.data,'指令标识')" />
|
||||
<el-table-column prop="instruction_code" label="指令编号" :min-width="flexWidth('instruction_code',crud.data,'指令编号')" />
|
||||
<el-table-column prop="task_code" label="任务号" :min-width="flexWidth('task_code',crud.data,'任务号')" />
|
||||
<el-table-column prop="vehicle_code" label="载具号" :min-width="flexWidth('vehicle_code',crud.data,'载具号')" />
|
||||
<el-table-column prop="instruction_type" label="指令类型" width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_type[scope.row.instruction_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="instruction_status" label="指令状态">
|
||||
<el-table-column prop="instruction_status" label="指令状态" :min-width="flexWidth('instruction_status',crud.data,'指令状态')">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_status[scope.row.instruction_status] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="start_point_code" label="起点" />
|
||||
<el-table-column prop="next_point_code" label="终点" />
|
||||
<el-table-column prop="start_point_code2" label="起点2" />
|
||||
<el-table-column prop="next_point_code2" label="终点2" />
|
||||
<el-table-column prop="put_point_code" label="中转点" />
|
||||
<el-table-column prop="start_height" label="取货高度" />
|
||||
<el-table-column prop="next_height" label="放货高度" />
|
||||
<el-table-column prop="carno" label="车号" />
|
||||
<el-table-column prop="agv_system_type" label="AGV系统类型">
|
||||
<el-table-column prop="start_point_code" label="起点" :min-width="flexWidth('start_point_code',crud.data,'起点')" />
|
||||
<el-table-column prop="next_point_code" label="终点" :min-width="flexWidth('next_point_code',crud.data,'终点')" />
|
||||
<el-table-column prop="start_point_code2" label="起点2" :min-width="flexWidth('start_point_code2',crud.data,'起点2')" />
|
||||
<el-table-column prop="next_point_code2" label="终点2" :min-width="flexWidth('next_point_code2',crud.data,'终点2')" />
|
||||
<el-table-column prop="put_point_code" label="中转点" :min-width="flexWidth('put_point_code',crud.data,'中转点')" />
|
||||
<el-table-column prop="start_height" label="取货高度" :min-width="flexWidth('start_height',crud.data,'取货高度')" />
|
||||
<el-table-column prop="next_height" label="放货高度" :min-width="flexWidth('next_height',crud.data,'放货高度')" />
|
||||
<el-table-column prop="carno" label="车号" :min-width="flexWidth('carno',crud.data,'车号')" />
|
||||
<el-table-column prop="agv_system_type" label="AGV系统类型" width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.agv_system_type[scope.row.agv_system_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="agv_inst_type" label="AGV指令类型">
|
||||
<el-table-column prop="agv_inst_type" label="AGV指令类型" :min-width="flexWidth('agv_inst_type',crud.data,'AGV指令类型')">
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ dict.label.agv_inst_type[scope.row.agv_inst_type] }}-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column prop="weight" label="重量" />
|
||||
<el-table-column prop="quantity" label="数量" />
|
||||
<el-table-column prop="remark" label="描述" />
|
||||
<el-table-column prop="create_by" label="创建者" />
|
||||
<el-table-column prop="create_time" label="创建时间" width="135" />
|
||||
<el-table-column prop="update_by" label="修改者" />
|
||||
<el-table-column prop="update_time" label="修改时间" width="135" />
|
||||
<el-table-column prop="weight" label="重量" :min-width="flexWidth('weight',crud.data,'重量')" />
|
||||
<el-table-column prop="quantity" label="数量" :min-width="flexWidth('quantity',crud.data,'数量')" />
|
||||
<el-table-column prop="remark" label="描述" :min-width="flexWidth('remark',crud.data,'描述')" />
|
||||
<el-table-column prop="create_by" label="创建者" :min-width="flexWidth('create_by',crud.data,'创建者')" />
|
||||
<el-table-column prop="create_time" label="创建时间" :min-width="flexWidth('create_time',crud.data,'创建时间')" />
|
||||
<el-table-column prop="update_by" label="修改者" :min-width="flexWidth('update_by',crud.data,'修改者')" />
|
||||
<el-table-column prop="update_time" label="修改时间" :min-width="flexWidth('update_time',crud.data,'修改时间')" />
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
@@ -202,7 +202,7 @@ export default {
|
||||
edit: false,
|
||||
del: false,
|
||||
reset: false,
|
||||
download: true
|
||||
download: false
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -229,47 +229,47 @@
|
||||
style="width: 100%;"
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column v-if="false" prop="task_id" label="任务标识" />
|
||||
<el-table-column prop="task_code" label="任务号" width="200" />
|
||||
<el-table-column prop="vehicle_code" label="载具号" />
|
||||
<el-table-column v-if="false" prop="task_id" label="任务标识" :min-width="flexWidth('task_id',crud.data,'任务标识')" />
|
||||
<el-table-column prop="task_code" label="任务号" :min-width="flexWidth('task_code',crud.data,'任务号')" />
|
||||
<el-table-column prop="vehicle_code" label="载具号" :min-width="flexWidth('vehicle_code',crud.data,'载具号')" />
|
||||
<el-table-column prop="task_type" label="任务类型" width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_type[scope.row.task_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="task_status" label="任务状态">
|
||||
<el-table-column prop="task_status" label="任务状态" :min-width="flexWidth('task_status',crud.data,'任务状态')">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_status[scope.row.task_status] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="priority" label="任务优先级" />
|
||||
<el-table-column prop="start_point_code" label="起点" />
|
||||
<el-table-column prop="next_point_code" label="终点" />
|
||||
<el-table-column prop="start_point_code2" label="起点2" />
|
||||
<el-table-column prop="start_point_code2" label="终点2" />
|
||||
<el-table-column prop="put_point_code" label="中转点" />
|
||||
<el-table-column prop="start_height" label="取货高度" />
|
||||
<el-table-column prop="next_height" label="放货高度" />
|
||||
<el-table-column prop="car_no" label="车号" />
|
||||
<el-table-column prop="agv_system_type" label="AGV系统类型">
|
||||
<el-table-column prop="priority" label="任务优先级" :min-width="flexWidth('priority',crud.data,'任务优先级')" />
|
||||
<el-table-column prop="start_point_code" label="起点" :min-width="flexWidth('start_point_code',crud.data,'起点')" />
|
||||
<el-table-column prop="next_point_code" label="终点" :min-width="flexWidth('next_point_code',crud.data,'终点')" />
|
||||
<el-table-column prop="start_point_code2" label="起点2" :min-width="flexWidth('start_point_code2',crud.data,'起点2')" />
|
||||
<el-table-column prop="next_point_code2" label="终点2" :min-width="flexWidth('next_point_code2',crud.data,'终点2')" />
|
||||
<el-table-column prop="put_point_code" label="中转点" :min-width="flexWidth('put_point_code',crud.data,'中转点')" />
|
||||
<el-table-column prop="start_height" label="取货高度" :min-width="flexWidth('start_height',crud.data,'取货高度')" />
|
||||
<el-table-column prop="next_height" label="放货高度" :min-width="flexWidth('next_height',crud.data,'放货高度')" />
|
||||
<el-table-column prop="car_no" label="车号" :min-width="flexWidth('car_no',crud.data,'车号')" />
|
||||
<el-table-column prop="agv_system_type" label="AGV系统类型" width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.agv_system_type[scope.row.agv_system_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="storage_task_type" label="立库任务类型">
|
||||
<el-table-column prop="storage_task_type" label="立库任务类型" :min-width="flexWidth('storage_task_type',crud.data,'立库任务类型')">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.storage_task_type[scope.row.storage_task_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="weight" label="重量" />
|
||||
<el-table-column prop="temperature" label="温度" />
|
||||
<el-table-column prop="oven_time" label="烘箱时间" />
|
||||
<el-table-column prop="quantity" label="数量" />
|
||||
<el-table-column prop="remark" label="备注" />
|
||||
<el-table-column prop="create_by" label="创建者" />
|
||||
<el-table-column prop="create_time" label="创建时间" width="135" />
|
||||
<el-table-column prop="update_by" label="修改者" />
|
||||
<el-table-column prop="update_time" label="结束时间" width="135" />
|
||||
<el-table-column prop="weight" label="重量" :min-width="flexWidth('weight',crud.data,'重量')" />
|
||||
<el-table-column prop="temperature" label="温度" :min-width="flexWidth('temperature',crud.data,'温度')" />
|
||||
<el-table-column prop="oven_time" label="烘箱时间" :min-width="flexWidth('oven_time',crud.data,'烘箱时间')" />
|
||||
<el-table-column prop="quantity" label="数量" :min-width="flexWidth('quantity',crud.data,'数量')" />
|
||||
<el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')" />
|
||||
<el-table-column prop="create_by" label="创建者" :min-width="flexWidth('create_by',crud.data,'创建者')" />
|
||||
<el-table-column prop="create_time" label="创建时间" :min-width="flexWidth('create_time',crud.data,'创建时间')" />
|
||||
<el-table-column prop="update_by" label="修改者" :min-width="flexWidth('update_by',crud.data,'修改者')" />
|
||||
<el-table-column prop="update_time" label="结束时间" :min-width="flexWidth('update_time',crud.data,'结束时间')" />
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
@@ -325,7 +325,7 @@ export default {
|
||||
edit: false,
|
||||
del: false,
|
||||
reset: false,
|
||||
download: true
|
||||
download: false
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -86,51 +86,51 @@
|
||||
@select-all="crud.selectAllChange"
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column v-if="false" prop="task_id" label="任务标识" />
|
||||
<el-table-column prop="task_code" label="任务号(指令编号)" width="200" />
|
||||
<el-table-column prop="vehicle_code" label="载具号" />
|
||||
<el-table-column v-if="false" prop="task_id" label="任务标识" :min-width="flexWidth('task_id',crud.data,'任务标识')" />
|
||||
<el-table-column prop="task_code" label="任务号(指令编号)" :min-width="flexWidth('task_code',crud.data,'任务号(指令编号)')" />
|
||||
<el-table-column prop="vehicle_code" label="载具号" :min-width="flexWidth('vehicle_code',crud.data,'载具号')" />
|
||||
<el-table-column prop="task_type" label="任务类型" width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_type[scope.row.task_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="task_status" label="状态">
|
||||
<el-table-column prop="task_status" label="状态" width="60">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_status[scope.row.task_status] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="priority" label="任务优先级" />
|
||||
<el-table-column prop="start_point_code" label="起点" />
|
||||
<el-table-column prop="next_point_code" label="终点" />
|
||||
<el-table-column prop="start_point_code2" label="起点2" />
|
||||
<el-table-column prop="next_point_code2" label="终点2" />
|
||||
<el-table-column prop="put_point_code" label="中转点" />
|
||||
<el-table-column prop="start_height" label="取货高度" />
|
||||
<el-table-column prop="next_height" label="放货高度" />
|
||||
<el-table-column prop="car_no" label="车号" />
|
||||
<el-table-column prop="agv_system_type" label="AGV系统类型">
|
||||
<el-table-column prop="priority" label="任务优先级" :min-width="flexWidth('priority',crud.data,'任务优先级')" />
|
||||
<el-table-column prop="start_point_code" label="起点" :min-width="flexWidth('start_point_code',crud.data,'起点')" />
|
||||
<el-table-column prop="next_point_code" label="终点" :min-width="flexWidth('next_point_code',crud.data,'终点')" />
|
||||
<el-table-column prop="start_point_code2" label="起点2" :min-width="flexWidth('start_point_code2',crud.data,'起点2')" />
|
||||
<el-table-column prop="next_point_code2" label="终点2" :min-width="flexWidth('next_point_code2',crud.data,'终点2')" />
|
||||
<el-table-column prop="put_point_code" label="中转点" :min-width="flexWidth('put_point_code',crud.data,'中转点')" />
|
||||
<el-table-column prop="start_height" label="取货高度" :min-width="flexWidth('start_height',crud.data,'取货高度')" />
|
||||
<el-table-column prop="next_height" label="放货高度" :min-width="flexWidth('next_height',crud.data,'放货高度')" />
|
||||
<el-table-column prop="car_no" label="车号" :min-width="flexWidth('car_no',crud.data,'车号')" />
|
||||
<el-table-column prop="agv_system_type" label="AGV系统类型" width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.agv_system_type[scope.row.agv_system_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="agv_inst_type" label="AGV指令类型">
|
||||
<el-table-column prop="agv_inst_type" label="AGV指令类型" width="120px">
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ dict.label.agv_inst_type[scope.row.agv_inst_type] }}-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column prop="storage_task_type" label="立库任务类型">
|
||||
<el-table-column prop="storage_task_type" label="立库任务类型" width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.storage_task_type[scope.row.storage_task_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="weight" label="重量" />
|
||||
<el-table-column prop="temperature" label="温度" />
|
||||
<el-table-column prop="quantity" label="数量" />
|
||||
<el-table-column prop="remark" label="备注" />
|
||||
<el-table-column prop="create_by" label="创建者" />
|
||||
<el-table-column prop="create_time" label="创建时间" width="135" />
|
||||
<el-table-column prop="update_by" label="修改者" />
|
||||
<el-table-column prop="update_time" label="结束时间" width="135" />
|
||||
<el-table-column prop="weight" label="重量" :min-width="flexWidth('weight',crud.data,'重量')" />
|
||||
<el-table-column prop="temperature" label="温度" :min-width="flexWidth('temperature',crud.data,'温度')" />
|
||||
<el-table-column prop="quantity" label="数量" :min-width="flexWidth('quantity',crud.data,'数量')" />
|
||||
<el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')" />
|
||||
<el-table-column prop="create_by" label="创建者" :min-width="flexWidth('create_by',crud.data,'创建者')" />
|
||||
<el-table-column prop="create_time" label="创建时间" :min-width="flexWidth('create_time',crud.data,'创建时间')" />
|
||||
<el-table-column prop="update_by" label="修改者" :min-width="flexWidth('update_by',crud.data,'修改者')" />
|
||||
<el-table-column prop="update_time" label="结束时间" :min-width="flexWidth('update_time',crud.data,'结束时间')" />
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
|
||||
@@ -5,15 +5,15 @@
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-select
|
||||
v-model="form.unified_key"
|
||||
placeholder="unified_key"
|
||||
class="filter-item"
|
||||
@change="crud.toQuery"
|
||||
clearable
|
||||
filterable
|
||||
size="small">
|
||||
<el-option v-for="(item,index) in unified_key" :key="index" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
v-model="form.unified_key"
|
||||
placeholder="unified_key"
|
||||
class="filter-item"
|
||||
clearable
|
||||
filterable
|
||||
size="small"
|
||||
@change="crud.toQuery"
|
||||
>
|
||||
<el-option v-for="(item,index) in unified_key" :key="index" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
<el-input
|
||||
v-model="query.code"
|
||||
@@ -31,7 +31,7 @@
|
||||
<el-dialog
|
||||
:close-on-click-modal="false"
|
||||
:before-close="crud.cancelCU"
|
||||
:visible.sync="crud.status.cu > 0"
|
||||
:visible.sync="crud.status.cu"
|
||||
:title="crud.status.title"
|
||||
width="500px"
|
||||
>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
style="width: 190px"
|
||||
@change="crud.toQuery"
|
||||
>
|
||||
<el-option v-for="item in materialList" :key="item.id" :label="item.label" :value="item.value" />
|
||||
<el-option v-for="item in dict.materialList" :key="item.id" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="query.status"
|
||||
@@ -86,7 +86,7 @@
|
||||
<el-dialog
|
||||
:close-on-click-modal="false"
|
||||
:before-close="crud.cancelCU"
|
||||
:visible.sync="crud.status.cu > 0"
|
||||
:visible.sync="crud.status.cu"
|
||||
:title="crud.status.title"
|
||||
width="500px"
|
||||
>
|
||||
@@ -119,48 +119,52 @@
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column v-if="false" prop="instruction_id" label="指令标识" />
|
||||
<el-table-column prop="instruction_code" label="指令编号" />
|
||||
<el-table-column prop="instruction_type" label="指令类型">
|
||||
<el-table-column v-if="false" prop="instruction_id" label="指令标识" :min-width="flexWidth('instruction_id',crud.data,'指令标识')" />
|
||||
<el-table-column prop="instruction_code" label="指令编号" :min-width="flexWidth('instruction_code',crud.data,'指令编号')" />
|
||||
<el-table-column prop="instruction_type" label="指令类型" width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_type[scope.row.instruction_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column prop="link_num" label="关联编号" />-->
|
||||
<el-table-column prop="task_code" label="任务号" />
|
||||
<el-table-column prop="vehicle_code" label="载具号" />
|
||||
<el-table-column prop="instruction_status" label="指令状态">
|
||||
<el-table-column prop="task_code" label="任务号" :min-width="flexWidth('task_code',crud.data,'任务号')" />
|
||||
<el-table-column prop="vehicle_code" label="载具号" :min-width="flexWidth('vehicle_code',crud.data,'载具号')" />
|
||||
<el-table-column prop="instruction_status" label="指令状态" :min-width="flexWidth('instruction_status',crud.data,'指令状态')">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.instruction_status=='0' ">就绪</span>
|
||||
<span v-if="scope.row.instruction_status=='1' ">执行中</span>
|
||||
<span v-if="scope.row.instruction_status=='2' ">完成</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="send_status" label="下发状态">
|
||||
<el-table-column prop="send_status" label="下发状态" :min-width="flexWidth('send_status',crud.data,'下发状态')">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.send_status=='0' ">未下发</span>
|
||||
<span v-if="scope.row.send_status=='1' ">成功</span>
|
||||
<span v-if="scope.row.send_status=='2' ">失败</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="start_point_code" label="取货点1" />
|
||||
<el-table-column prop="next_point_code" label="放货点1" />
|
||||
<el-table-column prop="start_point_code2" label="取货点2" />
|
||||
<el-table-column prop="next_point_code2" label="放货点2" />
|
||||
<el-table-column prop="put_point_code" label="中转点" />
|
||||
<el-table-column prop="execute_device_code" label="当前执行设备" />
|
||||
<el-table-column prop="carno" label="车号" />
|
||||
<el-table-column prop="weight" label="重量" />
|
||||
<el-table-column prop="agv_jobno" label="AGV任务号" />
|
||||
<el-table-column prop="agv_inst_type" label="AGV任务类型" />
|
||||
<el-table-column prop="agv_system_type" label="AGV系统类型" />
|
||||
<el-table-column prop="start_height" label="取货高度" />
|
||||
<el-table-column prop="next_height" label="放货高度" />
|
||||
<el-table-column prop="remark" label="描述" />
|
||||
<el-table-column prop="create_by" label="创建者" />
|
||||
<el-table-column prop="create_time" label="创建时间" width="135" />
|
||||
<el-table-column prop="start_point_code" label="取货点1" :min-width="flexWidth('start_point_code',crud.data,'取货点1')" />
|
||||
<el-table-column prop="next_point_code" label="放货点1" :min-width="flexWidth('next_point_code',crud.data,'放货点1')" />
|
||||
<el-table-column prop="start_point_code2" label="取货点2" :min-width="flexWidth('start_point_code2',crud.data,'取货点2')" />
|
||||
<el-table-column prop="next_point_code2" label="放货点2" :min-width="flexWidth('next_point_code2',crud.data,'放货点2')" />
|
||||
<el-table-column prop="put_point_code" label="中转点" :min-width="flexWidth('put_point_code',crud.data,'中转点')" />
|
||||
<el-table-column prop="execute_device_code" label="当前执行设备" :min-width="flexWidth('execute_device_code',crud.data,'当前执行设备')" />
|
||||
<el-table-column prop="carno" label="车号" :min-width="flexWidth('carno',crud.data,'车号')" />
|
||||
<el-table-column prop="weight" label="重量" :min-width="flexWidth('weight',crud.data,'重量')" />
|
||||
<el-table-column prop="agv_jobno" label="AGV任务号" :min-width="flexWidth('agv_jobno',crud.data,'AGV任务号')" />
|
||||
<el-table-column prop="agv_inst_type" label="AGV任务类型" :min-width="flexWidth('agv_inst_type',crud.data,'AGV任务类型')" />
|
||||
<el-table-column prop="agv_system_type" label="AGV系统类型" width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.agv_system_type[scope.row.agv_system_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="start_height" label="取货高度" :min-width="flexWidth('start_height',crud.data,'取货高度')" />
|
||||
<el-table-column prop="next_height" label="放货高度" :min-width="flexWidth('next_height',crud.data,'放货高度')" />
|
||||
<el-table-column prop="remark" label="描述" :min-width="flexWidth('remark',crud.data,'描述')" />
|
||||
<el-table-column prop="create_by" label="创建者" :min-width="flexWidth('create_by',crud.data,'创建者')" />
|
||||
<el-table-column prop="create_time" label="创建时间" :min-width="flexWidth('create_time',crud.data,'创建时间')" />
|
||||
|
||||
<el-table-column
|
||||
<!-- <el-table-column
|
||||
v-permission="['admin','instruction:edit','instruction:del']"
|
||||
fixed="left"
|
||||
label="操作"
|
||||
@@ -180,6 +184,94 @@
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column
|
||||
v-permission="['admin','instruction:edit','instruction:del']"
|
||||
label="操作"
|
||||
width="100"
|
||||
align="center"
|
||||
fixed="right"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<!-- <el-button-group>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-finished"
|
||||
@click="handleCommand({ index: scope.$index, row: scope.row, command: 'a' })"
|
||||
>
|
||||
完成
|
||||
</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-circle-close"
|
||||
@click="handleCommand({ index: scope.$index, row: scope.row, command: 'b' })"
|
||||
>
|
||||
取消
|
||||
</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-folder-add"
|
||||
@click="handleCommand({ index: scope.$index, row: scope.row, command: 'c' })"
|
||||
>
|
||||
强制取消
|
||||
</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-folder-add"
|
||||
@click="handleCommand({ index: scope.$index, row: scope.row, command: 'd' })"
|
||||
>
|
||||
初始化
|
||||
</el-button>
|
||||
</el-button-group> -->
|
||||
<el-dropdown>
|
||||
<span class="el-dropdown-link">
|
||||
<i class="el-icon-setting">More</i>
|
||||
<!-- <el-icon class="el-icon--right">
|
||||
<arrow-down />
|
||||
</el-icon> -->
|
||||
</span>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-finished"
|
||||
@click="handleCommand({ index: scope.$index, row: scope.row, command: 'a' })"
|
||||
>
|
||||
完成
|
||||
</el-button>
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-circle-close"
|
||||
@click="handleCommand({ index: scope.$index, row: scope.row, command: 'b' })"
|
||||
>
|
||||
取消
|
||||
</el-button>
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-folder-add"
|
||||
@click="handleCommand({ index: scope.$index, row: scope.row, command: 'c' })"
|
||||
>
|
||||
强制取消
|
||||
</el-button>
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-check"
|
||||
@click="handleCommand({ index: scope.$index, row: scope.row, command: 'd' })"
|
||||
>
|
||||
初始化
|
||||
</el-button>
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
@@ -232,7 +324,7 @@ const defaultForm = {
|
||||
update_time: null
|
||||
}
|
||||
export default {
|
||||
dicts: ['task_status', 'task_type'],
|
||||
dicts: ['task_status', 'task_type', 'agv_system_type'],
|
||||
name: 'Instruction',
|
||||
components: { crudOperation, pagination },
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
@@ -370,4 +462,5 @@ export default {
|
||||
.el-icon-arrow-down {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
<crudOperation :permission="permission">
|
||||
<el-button
|
||||
slot="left"
|
||||
v-permission="['admin','task:add']"
|
||||
class="filter-item"
|
||||
size="mini"
|
||||
type="primary"
|
||||
@@ -407,45 +408,46 @@
|
||||
style="width: 100%;"
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="selection" width="25" />
|
||||
<el-table-column v-if="false" prop="task_id" label="任务标识" />
|
||||
<el-table-column prop="task_code" label="任务号" width="100" />
|
||||
<el-table-column prop="task_type" label="任务类型" width="120">
|
||||
<el-table-column type="selection" width="50" />
|
||||
<el-table-column v-if="false" prop="task_id" label="任务标识" :min-width="flexWidth('task_id',crud.data,'任务标识')" />
|
||||
<el-table-column prop="task_code" label="任务号" :min-width="flexWidth('task_code',crud.data,'任务号')" />
|
||||
<el-table-column prop="task_type" label="任务类型" width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_type[scope.row.task_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column prop="link_num" label="关联编号" />-->
|
||||
<el-table-column prop="vehicle_code" label="载具号" width="100" />
|
||||
<el-table-column prop="task_status" label="任务状态" width="60">
|
||||
<el-table-column prop="vehicle_code" label="载具号" :min-width="flexWidth('vehicle_code',crud.data,'载具号')" />
|
||||
<el-table-column prop="task_status" label="任务状态" :min-width="flexWidth('task_status',crud.data,'任务状态')">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_status[scope.row.task_status] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="priority" label="优先级" width="100" />
|
||||
<el-table-column prop="start_point_code" label="取货点1" width="100px" />
|
||||
<el-table-column prop="next_point_code" label="放货点1" width="120px" />
|
||||
<el-table-column prop="start_point_code2" label="取货点2" width="120px" />
|
||||
<el-table-column prop="next_point_code2" label="放货点2" width="120px" />
|
||||
<el-table-column prop="put_point_code" label="中转点" width="100px" />
|
||||
<!-- <el-table-column prop="agv_task_type" label="AGV任务类型" width="120px" />-->
|
||||
<el-table-column prop="priority" label="优先级" :min-width="flexWidth('priority',crud.data,'优先级')" />
|
||||
<el-table-column prop="start_point_code" label="取货点1" :min-width="flexWidth('start_point_code',crud.data,'取货点1')" />
|
||||
<el-table-column prop="next_point_code" label="放货点1" :min-width="flexWidth('next_point_code',crud.data,'放货点1')" />
|
||||
<el-table-column prop="start_point_code2" label="取货点2" :min-width="flexWidth('start_point_code2',crud.data,'取货点2')" />
|
||||
<el-table-column prop="next_point_code2" label="放货点2" :min-width="flexWidth('next_point_code2',crud.data,'放货点2')" />
|
||||
<el-table-column prop="put_point_code" label="中转点" :min-width="flexWidth('put_point_code',crud.data,'中转点')" />
|
||||
<el-table-column prop="agv_system_type" label="AGV系统类型" width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.agv_system_type[scope.row.agv_system_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="storage_task_type" label="立库任务类型" width="120px">
|
||||
<el-table-column prop="storage_task_type" label="立库任务类型" :min-width="flexWidth('storage_task_type',crud.data,'立库任务类型')">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.storage_task_type[scope.row.storage_task_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="start_height" label="取货高度" />
|
||||
<el-table-column prop="next_height" label="放货高度" />
|
||||
<el-table-column prop="truss_type" label="内包间行架任务类型" />
|
||||
<el-table-column prop="remark" label="备注" />
|
||||
<el-table-column prop="create_by" label="创建者" />
|
||||
<el-table-column prop="create_time" label="创建时间" width="135" />
|
||||
<el-table-column
|
||||
<el-table-column prop="start_height" label="取货高度" :min-width="flexWidth('start_height',crud.data,'取货高度')" />
|
||||
<el-table-column prop="next_height" label="放货高度" :min-width="flexWidth('next_height',crud.data,'放货高度')" />
|
||||
<el-table-column prop="device_code" label="纸管库出库仓位" :min-width="flexWidth('device_code',crud.data,'纸管库出库仓位')" />
|
||||
<el-table-column prop="qty" label="纸管库出库数量" :min-width="flexWidth('qty',crud.data,'纸管库出库数量')" />
|
||||
<el-table-column prop="truss_type" label="内包间行架任务类型" :min-width="flexWidth('truss_type',crud.data,'内包间行架任务类型')" />
|
||||
<el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')" />
|
||||
<el-table-column prop="create_by" label="创建者" :min-width="flexWidth('create_by',crud.data,'创建者')" />
|
||||
<el-table-column prop="create_time" label="创建时间" :min-width="flexWidth('create_time',crud.data,'创建时间')" />
|
||||
<!-- <el-table-column
|
||||
v-permission="['admin','task:edit','task:del']"
|
||||
fixed="left"
|
||||
label="操作"
|
||||
@@ -464,6 +466,46 @@
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column
|
||||
v-permission="['admin','task:edit','task:del']"
|
||||
label="操作"
|
||||
width="200"
|
||||
align="center"
|
||||
fixed="right"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button-group>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-finished"
|
||||
@click="handleCommand({ index: scope.$index, row: scope.row, command: 'a' })"
|
||||
>
|
||||
完成
|
||||
</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-circle-close"
|
||||
@click="handleCommand({ index: scope.$index, row: scope.row, command: 'b' })"
|
||||
>
|
||||
取消
|
||||
</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-folder-add"
|
||||
@click="handleCommand({ index: scope.$index, row: scope.row, command: 'c' })"
|
||||
>
|
||||
创建指令
|
||||
</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-finished"
|
||||
@click="handleCommand({ index: scope.$index, row: scope.row, command: 'd' })"
|
||||
>
|
||||
强制完成
|
||||
</el-button>
|
||||
</el-button-group>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
@@ -494,7 +536,7 @@ export default {
|
||||
edit: true,
|
||||
del: true,
|
||||
reset: false,
|
||||
download: true
|
||||
download: false
|
||||
},
|
||||
crudMethod: { ...crudTask }
|
||||
})
|
||||
@@ -599,13 +641,13 @@ export default {
|
||||
device_code: '',
|
||||
material_code: '',
|
||||
qty: ''
|
||||
}/* ,
|
||||
{
|
||||
device_code: '',
|
||||
material_code: '',
|
||||
qty: ''
|
||||
} */
|
||||
]
|
||||
}],
|
||||
device_code: null,
|
||||
qty: null
|
||||
},
|
||||
taskStatus: {
|
||||
task_status: '',
|
||||
task_id: null
|
||||
},
|
||||
rules: {
|
||||
start_height: [
|
||||
@@ -677,7 +719,9 @@ export default {
|
||||
console.log(this.form.paperArray)
|
||||
},
|
||||
finish(index, row) {
|
||||
crudTask.finish(row.task_id).then(res => {
|
||||
this.taskStatus.task_id = row.task_id
|
||||
this.taskStatus.task_status = index
|
||||
crudTask.finish(this.taskStatus).then(res => {
|
||||
this.crud.toQuery()
|
||||
this.crud.notify('完成成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
}).catch(err => {
|
||||
@@ -708,17 +752,19 @@ export default {
|
||||
// })
|
||||
// },
|
||||
|
||||
beforeHandleCommand(index, row, command) {
|
||||
/* beforeHandleCommand(index, row, command) {
|
||||
console.log(command.command)
|
||||
return {
|
||||
'index': index,
|
||||
'row': row,
|
||||
'command': command
|
||||
}
|
||||
},
|
||||
}, */
|
||||
handleCommand(command) {
|
||||
console.log(command.command)
|
||||
switch (command.command) {
|
||||
case 'a':// 完成
|
||||
this.finish(command.index, command.row)
|
||||
this.finish('3', command.row)
|
||||
break
|
||||
case 'b':// 取消
|
||||
this.cancel(command.index, command.row)
|
||||
@@ -726,6 +772,9 @@ export default {
|
||||
case 'c':// 创建指令
|
||||
this.createInst(command.index, command.row)
|
||||
break
|
||||
case 'd':// 完成
|
||||
this.finish('4', command.row)
|
||||
break
|
||||
}
|
||||
},
|
||||
showStartStorage(val) {
|
||||
@@ -837,4 +886,11 @@ export default {
|
||||
.el-icon-arrow-down {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.custom-cell {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@@ -1,8 +1,26 @@
|
||||
<template>
|
||||
<div class="login" :style="'background-image:url('+ Background +');'">
|
||||
<vue-particles
|
||||
class="lizi"
|
||||
color="#dedede"
|
||||
:particle-opacity="0.7"
|
||||
:particles-number="80"
|
||||
shape-type="circle"
|
||||
:particle-size="4"
|
||||
lines-color="#dedede"
|
||||
:lines-width="1"
|
||||
:line-linked="true"
|
||||
:line-opacity="0.4"
|
||||
:lines-distance="150"
|
||||
:move-speed="3"
|
||||
:hover-effect="true"
|
||||
hover-mode="grab"
|
||||
:click-effect="true"
|
||||
click-mode="push"
|
||||
/>
|
||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" label-position="left" label-width="0px" class="login-form">
|
||||
<h3 class="title">
|
||||
{{title}}</h3>
|
||||
{{ title }}</h3>
|
||||
<el-form-item prop="username">
|
||||
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
||||
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
||||
@@ -56,8 +74,8 @@ export default {
|
||||
codeUrl: '',
|
||||
cookiePass: '',
|
||||
loginForm: {
|
||||
username: 'admin',
|
||||
password: '123456',
|
||||
username: '',
|
||||
password: '',
|
||||
rememberMe: false,
|
||||
code: '',
|
||||
uuid: ''
|
||||
@@ -169,7 +187,18 @@ export default {
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
background-size: cover;
|
||||
}
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.lizi {
|
||||
background-size: cover;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin: 0 auto 30px auto;
|
||||
text-align: center;
|
||||
|
||||
@@ -470,6 +470,9 @@ export default {
|
||||
} else if (val === 'error') {
|
||||
const obj = { name: '报警', value: data[val] }
|
||||
this.arr.push(obj)
|
||||
} else if (val === 'error1') {
|
||||
const obj = { name: '报警2', value: data[val] }
|
||||
this.arr.push(obj)
|
||||
} else if (val === 'ip') {
|
||||
const obj = { name: 'IP地址', value: data[val] }
|
||||
this.arr.push(obj)
|
||||
@@ -672,10 +675,10 @@ export default {
|
||||
const obj = { name: '重量2', value: data[val] }
|
||||
this.arr.push(obj)
|
||||
} else if (val === 'move1') {
|
||||
const obj = { name: '光电信号1', value: data[val] }
|
||||
const obj = { name: '设备工位', value: data[val] }
|
||||
this.arr.push(obj)
|
||||
} else if (val === 'move2') {
|
||||
const obj = { name: '光电信号2', value: data[val] }
|
||||
const obj = { name: '设备有无货', value: data[val] }
|
||||
this.arr.push(obj)
|
||||
} else if (val === 'material1') {
|
||||
const obj = { name: '物料1', value: this.dict.label.material[data[val]] }
|
||||
|
||||
Reference in New Issue
Block a user