diff --git a/.env.dev b/.env.dev index 6a03e051..a8a3e6c2 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2024-02-29 08:34:48 + # @LastEditTime: 2024-03-01 15:27:52 # @LastEditors: zhp # @Description: ### diff --git a/src/api/base/coreWorkOrder.js b/src/api/base/coreWorkOrder.js index 656d4a69..84d69b54 100644 --- a/src/api/base/coreWorkOrder.js +++ b/src/api/base/coreWorkOrder.js @@ -153,3 +153,12 @@ export function createConCoreWOr(data) { data: data }) } + +// 修改分配产量 +export function updateConCoreWOr(data) { + return request({ + url: '/base/core-order-con-work-order/update', + method: 'put', + data: data + }) +} diff --git a/src/api/equipment/base/inspection/record.js b/src/api/equipment/base/inspection/record.js index 40b48b73..c89e2152 100644 --- a/src/api/equipment/base/inspection/record.js +++ b/src/api/equipment/base/inspection/record.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-11-08 15:56:52 - * @LastEditTime: 2024-02-26 09:29:53 + * @LastEditTime: 2024-02-28 18:16:56 * @LastEditors: DY * @Description: */ @@ -52,6 +52,17 @@ export function exportCheckLogExcel(query) { }) } +// 导出设备巡检单记录 +export function exportCheckOrderExcel(query) { + return request({ + url: '/base/equipment-check-order/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} + + // 根据设备获得所有巡检配置列表 export function getcheckConfigByEqList(query) { return request({ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 2e4ce999..f425c469 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -87,6 +87,7 @@ const user = { // 获取用户信息 GetInfo({ commit, state }) { return new Promise((resolve, reject) => { + console.log('GetInfo') getInfo().then(res => { // 没有 data 数据,赋予个默认值 if (!res) { @@ -96,7 +97,7 @@ const user = { user: { id: '', avatar: '', - userName: '', + username: '', nickname: '' } } @@ -113,7 +114,7 @@ const user = { commit('SET_ROLES', ['ROLE_DEFAULT']) } commit('SET_ID', user.id) - commit('SET_NAME', user.userName) + // commit('SET_NAME', user.username) //无效调用,接口未提供username值 commit('SET_NICKNAME', user.nickname) commit('SET_AVATAR', avatar) resolve(res) diff --git a/src/utils/equipment-module.js b/src/utils/equipment-module.js new file mode 100644 index 00000000..42de6eb7 --- /dev/null +++ b/src/utils/equipment-module.js @@ -0,0 +1,4 @@ +import { getDictData } from './dict'; + +export const groupConnectWorkshop = (groupName, workshopValue) => + `${groupName} - ${getDictData('workshop', workshopValue)?.label}`; diff --git a/src/views/base/coreEquipmentLineBind/dialogForm.vue b/src/views/base/coreEquipmentLineBind/dialogForm.vue index dd6e76a4..10a1e991 100644 --- a/src/views/base/coreEquipmentLineBind/dialogForm.vue +++ b/src/views/base/coreEquipmentLineBind/dialogForm.vue @@ -83,20 +83,14 @@ - + + placeholder="请输入工段排序" + style="width: 100%" /> diff --git a/src/views/base/coreProduct/add-or-updata.vue b/src/views/base/coreProduct/add-or-updata.vue index 9c4c5808..c39e7584 100644 --- a/src/views/base/coreProduct/add-or-updata.vue +++ b/src/views/base/coreProduct/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2024-02-27 15:38:04 + * @LastEditTime: 2024-02-29 15:01:25 * @Description: -->