diff --git a/src/views/repair/tickets/form/UpdateRecord.vue b/src/views/repair/tickets/form/UpdateRecord.vue index 8221ced..ef19449 100644 --- a/src/views/repair/tickets/form/UpdateRecord.vue +++ b/src/views/repair/tickets/form/UpdateRecord.vue @@ -47,25 +47,47 @@ + + {{isEndCheck ? '这个工单需要总检,' : '这个工单不需要总检,'}}请选择完成方式 + + 完成并移交下一班组 + + {{ isEndCheck ? "完成并移交总检" : "完成工单" }} + + 取 消 + + + @@ -104,10 +126,14 @@ export default { isNext: false, // 是否需要总检 isEndCheck: true, - clickRow: null + clickRow: null, + chooseVisible: false, } }, methods: { + handleFinish() { + this.chooseVisible = true + }, init() { this.formData = { // 主表信息 @@ -162,7 +188,7 @@ export default { }, async doUpdate(nextName = null) { try { - if (nextName){ + if (nextName) { this.formData['nextName'] = nextName } if (this.formData.recordType === 'zj') { @@ -177,6 +203,7 @@ export default { this.$modal.msgSuccess("操作成功") } this.dialogVisible = false + this.chooseVisible = false this.$emit("success") } else { this.formLoading = true @@ -185,6 +212,7 @@ export default { this.$modal.msgSuccess("操作成功") } this.dialogVisible = false + this.chooseVisible = false this.$emit("success") } } catch { @@ -192,6 +220,9 @@ export default { }, async doFinish(flag) { try { + if (!this.formData.item.id){ + this.$modal.msgError("请先选择要完成的项目") + } await this.$refs.formRef.validate() this.formLoading = true // 不论是什么按钮,这个工单子项是完了的