+
{{ scope.row.remark }}
@@ -97,10 +99,12 @@
diff --git a/src/views/repair/tickets/Components/TicketTable.vue b/src/views/repair/tickets/Components/TicketTable.vue
index 3c398e6..53c5a8c 100644
--- a/src/views/repair/tickets/Components/TicketTable.vue
+++ b/src/views/repair/tickets/Components/TicketTable.vue
@@ -52,22 +52,26 @@
{{ scope.$index + 1 }}
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
新增客户信息
- 完善更多客户信息
+ 完善更多客户信息
选择业务
@@ -102,15 +102,15 @@
服务顾问
-
+
- 维修建议
+ 维修建议
- 质保说明
+ 质保说明
终检
@@ -129,9 +129,9 @@
-
-
-
+
+
+
退料
+
+
+
@@ -206,10 +209,12 @@ import TicketItem from "@/views/repair/tickets/Components/TicketItem.vue";
import CarChoose from "@/views/repair/Components/CarChoose.vue";
import {createUniqueCodeByHead} from "@/utils/createUniqueCode";
import {createTickets} from "@/api/repair/tickets/Tickets";
+import RepairAdvice from "@/views/repair/tickets/form/RepairAdvice.vue";
+import QualityExplain from "@/views/repair/tickets/form/QualityExplain.vue";
export default {
name: "UserInfo",
- components: {CarChoose, TicketItem, StaffChoose, UserChoose},
+ components: {QualityExplain, RepairAdvice, CarChoose, TicketItem, StaffChoose, UserChoose},
props: {
createTicketType: {
type: Boolean,
@@ -257,7 +262,12 @@ export default {
adviserName: null,
payType: null,
repairAdvice: null,
- qualityExplain: null,
+ quality: {
+ qualityMileage: 3000,
+ qualityDay: 30
+ },
+ qualityMileage: null,
+ qualityDay: null,
ticketType: null,
itemList: [],
},
@@ -330,10 +340,12 @@ export default {
this.createInit()
this.createItemInit()
try {
- // await createTickets(this.formData)
+ await createTickets(this.formData)
this.$modal.msgSuccess("新增成功")
this.init()
- }catch{}
+ }catch{}finally {
+ this.formData.ticketNo = null
+ }
},
// 初始化
init(){
@@ -364,7 +376,12 @@ export default {
adviserName: null,
payType: null,
repairAdvice: null,
- qualityExplain: null,
+ quality: {
+ qualityMileage: 3000,
+ qualityDay: 30
+ },
+ qualityMileage: null,
+ qualityDay: null,
ticketType: null,
itemList: [],
}
@@ -374,11 +391,20 @@ export default {
this.projectList = []
this.partList = []
this.otherList = []
+ this.resetTable()
+ },
+ resetTable(){
+ this.$refs['projectTable'].resetTable()
+ this.$refs['partTable'].resetTable()
+ this.$refs['otherTable'].resetTable()
},
// 新增基础信息init
createInit() {
// 生成工单号
this.formData.ticketNo = createUniqueCodeByHead("GD")
+ // 质保说明
+ this.formData.qualityMileage = this.formData.quality.qualityMileage
+ this.formData.qualityDay = this.formData.quality.qualityDay
// 选择的用户
this.formData.userId = this.selectUser?.userId
this.formData.userName = this.selectUser?.cusName
@@ -426,6 +452,7 @@ export default {
itemTypeId: item?.type?.id,
remark: item.remark,
itemStatus: item.itemStatus,
+ id: null
}
switch (type) {
case 'project':
@@ -443,7 +470,7 @@ export default {
temp[type + 'Id'] = item.id
return temp;
})
- }
+ },
}
}
diff --git a/src/views/repair/tickets/form/QualityExplain.vue b/src/views/repair/tickets/form/QualityExplain.vue
new file mode 100644
index 0000000..271fb3f
--- /dev/null
+++ b/src/views/repair/tickets/form/QualityExplain.vue
@@ -0,0 +1,66 @@
+