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 @@ 通知施工 - + 过程记录 - + 开始施工 - + 施工完成 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("操作成功")