|
|
|
@ -54,6 +54,7 @@ |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-link style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link> |
|
|
|
<!-- <el-link style="cursor: pointer" @click="deleteModal(scope.row)">删除</el-link>--> |
|
|
|
<el-link style="cursor: pointer" @click="copyProjectPartModal(scope.row)">复制</el-link> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -1758,7 +1759,7 @@ import { |
|
|
|
setupWatchers() { |
|
|
|
this.teardownWatchers() |
|
|
|
const groups = { |
|
|
|
mainInfoFlag: ['partType', 'hazardCode', 'productGroupId4', 'productGroupId3', |
|
|
|
mainInfoFlag: ['partDesc', 'partType', 'hazardCode', 'productGroupId4', 'productGroupId3', |
|
|
|
'umId', 'groupId', 'productGroupId1', 'familyId', 'productGroupId2', 'typeDesignation', |
|
|
|
'assetClass', 'dimQuality', 'partStatus', 'weightNet', 'uomForWeightNet', 'frequencyClass', |
|
|
|
'abcClass', 'volumeNet', 'uomForVolumeNet', 'lifecycleStage', 'manufacturingLeadTime', |
|
|
|
@ -2391,6 +2392,38 @@ import { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
deleteModal (row) { |
|
|
|
this.$confirm(`是否删除该项目物料?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
let tempData = { |
|
|
|
site: row.site, |
|
|
|
buNo: row.buNo, |
|
|
|
projectId: row.projectId, |
|
|
|
finalPartNo: row.finalPartNo, |
|
|
|
testPartNo: row.testPartNo, |
|
|
|
createBy: this.$store.state.user.name, |
|
|
|
} |
|
|
|
deleteProjectPart(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.searchTable() |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 关闭模态框 |
|
|
|
closeModal () { |
|
|
|
this.modalFlag = false |
|
|
|
|