|
|
@@ -36,6 +36,15 @@
|
|
|
</el-link>
|
|
|
</template>
|
|
|
|
|
|
+ <template v-slot:code="{ row }">
|
|
|
+ <el-link
|
|
|
+ type="primary"
|
|
|
+ :underline="false"
|
|
|
+ @click="handelDetail(row)"
|
|
|
+ >{{ row.code }}</el-link
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+
|
|
|
<template v-slot:versions="{ row }"> V{{ row.versions }}.0 </template>
|
|
|
<template v-slot:isTemp="{ row }">
|
|
|
<el-tag size="mini" v-if="row.isTemp == 1">主数据</el-tag>
|
|
|
@@ -87,7 +96,7 @@
|
|
|
|
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:action="{ row }">
|
|
|
- <el-link type="primary" @click="handelDetail(row)">详情</el-link>
|
|
|
+ <!-- <el-link type="primary" @click="handelDetail(row)">详情</el-link> -->
|
|
|
|
|
|
<el-link
|
|
|
v-if="
|
|
|
@@ -100,7 +109,10 @@
|
|
|
>发布</el-link
|
|
|
>
|
|
|
<el-link
|
|
|
- v-if="row.approvalStatus == 1 && $hasPermission('main:bomcategory:withdraw')"
|
|
|
+ v-if="
|
|
|
+ row.approvalStatus == 1 &&
|
|
|
+ $hasPermission('main:bomcategory:withdraw')
|
|
|
+ "
|
|
|
type="primary"
|
|
|
@click="handWithdraw(row)"
|
|
|
>撤回</el-link
|
|
|
@@ -481,7 +493,12 @@
|
|
|
const params = {
|
|
|
processInstanceId: row.processInstanceId,
|
|
|
businessId: row.id,
|
|
|
- processDefinitionKey: this.clientEnvironmentId == 5 ? this.radioSubmit == 1 ? 'bom_release' : 'bom_release_device' : 'bom_approver'
|
|
|
+ processDefinitionKey:
|
|
|
+ this.clientEnvironmentId == 5
|
|
|
+ ? this.radioSubmit == 1
|
|
|
+ ? 'bom_release'
|
|
|
+ : 'bom_release_device'
|
|
|
+ : 'bom_approver'
|
|
|
};
|
|
|
this.$confirm('是否确认撤回?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
@@ -489,19 +506,18 @@
|
|
|
type: 'warning'
|
|
|
})
|
|
|
.then(() => {
|
|
|
- withdrawBom(params).then((res) => {
|
|
|
- if (res?.code == '0') {
|
|
|
- this.$message.success('撤回成功');
|
|
|
- this.reload();
|
|
|
- }
|
|
|
- }).catch((err) => {
|
|
|
- // this.$message.error(err.message);
|
|
|
- });
|
|
|
+ withdrawBom(params)
|
|
|
+ .then((res) => {
|
|
|
+ if (res?.code == '0') {
|
|
|
+ this.$message.success('撤回成功');
|
|
|
+ this.reload();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ // this.$message.error(err.message);
|
|
|
+ });
|
|
|
})
|
|
|
- .catch(() => {
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
handSubmit(row) {
|
|
|
this.currentNodeData = row;
|
|
|
@@ -583,7 +599,6 @@
|
|
|
});
|
|
|
},
|
|
|
handelDetail(row) {
|
|
|
- console.log(row.versions, 'row.versions');
|
|
|
let rowData = {
|
|
|
categoryId: row.categoryId,
|
|
|
categoryName: row.categoryName,
|