From d2e271f7b59177bf01a1b0746e275a6b89cab1fe Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Fri, 29 Mar 2024 15:56:07 +0800 Subject: [PATCH] =?UTF-8?q?2024-03-29=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/part/masterPartInformation.js | 8 ++- .../modules/changeManagement/changeRecord.vue | 6 +- .../changeManagement/changeRequest.vue | 4 +- src/views/modules/part/bomManagement.vue | 2 +- .../modules/part/partCatalogInformation.vue | 55 +++++++++++++++++-- src/views/modules/part/recipeManagement.vue | 2 +- src/views/modules/part/routingManagement.vue | 2 +- 7 files changed, 66 insertions(+), 13 deletions(-) diff --git a/src/api/part/masterPartInformation.js b/src/api/part/masterPartInformation.js index b5d5553..cd4788c 100644 --- a/src/api/part/masterPartInformation.js +++ b/src/api/part/masterPartInformation.js @@ -70,8 +70,12 @@ export const commitItemValue = data => createAPI(`/plm/masterPartInformation/com */ export const queryMasterPartItem = data => createAPI(`/plm/masterPartInformation/queryMasterPartItem`,'post',data) - - +/** + * master part 转正式物料 + * @param data + * @returns {*} + */ +export const toBecomeOfficialMasterPart = data => createAPI(`/plm/masterPartInformation/toBecomeOfficialMasterPart`,'post',data) diff --git a/src/views/modules/changeManagement/changeRecord.vue b/src/views/modules/changeManagement/changeRecord.vue index 73ce566..0b6a599 100644 --- a/src/views/modules/changeManagement/changeRecord.vue +++ b/src/views/modules/changeManagement/changeRecord.vue @@ -74,7 +74,7 @@ - +
@@ -651,7 +651,7 @@ - 查询 + 查询 - +
@@ -670,6 +670,7 @@ totalPage: 0, activeName: 'basicInformation', tempPartRow: {}, + changeTitle: '', // 条件查询 searchData: { site: this.$store.state.user.site, @@ -1534,6 +1535,7 @@ detailList: [], ecnTypeData: [] } + this.changeTitle = '变更申请-' + this.modalData.changeNo this.costImpactData = { site: this.$store.state.user.site, changeNo: data.changeNo, diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue index 9194fd9..5bd92f7 100644 --- a/src/views/modules/part/bomManagement.vue +++ b/src/views/modules/part/bomManagement.vue @@ -86,7 +86,7 @@ - + 物料编码 diff --git a/src/views/modules/part/partCatalogInformation.vue b/src/views/modules/part/partCatalogInformation.vue index fc86a5d..3a2268c 100644 --- a/src/views/modules/part/partCatalogInformation.vue +++ b/src/views/modules/part/partCatalogInformation.vue @@ -88,7 +88,7 @@ - + @@ -101,6 +101,9 @@ 多级跟踪
允许为未使用
+ + 转正式物料 +
@@ -171,7 +174,7 @@
- + @@ -375,6 +378,7 @@ addMasterPartItem, // 新增物料属性 deleteMasterPartItem, // 删除物料属性 queryMasterPartItem, + toBecomeOfficialMasterPart, // 转正式物料 } from '@/api/part/masterPartInformation.js' import Chooselist from '@/views/modules/common/Chooselist' import DictDataSelect from '../sys/dict-data-select.vue' @@ -460,7 +464,8 @@ createDate: '', createBy: '', updateDate: '', - updateBy: '' + updateBy: '', + officialFlag: '' }, itemData: { site: this.$store.state.user.site, @@ -519,6 +524,24 @@ fixed: '', columnWidth: 120 }, + { + userId: this.$store.state.user.name, + functionId: 104001, + serialNumber: '104001Table1OfficialFlag', + tableId: '104001Table1', + tableName: '物料信息表', + columnProp: 'officialFlag', + headerAlign: 'center', + align: 'center', + columnLabel: '是否为正式物料', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100 + }, { userId: this.$store.state.user.name, functionId: 104001, @@ -1347,7 +1370,8 @@ lotQuantityRule: 'One Lot Per Production Order', subLotRule: 'No Sub Lots Allowed', componentLotRule: 'Many Lots Allowed', - createBy: this.$store.state.user.name + createBy: this.$store.state.user.name, + officialFlag: 'N' } this.modalDisableFlag = false this.modalFlag = true @@ -1380,7 +1404,8 @@ lotQuantityRule: row.lotQuantityRule, subLotRule: row.subLotRule, componentLotRule: row.componentLotRule, - updateBy: this.$store.state.user.name + updateBy: this.$store.state.user.name, + officialFlag: row.officialFlag } this.modalDisableFlag = true this.modalFlag = true @@ -1506,6 +1531,26 @@ this.$refs.selectDiv.setLengthselected(this.partSelections.length) }, + // 转正式物料 + toBecomeOfficialPart () { + toBecomeOfficialMasterPart(this.modalData).then(({data}) => { + if (data && data.code === 0) { + this.getDataList() + this.modalFlag = false + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }, + // ======== chooseList相关方法 ======== /** * 获取基础数据列表S diff --git a/src/views/modules/part/recipeManagement.vue b/src/views/modules/part/recipeManagement.vue index 8c1404e..e42eaec 100644 --- a/src/views/modules/part/recipeManagement.vue +++ b/src/views/modules/part/recipeManagement.vue @@ -86,7 +86,7 @@ - + 物料编码 diff --git a/src/views/modules/part/routingManagement.vue b/src/views/modules/part/routingManagement.vue index a38c39b..0ba4d79 100644 --- a/src/views/modules/part/routingManagement.vue +++ b/src/views/modules/part/routingManagement.vue @@ -86,7 +86,7 @@ - + 物料编码