From 5c76f242b20281b51d01ce2266e8beaafe8ae5a6 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期五, 15 九月 2023 10:00:34 +0800
Subject: [PATCH] 改bug

---
 src/components/view/sale.vue |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/src/components/view/sale.vue b/src/components/view/sale.vue
index 9c98839..d3e59a2 100644
--- a/src/components/view/sale.vue
+++ b/src/components/view/sale.vue
@@ -282,7 +282,8 @@
 			</el-dialog>
 		</div>
 		<div class="select-model">
-			<el-dialog :title="`閿�鍞�${upDia==true?'淇敼':'鏂板'}`" :visible.sync="addDia" width="850px">
+			<el-dialog :title="`閿�鍞�${upDia==true?'淇敼':'鏂板'}`" :visible.sync="addDia" width="850px"
+			@close="closeDialog">
 				<div class="body">
 					<div class="head">鍩烘湰淇℃伅</div>
 					<div class="content">
@@ -429,6 +430,20 @@
 			this.selectRawInspectsList()
 		},
 		methods: {
+			closeDialog(){
+				this.addData = {
+					orderNumber: null,
+					code: null,
+					name: null,
+					proname: null,
+					adress: null,
+					username: null,
+					delTime: null,
+					orderName: null,
+					phone: null,
+					saleMaterialList: []
+				}
+			},
 			handleSelectionChange(val) {
 				this.selects = ''
 				val.forEach((a, ai)=>{
@@ -470,7 +485,8 @@
 					formTime: null,
 					createTime: null,
 					insState: 2,
-					judgeState: 2
+					judgeState: 2,
+					type: null
 				}
 				this.selectRawInspectsList()
 			},
@@ -546,6 +562,7 @@
 						type: 1
 					}).then(res => {
 						this.selectRawInspectsList()
+						this.$parent.removeAllTab()
 					})
 				}).catch(e => {
 					if (e == 'cancel') {

--
Gitblit v1.9.3