Browse Source

2026-03-03

领料申请管理 材料明细页签增加【打开】
master
fengyuan_yang 2 months ago
parent
commit
031f086954
  1. 1
      src/api/orderIssure/soIssueNotify.js
  2. 35
      src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue

1
src/api/orderIssure/soIssueNotify.js

@ -57,6 +57,7 @@ export const saveSOIssueNotifyOrderMateria = data => createAPI(`/orderIssure/iss
export const getBomAlternativeParts = data => createAPI(`/orderIssure/issureNotify/getBomAlternativeParts`,'post',data) export const getBomAlternativeParts = data => createAPI(`/orderIssure/issureNotify/getBomAlternativeParts`,'post',data)
export const getWorkCenterList = data => createAPI(`/orderIssure/issureNotify/getWorkCenterList`,'post',data) export const getWorkCenterList = data => createAPI(`/orderIssure/issureNotify/getWorkCenterList`,'post',data)
export const updateMaterialShowFlag = data => createAPI(`/orderIssure/issureNotify/updateMaterialShowFlag`,'post',data)
// 生产领料任务通知报表查询 // 生产领料任务通知报表查询
export const searchIssueNotifyReport = data => createAPI(`/orderIssure/issureNotify/searchIssueNotifyReport`,'post',data) export const searchIssueNotifyReport = data => createAPI(`/orderIssure/issureNotify/searchIssueNotifyReport`,'post',data)

35
src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue

@ -294,10 +294,11 @@
fixed="right" fixed="right"
header-align="center" header-align="center"
align="center" align="center"
width="100"
width="145"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link style="cursor: pointer" @click="getAlternativePart(scope.row)">替代料</el-link> <el-link style="cursor: pointer" @click="getAlternativePart(scope.row)">替代料</el-link>
<el-link v-if="scope.row.showFlag === 'N'" style="cursor: pointer;margin-left: 5px;" type="success" @click="openMaterial(scope.row)">打开</el-link>
<el-link style="cursor: pointer;margin-left: 5px;" type="danger" @click="deleteNotifyMaterial(scope.row)">删除</el-link> <el-link style="cursor: pointer;margin-left: 5px;" type="danger" @click="deleteNotifyMaterial(scope.row)">删除</el-link>
</template> </template>
</el-table-column> </el-table-column>
@ -1119,7 +1120,8 @@
updateNotifyDetail, updateNotifyDetail,
saveSOIssueNotifyOrderMateria, saveSOIssueNotifyOrderMateria,
getBomAlternativeParts, getBomAlternativeParts,
getWorkCenterList
getWorkCenterList,
updateMaterialShowFlag
} from "@/api/orderIssure/soIssueNotify.js" } from "@/api/orderIssure/soIssueNotify.js"
import { import {
searchShopOrderByPaging searchShopOrderByPaging
@ -3094,6 +3096,35 @@
}) })
}); });
}, },
openMaterial(row) {
this.$confirm('确认打开该材料明细?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const params = {
site: row.site,
notifyNo: row.notifyNo,
bOMItemNo: row.bOMItemNo,
showFlag: 'Y'
}
updateMaterialShowFlag(params).then(({data}) => {
if (data && data.code === 0) {
this.refreshCurrentTabTable()
this.$message({
message: '操作成功',
type: 'success',
duration: 1500
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
})
},
deleteNotifySOSPlus(row){ deleteNotifySOSPlus(row){
// //
if (!this.isEditableStatusComputed) { if (!this.isEditableStatusComputed) {

Loading…
Cancel
Save