ecinc-cloud-yoaecoav9 9.6.286 → 9.6.288

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.
@@ -16476,12 +16476,23 @@ __webpack_require__.r(__webpack_exports__);
16476
16476
 
16477
16477
  var bUseHttps = false;
16478
16478
  var WpsInvoke = window.WpsInvoke;
16479
+ var wpsClientType = '';
16479
16480
  function _WpsInvoke(funcs, retry) {
16480
16481
  if (!retry) retry = 1;
16482
+ if (funcs[0].OnlineEditDoc && funcs[0].OnlineEditDoc.uploadFileName) {
16483
+ var uploadFileName = funcs[0].OnlineEditDoc.uploadFileName;
16484
+ if (uploadFileName.indexOf('.xls') !== -1) {
16485
+ wpsClientType = WpsInvoke.ClientType.et;
16486
+ } else if (uploadFileName.indexOf('.ppt') !== -1) {
16487
+ wpsClientType = WpsInvoke.ClientType.wpp;
16488
+ } else {
16489
+ wpsClientType = WpsInvoke.ClientType.wps;
16490
+ }
16491
+ }
16481
16492
  var info = {};
16482
16493
  info.funcs = funcs;
16483
16494
  var func = bUseHttps ? WpsInvoke.InvokeAsHttps : WpsInvoke.InvokeAsHttp;
16484
- func(WpsInvoke.ClientType.wps,
16495
+ func(wpsClientType,
16485
16496
  // 组件类型
16486
16497
  'WpsOAAssist',
16487
16498
  // 插件名,与wps客户端加载的加载的插件名对应
@@ -16505,7 +16516,7 @@ function _WpsInvoke(funcs, retry) {
16505
16516
  _WpsInvoke(funcs, ++retry);
16506
16517
  }
16507
16518
  } else {
16508
- console.log(result.response);
16519
+ console.log(wpsClientType, info, result.response);
16509
16520
  showresult(result.response);
16510
16521
  }
16511
16522
  });
@@ -16526,6 +16537,22 @@ WpsInvoke.RegWebNotify(WpsInvoke.ClientType.wps, 'WpsOAAssist', function (messag
16526
16537
  document.querySelector('#btnWpsSaved').click();
16527
16538
  }
16528
16539
  });
16540
+ WpsInvoke.RegWebNotify(WpsInvoke.ClientType.et, 'WpsOAAssist', function (messageText) {
16541
+ var span = window.parent.document.getElementById('webnotifyspan');
16542
+ span.innerHTML = messageText;
16543
+ console.log('wps notify msg:', messageText);
16544
+ if (messageText.indexOf('uploadPath') !== -1) {
16545
+ document.querySelector('#btnWpsSaved').click();
16546
+ }
16547
+ });
16548
+ WpsInvoke.RegWebNotify(WpsInvoke.ClientType.wpp, 'WpsOAAssist', function (messageText) {
16549
+ var span = window.parent.document.getElementById('webnotifyspan');
16550
+ span.innerHTML = messageText;
16551
+ console.log('wps notify msg:', messageText);
16552
+ if (messageText.indexOf('uploadPath') !== -1) {
16553
+ document.querySelector('#btnWpsSaved').click();
16554
+ }
16555
+ });
16529
16556
 
16530
16557
  /**
16531
16558
  * 处理WPS加载项的方法返回值
@@ -16551,10 +16578,11 @@ function showresult(resultData) {
16551
16578
  * 这是页面中针对代码显示的变量定义,开发者无需关心
16552
16579
  */
16553
16580
  window._WpsInvoke = _WpsInvoke;
16554
- function wpsInstallAddin(callback) {
16581
+ function wpsInstallAddin(callback, addonType) {
16582
+ if (!addonType) addonType = 'wps';
16555
16583
  var setting = {
16556
16584
  name: 'WpsOAAssist',
16557
- addonType: 'wps',
16585
+ addonType: addonType,
16558
16586
  online: 'true',
16559
16587
  url: "".concat(location.href.split('#')[0], "plugins/wpsjs/wpsoaassit/")
16560
16588
  };
@@ -21679,7 +21707,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".el-table td[data-v-2c87c469]{padding:
21679
21707
 
21680
21708
  /***/ }),
21681
21709
 
21682
- /***/ 1142:
21710
+ /***/ 4075:
21683
21711
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21684
21712
 
21685
21713
  "use strict";
@@ -21693,14 +21721,14 @@ __webpack_require__.r(__webpack_exports__);
21693
21721
 
21694
21722
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
21695
21723
  // Module
21696
- ___CSS_LOADER_EXPORT___.push([module.id, ".item .title[data-v-396e991e]{font-size:var(--portalFontSize14);font-weight:600}.item[data-v-396e991e] .el-upload--text{width:100%}.item[data-v-396e991e] .el-link{padding-right:10px}", ""]);
21724
+ ___CSS_LOADER_EXPORT___.push([module.id, ".item .title[data-v-5639a90c]{font-size:var(--portalFontSize14);font-weight:600}.item[data-v-5639a90c] .el-upload--text{width:100%}.item[data-v-5639a90c] .el-link{padding-right:10px}", ""]);
21697
21725
  // Exports
21698
21726
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21699
21727
 
21700
21728
 
21701
21729
  /***/ }),
21702
21730
 
21703
- /***/ 1642:
21731
+ /***/ 1088:
21704
21732
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21705
21733
 
21706
21734
  "use strict";
@@ -21714,7 +21742,7 @@ __webpack_require__.r(__webpack_exports__);
21714
21742
 
21715
21743
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
21716
21744
  // Module
