|
|
|
@ -87,20 +87,20 @@ |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-link style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link> |
|
|
|
|
|
|
|
<el-link v-if="scope.row.checkStatus && scope.row.checkStatus === '待确认'" style="cursor: pointer" @click="checkConfirmStatus(scope.row)">确认</el-link> |
|
|
|
<el-link style="cursor: pointer" @click="deletePart(scope.row)">删除</el-link> |
|
|
|
<el-dropdown trigger="click"> |
|
|
|
<!-- <el-dropdown trigger="click"> |
|
|
|
<el-link style="cursor: pointer;font-size: 12px"> |
|
|
|
更多 |
|
|
|
</el-link > |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item >敬请期待</el-dropdown-item> |
|
|
|
|
|
|
|
<!-- <el-dropdown-item @click.native="toMenu('BOM',scope.row)">BOM</el-dropdown-item>--> |
|
|
|
<!-- <el-dropdown-item @click.native="toMenu('Routing',scope.row)">Routing</el-dropdown-item>--> |
|
|
|
<!-- <el-dropdown-item v-if="scope.row.status !== 'Y'" @click.native="toBecomeOfficialPartModal(scope.row)">转正式物料</el-dropdown-item>--> |
|
|
|
<!– <el-dropdown-item @click.native="toMenu('BOM',scope.row)">BOM</el-dropdown-item>–> |
|
|
|
<!– <el-dropdown-item @click.native="toMenu('Routing',scope.row)">Routing</el-dropdown-item>–> |
|
|
|
<!– <el-dropdown-item v-if="scope.row.status !== 'Y'" @click.native="toBecomeOfficialPartModal(scope.row)">转正式物料</el-dropdown-item>–> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</el-dropdown>--> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -1358,6 +1358,7 @@ |
|
|
|
getBomAndRoutingList, // 查询物料的bom和routing集合 |
|
|
|
partInformationToOfficial, // 转正式物料 |
|
|
|
getProjectPartNo, // 获取物料编码 |
|
|
|
confirmPartCheckStatus, //LR 2025 新增的方法 |
|
|
|
} from '@/api/part/partInformation.js' |
|
|
|
import { |
|
|
|
getChooselistData |
|
|
|
@ -3165,6 +3166,8 @@ |
|
|
|
updateItemValue () { |
|
|
|
this.loading = true |
|
|
|
let tempData = { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
partNo: this.partCurrentRow.partNo, |
|
|
|
itemList: JSON.parse(JSON.stringify(this.copyAttributeList)) |
|
|
|
} |
|
|
|
commitItemValue(tempData).then(({data}) => { |
|
|
|
@ -3304,6 +3307,8 @@ |
|
|
|
// 确认修改物料属性 |
|
|
|
commitItemValue () { |
|
|
|
let tempData = { |
|
|
|
site: this.partCurrentRow.site, |
|
|
|
partNo: this.partCurrentRow.partNo, |
|
|
|
itemList: JSON.parse(JSON.stringify(this.updatePartItemList)) |
|
|
|
} |
|
|
|
commitItemValue(tempData).then(({data}) => { |
|
|
|
@ -4762,6 +4767,26 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//检查是否确认的状态 |
|
|
|
checkConfirmStatus(row){ |
|
|
|
this.$confirm('确认当前物料正常使用?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
//执行删除的操作 |
|
|
|
confirmPartCheckStatus(row).then(({data}) => { |
|
|
|
//如果成功刷新表格 |
|
|
|
if(data.code == 0) { |
|
|
|
this.$message.success(data.msg); |
|
|
|
this.getDataList(); |
|
|
|
}else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 区域代码输入校验 |
|
|
|
regionOfOriginBlur () { |
|
|
|
if (this.modalData.regionOfOrigin != null && this.modalData.regionOfOrigin !== '') { |
|
|
|
|