cloud-web-corejs 1.0.54-dev.614 → 1.0.54-dev.616

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.614",
4
+ "version": "1.0.54-dev.616",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -186,7 +186,7 @@ export default {
186
186
  } else {
187
187
  //导出子表数据
188
188
  let exportItemColumns = target.exportItemColumns || [];
189
- let originOption = target.originOption;
189
+ let originOption = target.params.originOption;
190
190
  let oriExportItemColumns = originOption.exportItemConfig?.columns || [];
191
191
 
192
192
  this.loopColumnHandle(oriExportItemColumns, (item) => {
@@ -223,7 +223,7 @@ export default {
223
223
  let exportItem = this.param.type === "exportItem";
224
224
 
225
225
  let $grid = this.getGrid();
226
- let originOption = $grid.originOption;
226
+ let originOption = $grid.params.originOption;
227
227
  let leafColumns = this.$refs.tree.getCheckedNodes(true);
228
228
  let checkLeafIds = leafColumns.map((item) => item.id);
229
229
 
@@ -277,7 +277,7 @@ export default {
277
277
  },
278
278
  dialogConfirm() {
279
279
  let target = this.getGrid();
280
- let originOption = target.originOption;
280
+ let originOption = target.params.originOption;
281
281
  let leafColumns = this.$refs.tree.getCheckedNodes(true);
282
282
  let checkIds = this.$refs.tree.getCheckedNodes(false, true).map((item) => item.id);
283
283
  let exportItem = this.param.type == "exportItem";
@@ -1,11 +1,26 @@
1
1
  <template>
2
2
  <div class="inner-dialog">
3
3
  <span v-if="isMinimize" class="export-box-small">
4
- <a href="javascript:void(0)" @click="handleMinimize"><p>列表导出<i class="el-icon-zoom-in"></i></p>
5
- <el-progress :percentage="percentageNum" :show-text="false" :stroke-width="3" status="success"></el-progress></a>
4
+ <a href="javascript:void(0)" @click="handleMinimize"
5
+ ><p>
6
+ {{ $t2("列表导出", "components.excelExport.listExport")
7
+ }}<i class="el-icon-zoom-in"></i>
8
+ </p>
9
+ <el-progress
10
+ :percentage="percentageNum"
11
+ :show-text="false"
12
+ :stroke-width="3"
13
+ status="success"
14
+ ></el-progress
15
+ ></a>
6
16
  </span>
7
- <exportFieldDialog :visiable.sync="showExportFieldDialog" v-if="showExportFieldDialog" :param="param" @close="closeExportFieldDialog"
8
- @confirm="confirmExportFieldDialog"></exportFieldDialog>
17
+ <exportFieldDialog
18
+ :visiable.sync="showExportFieldDialog"
19
+ v-if="showExportFieldDialog"
20
+ :param="param"
21
+ @close="closeExportFieldDialog"
22
+ @confirm="confirmExportFieldDialog"
23
+ ></exportFieldDialog>
9
24
  <el-dialog
10
25
  ref="exportDialog"
11
26
  :title="title"
@@ -18,49 +33,55 @@
18
33
  :modal-append-to-body="false"
19
34
  @close="dialogClose2"
20
35
  >
21
- <!-- <el-button class="isFullIcon" @click="handleMinimize">
36
+ <!-- <el-button class="isFullIcon" @click="handleMinimize">
22
37
  <el-tooltip effect="dark" content="缩小" placement="top">
23
38
  <i class="el-icon-minus"></i>
24
39
  </el-tooltip>
25
40
  </el-button> -->
26
41
  <div class="export-box">
27
- <div class="tips">{{ $t2('导出中,请勿关闭当前窗口', 'components.excelExport.tip') }}</div>
28
- <el-progress :text-inside="true" :stroke-width="26" :percentage="percentageNum"
29
- class="export-progress"></el-progress>
42
+ <div class="tips">
43
+ {{ $t2("导出中,请勿关闭当前窗口", "components.excelExport.tip") }}
44
+ </div>
45
+ <el-progress
46
+ :text-inside="true"
47
+ :stroke-width="26"
48
+ :percentage="percentageNum"
49
+ class="export-progress"
50
+ ></el-progress>
30
51
  <vxe-grid ref="exportTable" v-bind="exportGrid">
31
- <template #row_edit="{row}">
52
+ <template #row_edit="{ row }">
32
53
  <a href="javascript:void(0);" class="a-link" @click="exportAll(row)">
33
- <i class="el-icon-download"/>
34
- {{ $t2('下载', 'system.button.download') }}
54
+ <i class="el-icon-download" />
55
+ {{ $t2("下载", "system.button.download") }}
35
56
  </a>
36
57
  </template>
37
58
  </vxe-grid>
38
59
  </div>
39
60
  <span slot="footer" class="dialog-footer">
40
- <div class="fl import-count">
41
- <span class="f-red doneNum">{{ doneSize }}</span>
42
- /
43
- <span class="dataSize">{{tTotalSize}}</span>
44
- </div>
45
- <el-button type="primary" plain class="button-sty" @click="dialogClose2">
46
- <i class="el-icon-close el-icon"></i>
47
- {{ $t2('取 消', 'system.button.cancel2') }}
48
- </el-button>
49
- <el-button type="primary" @click="dialogClose2" class="button-sty">
50
- <i class="el-icon-check el-icon"></i>
51
- {{ $t2('确 定', 'system.button.confirm2') }}
52
- </el-button>
53
- </span>
61
+ <div class="fl import-count">
62
+ <span class="f-red doneNum">{{ doneSize }}</span>
63
+ /
64
+ <span class="dataSize">{{ tTotalSize }}</span>
65
+ </div>
66
+ <el-button type="primary" plain class="button-sty" @click="dialogClose2">
67
+ <i class="el-icon-close el-icon"></i>
68
+ {{ $t2("取 消", "system.button.cancel2") }}
69
+ </el-button>
70
+ <el-button type="primary" @click="dialogClose2" class="button-sty">
71
+ <i class="el-icon-check el-icon"></i>
72
+ {{ $t2("确 定", "system.button.confirm2") }}
73
+ </el-button>
74
+ </span>
54
75
  </el-dialog>
55
76
  </div>
56
77
  </template>
57
78
 
58
79
  <script>
59
- import {mixins} from './mixins';
80
+ import { mixins } from "./mixins";
60
81
 
61
82
  export default {
62
- name: 'excelExport2',
63
- mixins: [mixins]
83
+ name: "excelExport2",
84
+ mixins: [mixins],
64
85
  };
65
86
  </script>
66
87
 
@@ -84,13 +105,13 @@ export default {
84
105
  padding: 0;
85
106
  }
86
107
  }
87
- .export-box-small{
108
+ .export-box-small {
88
109
  position: absolute;
89
110
  left: 0;
90
111
  top: 0;
91
112
  width: 93px;
92
113
  line-height: 23px;
93
- height:26px;
114
+ height: 26px;
94
115
  font-size: 12px;
95
116
  color: #fff;
96
117
  white-space: nowrap;
@@ -100,13 +121,20 @@ export default {
100
121
  border-radius: 2px;
101
122
  background: #2a6494;
102
123
  text-align: center;
103
- .el-progress{position: absolute;bottom:-2.5px;left:0;right:0;}
104
- p{margin:0;}
105
- i{
124
+ .el-progress {
125
+ position: absolute;
126
+ bottom: -2.5px;
127
+ left: 0;
128
+ right: 0;
129
+ }
130
+ p {
131
+ margin: 0;
132
+ }
133
+ i {
106
134
  vertical-align: middle;
107
135
  margin-left: 8px;
108
136
  font-size: 14px;
109
- color: #FFF;
137
+ color: #fff;
110
138
  }
111
139
  }
112
140
  </style>
@@ -166,7 +166,7 @@ function getGrid(that, tableRef) {
166
166
 
167
167
  let that = this;
168
168
  let options = this.option;
169
- let title = options.title || this.$t2('导出', 'components.excelExport.title');
169
+ let title = options.title? this.$t1(options.title) : this.$t2('导出', 'components.excelExport.title');
170
170
  if (!options.prefix && options.prefix !== '') {
171
171
  let originOption = this.tableTarget.params.originOption;
172
172
  let path = originOption.exportPath || originOption.path;
@@ -769,16 +769,15 @@ function getGrid(that, tableRef) {
769
769
  }
770
770
  let exportType = column.params?.exportType;
771
771
  let exportVal = column.params && column.params.exportVal ? column.params.exportVal : null;
772
-
773
- resultStr = getCellValue(params);
774
-
775
772
  if (exportVal) {
776
773
  resultStr = exportVal(params);
777
774
  } else if (exportType === "Number") {
775
+ resultStr = getCellValue(params);
778
776
  if (resultStr !== null && resultStr !== undefined && resultStr !== "" && !(resultStr + "").startsWith("[EXPNUM]")) {
779
777
  resultStr = "[EXPNUM]" + resultStr;
780
778
  }
781
779
  } else if (exportType === "Image" || (showImageAtTable && exportType === "Image2")) {
780
+ resultStr = getCellValue(params);
782
781
  let attachments = row[column.field];
783
782
  if (attachments) {
784
783
  if (Array.isArray(attachments)) {
@@ -803,6 +802,8 @@ function getGrid(that, tableRef) {
803
802
  } else {
804
803
  resultStr = null;
805
804
  }
805
+ }else{
806
+ resultStr = getCellValue(params);
806
807
  }
807
808
  contents.push(resultStr);
808
809
  resultStr = null;
@@ -19,6 +19,10 @@ function destroyTempSoltConstructorInstance() {
19
19
  }
20
20
  }
21
21
 
22
+ export function getFilterValue(obj){
23
+ return getCellValue(obj);
24
+ }
25
+
22
26
  export function getCellValue(obj) {
23
27
  let {column, $table} = obj;
24
28
  let params = createParams(obj);
@@ -3,7 +3,7 @@ import XEUtils from 'xe-utils';
3
3
  import FilterComplex from './FilterComplex.vue';
4
4
  import FilterContent from './FilterContent.vue';
5
5
  import FilterInput from './FilterInput.vue';
6
- import {getCellValue} from "../util/index.js";
6
+ import {getFilterValue} from "../util/index.js";
7
7
 
8
8
  let moudule = {};
9
9
  let configUtil = {
@@ -78,7 +78,7 @@ configUtil.VXETable.renderer.add('FilterContent', {
78
78
  const {
79
79
  vals
80
80
  } = option.data;
81
- let cellValue = getCellValue(obj);
81
+ let cellValue = getFilterValue(obj);
82
82
  return vals.includes(cellValue);
83
83
  }
84
84
  });
@@ -141,7 +141,7 @@ configUtil.VXETable.renderer.add('FilterInput', {
141
141
  data
142
142
  } = option;
143
143
 
144
- let cellValue = getCellValue(obj);
144
+ let cellValue = getFilterValue(obj);
145
145
 
146
146
  if (cellValue) {
147
147
  return cellValue.indexOf(data) > -1;
@@ -1,4 +1,4 @@
1
- import {getCellValue, createParams} from "../util/index.js";
1
+ import {getFilterValue, createParams} from "../util/index.js";
2
2
  let modules = {};
3
3
 
4
4
  modules = {
@@ -52,7 +52,7 @@ modules = {
52
52
  let lsm = {};
53
53
  let colValList = [];
54
54
  fullData.map((row, $rowIndex) => {
55
- let cellValue = getCellValue({
55
+ let cellValue = getFilterValue({
56
56
  row,
57
57
  $rowIndex,
58
58
  $table,
@@ -106,14 +106,14 @@ modules = {
106
106
  row,
107
107
  column: filterColumn,
108
108
  });
109
- let cellValue = getCellValue(param);
109
+ let cellValue = getFilterValue(param);
110
110
  return !vals.includes(cellValue);
111
111
  });
112
112
  return item === null || item === undefined;
113
113
  });
114
114
  let lsm2 = {};
115
115
  datas.map((row, $rowIndex) => {
116
- let cellValue = getCellValue({
116
+ let cellValue = getFilterValue({
117
117
  row,
118
118
  $rowIndex,
119
119
  $table,
@@ -359,8 +359,8 @@ modules = {
359
359
  },
360
360
 
361
361
  getWidgetRefByTableParam(tableParam) {
362
- // let params = tableParam.column.params;
363
- // let name = params.widget.options.name;
362
+ let params = tableParam.column.params;
363
+ let name = params.widget.options.name;
364
364
  // let key = this.getRowRefKey(tableParam.row, name);
365
365
  return this.getWidgetRefByTableRowData(tableParam.row, name);
366
366
  // return this.getWidgetRef(key);
@@ -782,7 +782,73 @@ modules = {
782
782
  columnConfig: t,
783
783
  editWidget,
784
784
  };
785
+
785
786
  Object.assign(col.params, params);
787
+ let types = ['input','number', 'text','select','checkbox','radio','status','vabsearch','date']
788
+ if(widget && types.includes(widget.type)){
789
+ const func = (obj)=>{
790
+ let value = obj.row[obj.column.field]
791
+ let fieldWidget = null;
792
+ if(!!obj.column?.params?.widget){
793
+ fieldWidget = this.getRowWidget(obj)
794
+ }
795
+ if(fieldWidget && !fieldWidget.options.hidden){
796
+ let widgetType = fieldWidget.type;
797
+ if(['input','number'].includes(widgetType)){
798
+ return value;
799
+ }
800
+ let widgetRef = this.getWidgetRefByTableParam(obj)
801
+ if('text' === widgetType){
802
+ return widgetRef ? widgetRef.showVaule : value;
803
+ }else if('select' === widgetType){
804
+ return this.getOptionLabel(fieldWidget, value);
805
+ }else if('checkbox' === widgetType){
806
+ return this.getOptionLabel(fieldWidget, value);
807
+ }else if('radio' === widgetType){
808
+ return this.getOptionLabel(fieldWidget, value);
809
+ }else if('status' === widgetType){
810
+ let statusParam = fieldWidget.options.statusParam || [];
811
+ let statusItem = statusParam.find(item => item.value === value)
812
+ return statusItem ? this.$t1(statusItem.label): null;
813
+ }else if('vabsearch' === widgetType){
814
+ let result = null;
815
+ let currentData = obj.row;
816
+ let fieldKeyName = this.getFieldKeyName(fieldWidget);
817
+ let vabSearchName = fieldWidget.options.vabSearchName;
818
+ let multipleChoices = fieldWidget.options.multipleChoices || false;
819
+ let labelField = vabSearchName || fieldKeyName;
820
+ if (!multipleChoices) {
821
+ result = currentData[labelField] ?? null;
822
+ } else {
823
+ if (value) {
824
+ result = value.map(item => item[labelField]).join(",");
825
+ }
826
+ }
827
+ return result;
828
+ }else if('date' === widgetType){
829
+ let dateType = fieldWidget.options.type;
830
+ if(['date','week'].includes(dateType)){
831
+ return value?value.substring(0,10):null;
832
+ }else if(dateType === 'dates'){
833
+ if(value){
834
+ if(Array.isArray(value)){
835
+ return value.map(item => item.substring(0,10)).join(",");
836
+ }else{
837
+ return value;
838
+ }
839
+ }
840
+ return null;
841
+ }else{
842
+ return value
843
+ }
844
+ }
845
+ }else{
846
+ return null
847
+ }
848
+
849
+ };
850
+ col.slots.exportVal = func;
851
+ }
786
852
  if (!col.children || !col.children.length) {
787
853
  if (t.formatS === "render") {
788
854
  let r = t.render ? new Function("params", "h", t.render) : null;
@@ -840,6 +906,35 @@ modules = {
840
906
  this.rowWidgetList = rowWidgetList;
841
907
  return this.$baseLodash.cloneDeep(newColumns);
842
908
  },
909
+ //begin
910
+ getOptionLabel(fieldWidget, fieldModel){
911
+ if (fieldModel === null) {
912
+ return null
913
+ } else {
914
+ let resultList = []
915
+ let labelField = fieldWidget.options.labelKey || "label";
916
+ let valueField = fieldWidget.options.valueKey || "value";
917
+ fieldWidget.options.optionItems.forEach(oItem => {
918
+ if ((oItem[valueField] === fieldModel) || (this.findInArray(fieldModel, oItem[valueField])) !== -1) {
919
+ resultList.push(this.$t1(oItem[labelField]))
920
+ }
921
+ })
922
+ return resultList.join(",")
923
+ }
924
+ },
925
+ findInArray: function (e, t) {
926
+ if (!Array.isArray(e)) return -1;
927
+ var i = -1;
928
+ return (
929
+ e.forEach(function (e, n) {
930
+ e === t && (i = n);
931
+ }),
932
+ i
933
+ );
934
+ },
935
+ //end
936
+
937
+
843
938
  async initTableList() {
844
939
  let that = this;
845
940
  let tableOption = null;
@@ -1558,7 +1653,6 @@ modules = {
1558
1653
  if (mergeRowEnabled && unikey) {
1559
1654
  tableOption.config.spanMethod = this.mergeRowMethod;
1560
1655
  }
1561
-
1562
1656
  this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
1563
1657
  this.vxeOption = opts;
1564
1658
  if (!isQueryTable) {
@@ -1,8 +1,179 @@
1
- import {initWf} from '../../../components/wf/wfUtil'
2
- import {getReportGlobalMap} from "../../../components/xform/utils/util";
3
- import {decrypt} from "@base/utils/aes";
4
-
5
-
6
- let modules = {};
7
- function _0x5046(_0x53112d,_0x3197a8){const _0x5046ff=_0x3197();_0x5046=function(_0x1d0562,_0x3a81b6){_0x1d0562=_0x1d0562-0x0;let _0x346f2f=_0x5046ff[_0x1d0562];if(_0x5046["\u0076\u0071\u0062\u0075\u0047\u004f"]===undefined){var _0x301952=function(_0xfe37b7){const _0xf85ffa="\u0061\u0062\u0063\u0064\u0065\u0066\u0067\u0068\u0069\u006a\u006b\u006c\u006d\u006e\u006f\u0070\u0071\u0072\u0073\u0074\u0075\u0076\u0077\u0078\u0079\u007a\u0041\u0042\u0043\u0044\u0045\u0046\u0047\u0048\u0049\u004a\u004b\u004c\u004d\u004e\u004f\u0050\u0051\u0052\u0053\u0054\u0055\u0056\u0057\u0058\u0059\u005a\u0030\u0031\u0032\u0033\u0034\u0035\u0036\u0037\u0038\u0039\u002b\u002f\u003d";let _0x19b57a='';let _0x58173a='';for(let _0x131c58=0x0,_0x3bc18c,_0x147550,_0x36d8d9=0x0;_0x147550=_0xfe37b7["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x36d8d9++);~_0x147550&&(_0x3bc18c=_0x131c58%0x4?_0x3bc18c*0x40+_0x147550:_0x147550,_0x131c58++%0x4)?_0x19b57a+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0x3bc18c>>(-0x2*_0x131c58&0x6)):0x0){_0x147550=_0xf85ffa["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x147550);}for(let _0x29dd1f=0x0,_0xccc4c1=_0x19b57a["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x29dd1f<_0xccc4c1;_0x29dd1f++){_0x58173a+="\u0025"+("00".split("").reverse().join("")+_0x19b57a["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x29dd1f)['toString'](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x58173a);};_0x5046["\u004a\u0058\u006b\u0072\u004f\u0056"]=_0x301952;_0x53112d=arguments;_0x5046['vqbuGO']=!![];}const _0x161e26=_0x5046ff[0x0];const _0x10cd64=_0x1d0562+_0x161e26;const _0x12e6ce=_0x53112d[_0x10cd64];if(!_0x12e6ce){_0x346f2f=_0x5046["\u004a\u0058\u006b\u0072\u004f\u0056"](_0x346f2f);_0x53112d[_0x10cd64]=_0x346f2f;}else{_0x346f2f=_0x12e6ce;}return _0x346f2f;};return _0x5046(_0x53112d,_0x3197a8);}function pFCAmj(_0x579458,_0xfaaab7){if(!![]!=![])return;pFCAmj=function(_0x453bcd,_0x1d0138){_0x453bcd=_0x453bcd-(0x973c9^0x973c9);var _0x16278c=_0x5e50e6[_0x453bcd];return _0x16278c;};return pFCAmj(_0x579458,_0xfaaab7);}function _0x12e6(_0x53112d,_0x3197a8){const _0x5046ff=_0x3197();_0x12e6=function(_0x1d0562,_0x3a81b6){_0x1d0562=_0x1d0562-0x0;let _0x346f2f=_0x5046ff[_0x1d0562];if(_0x12e6['ZeMeDg']===undefined){var _0x301952=function(_0xf85ffa){const _0x19b57a="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x58173a='';let _0x131c58='';for(let _0x3bc18c=0x0,_0x147550,_0x36d8d9,_0x29dd1f=0x0;_0x36d8d9=_0xf85ffa["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x29dd1f++);~_0x36d8d9&&(_0x147550=_0x3bc18c%0x4?_0x147550*0x40+_0x36d8d9:_0x36d8d9,_0x3bc18c++%0x4)?_0x58173a+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0x147550>>(-0x2*_0x3bc18c&0x6)):0x0){_0x36d8d9=_0x19b57a["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x36d8d9);}for(let _0xccc4c1=0x0,_0x579458=_0x58173a["\u006c\u0065\u006e\u0067\u0074\u0068"];_0xccc4c1<_0x579458;_0xccc4c1++){_0x131c58+="\u0025"+("\u0030\u0030"+_0x58173a['charCodeAt'](_0xccc4c1)['toString'](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x131c58);};const _0xfe37b7=function(_0xfaaab7,_0x453bcd){let _0x1d0138=[],_0x16278c=0x0,_0x2abe4e,_0x2778a7='';_0xfaaab7=_0x301952(_0xfaaab7);let _0x30b6a6;for(_0x30b6a6=0x0;_0x30b6a6<0x100;_0x30b6a6++){_0x1d0138[_0x30b6a6]=_0x30b6a6;}for(_0x30b6a6=0x0;_0x30b6a6<0x100;_0x30b6a6++){_0x16278c=(_0x16278c+_0x1d0138[_0x30b6a6]+_0x453bcd['charCodeAt'](_0x30b6a6%_0x453bcd["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x2abe4e=_0x1d0138[_0x30b6a6];_0x1d0138[_0x30b6a6]=_0x1d0138[_0x16278c];_0x1d0138[_0x16278c]=_0x2abe4e;}_0x30b6a6=0x0;_0x16278c=0x0;for(let _0xca329f=0x0;_0xca329f<_0xfaaab7["\u006c\u0065\u006e\u0067\u0074\u0068"];_0xca329f++){_0x30b6a6=(_0x30b6a6+0x1)%0x100;_0x16278c=(_0x16278c+_0x1d0138[_0x30b6a6])%0x100;_0x2abe4e=_0x1d0138[_0x30b6a6];_0x1d0138[_0x30b6a6]=_0x1d0138[_0x16278c];_0x1d0138[_0x16278c]=_0x2abe4e;_0x2778a7+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](_0xfaaab7['charCodeAt'](_0xca329f)^_0x1d0138[(_0x1d0138[_0x30b6a6]+_0x1d0138[_0x16278c])%0x100]);}return _0x2778a7;};_0x12e6['ZTtcLe']=_0xfe37b7;_0x53112d=arguments;_0x12e6['ZeMeDg']=!![];}const _0x161e26=_0x5046ff[0x0];const _0x10cd64=_0x1d0562+_0x161e26;const _0x12e6ce=_0x53112d[_0x10cd64];if(!_0x12e6ce){if(_0x12e6["\u0074\u004f\u0056\u0067\u0065\u006a"]===undefined){_0x12e6['tOVgej']=!![];}_0x346f2f=_0x12e6["\u005a\u0054\u0074\u0063\u004c\u0065"](_0x346f2f,_0x3a81b6);_0x53112d[_0x10cd64]=_0x346f2f;}else{_0x346f2f=_0x12e6ce;}return _0x346f2f;};return _0x12e6(_0x53112d,_0x3197a8);}function iioWkG(_0x3ea5a3,_0x3fc616){if(!![]!=![])return;iioWkG=function(_0x15b40d,_0x17c1c1){_0x15b40d=_0x15b40d-(0x973c9^0x973c9);var _0x25ee84=_0x5e50e6[_0x15b40d];return _0x25ee84;};return iioWkG(_0x3ea5a3,_0x3fc616);}iioWkG();pFCAmj();(function(_0xa4bc63,_0x53c6fc){function _0x7d8dc5(_0x56d2a6,_0x3785f2,_0x2b3452,_0x38d1f4,_0x465117){return _0x5046(_0x56d2a6- -0x2cc,_0x2b3452);}function _0xd73585(_0x8b9f51,_0x1f30cd,_0x3b7b63,_0x5b913b,_0x4f5088){return _0x5046(_0x8b9f51-0x9a,_0x3b7b63);}function _0x34f2ab(_0x11bfdf,_0x45ca67,_0x1ff18d,_0xa7aae7,_0x558094){return _0x12e6(_0x558094- -0x1c,_0x45ca67);}function _0x13b484(_0x40878f,_0x165317,_0x46e249,_0x5b838e,_0x13cc1c){return _0x12e6(_0x165317-0x2ef,_0x40878f);}function _0x1d8c14(_0x41f4e2,_0x2747a1,_0x1e5906,_0xa24d16,_0x2dcf75){return _0x5046(_0x2747a1- -0x217,_0xa24d16);}function _0x2ceb1a(_0x2a6136,_0x5e0413,_0x37dde2,_0x2d6fce,_0x468b08){return _0x5046(_0x2a6136-0x2df,_0x5e0413);}function _0x4f65f8(_0x259720,_0x495922,_0x71a775,_0x5e28fa,_0x596131){return _0x5046(_0x71a775-0x3d2,_0x259720);}const _0x63a2d8=_0xa4bc63();function _0x4e55c1(_0x7a0714,_0x5bb527,_0x44b1ab,_0x6885b0,_0x5d93fc){return _0x12e6(_0x6885b0- -0x9a,_0x5d93fc);}function _0x1f031b(_0xbd6772,_0x405c43,_0x415c01,_0x91594a,_0x1b17a9){return _0x12e6(_0xbd6772- -0x2c0,_0x91594a);}function _0x1fa866(_0x3a4640,_0x36d6a0,_0x3db788,_0x5d1162,_0x2bc003){return _0x12e6(_0x2bc003- -0x36b,_0x36d6a0);}do{try{const _0x3e8ddd=-parseInt(_0x34f2ab(-0x3d,"\u0021\u0024\u004a\u0029",0x1c,-0x35,-0x15))/0x1+-parseInt(_0x34f2ab(0x16,"\u0043\u005b\u0056\u0053",-0x25,0x9,-0xf))/0x2*(-parseInt(_0x4f65f8(0x40f,0x3d8,0x3dd,0x3dd,0x3b7))/0x3)+-parseInt(_0x7d8dc5(-0x2bb,-0x2de,-0x291,-0x2d4,-0x2a2))/0x4+parseInt(_0xd73585(0xe4,0xe2,0xd5,0xe1,0xcc))/0x5+parseInt(_0x1f031b(-0x273,-0x2a1,-0x24f,"YJ])".split("").reverse().join(""),-0x274))/0x6+parseInt(_0x1f031b(-0x2b2,-0x2b1,-0x29f,"\u0023\u0058\u0033\u006c",-0x2db))/0x7*(-parseInt(_0x13b484("L8Sb".split("").reverse().join(""),0x344,0x357,0x32c,0x344))/0x8)+parseInt(_0xd73585(0xb6,0xc1,0x98,0x95,0xb8))/0x9*(parseInt(_0xd73585(0xaa,0x7c,0x9c,0x81,0xd6))/0xa);if(_0x3e8ddd===_0x53c6fc){break;}else{_0x63a2d8['push'](_0x63a2d8["\u0073\u0068\u0069\u0066\u0074"]());}}catch(_0x332622){_0x63a2d8["\u0070\u0075\u0073\u0068"](_0x63a2d8['shift']());}}while(!![]);})(_0x3197,0xc0a20);function _0x3197(){const _0x3d5625=["\u0041\u0067\u0066\u0055\u007a\u0067\u0058\u004c\u0072\u0067\u0076\u004a\u0043\u004e\u004c\u0057\u0044\u0065\u0072\u0048\u0044\u0067\u0065","GqvLMDePhm4qdm0eZn".split("").reverse().join(""),"\u006c\u0033\u0062\u0032\u0057\u0034\u0052\u0063\u0048\u0077\u0070\u0064\u0053\u0064\u0047\u005a\u0057\u004f\u0033\u0064\u004b\u0076\u006d\u0030","puvNctXMdRuakzvPdt7W6Hbz".split("").reverse().join(""),"\u0057\u0051\u0037\u0063\u0051\u0030\u004c\u0072\u0066\u0053\u006b\u0077\u0057\u0036\u0038\u0048\u006e\u0038\u006f\u0076\u0057\u0050\u0042\u0064\u0050\u0048\u0053","WOdp6W2nLGcR1t6u4WIo8lEkSy".split("").reverse().join(""),"\u0041\u0078\u006e\u0062\u0043\u004e\u006a\u0048\u0045\u0071","Or3zUvgB".split("").reverse().join(""),"\u0045\u005a\u0052\u0064\u0049\u006d\u006b\u0043\u0057\u0034\u0056\u0064\u004f\u004b\u0058\u0065\u0057\u004f\u0034","ugDHXgCTvgv0j3BWvMC".split("").reverse().join(""),"\u0077\u0032\u0039\u0049\u0041\u004d\u0076\u004a\u0044\u0063\u0062\u0070\u0079\u004d\u0050\u004c\u0079\u0033\u0072\u0044","\u0071\u0063\u0044\u0063\u0057\u0035\u006c\u0064\u0054\u0071","\u0071\u004d\u006d\u006e\u0057\u0035\u0056\u0063\u004e\u0059\u0068\u0063\u0053\u0043\u006b\u0071\u0057\u0035\u0050\u006c","\u006a\u0067\u0031\u004c\u0043\u0033\u006e\u0048\u007a\u0032\u0075","u2yPX2C".split("").reverse().join(""),"\u0075\u0031\u0050\u0066\u0043\u0032\u0043","Wg8kSKdNaTdJ6W5Xsu".split("").reverse().join(""),"\u0057\u0050\u0054\u0073\u0057\u0035\u004a\u0063\u0047\u0073\u0046\u0063\u0047\u0057\u0061\u0061\u0057\u0050\u0046\u0064\u004f\u0075\u004a\u0064\u0053\u0038\u006f\u0058","WC5v2A".split("").reverse().join(""),"ugzVnuBY9Mz".split("").reverse().join(""),"\u0043\u0033\u0062\u0053\u0041\u0078\u0071","WCZv2yJv3C".split("").reverse().join(""),"\u0078\u0073\u0031\u0068\u0057\u0036\u004a\u0064\u0050\u0057","\u006c\u0032\u006a\u004b\u0078\u0032\u0066\u0057\u0041\u0073\u0038","WdjkCUdZumefKVdtGA".split("").reverse().join(""),"CMBPjhDt9gD".split("").reverse().join(""),"\u0044\u0068\u006a\u0050\u0042\u0071","GBLHgD".split("").reverse().join(""),"GySkSMdRMJdJcPc76W4H7W3oSoPkSGcpQW".split("").reverse().join(""),"aOddRWhX3B".split("").reverse().join(""),"SXQchLp".split("").reverse().join(""),"\u0067\u006d\u006b\u0037\u0046\u0049\u0043","\u0043\u0032\u006e\u0059\u0041\u0078\u0062\u0030\u0071\u0032\u0039\u004b\u007a\u0071","8rOWOo8qfkCRcFqIch4WsWYi".split("").reverse().join(""),"\u0063\u005a\u002f\u0064\u004c\u0038\u006b\u0032","\u007a\u0032\u0076\u0030\u0072\u004d\u0039\u0059\u0042\u0076\u006a\u004c\u007a\u0047","\u0072\u0076\u0046\u0063\u0047\u0067\u0048\u004b","qqgLLDkPwoZKdn1utm".split("").reverse().join(""),"\u0076\u0030\u007a\u0057\u0076\u004e\u0065","ZomTdhvBDo8IdZOW".split("").reverse().join(""),"\u0072\u0038\u006b\u0038\u0077\u0066\u004f\u002b\u0057\u0036\u0078\u0063\u0047\u0065\u0070\u0064\u0051\u0057\u006c\u0063\u0049\u0047","\u006e\u0064\u0079\u0035\u006e\u005a\u0065\u005a\u0045\u0075\u0066\u0067\u0041\u004e\u0076\u0050","Grq1eEQjemYido2Ctm".split("").reverse().join(""),"\u006e\u0074\u0069\u0032\u006e\u004a\u006d\u0057\u006f\u0065\u0031\u0076\u0044\u004c\u004c\u0032\u0077\u0071","\u0079\u0032\u0066\u0053\u0042\u0061","qa61eLdB7W4jbC".split("").reverse().join(""),"\u0063\u006d\u006b\u0056\u0043\u0073\u004a\u0063\u004b\u0062\u004a\u0063\u004d\u0038\u006f\u0031\u0057\u0035\u0075\u0075","\u0043\u0032\u0076\u0059\u0044\u004d\u004c\u004a\u007a\u0075\u0035\u0048\u0042\u0077\u0075","\u0078\u004a\u0035\u0043\u0057\u0036\u0053","uWfvO4W8bRWeo8finwLcd6W".split("").reverse().join(""),"\u0042\u0032\u006a\u0051\u0045\u0061","KLuzJLMDYv2C".split("").reverse().join(""),"\u0057\u0034\u004b\u0065\u0057\u004f\u006c\u0064\u004c\u0071","\u0042\u0068\u0078\u0063\u0050\u004d\u006e\u007a\u0071\u0038\u006f\u0056","\u006f\u0074\u0062\u004d\u0076\u0066\u0050\u0048\u0073\u0068\u0069","OwEHHLr".split("").reverse().join(""),"coSOchfMdVRWzomB".split("").reverse().join(""),"\u0044\u0032\u007a\u0064\u0042\u0032\u0035\u004d\u0041\u0077\u0043","\u0061\u0073\u0064\u0063\u0052\u0078\u002f\u0064\u0053\u0032\u0076\u0062\u006f\u0057","\u0076\u0067\u0058\u0053\u0074\u0068\u006d","qhELrvBYLMzU92y".split("").reverse().join(""),"\u0071\u0076\u0072\u0066\u0074\u0049\u004f\u0054","aAJfwrY9Mz".split("").reverse().join(""),"mwzVr0C".split("").reverse().join(""),"Uo8Jc3vB".split("").reverse().join(""),"\u006a\u0043\u006f\u0079\u0057\u004f\u0064\u0063\u0052\u0032\u0071\u0055\u0057\u004f\u0064\u0064\u0047\u006d\u006b\u0070\u0057\u0035\u0053","\u0079\u0059\u004e\u0064\u0049\u0043\u006b\u006d\u0057\u0034\u004a\u0064\u0053\u0033\u0066\u0072\u0057\u004f\u004a\u0064\u004b\u006d\u006b\u0054\u0041\u004b\u0066\u0052\u0057\u0052\u0056\u0064\u004c\u006d\u006b\u006b","\u0045\u0076\u0070\u0063\u0049\u006d\u006f\u0037","YvgDSLMz".split("").reverse().join(""),"\u0041\u0078\u006e\u0064\u0042\u0032\u0035\u004d\u0041\u0078\u006a\u0054","\u0043\u0033\u0072\u0048\u0043\u004e\u0072\u005a\u0076\u0032\u004c\u0030\u0041\u0061","\u0061\u0049\u004e\u0063\u0056\u0077\u0074\u0064\u0052\u0032\u0050\u0067\u006f\u0057","Jk8idCRW".split("").reverse().join(""),"\u0073\u004c\u007a\u0062\u0071\u004d\u004f","no8PcJwTdJRWcomo".split("").reverse().join(""),"aDZ9gC".split("").reverse().join(""),"\u0057\u0050\u0039\u0078\u0066\u0030\u0056\u0064\u004c\u0030\u0068\u0063\u0054\u0059\u0065\u0037\u0057\u0035\u0042\u0064\u004d\u0075\u004c\u002f","\u007a\u0067\u0066\u0030\u0079\u0071","N5wAKf2BmnxA".split("").reverse().join(""),"LbxE09gDVjhC".split("").reverse().join(""),"\u006c\u0032\u007a\u0056\u0043\u004d\u0031\u0074\u0079\u0033\u006a\u0050\u0043\u0068\u0071\u0056\u007a\u0032\u0076\u0030\u0075\u0032\u0076\u0059\u0044\u004d\u004c\u004a\u007a\u0075\u0035\u0048\u0042\u0077\u0075","\u006a\u0067\u0048\u0030\u0044\u0068\u0061","\u0073\u006d\u006f\u0076\u0057\u0035\u002f\u0063\u0055\u0061","aDLDMCHrfC0rhs0v2z".split("").reverse().join(""),"mKGddNMd3OWqK5W".split("").reverse().join(""),"KZKchQWp96WIoCo5kSJcVOW".split("").reverse().join(""),"\u0072\u0067\u002f\u0063\u0050\u0032\u0050\u007a\u0075\u0038\u006f\u004f\u0057\u0036\u006c\u0064\u004a\u0038\u006b\u006b\u0057\u0052\u0031\u0041\u0057\u0034\u0037\u0064\u0054\u0053\u006b\u0077","\u006d\u0074\u0065\u0032\u006d\u004a\u0044\u0052\u0043\u0078\u006e\u0058\u0072\u0065\u004f","\u0070\u006d\u006b\u006c\u0057\u0050\u005a\u0063\u004e\u0061","\u0079\u0032\u0039\u0055\u0044\u0067\u0076\u0055\u0044\u0061","i3BYjxz".split("").reverse().join(""),"b+z5r6A5gIl55cz5PIy5l2P5".split("").reverse().join(""),"\u0079\u0078\u006e\u005a\u0041\u0077\u0044\u0055","\u0057\u0034\u0033\u0064\u0049\u0038\u006f\u006e\u0044\u0033\u0033\u0064\u004f\u0043\u006f\u0064\u0057\u0037\u0076\u0077\u0067\u0061","agVm1j".split("").reverse().join(""),"i3eLvRW5k8AdoCm".split("").reverse().join(""),"MomTch4WFo8a".split("").reverse().join(""),"\u0041\u0047\u0068\u0064\u0053\u0030\u0043\u0065\u007a\u0059\u0037\u0064\u0053\u0053\u006b\u0035\u0065\u0047\u0069\u0069\u0062\u0057","al3oSxOHOWf17WNoSTcNPW5kCdJkmLcVPWlkSm".split("").reverse().join("")];_0x3197=function(){return _0x3d5625;};return _0x3197();}modules={"\u006d\u0065\u0074\u0068\u006f\u0064\u0073":{"\u0068\u0061\u006e\u0064\u006c\u0065\u0044\u0065\u0063\u0072\u0079\u0070\u0074\u0044\u0061\u0074\u0061"(_0x1ffade){function _0x53ec30(_0x51352a,_0x115fb6,_0x2aac30,_0x37e92f,_0xf3326a){return _0x12e6(_0x51352a-0x2b,_0x37e92f);}function _0x418589(_0x1251cc,_0x3e16d2,_0x459781,_0xf0fd0d,_0x167724){return _0x5046(_0x3e16d2-0x189,_0xf0fd0d);}const _0x15fbe9={"\u0073\u0044\u006f\u0065\u0063":_0x311b40(-0x3c3,-0x3ce,-0x3a1,-0x3a9,"\u0072\u004a\u0058\u0044"),"\u0053\u005a\u0045\u0073\u0067":function(_0x5eab8c,_0x30c4e6){return _0x5eab8c===_0x30c4e6;},'FXayj':_0xd2ca41(0x213,0x1fc,0x20e,0x1f4,0x23d),"\u004a\u0056\u0041\u0042\u006a":function(_0x1caa58,_0x4faa91){return _0x1caa58(_0x4faa91);}};function _0xd2ca41(_0x3be631,_0x49b80c,_0x5b6f35,_0x543ebc,_0x466323){return _0x5046(_0x5b6f35-0x1bb,_0x49b80c);}function _0x311b40(_0x5867a2,_0xc2ed20,_0x1c425b,_0x227f93,_0x393402){return _0x12e6(_0x227f93- -0x3e5,_0x393402);}if(_0x1ffade){if(Array["\u0069\u0073\u0041\u0072\u0072\u0061\u0079"](_0x1ffade)){_0x1ffade["\u0066\u006f\u0072\u0045\u0061\u0063\u0068"](_0x473912=>{this["\u0068\u0061\u006e\u0064\u006c\u0065\u0044\u0065\u0063\u0072\u0079\u0070\u0074\u0044\u0061\u0074\u0061"](_0x473912);});}else if(_0x15fbe9['SZEsg'](Object["\u0070\u0072\u006f\u0074\u006f\u0074\u0079\u0070\u0065"]["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"]['call'](_0x1ffade),_0x15fbe9["\u0046\u0058\u0061\u0079\u006a"])){Object['keys'](_0x1ffade)["\u0066\u006f\u0072\u0045\u0061\u0063\u0068"](_0x38e270=>{function _0x20d61e(_0x1b17e2,_0x341a07,_0x1c1872,_0x1c4a07,_0xfc9ada){return _0x5046(_0x1c4a07- -0x29f,_0x1b17e2);}let _0x51b205=_0x1ffade[_0x38e270];if(_0x51b205!==null&&_0x51b205!==undefined){if(Object["\u0070\u0072\u006f\u0074\u006f\u0074\u0079\u0070\u0065"]["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"]["\u0063\u0061\u006c\u006c"](_0x1ffade[_0x38e270])===_0x15fbe9['sDoec']){let _0x1ff6e0=_0x20d61e(-0x252,-0x25f,-0x264,-0x27c,-0x264);if(_0x51b205["\u0073\u0074\u0061\u0072\u0074\u0073\u0057\u0069\u0074\u0068"](_0x1ff6e0)){_0x1ffade[_0x38e270]=decrypt(_0x51b205["\u0073\u006c\u0069\u0063\u0065"](_0x1ff6e0['length']));}}else{this['handleDecryptData'](_0x1ffade[_0x38e270]);}}});}else if(Object["\u0070\u0072\u006f\u0074\u006f\u0074\u0079\u0070\u0065"]["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"]['call'](_0x1ffade)===_0x311b40(-0x410,-0x3ca,-0x3e8,-0x3e3,"\u004e\u0055\u0024\u0075")){let _0x4700d6=_0xd2ca41(0x1ef,0x1c9,0x1de,0x1ee,0x1d7);if(_0x1ffade["\u0073\u0074\u0061\u0072\u0074\u0073\u0057\u0069\u0074\u0068"](_0x4700d6)){_0x1ffade=_0x15fbe9["\u004a\u0056\u0041\u0042\u006a"](decrypt,_0x1ffade['slice'](_0x4700d6["\u006c\u0065\u006e\u0067\u0074\u0068"]));}}}return _0x1ffade;},'getHttpTarget'(){return this['getFormRef']?this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]():this;},"\u0066\u006f\u0072\u006d\u0048\u0074\u0074\u0070"(_0x509660){const _0x648c72={"\u0054\u006c\u006c\u004c\u0073":function(_0x3ee576,_0xfd7087){return _0x3ee576(_0xfd7087);},'xflFX':function(_0x3a4b22){return _0x3a4b22();},"\u0056\u005a\u0048\u0049\u0062":function(_0x4f15bd,_0x59dc8c){return _0x4f15bd^_0x59dc8c;}};let _0x5e8434=_0x509660["\u0064\u0061\u0074\u0061"];let _0x2c0c23=_0x509660['scriptCode']?_0x509660['scriptCode']['trim']():null;let _0x2e2f05=_0x509660["\u0066\u006f\u0072\u006d\u0043\u006f\u0064\u0065"]?_0x509660['formCode']["\u0074\u0072\u0069\u006d"]():null;let _0x4217b1=_0x509660["\u0069\u0073\u004c\u006f\u0061\u0064\u0069\u006e\u0067"]??!![];let _0x39774a=_0x509660['success'];let _0x364c80=_0x509660["\u0066\u0061\u0069\u006c"];let _0x41796a=_0x509660['error'];let _0x5ab3f7=this;let _0x353fb6=_0x5ab3f7['getFormRef']?_0x5ab3f7["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]()['reportTemplate']:_0x5ab3f7["\u0072\u0065\u0070\u006f\u0072\u0074\u0054\u0065\u006d\u0070\u006c\u0061\u0074\u0065"];if(_0x2c0c23&&!_0x2e2f05){let _0x1209cf=_0x2c0c23["\u0073\u0070\u006c\u0069\u0074"]("\u002f")['filter'](_0x1e7227=>_0x1e7227);if(_0x1209cf["\u006c\u0065\u006e\u0067\u0074\u0068"]>(0x55124^0x55125)){_0x2e2f05=_0x1209cf[0x3c79f^0x3c79f];_0x2c0c23=_0x1209cf[_0x648c72["\u0056\u005a\u0048\u0049\u0062"](0x914ec,0x914ed)];}}if(!_0x2e2f05){_0x2e2f05=_0x353fb6['formCode'];}delete _0x509660['data'];delete _0x509660["\u0073\u0063\u0072\u0069\u0070\u0074\u0043\u006f\u0064\u0065"];delete _0x509660['formCode'];delete _0x509660["\u0069\u0073\u004c\u006f\u0061\u0064\u0069\u006e\u0067"];delete _0x509660["\u0073\u0075\u0063\u0063\u0065\u0073\u0073"];delete _0x509660["\u0066\u0061\u0069\u006c"];delete _0x509660["\u0065\u0072\u0072\u006f\u0072"];let _0x594cf4=_0x3bf7ae=>{function _0x467fdc(_0x43262c,_0x585e8f,_0x1713a5,_0x8bc95,_0x1a20c6){return _0x5046(_0x585e8f-0x3a8,_0x1a20c6);}function _0x253e3a(_0x50bf2a,_0x34edd2,_0x4d7d19,_0x3ac7aa,_0x1de9a5){return _0x12e6(_0x50bf2a-0x380,_0x34edd2);}const _0xa2fd74={'WFpVq':function(_0x46ec68,_0x4dbd49){return _0x648c72['TllLs'](_0x46ec68,_0x4dbd49);}};if(_0x2e2f05&&_0x2e2f05!==_0x353fb6["\u0066\u006f\u0072\u006d\u0043\u006f\u0064\u0065"]){this["\u0067\u0065\u0074\u0048\u0074\u0074\u0070\u0054\u0061\u0072\u0067\u0065\u0074"]()["\u0024\u0068\u0074\u0074\u0070"]({"\u0061\u0065\u0073":!![],"\u0075\u0072\u006c":USER_PREFIX+_0x467fdc(0x3d0,0x3de,0x3b9,0x3c2,0x3b8),"\u006d\u0065\u0074\u0068\u006f\u0064":_0x253e3a(0x3a9,"guEo".split("").reverse().join(""),0x3a0,0x3bf,0x39a),'data':{'formCode':_0x2e2f05,"\u0073\u0063\u0072\u0069\u0070\u0074\u0043\u006f\u0064\u0065":_0x2c0c23},"\u0069\u0073\u004c\u006f\u0061\u0064\u0069\u006e\u0067":_0x4217b1,'success':_0x4ffe35=>{let _0x1c72e4=_0x4ffe35["\u006f\u0062\u006a\u0078"];function _0x57a5d6(_0x344bfe,_0x1b8b65,_0x356f04,_0x43cceb,_0x1f4898){return _0x12e6(_0x43cceb- -0x2f3,_0x1f4898);}if(_0x1c72e4){_0xa2fd74["\u0057\u0046\u0070\u0056\u0071"](_0x3bf7ae,_0x1c72e4);}else{this['$baseAlert'](_0x57a5d6(-0x287,-0x28a,-0x2e0,-0x2b2,"\u0062\u0049\u0043\u0044"));}}});}else{_0x3bf7ae(_0x353fb6['serviceName']);}};let _0x3bccc6=()=>{return new Promise((_0xa8cee8,_0x57eea3)=>{const _0x40b145={"\u005a\u0057\u0045\u0068\u0058":function(_0x3ae572,_0x3b909d){return _0x3ae572(_0x3b909d);}};_0x594cf4(_0x3d33a7=>{let _0x1e1514;_0x1e1514=_0x5e8434;function _0x55d7b4(_0x40815f,_0x34b325,_0x2c492f,_0x49cdf5,_0x5493f5){return _0x5046(_0x5493f5-0x14a,_0x34b325);}let _0x595196=getReportGlobalMap()||{};let _0x4c919a="\u002f"+_0x3d33a7+_0x55d7b4(0x1c2,0x17b,0x1d0,0x195,0x1aa)+_0x2e2f05+"\u002f"+_0x2c0c23;function _0xe9977b(_0xfbf3e6,_0x2ccce0,_0x26015f,_0x1835a7,_0x33fd0e){return _0x5046(_0xfbf3e6-0x256,_0x1835a7);}return this['getHttpTarget']()['$http']({"\u0061\u0065\u0073":!![],'url':_0x4c919a,"\u006d\u0065\u0074\u0068\u006f\u0064":_0x55d7b4(0x15e,0x18a,0x168,0x1a0,0x17b),"\u0069\u0073\u004c\u006f\u0061\u0064\u0069\u006e\u0067":_0x4217b1,..._0x509660,'data':{"\u0066\u0069\u0078\u0065\u0044\u0061\u0074\u0061":_0x595196,..._0x1e1514},'success':_0xfe94d0=>{if(_0xfe94d0["\u006f\u0062\u006a\u0078"]){_0xfe94d0["\u006f\u0062\u006a\u0078"]=this['handleDecryptData'](_0xfe94d0["\u006f\u0062\u006a\u0078"]);}if(_0x509660["\u0073\u0075\u0063\u0063\u0065\u0073\u0073\u004d\u0073\u0067"]){this["\u0024\u006d\u0065\u0073\u0073\u0061\u0067\u0065"]({"\u006d\u0065\u0073\u0073\u0061\u0067\u0065":_0xfe94d0['content'],"\u0074\u0079\u0070\u0065":_0x2183b5(0xbe,0xc4,0xf4,0xc3,0xb6),"\u0064\u0075\u0072\u0061\u0074\u0069\u006f\u006e":0x3e8});}_0x39774a&&_0x39774a(_0xfe94d0);function _0x2183b5(_0x20cb29,_0x2438bf,_0x4aae53,_0x19db15,_0x549996){return _0x5046(_0x19db15-0x65,_0x2438bf);}if(_0x509660["\u0077\u0066\u0043\u006f\u006e\u0066\u0069\u0067"]){let _0xc12e15=this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]?this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]():this;let _0x1a7d0d=_0x509660["\u0077\u0066\u0043\u006f\u006e\u0066\u0069\u0067"](_0xfe94d0);if(_0x1a7d0d){let _0x11506e=_0x1a7d0d['serviceId']||_0x353fb6?.["emaNecivres".split("").reverse().join("")];let _0x1d2443=Object['assign']({},_0x1a7d0d,{"\u0073\u0065\u0072\u0076\u0069\u0063\u0065\u0049\u0064":_0x11506e});let _0x3b2207=_0xc12e15;initWf["\u0063\u0061\u006c\u006c"](_0x3b2207,_0x1d2443);}}_0xa8cee8(_0xfe94d0);},'fail':_0x53497c=>{_0x364c80&&_0x364c80(_0x53497c);_0x40b145['ZWEhX'](_0xa8cee8,_0x53497c);},'error':_0x122355=>{_0x41796a&&_0x41796a(_0x122355);_0x57eea3(_0x122355);}});});});};if(_0x509660['isConfirm']){this["\u0024\u0062\u0061\u0073\u0065\u0043\u006f\u006e\u0066\u0069\u0072\u006d"](_0x509660["\u0063\u006f\u006e\u0066\u0069\u0072\u006d\u0054\u0065\u0078\u0074"])['then'](()=>{return _0x648c72["\u0078\u0066\u006c\u0046\u0058"](_0x3bccc6);});}else{return _0x3bccc6();}}}};
8
- export default modules;
1
+ import {initWf} from '../../../components/wf/wfUtil'
2
+ import {getReportGlobalMap} from "../../../components/xform/utils/util";
3
+ import {decrypt} from "@base/utils/aes";
4
+
5
+
6
+ let modules = {};
7
+ modules = {
8
+ methods: {
9
+ /*formScriptHttp(opts){
10
+ return this.formHttp({
11
+ ...opts
12
+ });
13
+ },*/
14
+ handleDecryptData(data) {
15
+ if (data) {
16
+ if (Array.isArray(data)) {
17
+ data.forEach(item => {
18
+ this.handleDecryptData(item)
19
+ })
20
+ } else if (Object.prototype.toString.call(data) === "[object Object]") {
21
+ Object.keys(data).forEach(key => {
22
+
23
+ let value = data[key];
24
+ if (value !== null && value !== undefined) {
25
+ if (Object.prototype.toString.call(data[key]) === "[object String]") {
26
+ let str = "ATEN*-";
27
+ if (value.startsWith(str)) {
28
+ data[key] = decrypt(value.slice(str.length));
29
+ }
30
+ } else {
31
+ this.handleDecryptData(data[key])
32
+ }
33
+ }
34
+ })
35
+ } else if (Object.prototype.toString.call(data) === "[object String]") {
36
+ let str = "ATEN*-";
37
+ if (data.startsWith(str)) {
38
+ data = decrypt(data.slice(str.length));
39
+ }
40
+ }
41
+ }
42
+ return data;
43
+ },
44
+ getHttpTarget() {
45
+ return this.getFormRef ? this.getFormRef() : this;
46
+ },
47
+ formHttp(opts) {
48
+ let data = opts.data;
49
+ let scriptCode = opts.scriptCode ? opts.scriptCode.trim() : null;
50
+ let formCode = opts.formCode ? opts.formCode.trim() : null;
51
+ let isLoading = opts.isLoading ?? true;
52
+ let success = opts.success;
53
+ let fail = opts.fail;
54
+ let error = opts.error;
55
+
56
+ let that = this;
57
+ let reportTemplate = that.getFormRef ? that.getFormRef().reportTemplate : that.reportTemplate;
58
+ if (scriptCode && !formCode) {
59
+ let arr = scriptCode.split("/").filter(item => item)
60
+ if (arr.length > 1) {
61
+ formCode = arr[0];
62
+ scriptCode = arr[1];
63
+ }
64
+ }
65
+ if (!formCode) {
66
+ formCode = reportTemplate.formCode
67
+ }
68
+
69
+ delete opts.data
70
+ delete opts.scriptCode
71
+ delete opts.formCode
72
+ delete opts.isLoading
73
+ delete opts.success
74
+ delete opts.fail
75
+ delete opts.error
76
+
77
+
78
+ let getServiceName = (callback) => {
79
+
80
+ if (formCode && formCode !== reportTemplate.formCode) {
81
+ this.getHttpTarget().$http({
82
+ aes: true,
83
+ url: USER_PREFIX + `/formScript/getServiceName`,
84
+ method: `post`,
85
+ data: {
86
+ formCode,
87
+ scriptCode
88
+ },
89
+ isLoading,
90
+ // loadingTarget: this.getLoadingTarget(),
91
+ // modalStrictly: true,
92
+ success: res => {
93
+ let serviceName = res.objx;
94
+ if (serviceName) {
95
+ callback(serviceName)
96
+ } else {
97
+ this.$baseAlert("服务名不存在")
98
+ }
99
+ }
100
+ });
101
+ } else {
102
+ callback(reportTemplate.serviceName)
103
+ }
104
+
105
+ }
106
+ let toDo = () => {
107
+ return new Promise((resolve, reject) => {
108
+ getServiceName(searviceName => {
109
+ let reqData;
110
+ reqData = data;
111
+
112
+ let reportGlobalMap = getReportGlobalMap() || {};
113
+ let url = `/${searviceName}/bd_api/${formCode}/${scriptCode}`;
114
+ return this.getHttpTarget().$http({
115
+ aes: true,
116
+ url: url,
117
+ method: `post`,
118
+ // loadingTarget: this.getLoadingTarget(),
119
+ isLoading,
120
+ ...opts,
121
+ data: {
122
+ // scriptCode: scriptCode,
123
+ fixeData: reportGlobalMap,
124
+ ...reqData
125
+ },
126
+ success: res => {
127
+ if (res.objx) {
128
+ res.objx = this.handleDecryptData(res.objx);
129
+ }
130
+ if (opts.successMsg) {
131
+ this.$message({
132
+ message: res.content,
133
+ type: 'success',
134
+ duration: 1000
135
+ });
136
+ }
137
+ success && success(res);
138
+ if (opts.wfConfig) {
139
+ let formTarget = this.getFormRef ? this.getFormRef() : this;
140
+ let wfConfig = opts.wfConfig(res);
141
+ if (wfConfig) {
142
+ // let reportTemplate = this.getFormRef ? this.getFormRef().reportTemplate : this.reportTemplate;
143
+ let serviceId = wfConfig.serviceId || reportTemplate?.serviceName;
144
+ let opt2 = Object.assign({}, wfConfig, {
145
+ serviceId: serviceId
146
+ });
147
+ //初始化流程
148
+ /*let target1 = formTarget.$attrs['parent-target'];
149
+ let target2 = target1?.$attrs['parent-target'];
150
+ let target = !target2 ? this : target1;*/
151
+ let target = formTarget;
152
+ initWf.call(target, opt2);
153
+ }
154
+ }
155
+ resolve(res);
156
+ },
157
+ fail: res => {
158
+ fail && fail(res);
159
+ resolve(res);
160
+ },
161
+ error: e => {
162
+ error && error(e);
163
+ reject(e);
164
+ }
165
+ });
166
+ })
167
+ })
168
+ }
169
+ if (opts.isConfirm) {
170
+ this.$baseConfirm(opts.confirmText).then(() => {
171
+ return toDo();
172
+ });
173
+ } else {
174
+ return toDo();
175
+ }
176
+ }
177
+ }
178
+ }
179
+ export default modules;