21717
- ___CSS_LOADER_EXPORT___.push([module.id, ".weboffice-container[data-v-1cf10eb9]{margin:0}.isform .weboffice-container[data-v-1cf10eb9]{border:1px solid #999;border-top:0}", ""]);
21745
+ ___CSS_LOADER_EXPORT___.push([module.id, ".weboffice-container[data-v-5b530424]{margin:0}.isform .weboffice-container[data-v-5b530424]{border:1px solid #999;border-top:0}", ""]);
21718
21746
  // Exports
21719
21747
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21720
21748
 
@@ -61780,35 +61808,35 @@ var update = add("1ca66994", content, true, {"sourceMap":false,"shadowMode":fals
61780
61808
 
61781
61809
  /***/ }),
61782
61810
 
61783
- /***/ 6088:
61811
+ /***/ 7729:
61784
61812
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
61785
61813
 
61786
61814
  // style-loader: Adds some css to the DOM by adding a <style> tag
61787
61815
 
61788
61816
  // load the styles
61789
- var content = __webpack_require__(1142);
61817
+ var content = __webpack_require__(4075);
61790
61818
  if(content.__esModule) content = content.default;
61791
61819
  if(typeof content === 'string') content = [[module.id, content, '']];
61792
61820
  if(content.locals) module.exports = content.locals;
61793
61821
  // add the styles to the DOM
61794
61822
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
61795
- var update = add("062979f6", content, true, {"sourceMap":false,"shadowMode":false});
61823
+ var update = add("1caf4f7c", content, true, {"sourceMap":false,"shadowMode":false});
61796
61824
 
61797
61825
  /***/ }),
61798
61826
 
61799
- /***/ 1496:
61827
+ /***/ 4222:
61800
61828
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
61801
61829
 
61802
61830
  // style-loader: Adds some css to the DOM by adding a <style> tag
61803
61831
 
61804
61832
  // load the styles
61805
- var content = __webpack_require__(1642);
61833
+ var content = __webpack_require__(1088);
61806
61834
  if(content.__esModule) content = content.default;
61807
61835
  if(typeof content === 'string') content = [[module.id, content, '']];
61808
61836
  if(content.locals) module.exports = content.locals;
61809
61837
  // add the styles to the DOM
61810
61838
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
61811
- var update = add("21b68c9e", content, true, {"sourceMap":false,"shadowMode":false});
61839
+ var update = add("7bbff7a9", content, true, {"sourceMap":false,"shadowMode":false});
61812
61840
 
61813
61841
  /***/ }),
61814
61842
 
@@ -97327,8 +97355,8 @@ var H5Office_component = (0,componentNormalizer/* default */.A)(
97327
97355
  )
97328
97356
 
97329
97357
  /* harmony default export */ var H5Office = (H5Office_component.exports);
97330
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue?vue&type=template&id=396e991e&scoped=true
97331
- var WebOfficevue_type_template_id_396e991e_scoped_true_render = function render() {
97358
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue?vue&type=template&id=5639a90c&scoped=true
97359
+ var WebOfficevue_type_template_id_5639a90c_scoped_true_render = function render() {
97332
97360
  var _vm = this,
97333
97361
  _c = _vm._self._c;
97334
97362
  return _vm.showOffice ? _c('el-dialog', {
@@ -97666,7 +97694,7 @@ var WebOfficevue_type_template_id_396e991e_scoped_true_render = function render(
97666
97694
  }
97667
97695
  }, [_vm._v("上传")]) : _vm._e()], 1)]) : _vm._e();
97668
97696
  };
97669
- var WebOfficevue_type_template_id_396e991e_scoped_true_staticRenderFns = [];
97697
+ var WebOfficevue_type_template_id_5639a90c_scoped_true_staticRenderFns = [];
97670
97698
 
97671
97699
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue?vue&type=script&lang=js
97672
97700
  function WebOfficevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return WebOfficevue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, WebOfficevue_type_script_lang_js_typeof(o); }
@@ -97688,6 +97716,10 @@ var _require = __webpack_require__(7710),
97688
97716
  accept: {
97689
97717
  type: String,
97690
97718
  default: '.doc,.docx,.pdf'
97719
+ },
97720
+ saveToPdf: {
97721
+ type: Boolean,
97722
+ default: true
97691
97723
  }
97692
97724
  },
