Compare commits
No commits in common. "d47343af6944520760fd78cb6cdf154551f88df6" and "9673c1ba30cf879b8e61893d8122cf70d8ba6a04" have entirely different histories.
d47343af69
...
9673c1ba30
@ -96,7 +96,7 @@
|
|||||||
"@vue/test-utils": "1.0.0-beta.29",
|
"@vue/test-utils": "1.0.0-beta.29",
|
||||||
"autoprefixer": "^9.5.1",
|
"autoprefixer": "^9.5.1",
|
||||||
"babel-core": "7.0.0-bridge.0",
|
"babel-core": "7.0.0-bridge.0",
|
||||||
"babel-eslint": "8.2.2",
|
"babel-eslint": "10.0.1",
|
||||||
"babel-jest": "23.6.0",
|
"babel-jest": "23.6.0",
|
||||||
"chalk": "2.4.2",
|
"chalk": "2.4.2",
|
||||||
"chokidar": "2.1.5",
|
"chokidar": "2.1.5",
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 16:00:14
|
* @Date: 2020-12-29 16:00:14
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-11 16:16:07
|
* @LastEditTime: 2021-01-27 16:42:27
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
export function areaList(data) { // 获取缓存区区域信息列表
|
export function areaList(data) { // 获取缓存区区域信息列表
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/area/shelf',
|
url: '/basic/area/page',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -17,7 +17,7 @@ export function areaList(data) { // 获取缓存区区域信息列表
|
|||||||
|
|
||||||
export function areaDetail(id) { // 获取缓存区区域信息单条数据
|
export function areaDetail(id) { // 获取缓存区区域信息单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/area/get',
|
url: '/basic/area/get',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: { id }
|
data: { id }
|
||||||
})
|
})
|
||||||
@ -25,7 +25,7 @@ export function areaDetail(id) { // 获取缓存区区域信息单条数据
|
|||||||
|
|
||||||
export function areaUpdate(data) { // 更新缓存区区域信息单条数据
|
export function areaUpdate(data) { // 更新缓存区区域信息单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/area/update',
|
url: '/basic/area/update',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -33,7 +33,7 @@ export function areaUpdate(data) { // 更新缓存区区域信息单条数据
|
|||||||
|
|
||||||
export function areaAdd(data) { // 新增缓存区区域信息单条数据
|
export function areaAdd(data) { // 新增缓存区区域信息单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/area/add',
|
url: '/basic/area/add',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -41,14 +41,14 @@ export function areaAdd(data) { // 新增缓存区区域信息单条数据
|
|||||||
|
|
||||||
export function areaCode() { // 获取缓存区区域信息code
|
export function areaCode() { // 获取缓存区区域信息code
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/area/getCode',
|
url: '/basic/area/get-code',
|
||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function areaDelete(id) { // 删除缓存区区域信息单条数据
|
export function areaDelete(id) { // 删除缓存区区域信息单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/area/delete',
|
url: '/basic/area/delete',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: { id }
|
data: { id }
|
||||||
})
|
})
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 16:00:14
|
* @Date: 2020-12-29 16:00:14
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-11 15:50:42
|
* @LastEditTime: 2021-01-20 15:31:32
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
export function cacheList(data) { // 获取缓存区信息列表
|
export function cacheList(data) { // 获取缓存区信息列表
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/area/page',
|
url: '/basic/cache/page',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -17,7 +17,7 @@ export function cacheList(data) { // 获取缓存区信息列表
|
|||||||
|
|
||||||
export function cacheDetail(id) { // 获取缓存区信息单条数据
|
export function cacheDetail(id) { // 获取缓存区信息单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/area/getById',
|
url: '/basic/cache/get',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: { id }
|
data: { id }
|
||||||
})
|
})
|
||||||
@ -25,7 +25,7 @@ export function cacheDetail(id) { // 获取缓存区信息单条数据
|
|||||||
|
|
||||||
export function cacheUpdate(data) { // 更新缓存区信息单条数据
|
export function cacheUpdate(data) { // 更新缓存区信息单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/area/update',
|
url: '/basic/cache/update',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -33,7 +33,7 @@ export function cacheUpdate(data) { // 更新缓存区信息单条数据
|
|||||||
|
|
||||||
export function cacheAdd(data) { // 新增缓存区信息单条数据
|
export function cacheAdd(data) { // 新增缓存区信息单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/area/add',
|
url: '/basic/cache/add',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -41,14 +41,14 @@ export function cacheAdd(data) { // 新增缓存区信息单条数据
|
|||||||
|
|
||||||
export function cacheCode() { // 获取缓存区信息code
|
export function cacheCode() { // 获取缓存区信息code
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/area/getCode',
|
url: '/basic/cache/get-code',
|
||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function cacheDelete(id) { // 删除缓存区信息单条数据
|
export function cacheDelete(id) { // 删除缓存区信息单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/area/delete',
|
url: '/basic/cache/delete',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: { id }
|
data: { id }
|
||||||
})
|
})
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 16:00:14
|
* @Date: 2020-12-29 16:00:14
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-11 16:43:22
|
* @LastEditTime: 2021-07-21 14:29:10
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
export function storageBoxList(data) { // 获取存储箱列表
|
export function storageBoxList(data) { // 获取存储箱列表
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/storagebox/page',
|
url: '/basic/storage-tank/page',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -17,7 +17,7 @@ export function storageBoxList(data) { // 获取存储箱列表
|
|||||||
|
|
||||||
export function storageBoxDetail(id) { // 获取存储箱单条数据
|
export function storageBoxDetail(id) { // 获取存储箱单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/storagebox/getById',
|
url: '/basic/storage-tank/get',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: { id }
|
data: { id }
|
||||||
})
|
})
|
||||||
@ -25,7 +25,7 @@ export function storageBoxDetail(id) { // 获取存储箱单条数据
|
|||||||
|
|
||||||
export function storageBoxUpdate(data) { // 更新存储箱单条数据
|
export function storageBoxUpdate(data) { // 更新存储箱单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/storagebox/update',
|
url: '/basic/storage-tank/update',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -33,7 +33,7 @@ export function storageBoxUpdate(data) { // 更新存储箱单条数据
|
|||||||
|
|
||||||
export function storageBoxAdd(data) { // 新增存储箱单条数据
|
export function storageBoxAdd(data) { // 新增存储箱单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/storagebox/add',
|
url: '/basic/storage-tank/add',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -41,14 +41,14 @@ export function storageBoxAdd(data) { // 新增存储箱单条数据
|
|||||||
|
|
||||||
export function storageBoxCode() { // 获取存储箱code
|
export function storageBoxCode() { // 获取存储箱code
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/storagebox/getCode',
|
url: '/basic/storage-tank/get-code',
|
||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function storageBoxDelete(id) { // 删除存储箱单条数据
|
export function storageBoxDelete(id) { // 删除存储箱单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/storagebox/delete',
|
url: '/basic/storage-tank/delete',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: { id }
|
data: { id }
|
||||||
})
|
})
|
||||||
@ -56,14 +56,14 @@ export function storageBoxDelete(id) { // 删除存储箱单条数据
|
|||||||
|
|
||||||
export function PositionDetailInfoAdd(data) { // 新增存储箱地址单条数据
|
export function PositionDetailInfoAdd(data) { // 新增存储箱地址单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/storagebox/add',
|
url: '/basic/storage-tank-site/add',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function PositionDetailInfoList(data) { // 获取存储箱地址列表
|
export function PositionDetailInfoList(data) { // 获取存储箱地址列表
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/storagebox-site/page',
|
url: '/basic/storage-tank-site/page',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 16:00:14
|
* @Date: 2020-12-29 16:00:14
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-10 17:00:16
|
* @LastEditTime: 2021-03-12 09:40:01
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
export function equipmentInfoList(data) { // 获取设备信息列表
|
export function equipmentInfoList(data) { // 获取设备信息列表
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/equipment/page',
|
url: '/basic/equipment/page',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -17,7 +17,7 @@ export function equipmentInfoList(data) { // 获取设备信息列表
|
|||||||
|
|
||||||
export function equipmentInfoDetail(id) { // 获取设备信息单条数据
|
export function equipmentInfoDetail(id) { // 获取设备信息单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/equipment/get',
|
url: '/basic/equipment/get',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: { id }
|
data: { id }
|
||||||
})
|
})
|
||||||
@ -25,7 +25,7 @@ export function equipmentInfoDetail(id) { // 获取设备信息单条数据
|
|||||||
|
|
||||||
export function equipmentInfoUpdate(data) { // 更新设备信息单条数据
|
export function equipmentInfoUpdate(data) { // 更新设备信息单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/equipment/update',
|
url: '/basic/equipment/update',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -33,7 +33,7 @@ export function equipmentInfoUpdate(data) { // 更新设备信息单条数据
|
|||||||
|
|
||||||
export function equipmentInfoAdd(data) { // 新增设备信息单条数据
|
export function equipmentInfoAdd(data) { // 新增设备信息单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/equipment/add',
|
url: '/basic/equipment/add',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -41,14 +41,14 @@ export function equipmentInfoAdd(data) { // 新增设备信息单条数据
|
|||||||
|
|
||||||
export function equipmentInfoCode() { // 获取设备信息code
|
export function equipmentInfoCode() { // 获取设备信息code
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/equipment/getCode',
|
url: '/basic/equipment/get-code',
|
||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function equipmentInfoDelete(id) { // 删除设备信息单条数据
|
export function equipmentInfoDelete(id) { // 删除设备信息单条数据
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/equipment/delete',
|
url: '/basic/equipment/delete',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: { id }
|
data: { id }
|
||||||
})
|
})
|
||||||
@ -56,7 +56,7 @@ export function equipmentInfoDelete(id) { // 删除设备信息单条数据
|
|||||||
|
|
||||||
export function equipmentInfoFileAdd(data) { // 设备信息上传
|
export function equipmentInfoFileAdd(data) { // 设备信息上传
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/equipment-file/update-file',
|
url: '/basic/equipment-file/update-file',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@ -64,7 +64,7 @@ export function equipmentInfoFileAdd(data) { // 设备信息上传
|
|||||||
|
|
||||||
export function getEquipmentInfoFile(data) { // 设备信息下载
|
export function getEquipmentInfoFile(data) { // 设备信息下载
|
||||||
return request({
|
return request({
|
||||||
url: '/api/wms/equipment-file/get-by-param',
|
url: '/basic/equipment-file/get-by-param',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
/*
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 16:00:14
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-14 15:29:26
|
|
||||||
* @Description:
|
|
||||||
*/
|
|
||||||
import request from '@/utils/request'
|
|
||||||
|
|
||||||
export function HistoricalTaskList(data) { // 获取任务列表
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/car/task/execution/info/his/page',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function HistoricalTaskDetail(id) { // 获取任务单条数据
|
|
||||||
const data = {
|
|
||||||
'id': id
|
|
||||||
}
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/car/task/execution/info/his/get',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CurrentTaskList(data) { // 获取任务列表
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/car/task/execution/info/page',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function CurrentTaskDetail(id) { // 获取任务单条数据
|
|
||||||
const data = {
|
|
||||||
'id': id
|
|
||||||
}
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/car/task/execution/info/get',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
@ -1,86 +0,0 @@
|
|||||||
/*
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 16:00:14
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-17 13:59:54
|
|
||||||
* @Description:
|
|
||||||
*/
|
|
||||||
import request from '@/utils/request'
|
|
||||||
|
|
||||||
export function StorageBoxInfoList(data) { // 获取存储箱使用情况
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/storage/box/circ/info/his/page/by/code',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StorageBoxInfoDetail(id) { // 获取存储箱单条数据
|
|
||||||
const data = {
|
|
||||||
'id': id
|
|
||||||
}
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/storage/box/get',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StorageBoxRackList(data) { // 获取存储箱上架列表
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/storage/box/circ/info/page/for/bind',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function locationList(data) { // 获取库位列表
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/location/list',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StorageBoxRackDetail(id) { // 获取存储箱上架单条数据
|
|
||||||
const data = {
|
|
||||||
'id': id
|
|
||||||
}
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/storage/box/circ/info/get',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StorageBoxRackUpdate(data) { // 更新存储箱上架单条数据
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/storage/box/circ/info/update',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StorageBoxRackAdd(data) { // 新增存储箱上架单条数据
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/storage/box/circ/info/add',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StorageBoxRackCode(data) { // 获取存储箱上架code
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/storagebox/page',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function StorageBoxRackDelete(id) { // 删除存储箱上架单条数据
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/storage/box/circ/info/delete',
|
|
||||||
method: 'post',
|
|
||||||
data: { id }
|
|
||||||
})
|
|
||||||
}
|
|
@ -1,47 +0,0 @@
|
|||||||
/*
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2022-01-17 14:55:09
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-17 14:59:07
|
|
||||||
* @Description:
|
|
||||||
*/
|
|
||||||
|
|
||||||
import request from '@/utils/request'
|
|
||||||
|
|
||||||
export function ProcessInfoList(data) { // 获取工单工艺列表
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/work/order/page',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ProcessInfoDetail(id) { // 获取工单工艺单条数据
|
|
||||||
const data = {
|
|
||||||
'id': id
|
|
||||||
}
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/work/order/get',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ExecutionInfoList(data) { // 获取工单执行列表
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/work/order/execute/page',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ExecutionInfoDetail(id) { // 获取工单执行单条数据
|
|
||||||
const data = {
|
|
||||||
'id': id
|
|
||||||
}
|
|
||||||
return request({
|
|
||||||
url: '/api/wms/work/order/execute/get',
|
|
||||||
method: 'post',
|
|
||||||
data
|
|
||||||
})
|
|
||||||
}
|
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Date: 2020-12-14 09:07:03
|
* @Date: 2020-12-14 09:07:03
|
||||||
* @LastEditors: zwq
|
* @LastEditors: Please set LastEditors
|
||||||
* @LastEditTime: 2022-01-11 15:45:54
|
* @LastEditTime: 2021-12-06 15:14:46
|
||||||
* @FilePath: \basic-admin\src\api\user.js
|
* @FilePath: \basic-admin\src\api\user.js
|
||||||
* @Description: 用户管理 & 登录用户的相关api接口定义
|
* @Description: 用户管理 & 登录用户的相关api接口定义
|
||||||
*/
|
*/
|
||||||
@ -27,13 +27,13 @@ export function logout() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 获取当前登录的用户信息
|
// 获取当前登录的用户信息
|
||||||
export function getUserInfo(data) {
|
// export function getUserInfo(data) {
|
||||||
return request({
|
// return request({
|
||||||
url: '/api/passport/getLoginUser',
|
// url: '/passport/getLoginUser',
|
||||||
method: 'post',
|
// method: 'post',
|
||||||
data
|
// data
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 修改当前用户密码
|
// 修改当前用户密码
|
||||||
export function editUserPW(data) {
|
export function editUserPW(data) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Date: 2020-12-29 16:49:28
|
* @Date: 2020-12-29 16:49:28
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-17 15:31:40
|
* @LastEditTime: 2021-07-21 15:56:54
|
||||||
* @FilePath: \basic-admin\src\filters\basicData\index.js
|
* @FilePath: \basic-admin\src\filters\basicData\index.js
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
@ -63,9 +63,9 @@ const table = {
|
|||||||
'1': i18n.t('basicDataFilter.enableState.enable')
|
'1': i18n.t('basicDataFilter.enableState.enable')
|
||||||
},
|
},
|
||||||
storage: {
|
storage: {
|
||||||
'0': i18n.t('basicDataFilter.storage.normal'),
|
'0': i18n.t('basicDataFilter.enableState.normal'),
|
||||||
'1': i18n.t('basicDataFilter.storage.repairing'),
|
'1': i18n.t('basicDataFilter.enableState.repairing'),
|
||||||
'2': i18n.t('basicDataFilter.storage.scrap')
|
'2': i18n.t('basicDataFilter.enableState.scrap')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
/*
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2022-01-17 11:30:41
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-17 11:33:29
|
|
||||||
* @Description:
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* @Date: 2020-12-29 16:49:28
|
|
||||||
* @LastEditors: gtz
|
|
||||||
* @LastEditTime: 2021-04-13 13:49:51
|
|
||||||
* @FilePath: \basic-admin\src\filters\DataDict\index.js
|
|
||||||
* @Description: 部分常量的数据字典定义
|
|
||||||
*/
|
|
||||||
|
|
||||||
import i18n from '@/lang'
|
|
||||||
|
|
||||||
const table = {
|
|
||||||
yesOrNo: {
|
|
||||||
'0': i18n.t('baseDict.yesOrNo.no'),
|
|
||||||
'1': i18n.t('baseDict.yesOrNo.yes')
|
|
||||||
},
|
|
||||||
enableState: {
|
|
||||||
'0': i18n.t('basicDataFilter.enableState.disable'),
|
|
||||||
'1': i18n.t('basicDataFilter.enableState.enable')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function(dictTable) {
|
|
||||||
return function(val) {
|
|
||||||
return table?.[dictTable]?.[val]
|
|
||||||
}
|
|
||||||
}
|
|
@ -548,8 +548,8 @@ export default {
|
|||||||
zh: '缓存区信息',
|
zh: '缓存区信息',
|
||||||
en: 'Ports Info',
|
en: 'Ports Info',
|
||||||
ports: {
|
ports: {
|
||||||
zh: '缓存区信息',
|
zh: '仓库',
|
||||||
en: 'Ports Info'
|
en: 'Warehouse'
|
||||||
},
|
},
|
||||||
area: {
|
area: {
|
||||||
zh: '区域',
|
zh: '区域',
|
||||||
@ -705,26 +705,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Warehouse: {
|
|
||||||
zh: '仓库管理',
|
|
||||||
en: 'Warehouse Manager',
|
|
||||||
StorageBoxInfo: {
|
|
||||||
zh: '存储箱信息',
|
|
||||||
en: 'Storage Box Info'
|
|
||||||
},
|
|
||||||
StorageBoxRack: {
|
|
||||||
zh: '存储箱上架',
|
|
||||||
en: 'Storage Box Rack'
|
|
||||||
},
|
|
||||||
CurrentTask: {
|
|
||||||
zh: '当前任务',
|
|
||||||
en: 'Current Task'
|
|
||||||
},
|
|
||||||
HistoricalTask: {
|
|
||||||
zh: '历史任务',
|
|
||||||
en: 'Historical Task'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
order: {
|
order: {
|
||||||
zh: '工单管理',
|
zh: '工单管理',
|
||||||
en: 'Order Manager',
|
en: 'Order Manager',
|
||||||
@ -732,14 +712,6 @@ export default {
|
|||||||
zh: 'Power Classification',
|
zh: 'Power Classification',
|
||||||
en: 'Power Classification'
|
en: 'Power Classification'
|
||||||
},
|
},
|
||||||
ProcessInfo: {
|
|
||||||
zh: '工艺信息',
|
|
||||||
en: 'Process Info'
|
|
||||||
},
|
|
||||||
ExecutionInfo: {
|
|
||||||
zh: '执行信息',
|
|
||||||
en: 'Execution Info'
|
|
||||||
},
|
|
||||||
consumption: {
|
consumption: {
|
||||||
zh: '工单能耗',
|
zh: '工单能耗',
|
||||||
en: 'Energy consumption of the repair order'
|
en: 'Energy consumption of the repair order'
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: gtz
|
* @Author: gtz
|
||||||
* @Date: 2021-03-04 16:13:51
|
* @Date: 2021-03-04 16:13:51
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-17 15:12:18
|
* @LastEditTime: 2021-07-21 09:59:34
|
||||||
* @Description: file content
|
* @Description: file content
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
@ -130,11 +130,9 @@ export default {
|
|||||||
CacheCode: 'Ports Code',
|
CacheCode: 'Ports Code',
|
||||||
CacheName: 'Ports Name',
|
CacheName: 'Ports Name',
|
||||||
StockNumber: 'Stock Number',
|
StockNumber: 'Stock Number',
|
||||||
AreaNumber: 'Shelf Number',
|
AreaNumber: 'Area Number',
|
||||||
AreaCode: 'Shelf Code',
|
AreaCode: 'Area Code',
|
||||||
AreaName: 'Shelf Name',
|
AreaName: 'Area Name',
|
||||||
rowNum: 'Row Num',
|
|
||||||
columnNum: 'Column Num',
|
|
||||||
Shelf: 'Shelf',
|
Shelf: 'Shelf',
|
||||||
ManageShelves: 'Manage Shelves',
|
ManageShelves: 'Manage Shelves',
|
||||||
ShelfCode: 'Shelf Code',
|
ShelfCode: 'Shelf Code',
|
||||||
@ -147,7 +145,7 @@ export default {
|
|||||||
LocationName: 'Location Name',
|
LocationName: 'Location Name',
|
||||||
anotherName: 'Another Name',
|
anotherName: 'Another Name',
|
||||||
place: 'Place',
|
place: 'Place',
|
||||||
addCacheArea: 'add Ports Shelf'
|
addCacheArea: 'add Ports Area'
|
||||||
},
|
},
|
||||||
storageBox: {
|
storageBox: {
|
||||||
name: 'Name',
|
name: 'Name',
|
||||||
@ -274,46 +272,5 @@ export default {
|
|||||||
EquipmentScrapGrade: {
|
EquipmentScrapGrade: {
|
||||||
keyword: 'name',
|
keyword: 'name',
|
||||||
ScrapGrade: 'Scrap Grade'
|
ScrapGrade: 'Scrap Grade'
|
||||||
},
|
|
||||||
Warehouse: {
|
|
||||||
Code: 'Code',
|
|
||||||
TaskType: 'Task Type',
|
|
||||||
TaskStatus: 'Task Status',
|
|
||||||
TaskSource: 'Task Source',
|
|
||||||
VehicleName: 'Vehicle Name',
|
|
||||||
TimeSlot: 'Time Slot',
|
|
||||||
ExecutionTime: 'Execution Time',
|
|
||||||
BoxStatus: 'Box Status',
|
|
||||||
BoxNumber: 'Box Number',
|
|
||||||
PreviousOperation: 'Previous Operation',
|
|
||||||
NextOperation: 'Next Operation',
|
|
||||||
CompletionTime: 'Completion Time',
|
|
||||||
StartLocation: 'Start Location',
|
|
||||||
FullBoxStartLocation: 'FullBox Start Location',
|
|
||||||
TaskLocation: 'Task Location',
|
|
||||||
TargetLocation: 'Target Location',
|
|
||||||
OrderName: 'Order Name',
|
|
||||||
OrderCode: 'Order Code',
|
|
||||||
IssueOrderTime: 'Issue Order Time',
|
|
||||||
TotalProcessName: 'Total Process Name',
|
|
||||||
Priority: 'Priority',
|
|
||||||
OrderStatus: 'Order Status',
|
|
||||||
ProcessOrNot: 'Process Or Not',
|
|
||||||
Unit: 'Unit',
|
|
||||||
RelateProcess: 'Relate Process',
|
|
||||||
PlanProcessQuantity: 'Plan Process Quantity',
|
|
||||||
SubProcessName: 'Sub Process Name',
|
|
||||||
TaskBoxNumber: 'Task Box Number',
|
|
||||||
FullBoxNumber: 'Full Box Number',
|
|
||||||
EmptyFork: 'Empty Fork',
|
|
||||||
TaskBoxFork: 'Task Box Fork',
|
|
||||||
EmptyHandlingTime: 'Empty Handling Time',
|
|
||||||
TaskBoxHandlingTime: 'TaskBox Handling Time',
|
|
||||||
StorageBoxNumber: 'Storage Box Number',
|
|
||||||
CurrentLocation: 'Current Location',
|
|
||||||
IsEmpty: 'Is Empty',
|
|
||||||
IsEmptyBox: 'Is Empty Box',
|
|
||||||
LocationName: 'Location Name',
|
|
||||||
LocationCode: 'Location Code'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: gtz
|
* @Author: gtz
|
||||||
* @Date: 2021-03-04 16:13:51
|
* @Date: 2021-03-04 16:13:51
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-17 15:12:12
|
* @LastEditTime: 2021-07-21 09:58:59
|
||||||
* @Description: file content
|
* @Description: file content
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
@ -130,24 +130,22 @@ export default {
|
|||||||
CacheCode: '缓存区编码',
|
CacheCode: '缓存区编码',
|
||||||
CacheName: '缓存区名称',
|
CacheName: '缓存区名称',
|
||||||
StockNumber: '库位数量',
|
StockNumber: '库位数量',
|
||||||
AreaNumber: '货架数量',
|
AreaNumber: '区域数量',
|
||||||
AreaCode: '货架编码',
|
AreaCode: '区域编码',
|
||||||
AreaName: '货架名称',
|
AreaName: '区域名称',
|
||||||
rowNum: '行数',
|
|
||||||
columnNum: '列数',
|
|
||||||
Shelf: '货架',
|
Shelf: '货架',
|
||||||
ManageShelves: '管理货架',
|
ManageShelves: '管理货架',
|
||||||
ShelfCode: '货架编码',
|
ShelfCode: '货架编码',
|
||||||
ShelfName: '货架名称',
|
ShelfName: '货架名称',
|
||||||
ShelfNumber: '货架数量',
|
ShelfNumber: '货架数量',
|
||||||
StorageQuantity: '存储数量',
|
StorageQuantity: '存储数量',
|
||||||
Location: '库位',
|
Location: '货位',
|
||||||
ManageLocation: '管理货位',
|
ManageLocation: '管理货位',
|
||||||
LocationCode: '库位编码',
|
LocationCode: '库位编码',
|
||||||
LocationName: '库位名称',
|
LocationName: '库位名称',
|
||||||
anotherName: '别名',
|
anotherName: '别名',
|
||||||
place: '位置',
|
place: '位置',
|
||||||
addCacheArea: '添加货架'
|
addCacheArea: '添加区域'
|
||||||
},
|
},
|
||||||
storageBox: {
|
storageBox: {
|
||||||
name: '名称',
|
name: '名称',
|
||||||
@ -274,47 +272,5 @@ export default {
|
|||||||
EquipmentScrapGrade: {
|
EquipmentScrapGrade: {
|
||||||
keyword: '名称',
|
keyword: '名称',
|
||||||
ScrapGrade: '废片等级'
|
ScrapGrade: '废片等级'
|
||||||
},
|
|
||||||
Warehouse: {
|
|
||||||
Code: '编码',
|
|
||||||
TaskType: '任务类型',
|
|
||||||
TaskStatus: '任务状态',
|
|
||||||
TaskSource: '任务来源',
|
|
||||||
VehicleName: '车辆名',
|
|
||||||
TimeSlot: '时间段',
|
|
||||||
ExecutionTime: '执行时间',
|
|
||||||
BoxStatus: '箱状态',
|
|
||||||
BoxNumber: '箱号',
|
|
||||||
PreviousOperation: '上一个工序',
|
|
||||||
NextOperation: '下一个工序',
|
|
||||||
CompletionTime: '完成时间',
|
|
||||||
StartLocation: '开始库位',
|
|
||||||
FullBoxStartLocation: '空箱开始库位',
|
|
||||||
TaskLocation: '任务库位',
|
|
||||||
TargetLocation: '目标库位',
|
|
||||||
OrderName: '工单名',
|
|
||||||
OrderCode: '工单编码',
|
|
||||||
IssueOrderTime: '下发工单时间',
|
|
||||||
TotalProcessName: '总工艺名称',
|
|
||||||
Priority: '优先级',
|
|
||||||
OrderStatus: '工单状态',
|
|
||||||
ProcessOrNot: '是否关联工艺',
|
|
||||||
Unit: '单位',
|
|
||||||
RelateProcess: '关联工艺',
|
|
||||||
PlanProcessQuantity: '计划加工数量',
|
|
||||||
SubProcessName: '分工艺',
|
|
||||||
TaskBoxNumber: '任务箱号',
|
|
||||||
FullBoxNumber: '空箱号',
|
|
||||||
EmptyFork: '空箱货叉',
|
|
||||||
TaskBoxFork: '任务箱货叉',
|
|
||||||
EmptyHandlingTime: '搬运空箱时间',
|
|
||||||
TaskBoxHandlingTime: '搬运任务箱时间',
|
|
||||||
StorageBoxNumber: '存储箱号',
|
|
||||||
CurrentLocation: '当前库位',
|
|
||||||
IsEmpty: '是否有基板',
|
|
||||||
IsEmptyBox: '是否空箱',
|
|
||||||
LocationName: '库位名',
|
|
||||||
LocationCode: '库位编码'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,11 @@
|
|||||||
<svg-icon class="item-icon" icon-class="home" />
|
<svg-icon class="item-icon" icon-class="home" />
|
||||||
{{ 'navbar.homepage' | i18nFilter }}
|
{{ 'navbar.homepage' | i18nFilter }}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="right-menu-back">
|
||||||
|
<el-badge :value="alarmList.length" class="item" style="line-height: 0; margin: 0 10px;" @click.native="toAlarm">
|
||||||
|
<svg-icon style="width: 24px; height: 24px" class="item-icon" icon-class="alarm" />
|
||||||
|
</el-badge>
|
||||||
|
</div>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<lang-select class="right-menu-item hover-effect" />
|
<lang-select class="right-menu-item hover-effect" />
|
||||||
@ -22,15 +27,15 @@
|
|||||||
<div v-if="showhome" class="right-menu-back">
|
<div v-if="showhome" class="right-menu-back">
|
||||||
<a href="Lodap.zip"><i class="el-icon-download" /></a>
|
<a href="Lodap.zip"><i class="el-icon-download" /></a>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="right-menu-back">
|
<div class="right-menu-back">
|
||||||
<i class="el-icon-alarm-clock" />
|
<i class="el-icon-alarm-clock" />
|
||||||
{{ formatTime }}
|
{{ formatTime }}
|
||||||
</div> -->
|
</div>
|
||||||
|
|
||||||
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
|
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
|
||||||
<div class="avatar-wrapper">
|
<div class="avatar-wrapper">
|
||||||
<img :src="require('@/assets/img/head.png')" class="user-avatar">
|
<img :src="require('@/assets/img/head.png')" class="user-avatar">
|
||||||
<!-- <div class="avatar-username">{{ username }}</div> -->
|
<div class="avatar-username">{{ username }}</div>
|
||||||
<!-- <i class="el-icon-caret-bottom" /> -->
|
<!-- <i class="el-icon-caret-bottom" /> -->
|
||||||
</div>
|
</div>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
@ -66,6 +71,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
import { alarmInfoList } from '@/api/basicData/AlarmManagement/alarmInfo'
|
||||||
import Breadcrumb from '@/components/Breadcrumb'
|
import Breadcrumb from '@/components/Breadcrumb'
|
||||||
import Hamburger from '@/components/Hamburger'
|
import Hamburger from '@/components/Hamburger'
|
||||||
import LangSelect from '@/components/LangSelect'
|
import LangSelect from '@/components/LangSelect'
|
||||||
@ -116,9 +122,16 @@ export default {
|
|||||||
if (val <= 0) {
|
if (val <= 0) {
|
||||||
this.logout()
|
this.logout()
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
$route: function() {
|
||||||
|
this.getAlarm()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.getAlarm()
|
||||||
|
logoutInterval = setInterval(() => {
|
||||||
|
this.logoutTime -= 1000
|
||||||
|
}, 1000)
|
||||||
addEventListener('click', this.logoutTimeReset)
|
addEventListener('click', this.logoutTimeReset)
|
||||||
addEventListener('keydown', this.logoutTimeReset)
|
addEventListener('keydown', this.logoutTimeReset)
|
||||||
addEventListener('visibilitychange', this.visibilitychangeListener)
|
addEventListener('visibilitychange', this.visibilitychangeListener)
|
||||||
@ -179,6 +192,24 @@ export default {
|
|||||||
async toHome() {
|
async toHome() {
|
||||||
this.$store.dispatch('app/setChoicepart')
|
this.$store.dispatch('app/setChoicepart')
|
||||||
this.$router.push('/')
|
this.$router.push('/')
|
||||||
|
},
|
||||||
|
getAlarm() {
|
||||||
|
alarmInfoList({
|
||||||
|
current: 1,
|
||||||
|
size: 1000,
|
||||||
|
alarmType: '',
|
||||||
|
code: '',
|
||||||
|
alarmGrade: ''
|
||||||
|
}).then(response => {
|
||||||
|
if (response.data.records) {
|
||||||
|
this.alarmList = response.data.records
|
||||||
|
} else {
|
||||||
|
this.alarmList = []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
toAlarm() {
|
||||||
|
this.$router.push('/AlarmManagement/AlarmInfo')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,175 +94,414 @@ export const constantRoutes = [
|
|||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/ports',
|
redirect: '/Ports/ports',
|
||||||
name: 'basicData',
|
name: 'basicData',
|
||||||
meta: { title: routerTitle.basicData?.[language] || routerTitle.basicData.en, icon: 'form', iconPart: 'basicData', affix: true, required: true, requireToken: true },
|
meta: { title: routerTitle.basicData?.[language] || routerTitle.basicData.en, icon: 'form', iconPart: 'basicData', affix: true, required: true, requireToken: true },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'ports',
|
path: '/Ports',
|
||||||
component: () => import('@/views/basicData/Cache/cache'),
|
component: () => import('@/views/basicData/index'),
|
||||||
name: 'ports',
|
name: 'Ports',
|
||||||
meta: { title: routerTitle.basicData.ports.ports?.[language] || routerTitle.basicData.ports.ports.en, icon: 'form', affix: true }
|
meta: { title: routerTitle.basicData.ports?.[language] || routerTitle.basicData.ports.en, icon: 'form', affix: true, required: true, requireToken: true },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'ports',
|
||||||
|
component: () => import('@/views/basicData/Cache/cache'),
|
||||||
|
name: 'ports',
|
||||||
|
meta: { title: routerTitle.basicData.ports.ports?.[language] || routerTitle.basicData.ports.ports.en, icon: 'form', affix: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'area',
|
||||||
|
component: () => import('@/views/basicData/Cache/area'),
|
||||||
|
name: 'area',
|
||||||
|
meta: { title: routerTitle.basicData.ports.area?.[language] || routerTitle.basicData.ports.area.en, icon: 'form', affix: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'shelf',
|
||||||
|
component: () => import('@/views/basicData/Cache/shelf'),
|
||||||
|
name: 'shelf',
|
||||||
|
meta: { title: routerTitle.basicData.ports.shelf?.[language] || routerTitle.basicData.ports.shelf.en, icon: 'form', affix: true }
|
||||||
|
}, {
|
||||||
|
path: 'cacheAdd',
|
||||||
|
component: () => import('@/views/basicData/Cache/components/cache-add'),
|
||||||
|
name: 'cacheAdd',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.basicData.ports.cacheAdd?.[language] || routerTitle.basicData.ports.cacheAdd.en, icon: 'form', affix: true }
|
||||||
|
}, {
|
||||||
|
path: 'shelfAdd',
|
||||||
|
component: () => import('@/views/basicData/Cache/components/shelf-add'),
|
||||||
|
name: 'shelfAdd',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.basicData.ports.shelfAdd?.[language] || routerTitle.basicData.ports.shelfAdd.en, icon: 'form', affix: true }
|
||||||
|
}, {
|
||||||
|
path: 'locationAdd',
|
||||||
|
component: () => import('@/views/basicData/Cache/components/location-add'),
|
||||||
|
name: 'locationAdd',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.basicData.ports.locationAdd?.[language] || routerTitle.basicData.ports.locationAdd.en, icon: 'form', affix: true }
|
||||||
|
}, {
|
||||||
|
path: 'storageBox',
|
||||||
|
component: () => import('@/views/basicData/Cache/storageBox'),
|
||||||
|
name: 'storageBox',
|
||||||
|
meta: { title: routerTitle.basicData.ports.storageBox?.[language] || routerTitle.basicData.ports.storageBox.en, icon: 'form', affix: true }
|
||||||
|
}, {
|
||||||
|
path: 'PositionDetailInfo',
|
||||||
|
component: () => import('@/views/basicData/Cache/components/PositionDetailInfo'),
|
||||||
|
name: 'PositionDetailInfo',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.basicData.ports.PositionDetailInfo?.[language] || routerTitle.basicData.ports.PositionDetailInfo.en, icon: 'form', affix: true }
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'area',
|
path: '/Equipment',
|
||||||
component: () => import('@/views/basicData/Cache/area'),
|
component: () => import('@/views/basicData/index'),
|
||||||
name: 'area',
|
name: 'Equipment',
|
||||||
hidden: true,
|
meta: { title: routerTitle.basicData.equipment?.[language] || routerTitle.basicData.equipment.en, icon: 'form', affix: true, required: true, requireToken: true },
|
||||||
meta: { title: routerTitle.basicData.ports.area?.[language] || routerTitle.basicData.ports.area.en, icon: 'form', affix: true }
|
children: [
|
||||||
},
|
{
|
||||||
{
|
path: 'equipmentInfo',
|
||||||
path: 'shelf',
|
component: () =>
|
||||||
component: () => import('@/views/basicData/Cache/shelf'),
|
|
||||||
name: 'shelf',
|
|
||||||
hidden: true,
|
|
||||||
meta: { title: routerTitle.basicData.ports.shelf?.[language] || routerTitle.basicData.ports.shelf.en, icon: 'form', affix: true }
|
|
||||||
}, {
|
|
||||||
path: 'cacheAdd',
|
|
||||||
component: () => import('@/views/basicData/Cache/components/cache-add'),
|
|
||||||
name: 'cacheAdd',
|
|
||||||
hidden: true,
|
|
||||||
meta: { title: routerTitle.basicData.ports.cacheAdd?.[language] || routerTitle.basicData.ports.cacheAdd.en, icon: 'form', affix: true }
|
|
||||||
}, {
|
|
||||||
path: 'shelfAdd',
|
|
||||||
component: () => import('@/views/basicData/Cache/components/shelf-add'),
|
|
||||||
name: 'shelfAdd',
|
|
||||||
hidden: true,
|
|
||||||
meta: { title: routerTitle.basicData.ports.shelfAdd?.[language] || routerTitle.basicData.ports.shelfAdd.en, icon: 'form', affix: true }
|
|
||||||
}, {
|
|
||||||
path: 'locationAdd',
|
|
||||||
component: () => import('@/views/basicData/Cache/components/location-add'),
|
|
||||||
name: 'locationAdd',
|
|
||||||
hidden: true,
|
|
||||||
meta: { title: routerTitle.basicData.ports.locationAdd?.[language] || routerTitle.basicData.ports.locationAdd.en, icon: 'form', affix: true }
|
|
||||||
}, {
|
|
||||||
path: 'storageBox',
|
|
||||||
component: () => import('@/views/basicData/Cache/storageBox'),
|
|
||||||
name: 'storageBox',
|
|
||||||
meta: { title: routerTitle.basicData.ports.storageBox?.[language] || routerTitle.basicData.ports.storageBox.en, icon: 'form', affix: true }
|
|
||||||
}, {
|
|
||||||
path: 'PositionDetailInfo',
|
|
||||||
component: () => import('@/views/basicData/Cache/components/PositionDetailInfo'),
|
|
||||||
name: 'PositionDetailInfo',
|
|
||||||
hidden: true,
|
|
||||||
meta: { title: routerTitle.basicData.ports.PositionDetailInfo?.[language] || routerTitle.basicData.ports.PositionDetailInfo.en, icon: 'form', affix: true }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'equipmentInfo',
|
|
||||||
component: () =>
|
|
||||||
import('@/views/basicData/Equipment/equipmentInfo'),
|
import('@/views/basicData/Equipment/equipmentInfo'),
|
||||||
name: 'equipmentInfo',
|
name: 'equipmentInfo',
|
||||||
meta: { title: routerTitle.basicData.equipment.equipmentInfo?.[language] || routerTitle.basicData.equipment.equipmentInfo.en, icon: 'form', affix: true, required: true, requireToken: true }
|
meta: { title: routerTitle.basicData.equipment.equipmentInfo?.[language] || routerTitle.basicData.equipment.equipmentInfo.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'equipmentInfoAdd',
|
path: 'equipmentInfoAdd',
|
||||||
component: () => import('@/views/basicData/Equipment/components/equipmentInfo-add'),
|
component: () => import('@/views/basicData/Equipment/components/equipmentInfo-add'),
|
||||||
name: 'equipmentInfoAdd',
|
name: 'equipmentInfoAdd',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: { title: routerTitle.basicData.equipment.equipmentInfoAdd?.[language] || routerTitle.basicData.equipment.equipmentInfoAdd.en, icon: 'form', affix: true, required: true, requireToken: true }
|
meta: { title: routerTitle.basicData.equipment.equipmentInfoAdd?.[language] || routerTitle.basicData.equipment.equipmentInfoAdd.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'equipmentType',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/basicData/Equipment/equipmentType'),
|
||||||
|
name: 'equipmentType',
|
||||||
|
meta: { title: routerTitle.basicData.equipment.equipmentType?.[language] || routerTitle.basicData.equipment.equipmentType.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'EquipmentGroup',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/basicData/Equipment/EquipmentGroup'),
|
||||||
|
name: 'EquipmentGroup',
|
||||||
|
meta: { title: routerTitle.basicData.equipment.EquipmentGroup?.[language] || routerTitle.basicData.equipment.EquipmentGroup.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'equipmentTypeAlarm',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/basicData/Equipment/equipmentTypeAlarm'),
|
||||||
|
name: 'equipmentTypeAlarm',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.basicData.equipment.equipmentTypeAlarm?.[language] || routerTitle.basicData.equipment.equipmentTypeAlarm.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'maintenanceType',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/basicData/Equipment/maintenanceType'),
|
||||||
|
name: 'maintenanceType',
|
||||||
|
meta: { title: routerTitle.basicData.equipment.maintenanceType?.[language] || routerTitle.basicData.equipment.maintenanceType.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'maintenanceCycle',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/basicData/Equipment/maintenanceCycle'),
|
||||||
|
name: 'maintenanceCycle',
|
||||||
|
meta: { title: routerTitle.basicData.equipment.maintenanceCycle?.[language] || routerTitle.basicData.equipment.maintenanceCycle.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/equipmentDetectInfo',
|
||||||
|
component: () => import('@/views/basicData/index'),
|
||||||
|
name: 'equipmentDetectInfo',
|
||||||
|
meta: { title: routerTitle.basicData.equipment.equipmentDetectInfo?.[language] || routerTitle.basicData.equipment.equipmentDetectInfo.en, icon: 'form', affix: true, required: true, requireToken: true },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'equipmentDetectSystem',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/basicData/Equipment/equipmentDetectSystem'),
|
||||||
|
name: 'equipmentDetectSystem',
|
||||||
|
meta: { title: routerTitle.basicData.equipment.equipmentDetectInfo.equipmentDetectSystem?.[language] || routerTitle.basicData.equipment.equipmentDetectInfo.equipmentDetectSystem.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'equipmentDetectArea',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/basicData/Equipment/equipmentDetectArea'),
|
||||||
|
name: 'equipmentDetectArea',
|
||||||
|
meta: { title: routerTitle.basicData.equipment.equipmentDetectInfo.equipmentDetectArea?.[language] || routerTitle.basicData.equipment.equipmentDetectInfo.equipmentDetectArea.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'equipmentDetectAreaAdd',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/basicData/Equipment/components/equipmentDetectArea-add'),
|
||||||
|
name: 'equipmentDetectAreaAdd',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.basicData.equipment.equipmentDetectInfo.equipmentDetectArea?.[language] || routerTitle.basicData.equipment.equipmentDetectInfo.equipmentDetectArea.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'detectSystemSettings',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/basicData/Equipment/detectSystemSettings'),
|
||||||
|
name: 'detectSystemSettings',
|
||||||
|
meta: { title: routerTitle.basicData.equipment.equipmentDetectInfo.detectSystemSettings?.[language] || routerTitle.basicData.equipment.equipmentDetectInfo.detectSystemSettings.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'detectSystemSettingsAdd',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/basicData/Equipment/components/detectSystemSettings-add'),
|
||||||
|
name: 'detectSystemSettingsAdd',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.basicData.equipment.equipmentDetectInfo.detectSystemSettings?.[language] || routerTitle.basicData.equipment.equipmentDetectInfo.detectSystemSettings.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
// {
|
||||||
|
// path: 'spareParts',
|
||||||
|
// component: () => import('@/views/basicData/Equipment/spareParts'),
|
||||||
|
// name: 'spareParts',
|
||||||
|
// meta: { title: routerTitle.basicData.equipment.spareParts?.[language] || routerTitle.basicData.equipment.spareParts.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: 'equipmentLink',
|
||||||
|
// component: () =>
|
||||||
|
// import('@/views/basicData/Equipment/equipmentLink'),
|
||||||
|
// name: 'equipmentLink',
|
||||||
|
// meta: { title: routerTitle.basicData.equipment.equipmentLink?.[language] || routerTitle.basicData.equipment.equipmentLink.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: 'equipmentLinkAdd',
|
||||||
|
// component: () => import('@/views/basicData/Equipment/components/equipmentLink-add'),
|
||||||
|
// name: 'equipmentLinkAdd',
|
||||||
|
// hidden: true,
|
||||||
|
// meta: { title: routerTitle.basicData.equipment.equipmentLinkAdd?.[language] || routerTitle.basicData.equipment.equipmentInfoAdd.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
// }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/Warehouse',
|
path: '/art',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/Warehouse/workOrderManage',
|
redirect: '/art/list',
|
||||||
name: 'Warehouse',
|
name: 'ArtManager',
|
||||||
meta: { title: routerTitle.Warehouse?.[language] || routerTitle.Warehouse.en, icon: 'form', iconPart: 'orderManage', affix: true, required: true, requireToken: true },
|
meta: { title: routerTitle.technology?.[language] || routerTitle.technology.en, icon: 'form', iconPart: 'ArtManager', affix: true, required: true, requireToken: true },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/StorageBoxInfo',
|
path: 'list',
|
||||||
component: () =>
|
component: () => import('@/views/art/list'),
|
||||||
import('@/views/basicData/Warehouse/StorageBoxInfo'),
|
name: 'ArtList',
|
||||||
name: 'StorageBoxInfo',
|
meta: { title: routerTitle.technology.technologylist?.[language] || routerTitle.technology.technologylist.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
meta: { title: routerTitle.Warehouse.StorageBoxInfo?.[language] || routerTitle.Warehouse.StorageBoxInfo.en, icon: 'form', affix: true, required: true, requireToken: true }
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/StorageBoxRack',
|
path: 'process',
|
||||||
component: () =>
|
component: () => import('@/views/art/process/list'),
|
||||||
import('@/views/basicData/Warehouse/StorageBoxRack'),
|
name: 'Process',
|
||||||
name: 'StorageBoxRack',
|
meta: { title: routerTitle.technology.technologyprocess?.[language] || routerTitle.technology.technologyprocess.en, icon: 'form', affix: true, required: true, requireToken: true },
|
||||||
meta: { title: routerTitle.Warehouse.StorageBoxRack?.[language] || routerTitle.Warehouse.StorageBoxRack.en, icon: 'form', affix: true, required: true, requireToken: true }
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/CurrentTask',
|
path: 'processList',
|
||||||
component: () =>
|
component: () => import('@/views/art/processList'),
|
||||||
import('@/views/basicData/Warehouse/CurrentTask'),
|
name: 'Process',
|
||||||
name: 'CurrentTask',
|
meta: { title: routerTitle.technology.processList?.[language] || routerTitle.technology.processList.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
meta: { title: routerTitle.Warehouse.CurrentTask?.[language] || routerTitle.Warehouse.CurrentTask.en, icon: 'form', affix: true, required: true, requireToken: true }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/HistoricalTask',
|
|
||||||
component: () =>
|
|
||||||
import('@/views/basicData/Warehouse/HistoricalTask'),
|
|
||||||
name: 'HistoricalTask',
|
|
||||||
meta: { title: routerTitle.Warehouse.HistoricalTask?.[language] || routerTitle.Warehouse.HistoricalTask.en, icon: 'form', affix: true, required: true, requireToken: true }
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/order',
|
path: '/order',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/order/ProcessInfo',
|
redirect: '/order/workOrderManage',
|
||||||
name: 'orderManage',
|
name: 'orderManage',
|
||||||
meta: { title: routerTitle.order?.[language] || routerTitle.order.en, icon: 'form', iconPart: 'orderManage', affix: true, required: true, requireToken: true },
|
meta: { title: routerTitle.order?.[language] || routerTitle.order.en, icon: 'form', iconPart: 'orderManage', affix: true, required: true, requireToken: true },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'ProcessInfo',
|
path: 'powerClassification',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/orderManage/ProcessInfo'),
|
import('@/views/orderManage/powerClassification'),
|
||||||
name: 'ProcessInfo',
|
name: 'powerClassification',
|
||||||
meta: { title: routerTitle.order.ProcessInfo?.[language] || routerTitle.order.ProcessInfo.en, icon: 'form', affix: true, required: true, requireToken: true }
|
meta: { title: routerTitle.order.powerClassification?.[language] || routerTitle.order.powerClassification.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'ExecutionInfo',
|
path: 'erpToMesData',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/orderManage/ExecutionInfo'),
|
import('@/views/orderManage/erpToMesData'),
|
||||||
name: 'ExecutionInfo',
|
name: 'erpToMesData',
|
||||||
meta: { title: routerTitle.order.ExecutionInfo?.[language] || routerTitle.order.ExecutionInfo.en, icon: 'form', affix: true, required: true, requireToken: true }
|
meta: { title: routerTitle.order.erpToMesData?.[language] || routerTitle.order.erpToMesData.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'erpToMesVisualization',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/visualization'),
|
||||||
|
name: 'erpToMesVisualization',
|
||||||
|
meta: { title: routerTitle.order.erpToMesVisualization?.[language] || routerTitle.order.erpToMesVisualization.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'mesToErp',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/mesToErp'),
|
||||||
|
name: 'mesToErp',
|
||||||
|
meta: { title: 'mesToErp', icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/workOrderManage',
|
||||||
|
component: () => import('@/views/orderManage/index'),
|
||||||
|
name: 'workOrderManage',
|
||||||
|
meta: { title: routerTitle.order.workOrderManage?.[language] || routerTitle.order.workOrderManage.en, icon: 'form', affix: true, required: true, requireToken: true },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'workOrder',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/workOrder/workOrder'),
|
||||||
|
name: 'workOrder',
|
||||||
|
meta: { title: routerTitle.order.workOrderManage.workOrder?.[language] || routerTitle.order.workOrderManage.workOrder.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'workOrderOperation',
|
||||||
|
component: () => import('@/views/orderManage/workOrder/components/workOrderOperation'),
|
||||||
|
name: 'workOrderOperation',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.order.workOrderManage.workOrderOperation?.[language] || routerTitle.order.workOrderManage.workOrderOperation.en, icon: 'form', affix: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'workOrderMonitor',
|
||||||
|
component: () => import('@/views/orderManage/workOrder/components/workOrderMonitor'),
|
||||||
|
name: 'workOrderMonitor',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.order.workOrderManage.workOrderMonitor?.[language] || routerTitle.order.workOrderManage.workOrderMonitor.en, icon: 'form', affix: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'workOrderVerify',
|
||||||
|
component: () => import('@/views/orderManage/workOrder/components/workOrderVerify'),
|
||||||
|
name: 'workOrderVerify',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.order.workOrderManage.workOrderVerify?.[language] || routerTitle.order.workOrderManage.workOrderVerify.en, icon: 'form', affix: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'packingTags',
|
||||||
|
component: () => import('@/views/orderManage/packingTags'),
|
||||||
|
name: 'packingTags',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.order.workOrderManage.viewpackingTags?.[language] || routerTitle.order.workOrderManage.viewpackingTags.en, icon: 'form', affix: true }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/orderManage',
|
||||||
|
component: () => import('@/views/orderManage/index'),
|
||||||
|
name: 'orderManage',
|
||||||
|
meta: { title: routerTitle.order.orderManage?.[language] || routerTitle.order.orderManage.en, icon: 'form', affix: true, required: true, requireToken: true },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'order',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/order/order'),
|
||||||
|
name: 'order',
|
||||||
|
meta: { title: routerTitle.order.orderManage.order?.[language] || routerTitle.order.orderManage.order.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'orderIssue',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/order/components/orderIssue'),
|
||||||
|
name: 'orderIssue',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.order.orderManage.orderIssue?.[language] || routerTitle.order.orderManage.orderIssue.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'orderDetail',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/order/components/orderDetail'),
|
||||||
|
name: 'orderDetail',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.order.orderManage.orderDetail?.[language] || routerTitle.order.orderManage.orderDetail.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/infoTrack',
|
||||||
|
component: () => import('@/views/orderManage/index'),
|
||||||
|
name: 'infoTrack',
|
||||||
|
meta: { title: routerTitle.order.infoTrack?.[language] || routerTitle.order.infoTrack.en, icon: 'form', affix: true, required: true, requireToken: true },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'equipmentParametersTrack',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/infoTrack/equipmentParametersTrack'),
|
||||||
|
name: 'equipmentParametersTrack',
|
||||||
|
meta: { title: routerTitle.order.infoTrack.equipmentParametersTrack?.[language] || routerTitle.order.infoTrack.equipmentParametersTrack.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'processSubstrateDataTrack',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/infoTrack/processSubstrateDataTrack'),
|
||||||
|
name: 'processSubstrateDataTrack',
|
||||||
|
meta: { title: routerTitle.order.infoTrack.processSubstrateDataTrack?.[language] || routerTitle.order.infoTrack.processSubstrateDataTrack.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'substrateParametersTrack',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/infoTrack/substrateParametersTrack'),
|
||||||
|
name: 'substrateParametersTrack',
|
||||||
|
meta: { title: routerTitle.order.infoTrack.substrateParametersTrack?.[language] || routerTitle.order.infoTrack.substrateParametersTrack.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'equipmentEventTrack',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/infoTrack/equipmentEventTrack'),
|
||||||
|
name: 'equipmentEventTrack',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.order.infoTrack.equipmentEventTrack?.[language] || routerTitle.order.infoTrack.equipmentEventTrack.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'substrateEquipment',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/infoTrack/substrateEquipment'),
|
||||||
|
name: 'substrateEquipment',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.order.infoTrack.substrateEquipment?.[language] || routerTitle.order.infoTrack.substrateEquipment.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/substrate',
|
||||||
|
component: () => import('@/views/orderManage/index'),
|
||||||
|
name: 'substrate',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.order.substrate?.[language] || routerTitle.order.substrate.en, icon: 'form', affix: true, required: true, requireToken: true },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'substrateBatch',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/substrateBatch'),
|
||||||
|
name: 'substrateBatch',
|
||||||
|
meta: { title: routerTitle.order.substrate.substrateBatch?.[language] || routerTitle.order.substrate.substrateBatch.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'substrateBatchAttr',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/components/substrateBatchAttr'),
|
||||||
|
name: 'substrateBatchAttr',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.order.substrate.substrateBatchAttr?.[language] || routerTitle.order.substrate.substrateBatchAttr.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/consumption',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/consumption/consumption'),
|
||||||
|
name: 'consumption',
|
||||||
|
meta: { title: routerTitle.order.consumption?.[language] || routerTitle.order.consumption.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/powerList',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/orderManage/consumption/list'),
|
||||||
|
name: 'powerList',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: routerTitle.order.details?.[language] || routerTitle.order.details.en, icon: 'form', affix: true, required: true, requireToken: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// path: '/form',
|
|
||||||
// component: Layout,
|
|
||||||
// redirect: '/form',
|
|
||||||
// name: 'formManage',
|
|
||||||
// meta: { title: routerTitle.form?.[language] || routerTitle.form.en, icon: 'form', iconPart: 'formManage', affix: true, required: true, requireToken: true, unuse: false },
|
|
||||||
// children: [{
|
|
||||||
// path: 'report',
|
|
||||||
// component: () => import('@/views/report-manage/ReportSortChoise'),
|
|
||||||
// name: 'Report',
|
|
||||||
// meta: { title: routerTitle.form.report?.[language] || routerTitle.form.report.en, icon: 'form', affix: true, required: true, requireToken: true }
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: 'report-sort-list',
|
|
||||||
// component: () => import('@/views/report-manage/Report'),
|
|
||||||
// name: 'ReportSortList',
|
|
||||||
// hidden: true,
|
|
||||||
// meta: { title: routerTitle.form.reportSortList?.[language] || routerTitle.form.reportSortList.en, icon: 'form', affix: true, required: true, requireToken: true }
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: 'report-view',
|
|
||||||
// component: () => import('@/views/report-manage/ReportView'),
|
|
||||||
// name: 'ReportDesign',
|
|
||||||
// meta: { title: routerTitle.form.reportView?.[language] || routerTitle.form.reportView.en, icon: 'form', affix: true, required: true, requireToken: true },
|
|
||||||
// hidden: true
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: 'report-design',
|
|
||||||
// component: () => import('@/views/report-manage/ReportDesign'),
|
|
||||||
// name: 'ReportDesign',
|
|
||||||
// meta: { title: routerTitle.form.reportDesign?.[language] || routerTitle.form.reportDesign.en, icon: 'form', affix: true, required: true, requireToken: true }
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: 'report-sort',
|
|
||||||
// component: () => import('@/views/report-manage/ReportSort/index'),
|
|
||||||
// name: 'ReportSort',
|
|
||||||
// meta: { title: routerTitle.form.reportSort?.[language] || routerTitle.form.reportSort.en, icon: 'form', affix: true, required: true, requireToken: true }
|
|
||||||
// }]
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
path: '/interface',
|
path: '/interface',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/interface',
|
redirect: '/interface',
|
||||||
@ -285,7 +524,6 @@ export const constantRoutes = [
|
|||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/quality',
|
redirect: '/quality',
|
||||||
name: 'qualityManage',
|
name: 'qualityManage',
|
||||||
hidden: true,
|
|
||||||
meta: { title: routerTitle.quality?.[language] || routerTitle.quality.en, icon: 'form', iconPart: 'qualityManage', affix: true, required: true, requireToken: true },
|
meta: { title: routerTitle.quality?.[language] || routerTitle.quality.en, icon: 'form', iconPart: 'qualityManage', affix: true, required: true, requireToken: true },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
@ -382,7 +620,6 @@ export const constantRoutes = [
|
|||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/user/manager',
|
redirect: '/user/manager',
|
||||||
name: 'ArticleManager',
|
name: 'ArticleManager',
|
||||||
hidden: true,
|
|
||||||
meta: { title: routerTitle.basic?.[language] || routerTitle.basic.en, icon: 'form', iconPart: 'ArticleManager', affix: true, required: true, requireToken: true },
|
meta: { title: routerTitle.basic?.[language] || routerTitle.basic.en, icon: 'form', iconPart: 'ArticleManager', affix: true, required: true, requireToken: true },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 15:41:11
|
* @Date: 2020-12-29 15:41:11
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-11 15:48:58
|
* @LastEditTime: 2021-03-25 16:09:59
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -44,7 +44,6 @@ import BaseTable from '@/components/BaseTable'
|
|||||||
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
|
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
|
||||||
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
||||||
import { timeFormatter } from '@/filters'
|
import { timeFormatter } from '@/filters'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表格表头配置项 TypeScript接口注释
|
* 表格表头配置项 TypeScript接口注释
|
||||||
* tableConfig<ConfigItem> = []
|
* tableConfig<ConfigItem> = []
|
||||||
@ -83,7 +82,7 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'tareaName',
|
prop: 'name',
|
||||||
label: i18n.t('module.basicData.cache.CacheName'),
|
label: i18n.t('module.basicData.cache.CacheName'),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
@ -134,7 +133,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleClick(raw) {
|
handleClick(raw) {
|
||||||
if (raw.type === 'delete') {
|
if (raw.type === 'delete') {
|
||||||
this.$confirm(`${this.$t('module.basicData.visual.TipsBefore')}[${raw.data.tareaName}]?`, this.$t('module.basicData.visual.Tips'), {
|
this.$confirm(`${this.$t('module.basicData.visual.TipsBefore')}[${raw.data.name}]?`, this.$t('module.basicData.visual.Tips'), {
|
||||||
confirmButtonText: this.$t('module.basicData.visual.confirmButtonText'),
|
confirmButtonText: this.$t('module.basicData.visual.confirmButtonText'),
|
||||||
cancelButtonText: this.$t('module.basicData.visual.cancelButtonText'),
|
cancelButtonText: this.$t('module.basicData.visual.cancelButtonText'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 16:37:56
|
* @Date: 2020-12-29 16:37:56
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-11 16:26:29
|
* @LastEditTime: 2021-04-28 10:07:44
|
||||||
* @enName:
|
* @enName:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -16,8 +16,8 @@
|
|||||||
label-width="140px"
|
label-width="140px"
|
||||||
>
|
>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item :label="$t('module.basicData.cache.CacheName')" prop="tareaName">
|
<el-form-item :label="$t('module.basicData.cache.CacheName')" prop="name">
|
||||||
<el-input v-model="dataForm.tareaName" :disabled="isdetail" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.cache.CacheName')])" clearable :style="{width: '100%'}" />
|
<el-input v-model="dataForm.name" :disabled="isdetail" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.cache.CacheName')])" clearable :style="{width: '100%'}" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
@ -36,14 +36,64 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item :label="$t('module.basicData.visual.Specs')" prop="spec">
|
<el-form-item :label="$t('module.basicData.visual.Manufacturer')" prop="manufacturer">
|
||||||
<el-input v-model="dataForm.spec" :disabled="isdetail" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.Specs')])" clearable :style="{width: '100%'}" />
|
<el-input
|
||||||
|
v-model="dataForm.manufacturer"
|
||||||
|
:disabled="isdetail"
|
||||||
|
:placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.Manufacturer')])"
|
||||||
|
clearable
|
||||||
|
:style="{width: '100%'}"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item :label="$t('module.basicData.visual.CurrentState')" prop="status">
|
<el-form-item :label="$t('module.basicData.visual.Specs')" prop="description">
|
||||||
|
<el-input v-model="dataForm.description" :disabled="isdetail" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.Specs')])" clearable :style="{width: '100%'}" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item :label="$t('module.basicData.visual.productionTime')" prop="productionTime">
|
||||||
|
<el-date-picker
|
||||||
|
v-model="dataForm.productionTime"
|
||||||
|
:disabled="isdetail"
|
||||||
|
format="yyyy-MM-dd"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
:style="{width: '100%'}"
|
||||||
|
:placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.productionTime')])"
|
||||||
|
clearable
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item :label="$t('module.basicData.visual.enterTime')" prop="enterTime">
|
||||||
|
<el-date-picker
|
||||||
|
v-model="dataForm.enterTime"
|
||||||
|
:disabled="isdetail"
|
||||||
|
format="yyyy-MM-dd"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
:style="{width: '100%'}"
|
||||||
|
:placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.enterTime')])"
|
||||||
|
clearable
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item :label="$t('module.basicData.visual.debugTime')" prop="debugTime">
|
||||||
|
<el-date-picker
|
||||||
|
v-model="dataForm.debugTime"
|
||||||
|
:disabled="isdetail"
|
||||||
|
format="yyyy-MM-dd"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
:style="{width: '100%'}"
|
||||||
|
:placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.debugTime')])"
|
||||||
|
clearable
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item :label="$t('module.basicData.visual.CurrentState')" prop="currentStatus">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="dataForm.status"
|
v-model="dataForm.currentStatus"
|
||||||
:disabled="isdetail"
|
:disabled="isdetail"
|
||||||
:placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.CurrentState')])"
|
:placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.CurrentState')])"
|
||||||
clearable
|
clearable
|
||||||
@ -60,18 +110,18 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item :label="$t('module.basicData.cache.StockNumber')" prop="locationNum">
|
<el-form-item :label="$t('module.basicData.cache.StockNumber')" prop="stockNumber">
|
||||||
<el-input-number v-model="dataForm.locationNum" :disabled="isdetail" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.cache.StockNumber')])" :step="1" />
|
<el-input-number v-model="dataForm.stockNumber" :disabled="isdetail" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.cache.StockNumber')])" :step="1" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item :label="$t('module.basicData.cache.AreaNumber')" prop="shelfNum">
|
<el-form-item :label="$t('module.basicData.cache.AreaNumber')" prop="areaNumber">
|
||||||
<el-input-number v-model="dataForm.shelfNum" :disabled="isdetail" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.cache.AreaNumber')])" :step="1" />
|
<el-input-number v-model="dataForm.areaNumber" :disabled="isdetail" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.cache.AreaNumber')])" :step="1" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item :label="$t('module.basicData.visual.Remarks')" prop="note">
|
<el-form-item :label="$t('module.basicData.visual.Remarks')" prop="remark">
|
||||||
<el-input v-model="dataForm.note" :disabled="isdetail" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.Remarks')])" clearable :style="{width: '100%'}" />
|
<el-input v-model="dataForm.remark" :disabled="isdetail" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.Remarks')])" clearable :style="{width: '100%'}" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -80,7 +130,7 @@
|
|||||||
<el-button type="success" @click="goback()">{{ 'btn.back' | i18nFilter }}</el-button>
|
<el-button type="success" @click="goback()">{{ 'btn.back' | i18nFilter }}</el-button>
|
||||||
<span v-if="!isdetail">
|
<span v-if="!isdetail">
|
||||||
<el-button type="primary" @click="dataFormSubmit()">{{ 'btn.save' | i18nFilter }}</el-button>
|
<el-button type="primary" @click="dataFormSubmit()">{{ 'btn.save' | i18nFilter }}</el-button>
|
||||||
<el-button v-if="listQuery.id" type="primary" @click="addNew()">{{ $t('module.basicData.cache.addCacheArea') }}</el-button>
|
<el-button v-if="listQuery.cacheId" type="primary" @click="addNew()">{{ $t('module.basicData.cache.addCacheArea') }}</el-button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="height:380px;overflow:auto">
|
<div style="height:380px;overflow:auto">
|
||||||
@ -98,7 +148,7 @@
|
|||||||
/>
|
/>
|
||||||
</base-table>
|
</base-table>
|
||||||
</div>
|
</div>
|
||||||
<cacheArea-add v-if="addOrUpdateVisible" ref="addOrUpdate" :cache-id="listQuery.id" @refreshDataList="getList" />
|
<cacheArea-add v-if="addOrUpdateVisible" ref="addOrUpdate" :cache-id="listQuery.cacheId" @refreshDataList="getList" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -109,6 +159,7 @@ import BaseTable from '@/components/BaseTable'
|
|||||||
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
||||||
import cacheAreaAdd from './cacheArea-add.vue'
|
import cacheAreaAdd from './cacheArea-add.vue'
|
||||||
import shelfBtn from './shelfBtn.vue'
|
import shelfBtn from './shelfBtn.vue'
|
||||||
|
import { timeFormatter } from '@/filters'
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
{
|
{
|
||||||
type: 'edit',
|
type: 'edit',
|
||||||
@ -120,6 +171,12 @@ const tableBtn = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
|
{
|
||||||
|
prop: 'createTime',
|
||||||
|
label: i18n.t('module.basicData.factory.createTime'),
|
||||||
|
filter: timeFormatter,
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
label: i18n.t('module.basicData.cache.AreaName'),
|
label: i18n.t('module.basicData.cache.AreaName'),
|
||||||
@ -131,23 +188,13 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'shelfNum',
|
prop: 'areaNumber',
|
||||||
label: i18n.t('module.basicData.cache.StorageQuantity'),
|
label: i18n.t('module.basicData.cache.StorageQuantity'),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
prop: 'rowNum',
|
|
||||||
label: i18n.t('module.basicData.cache.rowNum'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'columnNum',
|
|
||||||
label: i18n.t('module.basicData.cache.columnNum'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
prop: 'shelf',
|
prop: 'shelf',
|
||||||
label: i18n.t('module.basicData.cache.Location'),
|
label: i18n.t('module.basicData.cache.Shelf'),
|
||||||
subcomponent: shelfBtn,
|
subcomponent: shelfBtn,
|
||||||
align: 'center'
|
align: 'center'
|
||||||
}
|
}
|
||||||
@ -163,23 +210,27 @@ export default {
|
|||||||
tableProps,
|
tableProps,
|
||||||
list: [],
|
list: [],
|
||||||
dataForm: {
|
dataForm: {
|
||||||
tareaName: '',
|
name: '',
|
||||||
code: '',
|
code: '',
|
||||||
enName: '',
|
enName: '',
|
||||||
abbr: '',
|
abbr: '',
|
||||||
spec: '',
|
manufacturer: '',
|
||||||
status: '',
|
description: '',
|
||||||
locationNum: '',
|
productionTime: '',
|
||||||
shelfNum: '',
|
enterTime: '',
|
||||||
note: ''
|
debugTime: '',
|
||||||
|
currentStatus: '',
|
||||||
|
stockNumber: '',
|
||||||
|
areaNumber: '',
|
||||||
|
remark: ''
|
||||||
},
|
},
|
||||||
listQuery: {
|
listQuery: {
|
||||||
current: 1,
|
current: 1,
|
||||||
size: 990,
|
size: 990,
|
||||||
id: ''
|
cacheId: ''
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
tareaName: [{
|
name: [{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$i18nForm(['placeholder.input', this.$t('module.basicData.cache.CacheName')]),
|
message: this.$i18nForm(['placeholder.input', this.$t('module.basicData.cache.CacheName')]),
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
@ -192,35 +243,35 @@ export default {
|
|||||||
},
|
},
|
||||||
currentStatusOptions: [{
|
currentStatusOptions: [{
|
||||||
'label': '正常',
|
'label': '正常',
|
||||||
'value': 0
|
'value': '0'
|
||||||
}, {
|
}, {
|
||||||
'label': '暂停',
|
'label': '暂停',
|
||||||
'value': 1
|
'value': '1'
|
||||||
}, {
|
}, {
|
||||||
'label': '维修',
|
'label': '维修',
|
||||||
'value': 2
|
'value': '2'
|
||||||
}],
|
}],
|
||||||
id: '', // 缓存区id
|
cacheId: '',
|
||||||
isdetail: false
|
isdetail: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.id = this.$route.query.id
|
this.cacheId = this.$route.query.id
|
||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init() {
|
init() {
|
||||||
this.isdetail = false
|
this.isdetail = false
|
||||||
this.isdetail = Boolean(this.$route.query.isdetail)
|
this.isdetail = Boolean(this.$route.query.isdetail)
|
||||||
this.listQuery.id = ''
|
this.listQuery.cacheId = ''
|
||||||
this.list.splice(0, this.list.length)
|
this.list.splice(0, this.list.length)
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['dataForm'].resetFields()
|
this.$refs['dataForm'].resetFields()
|
||||||
if (this.id) {
|
if (this.cacheId) {
|
||||||
cacheDetail(this.id).then(res => {
|
cacheDetail(this.cacheId).then(res => {
|
||||||
this.dataForm = res.data
|
this.dataForm = res.data
|
||||||
})
|
})
|
||||||
this.listQuery.id = this.id
|
this.listQuery.cacheId = this.cacheId
|
||||||
areaList(this.listQuery).then(response => {
|
areaList(this.listQuery).then(response => {
|
||||||
if (response.data.records) {
|
if (response.data.records) {
|
||||||
this.list = response.data.records
|
this.list = response.data.records
|
||||||
@ -271,16 +322,20 @@ export default {
|
|||||||
const data = {
|
const data = {
|
||||||
'abbr': this.dataForm.abbr,
|
'abbr': this.dataForm.abbr,
|
||||||
'code': this.dataForm.code,
|
'code': this.dataForm.code,
|
||||||
'status': this.dataForm.status,
|
'currentStatus': this.dataForm.currentStatus,
|
||||||
|
'debugTime': this.dataForm.debugTime,
|
||||||
'enName': this.dataForm.enName,
|
'enName': this.dataForm.enName,
|
||||||
'tareaName': this.dataForm.tareaName,
|
'enterTime': this.dataForm.enterTime,
|
||||||
'note': this.dataForm.note,
|
'manufacturer': this.dataForm.manufacturer,
|
||||||
'spec': this.dataForm.spec,
|
'name': this.dataForm.name,
|
||||||
'locationNum': this.dataForm.locationNum,
|
'productionTime': this.dataForm.productionTime,
|
||||||
'shelfNum': this.dataForm.shelfNum,
|
'remark': this.dataForm.remark,
|
||||||
'id': this.id
|
'description': this.dataForm.description,
|
||||||
|
'stockNumber': this.dataForm.stockNumber,
|
||||||
|
'areaNumber': this.dataForm.areaNumber,
|
||||||
|
'id': this.cacheId
|
||||||
}
|
}
|
||||||
if (this.id) {
|
if (this.cacheId) {
|
||||||
cacheUpdate(data).then(res => {
|
cacheUpdate(data).then(res => {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: this.$t('module.basicData.visual.success'),
|
message: this.$t('module.basicData.visual.success'),
|
||||||
@ -295,7 +350,7 @@ export default {
|
|||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500
|
duration: 1500
|
||||||
})
|
})
|
||||||
this.listQuery.id = res.data.id
|
this.listQuery.cacheId = res.data.id
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 16:37:56
|
* @Date: 2020-12-29 16:37:56
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-11 16:45:30
|
* @LastEditTime: 2021-07-21 13:59:43
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -11,14 +11,17 @@
|
|||||||
:visible.sync="visible"
|
:visible.sync="visible"
|
||||||
>
|
>
|
||||||
<el-form ref="dataForm" :model="dataForm" :rules="dataRule" label-width="130px" @keyup.enter.native="dataFormSubmit()">
|
<el-form ref="dataForm" :model="dataForm" :rules="dataRule" label-width="130px" @keyup.enter.native="dataFormSubmit()">
|
||||||
<el-form-item :label="$t('module.basicData.storageBox.name')" prop="storageBoxName">
|
<el-form-item :label="$t('module.basicData.storageBox.name')" prop="name">
|
||||||
<el-input v-model="dataForm.storageBoxName" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.storageBox.name')])" clearable />
|
<el-input v-model="dataForm.name" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.storageBox.name')])" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('module.basicData.storageBox.code')" prop="code">
|
<el-form-item :label="$t('module.basicData.storageBox.code')" prop="code">
|
||||||
<el-input v-model="dataForm.code" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.storageBox.code')])" clearable />
|
<el-input v-model="dataForm.code" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.storageBox.code')])" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('module.basicData.visual.EnglishName')" prop="enName">
|
<el-form-item :label="$t('module.basicData.storageBox.StorageQuantity')" prop="quantity">
|
||||||
<el-input v-model="dataForm.enName" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.EnglishName')])" clearable />
|
<el-input-number v-model="dataForm.quantity" :min="0" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.storageBox.StorageQuantity')])" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('module.basicData.storageBox.alias')" prop="aliasName">
|
||||||
|
<el-input v-model="dataForm.aliasName" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.storageBox.alias')])" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('module.basicData.storageBox.status')" prop="status">
|
<el-form-item :label="$t('module.basicData.storageBox.status')" prop="status">
|
||||||
<el-select v-model="dataForm.status" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.storageBox.status')])" clearable>
|
<el-select v-model="dataForm.status" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.storageBox.status')])" clearable>
|
||||||
@ -30,8 +33,8 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('module.basicData.visual.Remarks')" prop="note">
|
<el-form-item :label="$t('module.basicData.visual.Remarks')" prop="remark">
|
||||||
<el-input v-model="dataForm.note" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.Remarks')])" clearable />
|
<el-input v-model="dataForm.remark" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.Remarks')])" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
@ -50,11 +53,12 @@ export default {
|
|||||||
visible: false,
|
visible: false,
|
||||||
dataForm: {
|
dataForm: {
|
||||||
id: 0,
|
id: 0,
|
||||||
storageBoxName: '',
|
name: '',
|
||||||
code: '',
|
code: '',
|
||||||
status: 0,
|
status: 0,
|
||||||
enName: '',
|
aliasName: '',
|
||||||
note: ''
|
quantity: 0,
|
||||||
|
remark: ''
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
@ -71,7 +75,7 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
dataRule: {
|
dataRule: {
|
||||||
storageBoxName: [
|
name: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$i18nForm(['placeholder.input', this.$t('module.basicData.storageBox.name')]),
|
message: this.$i18nForm(['placeholder.input', this.$t('module.basicData.storageBox.name')]),
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2020-12-29 15:41:11
|
* @Date: 2020-12-29 15:41:11
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-01-11 16:46:48
|
* @LastEditTime: 2021-07-21 14:00:56
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -41,6 +41,7 @@
|
|||||||
<script>import i18n from '@/lang'
|
<script>import i18n from '@/lang'
|
||||||
import HeadForm from '@/components/basicData/HeadForm'
|
import HeadForm from '@/components/basicData/HeadForm'
|
||||||
import BaseTable from '@/components/BaseTable'
|
import BaseTable from '@/components/BaseTable'
|
||||||
|
import PositionDetail from './components/PositionDetail'
|
||||||
import storageBoxAdd from './components/storageBox-add'
|
import storageBoxAdd from './components/storageBox-add'
|
||||||
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
|
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
|
||||||
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
||||||
@ -81,7 +82,7 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'storageBoxName',
|
prop: 'name',
|
||||||
label: i18n.t('module.basicData.storageBox.name'),
|
label: i18n.t('module.basicData.storageBox.name'),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
@ -91,8 +92,13 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'enName',
|
prop: 'aliasName',
|
||||||
label: i18n.t('module.basicData.visual.EnglishName'),
|
label: i18n.t('module.basicData.storageBox.alias'),
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'quantity',
|
||||||
|
label: i18n.t('module.basicData.storageBox.StorageQuantity'),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -102,9 +108,15 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'note',
|
prop: 'remark',
|
||||||
label: i18n.t('module.basicData.storageBox.remark'),
|
label: i18n.t('module.basicData.storageBox.remark'),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'location',
|
||||||
|
label: i18n.t('module.basicData.cache.Location'),
|
||||||
|
subcomponent: PositionDetail,
|
||||||
|
align: 'center'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -145,7 +157,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleClick(raw) {
|
handleClick(raw) {
|
||||||
if (raw.type === 'delete') {
|
if (raw.type === 'delete') {
|
||||||
this.$confirm(`${this.$t('module.basicData.visual.TipsBefore')}[${raw.data.storageBoxName}]?`, this.$t('module.basicData.visual.Tips'), {
|
this.$confirm(`${this.$t('module.basicData.visual.TipsBefore')}[${raw.data.name}]?`, this.$t('module.basicData.visual.Tips'), {
|
||||||
confirmButtonText: this.$t('module.basicData.visual.confirmButtonText'),
|
confirmButtonText: this.$t('module.basicData.visual.confirmButtonText'),
|
||||||
cancelButtonText: this.$t('module.basicData.visual.cancelButtonText'),
|
cancelButtonText: this.$t('module.basicData.visual.cancelButtonText'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@ -169,7 +181,8 @@ export default {
|
|||||||
},
|
},
|
||||||
getList(key) {
|
getList(key) {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
this.listQuery.storageBoxName = key
|
this.listQuery.name = key
|
||||||
|
this.listQuery.code = key
|
||||||
storageBoxList(this.listQuery).then(response => {
|
storageBoxList(this.listQuery).then(response => {
|
||||||
if (response.data.records) {
|
if (response.data.records) {
|
||||||
this.list = response.data.records
|
this.list = response.data.records
|
||||||
|
@ -1,254 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 15:41:11
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-14 15:54:12
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<div class="app-container">
|
|
||||||
<el-form
|
|
||||||
ref="formData"
|
|
||||||
:model="formData"
|
|
||||||
:inline="true"
|
|
||||||
size="medium"
|
|
||||||
label-width="100px"
|
|
||||||
>
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskType')" prop="taskType">
|
|
||||||
<el-select v-model="formData.taskType" filterable :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.Warehouse.TaskType')])" clearable>
|
|
||||||
<el-option
|
|
||||||
v-for="item in taskTypeList"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskStatus')" prop="status">
|
|
||||||
<el-select v-model="formData.status" filterable :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.Warehouse.TaskStatus')])" clearable>
|
|
||||||
<el-option
|
|
||||||
v-for="item in TaskStatusList"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.VehicleName')" prop="equipmentId">
|
|
||||||
<el-select v-model="formData.equipmentId" filterable :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.Warehouse.VehicleName')])" clearable>
|
|
||||||
<el-option
|
|
||||||
v-for="item in VehicleNameList"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button type="primary" @click="getList()"> {{ 'btn.search' | i18nFilter }} </el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<base-table
|
|
||||||
:page="formData.current"
|
|
||||||
:limit="formData.size"
|
|
||||||
:table-config="tableProps"
|
|
||||||
:table-data="list"
|
|
||||||
:is-loading="listLoading"
|
|
||||||
>
|
|
||||||
<method-btn
|
|
||||||
slot="handleBtn"
|
|
||||||
:width="trueWidth"
|
|
||||||
:method-list="tableBtn"
|
|
||||||
@clickBtn="handleClick"
|
|
||||||
/>
|
|
||||||
</base-table>
|
|
||||||
<pagination
|
|
||||||
v-show="total > 0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="formData.current"
|
|
||||||
:limit.sync="formData.size"
|
|
||||||
@pagination="getList()"
|
|
||||||
/>
|
|
||||||
<current-task-info v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getList" />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { CurrentTaskList } from '@/api/basicData/Warehouse/HistoricalTask'
|
|
||||||
import CurrentTaskInfo from './components/CurrentTaskInfo.vue'
|
|
||||||
import i18n from '@/lang'
|
|
||||||
import BaseTable from '@/components/BaseTable'
|
|
||||||
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
|
|
||||||
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
|
||||||
// import { timeFormatter } from '@/filters'
|
|
||||||
/**
|
|
||||||
* 表格表头配置项 TypeScript接口注释
|
|
||||||
* tableConfig<ConfigItem> = []
|
|
||||||
*
|
|
||||||
* Interface ConfigItem = {
|
|
||||||
* prop: string,
|
|
||||||
* label: string,
|
|
||||||
* width: string,
|
|
||||||
* align: string,
|
|
||||||
* subcomponent: function,
|
|
||||||
* filter: function
|
|
||||||
* }
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
const tableBtn = [
|
|
||||||
{
|
|
||||||
type: 'view',
|
|
||||||
btnName: 'btn.see'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
const tableProps = [
|
|
||||||
{
|
|
||||||
prop: 'taskCode',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.Code'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'createTime',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.ExecutionTime'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'taskSource',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.TaskSource'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'taskType',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.TaskType'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'fullCode',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.TaskBoxNumber'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'emptyCode',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.FullBoxNumber'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'wcurrProcessCode',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.PreviousOperation'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'wnextProcessCode',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.NextOperation'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'anotherCurrLocation',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.StartLocation'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'anotherTargetLocation',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.TargetLocation'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'currLocation',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.FullBoxStartLocation'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'name',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.VehicleName'),
|
|
||||||
align: 'center'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'ScrapInfo',
|
|
||||||
components: { Pagination, BaseTable, MethodBtn, CurrentTaskInfo },
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
trueWidth: 100,
|
|
||||||
addOrUpdateVisible: false,
|
|
||||||
tableProps,
|
|
||||||
tableBtn,
|
|
||||||
list: [],
|
|
||||||
total: 0,
|
|
||||||
listLoading: false,
|
|
||||||
formData: {
|
|
||||||
taskType: '',
|
|
||||||
status: '',
|
|
||||||
equipmentId: '',
|
|
||||||
current: 1,
|
|
||||||
size: 10
|
|
||||||
},
|
|
||||||
taskTypeList: [{
|
|
||||||
'label': '出库',
|
|
||||||
'value': 0
|
|
||||||
}, {
|
|
||||||
'label': '入库',
|
|
||||||
'value': 1
|
|
||||||
}, {
|
|
||||||
'label': '流转',
|
|
||||||
'value': 2
|
|
||||||
}],
|
|
||||||
TaskStatusList: [{
|
|
||||||
'label': '初始化',
|
|
||||||
'value': 0
|
|
||||||
}, {
|
|
||||||
'label': '损坏',
|
|
||||||
'value': 1
|
|
||||||
}],
|
|
||||||
VehicleNameList: [{
|
|
||||||
'label': '小车1',
|
|
||||||
'value': 0
|
|
||||||
}, {
|
|
||||||
'label': '小车2',
|
|
||||||
'value': 1
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getList()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
getList() {
|
|
||||||
this.listLoading = true
|
|
||||||
CurrentTaskList(this.formData).then(response => {
|
|
||||||
if (response.data.records) {
|
|
||||||
this.list = response.data.records
|
|
||||||
} else {
|
|
||||||
this.list.splice(0, this.list.length)
|
|
||||||
}
|
|
||||||
this.total = response.data.total
|
|
||||||
this.listLoading = false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleClick(raw) {
|
|
||||||
console.log(raw)
|
|
||||||
this.addNew(raw.data.id)
|
|
||||||
},
|
|
||||||
// 新增 / 修改
|
|
||||||
addNew(id) {
|
|
||||||
this.addOrUpdateVisible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.addOrUpdate.init(id)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.edit-input {
|
|
||||||
padding-right: 100px;
|
|
||||||
}
|
|
||||||
.cancel-btn {
|
|
||||||
position: absolute;
|
|
||||||
right: 15px;
|
|
||||||
top: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,276 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 15:41:11
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-13 15:49:01
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<div class="app-container">
|
|
||||||
<el-form
|
|
||||||
ref="formData"
|
|
||||||
:model="formData"
|
|
||||||
:inline="true"
|
|
||||||
size="medium"
|
|
||||||
label-width="100px"
|
|
||||||
>
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskType')" prop="taskType">
|
|
||||||
<el-select v-model="formData.taskType" filterable :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.Warehouse.TaskType')])" clearable>
|
|
||||||
<el-option
|
|
||||||
v-for="item in taskTypeList"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskStatus')" prop="status">
|
|
||||||
<el-select v-model="formData.status" filterable :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.Warehouse.TaskStatus')])" clearable>
|
|
||||||
<el-option
|
|
||||||
v-for="item in TaskStatusList"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.VehicleName')" prop="equipmentId">
|
|
||||||
<el-select v-model="formData.equipmentId" filterable :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.Warehouse.VehicleName')])" clearable>
|
|
||||||
<el-option
|
|
||||||
v-for="item in VehicleNameList"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TimeSlot')" prop="time">
|
|
||||||
<el-date-picker
|
|
||||||
v-model="formData.timeSlot"
|
|
||||||
type="daterange"
|
|
||||||
format="yyyy-MM-dd"
|
|
||||||
value-format="yyyy-MM-dd"
|
|
||||||
:start-placeholder="$t('module.orderManage.order.StartTime')"
|
|
||||||
:end-placeholder="$t('module.orderManage.order.StartTime')"
|
|
||||||
:range-separator="$t('module.orderManage.order.To')"
|
|
||||||
clearable
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button type="primary" @click="getList()"> {{ 'btn.search' | i18nFilter }} </el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<base-table
|
|
||||||
:page="formData.current"
|
|
||||||
:limit="formData.size"
|
|
||||||
:table-config="tableProps"
|
|
||||||
:table-data="list"
|
|
||||||
:is-loading="listLoading"
|
|
||||||
>
|
|
||||||
<method-btn
|
|
||||||
slot="handleBtn"
|
|
||||||
:width="trueWidth"
|
|
||||||
:method-list="tableBtn"
|
|
||||||
@clickBtn="handleClick"
|
|
||||||
/>
|
|
||||||
</base-table>
|
|
||||||
<pagination
|
|
||||||
v-show="total > 0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="formData.current"
|
|
||||||
:limit.sync="formData.size"
|
|
||||||
@pagination="getList()"
|
|
||||||
/>
|
|
||||||
<historical-task-info v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getList" />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { HistoricalTaskList } from '@/api/basicData/Warehouse/HistoricalTask'
|
|
||||||
import HistoricalTaskInfo from './components/HistoricalTaskInfo.vue'
|
|
||||||
import i18n from '@/lang'
|
|
||||||
import BaseTable from '@/components/BaseTable'
|
|
||||||
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
|
|
||||||
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
|
||||||
// import { timeFormatter } from '@/filters'
|
|
||||||
/**
|
|
||||||
* 表格表头配置项 TypeScript接口注释
|
|
||||||
* tableConfig<ConfigItem> = []
|
|
||||||
*
|
|
||||||
* Interface ConfigItem = {
|
|
||||||
* prop: string,
|
|
||||||
* label: string,
|
|
||||||
* width: string,
|
|
||||||
* align: string,
|
|
||||||
* subcomponent: function,
|
|
||||||
* filter: function
|
|
||||||
* }
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
const tableBtn = [
|
|
||||||
{
|
|
||||||
type: 'view',
|
|
||||||
btnName: 'btn.see'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
const tableProps = [
|
|
||||||
{
|
|
||||||
prop: 'taskCode',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.Code'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'createTime',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.ExecutionTime'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'status',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.TaskStatus'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
// {
|
|
||||||
// prop: 'taskType',
|
|
||||||
// label: i18n.t('module.basicData.Warehouse.TaskType'),
|
|
||||||
// align: 'center'
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
prop: 'name',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.VehicleName'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
// {
|
|
||||||
// prop: 'substrateNo',
|
|
||||||
// label: i18n.t('module.basicData.Warehouse.BoxStatus'),
|
|
||||||
// align: 'center'
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
prop: 'wcode',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.BoxNumber'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'wcurrProcessCode',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.PreviousOperation'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'wnextProcessCode',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.NextOperation'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'updateTime',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.CompletionTime'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'currLocation',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.StartLocation'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'targetLocation',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.TargetLocation'),
|
|
||||||
align: 'center'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'ScrapInfo',
|
|
||||||
components: { Pagination, BaseTable, MethodBtn, HistoricalTaskInfo },
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
trueWidth: 100,
|
|
||||||
addOrUpdateVisible: false,
|
|
||||||
tableProps,
|
|
||||||
tableBtn,
|
|
||||||
list: [],
|
|
||||||
total: 0,
|
|
||||||
listLoading: false,
|
|
||||||
formData: {
|
|
||||||
taskType: '',
|
|
||||||
status: '',
|
|
||||||
equipmentId: '',
|
|
||||||
timeSlot: [],
|
|
||||||
endTime: '',
|
|
||||||
startTime: '',
|
|
||||||
current: 1,
|
|
||||||
size: 10
|
|
||||||
},
|
|
||||||
taskTypeList: [{
|
|
||||||
'label': '出库',
|
|
||||||
'value': 0
|
|
||||||
}, {
|
|
||||||
'label': '入库',
|
|
||||||
'value': 1
|
|
||||||
}, {
|
|
||||||
'label': '流转',
|
|
||||||
'value': 2
|
|
||||||
}],
|
|
||||||
TaskStatusList: [{
|
|
||||||
'label': '初始化',
|
|
||||||
'value': 0
|
|
||||||
}, {
|
|
||||||
'label': '损坏',
|
|
||||||
'value': 1
|
|
||||||
}],
|
|
||||||
VehicleNameList: [{
|
|
||||||
'label': '小车1',
|
|
||||||
'value': 0
|
|
||||||
}, {
|
|
||||||
'label': '小车2',
|
|
||||||
'value': 1
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getList()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
getList() {
|
|
||||||
if (this.formData.timeSlot) {
|
|
||||||
this.formData.startTime = this.formData.timeSlot[0]
|
|
||||||
this.formData.endTime = this.formData.timeSlot[1]
|
|
||||||
} else {
|
|
||||||
this.formData.startTime = ''
|
|
||||||
this.formData.endTime = ''
|
|
||||||
}
|
|
||||||
this.listLoading = true
|
|
||||||
HistoricalTaskList(this.formData).then(response => {
|
|
||||||
if (response.data.records) {
|
|
||||||
this.list = response.data.records
|
|
||||||
} else {
|
|
||||||
this.list.splice(0, this.list.length)
|
|
||||||
}
|
|
||||||
this.total = response.data.total
|
|
||||||
this.listLoading = false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleClick(raw) {
|
|
||||||
console.log(raw)
|
|
||||||
this.addNew(raw.data.id)
|
|
||||||
},
|
|
||||||
// 新增 / 修改
|
|
||||||
addNew(id) {
|
|
||||||
this.addOrUpdateVisible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.addOrUpdate.init(id)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.edit-input {
|
|
||||||
padding-right: 100px;
|
|
||||||
}
|
|
||||||
.cancel-btn {
|
|
||||||
position: absolute;
|
|
||||||
right: 15px;
|
|
||||||
top: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,160 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 15:41:11
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-18 14:30:25
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<div class="app-container">
|
|
||||||
<el-form ref="listQuery" :model="listQuery" :inline="true" label-width="120px" @keyup.enter.native="getList()">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.StorageBoxNumber')" prop="code">
|
|
||||||
<el-select
|
|
||||||
v-model="listQuery.code"
|
|
||||||
:placeholder="$i18nForm(['placeholder.input', $t('module.basicData.Warehouse.StorageBoxNumber')])"
|
|
||||||
clearable
|
|
||||||
filterable
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="(item, index) in storageBoxList"
|
|
||||||
:key="index"
|
|
||||||
:label="item.code"
|
|
||||||
:value="item.code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button type="primary" @click="getList()">{{ 'btn.search' | i18nFilter }}</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
<base-table
|
|
||||||
:page="listQuery.current"
|
|
||||||
:limit="listQuery.size"
|
|
||||||
:table-config="tableProps"
|
|
||||||
:table-data="list"
|
|
||||||
:is-loading="listLoading"
|
|
||||||
/>
|
|
||||||
<pagination
|
|
||||||
v-show="total > 0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="listQuery.current"
|
|
||||||
:limit.sync="listQuery.size"
|
|
||||||
@pagination="getList()"
|
|
||||||
/>
|
|
||||||
</el-form></div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { StorageBoxInfoList, StorageBoxRackCode } from '@/api/basicData/Warehouse/StorageBoxInfo'
|
|
||||||
import BaseTable from '@/components/BaseTable'
|
|
||||||
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
|
|
||||||
import warehouse from '@/filters/basicData/warehouse'
|
|
||||||
import i18n from '@/lang'
|
|
||||||
/**
|
|
||||||
* 表格表头配置项 TypeScript接口注释
|
|
||||||
* tableConfig<ConfigItem> = []
|
|
||||||
*
|
|
||||||
* Interface ConfigItem = {
|
|
||||||
* prop: string,
|
|
||||||
* label: string,
|
|
||||||
* width: string,
|
|
||||||
* align: string,
|
|
||||||
* subcomponent: function,
|
|
||||||
* filter: function
|
|
||||||
* }
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
const tableProps = [
|
|
||||||
{
|
|
||||||
prop: 'storageCode',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.StorageBoxNumber'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'status',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.BoxStatus'),
|
|
||||||
filter: warehouse('enableState'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'currLocation',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.CurrentLocation'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'isEmpty',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.IsEmpty'),
|
|
||||||
filter: warehouse('yesOrNo'),
|
|
||||||
align: 'center'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'StorageBoxInfo',
|
|
||||||
components: { Pagination, BaseTable },
|
|
||||||
filters: {
|
|
||||||
statusFilter(status) {
|
|
||||||
const statusMap = {
|
|
||||||
published: 'success',
|
|
||||||
draft: 'info',
|
|
||||||
deleted: 'danger'
|
|
||||||
}
|
|
||||||
return statusMap[status]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
keyName: i18n.t('module.basicData.Warehouse.StorageBoxNumber'),
|
|
||||||
placeholderName: this.$t('module.basicData.Warehouse.StorageBoxNumber'),
|
|
||||||
trueWidth: 200,
|
|
||||||
tableProps,
|
|
||||||
list: [],
|
|
||||||
storageBoxList: [],
|
|
||||||
total: 0,
|
|
||||||
listLoading: true,
|
|
||||||
listQuery: {
|
|
||||||
current: 1,
|
|
||||||
size: 10,
|
|
||||||
code: ''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getList()
|
|
||||||
const listQuery1 = {
|
|
||||||
current: 1,
|
|
||||||
size: 100
|
|
||||||
}
|
|
||||||
StorageBoxRackCode(listQuery1).then(res => {
|
|
||||||
this.storageBoxList = res.data.records
|
|
||||||
})
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
getList() {
|
|
||||||
this.listLoading = true
|
|
||||||
StorageBoxInfoList(this.listQuery).then(response => {
|
|
||||||
if (response.data.records) {
|
|
||||||
this.list = response.data.records
|
|
||||||
} else {
|
|
||||||
this.list.splice(0, this.list.length)
|
|
||||||
}
|
|
||||||
this.total = response.data.total
|
|
||||||
this.listLoading = false
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.edit-input {
|
|
||||||
padding-right: 100px;
|
|
||||||
}
|
|
||||||
.cancel-btn {
|
|
||||||
position: absolute;
|
|
||||||
right: 15px;
|
|
||||||
top: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,247 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 15:41:11
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-17 14:06:53
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<div class="app-container">
|
|
||||||
<el-form ref="listQuery" :model="listQuery" :inline="true" label-width="120px" @keyup.enter.native="getList()">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.LocationName')" prop="currLocationId">
|
|
||||||
<el-select
|
|
||||||
v-model="listQuery.currLocationId"
|
|
||||||
:placeholder="$i18nForm(['placeholder.input', $t('module.basicData.Warehouse.LocationName')])"
|
|
||||||
clearable
|
|
||||||
filterable
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="(item, index) in LocationList"
|
|
||||||
:key="index"
|
|
||||||
:label="item.locationName"
|
|
||||||
:value="item.id"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.StorageBoxNumber')" prop="storageBoxId">
|
|
||||||
<el-select
|
|
||||||
v-model="listQuery.storageBoxId"
|
|
||||||
:placeholder="$i18nForm(['placeholder.input', $t('module.basicData.Warehouse.StorageBoxNumber')])"
|
|
||||||
clearable
|
|
||||||
filterable
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="(item, index) in storageBoxList"
|
|
||||||
:key="index"
|
|
||||||
:label="item.code"
|
|
||||||
:value="item.id"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button type="primary" @click="getList()">{{ 'btn.search' | i18nFilter }}</el-button>
|
|
||||||
<el-button type="primary" @click="addNew()">{{ 'btn.add' | i18nFilter }}</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<base-table
|
|
||||||
:page="listQuery.current"
|
|
||||||
:limit="listQuery.size"
|
|
||||||
:table-config="tableProps"
|
|
||||||
:table-data="list"
|
|
||||||
:is-loading="listLoading"
|
|
||||||
>
|
|
||||||
<method-btn
|
|
||||||
slot="handleBtn"
|
|
||||||
:width="trueWidth"
|
|
||||||
:method-list="tableBtn"
|
|
||||||
@clickBtn="handleClick"
|
|
||||||
/>
|
|
||||||
</base-table>
|
|
||||||
<pagination
|
|
||||||
v-show="total > 0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="listQuery.current"
|
|
||||||
:limit.sync="listQuery.size"
|
|
||||||
@pagination="getList()"
|
|
||||||
/>
|
|
||||||
<Factory-add v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getList" />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { StorageBoxRackList, StorageBoxRackDelete, StorageBoxRackCode, locationList } from '@/api/basicData/Warehouse/StorageBoxInfo'
|
|
||||||
import FactoryAdd from './components/StorageBoxRack-add.vue'
|
|
||||||
import BaseTable from '@/components/BaseTable'
|
|
||||||
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
|
|
||||||
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
|
||||||
import { timeFormatter } from '@/filters'
|
|
||||||
import warehouse from '@/filters/basicData/warehouse'
|
|
||||||
import i18n from '@/lang'
|
|
||||||
/**
|
|
||||||
* 表格表头配置项 TypeScript接口注释
|
|
||||||
* tableConfig<ConfigItem> = []
|
|
||||||
*
|
|
||||||
* Interface ConfigItem = {
|
|
||||||
* prop: string,
|
|
||||||
* label: string,
|
|
||||||
* width: string,
|
|
||||||
* align: string,
|
|
||||||
* subcomponent: function,
|
|
||||||
* filter: function
|
|
||||||
* }
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
const tableBtn = [
|
|
||||||
{
|
|
||||||
type: 'edit',
|
|
||||||
btnName: 'btn.edit'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'delete',
|
|
||||||
btnName: 'btn.delete'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
const tableProps = [
|
|
||||||
{
|
|
||||||
prop: 'createTime',
|
|
||||||
label: i18n.t('module.basicData.factory.createTime'),
|
|
||||||
filter: timeFormatter,
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'code',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.StorageBoxNumber'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'status',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.BoxStatus'),
|
|
||||||
filter: warehouse('enableState'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'currLocation',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.LocationName'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'currLocationName',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.LocationCode'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'isEmpty',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.IsEmptyBox'),
|
|
||||||
filter: warehouse('yesOrNo'),
|
|
||||||
align: 'center'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'StorageBoxInfo',
|
|
||||||
components: { Pagination, BaseTable, MethodBtn, FactoryAdd },
|
|
||||||
filters: {
|
|
||||||
statusFilter(status) {
|
|
||||||
const statusMap = {
|
|
||||||
published: 'success',
|
|
||||||
draft: 'info',
|
|
||||||
deleted: 'danger'
|
|
||||||
}
|
|
||||||
return statusMap[status]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
keyName: i18n.t('module.basicData.Warehouse.StorageBoxNumber'),
|
|
||||||
placeholderName: this.$t('module.basicData.Warehouse.StorageBoxNumber'),
|
|
||||||
addOrUpdateVisible: false,
|
|
||||||
tableBtn,
|
|
||||||
trueWidth: 200,
|
|
||||||
tableProps,
|
|
||||||
list: [],
|
|
||||||
total: 0,
|
|
||||||
LocationList: [],
|
|
||||||
storageBoxList: [],
|
|
||||||
listLoading: true,
|
|
||||||
listQuery: {
|
|
||||||
current: 1,
|
|
||||||
size: 10,
|
|
||||||
storageBoxId: '',
|
|
||||||
currLocationId: ''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getList()
|
|
||||||
const listQuery1 = {
|
|
||||||
current: 1,
|
|
||||||
size: 100
|
|
||||||
}
|
|
||||||
locationList(listQuery1).then(response => {
|
|
||||||
this.LocationList = response.data
|
|
||||||
})
|
|
||||||
StorageBoxRackCode(listQuery1).then(res => {
|
|
||||||
this.storageBoxList = res.data.records
|
|
||||||
})
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
handleClick(raw) {
|
|
||||||
console.log(raw)
|
|
||||||
if (raw.type === 'delete') {
|
|
||||||
this.$confirm(`${this.$t('module.basicData.visual.TipsBefore')}[${raw.data.code}]?`, this.$t('module.basicData.visual.Tips'), {
|
|
||||||
confirmButtonText: this.$t('module.basicData.visual.confirmButtonText'),
|
|
||||||
cancelButtonText: this.$t('module.basicData.visual.cancelButtonText'),
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
StorageBoxRackDelete(raw.data.id).then(response => {
|
|
||||||
this.$message({
|
|
||||||
message: this.$t('module.basicData.visual.success'),
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.getList()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}).catch(() => {})
|
|
||||||
} else {
|
|
||||||
this.addNew(raw.data.id)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
getList() {
|
|
||||||
this.listLoading = true
|
|
||||||
StorageBoxRackList(this.listQuery).then(response => {
|
|
||||||
if (response.data.records) {
|
|
||||||
this.list = response.data.records
|
|
||||||
} else {
|
|
||||||
this.list.splice(0, this.list.length)
|
|
||||||
}
|
|
||||||
this.total = response.data.total
|
|
||||||
this.listLoading = false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 新增 / 修改
|
|
||||||
addNew(id) {
|
|
||||||
this.addOrUpdateVisible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.addOrUpdate.init(id)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.edit-input {
|
|
||||||
padding-right: 100px;
|
|
||||||
}
|
|
||||||
.cancel-btn {
|
|
||||||
position: absolute;
|
|
||||||
right: 15px;
|
|
||||||
top: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,178 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 16:37:56
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-14 15:55:39
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="'btn.see' | i18nFilter"
|
|
||||||
:visible.sync="visible"
|
|
||||||
>
|
|
||||||
<el-row :gutter="10">
|
|
||||||
<el-form
|
|
||||||
ref="dataForm"
|
|
||||||
:model="dataForm"
|
|
||||||
size="medium"
|
|
||||||
label-width="110px"
|
|
||||||
label-position="left"
|
|
||||||
>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.Code')" prop="taskCode">
|
|
||||||
<el-input v-model="dataForm.taskCode" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.OrderName')" prop="orderName">
|
|
||||||
<el-input v-model="dataForm.orderName" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskBoxNumber')" prop="fullCode">
|
|
||||||
<el-input v-model="dataForm.fullCode" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.VehicleName')" prop="name">
|
|
||||||
<el-input v-model="dataForm.name" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.EmptyFork')" prop="field124">
|
|
||||||
<el-input v-model="dataForm.field124" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.EmptyHandlingTime')" prop="field119">
|
|
||||||
<el-input v-model="dataForm.field119" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.ExecutionTime')" prop="createTime">
|
|
||||||
<el-input v-model="dataForm.createTime" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskType')" prop="taskType">
|
|
||||||
<el-input v-model="dataForm.taskType" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.FullBoxNumber')" prop="emptyCode">
|
|
||||||
<el-input v-model="dataForm.emptyCode" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskLocation')" prop="anotherCurrLocation">
|
|
||||||
<el-input
|
|
||||||
v-model="dataForm.anotherCurrLocation"
|
|
||||||
readonly
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskBoxFork')" prop="field121">
|
|
||||||
<el-input v-model="dataForm.field121" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskSource')" prop="taskSource">
|
|
||||||
<el-input v-model="dataForm.taskSource" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.PreviousOperation')" prop="anotherCurrProcessCode">
|
|
||||||
<el-input
|
|
||||||
v-model="dataForm.anotherCurrProcessCode"
|
|
||||||
readonly
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.NextOperation')" prop="anotherNextProcessCode">
|
|
||||||
<el-input
|
|
||||||
v-model="dataForm.anotherNextProcessCode"
|
|
||||||
readonly
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TargetLocation')" prop="anotherTargetLocation">
|
|
||||||
<el-input
|
|
||||||
v-model="dataForm.anotherTargetLocation"
|
|
||||||
readonly
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.BoxStatus')" prop="field126">
|
|
||||||
<el-input v-model="dataForm.field126" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
</el-form>
|
|
||||||
</el-row>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">{{ 'btn.cancel' | i18nFilter }}</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { CurrentTaskDetail } from '@/api/basicData/Warehouse/HistoricalTask'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: '',
|
|
||||||
taskCode: undefined,
|
|
||||||
orderName: undefined,
|
|
||||||
fullCode: undefined,
|
|
||||||
name: undefined,
|
|
||||||
field124: undefined,
|
|
||||||
field119: undefined,
|
|
||||||
createTime: undefined,
|
|
||||||
taskType: undefined,
|
|
||||||
emptyCode: undefined,
|
|
||||||
anotherCurrLocation: undefined,
|
|
||||||
field121: undefined,
|
|
||||||
taskSource: undefined,
|
|
||||||
anotherCurrProcessCode: undefined,
|
|
||||||
anotherNextProcessCode: undefined,
|
|
||||||
anotherTargetLocation: undefined,
|
|
||||||
field126: undefined
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init(id) {
|
|
||||||
this.dataForm.id = id
|
|
||||||
this.visible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
CurrentTaskDetail(this.dataForm.id).then(res => {
|
|
||||||
this.dataForm = res.data
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,194 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 16:37:56
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-13 16:22:39
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="'btn.see' | i18nFilter"
|
|
||||||
:visible.sync="visible"
|
|
||||||
>
|
|
||||||
<el-row :gutter="10">
|
|
||||||
<el-form
|
|
||||||
ref="dataForm"
|
|
||||||
:model="dataForm"
|
|
||||||
size="medium"
|
|
||||||
label-width="110px"
|
|
||||||
label-position="left"
|
|
||||||
>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.Code')" prop="taskCode">
|
|
||||||
<el-input v-model="dataForm.taskCode" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.OrderName')" prop="orderName">
|
|
||||||
<el-input v-model="dataForm.orderName" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskBoxNumber')" prop="fullCode">
|
|
||||||
<el-input v-model="dataForm.fullCode" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.VehicleName')" prop="name">
|
|
||||||
<el-input v-model="dataForm.name" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.EmptyFork')" prop="field124">
|
|
||||||
<el-input v-model="dataForm.field124" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.EmptyHandlingTime')" prop="field119">
|
|
||||||
<el-input v-model="dataForm.field119" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.ExecutionTime')" prop="createTime">
|
|
||||||
<el-input v-model="dataForm.createTime" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskType')" prop="taskType">
|
|
||||||
<el-input v-model="dataForm.taskType" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.FullBoxNumber')" prop="emptyCode">
|
|
||||||
<el-input v-model="dataForm.emptyCode" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskLocation')" prop="anotherCurrLocation">
|
|
||||||
<el-input
|
|
||||||
v-model="dataForm.anotherCurrLocation"
|
|
||||||
readonly
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskBoxFork')" prop="field121">
|
|
||||||
<el-input v-model="dataForm.field121" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskBoxHandlingTime')" prop="field122">
|
|
||||||
<el-input
|
|
||||||
v-model="dataForm.field122"
|
|
||||||
readonly
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TaskSource')" prop="taskSource">
|
|
||||||
<el-input v-model="dataForm.taskSource" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.PreviousOperation')" prop="anotherCurrProcessCode">
|
|
||||||
<el-input
|
|
||||||
v-model="dataForm.anotherCurrProcessCode"
|
|
||||||
readonly
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.NextOperation')" prop="anotherNextProcessCode">
|
|
||||||
<el-input
|
|
||||||
v-model="dataForm.anotherNextProcessCode"
|
|
||||||
readonly
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TargetLocation')" prop="anotherTargetLocation">
|
|
||||||
<el-input
|
|
||||||
v-model="dataForm.anotherTargetLocation"
|
|
||||||
readonly
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.CompletionTime')" prop="field125">
|
|
||||||
<el-input v-model="dataForm.field125" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.BoxStatus')" prop="field126">
|
|
||||||
<el-input v-model="dataForm.field126" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
</el-form>
|
|
||||||
</el-row>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">{{ 'btn.cancel' | i18nFilter }}</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { HistoricalTaskDetail } from '@/api/basicData/Warehouse/HistoricalTask'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: '',
|
|
||||||
taskCode: undefined,
|
|
||||||
orderName: undefined,
|
|
||||||
fullCode: undefined,
|
|
||||||
name: undefined,
|
|
||||||
field124: undefined,
|
|
||||||
field119: undefined,
|
|
||||||
createTime: undefined,
|
|
||||||
taskType: undefined,
|
|
||||||
emptyCode: undefined,
|
|
||||||
anotherCurrLocation: undefined,
|
|
||||||
field121: undefined,
|
|
||||||
field122: undefined,
|
|
||||||
taskSource: undefined,
|
|
||||||
anotherCurrProcessCode: undefined,
|
|
||||||
anotherNextProcessCode: undefined,
|
|
||||||
anotherTargetLocation: undefined,
|
|
||||||
field125: undefined,
|
|
||||||
field126: undefined
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init(id) {
|
|
||||||
this.dataForm.id = id
|
|
||||||
this.visible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
HistoricalTaskDetail(this.dataForm.id).then(res => {
|
|
||||||
this.dataForm = res.data
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,65 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 16:37:56
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-17 10:19:45
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="!dataForm.id ? 'btn.add' : 'btn.edit' | i18nFilter"
|
|
||||||
:visible.sync="visible"
|
|
||||||
>
|
|
||||||
<el-form ref="dataForm" :model="dataForm" label-width="120px">
|
|
||||||
<el-form-item :label="$t('module.basicData.factory.FactoryName')" prop="name">
|
|
||||||
<el-input v-model="dataForm.name" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.factory.FactoryName')])" clearable />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('module.basicData.factory.FactoryCode')" prop="code">
|
|
||||||
<el-input v-model="dataForm.code" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.factory.FactoryCode')])" clearable />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('module.basicData.factory.Address')" prop="address">
|
|
||||||
<el-input v-model="dataForm.address" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.factory.Address')])" clearable />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('module.basicData.visual.Remarks')" prop="description">
|
|
||||||
<el-input v-model="dataForm.description" :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.visual.Remarks')])" clearable />
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">{{ 'btn.cancel' | i18nFilter }}</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { StorageBoxInfoDetail } from '@/api/basicData/Warehouse/StorageBoxInfo'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: 0,
|
|
||||||
name: '',
|
|
||||||
code: '',
|
|
||||||
address: '',
|
|
||||||
description: ''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init(id) {
|
|
||||||
this.dataForm.id = id || ''
|
|
||||||
this.visible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
StorageBoxInfoDetail(this.dataForm.id).then(res => {
|
|
||||||
this.dataForm.name = res.data.name
|
|
||||||
this.dataForm.code = res.data.code
|
|
||||||
this.dataForm.address = res.data.address
|
|
||||||
this.dataForm.description = res.data.description
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,180 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 16:37:56
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-17 11:21:26
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="!dataForm.id ? 'btn.add' : 'btn.edit' | i18nFilter"
|
|
||||||
:visible.sync="visible"
|
|
||||||
>
|
|
||||||
<el-form ref="dataForm" :model="dataForm" :rules="dataRule" label-width="120px" @keyup.enter.native="dataFormSubmit()">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.LocationName')" prop="currLocationId">
|
|
||||||
<el-select
|
|
||||||
v-model="dataForm.currLocationId"
|
|
||||||
:placeholder="$i18nForm(['placeholder.input', $t('module.basicData.Warehouse.LocationName')])"
|
|
||||||
clearable
|
|
||||||
filterable
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
@change="selectGetLabel1"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="(item, index) in LocationList"
|
|
||||||
:key="index"
|
|
||||||
:label="item.locationName"
|
|
||||||
:value="item.id"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.StorageBoxNumber')" prop="storageBoxId">
|
|
||||||
<el-select
|
|
||||||
v-model="dataForm.storageBoxId"
|
|
||||||
:placeholder="$i18nForm(['placeholder.input', $t('module.basicData.Warehouse.StorageBoxNumber')])"
|
|
||||||
clearable
|
|
||||||
filterable
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
@change="selectGetLabel2"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="(item, index) in storageBoxList"
|
|
||||||
:key="index"
|
|
||||||
:label="item.code"
|
|
||||||
:value="item.id"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.BoxStatus')" prop="status">
|
|
||||||
<el-switch
|
|
||||||
v-model="dataForm.status"
|
|
||||||
:active-value="1"
|
|
||||||
:inactive-value="0"
|
|
||||||
active-color="#13ce66"
|
|
||||||
inactive-color="#AAAAAA"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.IsEmptyBox')" prop="isEmpty">
|
|
||||||
<el-switch
|
|
||||||
v-model="dataForm.isEmpty"
|
|
||||||
:active-value="1"
|
|
||||||
:inactive-value="0"
|
|
||||||
active-color="#13ce66"
|
|
||||||
inactive-color="#AAAAAA"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">{{ 'btn.cancel' | i18nFilter }}</el-button>
|
|
||||||
<el-button type="primary" @click="dataFormSubmit()">{{ 'btn.confirm' | i18nFilter }}</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { StorageBoxRackDetail, StorageBoxRackUpdate, StorageBoxRackAdd, StorageBoxRackCode, locationList } from '@/api/basicData/Warehouse/StorageBoxInfo'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: 0,
|
|
||||||
code: '',
|
|
||||||
locationName: '',
|
|
||||||
currLocationId: '',
|
|
||||||
storageBoxId: '',
|
|
||||||
status: '',
|
|
||||||
isEmpty: ''
|
|
||||||
},
|
|
||||||
LocationList: [],
|
|
||||||
storageBoxList: [],
|
|
||||||
dataRule: {
|
|
||||||
currLocationId: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$i18nForm(['placeholder.input', this.$t('module.basicData.Warehouse.LocationName')]),
|
|
||||||
trigger: 'blur' }
|
|
||||||
],
|
|
||||||
storageBoxId: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$i18nForm(['placeholder.input', this.$t('module.basicData.Warehouse.StorageBoxNumber')]),
|
|
||||||
trigger: 'blur' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init(id) {
|
|
||||||
this.dataForm.id = id || ''
|
|
||||||
this.visible = true
|
|
||||||
const listQuery = {
|
|
||||||
current: 1,
|
|
||||||
size: 100
|
|
||||||
}
|
|
||||||
locationList(listQuery).then(response => {
|
|
||||||
this.LocationList = response.data
|
|
||||||
})
|
|
||||||
StorageBoxRackCode(listQuery).then(res => {
|
|
||||||
this.storageBoxList = res.data.records
|
|
||||||
})
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
StorageBoxRackDetail(this.dataForm.id).then(res => {
|
|
||||||
this.dataForm = res.data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
selectGetLabel1(vId) {
|
|
||||||
let obj = {}
|
|
||||||
obj = this.LocationList.find((item) => {
|
|
||||||
return item.id === vId
|
|
||||||
})
|
|
||||||
this.dataForm.locationName = obj.locationName
|
|
||||||
},
|
|
||||||
selectGetLabel2(vId) {
|
|
||||||
let obj = {}
|
|
||||||
obj = this.storageBoxList.find((item) => {
|
|
||||||
return item.id === vId
|
|
||||||
})
|
|
||||||
this.dataForm.code = obj.code
|
|
||||||
},
|
|
||||||
// 表单提交
|
|
||||||
dataFormSubmit() {
|
|
||||||
this.$refs['dataForm'].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
const data = this.dataForm
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
StorageBoxRackUpdate(data).then(res => {
|
|
||||||
this.$message({
|
|
||||||
message: this.$t('module.basicData.visual.success'),
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.visible = false
|
|
||||||
this.$emit('refreshDataList')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
StorageBoxRackAdd(data).then(res => {
|
|
||||||
this.$message({
|
|
||||||
message: this.$t('module.basicData.visual.success'),
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.visible = false
|
|
||||||
this.$emit('refreshDataList')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,177 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 15:41:11
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-17 15:26:35
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<div class="app-container">
|
|
||||||
<head-form
|
|
||||||
:placeholder-name="placeholderName"
|
|
||||||
:key-name="keyName"
|
|
||||||
:show-add="false"
|
|
||||||
@getDataList="getList"
|
|
||||||
@add="addNew"
|
|
||||||
/>
|
|
||||||
<base-table
|
|
||||||
:page="listQuery.current"
|
|
||||||
:limit="listQuery.size"
|
|
||||||
:table-config="tableProps"
|
|
||||||
:table-data="list"
|
|
||||||
:is-loading="listLoading"
|
|
||||||
>
|
|
||||||
<method-btn
|
|
||||||
slot="handleBtn"
|
|
||||||
:width="trueWidth"
|
|
||||||
:method-list="tableBtn"
|
|
||||||
@clickBtn="handleClick"
|
|
||||||
/>
|
|
||||||
</base-table>
|
|
||||||
<pagination
|
|
||||||
v-show="total > 0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="listQuery.current"
|
|
||||||
:limit.sync="listQuery.size"
|
|
||||||
@pagination="getList()"
|
|
||||||
/>
|
|
||||||
<Factory-add v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getList" />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { ExecutionInfoList } from '@/api/orderManage/00A'
|
|
||||||
import FactoryAdd from './components/ExecutionInfoDetail.vue'
|
|
||||||
import HeadForm from '@/components/basicData/HeadForm'
|
|
||||||
import BaseTable from '@/components/BaseTable'
|
|
||||||
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
|
|
||||||
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
|
||||||
import { timeFormatter } from '@/filters'
|
|
||||||
import basicData from '@/filters/basicData'
|
|
||||||
import i18n from '@/lang'
|
|
||||||
/**
|
|
||||||
* 表格表头配置项 TypeScript接口注释
|
|
||||||
* tableConfig<ConfigItem> = []
|
|
||||||
*
|
|
||||||
* Interface ConfigItem = {
|
|
||||||
* prop: string,
|
|
||||||
* label: string,
|
|
||||||
* width: string,
|
|
||||||
* align: string,
|
|
||||||
* subcomponent: function,
|
|
||||||
* filter: function
|
|
||||||
* }
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
const tableBtn = [
|
|
||||||
{
|
|
||||||
type: 'see',
|
|
||||||
btnName: 'btn.see'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
const tableProps = [
|
|
||||||
{
|
|
||||||
prop: 'name',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.OrderName'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'createTime',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.IssueOrderTime'),
|
|
||||||
filter: timeFormatter,
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'craftName',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.TotalProcessName'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'priority',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.Priority'),
|
|
||||||
filter: basicData('priority'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'status',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.OrderStatus'),
|
|
||||||
filter: basicData('workOrderStatus'),
|
|
||||||
align: 'center'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'ExecutionInfo',
|
|
||||||
components: { Pagination, BaseTable, MethodBtn, HeadForm, FactoryAdd },
|
|
||||||
filters: {
|
|
||||||
statusFilter(status) {
|
|
||||||
const statusMap = {
|
|
||||||
published: 'success',
|
|
||||||
draft: 'info',
|
|
||||||
deleted: 'danger'
|
|
||||||
}
|
|
||||||
return statusMap[status]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
keyName: i18n.t('module.basicData.Warehouse.OrderName'),
|
|
||||||
placeholderName: this.$t('module.basicData.Warehouse.OrderName'),
|
|
||||||
addOrUpdateVisible: false,
|
|
||||||
tableBtn,
|
|
||||||
trueWidth: 200,
|
|
||||||
tableProps,
|
|
||||||
list: [],
|
|
||||||
total: 0,
|
|
||||||
listLoading: true,
|
|
||||||
listQuery: {
|
|
||||||
current: 1,
|
|
||||||
size: 10,
|
|
||||||
name: '',
|
|
||||||
code: ''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getList()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
handleClick(raw) {
|
|
||||||
this.addNew(raw.data.id)
|
|
||||||
},
|
|
||||||
getList(key) {
|
|
||||||
this.listLoading = true
|
|
||||||
this.listQuery.code = key
|
|
||||||
ExecutionInfoList(this.listQuery).then(response => {
|
|
||||||
if (response.data.records) {
|
|
||||||
this.list = response.data.records
|
|
||||||
} else {
|
|
||||||
this.list.splice(0, this.list.length)
|
|
||||||
}
|
|
||||||
this.total = response.data.total
|
|
||||||
this.listLoading = false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 新增 / 修改
|
|
||||||
addNew(id) {
|
|
||||||
this.addOrUpdateVisible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.addOrUpdate.init(id)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.edit-input {
|
|
||||||
padding-right: 100px;
|
|
||||||
}
|
|
||||||
.cancel-btn {
|
|
||||||
position: absolute;
|
|
||||||
right: 15px;
|
|
||||||
top: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,184 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 15:41:11
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-17 15:32:00
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<div class="app-container">
|
|
||||||
<head-form
|
|
||||||
:placeholder-name="placeholderName"
|
|
||||||
:key-name="keyName"
|
|
||||||
:show-add="false"
|
|
||||||
@getDataList="getList"
|
|
||||||
@add="addNew"
|
|
||||||
/>
|
|
||||||
<base-table
|
|
||||||
:page="listQuery.current"
|
|
||||||
:limit="listQuery.size"
|
|
||||||
:table-config="tableProps"
|
|
||||||
:table-data="list"
|
|
||||||
:is-loading="listLoading"
|
|
||||||
>
|
|
||||||
<method-btn
|
|
||||||
slot="handleBtn"
|
|
||||||
:width="trueWidth"
|
|
||||||
:method-list="tableBtn"
|
|
||||||
@clickBtn="handleClick"
|
|
||||||
/>
|
|
||||||
</base-table>
|
|
||||||
<pagination
|
|
||||||
v-show="total > 0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="listQuery.current"
|
|
||||||
:limit.sync="listQuery.size"
|
|
||||||
@pagination="getList()"
|
|
||||||
/>
|
|
||||||
<Factory-add v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getList" />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { ProcessInfoList } from '@/api/orderManage/00A'
|
|
||||||
import FactoryAdd from './components/ProcessInfoDetail.vue'
|
|
||||||
import HeadForm from '@/components/basicData/HeadForm'
|
|
||||||
import BaseTable from '@/components/BaseTable'
|
|
||||||
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
|
|
||||||
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
|
|
||||||
import { timeFormatter } from '@/filters'
|
|
||||||
import basicData from '@/filters/basicData'
|
|
||||||
import processLinkBtn from './components/processLinkBtn'
|
|
||||||
import i18n from '@/lang'
|
|
||||||
/**
|
|
||||||
* 表格表头配置项 TypeScript接口注释
|
|
||||||
* tableConfig<ConfigItem> = []
|
|
||||||
*
|
|
||||||
* Interface ConfigItem = {
|
|
||||||
* prop: string,
|
|
||||||
* label: string,
|
|
||||||
* width: string,
|
|
||||||
* align: string,
|
|
||||||
* subcomponent: function,
|
|
||||||
* filter: function
|
|
||||||
* }
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
const tableBtn = [
|
|
||||||
{
|
|
||||||
type: 'see',
|
|
||||||
btnName: 'btn.see'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
const tableProps = [
|
|
||||||
{
|
|
||||||
prop: 'name',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.OrderName'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'createTime',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.IssueOrderTime'),
|
|
||||||
filter: timeFormatter,
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'craftName',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.TotalProcessName'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'priority',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.Priority'),
|
|
||||||
filter: basicData('priority'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'status',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.OrderStatus'),
|
|
||||||
filter: basicData('workOrderStatus'),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'attribute',
|
|
||||||
label: i18n.t('module.basicData.Warehouse.RelateProcess'),
|
|
||||||
subcomponent: processLinkBtn,
|
|
||||||
align: 'center'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'ProcessInfo',
|
|
||||||
components: { Pagination, BaseTable, MethodBtn, HeadForm, FactoryAdd },
|
|
||||||
filters: {
|
|
||||||
statusFilter(status) {
|
|
||||||
const statusMap = {
|
|
||||||
published: 'success',
|
|
||||||
draft: 'info',
|
|
||||||
deleted: 'danger'
|
|
||||||
}
|
|
||||||
return statusMap[status]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
keyName: i18n.t('module.basicData.Warehouse.OrderName'),
|
|
||||||
placeholderName: this.$t('module.basicData.Warehouse.OrderName'),
|
|
||||||
addOrUpdateVisible: false,
|
|
||||||
tableBtn,
|
|
||||||
trueWidth: 200,
|
|
||||||
tableProps,
|
|
||||||
list: [],
|
|
||||||
total: 0,
|
|
||||||
listLoading: true,
|
|
||||||
listQuery: {
|
|
||||||
current: 1,
|
|
||||||
size: 10,
|
|
||||||
name: '',
|
|
||||||
code: ''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getList()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
handleClick(raw) {
|
|
||||||
this.addNew(raw.data.id)
|
|
||||||
},
|
|
||||||
getList(key) {
|
|
||||||
this.listLoading = true
|
|
||||||
this.listQuery.code = key
|
|
||||||
ProcessInfoList(this.listQuery).then(response => {
|
|
||||||
if (response.data.records) {
|
|
||||||
this.list = response.data.records
|
|
||||||
} else {
|
|
||||||
this.list.splice(0, this.list.length)
|
|
||||||
}
|
|
||||||
this.total = response.data.total
|
|
||||||
this.listLoading = false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 新增 / 修改
|
|
||||||
addNew(id) {
|
|
||||||
this.addOrUpdateVisible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.addOrUpdate.init(id)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.edit-input {
|
|
||||||
padding-right: 100px;
|
|
||||||
}
|
|
||||||
.cancel-btn {
|
|
||||||
position: absolute;
|
|
||||||
right: 15px;
|
|
||||||
top: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,115 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 16:37:56
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-17 15:21:50
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="'btn.see' | i18nFilter"
|
|
||||||
:visible.sync="visible"
|
|
||||||
>
|
|
||||||
<el-row :gutter="10">
|
|
||||||
<el-form
|
|
||||||
ref="dataForm"
|
|
||||||
:model="dataForm"
|
|
||||||
size="medium"
|
|
||||||
label-width="110px"
|
|
||||||
label-position="left"
|
|
||||||
>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.OrderName')" prop="name">
|
|
||||||
<el-input v-model="dataForm.name" :placeholder="$t('module.basicData.Warehouse.OrderName')" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.IssueOrderTime')" prop="createTime">
|
|
||||||
<el-input v-model="dataForm.createTime" :placeholder="$t('module.basicData.Warehouse.IssueOrderTime')" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.PlanProcessQuantity')" prop="planQuantity">
|
|
||||||
<el-input v-model="dataForm.planQuantity" :placeholder="$t('module.basicData.Warehouse.PlanProcessQuantity')" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.OrderCode')" prop="taskCode">
|
|
||||||
<el-input v-model="dataForm.taskCode" :placeholder="$t('module.basicData.Warehouse.OrderCode')" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.OrderStatus')" prop="taskType">
|
|
||||||
<el-input v-model="dataForm.taskType" :placeholder="$t('module.basicData.Warehouse.OrderStatus')" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TotalProcessName')" prop="craftName">
|
|
||||||
<el-input v-model="dataForm.craftName" :placeholder="$t('module.basicData.Warehouse.TotalProcessName')" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.SubProcessName')" prop="subProccessName">
|
|
||||||
<el-input
|
|
||||||
v-model="dataForm.subProccessName"
|
|
||||||
:placeholder="$t('module.basicData.Warehouse.SubProcessName')"
|
|
||||||
readonly
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
</el-form>
|
|
||||||
</el-row>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">{{ 'btn.cancel' | i18nFilter }}</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { ExecutionInfoDetail } from '@/api/orderManage/00A'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: 0,
|
|
||||||
name: undefined,
|
|
||||||
createTime: undefined,
|
|
||||||
taskCode: undefined,
|
|
||||||
taskType: undefined,
|
|
||||||
craftName: undefined,
|
|
||||||
planQuantity: undefined,
|
|
||||||
subProccessName: undefined
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init(id) {
|
|
||||||
this.dataForm.id = id || ''
|
|
||||||
this.visible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
ExecutionInfoDetail(this.dataForm.id).then(res => {
|
|
||||||
this.dataForm = res.data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,115 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2020-12-29 16:37:56
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-17 15:22:08
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<el-dialog
|
|
||||||
:title="'btn.see' | i18nFilter"
|
|
||||||
:visible.sync="visible"
|
|
||||||
>
|
|
||||||
<el-row :gutter="10">
|
|
||||||
<el-form
|
|
||||||
ref="dataForm"
|
|
||||||
:model="dataForm"
|
|
||||||
size="medium"
|
|
||||||
label-width="110px"
|
|
||||||
label-position="left"
|
|
||||||
>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.OrderName')" prop="name">
|
|
||||||
<el-input v-model="dataForm.name" :placeholder="$t('module.basicData.Warehouse.OrderName')" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.IssueOrderTime')" prop="createTime">
|
|
||||||
<el-input v-model="dataForm.createTime" :placeholder="$t('module.basicData.Warehouse.IssueOrderTime')" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.PlanProcessQuantity')" prop="planQuantity">
|
|
||||||
<el-input v-model="dataForm.planQuantity" :placeholder="$t('module.basicData.Warehouse.PlanProcessQuantity')" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.OrderCode')" prop="taskCode">
|
|
||||||
<el-input v-model="dataForm.taskCode" :placeholder="$t('module.basicData.Warehouse.OrderCode')" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.OrderStatus')" prop="taskType">
|
|
||||||
<el-input v-model="dataForm.taskType" :placeholder="$t('module.basicData.Warehouse.OrderStatus')" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.TotalProcessName')" prop="craftName">
|
|
||||||
<el-input v-model="dataForm.craftName" :placeholder="$t('module.basicData.Warehouse.TotalProcessName')" readonly :style="{width: '100%'}" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item :label="$t('module.basicData.Warehouse.SubProcessName')" prop="subProccessName">
|
|
||||||
<el-input
|
|
||||||
v-model="dataForm.subProccessName"
|
|
||||||
:placeholder="$t('module.basicData.Warehouse.SubProcessName')"
|
|
||||||
readonly
|
|
||||||
:style="{width: '100%'}"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-col>
|
|
||||||
</el-form>
|
|
||||||
</el-row>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false">{{ 'btn.cancel' | i18nFilter }}</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { ProcessInfoDetail } from '@/api/orderManage/00A'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: 0,
|
|
||||||
name: undefined,
|
|
||||||
createTime: undefined,
|
|
||||||
taskCode: undefined,
|
|
||||||
taskType: undefined,
|
|
||||||
craftName: undefined,
|
|
||||||
planQuantity: undefined,
|
|
||||||
subProccessName: undefined
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init(id) {
|
|
||||||
this.dataForm.id = id || ''
|
|
||||||
this.visible = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs['dataForm'].resetFields()
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
ProcessInfoDetail(this.dataForm.id).then(res => {
|
|
||||||
this.dataForm = res.data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,64 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Date: 2021-01-07 20:09:37
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @LastEditTime: 2022-01-17 15:16:29
|
|
||||||
* @FilePath: \basic-admin\src\components\BaseTable\subcomponents\CheckDetail.vue
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<span>
|
|
||||||
<el-popover
|
|
||||||
v-model="visible"
|
|
||||||
placement="top"
|
|
||||||
width="160"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<el-select v-model="value" placeholder="请选择">
|
|
||||||
<el-option
|
|
||||||
v-for="item in options"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</div>
|
|
||||||
<div style="text-align: right; margin: 0">
|
|
||||||
<el-button size="mini" type="text" @click="visible = false">取消</el-button>
|
|
||||||
<el-button type="primary" size="mini" @click="emitClick">确定</el-button>
|
|
||||||
</div>
|
|
||||||
<el-button slot="reference" type="text">{{ $t('module.basicData.Warehouse.RelateProcess') }}</el-button>
|
|
||||||
</el-popover>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
props: {
|
|
||||||
injectData: {
|
|
||||||
type: Object,
|
|
||||||
default: () => ({})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
visible: false,
|
|
||||||
options: [{
|
|
||||||
value: '选项1',
|
|
||||||
label: '黄金糕'
|
|
||||||
}, {
|
|
||||||
value: '选项2',
|
|
||||||
label: '双皮奶'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
value: ''
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
emitClick() {
|
|
||||||
console.log(this.injectData)
|
|
||||||
console.log(this.value)
|
|
||||||
this.visible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -46,8 +46,8 @@ module.exports = {
|
|||||||
// 这里写入需要代理的api和对应的目标地址
|
// 这里写入需要代理的api和对应的目标地址
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
// target: 'http://localhost:8080',
|
target: 'http://localhost:8080',
|
||||||
target: 'http://192.168.0.148:8080',
|
// target: 'http://192.168.0.198:8080',
|
||||||
// target: 'http://192.168.0.127:8080',
|
// target: 'http://192.168.0.127:8080',
|
||||||
// target: 'http://192.168.0.165:8080',
|
// target: 'http://192.168.0.165:8080',
|
||||||
// target: 'http://192.168.43.105:8080',
|
// target: 'http://192.168.43.105:8080',
|
||||||
|
Loading…
Reference in New Issue
Block a user