update
This commit is contained in:
parent
9f3c13f893
commit
f445045cc4
@ -2,7 +2,7 @@
|
|||||||
* @Author: gtz
|
* @Author: gtz
|
||||||
* @Date: 2021-11-19 10:10:51
|
* @Date: 2021-11-19 10:10:51
|
||||||
* @LastEditors: gtz
|
* @LastEditors: gtz
|
||||||
* @LastEditTime: 2021-12-08 16:04:48
|
* @LastEditTime: 2021-12-10 09:04:19
|
||||||
* @Description: file content
|
* @Description: file content
|
||||||
* @FilePath: \mt-qj-wms-ui\config\index.js
|
* @FilePath: \mt-qj-wms-ui\config\index.js
|
||||||
*/
|
*/
|
||||||
@ -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.0.134:8080/',
|
target: 'http://192.168.0.134:8080',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/proxyApi': '/api'
|
'^/proxyApi': '/api'
|
||||||
|
673
package-lock.json
generated
673
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -25,7 +25,7 @@
|
|||||||
"gulp-replace": "0.6.1",
|
"gulp-replace": "0.6.1",
|
||||||
"gulp-shell": "0.6.5",
|
"gulp-shell": "0.6.5",
|
||||||
"lodash": "4.17.5",
|
"lodash": "4.17.5",
|
||||||
"node-sass": "^6.0.1",
|
"node-sass": "^4.14.1",
|
||||||
"npm": "^6.9.0",
|
"npm": "^6.9.0",
|
||||||
"sass-loader": "6.0.6",
|
"sass-loader": "6.0.6",
|
||||||
"svg-sprite-loader": "3.7.3",
|
"svg-sprite-loader": "3.7.3",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// 站点主色
|
// 站点主色
|
||||||
// tips: 要达到整站主题修改效果, 请确保[$--color-primary]站点主色与[/src/element-ui-theme/index.js]文件中[import './element-[#17B3A3]/index.css']当前主题色一致
|
// tips: 要达到整站主题修改效果, 请确保[$--color-primary]站点主色与[/src/element-ui-theme/index.js]文件中[import './element-[#17B3A3]/index.css']当前主题色一致
|
||||||
$--color-primary: #17B3A3;
|
$--color-primary: #3E8EF7;
|
||||||
|
|
||||||
// Navbar
|
// Navbar
|
||||||
$navbar--background-color: $--color-primary;
|
$navbar--background-color: $--color-primary;
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* @Author: gtz
|
||||||
|
* @Date: 2021-11-19 10:10:51
|
||||||
|
* @LastEditors: gtz
|
||||||
|
* @LastEditTime: 2021-12-09 19:38:26
|
||||||
|
* @Description: file content
|
||||||
|
* @FilePath: \mt-qj-wms-ui\src\element-ui-theme\index.js
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* element-ui组件主题
|
* element-ui组件主题
|
||||||
*
|
*
|
||||||
@ -5,7 +13,7 @@
|
|||||||
* 1. 此处只包含element-ui组件主题
|
* 1. 此处只包含element-ui组件主题
|
||||||
* 2. 要达到整站主题修改效果, 请确保[import './element-[#17B3A3]/index.css']当前主题色与[/src/assets/scss/_variables.scss]文件中[$--color-primary]属性值一致
|
* 2. 要达到整站主题修改效果, 请确保[import './element-[#17B3A3]/index.css']当前主题色与[/src/assets/scss/_variables.scss]文件中[$--color-primary]属性值一致
|
||||||
*/
|
*/
|
||||||
import './element-#17B3A3/index.css' // 当前主题色
|
import './element-#3E8EF7/index.css' // 当前主题色
|
||||||
export default {
|
export default {
|
||||||
list: [
|
list: [
|
||||||
'#0BB2D4', // 青色
|
'#0BB2D4', // 青色
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-15 08:20:28
|
* @Date: 2021-11-15 08:20:28
|
||||||
* @LastEditors: gtz
|
* @LastEditors: gtz
|
||||||
* @LastEditTime: 2021-12-08 16:04:50
|
* @LastEditTime: 2021-12-09 10:08:24
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
import Mock from 'mockjs'
|
import Mock from 'mockjs'
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-15 08:20:28
|
* @Date: 2021-11-15 08:20:28
|
||||||
* @LastEditors: zwq
|
* @LastEditors: gtz
|
||||||
* @LastEditTime: 2021-12-08 14:18:09
|
* @LastEditTime: 2021-12-09 16:23:55
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
@ -38,39 +38,39 @@ const mainRoutes = {
|
|||||||
// 1. isTab: 是否通过tab展示内容, true: 是, false: 否
|
// 1. isTab: 是否通过tab展示内容, true: 是, false: 否
|
||||||
// 2. iframeUrl: 是否通过iframe嵌套展示内容, '以http[s]://开头': 是, '': 否
|
// 2. iframeUrl: 是否通过iframe嵌套展示内容, '以http[s]://开头': 是, '': 否
|
||||||
// 提示: 如需要通过iframe嵌套展示内容, 但不通过tab打开, 请自行创建组件使用iframe处理!
|
// 提示: 如需要通过iframe嵌套展示内容, 但不通过tab打开, 请自行创建组件使用iframe处理!
|
||||||
{ path: '/home', component: _import('common/home'), name: 'home', meta: { title: '首页' } },
|
{ path: '/home', component: _import('common/home'), name: 'home', meta: { title: '首页', isTab: true } },
|
||||||
{ path: '/orderProcess', component: _import('common/order-process'), name: 'orderProcess', meta: { title: '订单加工' } },
|
{ path: '/orderProcess', component: _import('common/order-process'), name: 'orderProcess', meta: { title: '订单加工', isTab: true } },
|
||||||
{ path: '/exWarehouse', component: _import('common/ex-warehouse'), name: 'exWarehouse', meta: { title: '货物出库' } },
|
{ path: '/exWarehouse', component: _import('common/ex-warehouse'), name: 'exWarehouse', meta: { title: '货物出库', isTab: true } },
|
||||||
{ path: '/addProcess', component: _import('common/add-process'), name: 'addProcess', meta: { title: '追加加工' } },
|
{ path: '/addProcess', component: _import('common/add-process'), name: 'addProcess', meta: { title: '追加加工', isTab: true } },
|
||||||
{ path: '/theme', component: _import('common/theme'), name: 'theme', meta: { title: '主题' } },
|
{ path: '/theme', component: _import('common/theme'), name: 'theme', meta: { title: '主题', isTab: true } },
|
||||||
{ path: '/demo-echarts', component: _import('demo/echarts'), name: 'demo-echarts', meta: { title: 'demo-echarts', isTab: true } },
|
{ path: '/demo-echarts', component: _import('demo/echarts'), name: 'demo-echarts', meta: { title: 'demo-echarts', isTab: true } },
|
||||||
{ path: '/demo-ueditor', component: _import('demo/ueditor'), name: 'demo-ueditor', meta: { title: 'demo-ueditor', isTab: true } },
|
{ path: '/demo-ueditor', component: _import('demo/ueditor'), name: 'demo-ueditor', meta: { title: 'demo-ueditor', isTab: true } },
|
||||||
{ path: '/basic-cache', component: _import('basic/cache'), name: 'basic-cache', meta: { title: '缓存区信息' } },
|
{ path: '/basic-cache', component: _import('basic/cache'), name: 'basic-cache', meta: { title: '缓存区信息', isTab: true } },
|
||||||
{ path: '/basic-processInfo', component: _import('basic/processInfo'), name: 'basic-processInfo', meta: { title: '工艺信息' } },
|
{ path: '/basic-processInfo', component: _import('basic/processInfo'), name: 'basic-processInfo', meta: { title: '工艺信息', isTab: true } },
|
||||||
{ path: '/basic-cache-location', component: _import('basic/components/location'), name: 'basic-cache-location', meta: { title: '库位信息' } },
|
{ path: '/basic-cache-location', component: _import('basic/components/location'), name: 'basic-cache-location', meta: { title: '库位信息', isTab: true } },
|
||||||
{ path: '/basic-equipmentInfo', component: _import('basic/equipmentInfo'), name: 'basic-equipmentInfo', meta: { title: '设备基础信息' } },
|
{ path: '/basic-equipmentInfo', component: _import('basic/equipmentInfo'), name: 'basic-equipmentInfo', meta: { title: '设备基础信息', isTab: true } },
|
||||||
{ path: '/basic-carInfo', component: _import('basic/carInfo'), name: 'basic-carInfo', meta: { title: '车辆信息' } },
|
{ path: '/basic-carInfo', component: _import('basic/carInfo'), name: 'basic-carInfo', meta: { title: '车辆信息', isTab: true } },
|
||||||
{ path: '/basic-alarmInfo', component: _import('basic/alarmInfo'), name: 'basic-alarmInfo', meta: { title: '报警基础信息' } },
|
{ path: '/basic-alarmInfo', component: _import('basic/alarmInfo'), name: 'basic-alarmInfo', meta: { title: '报警基础信息', isTab: true } },
|
||||||
{ path: '/order-current-order', component: _import('order/current-order'), name: 'order-current-order', meta: { title: '当前订单列表' } },
|
{ path: '/order-current-order', component: _import('order/current-order'), name: 'order-current-order', meta: { title: '当前订单列表', isTab: true } },
|
||||||
{ path: '/order-current-order-task', component: _import('order/components/current-order-task'), name: 'order-current-order-task', meta: { title: '当前订单任务详情' } },
|
{ path: '/order-current-order-task', component: _import('order/components/current-order-task'), name: 'order-current-order-task', meta: { title: '当前订单任务详情', isTab: true } },
|
||||||
{ path: '/order-current-task', component: _import('order/current-task'), name: 'order-current-task', meta: { title: '当前执行任务' } },
|
{ path: '/order-current-task', component: _import('order/current-task'), name: 'order-current-task', meta: { title: '当前执行任务', isTab: true } },
|
||||||
{ path: '/order-current-task-detail', component: _import('order/components/current-task-detail'), name: 'order-current-task-detail', meta: { title: '当前执行任务详情' } },
|
{ path: '/order-current-task-detail', component: _import('order/components/current-task-detail'), name: 'order-current-task-detail', meta: { title: '当前执行任务详情', isTab: true } },
|
||||||
{ path: '/report-kiln-alarm', component: _import('report/kiln-alarm'), name: 'report-kiln-alarm', meta: { title: '窑炉报警' } },
|
{ path: '/report-kiln-alarm', component: _import('report/kiln-alarm'), name: 'report-kiln-alarm', meta: { title: '窑炉报警', isTab: true } },
|
||||||
{ path: '/report-car-alarm', component: _import('report/car-alarm'), name: 'report-car-alarm', meta: { title: '车辆运行报警' } },
|
{ path: '/report-car-alarm', component: _import('report/car-alarm'), name: 'report-car-alarm', meta: { title: '车辆运行报警', isTab: true } },
|
||||||
{ path: '/report-order-history', component: _import('report/order-history'), name: 'report-order-history', meta: { title: '订单历史列表' } },
|
{ path: '/report-order-history', component: _import('report/order-history'), name: 'report-order-history', meta: { title: '订单历史列表', isTab: true } },
|
||||||
{ path: '/report-order-history-task', component: _import('report/components/order-history-task'), name: 'report-order-history-task', meta: { title: '订单历史任务详情' } },
|
{ path: '/report-order-history-task', component: _import('report/components/order-history-task'), name: 'report-order-history-task', meta: { title: '订单历史任务详情', isTab: true } },
|
||||||
{ path: '/report-task-history', component: _import('report/task-history'), name: 'report-task-history', meta: { title: '执行任务历史列表' } },
|
{ path: '/report-task-history', component: _import('report/task-history'), name: 'report-task-history', meta: { title: '执行任务历史列表', isTab: true } },
|
||||||
{ path: '/report-task-history-detail', component: _import('report/components/task-history-detail'), name: 'report-task-history-detail', meta: { title: '执行任务历史详情' } },
|
{ path: '/report-task-history-detail', component: _import('report/components/task-history-detail'), name: 'report-task-history-detail', meta: { title: '执行任务历史详情', isTab: true } },
|
||||||
{ path: '/energy-sulfur-dioxide', component: _import('energy/sulfur-dioxide'), name: 'energy-sulfur-dioxide', meta: { title: '二氧化硫流量分析' } },
|
{ path: '/energy-sulfur-dioxide', component: _import('energy/sulfur-dioxide'), name: 'energy-sulfur-dioxide', meta: { title: '二氧化硫流量分析', isTab: true } },
|
||||||
{ path: '/energy-electric', component: _import('energy/electric'), name: 'energy-electric', meta: { title: '用电能源分析' } },
|
{ path: '/energy-electric', component: _import('energy/electric'), name: 'energy-electric', meta: { title: '用电能源分析' } },
|
||||||
{ path: '/energy-kiln-electric', component: _import('energy/kiln-electric'), name: 'energy-kiln-electric', meta: { title: '窑炉用电分析' } },
|
{ path: '/energy-kiln-electric', component: _import('energy/kiln-electric'), name: 'energy-kiln-electric', meta: { title: '窑炉用电分析', isTab: true } },
|
||||||
{ path: '/energy-ammonia', component: _import('energy/ammonia'), name: 'energy-ammonia', meta: { title: '氨气流量分析' } },
|
{ path: '/energy-ammonia', component: _import('energy/ammonia'), name: 'energy-ammonia', meta: { title: '氨气流量分析', isTab: true } },
|
||||||
{ path: '/energy-nitrogen', component: _import('energy/nitrogen'), name: 'energy-nitrogen', meta: { title: '氮气流量分析' } },
|
{ path: '/energy-nitrogen', component: _import('energy/nitrogen'), name: 'energy-nitrogen', meta: { title: '氮气流量分析', isTab: true } },
|
||||||
{ path: '/energy-electric-acquisition', component: _import('energy/electric-acquisition'), name: 'energy-electric-acquisition', meta: { title: '电能采集数据' } },
|
{ path: '/energy-electric-acquisition', component: _import('energy/electric-acquisition'), name: 'energy-electric-acquisition', meta: { title: '电能采集数据', isTab: true } },
|
||||||
{ path: '/energy-process-temperature', component: _import('energy/process-temperature'), name: 'energy-process-temperature', meta: { title: '窑炉加工温度' } },
|
{ path: '/energy-process-temperature', component: _import('energy/process-temperature'), name: 'energy-process-temperature', meta: { title: '窑炉加工温度', isTab: true } },
|
||||||
{ path: '/energy-sump-temperature', component: _import('energy/sump-temperature'), name: 'energy-sump-temperature', meta: { title: '油槽温度' } },
|
{ path: '/energy-sump-temperature', component: _import('energy/sump-temperature'), name: 'energy-sump-temperature', meta: { title: '油槽温度', isTab: true } },
|
||||||
{ path: '/energy-ammonia-analysis', component: _import('energy/ammonia-analysis'), name: 'energy-ammonia-analysis', meta: { title: '使用氮气分析' } },
|
{ path: '/energy-ammonia-analysis', component: _import('energy/ammonia-analysis'), name: 'energy-ammonia-analysis', meta: { title: '使用氮气分析', isTab: true } },
|
||||||
{ path: '/energy-kiln-speed', component: _import('energy/kiln-speed'), name: 'energy-kiln-speed', meta: { title: '窑炉速度参数' } }
|
{ path: '/energy-kiln-speed', component: _import('energy/kiln-speed'), name: 'energy-kiln-speed', meta: { title: '窑炉速度参数', isTab: true } }
|
||||||
],
|
],
|
||||||
beforeEnter (to, from, next) {
|
beforeEnter (to, from, next) {
|
||||||
let token = Vue.cookie.get('token')
|
let token = Vue.cookie.get('token')
|
||||||
|
@ -106,7 +106,7 @@
|
|||||||
getDataList () {
|
getDataList () {
|
||||||
this.dataListLoading = true
|
this.dataListLoading = true
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('alarmBase/page'),
|
url: this.$http.adornUrl('/alarmBase/page'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'current': this.pageIndex,
|
'current': this.pageIndex,
|
||||||
@ -150,7 +150,7 @@
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('alarmBase/delete'),
|
url: this.$http.adornUrl('/alarmBase/delete'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({id})
|
data: this.$http.adornData({id})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
|
@ -40,11 +40,17 @@
|
|||||||
label="编码">
|
label="编码">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ename"
|
prop="englishName"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="英文名">
|
label="英文名">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="number"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="库位数量">
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="status"
|
prop="status"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
@ -114,7 +120,7 @@
|
|||||||
getDataList () {
|
getDataList () {
|
||||||
this.dataListLoading = true
|
this.dataListLoading = true
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('warehouse/page'),
|
url: this.$http.adornUrl('/warehouse/page'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'current': this.pageIndex,
|
'current': this.pageIndex,
|
||||||
@ -161,7 +167,7 @@
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('warehouse/delete'),
|
url: this.$http.adornUrl('/warehouse/delete'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({id})
|
data: this.$http.adornData({id})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
|
@ -106,7 +106,7 @@
|
|||||||
getDataList () {
|
getDataList () {
|
||||||
this.dataListLoading = true
|
this.dataListLoading = true
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('vehicle/page'),
|
url: this.$http.adornUrl('/vehicle/page'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'current': this.pageIndex,
|
'current': this.pageIndex,
|
||||||
@ -150,7 +150,7 @@
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('vehicle/delete'),
|
url: this.$http.adornUrl('/vehicle/delete'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({id})
|
data: this.$http.adornData({id})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: zwq
|
* @LastEditors: gtz
|
||||||
* @LastEditTime: 2021-12-08 11:15:12
|
* @LastEditTime: 2021-12-09 11:21:14
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -57,7 +57,7 @@
|
|||||||
this.$refs['dataForm'].resetFields()
|
this.$refs['dataForm'].resetFields()
|
||||||
if (this.dataForm.id) {
|
if (this.dataForm.id) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`alarmBase/get`),
|
url: this.$http.adornUrl(`/alarmBase/get`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({id})
|
data: this.$http.adornData({id})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
@ -67,7 +67,7 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`alarmBase/codeGenerator`),
|
url: this.$http.adornUrl(`/alarmBase/codeGenerator`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData()
|
data: this.$http.adornData()
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
@ -81,7 +81,7 @@
|
|||||||
this.$refs['dataForm'].validate((valid) => {
|
this.$refs['dataForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`alarmBase/${!this.dataForm.id ? 'add' : 'update'}`),
|
url: this.$http.adornUrl(`/alarmBase/${!this.dataForm.id ? 'add' : 'update'}`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'id': this.dataForm.id || undefined,
|
'id': this.dataForm.id || undefined,
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: zwq
|
* @LastEditors: gtz
|
||||||
* @LastEditTime: 2021-12-08 14:03:15
|
* @LastEditTime: 2021-12-10 11:33:59
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
:rules="dataRule"
|
:rules="dataRule"
|
||||||
ref="dataForm"
|
ref="dataForm"
|
||||||
@keyup.enter.native="dataFormSubmit()"
|
@keyup.enter.native="dataFormSubmit()"
|
||||||
label-width="80px"
|
label-width="100px"
|
||||||
>
|
>
|
||||||
<el-form-item label="缓存区编码" prop="code">
|
<el-form-item label="缓存区编码" prop="code">
|
||||||
<el-input v-model="dataForm.code" placeholder="缓存区编码"></el-input>
|
<el-input v-model="dataForm.code" placeholder="缓存区编码"></el-input>
|
||||||
@ -27,14 +27,14 @@
|
|||||||
placeholder="缓存区名称"
|
placeholder="缓存区名称"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="英文名称" prop="alarmInfo">
|
<el-form-item label="英文名称" prop="englishName">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="dataForm.alarmInfo"
|
v-model="dataForm.englishName"
|
||||||
placeholder="英文名称"
|
placeholder="英文名称"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="缩写" prop="alarmInfo">
|
<el-form-item label="缩写" prop="aliasName">
|
||||||
<el-input v-model="dataForm.alarmInfo" placeholder="缩写"></el-input>
|
<el-input v-model="dataForm.aliasName" placeholder="缩写"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="规格描述" prop="spec">
|
<el-form-item label="规格描述" prop="spec">
|
||||||
<el-input
|
<el-input
|
||||||
@ -42,9 +42,9 @@
|
|||||||
placeholder="规格描述"
|
placeholder="规格描述"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="库位数量" prop="alarmInfo">
|
<el-form-item label="库位数量" prop="number">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="dataForm.alarmInfo"
|
v-model="dataForm.number"
|
||||||
placeholder="库位数量"
|
placeholder="库位数量"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -79,9 +79,18 @@ export default {
|
|||||||
code: '',
|
code: '',
|
||||||
description: '',
|
description: '',
|
||||||
spec: '',
|
spec: '',
|
||||||
|
number: null,
|
||||||
|
englishName: '',
|
||||||
|
aliasName: '',
|
||||||
warehouseName: ''
|
warehouseName: ''
|
||||||
},
|
},
|
||||||
dataRule: {
|
dataRule: {
|
||||||
|
code: [
|
||||||
|
{ required: true, message: '编码不能为空', trigger: 'blur' }
|
||||||
|
],
|
||||||
|
warehouseName: [
|
||||||
|
{ required: true, message: '缓存区名称不能为空', trigger: 'blur' }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -93,7 +102,7 @@ export default {
|
|||||||
this.$refs['dataForm'].resetFields()
|
this.$refs['dataForm'].resetFields()
|
||||||
if (this.dataForm.id) {
|
if (this.dataForm.id) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`warehouse/get`),
|
url: this.$http.adornUrl(`/warehouse/get`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({ id })
|
data: this.$http.adornData({ id })
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
@ -103,7 +112,7 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`warehouse/codeGenerator`),
|
url: this.$http.adornUrl(`/warehouse/codeGenerator`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData()
|
data: this.$http.adornData()
|
||||||
}).then(data => {
|
}).then(data => {
|
||||||
@ -118,7 +127,7 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(
|
url: this.$http.adornUrl(
|
||||||
`warehouse/${!this.dataForm.id ? 'add' : 'update'}`
|
`/warehouse/${!this.dataForm.id ? 'add' : 'update'}`
|
||||||
),
|
),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: zwq
|
* @LastEditors: gtz
|
||||||
* @LastEditTime: 2021-12-08 11:22:54
|
* @LastEditTime: 2021-12-09 11:21:23
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -53,7 +53,7 @@
|
|||||||
this.$refs['dataForm'].resetFields()
|
this.$refs['dataForm'].resetFields()
|
||||||
if (this.dataForm.id) {
|
if (this.dataForm.id) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`vehicle/get`),
|
url: this.$http.adornUrl(`/vehicle/get`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({id})
|
data: this.$http.adornData({id})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
@ -63,7 +63,7 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`vehicle/codeGenerator`),
|
url: this.$http.adornUrl(`/vehicle/codeGenerator`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData()
|
data: this.$http.adornData()
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
@ -77,7 +77,7 @@
|
|||||||
this.$refs['dataForm'].validate((valid) => {
|
this.$refs['dataForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`vehicle/${!this.dataForm.id ? 'add' : 'update'}`),
|
url: this.$http.adornUrl(`/vehicle/${!this.dataForm.id ? 'add' : 'update'}`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'id': this.dataForm.id || undefined,
|
'id': this.dataForm.id || undefined,
|
||||||
|
@ -1,17 +1,37 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: gtz
|
||||||
|
* @Date: 2021-11-19 10:10:52
|
||||||
|
* @LastEditors: gtz
|
||||||
|
* @LastEditTime: 2021-12-10 16:35:33
|
||||||
|
* @Description: file content
|
||||||
|
* @FilePath: \mt-qj-wms-ui\src\views\basic\components\equipmentInfo-add.vue
|
||||||
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="!dataForm.id ? '新增' : '修改'"
|
:title="!dataForm.id ? '新增' : '修改'"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:visible.sync="visible">
|
:visible.sync="visible">
|
||||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
||||||
<el-form-item label="参数名" prop="paramKey">
|
<el-form-item label="名称" prop="kilnName">
|
||||||
<el-input v-model="dataForm.paramKey" placeholder="参数名"></el-input>
|
<el-input v-model="dataForm.kilnName" placeholder="名称"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="参数值" prop="paramValue">
|
<el-form-item label="编码" prop="code">
|
||||||
<el-input v-model="dataForm.paramValue" placeholder="参数值"></el-input>
|
<el-input v-model="dataForm.code" placeholder="编码"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="备注" prop="remark">
|
<el-form-item label="别名" prop="kilnAlias">
|
||||||
<el-input v-model="dataForm.remark" placeholder="备注"></el-input>
|
<el-input v-model="dataForm.kilnAlias" placeholder="别名"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="英文名" prop="en">
|
||||||
|
<el-input v-model="dataForm.en" placeholder="英文名"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="ip" prop="ip">
|
||||||
|
<el-input v-model="dataForm.ip" placeholder="ip"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="端口号" prop="portNumber">
|
||||||
|
<el-input v-model="dataForm.portNumber" placeholder="端口号"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="备注" prop="note">
|
||||||
|
<el-input v-model="dataForm.note" placeholder="备注"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
@ -28,16 +48,24 @@
|
|||||||
visible: false,
|
visible: false,
|
||||||
dataForm: {
|
dataForm: {
|
||||||
id: 0,
|
id: 0,
|
||||||
paramKey: '',
|
code: null,
|
||||||
paramValue: '',
|
description: null,
|
||||||
remark: ''
|
en: null,
|
||||||
|
ip: null,
|
||||||
|
kilnAlias: null,
|
||||||
|
kilnName: null,
|
||||||
|
note: null,
|
||||||
|
portNumber: null
|
||||||
},
|
},
|
||||||
dataRule: {
|
dataRule: {
|
||||||
paramKey: [
|
kilnName: [
|
||||||
{ required: true, message: '参数名不能为空', trigger: 'blur' }
|
{ required: true, message: '名称不能为空', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
paramValue: [
|
ip: [
|
||||||
{ required: true, message: '参数值不能为空', trigger: 'blur' }
|
{ required: true, message: 'ip不能为空', trigger: 'blur' }
|
||||||
|
],
|
||||||
|
portNumber: [
|
||||||
|
{ required: true, message: '端口号不能为空', trigger: 'blur' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -50,16 +78,22 @@
|
|||||||
this.$refs['dataForm'].resetFields()
|
this.$refs['dataForm'].resetFields()
|
||||||
if (this.dataForm.id) {
|
if (this.dataForm.id) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/sys/config/info/${this.dataForm.id}`),
|
url: this.$http.adornUrl(`/kilnInfo/get`),
|
||||||
method: 'get',
|
method: 'post',
|
||||||
params: this.$http.adornParams()
|
data: this.$http.adornData({ id })
|
||||||
}).then(({data}) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dataForm.paramKey = data.config.paramKey
|
this.dataForm = data.data
|
||||||
this.dataForm.paramValue = data.config.paramValue
|
|
||||||
this.dataForm.remark = data.config.remark
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl(`/kilnInfo/codeGenerator`),
|
||||||
|
method: 'post',
|
||||||
|
data: this.$http.adornData()
|
||||||
|
}).then(data => {
|
||||||
|
this.dataForm.code = data.data
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -68,13 +102,18 @@
|
|||||||
this.$refs['dataForm'].validate((valid) => {
|
this.$refs['dataForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/sys/config/${!this.dataForm.id ? 'save' : 'update'}`),
|
url: this.$http.adornUrl(`/kilnInfo/${!this.dataForm.id ? 'add' : 'update'}`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'id': this.dataForm.id || undefined,
|
'id': this.dataForm.id || undefined,
|
||||||
'paramKey': this.dataForm.paramKey,
|
'code': this.dataForm.code,
|
||||||
'paramValue': this.dataForm.paramValue,
|
'description': this.dataForm.description,
|
||||||
'remark': this.dataForm.remark
|
'en': this.dataForm.en,
|
||||||
|
'ip': this.dataForm.ip,
|
||||||
|
'kilnAlias': this.dataForm.kilnAlias,
|
||||||
|
'kilnName': this.dataForm.kilnName,
|
||||||
|
'note': this.dataForm.note,
|
||||||
|
'portNumber': this.dataForm.portNumber
|
||||||
})
|
})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: zwq
|
* @LastEditors: gtz
|
||||||
* @LastEditTime: 2021-12-08 14:11:44
|
* @LastEditTime: 2021-12-10 11:17:20
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -17,22 +17,19 @@
|
|||||||
<el-form-item label="库位编码" prop="code">
|
<el-form-item label="库位编码" prop="code">
|
||||||
<el-input v-model="dataForm.code" placeholder="库位编码"></el-input>
|
<el-input v-model="dataForm.code" placeholder="库位编码"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="当前状态" prop="alarmInfo"
|
<el-form-item label="当前状态" prop="status">
|
||||||
><el-switch
|
<el-radio-group v-model="dataForm.status">
|
||||||
v-model="dataForm.alarmInfo"
|
<el-radio :label="0">空闲</el-radio>
|
||||||
active-color="#13ce66"
|
<el-radio :label="1">使用</el-radio>
|
||||||
inactive-color="#ff4949"
|
<el-radio :label="2">不可用</el-radio>
|
||||||
active-value="1"
|
</el-radio-group>
|
||||||
inactive-value="0"
|
|
||||||
>
|
|
||||||
</el-switch>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="库位别名" prop="locationNameAlias">
|
<el-form-item label="库位别名" prop="locationNameAlias">
|
||||||
<el-input v-model="dataForm.locationNameAlias" placeholder="库位别名"></el-input>
|
<el-input v-model="dataForm.locationNameAlias" placeholder="库位别名"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="英文名称" prop="alarmInfo">
|
<!-- <el-form-item label="英文名称" prop="englishName">
|
||||||
<el-input v-model="dataForm.alarmInfo" placeholder="英文名称"></el-input>
|
<el-input v-model="dataForm.englishName" placeholder="英文名称"></el-input>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
<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>
|
||||||
@ -49,8 +46,10 @@
|
|||||||
dataForm: {
|
dataForm: {
|
||||||
id: '',
|
id: '',
|
||||||
code: '',
|
code: '',
|
||||||
|
status: 0,
|
||||||
locationName: '',
|
locationName: '',
|
||||||
locationNameAlias: '',
|
locationNameAlias: '',
|
||||||
|
englishName: '',
|
||||||
warehouseId: ''
|
warehouseId: ''
|
||||||
},
|
},
|
||||||
dataRule: {
|
dataRule: {
|
||||||
@ -69,7 +68,7 @@
|
|||||||
this.$refs['dataForm'].resetFields()
|
this.$refs['dataForm'].resetFields()
|
||||||
if (this.dataForm.id) {
|
if (this.dataForm.id) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`locationInfo/get`),
|
url: this.$http.adornUrl(`/locationInfo/get`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({id})
|
data: this.$http.adornData({id})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
@ -79,7 +78,7 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`locationInfo/codeGenerator`),
|
url: this.$http.adornUrl(`/locationInfo/codeGenerator`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData()
|
data: this.$http.adornData()
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
@ -93,14 +92,15 @@
|
|||||||
this.$refs['dataForm'].validate((valid) => {
|
this.$refs['dataForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`locationInfo/${!this.dataForm.id ? 'add' : 'update'}`),
|
url: this.$http.adornUrl(`/locationInfo/${!this.dataForm.id ? 'add' : 'update'}`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'id': this.dataForm.id || undefined,
|
'id': this.dataForm.id || undefined,
|
||||||
'code': this.dataForm.code,
|
'code': this.dataForm.code,
|
||||||
'locationName': this.dataForm.locationName,
|
'locationName': this.dataForm.locationName,
|
||||||
'warehouseId': this.dataForm.warehouseId,
|
'warehouseId': this.dataForm.warehouseId,
|
||||||
'locationNameAlias': this.dataForm.locationNameAlias
|
'locationNameAlias': this.dataForm.locationNameAlias,
|
||||||
|
'status': this.dataForm.status
|
||||||
})
|
})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
|
@ -42,12 +42,12 @@
|
|||||||
align="center"
|
align="center"
|
||||||
label="别名">
|
label="别名">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<!-- <el-table-column
|
||||||
prop="ename"
|
prop="englishName"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="英文名称">
|
label="英文名称">
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="status"
|
prop="status"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
@ -112,7 +112,7 @@
|
|||||||
getDataList () {
|
getDataList () {
|
||||||
this.dataListLoading = true
|
this.dataListLoading = true
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('locationInfo/page'),
|
url: this.$http.adornUrl('/locationInfo/page'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'current': this.pageIndex,
|
'current': this.pageIndex,
|
||||||
@ -159,7 +159,7 @@
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('locationInfo/delete'),
|
url: this.$http.adornUrl('/locationInfo/delete'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({id})
|
data: this.$http.adornData({id})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: zwq
|
* @LastEditors: gtz
|
||||||
* @LastEditTime: 2021-12-08 14:21:48
|
* @LastEditTime: 2021-12-09 11:21:56
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -71,7 +71,7 @@
|
|||||||
this.$refs['dataForm'].resetFields()
|
this.$refs['dataForm'].resetFields()
|
||||||
if (this.dataForm.id) {
|
if (this.dataForm.id) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`alarmBase/get`),
|
url: this.$http.adornUrl(`/alarmBase/get`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({id})
|
data: this.$http.adornData({id})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
@ -81,7 +81,7 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`alarmBase/codeGenerator`),
|
url: this.$http.adornUrl(`/alarmBase/codeGenerator`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData()
|
data: this.$http.adornData()
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
@ -95,7 +95,7 @@
|
|||||||
this.$refs['dataForm'].validate((valid) => {
|
this.$refs['dataForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`alarmBase/${!this.dataForm.id ? 'add' : 'update'}`),
|
url: this.$http.adornUrl(`/alarmBase/${!this.dataForm.id ? 'add' : 'update'}`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'id': this.dataForm.id || undefined,
|
'id': this.dataForm.id || undefined,
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
:model="dataForm"
|
:model="dataForm"
|
||||||
@keyup.enter.native="getDataList()"
|
@keyup.enter.native="getDataList()"
|
||||||
>
|
>
|
||||||
<el-form-item>
|
<!-- <el-form-item>
|
||||||
<el-select v-model="dataForm.paramKey" filterable placeholder="名称">
|
<el-select v-model="dataForm.paramKey" filterable placeholder="名称">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in options"
|
v-for="item in options"
|
||||||
@ -15,7 +15,7 @@
|
|||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">查询</el-button>
|
<el-button @click="getDataList()">查询</el-button>
|
||||||
<el-button type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
||||||
@ -36,45 +36,52 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="paramKey"
|
prop="kilnName"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="添加时间"
|
label="名称"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="paramValue"
|
prop="code"
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="设备名称"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="remark"
|
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="编码"
|
label="编码"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<!-- <el-table-column
|
||||||
prop="type"
|
prop="type"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="类型"
|
label="类型"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ename"
|
prop="en"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="英文名"
|
label="英文名"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="suoxie"
|
prop="kilnAlias"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="缩写"
|
label="别名"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="ip"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="ip"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="portNumber"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="端口号"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -125,7 +132,7 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
dataForm: {
|
dataForm: {
|
||||||
paramKey: ''
|
// paramKey: ''
|
||||||
},
|
},
|
||||||
dataList: [],
|
dataList: [],
|
||||||
options: [],
|
options: [],
|
||||||
@ -147,17 +154,17 @@ export default {
|
|||||||
getDataList () {
|
getDataList () {
|
||||||
this.dataListLoading = true
|
this.dataListLoading = true
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('/sys/config/list'),
|
url: this.$http.adornUrl('/kilnInfo/page'),
|
||||||
method: 'get',
|
method: 'post',
|
||||||
params: this.$http.adornParams({
|
data: this.$http.adornData({
|
||||||
page: this.pageIndex,
|
current: this.pageIndex,
|
||||||
limit: this.pageSize,
|
size: this.pageSize
|
||||||
paramKey: this.dataForm.paramKey
|
// paramKey: this.dataForm.paramKey
|
||||||
})
|
})
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dataList = data.page.list
|
this.dataList = data.data.records
|
||||||
this.totalPage = data.page.totalCount
|
this.totalPage = data.data.total
|
||||||
} else {
|
} else {
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
this.totalPage = 0
|
this.totalPage = 0
|
||||||
|
@ -118,7 +118,7 @@
|
|||||||
getDataList () {
|
getDataList () {
|
||||||
this.dataListLoading = true
|
this.dataListLoading = true
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('alarmBase/page'),
|
url: this.$http.adornUrl('/alarmBase/page'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'current': this.pageIndex,
|
'current': this.pageIndex,
|
||||||
@ -162,7 +162,7 @@
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('alarmBase/delete'),
|
url: this.$http.adornUrl('/alarmBase/delete'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({id})
|
data: this.$http.adornData({id})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
|
@ -155,7 +155,7 @@ export default {
|
|||||||
getDataList () {
|
getDataList () {
|
||||||
this.dataListLoading = true
|
this.dataListLoading = true
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('currTask/mainCurrentTaskNow'),
|
url: this.$http.adornUrl('/currTask/mainCurrentTaskNow'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
current: this.pageIndex,
|
current: this.pageIndex,
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
dataForm: {
|
dataForm: {
|
||||||
mobile: '',
|
mobile: '13588441519',
|
||||||
password: ''
|
password: '123abc.'
|
||||||
},
|
},
|
||||||
dataRule: {
|
dataRule: {
|
||||||
mobile: [
|
mobile: [
|
||||||
@ -52,7 +52,7 @@
|
|||||||
this.$refs['dataForm'].validate((valid) => {
|
this.$refs['dataForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('passport/login'),
|
url: this.$http.adornUrl('/passport/login'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'mobile': this.dataForm.mobile,
|
'mobile': this.dataForm.mobile,
|
||||||
|
@ -1,20 +1,32 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="!dataForm.id ? '新增' : '修改'"
|
:title="!row ? '新增' : '修改'"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:visible.sync="visible">
|
:visible.sync="visible">
|
||||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
<el-form :model="dataForm" v-loading="formLoading" :rules="dataRule" ref="dataForm" label-width="80px">
|
||||||
<el-form-item label="标识卡" prop="paramKey">
|
<el-form-item label="标识卡号" prop="idenCardNum">
|
||||||
<el-input v-model="dataForm.paramKey" placeholder="标识卡"></el-input>
|
<el-input v-model="dataForm.idenCardNum" @change="setIdenCardNum" ref="idenCardNum" placeholder="标识卡号"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="产品名称" prop="paramValue">
|
<el-form-item label="客户名称" prop="customerName">
|
||||||
<el-input v-model="dataForm.paramValue" placeholder="产品名称"></el-input>
|
<el-input v-model="dataForm.customerName" disabled placeholder="客户名称"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="数量" prop="number">
|
<el-form-item label="材料牌号" prop="materialDes">
|
||||||
<el-input v-model="dataForm.remark" placeholder="数量"></el-input>
|
<el-input v-model="dataForm.materialDes" disabled placeholder="材料牌号"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="重量" prop="remark">
|
<el-form-item label="订单号" prop="orderNo">
|
||||||
<el-input v-model="dataForm.remark" placeholder="重量"></el-input>
|
<el-input v-model="dataForm.orderNo" disabled placeholder="订单号"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="产品名称" prop="productName">
|
||||||
|
<el-input v-model="dataForm.productName" disabled placeholder="产品名称"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="数量" prop="quantity">
|
||||||
|
<el-input v-model="dataForm.quantity" placeholder="数量"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="单位" prop="unit">
|
||||||
|
<el-input v-model="dataForm.unit" disabled placeholder="单位"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="重量" prop="weight">
|
||||||
|
<el-input v-model="dataForm.weight" placeholder="重量"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
@ -30,68 +42,93 @@
|
|||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
dataForm: {
|
dataForm: {
|
||||||
id: 0,
|
idenCardNum: null,
|
||||||
paramKey: '',
|
customerName: null,
|
||||||
paramValue: '',
|
materialDes: null,
|
||||||
remark: ''
|
orderNo: null,
|
||||||
|
productName: null,
|
||||||
|
quantity: null,
|
||||||
|
unit: null,
|
||||||
|
weight: null
|
||||||
},
|
},
|
||||||
dataRule: {
|
dataRule: {
|
||||||
paramKey: [
|
idenCardNum: [
|
||||||
{ required: true, message: '参数名不能为空', trigger: 'blur' }
|
{ required: true, message: '标识卡号不能为空', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
paramValue: [
|
quantity: [
|
||||||
{ required: true, message: '参数值不能为空', trigger: 'blur' }
|
{ required: true, message: '数量不能为空', trigger: 'blur' }
|
||||||
|
],
|
||||||
|
weight: [
|
||||||
|
{ required: true, message: '重量不能为空', trigger: 'blur' }
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
formLoading: false,
|
||||||
|
row: null,
|
||||||
|
editIndex: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init (id) {
|
init (row, idx) {
|
||||||
this.dataForm.id = id || 0
|
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['dataForm'].resetFields()
|
this.$refs['dataForm'].resetFields()
|
||||||
if (this.dataForm.id) {
|
if (row) {
|
||||||
this.$http({
|
this.row = row
|
||||||
url: this.$http.adornUrl(`/sys/config/info/${this.dataForm.id}`),
|
this.dataForm = row
|
||||||
method: 'get',
|
this.editIndex = idx
|
||||||
params: this.$http.adornParams()
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataForm.paramKey = data.config.paramKey
|
|
||||||
this.dataForm.paramValue = data.config.paramValue
|
|
||||||
this.dataForm.remark = data.config.remark
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
this.$refs['idenCardNum'].focus()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
setIdenCardNum () {
|
||||||
|
this.formLoading = true
|
||||||
|
if (this.dataForm.idenCardNum) {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl(`/orderInfo/getTaskInfoByIdenCardNum`),
|
||||||
|
method: 'get',
|
||||||
|
params: this.$http.adornParams({
|
||||||
|
'idenCardNum': this.dataForm.idenCardNum
|
||||||
|
})
|
||||||
|
}).then(({data}) => {
|
||||||
|
console.log(data)
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.dataForm = data.data
|
||||||
|
this.dataForm.targetQuantity = data.data.quantity
|
||||||
|
this.dataForm.targetWeight = data.data.weight
|
||||||
|
this.dataForm.weight = null
|
||||||
|
this.dataForm.quantity = null
|
||||||
|
} else {
|
||||||
|
this.$message.warning(data.msg)
|
||||||
|
}
|
||||||
|
this.formLoading = false
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning('请输入标识卡号')
|
||||||
|
}
|
||||||
|
},
|
||||||
// 表单提交
|
// 表单提交
|
||||||
dataFormSubmit () {
|
dataFormSubmit () {
|
||||||
this.$refs['dataForm'].validate((valid) => {
|
this.$refs['dataForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$http({
|
if (this.editIndex) {
|
||||||
url: this.$http.adornUrl(`/sys/config/${!this.dataForm.id ? 'save' : 'update'}`),
|
const taskList = JSON.parse(sessionStorage.getItem('taskList'))
|
||||||
method: 'post',
|
taskList.splice(this.editIndex, 1, this.dataForm)
|
||||||
data: this.$http.adornData({
|
sessionStorage.setItem('taskList', JSON.stringify(taskList))
|
||||||
'id': this.dataForm.id || undefined,
|
} else if (sessionStorage.getItem('taskList')) {
|
||||||
'paramKey': this.dataForm.paramKey,
|
const taskList = JSON.parse(sessionStorage.getItem('taskList'))
|
||||||
'paramValue': this.dataForm.paramValue,
|
taskList.push(this.dataForm)
|
||||||
'remark': this.dataForm.remark
|
sessionStorage.setItem('taskList', JSON.stringify(taskList))
|
||||||
})
|
} else {
|
||||||
}).then(({data}) => {
|
const arr = [this.dataForm]
|
||||||
if (data && data.code === 0) {
|
sessionStorage.setItem('taskList', JSON.stringify(arr))
|
||||||
this.$message({
|
}
|
||||||
message: '操作成功',
|
this.$message({
|
||||||
type: 'success',
|
message: '操作成功',
|
||||||
duration: 1500,
|
type: 'success',
|
||||||
onClose: () => {
|
duration: 1500,
|
||||||
this.visible = false
|
onClose: () => {
|
||||||
this.$emit('refreshDataList')
|
this.visible = false
|
||||||
}
|
this.$emit('refreshDataList')
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -1,19 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<div style="color:#67c23a;background:#f0f9eb;padding:5px;margin-bottom:5px;text-align:center">录入托盘标识卡信息</div>
|
|
||||||
<el-form :inline="true">
|
<el-form :inline="true">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item style="margin-left:8%">
|
<el-form-item label="加工类型">
|
||||||
|
<el-select v-model="processType" clearable>
|
||||||
|
<el-option :value="0" label="初始加工" />
|
||||||
|
<el-option :value="1" label="复加工" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item style="margin-left:2%">
|
||||||
任务起点位置 :
|
任务起点位置 :
|
||||||
<el-button style="margin-left:10px" type="primary" @click="getPoint(0)">{{startBtnName}}</el-button>
|
<el-button style="margin-left:10px" type="primary" @click="getPoint(0)">{{startPosition}}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item style="margin-left:2%">
|
<el-form-item style="margin-left:2%">
|
||||||
窑炉 :
|
窑炉 :
|
||||||
<el-button style="margin-left:10px" type="primary" @click="getPoint(1)">{{kilnBtnName}}</el-button>
|
<el-button style="margin-left:10px" type="primary" @click="getPoint(1)">{{kilnId}}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item style="margin-left:10%">
|
<el-form-item style="margin-left:2%">
|
||||||
<el-button type="primary" @click="submitTask()">提交任务</el-button>
|
<el-button type="primary" @click="submitTask()">提交任务</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -30,43 +35,46 @@
|
|||||||
width="50">
|
width="50">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="id"
|
prop="idenCardNum"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="标识卡">
|
label="标识卡">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="paramKey"
|
prop="customerName"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="客户信息">
|
label="客户名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="paramValue"
|
prop="orderNo"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="订单号">
|
label="订单号">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="remark"
|
prop="productName"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="产品名称">
|
label="产品名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="card"
|
prop="materialDes"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="材料号牌">
|
label="材料号牌">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="num"
|
prop="finishQuantity"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="已完成数">
|
label="已完成数">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ `${scope.row.finishQuantity}/${scope.row.targetQuantity}` }}
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="number"
|
prop="quantity"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="数量">
|
label="数量">
|
||||||
@ -89,20 +97,11 @@
|
|||||||
align="center"
|
align="center"
|
||||||
label="操作">
|
label="操作">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
|
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row, scope.$index)">修改</el-button>
|
||||||
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
|
<el-button type="text" size="small" @click="deleteHandle(scope.$index)">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination
|
|
||||||
@size-change="sizeChangeHandle"
|
|
||||||
@current-change="currentChangeHandle"
|
|
||||||
:current-page="pageIndex"
|
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
|
||||||
:page-size="pageSize"
|
|
||||||
:total="totalPage"
|
|
||||||
layout="total, sizes, prev, pager, next, jumper">
|
|
||||||
</el-pagination>
|
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
||||||
<process-point v-if="processPointVisible" ref="processPoint" @refreshPoint="setPoint"></process-point>
|
<process-point v-if="processPointVisible" ref="processPoint" @refreshPoint="setPoint"></process-point>
|
||||||
@ -115,12 +114,11 @@
|
|||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
startBtnName: '选择起点',
|
startPosition: '选择起点',
|
||||||
kilnBtnName: '选择窑炉',
|
kilnId: '选择窑炉',
|
||||||
|
targetPosition: '',
|
||||||
dataList: [],
|
dataList: [],
|
||||||
pageIndex: 1,
|
processType: null,
|
||||||
pageSize: 10,
|
|
||||||
totalPage: 0,
|
|
||||||
dataListLoading: false,
|
dataListLoading: false,
|
||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
processPointVisible: false
|
processPointVisible: false
|
||||||
@ -136,41 +134,18 @@
|
|||||||
methods: {
|
methods: {
|
||||||
// 获取数据列表
|
// 获取数据列表
|
||||||
getDataList () {
|
getDataList () {
|
||||||
this.dataListLoading = true
|
this.dataList = sessionStorage.getItem('taskList') ? JSON.parse(sessionStorage.getItem('taskList')) : []
|
||||||
this.$http({
|
// if (data && data.code === 0) {
|
||||||
url: this.$http.adornUrl('/sys/config/list'),
|
// this.dataList = data.data.records
|
||||||
method: 'get',
|
// } else {
|
||||||
params: this.$http.adornParams({
|
// this.dataList = []
|
||||||
'page': this.pageIndex,
|
// }
|
||||||
'limit': this.pageSize
|
|
||||||
})
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataList = data.page.list
|
|
||||||
this.totalPage = data.page.totalCount
|
|
||||||
} else {
|
|
||||||
this.dataList = []
|
|
||||||
this.totalPage = 0
|
|
||||||
}
|
|
||||||
this.dataListLoading = false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 每页数
|
|
||||||
sizeChangeHandle (val) {
|
|
||||||
this.pageSize = val
|
|
||||||
this.pageIndex = 1
|
|
||||||
this.getDataList()
|
|
||||||
},
|
|
||||||
// 当前页
|
|
||||||
currentChangeHandle (val) {
|
|
||||||
this.pageIndex = val
|
|
||||||
this.getDataList()
|
|
||||||
},
|
},
|
||||||
// 新增 / 修改
|
// 新增 / 修改
|
||||||
addOrUpdateHandle (id) {
|
addOrUpdateHandle (row, idx) {
|
||||||
this.addOrUpdateVisible = true
|
this.addOrUpdateVisible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.addOrUpdate.init(id)
|
this.$refs.addOrUpdate.init(row, idx)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取点位
|
// 获取点位
|
||||||
@ -182,9 +157,10 @@
|
|||||||
},
|
},
|
||||||
setPoint (count, pointType) {
|
setPoint (count, pointType) {
|
||||||
if (!pointType) {
|
if (!pointType) {
|
||||||
this.startBtnName = count
|
this.startPosition = count
|
||||||
} else {
|
} else {
|
||||||
this.kilnBtnName = count
|
this.kilnId = count
|
||||||
|
this.targetPosition = count
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
submitTask () {
|
submitTask () {
|
||||||
@ -193,43 +169,61 @@
|
|||||||
message: '任务为空,请新增一条托盘信息',
|
message: '任务为空,请新增一条托盘信息',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else if (this.startBtnName === '选择起点') {
|
} else if (this.startPosition === '选择起点') {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '请选择任务起点',
|
message: '请选择任务起点',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else if (this.kilnBtnName === '选择窑炉') {
|
} else if (this.kilnId === '选择窑炉') {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '请选择窑炉',
|
message: '请选择窑炉',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
|
} else if (!this.processType) {
|
||||||
|
this.$message.warning('请选择加工类型')
|
||||||
|
} else {
|
||||||
|
this.$confirm(`确定提交任务?`, '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl(`currTask/createProcessTask`),
|
||||||
|
method: 'post',
|
||||||
|
data: this.$http.adornData({
|
||||||
|
craftCode: '',
|
||||||
|
detParams: this.dataList,
|
||||||
|
kilnId: this.kilnId,
|
||||||
|
processType: this.processType,
|
||||||
|
startPosition: this.startPosition,
|
||||||
|
targetPosition: this.targetPosition
|
||||||
|
})
|
||||||
|
}).then(({data}) => {
|
||||||
|
console.log(data)
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.$message.success('任务提交成功')
|
||||||
|
this.dataList = []
|
||||||
|
sessionStorage.setItem('taskList', '')
|
||||||
|
this.startPosition = '选择起点'
|
||||||
|
this.kilnId = '选择窑炉'
|
||||||
|
this.targetPosition = null
|
||||||
|
} else {
|
||||||
|
this.$message.warning(data.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
deleteHandle (id) {
|
deleteHandle (idx) {
|
||||||
this.$confirm(`确定对[id=${id}]进行删除]操作?`, '提示', {
|
console.log(idx)
|
||||||
|
this.$confirm(`确定对第${idx + 1}项进行删除操作?`, '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.dataList.splice(idx, 1)
|
||||||
url: this.$http.adornUrl('/sys/config/delete'),
|
sessionStorage.setItem('taskList', JSON.stringify(this.dataList))
|
||||||
method: 'post',
|
|
||||||
data: this.$http.adornData(id, false)
|
|
||||||
}).then(({data}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '操作成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.getDataList()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -96,16 +96,16 @@
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
// this.$http({
|
||||||
url: this.$http.adornUrl('/sys/logout'),
|
// url: this.$http.adornUrl('/sys/logout'),
|
||||||
method: 'post',
|
// method: 'post',
|
||||||
data: this.$http.adornData()
|
// data: this.$http.adornData()
|
||||||
}).then(({data}) => {
|
// }).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
// if (data && data.code === 0) {
|
||||||
clearLoginInfo()
|
clearLoginInfo()
|
||||||
this.$router.push({ name: 'login' })
|
this.$router.push({ name: 'login' })
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,15 +32,15 @@
|
|||||||
<icon-svg name="tubiao" class="site-sidebar__menu-icon"></icon-svg>
|
<icon-svg name="tubiao" class="site-sidebar__menu-icon"></icon-svg>
|
||||||
<span slot="title">货物出库</span>
|
<span slot="title">货物出库</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-menu-item
|
<!-- <el-menu-item
|
||||||
index="addProcess"
|
index="addProcess"
|
||||||
@click="$router.push({ name: 'addProcess' })"
|
@click="$router.push({ name: 'addProcess' })"
|
||||||
>
|
>
|
||||||
<icon-svg name="tubiao" class="site-sidebar__menu-icon"></icon-svg>
|
<icon-svg name="tubiao" class="site-sidebar__menu-icon"></icon-svg>
|
||||||
<span slot="title">追加加工</span>
|
<span slot="title">追加加工</span>
|
||||||
</el-menu-item>
|
</el-menu-item> -->
|
||||||
</el-submenu>
|
</el-submenu>
|
||||||
<el-submenu index="demo">
|
<!-- <el-submenu index="demo">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<icon-svg
|
<icon-svg
|
||||||
name="shoucang"
|
name="shoucang"
|
||||||
@ -62,7 +62,7 @@
|
|||||||
<icon-svg name="editor" class="site-sidebar__menu-icon"></icon-svg>
|
<icon-svg name="editor" class="site-sidebar__menu-icon"></icon-svg>
|
||||||
<span slot="title">ueditor</span>
|
<span slot="title">ueditor</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</el-submenu>
|
</el-submenu> -->
|
||||||
<el-submenu index="basic">
|
<el-submenu index="basic">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<icon-svg name="bianji" class="site-sidebar__menu-icon"></icon-svg>
|
<icon-svg name="bianji" class="site-sidebar__menu-icon"></icon-svg>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-19 11:23:44
|
* @Date: 2021-11-19 11:23:44
|
||||||
* @LastEditors: zwq
|
* @LastEditors: gtz
|
||||||
* @LastEditTime: 2021-12-08 14:42:18
|
* @LastEditTime: 2021-12-09 11:22:40
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -153,7 +153,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['dataForm'].resetFields()
|
this.$refs['dataForm'].resetFields()
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`orderInfo/getDet`),
|
url: this.$http.adornUrl(`/orderInfo/getDet`),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({ id: id })
|
data: this.$http.adornData({ id: id })
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
|
@ -195,7 +195,7 @@
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.dataListLoading = true
|
this.dataListLoading = true
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('orderInfo/page'),
|
url: this.$http.adornUrl('/orderInfo/page'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'current': this.pageIndex,
|
'current': this.pageIndex,
|
||||||
@ -229,7 +229,7 @@
|
|||||||
},
|
},
|
||||||
completeOrder (id) { // 完成订单
|
completeOrder (id) { // 完成订单
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('orderInfo/completeOrder'),
|
url: this.$http.adornUrl('/orderInfo/completeOrder'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'id': id
|
'id': id
|
||||||
@ -264,7 +264,7 @@
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('orderInfo/voidOrder'),
|
url: this.$http.adornUrl('/orderInfo/voidOrder'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData(id, false)
|
data: this.$http.adornData(id, false)
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
|
@ -145,7 +145,7 @@
|
|||||||
getDataList () {
|
getDataList () {
|
||||||
this.dataListLoading = true
|
this.dataListLoading = true
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('currTask/currentTaskNow'),
|
url: this.$http.adornUrl('/currTask/currentTaskNow'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
'current': this.pageIndex,
|
'current': this.pageIndex,
|
||||||
@ -188,7 +188,7 @@
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('currTask/deleteBySheetNo'),
|
url: this.$http.adornUrl('/currTask/deleteBySheetNo'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData(sheetNo)
|
data: this.$http.adornData(sheetNo)
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* @Author: gtz
|
||||||
|
* @Date: 2021-11-19 10:10:52
|
||||||
|
* @LastEditors: gtz
|
||||||
|
* @LastEditTime: 2021-12-09 11:08:41
|
||||||
|
* @Description: file content
|
||||||
|
* @FilePath: \mt-qj-wms-ui\static\config\index-prod.js
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* 生产环境
|
* 生产环境
|
||||||
*/
|
*/
|
||||||
@ -5,7 +13,7 @@
|
|||||||
window.SITE_CONFIG = {};
|
window.SITE_CONFIG = {};
|
||||||
|
|
||||||
// api接口请求地址
|
// api接口请求地址
|
||||||
window.SITE_CONFIG['baseUrl'] = 'http://demo.open.renren.io/renren-fast-server';
|
window.SITE_CONFIG['baseUrl'] = '/api';
|
||||||
|
|
||||||
// cdn地址 = 域名 + 版本号
|
// cdn地址 = 域名 + 版本号
|
||||||
window.SITE_CONFIG['domain'] = './'; // 域名
|
window.SITE_CONFIG['domain'] = './'; // 域名
|
||||||
|
Loading…
Reference in New Issue
Block a user