97693
97725
  data: function data() {
@@ -98071,29 +98103,31 @@ var _require = __webpack_require__(7710),
98071
98103
  */
98072
98104
  btnOpenWordClick: function btnOpenWordClick($scope, openType, fbUrl, attach) {
98073
98105
  var _this6 = this;
98074
- if ($scope.officeType !== 'ecexe') {
98075
- return;
98076
- } else if (!this.downloadHint) {
98106
+ if (!this.downloadHint) {
98077
98107
  //未执行版本检测
98078
98108
  new Promise(function (resolve) {
98079
- _this6.queryWebOfficeVersion(resolve);
98109
+ if (_this6.accept.indexOf('.xls') !== -1 || _this6.accept.indexOf('.ppt') !== -1 || _this6.accept.indexOf('.wps') !== -1) {
98110
+ //优先使用wpsjs
98111
+ _this6.loadWpsOffice(resolve);
98112
+ } else {
98113
+ //优先使用ecexe
98114
+ _this6.queryWebOfficeVersion(resolve, $scope, attach);
98115
+ }
98080
98116
  }).then(function (res) {
98081
- _this6.btnOpenWordClick($scope, openType, fbUrl, attach);
98117
+ if (!res) {
98118
+ _this6.downloadHint = _this6.$tx('ecoa.webOffice.noFindEditor', '没有检测到正文编辑器');
98119
+ }
98120
+ _this6.$nextTick(function () {
98121
+ _this6.$bus.emit('btnOpenWordClick', $scope, openType, fbUrl, attach);
98122
+ });
98082
98123
  });
98083
98124
  return;
98125
+ } else if ($scope.officeType !== 'ecexe') {
98126
+ return;
98084
98127
  } else if (this.downloadHint === this.$tx('ecoa.webOffice.hasNewEditor', '检测到有新版正文编辑器')) {
98085
98128
  this.dialogTitle = this.$tx('ecoa.webOffice.updateTip', '更新提示');
98086
98129
  this.showOffice = true;
98087
98130
  return;
98088
- } else if (!this.installedVer && window.wpsInstalled) {
98089
- setTimeout(function () {
98090
- $scope.officeType = 'wpsjs';
98091
- console.log($scope.officeType, ' window.wpsInstalled');
98092
- _this6.$nextTick(function () {
98093
- _this6.$bus.emit('btnOpenWordClick', $scope, openType, fbUrl, attach);
98094
- });
98095
- }, 0);
98096
- return;
98097
98131
  } else if (!this.installedVer && !window.wpsInstalled) {
98098
98132
  this.showOffice = true;
98099
98133
  return;
@@ -98257,7 +98291,7 @@ var _require = __webpack_require__(7710),
98257
98291
  _context.next = 66;
98258
98292
  break;
98259
98293
  case 51:
98260
- if (!(openType !== undefined && openType !== 'OpenTwoDoc')) {
98294
+ if (!(openType !== undefined && openType !== 'OpenTwoDoc' && openType !== 'Approve' && openType !== 'ReadDocEditFile' && openType !== 'ReadDocFile')) {
98261
98295
  _context.next = 65;
98262
98296
  break;
98263
98297
  }
@@ -98515,7 +98549,7 @@ var _require = __webpack_require__(7710),
98515
98549
  }
98516
98550
  dataJson.showBtnToolbar = '1';
98517
98551
  dataJson.showRevisions = '0';
98518
- dataJson.showBtnSaveExit = '1';
98552
+ dataJson.showBtnSaveExit = openType === 'ReadDocFile' ? '0' : '1';
98519
98553
  dataJson.showBtnSavePdf = '0';
98520
98554
  dataJson.showBtnRevisions = '1';
98521
98555
  dataJson.showBtnSave = '1';
@@ -98736,9 +98770,9 @@ var _require = __webpack_require__(7710),
98736
98770
  }
98737
98771
  },
98738
98772
  loadWpsOffice: function loadWpsOffice(resolve) {
98773
+ var _this = this;
98739
98774
  var $scope = this.$vnode.context;
98740
98775
  if (!$scope.$options.components['WpsOffice']) {
98741
- $scope.officeType = '';
98742
98776
  var js = document.createElement('script');
98743
98777
  js.id = 'wps-js';
98744
98778
  js.src = 'plugins/wpsjs/wpsaddons/wpsjsrpcsdk.js';
@@ -98750,19 +98784,29 @@ var _require = __webpack_require__(7710),
98750
98784
  } else {
98751
98785
  $scope.$options.components['WpsOffice'] = $scope.$loadComponent('@/wapp/workflow/webOffice/WpsOffice');
98752
98786
  }
98753
- $scope.officeType = 'wpsjs';
98754
98787
  $scope.$forceUpdate();
98755
- setTimeout(function () {
98788
+ var _require2 = __webpack_require__(2012),
98789
+ wpsInstallAddin = _require2.wpsInstallAddin;
98790
+ wpsInstallAddin(function (res) {
98791
+ console.log('检测是否安装WPS', res);
98756
98792
  if (window.wpsInstalled !== undefined) {
98757
98793
  //已经安装过
98758
- resolve(true);
98794
+ if (window.wpsInstalled) {
98795
+ $scope.officeType = 'wpsjs';
98796
+ _this.downloadHint = _this.$tx('ecoa.webOffice.isInstallFile', '正文编辑器已安装');
98797
+ }
98798
+ resolve(window.wpsInstalled);
98759
98799
  } else {
98760
98800
  //首次安装,大约需要6秒
98761
98801
  $scope.$bus.emit('showDoingDialog', '正在检测WPS安装版本,请稍候...');
98762
98802
  var times = 0;
98763
98803
  var timer = setInterval(function () {
98764
98804
  if (window.wpsInstalled !== undefined) {
98765
- resolve(true);
98805
+ if (window.wpsInstalled) {
98806
+ $scope.officeType = 'wpsjs';
98807
+ _this.downloadHint = _this.$tx('ecoa.webOffice.isInstallFile', '正文编辑器已安装');
98808
+ }
98809
+ resolve(window.wpsInstalled);
98766
98810
  clearInterval(timer);
98767
98811
  $scope.$bus.emit('closeDoingDialog');
98768
98812
  } else if (times >= 50) {
@@ -98774,14 +98818,18 @@ var _require = __webpack_require__(7710),
98774
98818
  }, 200);
98775
98819
  $scope.$bus.emit('showDoingDialog', '正在检测WPS安装版本,请稍候...');
98776
98820
  }
98777
- }, 100);
98821
+ });
98778
98822
  } else {
98779
- resolve(true);
98823
+ resolve(false);
98780
98824
  }
98781
98825
  js.onload = js.onreadystatechange = null;
98782
98826
  };
98783
- } else {
98827
+ } else if (window.wpsInstalled) {
98828
+ $scope.officeType = 'wpsjs';
98829
+ _this.downloadHint = _this.$tx('ecoa.webOffice.isInstallFile', '正文编辑器已安装');
98784
98830
  resolve(true);
98831
+ } else {
98832
+ resolve(false);
98785
98833
  }
98786
98834
  },
