|
|
@@ -99,6 +99,12 @@
|
|
|
@click="handSubmit(row)"
|
|
|
>发布</el-link
|
|
|
>
|
|
|
+ <el-link
|
|
|
+ v-if="row.approvalStatus == 1 && $hasPermission('main:bomcategory:withdraw')"
|
|
|
+ type="primary"
|
|
|
+ @click="handWithdraw(row)"
|
|
|
+ >撤回</el-link
|
|
|
+ >
|
|
|
|
|
|
<el-link
|
|
|
type="danger"
|
|
|
@@ -159,7 +165,8 @@
|
|
|
bomSubmit,
|
|
|
jsBomSubmit,
|
|
|
deviceBomSubmit,
|
|
|
- deleteBomTreeList
|
|
|
+ deleteBomTreeList,
|
|
|
+ withdrawBom
|
|
|
} from '@/api/material/BOM';
|
|
|
import LCdetail from './components/LCdetail.vue';
|
|
|
import { getByCode } from '@/api/system/dictionary-data';
|
|
|
@@ -286,7 +293,9 @@
|
|
|
{
|
|
|
columnKey: 'action',
|
|
|
slot: 'action',
|
|
|
- label: '操作'
|
|
|
+ label: '操作',
|
|
|
+ width: 170,
|
|
|
+ align: 'center'
|
|
|
}
|
|
|
],
|
|
|
sxtList: [
|
|
|
@@ -459,7 +468,33 @@
|
|
|
};
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+ // 撤回
|
|
|
+ handWithdraw(row) {
|
|
|
+ const params = {
|
|
|
+ processInstanceId: row.processInstanceId,
|
|
|
+ businessId: row.id,
|
|
|
+ processDefinitionKey: this.clientEnvironmentId == 5 ? this.radioSubmit == 1 ? 'bom_release' : 'bom_release_device' : 'bom_approver'
|
|
|
+ };
|
|
|
+ this.$confirm('是否确认撤回?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ withdrawBom(params).then((res) => {
|
|
|
+ if (res?.code == '0') {
|
|
|
+ this.$message.success('撤回成功');
|
|
|
+ this.reload();
|
|
|
+ }
|
|
|
+ }).catch((err) => {
|
|
|
+ // this.$message.error(err.message);
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
handSubmit(row) {
|
|
|
this.currentNodeData = row;
|
|
|
if (this.clientEnvironmentId == 5) {
|