From 5071dfff934e4165dcf1fa7215bd6ccf5e4acb44 Mon Sep 17 00:00:00 2001
From: xiaofajia <1665375861@qq.com>
Date: Wed, 30 Oct 2024 11:26:49 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=B7=A5=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/repair/tickets/Tickets.js | 9 ++
.../repair/tickets/Components/TicketTable.vue | 6 +-
.../repair/tickets/Components/TicketsShow.vue | 42 +++++++++
.../repair/tickets/Components/UserInfo.vue | 16 ++--
src/views/repair/tickets/form/EditTickets.vue | 88 ++++++++++++++++++-
5 files changed, 148 insertions(+), 13 deletions(-)
diff --git a/src/api/repair/tickets/Tickets.js b/src/api/repair/tickets/Tickets.js
index 1babdd4..aa11095 100644
--- a/src/api/repair/tickets/Tickets.js
+++ b/src/api/repair/tickets/Tickets.js
@@ -158,3 +158,12 @@ export function addItems(data){
data
})
}
+
+// 修改工单主表,只是主表
+export function updateTicket(data){
+ return request({
+ url: preUrl + '/updateTicket',
+ method: 'post',
+ data
+ })
+}
diff --git a/src/views/repair/tickets/Components/TicketTable.vue b/src/views/repair/tickets/Components/TicketTable.vue
index f2b9375..b383283 100644
--- a/src/views/repair/tickets/Components/TicketTable.vue
+++ b/src/views/repair/tickets/Components/TicketTable.vue
@@ -206,7 +206,7 @@ export default {
formData: {
id: null,
ticketsStatus: null,
- remark: null,
+ billingRemark: null,
payType: null
},
formRules:{
@@ -226,7 +226,7 @@ export default {
cancelButtonText: '取消',
}).then(({value}) => {
this.formData.id = row.id
- this.formData.remark = value
+ this.formData['remark'] = value
this.formData.ticketsStatus = "03"
this.doVoid()
}).catch(() => {
@@ -260,7 +260,7 @@ export default {
this.formData = {
id: null,
ticketsStatus: null,
- remark: null,
+ billingRemark: null,
payType: null
}
this.formData['id'] = row.id
diff --git a/src/views/repair/tickets/Components/TicketsShow.vue b/src/views/repair/tickets/Components/TicketsShow.vue
index 867aef2..a582ef4 100644
--- a/src/views/repair/tickets/Components/TicketsShow.vue
+++ b/src/views/repair/tickets/Components/TicketsShow.vue
@@ -58,6 +58,48 @@
{{ parseTime(info.createTime, '{y}-{m}-{d}') }}
+
+
+ 已行里程
+
+ {{ info.mileageTraveled }}
+
+
+
+ 三包单位
+
+ {{ info.threePackUnits }}
+
+
+
+ 保险名称
+
+ {{ info.insuranceName }}
+
+
+
+ 管理费
+
+ {{ info.managerMoney }}
+
+
+
+ 救援费
+
+ {{ info.rescueMoney }}
+
+
+
+ 三包费
+
+ {{ info.threePackMoney }}
+
+
+
+ 定损费
+
+ {{ info.confirmFaultMoney }}
+
预计完工
diff --git a/src/views/repair/tickets/Components/UserInfo.vue b/src/views/repair/tickets/Components/UserInfo.vue
index 852fd5a..7a94c43 100644
--- a/src/views/repair/tickets/Components/UserInfo.vue
+++ b/src/views/repair/tickets/Components/UserInfo.vue
@@ -393,10 +393,10 @@ export default {
mileageTraveled: null,
threePackUnits: null,
insuranceName: null,
- managerMoney: null,
- rescueMoney: null,
- threePackMoney: null,
- confirmFaultMoney: null,
+ managerMoney: 0,
+ rescueMoney: 0,
+ threePackMoney: 0,
+ confirmFaultMoney: 0,
},
selectUser: {},
selectCar: {},
@@ -535,10 +535,10 @@ export default {
mileageTraveled: null,
threePackUnits: null,
insuranceName: null,
- managerMoney: null,
- rescueMoney: null,
- threePackMoney: null,
- confirmFaultMoney: null,
+ managerMoney: 0,
+ rescueMoney: 0,
+ threePackMoney: 0,
+ confirmFaultMoney: 0,
}
this.selectUser = {}
this.selectCar = {}
diff --git a/src/views/repair/tickets/form/EditTickets.vue b/src/views/repair/tickets/form/EditTickets.vue
index 33ad102..ee38cce 100644
--- a/src/views/repair/tickets/form/EditTickets.vue
+++ b/src/views/repair/tickets/form/EditTickets.vue
@@ -234,11 +234,63 @@
取 消
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+