|
@@ -1,29 +1,29 @@
|
1
|
1
|
<template>
|
2
|
|
-<div id="app" style="margin-top:30px;font-size: 14px; color: #606266;">
|
3
|
|
- <el-form :inline="true" :model="listQuery" class="form-listQuery">
|
|
2
|
+ <div id="app" style="margin-top:30px;font-size: 14px; color: #606266;">
|
|
3
|
+ <el-form :inline="true" :model="listQuery" class="form-listQuery">
|
4
|
4
|
<div style="transform:translateY(-70%); margin-top:5px;">
|
5
|
|
- <span style="padding-left:0.8%;">工单详情</span>
|
6
|
|
- </div>
|
7
|
|
- <div>
|
8
|
|
- <table>
|
9
|
|
- <tr>
|
10
|
|
- <td width="21.3%" style="padding-left:0.8%;" nowrap>工单号: {{listQuery.id}}</td>
|
11
|
|
- <td width="22%" nowrap>工单类型:
|
12
|
|
- <span v-if="listQuery.type==='1'">{{'投诉'}}</span>
|
|
5
|
+ <span style="padding-left:0.8%;font-size: 16px;color: rgb(96, 98, 102);font-weight: bold;">工单详情</span>
|
|
6
|
+ </div>
|
|
7
|
+ <div>
|
|
8
|
+ <table>
|
|
9
|
+ <tr>
|
|
10
|
+ <td width="21.3%" style="padding-left:0.8%;" nowrap>工单号: {{ listQuery.id }}</td>
|
|
11
|
+ <td width="22%" nowrap>工单类型:
|
|
12
|
+ <span v-if="listQuery.type==='1'">{{ '投诉' }}</span>
|
13
|
13
|
<span v-if="listQuery.type==='2'">报修
|
14
|
|
- <span v-if="listQuery.repairType==='0'">{{'(公共区域)'}}</span>
|
15
|
|
- <span v-if="listQuery.repairType==='1'">{{'(房屋质量)'}}</span>
|
16
|
|
- <span v-if="listQuery.repairType==='2'">{{'(户内设施)'}}</span>
|
|
14
|
+ <span v-if="listQuery.repairType==='0'">{{ '(公共区域)' }}</span>
|
|
15
|
+ <span v-if="listQuery.repairType==='1'">{{ '(房屋质量)' }}</span>
|
|
16
|
+ <span v-if="listQuery.repairType==='2'">{{ '(户内设施)' }}</span>
|
17
|
17
|
</span>
|
18
|
|
- <span v-if="listQuery.type==='3'">{{'联系物业'}}</span>
|
19
|
|
- </td>
|
20
|
|
- <td width="22%" nowrap>发起时间: {{ formatDate(listQuery.createDate) }}</td>
|
21
|
|
- <td width="23%" nowrap>发起人: {{listQuery.createUserNmae}}</td>
|
22
|
|
- <td nowrap>发起人联系方式: {{listQuery.loginName}}</td>
|
23
|
|
- </tr>
|
24
|
|
- </table>
|
25
|
|
- </div>
|
26
|
|
- <!-- <div class="sizeWhits">
|
|
18
|
+ <span v-if="listQuery.type==='3'">{{ '联系物业' }}</span>
|
|
19
|
+ </td>
|
|
20
|
+ <td width="22%" nowrap>发起时间: {{ formatDate(listQuery.createDate) }}</td>
|
|
21
|
+ <td width="23%" nowrap>发起人: {{ listQuery.createUserNmae }}</td>
|
|
22
|
+ <td nowrap>发起人联系方式: {{ listQuery.loginName }}</td>
|
|
23
|
+ </tr>
|
|
24
|
+ </table>
|
|
25
|
+ </div>
|
|
26
|
+ <!-- <div class="sizeWhits">
|
27
|
27
|
<el-form-item style="padding-left:1%;" label="工单号:">
|
28
|
28
|
<span>{{listQuery.id}}</span>
|
29
|
29
|
</el-form-item>
|
|
@@ -49,155 +49,156 @@
|
49
|
49
|
|
50
|
50
|
<div style="transform:translateY(20%);">
|
51
|
51
|
<el-form-item style="padding-left:0.8%;" class="filter-item">
|
52
|
|
- <span>工单标题:</span>
|
53
|
|
- <span>{{listQuery.ticketTitle}}</span>
|
|
52
|
+ <span>工单标题:</span>
|
|
53
|
+ <span>{{ listQuery.ticketTitle }}</span>
|
|
54
|
+ </el-form-item>
|
|
55
|
+ <el-form-item class="size-left">
|
|
56
|
+ <span>当前负责人: </span>
|
|
57
|
+ <span style="margin-left: 10px;">{{ listQuery.tpUserNmae || '无' }}</span>
|
54
|
58
|
</el-form-item>
|
55
|
|
- <el-form-item class="size-left">
|
56
|
|
- <span>当前负责人:{{listQuery.tpUserNmae}}</span>
|
57
|
|
- </el-form-item>
|
58
|
59
|
</div>
|
59
|
60
|
<div>
|
60
|
|
- <el-form-item style='padding-left:20px'>
|
61
|
|
- <div>内容:<span style="text-align:left;margin-left:-100px;padding:100px">{{listQuery.ticketContent}}</span></div>
|
62
|
|
- </el-form-item>
|
63
|
|
- <!-- <table >
|
|
61
|
+ <el-form-item style="padding-left:15px">
|
|
62
|
+ <div>工单内容:
|
|
63
|
+ <span style="text-align:left;margin-left:-100px;padding:100px;">{{ listQuery.ticketContent }}</span>
|
|
64
|
+ </div>
|
|
65
|
+ </el-form-item>
|
|
66
|
+ <!-- <table >
|
64
|
67
|
<tr><td><span>内容</span></td>
|
65
|
68
|
<td><div>
|
66
|
69
|
<span >{{listQuery.ticketContent}}</span>
|
67
|
70
|
</div>
|
68
|
|
- </td>
|
|
71
|
+ </td>
|
69
|
72
|
</tr>
|
70
|
73
|
</table> -->
|
71
|
74
|
</div>
|
72
|
75
|
|
73
|
76
|
<div style="padding-left:200px;">
|
74
|
|
- <template >
|
75
|
|
- <img v-for="sr in listQuery.contentImageUrl" :src="sr" preview width="200" height="200" style="margin:5px;">
|
76
|
|
- <!-- <img v-for="sr in listQuery.contentImageUrl" :src="sr" preview="ss" preview-text="ss" width="200" height="200"> -->
|
77
|
|
- </template>
|
78
|
|
- </div>
|
|
77
|
+ <template >
|
|
78
|
+ <img v-for="sr in listQuery.contentImageUrl" :src="sr" preview width="200" height="200" style="margin:5px;">
|
|
79
|
+ <!-- <img v-for="sr in listQuery.contentImageUrl" :src="sr" preview="ss" preview-text="ss" width="200" height="200"> -->
|
|
80
|
+ </template>
|
|
81
|
+ </div>
|
79
|
82
|
|
80
|
|
- <hr width="101%"/>
|
81
|
|
-<div class="stepComponent" >
|
82
|
|
- <div class="stepsTitle">
|
83
|
|
- <div style="float:left;width:2px;height:20px; background:#219AFF;"></div>
|
84
|
|
- <span> 沟通记录</span>
|
85
|
|
- </div>
|
86
|
|
- <!-- 一下状态是数据库的所有状态,如需要加状态,页面得加相同状态的div -->
|
87
|
|
- <div class="approvalProcess">
|
88
|
|
- <el-steps :active="7" finish-status="success" direction="vertical">
|
89
|
|
- <el-step :title="item.statusName+'_________'+formatDate(item.createDate)" v-for="item in approvalProcessProject">
|
90
|
|
- <template slot="description">
|
91
|
|
- <div class="step-row" >
|
92
|
|
- <tr v-if="item.status - 0 === 5"><td>评价:</td><td><el-rate
|
93
|
|
- v-model="listQuery.score"
|
94
|
|
- disabled
|
95
|
|
- show-score
|
96
|
|
- text-color="#ff9900"
|
97
|
|
- score-template="{value}">
|
98
|
|
- </el-rate></td></tr>
|
99
|
|
- <tr v-if="item.status - 0 === 5" ><td>评语:</td><td>{{listQuery.comment}}</td></tr>
|
100
|
|
- <div style="margin-top:8px;"> <tr v-if="item.status - 0 === 5"><td>{{formatDate(item.createDate)}}</td></tr></div>
|
101
|
|
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="processing_content" v-for="itemContent in item.statusContent" >
|
102
|
|
- <tr>
|
103
|
|
- <td>
|
104
|
|
- <div class="processing_content_detail" style="float:left;width:70%">
|
105
|
|
- <span>{{itemContent.userName}}:{{itemContent.content}}
|
106
|
|
- <span style="color:#219AFF"></span>
|
107
|
|
- </span>
|
108
|
|
- </div>
|
109
|
|
- </td>
|
110
|
|
- </tr>
|
111
|
|
- <tr>
|
112
|
|
- <td>
|
113
|
|
- <div class="processing_content_detail" style="float:left;width:90%">
|
114
|
|
- <div style="float:left;width: 2px;height: 20px; background:#C7D4E9;margin-left:10px;margin-right:10px"></div>
|
115
|
|
- <!-- <img :src="contentImgURL.imageUrl" v-for="contentImgURL in itemContent.imgURL" preview preview-text="描述" width="200" style="margin:5px;"> -->
|
116
|
|
- <img v-for="contentImgURL in itemContent.imgURL" :src="contentImgURL.imageUrl" preview width="100" height="100" style="margin:5px;">
|
117
|
|
- <div><span ><i class="el-icon-time"></i>{{formatDate(itemContent.createDate)}}</span> </div>
|
118
|
|
- <div> <hr style="height:1px;border:none;border-top:1px solid #FF8888;" width="200%"/></div>
|
119
|
|
- </div>
|
120
|
|
- </td>
|
121
|
|
- </tr>
|
122
|
|
- </table>
|
123
|
|
- </div>
|
124
|
|
- </template>
|
125
|
|
- </el-step>
|
126
|
|
- </el-steps>
|
127
|
|
- </div>
|
128
|
|
- <div v-if="listQuery.status==='0'||listQuery.status==='3'">
|
129
|
|
- <div>
|
130
|
|
- <span>参与沟通</span>
|
131
|
|
- </div>
|
132
|
|
- <br>
|
133
|
|
- <div>
|
134
|
|
- <textarea v-model="listQuery.textContent" placeholder="回复TA或向TA提问" class="textarea-inherit" id="message_textarea" rows="4"></textarea>
|
|
83
|
+ <hr width="101%">
|
|
84
|
+ <div class="stepComponent" >
|
|
85
|
+ <div class="stepsTitle">
|
|
86
|
+ <span style="font-size: 16px;color: rgb(96, 98, 102);font-weight: bold;"> 沟通记录</span>
|
135
|
87
|
</div>
|
136
|
|
- <div>
|
137
|
|
- <el-form-item label="图片附件">
|
138
|
|
- <el-upload
|
139
|
|
- :limit="8"
|
140
|
|
- :before-upload="handleCompressReply"
|
141
|
|
- :on-preview="handlePictureCardPreview"
|
142
|
|
- :on-remove="handleRemove"
|
143
|
|
- :on-success="handleSuccessContentImg"
|
144
|
|
- action=""
|
145
|
|
- :file-list="listQuery.img"
|
146
|
|
- :show-file-list="Ass"
|
147
|
|
- list-type="picture-card">
|
148
|
|
- <i class="el-icon-plus"/>
|
149
|
|
- </el-upload>
|
150
|
|
- <el-dialog :visible.sync="dialogVisible">
|
151
|
|
- <img :src="dialogImageUrl" width="100%" alt="">
|
152
|
|
- </el-dialog>
|
153
|
|
- </el-form-item>
|
154
|
|
- <el-button type="primary" @click="submitContent" style="margin-left: 90%;transform:translateY(-340%);">提交</el-button>
|
|
88
|
+ <!-- 一下状态是数据库的所有状态,如需要加状态,页面得加相同状态的div -->
|
|
89
|
+ <div class="approvalProcess">
|
|
90
|
+ <el-steps :active="7" finish-status="success" direction="vertical">
|
|
91
|
+ <el-step v-for="item in approvalProcessProject" :title="item.statusName + '-' + formatDate(item.createDate)">
|
|
92
|
+ <template slot="description">
|
|
93
|
+ <div class="step-row" >
|
|
94
|
+ <tr v-if="item.status - 0 === 5"><td>评价:</td><td><el-rate
|
|
95
|
+ v-model="listQuery.score"
|
|
96
|
+ disabled
|
|
97
|
+ show-score
|
|
98
|
+ text-color="#ff9900"
|
|
99
|
+ score-template="{value}"/></td></tr>
|
|
100
|
+ <tr v-if="item.status - 0 === 5" ><td>评语:</td><td>{{ listQuery.comment }}</td></tr>
|
|
101
|
+ <div style="margin-top:8px;"> <tr v-if="item.status - 0 === 5"><td>{{ formatDate(item.createDate) }}</td></tr></div>
|
|
102
|
+ <table v-for="itemContent in item.statusContent" width="100%" border="0" cellspacing="0" cellpadding="0" class="processing_content" >
|
|
103
|
+ <tr>
|
|
104
|
+ <td>
|
|
105
|
+ <div class="processing_content_detail" style="float:left;width:70%">
|
|
106
|
+ <span>{{ itemContent.userName }}:{{ itemContent.content }}
|
|
107
|
+ <span style="color:#219AFF"/>
|
|
108
|
+ </span>
|
|
109
|
+ </div>
|
|
110
|
+ </td>
|
|
111
|
+ </tr>
|
|
112
|
+ <tr>
|
|
113
|
+ <td>
|
|
114
|
+ <div class="processing_content_detail" style="float:left;width:90%">
|
|
115
|
+ <div style="float:left;width: 2px;height: 20px; background:#C7D4E9;margin-left:10px;margin-right:10px"/>
|
|
116
|
+ <!-- <img :src="contentImgURL.imageUrl" v-for="contentImgURL in itemContent.imgURL" preview preview-text="描述" width="200" style="margin:5px;"> -->
|
|
117
|
+ <img v-for="contentImgURL in itemContent.imgURL" :src="contentImgURL.imageUrl" preview width="100" height="100" style="margin:5px;"/>
|
|
118
|
+ <div><span ><i class="el-icon-time"/>{{ formatDate(itemContent.createDate) }}</span> </div>
|
|
119
|
+ <div> <hr style="height:1px;border:none;border-top:1px solid #FF8888;" width="200%"></div>
|
|
120
|
+ </div>
|
|
121
|
+ </td>
|
|
122
|
+ </tr>
|
|
123
|
+ </table>
|
|
124
|
+ </div>
|
|
125
|
+ </template>
|
|
126
|
+ </el-step>
|
|
127
|
+ </el-steps>
|
155
|
128
|
</div>
|
|
129
|
+ <div v-if="listQuery.status==='0'||listQuery.status==='3'">
|
|
130
|
+ <div>
|
|
131
|
+ <span>参与沟通</span>
|
|
132
|
+ </div>
|
|
133
|
+ <br>
|
|
134
|
+ <div>
|
|
135
|
+ <textarea id="message_textarea" v-model="listQuery.textContent" placeholder="回复TA或向TA提问" class="textarea-inherit" rows="4"/>
|
|
136
|
+ </div>
|
|
137
|
+ <div>
|
|
138
|
+ <el-form-item label="图片附件">
|
|
139
|
+ <el-upload
|
|
140
|
+ :limit="8"
|
|
141
|
+ :before-upload="handleCompressReply"
|
|
142
|
+ :on-preview="handlePictureCardPreview"
|
|
143
|
+ :on-remove="handleRemove"
|
|
144
|
+ :on-success="handleSuccessContentImg"
|
|
145
|
+ :file-list="listQuery.img"
|
|
146
|
+ :show-file-list="Ass"
|
|
147
|
+ action=""
|
|
148
|
+ list-type="picture-card">
|
|
149
|
+ <i class="el-icon-plus"/>
|
|
150
|
+ </el-upload>
|
|
151
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
152
|
+ <img :src="dialogImageUrl" width="100%" alt="">
|
|
153
|
+ </el-dialog>
|
|
154
|
+ </el-form-item>
|
|
155
|
+ <el-button type="primary" style="margin-left: 90%;transform:translateY(-340%);" @click="submitContent">提交</el-button>
|
|
156
|
+ </div>
|
156
|
157
|
</div>
|
157
|
158
|
<div v-if="listQuery.status==='3'">
|
158
|
|
- <div>
|
159
|
|
- <span>流程操作</span>
|
|
159
|
+ <div>
|
|
160
|
+ <span>流程操作</span>
|
|
161
|
+ </div>
|
|
162
|
+ <br>
|
|
163
|
+ <div>
|
|
164
|
+ <textarea id="message_textarea" v-model="listQuery.relationContent" placeholder="处理完了?在此填写处理结果,发送给户主让TA给好评~" class="textarea-inherit" rows="4"/>
|
|
165
|
+ </div>
|
|
166
|
+ <div>
|
|
167
|
+ <el-form-item label="图片附件">
|
|
168
|
+ <el-upload
|
|
169
|
+ :limit="8"
|
|
170
|
+ :before-upload="handleCompress"
|
|
171
|
+ :on-preview="handlePictureCardPreviewIO"
|
|
172
|
+ :on-remove="handleRemoveIO"
|
|
173
|
+ :on-success="handleSuccessContentImgIO"
|
|
174
|
+ :file-list="listQuery.imgIO"
|
|
175
|
+ :show-file-list="Ass"
|
|
176
|
+ action=""
|
|
177
|
+ list-type="picture-card">
|
|
178
|
+ <i class="el-icon-plus"/>
|
|
179
|
+ </el-upload>
|
|
180
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
181
|
+ <img :src="dialogImageUrl" width="100%" alt="">
|
|
182
|
+ </el-dialog>
|
|
183
|
+ </el-form-item>
|
|
184
|
+ <el-button type="primary" style="margin-left: 90%;transform:translateY(-340%);" @click="succeedClick">发送处理结果</el-button>
|
|
185
|
+ </div>
|
160
|
186
|
</div>
|
161
|
|
- <br>
|
162
|
|
- <div>
|
163
|
|
- <textarea v-model="listQuery.relationContent" placeholder="处理完了?在此填写处理结果,发送给户主让TA给好评~" class="textarea-inherit" id="message_textarea" rows="4"></textarea>
|
164
|
|
- </div>
|
165
|
|
- <div>
|
166
|
|
- <el-form-item label="图片附件">
|
167
|
|
- <el-upload
|
168
|
|
- :limit="8"
|
169
|
|
- :before-upload="handleCompress"
|
170
|
|
- :on-preview="handlePictureCardPreviewIO"
|
171
|
|
- :on-remove="handleRemoveIO"
|
172
|
|
- :on-success="handleSuccessContentImgIO"
|
173
|
|
- :file-list="listQuery.imgIO"
|
174
|
|
- :show-file-list="Ass"
|
175
|
|
- action=""
|
176
|
|
- list-type="picture-card">
|
177
|
|
- <i class="el-icon-plus"/>
|
178
|
|
- </el-upload>
|
179
|
|
- <el-dialog :visible.sync="dialogVisible">
|
180
|
|
- <img :src="dialogImageUrl" width="100%" alt="">
|
181
|
|
- </el-dialog>
|
182
|
|
- </el-form-item>
|
183
|
|
- <el-button type="primary" @click="succeedClick" style="margin-left: 90%;transform:translateY(-340%);">发送处理结果</el-button>
|
184
|
|
- </div>
|
185
|
|
- </div>
|
186
|
|
-
|
187
|
|
- <div v-if="listQuery.status==='0'">
|
188
|
|
- <el-form-item style="width:1000 px" >
|
189
|
|
- <el-select v-model="listQuery.selectVale" placeholder="请选择工单由谁负责,然后点击受理分配" >
|
190
|
|
- <el-option label="请选择工单由谁负责,然后点击受理分配" value="-1" />
|
191
|
|
- <el-option label="我自己" :value="listQuery.currentUserName"/>
|
192
|
|
- <el-option v-for="user in listQuery.userList" :label="user.userName" :value="user.id"/>
|
193
|
|
- </el-select>
|
194
|
|
- </el-form-item>
|
195
|
|
- <el-button type="primary" @click="addRecord">受理分配</el-button>
|
196
|
|
- <a><span style="margin-left: 600px;color: #009FCC" @click="noAccept">{{'拒绝受理?'}} </span></a><span>{{'拒绝受理即关闭此工单,不再进行后续任何流程,请谨慎'}}</span>
|
|
187
|
+
|
|
188
|
+ <div v-if="listQuery.status==='0'">
|
|
189
|
+ <el-form-item style="width:1000px;" >
|
|
190
|
+ <el-select v-model="listQuery.selectVale" placeholder="请选择工单由谁负责,然后点击受理分配" >
|
|
191
|
+ <el-option label="请选择工单由谁负责,然后点击受理分配" value="-1" />
|
|
192
|
+ <el-option :value="listQuery.currentUserName" label="我自己"/>
|
|
193
|
+ <el-option v-for="user in listQuery.userList" :label="user.userName" :value="user.id"/>
|
|
194
|
+ </el-select>
|
|
195
|
+ </el-form-item>
|
|
196
|
+ <el-button type="primary" @click="addRecord">受理分配</el-button>
|
|
197
|
+ <a><span style="margin-left: 600px;color: #009FCC" @click="noAccept">{{ '拒绝受理?' }} </span></a><span>{{ '拒绝受理即关闭此工单,不再进行后续任何流程,请谨慎' }}</span>
|
197
|
198
|
</div>
|
198
|
|
-</div>
|
199
|
|
-</el-form>
|
200
|
|
-</div>
|
|
199
|
+ </div>
|
|
200
|
+ </el-form>
|
|
201
|
+ </div>
|
201
|
202
|
</template>
|
202
|
203
|
<script>
|
203
|
204
|
import { mapActions } from 'vuex'
|
|
@@ -208,9 +209,9 @@ export default {
|
208
|
209
|
listQuery: {
|
209
|
210
|
id: '',
|
210
|
211
|
userName: '',
|
211
|
|
- comment:'',
|
|
212
|
+ comment: '',
|
212
|
213
|
communityId: '',
|
213
|
|
- contentImageUrl:[],
|
|
214
|
+ contentImageUrl: [],
|
214
|
215
|
createDate: '',
|
215
|
216
|
createUser: '',
|
216
|
217
|
createUserNmae: '',
|
|
@@ -218,7 +219,7 @@ export default {
|
218
|
219
|
loginName: '',
|
219
|
220
|
recordList: [],
|
220
|
221
|
repairType: '',
|
221
|
|
- score:'',
|
|
222
|
+ score: '',
|
222
|
223
|
status: '',
|
223
|
224
|
taUserId: '',
|
224
|
225
|
ticketContent: '',
|
|
@@ -233,142 +234,142 @@ export default {
|
233
|
234
|
updateDate: '',
|
234
|
235
|
updateUser: '',
|
235
|
236
|
statusList: [],
|
236
|
|
- userList:[],
|
|
237
|
+ userList: [],
|
237
|
238
|
textContent: '',
|
238
|
|
- selectVale : '-1',
|
239
|
|
- noAcceptContent : '',//拒绝的对话内容
|
240
|
|
- relationContent : '',//流程操作内容
|
241
|
|
- relationImg : []//流程操作的图片
|
|
239
|
+ selectVale: '-1',
|
|
240
|
+ noAcceptContent: '', // 拒绝的对话内容
|
|
241
|
+ relationContent: '', // 流程操作内容
|
|
242
|
+ relationImg: []// 流程操作的图片
|
242
|
243
|
|
243
|
244
|
},
|
244
|
245
|
// timeId :'',
|
245
|
|
- active:2,
|
246
|
|
- dialogVisible: false, // 内容配图,
|
247
|
|
- dialogImageUrl:'',
|
248
|
|
- dialogImageUrlIO :'',
|
249
|
|
- approvalProcessProject:[
|
250
|
|
- ],
|
251
|
|
- imgURL:[],
|
252
|
|
- content:[],
|
253
|
|
- contentImgAA: [],
|
254
|
|
- contentImgIO: [],
|
255
|
|
- contentImgList: [],//图片集合
|
256
|
|
- contents:[],
|
257
|
|
- Ass: true,
|
258
|
|
- value5: 5
|
|
246
|
+ active: 2,
|
|
247
|
+ dialogVisible: false, // 内容配图,
|
|
248
|
+ dialogImageUrl: '',
|
|
249
|
+ dialogImageUrlIO: '',
|
|
250
|
+ approvalProcessProject: [
|
|
251
|
+ ],
|
|
252
|
+ imgURL: [],
|
|
253
|
+ content: [],
|
|
254
|
+ contentImgAA: [],
|
|
255
|
+ contentImgIO: [],
|
|
256
|
+ contentImgList: [], // 图片集合
|
|
257
|
+ contents: [],
|
|
258
|
+ Ass: true,
|
|
259
|
+ value5: 5
|
259
|
260
|
}
|
260
|
261
|
},
|
261
|
262
|
mounted() {
|
262
|
263
|
// console.log(this.$route.query.id)
|
263
|
|
- this.listQuery.id=this.$route.query.id
|
264
|
|
- this.dataQuery(this.listQuery.id)
|
|
264
|
+ this.listQuery.id = this.$route.query.id
|
|
265
|
+ this.dataQuery(this.listQuery.id)
|
265
|
266
|
},
|
266
|
267
|
methods: {
|
267
|
|
- dataQuery() { // 查询数据
|
|
268
|
+ dataQuery() { // 查询数据
|
268
|
269
|
// this.listQuery.id=this.$route.params.id
|
269
|
270
|
this.$store.dispatch('TicketEdit', this.listQuery).then((res) => {
|
270
|
|
- const resDate=res.data
|
271
|
|
- this.listQuery=resDate
|
|
271
|
+ const resDate = res.data
|
|
272
|
+ this.listQuery = resDate
|
272
|
273
|
this.approvalProcessProject = resDate.recordList
|
273
|
274
|
}).catch(() => {
|
274
|
275
|
console.log('error TicketEdit')
|
275
|
276
|
})
|
276
|
277
|
},
|
277
|
|
- //对话的图片控件
|
|
278
|
+ // 对话的图片控件
|
278
|
279
|
handlePictureCardPreview(file) { // 配图文件列表中已上传的文件时的钩子
|
279
|
280
|
this.dialogImageUrl = file.url
|
280
|
281
|
this.dialogVisible = true
|
281
|
282
|
},
|
282
|
|
- //对话的图片控件
|
|
283
|
+ // 对话的图片控件
|
283
|
284
|
handleRemove(file, fileList) { // 配图移除时
|
284
|
285
|
this.contentImgAA = []
|
285
|
286
|
for (let i = 0; i < fileList.length; i++) {
|
286
|
|
- this.contentImgAA.push(fileList[i].response.data[0])
|
|
287
|
+ this.contentImgAA.push(fileList[i].response.data[0])
|
287
|
288
|
}
|
288
|
289
|
// console.log('file',file, fileList)
|
289
|
290
|
},
|
290
|
|
- //对话的图片控件
|
|
291
|
+ // 对话的图片控件
|
291
|
292
|
handleSuccessContentImg(response, file, fileList) { // 配图上传成功时回调
|
292
|
293
|
const resImg = response.data[0]
|
293
|
294
|
// console.log('resImg',resImg)
|
294
|
295
|
this.contentImgAA.push(resImg)
|
295
|
296
|
},
|
296
|
|
- //流程的图片
|
|
297
|
+ // 流程的图片
|
297
|
298
|
handlePictureCardPreviewIO(file) {
|
298
|
299
|
this.dialogImageUrlIO = file.url
|
299
|
300
|
this.dialogVisible = true
|
300
|
301
|
},
|
301
|
|
- //流程的图片
|
|
302
|
+ // 流程的图片
|
302
|
303
|
handleRemoveIO(file, fileList) { // 流程配图移除时
|
303
|
304
|
this.contentImgIO = []
|
304
|
305
|
for (let i = 0; i < fileList.length; i++) {
|
305
|
|
- this.contentImgIO.push(fileList[i].response.data[0])
|
|
306
|
+ this.contentImgIO.push(fileList[i].response.data[0])
|
306
|
307
|
}
|
307
|
308
|
// console.log('file',file, fileList)
|
308
|
309
|
},
|
309
|
|
- //流程的图片
|
|
310
|
+ // 流程的图片
|
310
|
311
|
handleSuccessContentImgIO(response, file, fileList) { // 流程配图上传成功时回调
|
311
|
312
|
const resImg = response.data[0]
|
312
|
313
|
this.contentImgIO.push(resImg)
|
313
|
314
|
},
|
314
|
|
- //回复压缩
|
315
|
|
- handleCompressReply(file) { // 图片压缩
|
316
|
|
- let self = this;
|
|
315
|
+ // 回复压缩
|
|
316
|
+ handleCompressReply(file) { // 图片压缩
|
|
317
|
+ const self = this
|
317
|
318
|
return new Promise((resolve, reject) => {
|
318
|
319
|
var reader = new FileReader()
|
319
|
|
- reader.onload = function (e) {
|
|
320
|
+ reader.onload = function(e) {
|
320
|
321
|
var data = e.target.result
|
321
|
322
|
// 加载图片获取图片真实宽度和高度
|
322
|
|
- var image = new Image()
|
323
|
|
- image.onload = function () {
|
324
|
|
- let newdata = self.compress(image);
|
325
|
|
- let blob = self.dataURItoBlob(newdata);
|
326
|
|
- var formData = new FormData();
|
327
|
|
- formData.append("file", blob);
|
328
|
|
- formData.append("newdata", newdata);
|
|
323
|
+ var image = new Image()
|
|
324
|
+ image.onload = function() {
|
|
325
|
+ const newdata = self.compress(image)
|
|
326
|
+ const blob = self.dataURItoBlob(newdata)
|
|
327
|
+ var formData = new FormData()
|
|
328
|
+ formData.append('file', blob)
|
|
329
|
+ formData.append('newdata', newdata)
|
329
|
330
|
// console.log("********将blob对象转成formData对象********");
|
330
|
331
|
// console.log(formData.get("file"));
|
331
|
|
- // console.log('formData',formData)
|
|
332
|
+ // console.log('formData',formData)
|
332
|
333
|
|
333
|
334
|
// console.log(formData)
|
334
|
|
- let data = {"uploadFiles": newdata }
|
335
|
|
- self.$store.dispatch('ImgAdd', Qs.stringify(data)).then((res) => {
|
336
|
|
- self.contentImgAA.push(res.data[0])
|
|
335
|
+ const data = { 'uploadFiles': newdata }
|
|
336
|
+ self.$store.dispatch('ImgAdd', Qs.stringify(data)).then((res) => {
|
|
337
|
+ self.contentImgAA.push(res.data[0])
|
337
|
338
|
// console.log('this.contentImgIO',res.data[0])
|
338
|
|
- // console.log('this.listQuery.contentImgIO',self.contentImgIO)
|
339
|
|
- })
|
|
339
|
+ // console.log('this.listQuery.contentImgIO',self.contentImgIO)
|
|
340
|
+ })
|
340
|
341
|
}
|
341
|
342
|
image.src = data
|
342
|
343
|
}
|
343
|
344
|
reader.readAsDataURL(file)
|
344
|
345
|
})
|
345
|
346
|
},
|
346
|
|
- //流程压缩
|
347
|
|
- handleCompress(file) { // 图片压缩
|
348
|
|
- let self = this;
|
|
347
|
+ // 流程压缩
|
|
348
|
+ handleCompress(file) { // 图片压缩
|
|
349
|
+ const self = this
|
349
|
350
|
return new Promise((resolve, reject) => {
|
350
|
351
|
var reader = new FileReader()
|
351
|
|
- reader.onload = function (e) {
|
|
352
|
+ reader.onload = function(e) {
|
352
|
353
|
var data = e.target.result
|
353
|
354
|
// 加载图片获取图片真实宽度和高度
|
354
|
|
- var image = new Image()
|
355
|
|
- image.onload = function () {
|
356
|
|
- let newdata = self.compress(image);
|
357
|
|
- let blob = self.dataURItoBlob(newdata);
|
358
|
|
- var formData = new FormData();
|
359
|
|
- formData.append("file", blob);
|
360
|
|
- formData.append("newdata", newdata);
|
|
355
|
+ var image = new Image()
|
|
356
|
+ image.onload = function() {
|
|
357
|
+ const newdata = self.compress(image)
|
|
358
|
+ const blob = self.dataURItoBlob(newdata)
|
|
359
|
+ var formData = new FormData()
|
|
360
|
+ formData.append('file', blob)
|
|
361
|
+ formData.append('newdata', newdata)
|
361
|
362
|
// console.log("********将blob对象转成formData对象********");
|
362
|
363
|
// console.log(formData.get("file"));
|
363
|
|
- // console.log('formData',formData)
|
|
364
|
+ // console.log('formData',formData)
|
364
|
365
|
|
365
|
366
|
// console.log(formData)
|
366
|
|
- let data = {"uploadFiles": newdata }
|
367
|
|
- self.$store.dispatch('ImgAdd', Qs.stringify(data)).then((res) => {
|
368
|
|
- self.contentImgIO.push(res.data[0])
|
|
367
|
+ const data = { 'uploadFiles': newdata }
|
|
368
|
+ self.$store.dispatch('ImgAdd', Qs.stringify(data)).then((res) => {
|
|
369
|
+ self.contentImgIO.push(res.data[0])
|
369
|
370
|
// console.log('this.contentImgIO',res.data[0])
|
370
|
|
- // console.log('this.listQuery.contentImgIO',self.contentImgIO)
|
371
|
|
- })
|
|
371
|
+ // console.log('this.listQuery.contentImgIO',self.contentImgIO)
|
|
372
|
+ })
|
372
|
373
|
}
|
373
|
374
|
image.src = data
|
374
|
375
|
}
|
|
@@ -377,42 +378,40 @@ export default {
|
377
|
378
|
},
|
378
|
379
|
// 压缩图片
|
379
|
380
|
compress(img) {
|
380
|
|
- let canvas = document.createElement("canvas");
|
381
|
|
- let ctx = canvas.getContext("2d");
|
382
|
|
- let initSize = img.src.length;
|
383
|
|
- let width = img.width;
|
384
|
|
- let height = img.height;
|
385
|
|
- canvas.width = width;
|
386
|
|
- canvas.height = height;
|
|
381
|
+ const canvas = document.createElement('canvas')
|
|
382
|
+ const ctx = canvas.getContext('2d')
|
|
383
|
+ const initSize = img.src.length
|
|
384
|
+ const width = img.width
|
|
385
|
+ const height = img.height
|
|
386
|
+ canvas.width = width
|
|
387
|
+ canvas.height = height
|
387
|
388
|
// 铺底色
|
388
|
|
- ctx.fillStyle = "#fff";
|
389
|
|
- ctx.fillRect(0, 0, canvas.width, canvas.height);
|
390
|
|
- ctx.drawImage(img, 0, 0, width, height);
|
|
389
|
+ ctx.fillStyle = '#fff'
|
|
390
|
+ ctx.fillRect(0, 0, canvas.width, canvas.height)
|
|
391
|
+ ctx.drawImage(img, 0, 0, width, height)
|
391
|
392
|
|
392
|
|
- //进行最小压缩
|
393
|
|
- let ndata = canvas.toDataURL("image/jpeg", 0.8);
|
|
393
|
+ // 进行最小压缩
|
|
394
|
+ const ndata = canvas.toDataURL('image/jpeg', 0.8)
|
394
|
395
|
// console.log("*******压缩后的图片大小*******");
|
395
|
396
|
// window.atob(ndata);
|
396
|
397
|
// console.log(' window.atob(ndata);', window.atob(ndata))
|
397
|
398
|
// console.log(ndata)
|
398
|
399
|
// console.log(ndata.length);
|
399
|
|
- return ndata;
|
|
400
|
+ return ndata
|
400
|
401
|
},
|
401
|
402
|
// base64转成bolb对象
|
402
|
403
|
dataURItoBlob(base64Data) {
|
403
|
|
- var byteString;
|
404
|
|
- if (base64Data.split(",")[0].indexOf("base64") >= 0)
|
405
|
|
- byteString = atob(base64Data.split(",")[1]);
|
406
|
|
- else byteString = unescape(base64Data.split(",")[1]);
|
|
404
|
+ var byteString
|
|
405
|
+ if (base64Data.split(',')[0].indexOf('base64') >= 0) { byteString = atob(base64Data.split(',')[1]) } else byteString = unescape(base64Data.split(',')[1])
|
407
|
406
|
var mimeString = base64Data
|
408
|
|
- .split(",")[0]
|
409
|
|
- .split(":")[1]
|
410
|
|
- .split(";")[0];
|
411
|
|
- var ia = new Uint8Array(byteString.length);
|
|
407
|
+ .split(',')[0]
|
|
408
|
+ .split(':')[1]
|
|
409
|
+ .split(';')[0]
|
|
410
|
+ var ia = new Uint8Array(byteString.length)
|
412
|
411
|
for (var i = 0; i < byteString.length; i++) {
|
413
|
|
- ia[i] = byteString.charCodeAt(i);
|
|
412
|
+ ia[i] = byteString.charCodeAt(i)
|
414
|
413
|
}
|
415
|
|
- return new Blob([ia], { type: mimeString });
|
|
414
|
+ return new Blob([ia], { type: mimeString })
|
416
|
415
|
},
|
417
|
416
|
// 时间处理
|
418
|
417
|
formatDate(val) {
|
|
@@ -429,139 +428,139 @@ export default {
|
429
|
428
|
// return year + '-' + month + '-' + day
|
430
|
429
|
},
|
431
|
430
|
// 回复
|
432
|
|
- submitContent(){
|
|
431
|
+ submitContent() {
|
433
|
432
|
const loading = this.$loading({
|
434
|
433
|
lock: true,
|
435
|
434
|
text: 'Loading',
|
436
|
435
|
spinner: 'el-icon-loading',
|
437
|
436
|
background: 'rgba(0, 0, 0, 0.7)'
|
438
|
437
|
})
|
439
|
|
- if(this.listQuery.textContent===undefined||this.listQuery.textContent===''){
|
440
|
|
- this.$message.error('请输入内容')
|
441
|
|
- loading.close()
|
442
|
|
- return
|
|
438
|
+ if (this.listQuery.textContent === undefined || this.listQuery.textContent === '') {
|
|
439
|
+ this.$message.error('请输入内容')
|
|
440
|
+ loading.close()
|
|
441
|
+ return
|
443
|
442
|
}
|
444
|
|
- this.listQuery.img=this.contentImgAA
|
445
|
|
- this.$store.dispatch('AddRecordComment', this.listQuery,).then((res) => {
|
446
|
|
- this.Ass=false
|
447
|
|
- this.contentImgAA=[]
|
448
|
|
- this.dataQuery()
|
449
|
|
- this.Ass=true
|
450
|
|
- loading.close()
|
|
443
|
+ this.listQuery.img = this.contentImgAA
|
|
444
|
+ this.$store.dispatch('AddRecordComment', this.listQuery,).then((res) => {
|
|
445
|
+ this.Ass = false
|
|
446
|
+ this.contentImgAA = []
|
|
447
|
+ this.dataQuery()
|
|
448
|
+ this.Ass = true
|
|
449
|
+ loading.close()
|
451
|
450
|
}).catch(() => {
|
452
|
451
|
console.log('error addRecordComment')
|
453
|
452
|
})
|
454
|
453
|
},
|
455
|
|
- //受理人添加
|
456
|
|
- addRecord(){
|
457
|
|
- console.log('(this.listQuery.selectVale',this.listQuery.selectVale)
|
458
|
|
- if(this.listQuery.selectVale==='-1'||this.listQuery.selectVale===undefined){
|
459
|
|
- this.$message({
|
460
|
|
- showClose: true,
|
461
|
|
- message: '请您选择正确的受理人'
|
462
|
|
- });
|
463
|
|
- return
|
464
|
|
- }
|
465
|
|
-
|
466
|
|
- const loading = this.$loading({
|
|
454
|
+ // 受理人添加
|
|
455
|
+ addRecord() {
|
|
456
|
+ console.log('(this.listQuery.selectVale', this.listQuery.selectVale)
|
|
457
|
+ if (this.listQuery.selectVale === '-1' || this.listQuery.selectVale === undefined) {
|
|
458
|
+ this.$message({
|
|
459
|
+ showClose: true,
|
|
460
|
+ message: '请您选择正确的受理人'
|
|
461
|
+ })
|
|
462
|
+ return
|
|
463
|
+ }
|
|
464
|
+
|
|
465
|
+ const loading = this.$loading({
|
467
|
466
|
lock: true,
|
468
|
467
|
text: 'Loading',
|
469
|
468
|
spinner: 'el-icon-loading',
|
470
|
469
|
background: 'rgba(0, 0, 0, 0.7)'
|
471
|
|
- })
|
472
|
|
- this.$store.dispatch('AddRecord', this.listQuery).then((res) => {
|
473
|
|
- this.dataQuery()
|
474
|
|
- loading.close()
|
475
|
|
- this.$message({
|
|
470
|
+ })
|
|
471
|
+ this.$store.dispatch('AddRecord', this.listQuery).then((res) => {
|
|
472
|
+ this.dataQuery()
|
|
473
|
+ loading.close()
|
|
474
|
+ this.$message({
|
476
|
475
|
message: '分配成功',
|
477
|
476
|
type: 'success'
|
478
|
|
- })
|
|
477
|
+ })
|
479
|
478
|
}).catch(() => {
|
480
|
479
|
console.log('error AddRecord')
|
481
|
480
|
})
|
482
|
481
|
},
|
483
|
|
- //拒绝处理
|
|
482
|
+ // 拒绝处理
|
484
|
483
|
noAccept() {
|
485
|
|
- this.$prompt('请输入拒绝原因', '提示', {
|
486
|
|
- confirmButtonText: '确定',
|
487
|
|
- cancelButtonText: '取消'
|
488
|
|
- }).then(({value}) => {
|
489
|
|
- if(value===null){
|
|
484
|
+ this.$prompt('请输入拒绝原因', '提示', {
|
|
485
|
+ confirmButtonText: '确定',
|
|
486
|
+ cancelButtonText: '取消'
|
|
487
|
+ }).then(({ value }) => {
|
|
488
|
+ if (value === null) {
|
490
|
489
|
this.$message.error('请填写拒绝原因')
|
491
|
|
- return this.repetition();
|
492
|
|
- }
|
|
490
|
+ return this.repetition()
|
|
491
|
+ }
|
493
|
492
|
const loading = this.$loading({
|
494
|
|
- lock: true,
|
495
|
|
- text: 'Loading',
|
496
|
|
- spinner: 'el-icon-loading',
|
497
|
|
- background: 'rgba(0, 0, 0, 0.7)'
|
498
|
|
- })
|
499
|
|
- this.listQuery.noAcceptContent = value
|
|
493
|
+ lock: true,
|
|
494
|
+ text: 'Loading',
|
|
495
|
+ spinner: 'el-icon-loading',
|
|
496
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
497
|
+ })
|
|
498
|
+ this.listQuery.noAcceptContent = value
|
500
|
499
|
this.$store.dispatch('UpdateTicketStatus', this.listQuery).then((res) => {
|
501
|
500
|
this.dataQuery()
|
502
|
501
|
loading.close()
|
503
|
|
- }).catch(() => {
|
504
|
|
- console.log('error AddRecord')
|
505
|
|
- })
|
506
|
|
- this.$message({
|
507
|
|
- message: '成功',
|
508
|
|
- type: 'success',
|
509
|
|
- });
|
|
502
|
+ }).catch(() => {
|
|
503
|
+ console.log('error AddRecord')
|
510
|
504
|
})
|
511
|
|
- },
|
512
|
|
- repetition(){
|
513
|
|
- this.noAccept()
|
514
|
|
- },
|
515
|
|
- // 流程提交
|
516
|
|
- succeedClick(){
|
|
505
|
+ this.$message({
|
|
506
|
+ message: '成功',
|
|
507
|
+ type: 'success'
|
|
508
|
+ })
|
|
509
|
+ })
|
|
510
|
+ },
|
|
511
|
+ repetition() {
|
|
512
|
+ this.noAccept()
|
|
513
|
+ },
|
|
514
|
+ // 流程提交
|
|
515
|
+ succeedClick() {
|
517
|
516
|
const loading = this.$loading({
|
518
|
517
|
lock: true,
|
519
|
518
|
text: 'Loading',
|
520
|
519
|
spinner: 'el-icon-loading',
|
521
|
|
- background: 'rgba(0, 0, 0, 0.7)'
|
522
|
|
- })
|
|
520
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
521
|
+ })
|
523
|
522
|
|
524
|
|
- if(this.listQuery.relationContent===undefined||this.listQuery.relationContent===''){
|
525
|
|
- this.$message.error('请填写内容')
|
526
|
|
- loading.close()
|
527
|
|
- return
|
528
|
|
- }
|
529
|
|
- this.listQuery.imgIO = this.contentImgIO
|
530
|
|
- this.$store.dispatch('UpdateTicket', this.listQuery).then((res) => {
|
531
|
|
- this.Ass=false
|
532
|
|
- this.contentImgIO = []
|
533
|
|
- this.dataQuery()
|
534
|
|
- this.Ass=true
|
535
|
|
- this.$message({
|
|
523
|
+ if (this.listQuery.relationContent === undefined || this.listQuery.relationContent === '') {
|
|
524
|
+ this.$message.error('请填写内容')
|
|
525
|
+ loading.close()
|
|
526
|
+ return
|
|
527
|
+ }
|
|
528
|
+ this.listQuery.imgIO = this.contentImgIO
|
|
529
|
+ this.$store.dispatch('UpdateTicket', this.listQuery).then((res) => {
|
|
530
|
+ this.Ass = false
|
|
531
|
+ this.contentImgIO = []
|
|
532
|
+ this.dataQuery()
|
|
533
|
+ this.Ass = true
|
|
534
|
+ this.$message({
|
536
|
535
|
message: '发送成功,等待评价',
|
537
|
|
- type: 'success',
|
|
536
|
+ type: 'success'
|
538
|
537
|
})
|
539
|
|
- loading.close()
|
|
538
|
+ loading.close()
|
540
|
539
|
}).catch(() => {
|
541
|
540
|
console.log('error UpdateTicket')
|
542
|
541
|
})
|
543
|
|
- this.contentImgIO = []
|
|
542
|
+ this.contentImgIO = []
|
544
|
543
|
},
|
545
|
|
- next() {
|
546
|
|
- if (this.active++ > 2) this.active = 0;
|
547
|
|
- },
|
|
544
|
+ next() {
|
|
545
|
+ if (this.active++ > 2) this.active = 0
|
|
546
|
+ }
|
548
|
547
|
}
|
549
|
|
-};
|
|
548
|
+}
|
550
|
549
|
</script>
|
551
|
550
|
<style scoped>
|
552
|
551
|
.stepComponent{
|
553
|
|
- width: 100%-20px;
|
|
552
|
+ width: 100%;
|
554
|
553
|
padding: 10px 10px 10px 10px;
|
555
|
|
- margin: 10px 10px 10px 10px;
|
|
554
|
+ margin: 0px 10px 10px 10px;
|
556
|
555
|
}
|
557
|
556
|
.stepsTitle{
|
558
|
|
- margin: 10px 0px 10px 10px ;
|
|
557
|
+ margin: 10px 0px 10px -15px ;
|
559
|
558
|
}
|
560
|
559
|
.approvalProcess{
|
561
|
560
|
color: #9EADC4;
|
562
|
561
|
font-size: 14px;
|
563
|
562
|
width: 100%;
|
564
|
|
- margin-left:20px;
|
|
563
|
+ margin-left:-5px;
|
565
|
564
|
margin-right:0px;
|
566
|
565
|
margin-top:10px;
|
567
|
566
|
}
|
|
@@ -585,16 +584,17 @@ export default {
|
585
|
584
|
float:right
|
586
|
585
|
}
|
587
|
586
|
.size-left{
|
588
|
|
- float:right;width:12.5%;
|
|
587
|
+ float:right;
|
|
588
|
+ width:12.5%;
|
589
|
589
|
}
|
590
|
590
|
.textarea-inherit {
|
591
|
591
|
width: 100%;
|
592
|
592
|
overflow: auto;
|
593
|
|
- word-break: break-all;
|
|
593
|
+ word-break: break-all;
|
594
|
594
|
}
|
595
|
595
|
.select-inherit {
|
596
|
596
|
width: 100%;
|
597
|
|
-
|
|
597
|
+
|
598
|
598
|
}
|
599
|
599
|
.table-finally{
|
600
|
600
|
padding-right: 10%;
|