diff --git a/src/api/eam/sparePartsOutLocationMain/index.ts b/src/api/eam/sparePartsOutLocationMain/index.ts
index f37538dff..101c1c430 100644
--- a/src/api/eam/sparePartsOutLocationMain/index.ts
+++ b/src/api/eam/sparePartsOutLocationMain/index.ts
@@ -54,6 +54,11 @@ export const deleteSparePartsOutLocationMain = async (id: number) => {
return await request.delete({ url: `/eam/spare-parts-out-location-main/delete?id=` + id })
}
+// 出库
+export const outSparePartsOutLocationMain = async (data) => {
+ return await request.post({ url: `/eam/spare-parts-out-location-main/out`, data })
+}
+
// 导出备件入库记录主 Excel
export const exportSparePartsOutLocationMain = async (params) => {
if (params.isSearch) {
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index 1067dc3c3..fc5dd0a53 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -372,6 +372,7 @@ export enum DICT_TYPE {
EAM_COMPLETE_RESULT = 'eam_complete_result', // 维修状态
OFF_BACK_STATUS = 'off_back_status',
SPAREPARTS_APPLY_STATUS_ENUM = 'spareparts_apply_status_enum', // 流程状态
+ EAM_OUT_STATUS = 'eam_out_status', // 出库状态
IS_LINE_ITEM = 'is_line_item', // 是否是线边
PUT_IN_TYPE = 'put_in_type' // 入库类型
}
diff --git a/src/views/eam/sparePartsApplyMain/index.vue b/src/views/eam/sparePartsApplyMain/index.vue
index a74455eb8..526ca9dc1 100644
--- a/src/views/eam/sparePartsApplyMain/index.vue
+++ b/src/views/eam/sparePartsApplyMain/index.vue
@@ -85,7 +85,7 @@
@@ -105,7 +105,8 @@ import {
SparePartsApplyMain,
SparePartsApplyMainRules,
SparePartsApplyDetail,
- SparePartsApplyDetailRules
+ SparePartsApplyDetailRules,
+ SparePartsApplyExamine
} from './SparePartsApply.data'
import * as SparePartsApplyMainApi from '@/api/eam/sparePartsApplyMain'
import * as SparePartsApplyDetailApi from '@/api/eam/sparePartsApplyDetail'
diff --git a/src/views/eam/sparepartsoutlocation/SparePartsOutLocation.data.ts b/src/views/eam/sparepartsoutlocation/SparePartsOutLocation.data.ts
index a4fdd03c6..4c6785760 100644
--- a/src/views/eam/sparepartsoutlocation/SparePartsOutLocation.data.ts
+++ b/src/views/eam/sparepartsoutlocation/SparePartsOutLocation.data.ts
@@ -25,29 +25,82 @@ export const SparePartsOutLocationMain = useCrudSchemas(
isForm: false
},
{
- label: '描述',
- field: 'description',
+ label: '出库类型',
+ field: 'outType',
+ dictType: DICT_TYPE.EAM_OUT_TYPE,
+ dictClass: 'string',
+ isTable: true,
sort: 'custom',
- isSearch: true
+ isSearch: false,
+ table: {
+ width: 150
+ },
+ tableForm: {
+ type: 'Select'
+ }
},
{
- label: '申领备件总价',
- field: 'sumVal',
+ label: '关联工单',
+ field: 'workNumber',
sort: 'custom',
- isSearch: false,
- isTable: false,
- isForm: false
+ table: {
+ width: 150
+ },
+ form: {
+ // labelMessage: '信息提示说明!!!',
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchTitle: '设备信息', // 查询弹窗标题
+ searchListPlaceholder: '请选择 设备编号', // 输入框占位文本
+ searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类
+ searchField: 'code', // 查询弹窗赋值字段
+ searchPage: EquipmentItemApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法
+ multiple: true,
+ searchCondition: [
+ {
+ key: 'status',
+ value: 'NORMAL',
+ action: '==',
+ isSearch: true,
+ isMainValue: false
+ }
+ ]
+ }
+ },
+ tableForm: {
+ isInpuFocusShow: true,
+ searchListPlaceholder: '请选择备件编号', // 输入框占位文本
+ searchField: 'code', // 查询弹窗赋值字段
+ searchTitle: '备件信息', // 查询弹窗标题
+ searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类
+ searchPage: EquipmentItemApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ {
+ key: 'status',
+ value: 'NORMAL',
+ action: '==',
+ isSearch: true,
+ isMainValue: false
+ }
+ ]
+ }
+ },
+
+ {
+ label: '出库主题',
+ field: 'theme',
+ sort: 'custom',
+ isSearch: true
},
{
label: '流程状态',
field: 'status',
sort: 'custom',
- dictType: DICT_TYPE.SPAREPARTS_APPLY_STATUS_ENUM,
- dictClass: 'string', // 默认都是字符串类型其他暂不考虑
- isSearch: true,
- form: {
- component: 'Select'
- }
+ isSearch: false,
+ isForm: false,
+
+ dictType: DICT_TYPE.EAM_OUT_STATUS,
+ dictClass: 'string'
},
{
label: '申请人',
@@ -204,67 +257,6 @@ export const SparePartsOutLocationDetail = useCrudSchemas(
]
}
},
- {
- label: '设备类别',
- field: 'type',
- dictType: DICT_TYPE.DEVICE_TYPE,
- dictClass: 'string',
- isTable: true,
- sort: 'custom',
- isSearch: false,
- table: {
- width: 150
- },
- tableForm: {
- type: 'Select'
- }
- },
- {
- label: '设备工装编号',
- field: 'equipmentCode',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- // labelMessage: '信息提示说明!!!',
- componentProps: {
- isSearchList: true, // 开启查询弹窗
- searchTitle: '设备信息', // 查询弹窗标题
- searchListPlaceholder: '请选择 设备编号', // 输入框占位文本
- searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类
- searchField: 'code', // 查询弹窗赋值字段
- searchPage: EquipmentItemApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法
- multiple: true,
- searchCondition: [
- {
- key: 'status',
- value: 'NORMAL',
- action: '==',
- isSearch: true,
- isMainValue: false
- }
- ]
- }
- },
- tableForm: {
- isInpuFocusShow: true,
- searchListPlaceholder: '请选择备件编号', // 输入框占位文本
- searchField: 'code', // 查询弹窗赋值字段
- searchTitle: '备件信息', // 查询弹窗标题
- searchAllSchemas: EquipmentAccounts.allSchemas, // 查询弹窗所需类
- searchPage: EquipmentItemApi.getEquipmentAccountsPage, // 查询弹窗所需分页方法
- searchCondition: [
- {
- key: 'status',
- value: 'NORMAL',
- action: '==',
- isSearch: true,
- isMainValue: false
- }
- ]
- }
- },
{
label: '库存数量',
@@ -281,6 +273,16 @@ export const SparePartsOutLocationDetail = useCrudSchemas(
sort: 'custom',
isSearch: false
},
+ {
+ label: '流程状态',
+ field: 'status',
+ sort: 'custom',
+ isSearch: false,
+ isForm: false,
+
+ dictType: DICT_TYPE.EAM_OUT_STATUS,
+ dictClass: 'string'
+ },
{
label: '备注',
field: 'remark',
diff --git a/src/views/eam/sparepartsoutlocation/index.vue b/src/views/eam/sparepartsoutlocation/index.vue
index 6b1cf7df3..79c398022 100644
--- a/src/views/eam/sparepartsoutlocation/index.vue
+++ b/src/views/eam/sparepartsoutlocation/index.vue
@@ -208,10 +208,22 @@ const isShowMainButton = (row, val) => {
}
}
+const isShowStatusButton = (row, val) => {
+ if (val.indexOf(row.status) > -1) {
+ return false
+ } else {
+ return true
+ }
+}
+
// 列表-操作按钮
const butttondata = (row) => {
return [
// defaultButtons.mainAdjust(null),// 盘点调整
+ defaultButtons.mainListApproveBtn({
+ hide: isShowStatusButton(row, ['未出库']),
+ hasPermi: 'request:spare-parts-out-location-main:out'
+ }) //审批通过
]
}
@@ -225,12 +237,26 @@ const buttonTableClick = async (val, row) => {
// // 关闭
// handleClose(row.id)
// }
- else if (val == 'delete') {
+ else if (val == 'mainTurnDown') {
+ //出库
+ handleOut(row.id)
+ } else if (val == 'delete') {
// 删除
handleDelete(row.id)
}
}
+//审核驳回按钮
+const handleOut = async (id: number) => {
+ await message.delConfirm(t('ts.是否出库所选中数据?'))
+ try {
+ await SparePartsOutLocationMainApi.outSparePartsInLocation(id)
+ message.success(t('ts.出库成功!'))
+ // 刷新列表
+ await getList()
+ } catch {}
+}
+
/** 添加/修改操作 */
const formRef = ref()
const openForm = async (type: string, row?: number) => {
diff --git a/src/views/login/forgetPassword.vue b/src/views/login/forgetPassword.vue
index 50f5ef9f7..8655c75fa 100644
--- a/src/views/login/forgetPassword.vue
+++ b/src/views/login/forgetPassword.vue
@@ -1,6 +1,13 @@
-
+
{{ t('ts.忘记密码') }}
@@ -16,70 +23,82 @@