|
@@ -20786,7 +20786,7 @@ appFormly.run(function (formlyConfig, $parse) {
|
20786
|
20786
|
undefined
|
20787
|
20787
|
);
|
20788
|
20788
|
}
|
20789
|
|
- } else {
|
|
20789
|
+ } else if(typeof field.key =='string') {
|
20790
|
20790
|
$parse(field.key).assign(scope.model, undefined);
|
20791
|
20791
|
}
|
20792
|
20792
|
}
|
|
@@ -21795,7 +21795,7 @@ appFormly.controller("CustomformCtrl", [
|
21795
|
21795
|
if(vm.model.start_code == "close"&&(integralMechanism == 1 || (integralMechanism == 2 && $rootScope.user.userType.value == 2))){
|
21796
|
21796
|
$modal.open({
|
21797
|
21797
|
templateUrl: 'assets/views/incident/tpl/toIntegralMechanism.tpl.html',
|
21798
|
|
- controller: function ($scope, $modalInstance, api_bpm_domain, incidentData, currentUserId, Alert, api_user_data,api_wechatfile,scope) {
|
|
21798
|
+ controller: function ($scope, $modalInstance, api_bpm_domain, incidentData, currentUserId, Alert, api_user_data,api_wechatfile,scope,api_bpm_data) {
|
21799
|
21799
|
console.log(incidentData,currentUserId);
|
21800
|
21800
|
$scope.flag = false;
|
21801
|
21801
|
$scope.complexityConfirm = {complexity:null,updateReason:''};
|
|
@@ -21811,8 +21811,14 @@ appFormly.controller("CustomformCtrl", [
|
21811
|
21811
|
$scope.list = [];
|
21812
|
21812
|
api_wechatfile.getDictionary({"key":"incident_complexity","type":"list"}).then(function(res){
|
21813
|
21813
|
$scope.list = res;
|
21814
|
|
- $scope.complexity = $scope.complexityFn(incidentData.category);
|
21815
|
|
- $scope.complexityConfirm.complexity = $scope.list.find(v=>v.value == $scope.complexity);
|
|
21814
|
+ if(incidentData.category && incidentData.category.id){
|
|
21815
|
+ api_bpm_data.fetchData("incidentCategory",incidentData.category.id).then(function(result){
|
|
21816
|
+ if(result.status == 200){
|
|
21817
|
+ $scope.complexity = $scope.complexityFn(result.data);
|
|
21818
|
+ $scope.complexityConfirm.complexity = $scope.list.find(v=>v.value == $scope.complexity);
|
|
21819
|
+ }
|
|
21820
|
+ })
|
|
21821
|
+ }
|
21816
|
21822
|
})
|
21817
|
21823
|
$scope.onChangeComplexity = function(item){
|
21818
|
21824
|
|
|
@@ -22013,7 +22019,7 @@ appFormly.controller("CustomformCtrl", [
|
22013
|
22019
|
if($scope.formData.name === 'handlerform'&&(integralMechanism == 1 || (integralMechanism == 2 && $rootScope.user.userType.value == 2))){
|
22014
|
22020
|
$modal.open({
|
22015
|
22021
|
templateUrl: 'assets/views/incident/tpl/toIntegralMechanism.tpl.html',
|
22016
|
|
- controller: function ($scope, $modalInstance, api_bpm_domain, incidentData, currentUserId, Alert, api_user_data,api_wechatfile,scope) {
|
|
22022
|
+ controller: function ($scope, $modalInstance, api_bpm_domain, incidentData, currentUserId, Alert, api_user_data,api_wechatfile,scope,api_bpm_data) {
|
22017
|
22023
|
console.log(incidentData,currentUserId);
|
22018
|
22024
|
$scope.flag = true;
|
22019
|
22025
|
$scope.complexityConfirm = {complexity:null,updateReason:''};
|
|
@@ -22029,8 +22035,14 @@ appFormly.controller("CustomformCtrl", [
|
22029
|
22035
|
$scope.list = [];
|
22030
|
22036
|
api_wechatfile.getDictionary({"key":"incident_complexity","type":"list"}).then(function(res){
|
22031
|
22037
|
$scope.list = res;
|
22032
|
|
- $scope.complexity = $scope.complexityFn(incidentData.category);
|
22033
|
|
- $scope.complexityConfirm.complexity = $scope.list.find(v=>v.value == $scope.complexity);
|
|
22038
|
+ if(incidentData.category && incidentData.category.id){
|
|
22039
|
+ api_bpm_data.fetchData("incidentCategory",incidentData.category.id).then(function(result){
|
|
22040
|
+ if(result.status == 200){
|
|
22041
|
+ $scope.complexity = $scope.complexityFn(result.data);
|
|
22042
|
+ $scope.complexityConfirm.complexity = $scope.list.find(v=>v.value == $scope.complexity);
|
|
22043
|
+ }
|
|
22044
|
+ })
|
|
22045
|
+ }
|
22034
|
22046
|
})
|
22035
|
22047
|
$scope.onChangeComplexity = function(item){
|
22036
|
22048
|
if($scope.complexityConfirm.complexity.value == $scope.complexity){
|