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

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

@ -24,8 +24,8 @@
</el-form-item> </el-form-item>
<el-form-item :label="' '"> <el-form-item :label="' '">
<el-button :loading="queryLoading" @click="getDataList()">查询</el-button> <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 <download-excel
:fields="fields()" :fields="fields()"
:data="exportData" :data="exportData"
@ -78,7 +78,8 @@
width="120" width="120"
label="操作"> label="操作">
<template slot-scope="scope"> <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> <el-link style="cursor: pointer" @click="checkOutToRouting(scope.row.partNo)">切换Routing</el-link>
</template> </template>
</el-table-column> </el-table-column>
@ -164,7 +165,8 @@
<!-- Recipe明细信息页签 --> <!-- Recipe明细信息页签 -->
<el-tab-pane label="Product Structure" name="recipe_detail"> <el-tab-pane label="Product Structure" name="recipe_detail">
<el-form label-position="top" style="margin-top: -10px"> <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="saveRecipeDetail" style="margin-left: 7px">新增</el-button>
<el-button type="primary" @click="deleteRecipeDetail">删除</el-button> <el-button type="primary" @click="deleteRecipeDetail">删除</el-button>
<el-button type="primary" @click="updateRecipeDetail">编辑</el-button> <el-button type="primary" @click="updateRecipeDetail">编辑</el-button>
@ -213,7 +215,8 @@
<!-- Recipe子明细信息页签 --> <!-- Recipe子明细信息页签 -->
<el-tab-pane label="Components" name="recipe_sub_detail"> <el-tab-pane label="Components" name="recipe_sub_detail">
<el-form label-position="top" style="margin-top: 5px"> <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="saveComponentModal" style="margin-left: 7px">新增</el-button>
<el-button type="primary" @click="deleteComponentPart">删除</el-button> <el-button type="primary" @click="deleteComponentPart">删除</el-button>
</el-form-item> </el-form-item>
@ -244,6 +247,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
v-if="modalData.flag !== '3'"
fixed="right" fixed="right"
header-align="center" header-align="center"
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 () { saveRecipeDetail () {
if (this.modalData.partNo === '' || this.modalData.partNo == null) { if (this.modalData.partNo === '' || this.modalData.partNo == null) {

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

@ -535,6 +535,7 @@
} }
}) })
}, },
jumpBom () { jumpBom () {
if (this.bomData.engChgLevel != null || this.bomData.engChgLevel !== '') { if (this.bomData.engChgLevel != null || this.bomData.engChgLevel !== '') {
this.$message.error("bom明细不存在") this.$message.error("bom明细不存在")
@ -546,8 +547,9 @@
engChgLevel: this.bomData.engChgLevel, engChgLevel: this.bomData.engChgLevel,
} }
localStorage.setItem('bomData', JSON.stringify(inData)) localStorage.setItem('bomData', JSON.stringify(inData))
window.open('#/part-bomManagement');
window.open('#/part-bomManagement')
}, },
jumpPeifang (row) { jumpPeifang (row) {
let inData = { let inData = {
site: row.site, site: row.site,
@ -556,8 +558,9 @@
} }
localStorage.setItem('recipeData', JSON.stringify(inData)) localStorage.setItem('recipeData', JSON.stringify(inData))
window.open('#/part-recipeManagement');
window.open('#/part-recipeManagement')
}, },
// //
getNodeAuthority (row) { getNodeAuthority (row) {
getBMStatusDesc(this.searchData).then(({data}) => { getBMStatusDesc(this.searchData).then(({data}) => {

Loading…
Cancel
Save