98787
98835
  /**
@@ -98890,7 +98938,7 @@ var _require = __webpack_require__(7710),
98890
98938
  attach.fileType = 'BODY';
98891
98939
  attach.uploadBy = this.loginUser.personName;
98892
98940
  attach.uploadTime = '待上传';
98893
- attach.saveToPdf = !!(extName === '.doc' || extName === '.docx');
98941
+ attach.saveToPdf = this.saveToPdf;
98894
98942
  attach.file = file;
98895
98943
  if (this.openType === 'SignedFile') {
98896
98944
  if (extName !== '.pdf') {
@@ -98927,9 +98975,9 @@ var _require = __webpack_require__(7710),
98927
98975
  });
98928
98976
  ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue?vue&type=script&lang=js
98929
98977
  /* harmony default export */ var webOffice_WebOfficevue_type_script_lang_js = (WebOfficevue_type_script_lang_js);
98930
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue?vue&type=style&index=0&id=396e991e&prod&scoped=true&lang=scss
98931
- var WebOfficevue_type_style_index_0_id_396e991e_prod_scoped_true_lang_scss = __webpack_require__(6088);
98932
- ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue?vue&type=style&index=0&id=396e991e&prod&scoped=true&lang=scss
98978
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue?vue&type=style&index=0&id=5639a90c&prod&scoped=true&lang=scss
98979
+ var WebOfficevue_type_style_index_0_id_5639a90c_prod_scoped_true_lang_scss = __webpack_require__(7729);
98980
+ ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue?vue&type=style&index=0&id=5639a90c&prod&scoped=true&lang=scss
98933
98981
 
98934
98982
  ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue
98935
98983
 
@@ -98942,18 +98990,18 @@ var WebOfficevue_type_style_index_0_id_396e991e_prod_scoped_true_lang_scss = __w
98942
98990
 
98943
98991
  var WebOffice_component = (0,componentNormalizer/* default */.A)(
98944
98992
  webOffice_WebOfficevue_type_script_lang_js,
98945
- WebOfficevue_type_template_id_396e991e_scoped_true_render,
98946
- WebOfficevue_type_template_id_396e991e_scoped_true_staticRenderFns,
98993
+ WebOfficevue_type_template_id_5639a90c_scoped_true_render,
98994
+ WebOfficevue_type_template_id_5639a90c_scoped_true_staticRenderFns,
98947
98995
  false,
98948
98996
  null,
98949
- "396e991e",
98997
+ "5639a90c",
98950
98998
  null
98951
98999
 
98952
99000
  )
98953
99001
 
98954
99002
  /* harmony default export */ var WebOffice = (WebOffice_component.exports);
98955
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=template&id=1cf10eb9&scoped=true
98956
- var WpsOfficevue_type_template_id_1cf10eb9_scoped_true_render = function render() {
99003
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=template&id=5b530424&scoped=true
99004
+ var WpsOfficevue_type_template_id_5b530424_scoped_true_render = function render() {
98957
99005
  var _vm = this,
98958
99006
  _c = _vm._self._c;
98959
99007
  return _c('div', {
@@ -99005,7 +99053,7 @@ var WpsOfficevue_type_template_id_1cf10eb9_scoped_true_render = function render(
99005
99053
  }
99006
99054
  }, [_vm._v("正在打开,请稍后...")])])], 1);
99007
99055
  };
99008
- var WpsOfficevue_type_template_id_1cf10eb9_scoped_true_staticRenderFns = [];
99056
+ var WpsOfficevue_type_template_id_5b530424_scoped_true_staticRenderFns = [];
99009
99057
 
99010
99058
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=script&lang=js
99011
99059
  function WpsOfficevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return WpsOfficevue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, WpsOfficevue_type_script_lang_js_typeof(o); }
