From b1e6a559b9d517e61bf077e3c2bd4c8cddbdb6ee Mon Sep 17 00:00:00 2001
From: xiaofajia <1665375861@qq.com>
Date: Mon, 4 Nov 2024 14:31:55 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E8=BD=A6=E4=B8=8A=E4=BC=A0=E5=9B=BE?=
=?UTF-8?q?=E7=89=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../repair/tickets/Components/UserInfo.vue | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/src/views/repair/tickets/Components/UserInfo.vue b/src/views/repair/tickets/Components/UserInfo.vue
index 7a94c43..942f3a1 100644
--- a/src/views/repair/tickets/Components/UserInfo.vue
+++ b/src/views/repair/tickets/Components/UserInfo.vue
@@ -139,6 +139,12 @@
+
+
+ 接车图片
+
+
+
@@ -397,6 +403,7 @@ export default {
rescueMoney: 0,
threePackMoney: 0,
confirmFaultMoney: 0,
+ image: null
},
selectUser: {},
selectCar: {},
@@ -485,6 +492,15 @@ export default {
if (count > 0){
return
}
+ if (!this.formData.image){
+ this.$modal.msgError("接车图片不能为空")
+ return
+ }else{
+ const data = this.formData.image.split(",")
+ this.formData.image = data.map(item => {
+ return item.replace(process.env.VUE_APP_FILE_API, "")
+ }).join(",")
+ }
await createTickets(this.formData)
this.$modal.msgSuccess("新增成功")
this.init()
@@ -539,6 +555,7 @@ export default {
rescueMoney: 0,
threePackMoney: 0,
confirmFaultMoney: 0,
+ image: null
}
this.selectUser = {}
this.selectCar = {}