|
@@ -56,6 +56,12 @@ app.controller('incidentDetailCtrl', ["$scope", "$http", "i18nService", "$rootSc
|
56
|
56
|
})
|
57
|
57
|
}
|
58
|
58
|
|
|
59
|
+ $scope.type = $stateParams.type || 'incident.list';
|
|
60
|
+ //返回列表
|
|
61
|
+ $scope.goToList = function(type){
|
|
62
|
+ $state.go("app." + type);
|
|
63
|
+ }
|
|
64
|
+
|
59
|
65
|
// 预览图片
|
60
|
66
|
$scope.preview = function (type, url, idx) {
|
61
|
67
|
let title = $scope[type][idx].title;
|
|
@@ -139,7 +145,7 @@ app.controller('incidentDetailCtrl', ["$scope", "$http", "i18nService", "$rootSc
|
139
|
145
|
});
|
140
|
146
|
}
|
141
|
147
|
};
|
142
|
|
-
|
|
148
|
+
|
143
|
149
|
// 回访
|
144
|
150
|
$scope.payReturn = function () {
|
145
|
151
|
let model = $scope.model
|
|
@@ -149,27 +155,27 @@ app.controller('incidentDetailCtrl', ["$scope", "$http", "i18nService", "$rootSc
|
149
|
155
|
controller: function ($scope,$rootScope, $modalInstance, api_bpm_domain, modelData, currentUserId, Alert, api_user_data,api_category) {
|
150
|
156
|
console.log(model,loginUser);
|
151
|
157
|
$scope.model = model;
|
152
|
|
-
|
|
158
|
+
|
153
|
159
|
$scope.postData = {
|
154
|
160
|
degree: undefined,
|
155
|
161
|
visitRemarks: '',
|
156
|
162
|
}
|
157
|
163
|
$scope.degreeList = [];
|
158
|
|
-
|
|
164
|
+
|
159
|
165
|
// 获取满意度评价
|
160
|
166
|
$scope.getDegree = function(){
|
161
|
167
|
api_wechatfile.getDictionary({"key":"incident_degree","type":"list"}).then(function (data) {
|
162
|
168
|
$scope.degreeList = data || [];
|
163
|
169
|
})
|
164
|
170
|
}
|
165
|
|
-
|
|
171
|
+
|
166
|
172
|
// 获取结果类型
|
167
|
173
|
$scope.getHandleResult = function(){
|
168
|
174
|
api_wechatfile.getDictionary({"key":"incident_handleresult","type":"list"}).then(function (data) {
|
169
|
175
|
$scope.handleResultList = data || [];
|
170
|
176
|
})
|
171
|
177
|
}
|
172
|
|
-
|
|
178
|
+
|
173
|
179
|
// 初始化
|
174
|
180
|
$scope.getDegree();
|
175
|
181
|
$scope.getHandleResult();
|
|
@@ -195,7 +201,7 @@ app.controller('incidentDetailCtrl', ["$scope", "$http", "i18nService", "$rootSc
|
195
|
201
|
handleResult: $scope.postData.handleResult,
|
196
|
202
|
visitRemarks: $scope.postData.visitRemarks,
|
197
|
203
|
}}};
|
198
|
|
-
|
|
204
|
+
|
199
|
205
|
$rootScope.isMask = true;
|
200
|
206
|
api_flow.accept("callback", postData).then(function (response) {
|
201
|
207
|
console.log(response)
|
|
@@ -220,7 +226,7 @@ app.controller('incidentDetailCtrl', ["$scope", "$http", "i18nService", "$rootSc
|
220
|
226
|
}
|
221
|
227
|
});
|
222
|
228
|
}
|
223
|
|
-
|
|
229
|
+
|
224
|
230
|
$scope.cancel = function () {
|
225
|
231
|
$modalInstance.dismiss('cancel');
|
226
|
232
|
}
|
|
@@ -250,7 +256,7 @@ app.controller('incidentDetailCtrl', ["$scope", "$http", "i18nService", "$rootSc
|
250
|
256
|
}
|
251
|
257
|
});
|
252
|
258
|
};
|
253
|
|
-
|
|
259
|
+
|
254
|
260
|
// 关闭
|
255
|
261
|
$scope.closeModel = function () {
|
256
|
262
|
$state.go('app.incident.list', {});
|