From b8372dab88a21c49d4b9bad237c801c24681ac0c Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 29 Apr 2025 19:32:15 +0800
Subject: [PATCH] 工单详情、工单审核:弹窗中当前状态显示与调整
---
src/views/tickets/orderLog.vue | 41 ++++++++++++++++++++++++-----------------
1 files changed, 24 insertions(+), 17 deletions(-)
diff --git a/src/views/tickets/orderLog.vue b/src/views/tickets/orderLog.vue
index fd416ca..65c5b17 100644
--- a/src/views/tickets/orderLog.vue
+++ b/src/views/tickets/orderLog.vue
@@ -472,16 +472,9 @@
</el-row>
<el-row :gutter="20">
- <el-col :span="12">
- <el-form-item label="工单内容" prop="content">
- <el-input
- type="textarea"
- v-model="form.content"
- rows="4"
- placeholder="请输入工单内容"
- maxlength="255"
- show-word-limit
- ></el-input>
+ <el-col :span="12" prop="statusStr">
+ <el-form-item label="当前状态">
+ {{ mapStatus(form.status) }}
</el-form-item>
</el-col>
@@ -497,11 +490,13 @@
/>
</el-form-item>
</el-col>
+
<el-col :span="3">
<el-select v-model="form.rep_fre_type" placeholder="请选择频次">
<el-option v-for="item in cycles" :key="item" :label="item" :value="item" />
</el-select>
</el-col>
+
<el-col :span="3">
<el-time-picker
style="width: 100px"
@@ -512,6 +507,21 @@
selectableRange: '00:00 - 23:59',
}"
/>
+ </el-col>
+ </el-row>
+
+ <el-row :gutter="20">
+ <el-col :span="12">
+ <el-form-item label="工单内容" prop="content">
+ <el-input
+ type="textarea"
+ v-model="form.content"
+ rows="4"
+ placeholder="请输入工单内容"
+ maxlength="255"
+ show-word-limit
+ ></el-input>
+ </el-form-item>
</el-col>
</el-row>
@@ -665,7 +675,7 @@
<el-row :gutter="20">
<el-col :span="12" prop="statusStr">
<el-form-item label="当前状态">
- {{ statusStr }}
+ {{ mapStatus(form.status) }}
</el-form-item>
</el-col>
@@ -1210,15 +1220,12 @@
return `${location[0].toFixed(6)}, ${location[1].toFixed(6)}`;
},
async handleViewDetail(row) {
- console.log('工单名称1111:');
const response = await orderLogDetails(row.id);
const data = response.data.data;
this.form = {
...data,
};
-
- this.detailVisible = true;
// 更新机巢列表
this.device_sns = data.device_list;
@@ -1227,6 +1234,8 @@
(data.status == 1 || data.status == 3 || data.status == 2)
? (this.detailTitle = '工单详情')
: (this.detailTitle = '编辑工单');
+
+ this.detailVisible = true;
this.initMapLine();
},
@@ -1238,11 +1247,9 @@
...data,
};
- this.detailVisibleCopy = true;
- this.statusStr = this.mapStatus(data.status);
-
// 更新机巢列表
this.device_sns = data.device_list;
+ this.detailVisibleCopy = true;
this.initMapLine();
},
//导出
--
Gitblit v1.9.3