|
|
|
@ -294,10 +294,11 @@ |
|
|
|
fixed="right" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="100" |
|
|
|
width="145" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<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> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -1119,7 +1120,8 @@ |
|
|
|
updateNotifyDetail, |
|
|
|
saveSOIssueNotifyOrderMateria, |
|
|
|
getBomAlternativeParts, |
|
|
|
getWorkCenterList |
|
|
|
getWorkCenterList, |
|
|
|
updateMaterialShowFlag |
|
|
|
} from "@/api/orderIssure/soIssueNotify.js" |
|
|
|
import { |
|
|
|
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){ |
|
|
|
// 检查当前状态是否允许编辑 |
|
|
|
if (!this.isEditableStatusComputed) { |
|
|
|
|