From fdcc7367e3aa2b3b8a52e1428d6bb175fc93e9da Mon Sep 17 00:00:00 2001
From: xiaofajia <1665375861@qq.com>
Date: Fri, 18 Oct 2024 23:14:29 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=BD=E5=B7=A5=E5=AE=8C=E6=88=901/2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../repair/tickets/Components/TicketItem.vue | 2 +-
.../tickets/Components/TicketManagerItem.vue | 6 +++---
src/views/repair/tickets/form/UpdateRecord.vue | 16 ++++++++++++++--
3 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/src/views/repair/tickets/Components/TicketItem.vue b/src/views/repair/tickets/Components/TicketItem.vue
index a15bd75..09d31f3 100644
--- a/src/views/repair/tickets/Components/TicketItem.vue
+++ b/src/views/repair/tickets/Components/TicketItem.vue
@@ -288,7 +288,7 @@ export default {
save(row) {
// console.log(row)
if (row.id) {
- row.itemStatus = (row.repair && this.itemType === 'project') ? "02" : "01"
+ row.itemStatus = "01"
row.totalPrice = row.count * row.price * (row.discount / 10)
}
const id = row.id
diff --git a/src/views/repair/tickets/Components/TicketManagerItem.vue b/src/views/repair/tickets/Components/TicketManagerItem.vue
index 7800f89..bae12bf 100644
--- a/src/views/repair/tickets/Components/TicketManagerItem.vue
+++ b/src/views/repair/tickets/Components/TicketManagerItem.vue
@@ -50,13 +50,13 @@
通知施工
-
+
过程记录
-
+
开始施工
-
+
施工完成
handleCommand(command, scope.$index, scope.row)">
diff --git a/src/views/repair/tickets/form/UpdateRecord.vue b/src/views/repair/tickets/form/UpdateRecord.vue
index cd988a8..7e1b540 100644
--- a/src/views/repair/tickets/form/UpdateRecord.vue
+++ b/src/views/repair/tickets/form/UpdateRecord.vue
@@ -28,7 +28,11 @@
@@ -63,6 +67,10 @@ export default {
},
formLoading: false,
projectList: [],
+ // 有没有下一个项目
+ isNext: false,
+ // 是否需要总检
+ isEndCheck: true,
}
},
methods:{
@@ -85,6 +93,7 @@ export default {
},
async open(row){
this.init()
+ this.isEndCheck = row.endCheck === '1'
this.formData.id = row.id
this.formData.recordType = row.clickType
await this.listProject(row.id)
@@ -103,6 +112,9 @@ export default {
this.formData.ticketsWorkStatus = "02"
this.formData.item.itemStatus = "02"
this.projectList = this.projectList.filter(item => item.itemStatus === '02')
+ }else {
+ this.isNext = this.projectList.filter(item => item.itemStatus !== '03').length > 0
+ this.projectList = this.projectList.filter(item => item.itemStatus === '02')
}
}finally {
this.formLoading = false
@@ -111,7 +123,7 @@ export default {
async doUpdate(){
try {
await this.$refs.formRef.validate()
- this.formData.image = this.formData.image.map(item => item.url).join(",")
+ // this.formData.image = this.formData.image.map(item => item.url).join(",")
this.formLoading = true
await updateStatus(this.formData)
this.$modal.msgSuccess("操作成功")