Browse Source

2025-06-05

配方BOM增加详情按钮放到权限授权中
master
fengyuan_yang 7 months ago
parent
commit
fb3c371312
  1. 1
      src/views/modules/part/partInformation.vue
  2. 38
      src/views/modules/part/recipeManagement.vue
  3. 31
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue

1
src/views/modules/part/partInformation.vue

@ -5625,6 +5625,7 @@
return { 'background-color': '#E8F7F6', cursor: 'pointer' }
}
},
toPartMenu (ifsPartNo) {
if (this.$router.resolve(`/part-partCatalogInformation`).resolved.name === '404') {
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',})

38
src/views/modules/part/recipeManagement.vue

@ -24,8 +24,8 @@
</el-form-item>
<el-form-item :label="' '">
<el-button :loading="queryLoading" @click="getDataList()">查询</el-button>
<el-button type="primary" @click="addModal()">新增</el-button>
<el-button type="primary" @click="delModal()">删除</el-button>
<el-button v-if="isAuth('104002003:save')" type="primary" @click="addModal()">新增</el-button>
<el-button v-if="isAuth('104002003:delete')" type="primary" @click="delModal()">删除</el-button>
<download-excel
:fields="fields()"
:data="exportData"
@ -78,7 +78,8 @@
width="120"
label="操作">
<template slot-scope="scope">
<el-link style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link>
<el-link v-if="isAuth('104002003:update')" style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link>
<el-link v-if="isAuth('104002003:details')" style="cursor: pointer" @click="detailsModal(scope.row)">详情</el-link>
<el-link style="cursor: pointer" @click="checkOutToRouting(scope.row.partNo)">切换Routing</el-link>
</template>
</el-table-column>
@ -164,7 +165,8 @@
<!-- Recipe明细信息页签 -->
<el-tab-pane label="Product Structure" name="recipe_detail">
<el-form label-position="top" style="margin-top: -10px">
<el-form-item>
<el-form-item v-if="modalData.flag === '3'"></el-form-item>
<el-form-item v-else>
<el-button type="primary" @click="saveRecipeDetail" style="margin-left: 7px">新增</el-button>
<el-button type="primary" @click="deleteRecipeDetail">删除</el-button>
<el-button type="primary" @click="updateRecipeDetail">编辑</el-button>
@ -213,7 +215,8 @@
<!-- Recipe子明细信息页签 -->
<el-tab-pane label="Components" name="recipe_sub_detail">
<el-form label-position="top" style="margin-top: 5px">
<el-form-item>
<el-form-item v-if="modalData.flag === '3'"></el-form-item>
<el-form-item v-else>
<el-button type="primary" @click="saveComponentModal" style="margin-left: 7px">新增</el-button>
<el-button type="primary" @click="deleteComponentPart">删除</el-button>
</el-form-item>
@ -244,6 +247,7 @@
</template>
</el-table-column>
<el-table-column
v-if="modalData.flag !== '3'"
fixed="right"
header-align="center"
align="center"
@ -2943,6 +2947,30 @@ export default {
})
},
//
async detailsModal (row) {
this.modalData = {
...row,
flag: '3',
updateBy: this.$store.state.user.name,
}
this.subDetailTable = 'recipe_sub_detail'
// bom
queryRecipeDetail(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.detailDataList = data.rows.detailList
this.subDetailList = data.rows.componentList
this.detailData = data.rows.detailData
this.modalDisableFlag = true
this.modalFlag = true
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
},
//
saveRecipeDetail () {
if (this.modalData.partNo === '' || this.modalData.partNo == null) {

31
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue

@ -535,29 +535,32 @@
}
})
},
jumpBom(){
if(this.bomData.engChgLevel!=null||this.bomData.engChgLevel!==''){
jumpBom () {
if (this.bomData.engChgLevel != null || this.bomData.engChgLevel !== '') {
this.$message.error("bom明细不存在")
}
let inData={
site:this.searchData.site,
partNo:this.bomData.partNo,
bomType:this.bomData.bomType,
engChgLevel:this.bomData.engChgLevel,
let inData = {
site: this.searchData.site,
partNo: this.bomData.partNo,
bomType: this.bomData.bomType,
engChgLevel: this.bomData.engChgLevel,
}
localStorage.setItem('bomData', JSON.stringify(inData))
window.open('#/part-bomManagement');
window.open('#/part-bomManagement')
},
jumpPeifang(row){
let inData={
site:row.site,
partNo:row.componentPart,
bomType:'Manufacturing',
jumpPeifang (row) {
let inData = {
site: row.site,
partNo: row.componentPart,
bomType: 'Manufacturing',
}
localStorage.setItem('recipeData', JSON.stringify(inData))
window.open('#/part-recipeManagement');
window.open('#/part-recipeManagement')
},
//
getNodeAuthority (row) {
getBMStatusDesc(this.searchData).then(({data}) => {

Loading…
Cancel
Save