From 213f348eb0e68df4b575a51c570b98f4cf773963 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 10 四月 2024 12:00:43 +0800
Subject: [PATCH] 1.报工审核 新增弃审功能
---
src/views/produce/reportVerify.vue | 44 ++++++++++++++++++++++++++++++++++++++++----
1 files changed, 40 insertions(+), 4 deletions(-)
diff --git a/src/views/produce/reportVerify.vue b/src/views/produce/reportVerify.vue
index 2ccbeb3..5fec7b8 100644
--- a/src/views/produce/reportVerify.vue
+++ b/src/views/produce/reportVerify.vue
@@ -295,10 +295,18 @@
<template slot-scope="{row}">
<div class="operationClass">
<el-button
+ v-if="row.verify!=='Y'"
type="text"
style="cursor: pointer;font-size: 14px"
@click="reportAdjust(row)"
>鎶ュ伐瀹℃牳
+ </el-button>
+ <el-button
+ v-if="row.verify==='Y'"
+ type="text"
+ style="cursor: pointer;font-size: 14px;color: rgba(255,0,0,0.8)"
+ @click="reportGiveUp(row)"
+ >寮冨
</el-button>
</div>
@@ -326,7 +334,12 @@
import { handleDatetime } from '@/utils/global'
import elDragDialog from '@/directive/el-drag-dialog'
import waves from '@/directive/waves'
-import { MesOrderDistribution, MesOrderStepReportVerifySearch, MesOrderStepReportVerifySeave } from '@/api/WorkOrder'
+import {
+ MesOrderDistribution,
+ MesOrderStepReportNotVerifySeave,
+ MesOrderStepReportVerifySearch,
+ MesOrderStepReportVerifySeave
+} from '@/api/WorkOrder'
import { PrentOrganizationNoCompany } from '@/api/GeneralBasicData'
export default {
@@ -440,9 +453,9 @@
// 鎶ュ伐瀹℃牳
async reportAdjust(row) {
- if (row && row.verify === 'Y') {
- return this.$message.info('姝ゅ伐鍗曞凡瀹℃牳锛�')
- }
+ // if (row && row.verify === 'Y') {
+ // return this.$message.info('姝ゅ伐鍗曞凡瀹℃牳锛�')
+ // }
this.$confirm('鏄惁纭瀹℃牳?', '鎻愮ず', {
confirmButtonText: '纭畾',
cancelButtonText: '鍙栨秷',
@@ -472,6 +485,29 @@
this.$notify.info('宸插彇娑堝鏍革紒')
})
},
+ // 寮冨
+ reportGiveUp(row) {
+ this.$confirm('鏄惁纭寮冨?', '鎻愮ず', {
+ confirmButtonText: '纭畾',
+ cancelButtonText: '鍙栨秷',
+ type: 'warning'
+ }).then(() => {
+ const data = {
+ id: row.id,
+ steptype: row.steptype
+ }
+
+ MesOrderStepReportNotVerifySeave(data).then(res => {
+ if (res.code === '200') {
+ this.$notify.success('寮冨鎴愬姛锛�')
+ this.getMesOrderStepReportVerifySearch()
+ }
+ })
+ }).catch(() => {
+ this.$notify.info('宸插彇娑堝純瀹★紒')
+ })
+ },
+
handleSelectionChange(val) {
this.multipleSelection = val
},
--
Gitblit v1.9.3