@@ -99019,7 +99067,7 @@ function WpsOfficevue_type_script_lang_js_arrayLikeToArray(r, a) { (null == a ||
99019
99067
  function WpsOfficevue_type_script_lang_js_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ WpsOfficevue_type_script_lang_js_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == WpsOfficevue_type_script_lang_js_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(WpsOfficevue_type_script_lang_js_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
99020
99068
  function WpsOfficevue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
99021
99069
  function WpsOfficevue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { WpsOfficevue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { WpsOfficevue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
99022
- // import { wpsInstallAddin } from './wpsInit'
99070
+ //import { wpsInstallAddin } from './wpsInit'
99023
99071
 
99024
99072
  var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99025
99073
  WpsOfficevue_type_script_lang_js_bodyDocHistoryVer = WpsOfficevue_type_script_lang_js_require.bodyDocHistoryVer;
@@ -99032,11 +99080,13 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99032
99080
  return null;
99033
99081
  }
99034
99082
  },
99035
- commandBar: {
99036
- type: Array,
99037
- default: function _default() {
99038
- return null;
99039
- }
99083
+ accept: {
99084
+ type: String,
99085
+ default: '.doc,.docx,.pdf'
99086
+ },
99087
+ saveToPdf: {
99088
+ type: Boolean,
99089
+ default: true
99040
99090
  }
99041
99091
  },
99042
99092
  data: function data() {
@@ -99070,14 +99120,7 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99070
99120
  this.$bus.off('btnPreviewAttachClick', this.btnPreviewAttachClick);
99071
99121
  this.$bus.off('btnEditAttachClick', this.btnEditAttachClick);
99072
99122
  },
99073
- mounted: function mounted() {
99074
- var _require2 = __webpack_require__(2012),
99075
- wpsInstallAddin = _require2.wpsInstallAddin;
99076
- wpsInstallAddin(function (res) {
99077
- console.log('检测是否安装WPS', res);
99078
- document.querySelector('#webnotifyspan').innerText = '';
99079
- });
99080
- },
99123
+ mounted: function mounted() {},
99081
99124
  methods: {
99082
99125
  btnEditAttachClick: function btnEditAttachClick(attach, officeType) {
99083
99126
  var $scope = this.$vnode.context;
@@ -99257,28 +99300,75 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99257
99300
  this.btnOpenWpsClick($scope, openType);
99258
99301
  },
99259
99302
  btnOpenWpsClick: function btnOpenWpsClick($scope, openType, fbUrl, attach) {
99303
+ var _this4 = this;
99260
99304
  this.fanwen_url = fbUrl;
99261
99305
  // 安装了wps并且officeType==='wpsjs'
99262
- if (window.wpsInstalled && $scope.officeType === 'wpsjs') {
99263
- this.btnOpenWpsClickReal($scope, openType, fbUrl, attach);
99306
+ var _require2 = __webpack_require__(2012),
99307
+ wpsInstallAddin = _require2.wpsInstallAddin;
99308
+ var wpsClientType = 'wps';
99309
+ var fileName = '';
99310
+ if (attach) {
99311
+ fileName = attach.fileName;
99312
+ } else if ($scope.bodyfile && $scope.bodyfile.fileName) {
99313
+ if ($scope.bodyfile.fileName.indexOf('.doc') !== -1 || $scope.bodyfile.fileName.indexOf('.xls') !== -1 || $scope.bodyfile.fileName.indexOf('.ppt') !== -1) {
99314
+ fileName = $scope.bodyfile.fileName;
99315
+ } else {
99316
+ var docBodyfiles = $scope.attachments.filter(function (attach) {
99317
+ if (attach.id !== $scope.bodyfile.id && attach.originalName.split('.')[0] === $scope.bodyfile.originalName.split('.')[0]) {
99318
+ return true;
99319
+ }
99320
+ });
99321
+ if (docBodyfiles.length > 0) {
99322
+ fileName = docBodyfiles[0].fileName;
99323
+ }
99324
+ }
99325
+ }
99326
+ if (fileName.indexOf('.xls') !== -1) {
99327
+ wpsClientType = 'et';
99328
+ } else if (fileName.indexOf('.ppt') !== -1) {
99329
+ wpsClientType = 'wpp';
99264
99330
  }
99331
+ wpsInstallAddin(function (res) {
99332
+ console.log('检测是否安装WPS', res);
99333
+ document.querySelector('#webnotifyspan').innerText = '';
99334
+ if (window.wpsInstalled && $scope.officeType === 'wpsjs') {
99335
+ _this4.btnOpenWpsClickReal($scope, openType, fbUrl, attach);
99336
+ }
99337
+ }, wpsClientType);
99265
99338
  },
99266
99339
  btnOpenWpsClickReal: function btnOpenWpsClickReal($scope, openType, fbUrl, attach) {
99267
- var _this4 = this;
99340
+ var _this5 = this;
99268
99341
  // 编辑正文事件
99269
99342
  $scope.formValidate( /*#__PURE__*/WpsOfficevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/WpsOfficevue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
99270
- var appUrl, WFBusiDataId, WFBodyDocId, WfModule, attachsType, attachsName, saveAs, bOpenRevision, uploadPath, downUrl, oldFileDownUrl, approveFileDownUrl, insertFileUrl, productCode, attachNames, index, blankDiv;
99343
+ var fileExtName, docBodyfiles, appUrl, WFBusiDataId, WFBodyDocId, WfModule, attachsType, attachsName, saveAs, bOpenRevision, uploadPath, downUrl, oldFileDownUrl, approveFileDownUrl, insertFileUrl, productCode, attachNames, index, blankDiv;
99271
99344
  return WpsOfficevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
99272
99345
  while (1) switch (_context.prev = _context.next) {
99273
99346
  case 0:
99347
+ fileExtName = '.doc'; //编辑文件格式
99348
+ if (attach) {
99349
+ fileExtName = '.' + attach.fileName.split('.')[1];
99350
+ } else if ($scope.bodyfile && $scope.bodyfile.fileName) {
99351
+ if ($scope.bodyfile.fileName.indexOf('.doc') !== -1 || $scope.bodyfile.fileName.indexOf('.xls') !== -1 || $scope.bodyfile.fileName.indexOf('.ppt') !== -1) {
99352
+ fileExtName = '.' + $scope.bodyfile.fileName.split('.')[1];
99353
+ } else {
99354
+ docBodyfiles = $scope.attachments.filter(function (attach) {
99355
+ if (attach.id !== $scope.bodyfile.id && attach.originalName.split('.')[0] === $scope.bodyfile.originalName.split('.')[0]) {
99356
+ return true;
99357
+ }
99358
+ });
99359
+ if (docBodyfiles.length > 0) {
99360
+ fileExtName = '.' + docBodyfiles[0].originalName.split('.')[1];
99361
+ }
99362
+ }
99363
+ }
99274
99364
  appUrl = location.href.split('#')[0];
99275
99365
  WFBusiDataId = $scope.vo.id;
99276
99366
  WFBodyDocId = $scope.wfInstance.bodyDocId ? $scope.wfInstance.bodyDocId : '';
99277
- _this4.WFBodyDocId = WFBodyDocId;
99367
+ _this5.WFBodyDocId = WFBodyDocId;
99278
99368
  WfModule = $scope.wfInstance.module ? $scope.wfInstance.module : '';
99279
99369
  attachsType = 'BODY';
99280
- attachsName = WFBodyDocId + '.doc'; //Wpsjs编辑器,标题栏显示使用saveAs下载保存到本机的文件名,上传使用attachNames
99281
- saveAs = $scope.vo.flSubject + '.doc';
99370
+ attachsName = WFBodyDocId + fileExtName; //Wpsjs编辑器,标题栏显示使用saveAs下载保存到本机的文件名,上传使用attachNames
99371
+ saveAs = $scope.vo.flSubject + fileExtName;
99282
99372
  if (attach) {
99283
99373
  attachsType = attach.fileType;
99284
99374
  attachsName = encodeURI(attach.fileName);
@@ -99297,7 +99387,7 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99297
99387
  if ($scope.wfInstance.status > 0) {
99298
99388
  bOpenRevision = true;
99299
99389
  }
99300
- _this4.openType = openType;
99390
+ _this5.openType = openType;
99301
99391
 
99302
99392
  // 使用正文pdf,测试核稿
99303
99393
  /* $scope.approveFile = $scope.bodyfile
@@ -99313,8 +99403,8 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99313
99403
  if ($scope.wfInstance.passenger.docEditMode === 'NoTitle') {
99314
99404
  openType = undefined;
99315
99405
  //将智能写作生成的文件做为范文
99316
- _this4.fanwen_url = fbUrl + '&fileName=' + WFBodyDocId + '.doc';
99317
- console.log(appUrl + "/apigw".substring(1) + _this4.fanwen_url);
99406
+ _this5.fanwen_url = fbUrl + '&fileName=' + WFBodyDocId + '.doc';
99407
+ console.log(appUrl + "/apigw".substring(1) + _this5.fanwen_url);
99318
99408
  } else {
99319
99409
  openType = 'Redlining';
99320
99410
  //将智能写作生成的文件插入到红头模板中
@@ -99323,62 +99413,62 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99323
99413
  }
99324
99414
  }
99325
99415
  if (!(openType === 'NoTracks')) {
99326
- _context.next = 24;
99416
+ _context.next = 26;
99327
99417
  break;
99328
99418
  }
99329
99419
  //清稿
99330
99420
  if ($scope.noTracksFile && $scope.noTracksFile.fileName) {
99331
- downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + '.doc&attachsType=BODY';
99421
+ downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99332
99422
  } else {
99333
- downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + '.doc&attachsType=BODY';
99423
+ downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99334
99424
  }
99335
- _context.next = 74;
99425
+ _context.next = 76;
99336
99426
  break;
99337
- case 24:
99427
+ case 26:
99338
99428
  if (!attach) {
99339
- _context.next = 29;
99429
+ _context.next = 31;
99340
99430
  break;
99341
99431
  }
99342
99432
  bOpenRevision = false;
99343
99433
  downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadById?busiDataId=' + attach.busiDataId + '&attachIds=' + attach.id + '&attachsType=ATTACH';
99344
- _context.next = 74;
99434
+ _context.next = 76;
99345
99435
  break;
99346
- case 29:
99436
+ case 31:
99347
99437
  if (!(openType === 'OpenTwoDoc')) {
99348
- _context.next = 36;
99438
+ _context.next = 38;
99349
99439
  break;
99350
99440
  }
99351
99441
  bOpenRevision = false;
99352
99442
  if ($scope.noTracksFile) {
99353
- oldFileDownUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + '.doc&attachsType=BODY';
99443
+ oldFileDownUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99354
99444
  } else {
99355
- oldFileDownUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + '.doc&attachsType=BODY';
99445
+ oldFileDownUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99356
99446
  }
99357
- oldFileDownUrl += '&saveAs=旧文件.doc';
99447
+ oldFileDownUrl += '&saveAs=旧文件' + fileExtName;
99358
99448
  if ($scope.vo.gwmbId !== undefined && $scope.vo.gwmbId !== null && $scope.vo.gwmbId !== '') {
99359
99449
  downUrl = appUrl + "/apigw".substring(1) + '/gwgl/fwmb/download?id=' + $scope.vo.gwmbId + '&dataField=fileContent&nameField=mbFileName';
99360
99450
  } else {
99361
99451
  downUrl = appUrl + 'templates/Editor.doc?t=1';
99362
99452
  }
99363
- _context.next = 74;
99453
+ _context.next = 76;
99364
99454
  break;
99365
- case 36:
99455
+ case 38:
99366
99456
  if (!(openType === 'Approve' && $scope.approveFile)) {
99367
- _context.next = 42;
99457
+ _context.next = 44;
99368
99458
  break;
99369
99459
  }
99370
99460
  bOpenRevision = false;
99371
99461
  approveFileDownUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadById?inline=true&attachIds=' + $scope.approveFile.id + '&widthType=pageWidth';
99372
99462
  if ($scope.noTracksFile) {
99373
- downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + '.doc&attachsType=BODY';
99463
+ downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99374
99464
  } else {
99375
- downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + '.doc&attachsType=BODY';
99465
+ downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99376
99466
  }
99377
- _context.next = 74;
99467
+ _context.next = 76;
99378
99468
  break;
99379
- case 42:
99469
+ case 44:
99380
99470
  if (!(openType === 'Redlining' || openType === 'RedliningOnce')) {
99381
- _context.next = 48;
99471
+ _context.next = 50;
99382
99472
  break;
99383
99473
  }
99384
99474
  uploadPath = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/upload?busiDataId=' + WFBusiDataId + '&module=' + WfModule;
@@ -99390,50 +99480,50 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99390
99480
  } else if ($scope.wfInstance.haveDoc === 1) {
99391
99481
  // 首次套红 Redlining
99392
99482
  if ($scope.noTracksFile && $scope.noTracksFile.fileName) {
99393
- insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + '.doc&attachsType=BODY';
99483
+ insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99394
99484
  } else {
99395
- insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + '.doc&attachsType=BODY';
99485
+ insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99396
99486
  }
99397
99487
  uploadPath += '&Redlining=Redlining';
99398
99488
  } else if ($scope.wfInstance.haveDoc === 2) {
99399
99489
  // 再次套红 RedliningOnce
99400
99490
  if ($scope.noTracksFile && $scope.noTracksFile.fileName) {
99401
- insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + '.doc&attachsType=BODY';
99491
+ insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99402
99492
  } else {
99403
- insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + '.doc&attachsType=BODY';
99493
+ insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99404
99494
  }
99405
99495
  uploadPath += '&Redlining=RedliningOnce';
99406
99496
  }
99407
- _context.next = 74;
99497
+ _context.next = 76;
99408
99498
  break;
99409
- case 48:
99499
+ case 50:
99410
99500
  if (!(openType === 'attachEdit')) {
99411
- _context.next = 54;
99501
+ _context.next = 56;
99412
99502
  break;
99413
99503
  }
99414
99504
  //编辑红头文件模板附件
99415
99505
  saveAs = $scope.vo.id ? $scope.vo.id + '.docx' : $scope.vo.mbFileName;
99416
99506
  downUrl = $scope.downUrl + '&attachsName=' + WFBodyDocId;
99417
99507
  uploadPath = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/upload';
99418
- _context.next = 74;
99508
+ _context.next = 76;
99419
99509
  break;
99420
- case 54:
99421
- if (!(openType !== undefined && openType !== 'OpenTwoDoc' && openType !== 'Approve')) {
99422
- _context.next = 73;
99510
+ case 56:
99511
+ if (!(openType !== undefined && openType !== 'OpenTwoDoc' && openType !== 'Approve' && openType !== 'ReadDocEditFile' && openType !== 'ReadDocFile')) {
99512
+ _context.next = 75;
99423
99513
  break;
99424
99514
  }
99425
99515
  if (!($scope.wfInstance.status === -1)) {
99426
- _context.next = 60;
99516
+ _context.next = 62;
99427
99517
  break;
99428
99518
  }
99429
99519
  // this.$alert('请先保存文件。', '操作提示', { type: 'warning' })
99430
- _this4.$alert(_this4.$tx('ecoa.webOffice.saveFileAlert', '请先保存文件。'), _this4.$tx('common.operationTip', '操作提示'), {
99520
+ _this5.$alert(_this5.$tx('ecoa.webOffice.saveFileAlert', '请先保存文件。'), _this5.$tx('common.operationTip', '操作提示'), {
99431
99521
  type: 'warning'
99432
99522
  });
99433
99523
  return _context.abrupt("return");
99434
- case 60:
99524
+ case 62:
99435
99525
  if (!($scope.vo.flCpbTemplateId && $scope.vo.flCpbTemplateId !== '')) {
99436
- _context.next = 69;
99526
+ _context.next = 71;
99437
99527
  break;
99438
99528
  }
99439
99529
  bOpenRevision = false;
@@ -99444,18 +99534,18 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99444
99534
  productCode = window.productCode;
99445
99535
  }
99446
99536
  downUrl = appUrl + "/apigw".substring(1) + '/gwgl/cpbFile/printCpbFileDoc?busiDataId=' + $scope.vo.id + '&cpbTemplateId=' + $scope.vo.flCpbTemplateId + "&productCode=".concat(productCode);
99447
- _context.next = 71;
99537
+ _context.next = 73;
99448
99538
  break;
99449
- case 69:
99539
+ case 71:
99450
99540
  // this.$alert('当前文件没有关联呈批表/拟稿纸模板。', '操作提示', { type: 'warning' })
99451
- _this4.$alert(_this4.$tx('ecoa.webOffice.errorLinkFormAlert', '当前文件没有关联呈批表/拟稿纸模板。'), _this4.$tx('common.operationTip', '操作提示'), {
99541
+ _this5.$alert(_this5.$tx('ecoa.webOffice.errorLinkFormAlert', '当前文件没有关联呈批表/拟稿纸模板。'), _this5.$tx('common.operationTip', '操作提示'), {
99452
99542
  type: 'warning'
99453
99543
  });
99454
99544
  return _context.abrupt("return");
99455
- case 71:
99456
- _context.next = 74;
99457
- break;
99458
99545
  case 73:
99546
+ _context.next = 76;
99547
+ break;
99548
+ case 75:
99459
99549
  if ($scope.wfInstance.haveDoc === 0) {
99460
99550
  // 初始进来 haveDoc = 0
99461
99551
  if ($scope.wfInstance.passenger.docEditMode === 'NoTitle') {
@@ -99468,15 +99558,15 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99468
99558
  }
99469
99559
  }
99470
99560
  } else {
99471
- downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + '.doc&attachsType=BODY';
99561
+ downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99472
99562
  }
99473
- case 74:
99563
+ case 76:
99474
99564
  if (downUrl.indexOf('&saveAs=') === -1) {
99475
99565
  downUrl += '&saveAs=' + saveAs;
99476
99566
  }
99477
99567
 
99478
99568
  // 使用范文
99479
- if (_this4.fanwen_url) downUrl = appUrl + "/apigw".substring(1) + _this4.fanwen_url;
99569
+ if (_this5.fanwen_url) downUrl = appUrl + "/apigw".substring(1) + _this5.fanwen_url;
99480
99570
 
99481
99571
  // 文件附件,每个附件一行
99482
99572
  attachNames = '';
@@ -99497,7 +99587,7 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99497
99587
  blankDiv.innerHTML = attachNames;
99498
99588
  attachNames = blankDiv.innerText;
99499
99589
  }
99500
- _this4.$http({
99590
+ _this5.$http({
99501
99591
  method: 'GET',
99502
99592
  params: {
99503
99593
  timeLength: 60
@@ -99526,15 +99616,15 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99526
99616
 
99527
99617
  //启用编辑正文历史版本保存功能
99528
99618
  if (!openType) {
99529
- if (_this4.bodyDocHistoryVer === 'everySave') {
99619
+ if (_this5.bodyDocHistoryVer === 'everySave') {
99530
99620
  //每次编辑正文保存一个版本
99531
99621
  uploadPath += '&fileId=' + WFBodyDocId + '&fileVer=' + (0,utils/* formatTime */.fU)(new Date(), 'YYYYMMDDHHmmss');
99532
- } else if (_this4.bodyDocHistoryVer === 'everyTaskNode' && $scope.curTN.tnStartTime) {
99622
+ } else if (_this5.bodyDocHistoryVer === 'everyTaskNode' && $scope.curTN.tnStartTime) {
99533
99623
  //版本号为当前环节开始时间,一个环节处理人只保留一个历史版本
99534
99624
  uploadPath += '&fileId=' + WFBodyDocId + '&fileVer=' + $scope.curTN.tnStartTime.replaceAll('-', '').replaceAll(' ', '').replaceAll(':', '').replace('.', '');
99535
99625
  }
99536
99626
  }
99537
- var uploadAppendPath = uploadPath.replace(WFBodyDocId + '.doc', WFBodyDocId + '.pdf');
99627
+ var uploadAppendPath = uploadPath.replace(WFBodyDocId + fileExtName, WFBodyDocId + '.pdf');
99538
99628
  if (attach || openType === 'PrintFile') uploadAppendPath = '';
99539
99629
  var filePath = downUrl + '&tSessionId=' + res.body.tSessionId;
99540
99630
  var uploadFieldName = 'file';
@@ -99682,6 +99772,8 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99682
99772
  if ($scope.wfInstance.passenger.znhgAgent) {
99683
99773
  disableHgbtn = false;
99684
99774
  }
99775
+ //window.open(filePath, '_blank')
99776
+ document.querySelector('#webnotifyspan').innerText = '';
99685
99777
  window._WpsInvoke([{
99686
99778
  OnlineEditDoc: {
99687
99779
  docId: attachsName,
@@ -99700,7 +99792,7 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99700
99792
  uploadFieldName: uploadFieldName,
99701
99793
  buttonGroups: disableBtns,
99702
99794
  // 屏蔽功能按钮
99703
- userName: $scope.curTN && $scope.curTN.userName ? $scope.curTN.userName : _this4.loginUser.personName,
99795
+ userName: $scope.curTN && $scope.curTN.userName ? $scope.curTN.userName : _this5.loginUser.personName,
99704
99796
  revisionCtrl: {
99705
99797
  bOpenRevision: bOpenRevision,
99706
99798
  // true 打开修订,false关闭修订
@@ -99711,16 +99803,18 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99711
99803
  // 套红书签位置
99712
99804
  insertFileUrl: insertFileUrl,
99713
99805
  // 套红插入的正文
99714
- evenNumberPageSize: String(_this4.isEvenNumberPage),
99806
+ evenNumberPageSize: String(_this5.isEvenNumberPage),
99715
99807
  // 最后一页是否必须偶数页,1:是,0:否
99716
99808
  disableHgbtn: disableHgbtn,
99809
+ disableSavebtn: openType === 'ReadDocFile' ? '1' : '0',
99810
+ //禁用保存按钮
99717
99811
  productCode: _productCode,
99718
99812
  ecwebTicket: window.$auth.getTicket()
99719
99813
  }
99720
99814
  }]); // onlineEditDoc方法对应于OA助手dispatcher支持的方法名
99721
99815
  }
99722
99816
  });
99723
- case 79:
99817
+ case 81:
99724
99818
  case "end":
99725
99819
  return _context.stop();
99726
99820
  }
@@ -99819,7 +99913,7 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99819
99913
  window._WpsInvoke([{
99820
99914
  ExitWPS: {}
99821
99915
  }]);
99822
- $scope.$message.success(this.$tx('ecoa.webOffice.fileSaveSuccessMsg'));
99916
+ $scope.$message.success(this.$tx('ecoa.webOffice.fileSaveSuccessMsg', '文件已保存成功!'));
99823
99917
  } else if (saveInfo.code === 'success' && saveInfo.afterPDF && saveInfo.attachsType === 'BODY') {
99824
99918
  window._WpsInvoke([{
99825
99919
  ExitWPS: {}
@@ -99885,9 +99979,9 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
99885
99979
  });
99886
99980
  ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=script&lang=js
99887
99981
  /* harmony default export */ var webOffice_WpsOfficevue_type_script_lang_js = (WpsOfficevue_type_script_lang_js);
99888
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=style&index=0&id=1cf10eb9&prod&scoped=true&lang=scss
99889
- var WpsOfficevue_type_style_index_0_id_1cf10eb9_prod_scoped_true_lang_scss = __webpack_require__(1496);
99890
- ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=style&index=0&id=1cf10eb9&prod&scoped=true&lang=scss
99982
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=style&index=0&id=5b530424&prod&scoped=true&lang=scss
99983
+ var WpsOfficevue_type_style_index_0_id_5b530424_prod_scoped_true_lang_scss = __webpack_require__(4222);
99984
+ ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=style&index=0&id=5b530424&prod&scoped=true&lang=scss
99891
99985
 
99892
99986
  ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue
99893
99987
 
@@ -99900,11 +99994,11 @@ var WpsOfficevue_type_style_index_0_id_1cf10eb9_prod_scoped_true_lang_scss = __w
99900
99994
 
99901
99995
  var WpsOffice_component = (0,componentNormalizer/* default */.A)(
99902
99996
  webOffice_WpsOfficevue_type_script_lang_js,
99903
- WpsOfficevue_type_template_id_1cf10eb9_scoped_true_render,
99904
- WpsOfficevue_type_template_id_1cf10eb9_scoped_true_staticRenderFns,
99997
+ WpsOfficevue_type_template_id_5b530424_scoped_true_render,
99998
+ WpsOfficevue_type_template_id_5b530424_scoped_true_staticRenderFns,
99905
99999
  false,
99906
100000
  null,
99907
- "1cf10eb9",
100001
+ "5b530424",
99908
100002
  null
99909
100003
 
99910
100004
  )