From 729fa0955c4d2176ae78f13ad2fc008dd7cc6518 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期三, 01 十一月 2023 14:16:50 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/quality/finishedProductInspection/index.vue |   41 +++++++++++++++++++++--------------------
 1 files changed, 21 insertions(+), 20 deletions(-)

diff --git a/src/views/quality/finishedProductInspection/index.vue b/src/views/quality/finishedProductInspection/index.vue
index 1ab2496..e2cccb9 100644
--- a/src/views/quality/finishedProductInspection/index.vue
+++ b/src/views/quality/finishedProductInspection/index.vue
@@ -21,14 +21,10 @@
     import ttable from '@/views/common/ztt-table.vue'
     import * as fecha from 'element-ui/lib/utils/date'
 	import finishedProductInspectionAdd from './finishedProductInspectionAdd'
-	import finishedProductInspectionUp from './finishedProductInspectionUp'
-	import finishedProductInspectionLook from './finishedProductInspectionLook'
-    import { page } from '@/api/quality/finishedProduct'
+    import { page,deletePro } from '@/api/quality/finishedProduct'
 	export default {
 		components: {
 			finishedProductInspectionAdd,
-			finishedProductInspectionUp,
-			finishedProductInspectionLook,
             ttable
 		},
 		data() {
@@ -240,6 +236,23 @@
 			// this.getInspectionTableData()
 		},
 		methods: {
+			deleteHandle(row){
+				console.log(row.id)
+				this.$confirm('纭鍒犻櫎璇ユ暟鎹悧锛�', '鎻愮ず', {
+				confirmButtonText: '纭畾',
+				cancelButtonText: '鍙栨秷',
+				type: 'warning',
+				}).then(()=>{
+					deletePro(row.id).then(res=>{
+						if(res.data.code == 0){
+							this.$message.success("鍒犻櫎鎴愬姛")
+						}else{
+							this.$message.error("鍒犻櫎澶辫触")
+						}
+						this.getData()
+					})
+				})
+			},
 			// 鏂板 / 淇敼
 			addOrUpdateHandle(row) {
 				this.$router.push({
@@ -276,21 +289,9 @@
 			handleAddNew() {
 				this.showAdd = true
 			},
-			// async getInspectionTableData() {
-			// 	const {
-			// 		data: {
-			// 			row,
-			// 			total
-			// 		}
-			// 	} = await this.$axios.get(this.$api.url.finishedInsListPage, {
-			// 		params: {
-			// 			...this.pageParams,
-			// 			...this.searchData
-			// 		}
-			// 	})
-			// 	this.inspectionTable = row
-			// 	this.pageParams.total = total
-			// },
+			getData() {
+				this.$refs.finishedProduct.getDataList()
+			},
 			goToDetail(row) {
 				this.rowInfo = row
 				this.showLook = true

--
Gitblit v1.9.3