Compare commits

..

2 Commits

Author SHA1 Message Date
zwq
9513fb484b 修改菜单,增加质量管理 2022-03-03 16:15:01 +08:00
68193ecfb3 Merge pull request '更新' (#25) from zwq into develop
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #25
2022-03-02 11:04:49 +08:00
18 changed files with 343 additions and 178 deletions

View File

@ -94,7 +94,7 @@ export function listAllEquipmentRecipe(data) {
// 保存某个工艺下的所有节点 // 保存某个工艺下的所有节点
export function addProcessFlows(data) { export function addProcessFlows(data) {
return request({ return request({
url: 'process/process-flow-equipment/add', url: '/api/process/process-flow-equipment/add',
method: 'post', method: 'post',
data data
}) })

View File

@ -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: 2021-07-06 11:10:22 * @LastEditTime: 2022-03-03 13:46:55
* @Description: * @Description:
*/ */
import request from '@/utils/request' import request from '@/utils/request'
export function EquipmentScrapGradeList(data) { // 获取废片等级列表 export function EquipmentScrapGradeList(data) { // 获取废片等级列表
return request({ return request({
url: '/basic/equipment-scraps-grade/pageForEquipmentGrade', url: '/api/wms/equipment-scraps-grade/pageForEquipmentGrade',
method: 'post', method: 'post',
data data
}) })
@ -17,7 +17,7 @@ export function EquipmentScrapGradeList(data) { // 获取废片等级列表
export function EquipmentScrapGradeDetail(id) { // 获取废片等级单条数据 export function EquipmentScrapGradeDetail(id) { // 获取废片等级单条数据
return request({ return request({
url: '/basic/equipment-scraps-grade/get', url: '/api/wms/equipment-scraps-grade/get',
method: 'post', method: 'post',
data: { id } data: { id }
}) })
@ -25,7 +25,7 @@ export function EquipmentScrapGradeDetail(id) { // 获取废片等级单条数
export function EquipmentScrapGradeUpdate(data) { // 更新废片等级单条数据 export function EquipmentScrapGradeUpdate(data) { // 更新废片等级单条数据
return request({ return request({
url: '/basic/equipment-scraps-grade/update', url: '/api/wms/equipment-scraps-grade/update',
method: 'post', method: 'post',
data data
}) })
@ -33,7 +33,7 @@ export function EquipmentScrapGradeUpdate(data) { // 更新废片等级单条数
export function EquipmentScrapGradeAdd(data) { // 新增废片等级单条数据 export function EquipmentScrapGradeAdd(data) { // 新增废片等级单条数据
return request({ return request({
url: '/basic/equipment-scraps-grade/add', url: '/api/wms/equipment-scraps-grade/add',
method: 'post', method: 'post',
data data
}) })
@ -41,7 +41,7 @@ export function EquipmentScrapGradeAdd(data) { // 新增废片等级单条数据
export function EquipmentScrapGradeDelete(id) { // 删除废片等级单条数据 export function EquipmentScrapGradeDelete(id) { // 删除废片等级单条数据
return request({ return request({
url: '/basic/equipment-scraps-grade/delete', url: '/api/wms/equipment-scraps-grade/delete',
method: 'post', method: 'post',
data: { id } data: { id }
}) })

View File

@ -1,8 +1,8 @@
/* /*
* @Author: zwq * @Author: zwq
* @Date: 2020-12-29 16:00:14 * @Date: 2020-12-29 16:00:14
* @LastEditors: gtz * @LastEditors: zwq
* @LastEditTime: 2021-04-17 16:04:51 * @LastEditTime: 2022-03-03 15:10:05
* @Description: * @Description:
*/ */
import request from '@/utils/request' import request from '@/utils/request'
@ -56,7 +56,7 @@ export function staffDelete(id) { // 删除员工单条数据
export function workerList(data) { // 添加组员列表 export function workerList(data) { // 添加组员列表
return request({ return request({
url: '/basic/team-det/workerList', url: '/api/wms/team-det/workerList',
method: 'post', method: 'post',
data data
}) })
@ -64,7 +64,7 @@ export function workerList(data) { // 添加组员列表
export function getRoleList() { export function getRoleList() {
return request({ return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage', url: '/api/wms/platform-dict/selectPlatformDictDataListByPage',
method: 'post', method: 'post',
data: { data: {
dictTypeId: '1383318968677273601', dictTypeId: '1383318968677273601',

View File

@ -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: 2021-03-10 14:25:18 * @LastEditTime: 2022-03-03 13:46:40
* @Description: * @Description:
*/ */
import request from '@/utils/request' import request from '@/utils/request'
export function scrapInfoList(data) { // 获取报废信息列表 export function scrapInfoList(data) { // 获取报废信息列表
return request({ return request({
url: '/basic/scrap-information/page', url: '/api/wms/scrap-information/page',
method: 'post', method: 'post',
data data
}) })
@ -20,7 +20,7 @@ export function scrapInfoDetail(id) { // 获取报废信息单条数据
'id': id 'id': id
} }
return request({ return request({
url: '/basic/scrap-information/get', url: '/api/wms/scrap-information/get',
method: 'post', method: 'post',
data data
}) })
@ -28,7 +28,7 @@ export function scrapInfoDetail(id) { // 获取报废信息单条数据
export function scrapInfoUpdate(data) { // 更新报废信息单条数据 export function scrapInfoUpdate(data) { // 更新报废信息单条数据
return request({ return request({
url: '/basic/scrap-information/update', url: '/api/wms/scrap-information/update',
method: 'post', method: 'post',
data data
}) })
@ -36,7 +36,7 @@ export function scrapInfoUpdate(data) { // 更新报废信息单条数据
export function scrapInfoAdd(data) { // 新增报废信息单条数据 export function scrapInfoAdd(data) { // 新增报废信息单条数据
return request({ return request({
url: '/basic/scrap-information/add', url: '/api/wms/scrap-information/add',
method: 'post', method: 'post',
data data
}) })
@ -44,14 +44,14 @@ export function scrapInfoAdd(data) { // 新增报废信息单条数据
export function scrapInfoCode() { // 获取报废信息code export function scrapInfoCode() { // 获取报废信息code
return request({ return request({
url: '/basic/scrap-information/get-code', url: '/api/wms/scrap-information/get-code',
method: 'post' method: 'post'
}) })
} }
export function scrapInfoDelete(id) { // 删除报废信息单条数据 export function scrapInfoDelete(id) { // 删除报废信息单条数据
return request({ return request({
url: '/basic/scrap-information/delete', url: '/api/wms/scrap-information/delete',
method: 'post', method: 'post',
data: { id } data: { id }
}) })

View File

@ -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: 2021-03-10 14:25:59 * @LastEditTime: 2022-03-03 13:46:46
* @Description: * @Description:
*/ */
import request from '@/utils/request' import request from '@/utils/request'
export function scrapTypeList(data) { // 获取报废类型列表 export function scrapTypeList(data) { // 获取报废类型列表
return request({ return request({
url: '/basic/scrap-type-information/page', url: '/api/wms/scrap-type-information/page',
method: 'post', method: 'post',
data data
}) })
@ -20,7 +20,7 @@ export function scrapTypeDetail(id) { // 获取报废类型单条数据
'id': id 'id': id
} }
return request({ return request({
url: '/basic/scrap-type-information/get', url: '/api/wms/scrap-type-information/get',
method: 'post', method: 'post',
data data
}) })
@ -28,7 +28,7 @@ export function scrapTypeDetail(id) { // 获取报废类型单条数据
export function scrapTypeUpdate(data) { // 更新报废类型单条数据 export function scrapTypeUpdate(data) { // 更新报废类型单条数据
return request({ return request({
url: '/basic/scrap-type-information/update', url: '/api/wms/scrap-type-information/update',
method: 'post', method: 'post',
data data
}) })
@ -36,7 +36,7 @@ export function scrapTypeUpdate(data) { // 更新报废类型单条数据
export function scrapTypeAdd(data) { // 新增报废类型单条数据 export function scrapTypeAdd(data) { // 新增报废类型单条数据
return request({ return request({
url: '/basic/scrap-type-information/add', url: '/api/wms/scrap-type-information/add',
method: 'post', method: 'post',
data data
}) })
@ -44,14 +44,14 @@ export function scrapTypeAdd(data) { // 新增报废类型单条数据
export function scrapTypeCode() { // 获取报废类型code export function scrapTypeCode() { // 获取报废类型code
return request({ return request({
url: '/basic/scrap-type-information/get-code', url: '/api/wms/scrap-type-information/get-code',
method: 'post' method: 'post'
}) })
} }
export function scrapTypeDelete(id) { // 删除报废类型单条数据 export function scrapTypeDelete(id) { // 删除报废类型单条数据
return request({ return request({
url: '/basic/scrap-type-information/delete', url: '/api/wms/scrap-type-information/delete',
method: 'post', method: 'post',
data: { id } data: { id }
}) })

View File

@ -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: 2021-01-13 16:11:45 * @LastEditTime: 2022-03-03 16:10:54
* @Description: * @Description:
*/ */
import request from '@/utils/request' import request from '@/utils/request'
export function StateConfigList(data) { // 获取状态列表 export function StateConfigList(data) { // 获取状态列表
return request({ return request({
url: '/basic/configure-display/page', url: '/api/wms/configure-display/page',
method: 'post', method: 'post',
data data
}) })

View File

@ -1,15 +1,15 @@
/* /*
* @Author: zwq * @Author: zwq
* @Date: 2020-12-29 16:00:14 * @Date: 2020-12-29 16:00:14
* @LastEditors: Please set LastEditors * @LastEditors: zwq
* @LastEditTime: 2021-05-19 15:57:56 * @LastEditTime: 2022-03-03 15:10:16
* @Description: * @Description:
*/ */
import request from '@/utils/request' import request from '@/utils/request'
export function dataDictionaryDataList(data) { // 获取字典类型列表 export function dataDictionaryDataList(data) { // 获取字典类型列表
return request({ return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage', url: '/api/wms/platform-dict/selectPlatformDictDataListByPage',
method: 'post', method: 'post',
data data
}) })
@ -17,7 +17,7 @@ export function dataDictionaryDataList(data) { // 获取字典类型列表
export function dataDictionaryDataDetail(id) { // 获取字典类型单条数据 export function dataDictionaryDataDetail(id) { // 获取字典类型单条数据
return request({ return request({
url: '/basic/platform-dict/selectPlatformDictDataById', url: '/api/wms/platform-dict/selectPlatformDictDataById',
method: 'post', method: 'post',
data: { id } data: { id }
}) })
@ -25,7 +25,7 @@ export function dataDictionaryDataDetail(id) { // 获取字典类型单条数据
export function dataDictionaryDataUpdate(data) { // 更新字典类型单条数据 export function dataDictionaryDataUpdate(data) { // 更新字典类型单条数据
return request({ return request({
url: '/basic/platform-dict/updatePlatformDictData', url: '/api/wms/platform-dict/updatePlatformDictData',
method: 'post', method: 'post',
data data
}) })
@ -33,7 +33,7 @@ export function dataDictionaryDataUpdate(data) { // 更新字典类型单条数
export function dataDictionaryDataAdd(data) { // 新增字典类型单条数据 export function dataDictionaryDataAdd(data) { // 新增字典类型单条数据
return request({ return request({
url: '/basic/platform-dict/savePlatformDictData', url: '/api/wms/platform-dict/savePlatformDictData',
method: 'post', method: 'post',
data data
}) })
@ -41,7 +41,7 @@ export function dataDictionaryDataAdd(data) { // 新增字典类型单条数据
export function dataDictionaryDataDelete(id) { // 删除字典类型单条数据 export function dataDictionaryDataDelete(id) { // 删除字典类型单条数据
return request({ return request({
url: '/basic/platform-dict/deletePlatformDictData', url: '/api/wms/platform-dict/deletePlatformDictData',
method: 'post', method: 'post',
data: { id } data: { id }
}) })

View File

@ -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: 2021-04-16 12:51:29 * @LastEditTime: 2022-03-03 15:29:30
* @Description: * @Description:
*/ */
import request from '@/utils/request' import request from '@/utils/request'
export function dataDictionaryTypeList(data) { // 获取字典类型列表 export function dataDictionaryTypeList(data) { // 获取字典类型列表
return request({ return request({
url: '/basic/platform-dict/selectPlatformDictTypeListByPage', url: '/api/wms/platform-dict/selectPlatformDictTypeListByPage',
method: 'post', method: 'post',
data data
}) })
@ -17,7 +17,7 @@ export function dataDictionaryTypeList(data) { // 获取字典类型列表
export function dataDictionaryTypeDetail(id) { // 获取字典类型单条数据 export function dataDictionaryTypeDetail(id) { // 获取字典类型单条数据
return request({ return request({
url: '/basic/platform-dict/selectDictTypeById', url: '/api/wms/platform-dict/selectDictTypeById',
method: 'post', method: 'post',
data: { id } data: { id }
}) })
@ -25,7 +25,7 @@ export function dataDictionaryTypeDetail(id) { // 获取字典类型单条数据
export function dataDictionaryTypeUpdate(data) { // 更新字典类型单条数据 export function dataDictionaryTypeUpdate(data) { // 更新字典类型单条数据
return request({ return request({
url: '/basic/platform-dict/updatePlatformDictType', url: '/api/wms/platform-dict/updatePlatformDictType',
method: 'post', method: 'post',
data data
}) })
@ -33,7 +33,7 @@ export function dataDictionaryTypeUpdate(data) { // 更新字典类型单条数
export function dataDictionaryTypeAdd(data) { // 新增字典类型单条数据 export function dataDictionaryTypeAdd(data) { // 新增字典类型单条数据
return request({ return request({
url: '/basic/platform-dict/savePlatformDictType', url: '/api/wms/platform-dict/savePlatformDictType',
method: 'post', method: 'post',
data data
}) })
@ -41,7 +41,7 @@ export function dataDictionaryTypeAdd(data) { // 新增字典类型单条数据
export function dataDictionaryTypeDelete(id) { // 删除字典类型单条数据 export function dataDictionaryTypeDelete(id) { // 删除字典类型单条数据
return request({ return request({
url: '/basic/platform-dict/deletePlatformDictType', url: '/api/wms/platform-dict/deletePlatformDictType',
method: 'post', method: 'post',
data: { id } data: { id }
}) })

View File

@ -1,7 +1,7 @@
/* /*
* @Date: 2021-01-15 17:42:07 * @Date: 2021-01-15 17:42:07
* @LastEditors: Please set LastEditors * @LastEditors: zwq
* @LastEditTime: 2021-07-12 10:31:01 * @LastEditTime: 2022-03-03 13:52:50
* @FilePath: \basic-admin\src\api\equipment\maintain.js * @FilePath: \basic-admin\src\api\equipment\maintain.js
* @Description: 保养计划 & 保养记录 接口定义 * @Description: 保养计划 & 保养记录 接口定义
*/ */
@ -109,7 +109,7 @@ export function getMaintainLog(data) {
// 获取设备列表 // 获取设备列表
export function getEqList(data) { export function getEqList(data) {
return request({ return request({
url: '/basic/equipment/page', url: '/api/wms/equipment/page',
method: 'post', method: 'post',
data data
}) })

View File

@ -1,15 +1,22 @@
/*
* @Author: zwq
* @Date: 2021-09-18 16:09:07
* @LastEditors: zwq
* @LastEditTime: 2022-03-03 09:52:41
* @Description:
*/
import request from '@/utils/request' import request from '@/utils/request'
export function list(data) { export function list(data) {
return request({ return request({
url: 'material/material-date/materialList', url: 'api/process/process-flow-equipment/equipmentList',
method: 'post', method: 'post',
data data
}) })
} }
export function listEquipment(data) { export function listEquipment(data) {
return request({ return request({
url: 'material/equipment-material-replace/equipmentList', url: 'api/process/process-flow-equipment/equipmentList',
method: 'post', method: 'post',
data data
}) })

View File

@ -1,15 +1,15 @@
/* /*
* @Author: zwq * @Author: zwq
* @Date: 2020-12-29 16:00:14 * @Date: 2020-12-29 16:00:14
* @LastEditors: Please set LastEditors * @LastEditors: zwq
* @LastEditTime: 2021-07-20 10:30:39 * @LastEditTime: 2022-03-03 13:57:00
* @Description: * @Description:
*/ */
import request from '@/utils/request' import request from '@/utils/request'
export function workOrderList(data) { // 获取工单列表 export function workOrderList(data) { // 获取工单列表
return request({ return request({
url: '/order/work-order/page', url: '/api/order/work-order/page',
method: 'post', method: 'post',
data data
}) })
@ -20,7 +20,7 @@ export function workOrderDetail(id) { // 获取工单单条数据
'id': id 'id': id
} }
return request({ return request({
url: '/order/work-order/get', url: '/api/order/work-order/get',
method: 'post', method: 'post',
data data
}) })
@ -28,7 +28,7 @@ export function workOrderDetail(id) { // 获取工单单条数据
export function workOrderUpdate(data) { // 更新工单单条数据 export function workOrderUpdate(data) { // 更新工单单条数据
return request({ return request({
url: '/order/work-order/update', url: '/api/order/work-order/update',
method: 'post', method: 'post',
data data
}) })
@ -36,7 +36,7 @@ export function workOrderUpdate(data) { // 更新工单单条数据
export function workOrderAdd(data) { // 新增工单单条数据 export function workOrderAdd(data) { // 新增工单单条数据
return request({ return request({
url: '/order/work-order/add', url: '/api/order/work-order/add',
method: 'post', method: 'post',
data data
}) })
@ -44,14 +44,14 @@ export function workOrderAdd(data) { // 新增工单单条数据
export function workOrderCode() { // 获取工单code export function workOrderCode() { // 获取工单code
return request({ return request({
url: '/order/work-order/get-code', url: '/api/order/work-order/get-code',
method: 'post' method: 'post'
}) })
} }
export function workOrderDelete(id) { // 删除工单单条数据 export function workOrderDelete(id) { // 删除工单单条数据
return request({ return request({
url: '/order/work-order/delete', url: '/api/order/work-order/delete',
method: 'post', method: 'post',
data: { id } data: { id }
}) })
@ -59,7 +59,7 @@ export function workOrderDelete(id) { // 删除工单单条数据
export function workOrderIssueList(data) { // 获取工单下发列表 export function workOrderIssueList(data) { // 获取工单下发列表
return request({ return request({
url: '/order/wo-sync/page', url: '/api/order/wo-sync/page',
method: 'post', method: 'post',
data data
}) })
@ -67,7 +67,7 @@ export function workOrderIssueList(data) { // 获取工单下发列表
export function packagingBoxList(data) { // 获取包装基板列表 export function packagingBoxList(data) { // 获取包装基板列表
return request({ return request({
url: '/order/wo-packaging-box-substrate/page', url: '/api/order/wo-packaging-box-substrate/page',
method: 'post', method: 'post',
data data
}) })
@ -75,7 +75,7 @@ export function packagingBoxList(data) { // 获取包装基板列表
export function packagingList(data) { // 获取包装标签列表 export function packagingList(data) { // 获取包装标签列表
return request({ return request({
url: '/order/wo-packaging-box/page', url: '/api/order/wo-packaging-box/page',
method: 'post', method: 'post',
data data
}) })
@ -86,7 +86,7 @@ export function packagingDetail(id) { // 获取包装标签详情
'id': id 'id': id
} }
return request({ return request({
url: '/order/wo-packaging-box/get', url: '/api/order/wo-packaging-box/get',
method: 'post', method: 'post',
data data
}) })
@ -94,7 +94,7 @@ export function packagingDetail(id) { // 获取包装标签详情
export function syncAdd(data) { // 新增下发工单单条数据 export function syncAdd(data) { // 新增下发工单单条数据
return request({ return request({
url: '/order/wo-sync/add', url: '/api/order/wo-sync/add',
method: 'post', method: 'post',
data data
}) })
@ -102,7 +102,7 @@ export function syncAdd(data) { // 新增下发工单单条数据
export function packagingInventoryList(data) { // 获取包装清单列表 export function packagingInventoryList(data) { // 获取包装清单列表
return request({ return request({
url: '/order/wo-packaging-box/page-for-inventory', url: '/api/order/wo-packaging-box/page-for-inventory',
method: 'post', method: 'post',
data data
}) })
@ -110,7 +110,7 @@ export function packagingInventoryList(data) { // 获取包装清单列表
export function updateForStatus(data) { // 激活 export function updateForStatus(data) { // 激活
return request({ return request({
url: '/order/work-order/updateForStatus', url: '/api/order/work-order/updateForStatus',
method: 'post', method: 'post',
data data
}) })

View File

@ -1,7 +1,7 @@
/* /*
* @Date: 2021-03-15 10:27:40 * @Date: 2021-03-15 10:27:40
* @LastEditors: Please set LastEditors * @LastEditors: zwq
* @LastEditTime: 2021-07-09 14:35:26 * @LastEditTime: 2022-03-03 15:40:29
* @FilePath: \basic-admin\src\api\quality-manage\scrap.js * @FilePath: \basic-admin\src\api\quality-manage\scrap.js
* @Description: * @Description:
*/ */
@ -9,7 +9,7 @@ import request from '@/utils/request'
export function getScrapList(data) { export function getScrapList(data) {
return request({ return request({
url: '/quality/scrap/page', url: '/api/wms/scrap/page',
method: 'post', method: 'post',
data data
}) })
@ -17,7 +17,7 @@ export function getScrapList(data) {
export function delScrapInfo(data) { export function delScrapInfo(data) {
return request({ return request({
url: '/quality/scrap/delete', url: '/api/wms/scrap/delete',
method: 'post', method: 'post',
data data
}) })
@ -25,7 +25,7 @@ export function delScrapInfo(data) {
export function editScrapInfo(data) { export function editScrapInfo(data) {
return request({ return request({
url: '/quality/scrap/update', url: '/api/wms/scrap/update',
method: 'post', method: 'post',
data data
}) })
@ -33,14 +33,14 @@ export function editScrapInfo(data) {
export function addScrapInfo(data) { export function addScrapInfo(data) {
return request({ return request({
url: '/quality/scrap/create', url: '/api/wms/scrap/create',
method: 'post', method: 'post',
data data
}) })
} }
export function getScrapInfo(data) { export function getScrapInfo(data) {
return request({ return request({
url: '/quality/scrap/findById', url: '/api/wms/scrap/findById',
method: 'post', method: 'post',
data data
}) })
@ -49,7 +49,7 @@ export function getScrapInfo(data) {
// 废品报废 原因 // 废品报废 原因
export function getscrapReason(data) { export function getscrapReason(data) {
return request({ return request({
url: '/basic/scrap-information/get', url: '/api/wms/scrap-information/get',
method: 'post', method: 'post',
data data
}) })
@ -58,7 +58,7 @@ export function getscrapReason(data) {
// 根据设备id查询肺片等级 // 根据设备id查询肺片等级
export function getScrap(id) { export function getScrap(id) {
return request({ return request({
url: '/basic/equipment-scraps-grade/getScrapsGradeByEquipmentId', url: '/api/wms/equipment-scraps-grade/getScrapsGradeByEquipmentId',
method: 'post', method: 'post',
data: { id } data: { id }
}) })

View File

@ -1,7 +1,7 @@
/* /*
* @Date: 2021-03-15 10:27:40 * @Date: 2021-03-15 10:27:40
* @LastEditors: Please set LastEditors * @LastEditors: zwq
* @LastEditTime: 2021-07-09 14:35:26 * @LastEditTime: 2022-03-03 15:40:35
* @FilePath: \basic-admin\src\api\quality-manage\scrap.js * @FilePath: \basic-admin\src\api\quality-manage\scrap.js
* @Description: * @Description:
*/ */
@ -9,7 +9,7 @@ import request from '@/utils/request'
export function getList(data) { export function getList(data) {
return request({ return request({
url: '/quality/scrap/findReportByEquipmentId', url: '/api/wms/scrap/findReportByEquipmentId',
method: 'post', method: 'post',
data data
}) })
@ -18,7 +18,7 @@ export function getList(data) {
// 废品报废 原因 // 废品报废 原因
export function getscrapReason(data) { export function getscrapReason(data) {
return request({ return request({
url: '/basic/scrap-information/get', url: '/api/wms/scrap-information/get',
method: 'post', method: 'post',
data data
}) })

View File

@ -952,6 +952,18 @@ export default {
zh: '质量检测计划', zh: '质量检测计划',
en: 'Quality Detect Plan' en: 'Quality Detect Plan'
}, },
scrapManagement: {
zh: '废片管理',
en: 'Scrap management',
gradeInfo: {
zh: '等级信息',
en: 'Grade Info'
},
scrapInfo: {
zh: '废片信息',
en: 'Scrap Info'
}
},
knowledge: { knowledge: {
zh: '维护保养知识库', zh: '维护保养知识库',
en: 'Maintain the knowledge base' en: 'Maintain the knowledge base'

View File

@ -187,6 +187,24 @@ export const constantRoutes = [
meta: { title: routerTitle.basicData.materials.materialType?.[language] || routerTitle.basicData.materials.materialType.en, icon: 'form', affix: true, required: true, requireToken: true } meta: { title: routerTitle.basicData.materials.materialType?.[language] || routerTitle.basicData.materials.materialType.en, icon: 'form', affix: true, required: true, requireToken: true }
} }
] ]
},
{
path: '/dataDictionary',
component: () => import('@/views/basicData/index'),
name: 'dataDictionary',
meta: { title: routerTitle.basicData.dataDictionaryType.dataDictionary?.[language] || routerTitle.basicData.dataDictionaryType.dataDictionary.en, icon: 'form', affix: true, required: true, requireToken: true },
children: [{
path: 'dataDictionary',
component: () => import('@/views/basicData/dataDictionary'),
name: 'dataDictionary',
meta: { title: routerTitle.basicData.dataDictionaryType?.[language] || routerTitle.basicData.dataDictionaryType.en, icon: 'form', affix: true, required: true, requireToken: true }
}, {
path: 'dataDictionaryData',
component: () => import('@/views/basicData/components/dataDictionaryData'),
hidden: true,
name: 'dataDictionaryData',
meta: { title: routerTitle.basicData.dataDictionaryType.dataDictionary?.[language] || routerTitle.basicData.dataDictionaryType.dataDictionary.en, icon: 'form', affix: true, required: true, requireToken: true }
}]
} }
] ]
}, },
@ -301,95 +319,45 @@ 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: [
{
path: 'scrap',
component: () => import('@/views/QualityManager/scrap'),
name: 'scrapManage',
meta: { title: routerTitle.quality.scrap?.[language] || routerTitle.quality.scrap.en, icon: 'form', iconPart: 'formwhite', affix: true, required: true, requireToken: true, unuse: true }
},
{
path: 'scrapcategorystatistics',
component: () => import('@/views/QualityManager/scrap/scrapCategoryStatistics'),
name: 'scrapCategoryStatistics',
meta: { title: routerTitle.quality.scrapcategorystatistics?.[language] || routerTitle.quality.scrapcategorystatistics.en, icon: 'form', iconPart: 'formwhite', affix: true, required: true, requireToken: true, unuse: true }
},
{ {
path: 'plan', path: 'plan',
component: () => import('@/views/QualityManager/plan'), component: () => import('@/views/QualityManager/QCPplan'),
name: 'PlanManage', name: 'PlanManage',
meta: { title: routerTitle.quality.plan?.[language] || routerTitle.quality.plan.en, icon: 'form', affix: true } meta: { title: routerTitle.quality.plan?.[language] || routerTitle.quality.plan.en, icon: 'form', affix: true }
}, {
path: 'planparam',
component: () => import('@/views/QualityManager/plan/subpage/detail'),
name: 'PlanParamManage',
hidden: true,
meta: { title: routerTitle.quality.planform?.[language] || routerTitle.quality.planform.en, icon: 'form', affix: true }
}, {
path: 'issue',
component: () => import('@/views/QualityManager/plan/issuedplan'),
name: 'PlanIssuedManage',
meta: { title: routerTitle.quality.issuedplan?.[language] || routerTitle.quality.issuedplan.en, icon: 'form', affix: true }
}, },
{ {
path: '/offlineDetec', path: '/offlineDetec',
component: () => import('@/views/basicData/index'), component: () => import('@/views/basicData/index'),
name: 'offlineDetec', name: 'offlineDetec',
meta: { title: routerTitle.quality.offlineDetec?.[language] || routerTitle.quality.offlineDetec.en, icon: 'form', affix: true, required: true, requireToken: true }, meta: { title: routerTitle.quality.scrapManagement?.[language] || routerTitle.quality.scrapManagement.en, icon: 'form', affix: true, required: true, requireToken: true },
children: [ children: [
{ {
path: 'detecParam', path: 'ScrapInfo',
component: () => component: () => import('@/views/basicData/Scrap/ScrapInfo'),
import('@/views/QualityManager/offlineDetec/detecParam'), name: 'ScrapInfo',
name: 'detecParam', meta: { title: routerTitle.basicData.scrap.scrapInfo?.[language] || routerTitle.basicData.scrap.scrapInfo.en, icon: 'form', affix: true, required: true, requireToken: true }
hidden: true,
meta: { title: routerTitle.quality.offlineDetec.detecParam?.[language] || routerTitle.quality.offlineDetec.detecParam.detecParam.en, icon: 'form', affix: true, required: true, requireToken: true }
}, },
{ {
path: 'detecParamAdd', path: 'ScrapType',
component: () => component: () => import('@/views/basicData/Scrap/ScrapType'),
import('@/views/QualityManager/offlineDetec/components/detecParam-add'), name: 'ScrapType',
name: 'detecParamAdd', meta: { title: routerTitle.basicData.scrap.scrapType?.[language] || routerTitle.basicData.scrap.scrapType.en, icon: 'form', affix: true, required: true, requireToken: true }
hidden: true,
meta: { title: routerTitle.quality.offlineDetec.detecParam?.[language] || routerTitle.quality.offlineDetec.detecParam.detecParam.en, icon: 'form', affix: true, required: true, requireToken: true }
}, },
{ {
path: 'equipmentDetectParam', path: 'EquipmentScrapGrade',
component: () => component: () => import('@/views/basicData/EquipmentScrapGrade'),
import('@/views/basicData/Equipment/equipmentDetectParam'), name: 'EquipmentScrapGrade',
name: 'equipmentDetectParam', meta: { title: routerTitle.basicData.EquipmentScrapGrade?.[language] || routerTitle.basicData.EquipmentScrapGrade.en, icon: 'form', affix: true, required: true, requireToken: true }
hidden: true,
meta: { title: routerTitle.basicData.equipment.equipmentDetectInfo.equipmentDetectParam?.[language] || routerTitle.basicData.equipment.equipmentDetectInfo.equipmentDetectParam.en, icon: 'form', affix: true, required: true, requireToken: true }
}, },
{ {
path: 'equipmentDetectParamAdd', path: 'scrap',
component: () => component: () => import('@/views/QualityManager/scrap'),
import('@/views/basicData/Equipment/components/equipmentDetectParam-add'), name: 'scrapManage',
name: 'equipmentDetectParamAdd', meta: { title: routerTitle.quality.scrap?.[language] || routerTitle.quality.scrap.en, icon: 'form', iconPart: 'formwhite', affix: true, required: true, requireToken: true, unuse: true }
meta: { title: routerTitle.basicData.equipment.equipmentDetectInfo.equipmentDetectParam?.[language] || routerTitle.basicData.equipment.equipmentDetectInfo.equipmentDetectParam.en, icon: 'form', affix: true, required: true, requireToken: true }
},
{
path: 'detecRegistration',
component: () =>
import('@/views/QualityManager/offlineDetec/detecRegistration'),
name: 'detecRegistration',
meta: { title: routerTitle.quality.offlineDetec.detecRegistration?.[language] || routerTitle.quality.offlineDetec.detecRegistration.en, icon: 'form', affix: true, required: true, requireToken: true }
} }
] ]
},
{
path: '/spc',
component: () => import('@/views/spc/index'),
name: 'spcManage',
meta: { title: routerTitle.spc?.[language] || routerTitle.spc.en, icon: 'form', iconPart: 'formwhite', affix: true, required: true, requireToken: true, openUrl: 'http://58.210.206.230:8000/thirdLogin?username=ZJCadmin&password=123456' }
},
{
path: 'knowledge',
component: () => import('@/views/QualityManager/base/knowledge'),
name: 'knowledge',
meta: { title: routerTitle.quality.knowledge?.[language] || routerTitle.quality.knowledge.en, icon: 'form', iconPart: 'formwhite', affix: true }
} }
] ]
}, },
@ -437,7 +405,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: [
{ {

View File

@ -0,0 +1,178 @@
<!--
* @Author: zwq
* @Date: 2020-12-29 15:41:11
* @LastEditors: zwq
* @LastEditTime: 2022-03-03 14:28:58
* @Description:
-->
<template>
<div class="app-container">
<head-form
:placeholder-name="placeholderName"
:key-name="keyName"
:show-add="showAdd"
@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()"
/>
</div>
</template>
<script>
import i18n from '@/lang'
import { StateConfigList, StateConfigDelete } from '@/api/basicData/StateConfig'
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'
/**
* 表格表头配置项 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: 'status',
label: i18n.t('module.basicData.StateConfig.status'),
align: 'center'
},
{
prop: 'twinkle',
label: i18n.t('module.basicData.StateConfig.Twinkle'),
filter: basicData('onDuty'),
align: 'center'
},
{
prop: 'colour',
label: i18n.t('module.basicData.StateConfig.DisplayColor'),
align: 'center'
},
{
prop: 'description',
label: i18n.t('module.basicData.visual.Remarks'),
align: 'center'
}
]
export default {
name: 'QCPplan',
components: { Pagination, BaseTable, MethodBtn, HeadForm },
data() {
return {
keyName: i18n.t('module.basicData.visual.keyword'),
placeholderName: this.$t('module.basicData.StateConfig.status'),
addOrUpdateVisible: false,
tableBtn,
trueWidth: 150,
tableProps,
list: [],
total: 0,
showAdd: false,
listLoading: true,
listQuery: {
current: 1,
size: 10
}
}
},
created() {
this.getList()
},
methods: {
handleClick(raw) {
console.log(raw)
if (raw.type === 'delete') {
this.$confirm(`${this.$t('module.basicData.visual.TipsBefore')}[${raw.data.status}]?`, this.$t('module.basicData.visual.Tips'), {
confirmButtonText: this.$t('module.basicData.visual.confirmButtonText'),
cancelButtonText: this.$t('module.basicData.visual.cancelButtonText'),
type: 'warning'
}).then(() => {
StateConfigDelete(raw.data.id).then(response => {
this.$message({
message: this.$t('module.basicData.visual.success'),
type: 'success',
duration: 1500,
onClose: () => {
this.getList()
}
})
})
}).catch(() => {})
}
},
getList(key) {
this.listLoading = true
this.listQuery.status = key
StateConfigList(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>

View File

@ -13,11 +13,11 @@
{{ i.equipmentId ? equipmentObj[i.equipmentId] : $t('module.art.eqName') }} {{ i.equipmentId ? equipmentObj[i.equipmentId] : $t('module.art.eqName') }}
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="4" class="process-table-main-item-item"> <!-- <el-col :span="4" class="process-table-main-item-item">
<el-button v-if="!processPortObj[item.workSequenceId]" disabled> <el-button v-if="!processPortObj[item.workSequenceId]" disabled>
{{ i.equipmentRecipeId ? equipmentRecipeObj[i.equipmentRecipeId] : $t('module.art.recipeName') }} {{ i.equipmentRecipeId ? equipmentRecipeObj[i.equipmentRecipeId] : $t('module.art.recipeName') }}
</el-button> </el-button>
</el-col> </el-col> -->
<!-- <el-col :span="4" class="process-table-main-item-item"> <!-- <el-col :span="4" class="process-table-main-item-item">
<el-button v-if="!processPortObj[item.workSequenceId]" disabled> <el-button v-if="!processPortObj[item.workSequenceId]" disabled>
{{ i.nodeType ? nodeTypesObj[i.nodeType] : $t('module.art.artType') }} {{ i.nodeType ? nodeTypesObj[i.nodeType] : $t('module.art.artType') }}
@ -36,7 +36,7 @@
</template> </template>
<script> <script>
import { import {
listAllEquipmentRecipe, // listAllEquipmentRecipe,
listProcessFlowNode, listProcessFlowNode,
listProcess listProcess
} from '@/api/art-manage/art.js' } from '@/api/art-manage/art.js'
@ -57,7 +57,7 @@ export default {
processObj: {}, processObj: {},
processPortObj: {}, processPortObj: {},
equipmentRecipeList: [], equipmentRecipeList: [],
equipmentRecipeObj: [], // equipmentRecipeObj: [],
equipmentList: [], equipmentList: [],
equipmentObj: {}, equipmentObj: {},
showAddList: [], showAddList: [],
@ -102,12 +102,12 @@ export default {
console.log(this.processList) console.log(this.processList)
console.log(this.processObj) console.log(this.processObj)
// //
const allRecipeRes = await listAllEquipmentRecipe() // const allRecipeRes = await listAllEquipmentRecipe()
this.equipmentRecipeList = allRecipeRes.data // this.equipmentRecipeList = allRecipeRes.data
allRecipeRes.data.map(item => { // allRecipeRes.data.map(item => {
this.equipmentRecipeObj[item.id] = item.name // this.equipmentRecipeObj[item.id] = item.name
}) // })
console.log(this.equipmentRecipeList) // console.log(this.equipmentRecipeList)
// //
const allEquipmentRes = await listEquipment() const allEquipmentRes = await listEquipment()
this.equipmentList = allEquipmentRes.data this.equipmentList = allEquipmentRes.data

View File

@ -19,11 +19,11 @@
{{ i.equipmentId ? equipmentObj[i.equipmentId] : $t('module.art.eqName') }} {{ i.equipmentId ? equipmentObj[i.equipmentId] : $t('module.art.eqName') }}
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="4" class="process-table-main-item-item"> <!-- <el-col :span="4" class="process-table-main-item-item">
<el-button v-if="!processPortObj[item.workSequenceId]" icon="el-icon-edit" @click="choiceRecipe(index, idx, i.equipmentRecipeId)"> <el-button v-if="!processPortObj[item.workSequenceId]" icon="el-icon-edit" @click="choiceRecipe(index, idx, i.equipmentRecipeId)">
{{ i.equipmentRecipeId ? equipmentRecipeObj[i.equipmentRecipeId] : $t('module.art.recipeName') }} {{ i.equipmentRecipeId ? equipmentRecipeObj[i.equipmentRecipeId] : $t('module.art.recipeName') }}
</el-button> </el-button>
</el-col> </el-col> -->
<!-- <el-col :span="4" class="process-table-main-item-item"> <!-- <el-col :span="4" class="process-table-main-item-item">
<el-button v-if="!processPortObj[item.workSequenceId]" icon="el-icon-edit" @click="choiceArtType(index, idx, i.nodeType)"> <el-button v-if="!processPortObj[item.workSequenceId]" icon="el-icon-edit" @click="choiceArtType(index, idx, i.nodeType)">
{{ i.nodeType ? nodeTypesObj[i.nodeType] : $t('module.art.artType') }} {{ i.nodeType ? nodeTypesObj[i.nodeType] : $t('module.art.artType') }}
@ -55,7 +55,7 @@ import processTableSelect from './process-table-select.vue'
import processTableAdd from './process-table-add.vue' import processTableAdd from './process-table-add.vue'
import vuedraggable from 'vuedraggable' import vuedraggable from 'vuedraggable'
import { import {
listAllEquipmentRecipe, // listAllEquipmentRecipe,
addProcessFlows, addProcessFlows,
listProcessFlowNode, listProcessFlowNode,
listProcess listProcess
@ -82,7 +82,7 @@ export default {
processObj: {}, processObj: {},
processPortObj: {}, processPortObj: {},
equipmentRecipeList: [], equipmentRecipeList: [],
equipmentRecipeObj: [], // equipmentRecipeObj: [],
equipmentList: [], equipmentList: [],
equipmentObj: {}, equipmentObj: {},
showAddList: [], showAddList: [],
@ -131,12 +131,12 @@ export default {
console.log(this.processList) console.log(this.processList)
console.log(this.processObj) console.log(this.processObj)
// //
const allRecipeRes = await listAllEquipmentRecipe() // const allRecipeRes = await listAllEquipmentRecipe()
this.equipmentRecipeList = allRecipeRes.data // this.equipmentRecipeList = allRecipeRes.data
allRecipeRes.data.map(item => { // allRecipeRes.data.map(item => {
this.equipmentRecipeObj[item.id] = item.name // this.equipmentRecipeObj[item.id] = item.name
}) // })
console.log(this.equipmentRecipeList) // console.log(this.equipmentRecipeList)
// //
const allEquipmentRes = await listEquipment() const allEquipmentRes = await listEquipment()
this.equipmentList = allEquipmentRes.data this.equipmentList = allEquipmentRes.data
@ -197,8 +197,8 @@ export default {
nodeType: '', nodeType: '',
processFlowId: this.processFlowId, processFlowId: this.processFlowId,
workSequenceId: this.dataList[index].workSequenceId, workSequenceId: this.dataList[index].workSequenceId,
description: this.dataList[index].processFlowEquipmentParams[0]?.description ? this.dataList[index].processFlowEquipmentParams[0].description : '', description: this.dataList[index].processFlowEquipmentParams[0].description ? this.dataList[index].processFlowEquipmentParams[0].description : '',
remark: this.dataList[index].processFlowEquipmentParams[0]?.remark ? this.dataList[index].processFlowEquipmentParams[0].remark : '' remark: this.dataList[index].processFlowEquipmentParams[0].remark ? this.dataList[index].processFlowEquipmentParams[0].remark : ''
}) })
e.stopPropagation() e.stopPropagation()
}, },
@ -232,16 +232,16 @@ export default {
this.$refs.processtableselect.init('equipmentId', first, sec, id, this.processObj[processId].equipments) this.$refs.processtableselect.init('equipmentId', first, sec, id, this.processObj[processId].equipments)
}, },
// //
choiceRecipe(first, sec, id) { // choiceRecipe(first, sec, id) {
if (this.dataList[first].processFlowEquipmentParams[sec]?.equipmentId) { // if (this.dataList[first].processFlowEquipmentParams[sec]?.equipmentId) {
this.$refs.processtableselect.init('equipmentRecipeId', first, sec, id, this.equipmentRecipeList.filter(f => f.equipmentId === this.dataList[first].processFlowEquipmentParams[sec].equipmentId)) // this.$refs.processtableselect.init('equipmentRecipeId', first, sec, id, this.equipmentRecipeList.filter(f => f.equipmentId === this.dataList[first].processFlowEquipmentParams[sec].equipmentId))
} else { // } else {
this.$message.error(this.$t('module.art.choiceEqError')) // this.$message.error(this.$t('module.art.choiceEqError'))
} // }
}, // },
// //
choiceArtType(first, sec, id) { choiceArtType(first, sec, id) {
if (this.dataList[first].processFlowEquipmentParams[sec]?.equipmentId) { if (this.dataList[first].processFlowEquipmentParams[sec].equipmentId) {
this.$refs.processtableselect.init('nodeType', first, sec, id, this.nodeTypes) this.$refs.processtableselect.init('nodeType', first, sec, id, this.nodeTypes)
} else { } else {
this.$message.error(this.$t('module.art.choiceEqError')) this.$message.error(this.$t('module.art.choiceEqError'))
@ -307,13 +307,14 @@ export default {
hasNull = true hasNull = true
} }
}) })
} else {
item.processFlowEquipmentParams.map(i => {
if (!i.equipmentId || !i.equipmentRecipeId) {
hasNull = true
}
})
} }
// else {
// item.processFlowEquipmentParams.map(i => {
// if (!i.equipmentId || !i.equipmentRecipeId) {
// hasNull = true
// }
// })
// }
}) })
// console.log(JSON.stringify(vm.dataList)) // console.log(JSON.stringify(vm.dataList))
// if (vm.dataList.length === 0) { // if (vm.dataList.length === 0) {