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.
@@ -16486,12 +16486,23 @@ __webpack_require__.r(__webpack_exports__);
16486
16486
 
16487
16487
  var bUseHttps = false;
16488
16488
  var WpsInvoke = window.WpsInvoke;
16489
+ var wpsClientType = '';
16489
16490
  function _WpsInvoke(funcs, retry) {
16490
16491
  if (!retry) retry = 1;
16492
+ if (funcs[0].OnlineEditDoc && funcs[0].OnlineEditDoc.uploadFileName) {
16493
+ var uploadFileName = funcs[0].OnlineEditDoc.uploadFileName;
16494
+ if (uploadFileName.indexOf('.xls') !== -1) {
16495
+ wpsClientType = WpsInvoke.ClientType.et;
16496
+ } else if (uploadFileName.indexOf('.ppt') !== -1) {
16497
+ wpsClientType = WpsInvoke.ClientType.wpp;
16498
+ } else {
16499
+ wpsClientType = WpsInvoke.ClientType.wps;
16500
+ }
16501
+ }
16491
16502
  var info = {};
16492
16503
  info.funcs = funcs;
16493
16504
  var func = bUseHttps ? WpsInvoke.InvokeAsHttps : WpsInvoke.InvokeAsHttp;
16494
- func(WpsInvoke.ClientType.wps,
16505
+ func(wpsClientType,
16495
16506
  // 组件类型
16496
16507
  'WpsOAAssist',
16497
16508
  // 插件名,与wps客户端加载的加载的插件名对应
@@ -16515,7 +16526,7 @@ function _WpsInvoke(funcs, retry) {
16515
16526
  _WpsInvoke(funcs, ++retry);
16516
16527
  }
16517
16528
  } else {
16518
- console.log(result.response);
16529
+ console.log(wpsClientType, info, result.response);
16519
16530
  showresult(result.response);
16520
16531
  }
16521
16532
  });
@@ -16536,6 +16547,22 @@ WpsInvoke.RegWebNotify(WpsInvoke.ClientType.wps, 'WpsOAAssist', function (messag
16536
16547
  document.querySelector('#btnWpsSaved').click();
16537
16548
  }
16538
16549
  });
16550
+ WpsInvoke.RegWebNotify(WpsInvoke.ClientType.et, 'WpsOAAssist', function (messageText) {
16551
+ var span = window.parent.document.getElementById('webnotifyspan');
16552
+ span.innerHTML = messageText;
16553
+ console.log('wps notify msg:', messageText);
16554
+ if (messageText.indexOf('uploadPath') !== -1) {
16555
+ document.querySelector('#btnWpsSaved').click();
16556
+ }
16557
+ });
16558
+ WpsInvoke.RegWebNotify(WpsInvoke.ClientType.wpp, 'WpsOAAssist', function (messageText) {
16559
+ var span = window.parent.document.getElementById('webnotifyspan');
16560
+ span.innerHTML = messageText;
16561
+ console.log('wps notify msg:', messageText);
16562
+ if (messageText.indexOf('uploadPath') !== -1) {
16563
+ document.querySelector('#btnWpsSaved').click();
16564
+ }
16565
+ });
16539
16566
 
16540
16567
  /**
16541
16568
  * 处理WPS加载项的方法返回值
@@ -16561,10 +16588,11 @@ function showresult(resultData) {
16561
16588
  * 这是页面中针对代码显示的变量定义,开发者无需关心
16562
16589
  */
16563
16590
  window._WpsInvoke = _WpsInvoke;
16564
- function wpsInstallAddin(callback) {
16591
+ function wpsInstallAddin(callback, addonType) {
16592
+ if (!addonType) addonType = 'wps';
16565
16593
  var setting = {
16566
16594
  name: 'WpsOAAssist',
16567
- addonType: 'wps',
16595
+ addonType: addonType,
16568
16596
  online: 'true',
16569
16597
  url: "".concat(location.href.split('#')[0], "plugins/wpsjs/wpsoaassit/")
16570
16598
  };
@@ -21689,7 +21717,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".el-table td[data-v-2c87c469]{padding:
21689
21717
 
21690
21718
  /***/ }),
21691
21719
 
21692
- /***/ 7414:
21720
+ /***/ 3995:
21693
21721
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21694
21722
 
21695
21723
  "use strict";
@@ -21703,14 +21731,14 @@ __webpack_require__.r(__webpack_exports__);
21703
21731
 
21704
21732
  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()));
21705
21733
  // Module
21706
- ___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}", ""]);
21734
+ ___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}", ""]);
21707
21735
  // Exports
21708
21736
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21709
21737
 
21710
21738
 
21711
21739
  /***/ }),
21712
21740
 
21713
- /***/ 7914:
21741
+ /***/ 7360:
21714
21742
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21715
21743
 
21716
21744
  "use strict";
@@ -21724,7 +21752,7 @@ __webpack_require__.r(__webpack_exports__);
21724
21752
 
21725
21753
  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()));
21726
21754
  // Module
21727
- ___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}", ""]);
21755
+ ___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}", ""]);
21728
21756
  // Exports
21729
21757
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21730
21758
 
@@ -61790,35 +61818,35 @@ var update = add("4ab28a72", content, true, {"sourceMap":false,"shadowMode":fals
61790
61818
 
61791
61819
  /***/ }),
61792
61820
 
61793
- /***/ 8586:
61821
+ /***/ 8119:
61794
61822
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
61795
61823
 
61796
61824
  // style-loader: Adds some css to the DOM by adding a <style> tag
61797
61825
 
61798
61826
  // load the styles
61799
- var content = __webpack_require__(7414);
61827
+ var content = __webpack_require__(3995);
61800
61828
  if(content.__esModule) content = content.default;
61801
61829
  if(typeof content === 'string') content = [[module.id, content, '']];
61802
61830
  if(content.locals) module.exports = content.locals;
61803
61831
  // add the styles to the DOM
61804
61832
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
61805
- var update = add("2f0d70f6", content, true, {"sourceMap":false,"shadowMode":false});
61833
+ var update = add("083d53fc", content, true, {"sourceMap":false,"shadowMode":false});
61806
61834
 
61807
61835
  /***/ }),
61808
61836
 
61809
- /***/ 7934:
61837
+ /***/ 4596:
61810
61838
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
61811
61839
 
61812
61840
  // style-loader: Adds some css to the DOM by adding a <style> tag
61813
61841
 
61814
61842
  // load the styles
61815
- var content = __webpack_require__(7914);
61843
+ var content = __webpack_require__(7360);
61816
61844
  if(content.__esModule) content = content.default;
61817
61845
  if(typeof content === 'string') content = [[module.id, content, '']];
61818
61846
  if(content.locals) module.exports = content.locals;
61819
61847
  // add the styles to the DOM
61820
61848
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
61821
- var update = add("4a9a839e", content, true, {"sourceMap":false,"shadowMode":false});
61849
+ var update = add("674dfc29", content, true, {"sourceMap":false,"shadowMode":false});
61822
61850
 
61823
61851
  /***/ }),
61824
61852
 
@@ -97345,8 +97373,8 @@ var H5Office_component = (0,componentNormalizer/* default */.A)(
97345
97373
  )
97346
97374
 
97347
97375
  /* harmony default export */ var H5Office = (H5Office_component.exports);
97348
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
97349
- var WebOfficevue_type_template_id_396e991e_scoped_true_render = function render() {
97376
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
97377
+ var WebOfficevue_type_template_id_5639a90c_scoped_true_render = function render() {
97350
97378
  var _vm = this,
97351
97379
  _c = _vm._self._c;
97352
97380
  return _vm.showOffice ? _c('el-dialog', {
@@ -97684,7 +97712,7 @@ var WebOfficevue_type_template_id_396e991e_scoped_true_render = function render(
97684
97712
  }
97685
97713
  }, [_vm._v("上传")]) : _vm._e()], 1)]) : _vm._e();
97686
97714
  };
97687
- var WebOfficevue_type_template_id_396e991e_scoped_true_staticRenderFns = [];
97715
+ var WebOfficevue_type_template_id_5639a90c_scoped_true_staticRenderFns = [];
97688
97716
 
97689
97717
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
97690
97718
  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); }
@@ -97706,6 +97734,10 @@ var _require = __webpack_require__(3844),
97706
97734
  accept: {
97707
97735
  type: String,
97708
97736
  default: '.doc,.docx,.pdf'
97737
+ },
97738
+ saveToPdf: {
97739
+ type: Boolean,
97740
+ default: true
97709
97741
  }
97710
97742
  },
97711
97743
  data: function data() {
@@ -98089,29 +98121,31 @@ var _require = __webpack_require__(3844),
98089
98121
  */
98090
98122
  btnOpenWordClick: function btnOpenWordClick($scope, openType, fbUrl, attach) {
98091
98123
  var _this6 = this;
98092
- if ($scope.officeType !== 'ecexe') {
98093
- return;
98094
- } else if (!this.downloadHint) {
98124
+ if (!this.downloadHint) {
98095
98125
  //未执行版本检测
98096
98126
  new Promise(function (resolve) {
98097
- _this6.queryWebOfficeVersion(resolve);
98127
+ if (_this6.accept.indexOf('.xls') !== -1 || _this6.accept.indexOf('.ppt') !== -1 || _this6.accept.indexOf('.wps') !== -1) {
98128
+ //优先使用wpsjs
98129
+ _this6.loadWpsOffice(resolve);
98130
+ } else {
98131
+ //优先使用ecexe
98132
+ _this6.queryWebOfficeVersion(resolve, $scope, attach);
98133
+ }
98098
98134
  }).then(function (res) {
98099
- _this6.btnOpenWordClick($scope, openType, fbUrl, attach);
98135
+ if (!res) {
98136
+ _this6.downloadHint = _this6.$tx('ecoa.webOffice.noFindEditor', '没有检测到正文编辑器');
98137
+ }
98138
+ _this6.$nextTick(function () {
98139
+ _this6.$bus.emit('btnOpenWordClick', $scope, openType, fbUrl, attach);
98140
+ });
98100
98141
  });
98101
98142
  return;
98143
+ } else if ($scope.officeType !== 'ecexe') {
98144
+ return;
98102
98145
  } else if (this.downloadHint === this.$tx('ecoa.webOffice.hasNewEditor', '检测到有新版正文编辑器')) {
98103
98146
  this.dialogTitle = this.$tx('ecoa.webOffice.updateTip', '更新提示');
98104
98147
  this.showOffice = true;
98105
98148
  return;
98106
- } else if (!this.installedVer && window.wpsInstalled) {
98107
- setTimeout(function () {
98108
- $scope.officeType = 'wpsjs';
98109
- console.log($scope.officeType, ' window.wpsInstalled');
98110
- _this6.$nextTick(function () {
98111
- _this6.$bus.emit('btnOpenWordClick', $scope, openType, fbUrl, attach);
98112
- });
98113
- }, 0);
98114
- return;
98115
98149
  } else if (!this.installedVer && !window.wpsInstalled) {
98116
98150
  this.showOffice = true;
98117
98151
  return;
@@ -98275,7 +98309,7 @@ var _require = __webpack_require__(3844),
98275
98309
  _context.next = 66;
98276
98310
  break;
98277
98311
  case 51:
98278
- if (!(openType !== undefined && openType !== 'OpenTwoDoc')) {
98312
+ if (!(openType !== undefined && openType !== 'OpenTwoDoc' && openType !== 'Approve' && openType !== 'ReadDocEditFile' && openType !== 'ReadDocFile')) {
98279
98313
  _context.next = 65;
98280
98314
  break;
98281
98315
  }
@@ -98533,7 +98567,7 @@ var _require = __webpack_require__(3844),
98533
98567
  }
98534
98568
  dataJson.showBtnToolbar = '1';
98535
98569
  dataJson.showRevisions = '0';
98536
- dataJson.showBtnSaveExit = '1';
98570
+ dataJson.showBtnSaveExit = openType === 'ReadDocFile' ? '0' : '1';
98537
98571
  dataJson.showBtnSavePdf = '0';
98538
98572
  dataJson.showBtnRevisions = '1';
98539
98573
  dataJson.showBtnSave = '1';
@@ -98754,9 +98788,9 @@ var _require = __webpack_require__(3844),
98754
98788
  }
98755
98789
  },
98756
98790
  loadWpsOffice: function loadWpsOffice(resolve) {
98791
+ var _this = this;
98757
98792
  var $scope = this.$vnode.context;
98758
98793
  if (!$scope.$options.components['WpsOffice']) {
98759
- $scope.officeType = '';
98760
98794
  var js = document.createElement('script');
98761
98795
  js.id = 'wps-js';
98762
98796
  js.src = 'plugins/wpsjs/wpsaddons/wpsjsrpcsdk.js';
@@ -98768,19 +98802,29 @@ var _require = __webpack_require__(3844),
98768
98802
  } else {
98769
98803
  $scope.$options.components['WpsOffice'] = $scope.$loadComponent('@/wapp/workflow/webOffice/WpsOffice');
98770
98804
  }
98771
- $scope.officeType = 'wpsjs';
98772
98805
  $scope.$forceUpdate();
98773
- setTimeout(function () {
98806
+ var _require2 = __webpack_require__(8686),
98807
+ wpsInstallAddin = _require2.wpsInstallAddin;
98808
+ wpsInstallAddin(function (res) {
98809
+ console.log('检测是否安装WPS', res);
98774
98810
  if (window.wpsInstalled !== undefined) {
98775
98811
  //已经安装过
98776
- resolve(true);
98812
+ if (window.wpsInstalled) {
98813
+ $scope.officeType = 'wpsjs';
98814
+ _this.downloadHint = _this.$tx('ecoa.webOffice.isInstallFile', '正文编辑器已安装');
98815
+ }
98816
+ resolve(window.wpsInstalled);
98777
98817
  } else {
98778
98818
  //首次安装,大约需要6秒
98779
98819
  $scope.$bus.emit('showDoingDialog', '正在检测WPS安装版本,请稍候...');
98780
98820
  var times = 0;
98781
98821
  var timer = setInterval(function () {
98782
98822
  if (window.wpsInstalled !== undefined) {
98783
- resolve(true);
98823
+ if (window.wpsInstalled) {
98824
+ $scope.officeType = 'wpsjs';
98825
+ _this.downloadHint = _this.$tx('ecoa.webOffice.isInstallFile', '正文编辑器已安装');
98826
+ }
98827
+ resolve(window.wpsInstalled);
98784
98828
  clearInterval(timer);
98785
98829
  $scope.$bus.emit('closeDoingDialog');
98786
98830
  } else if (times >= 50) {
@@ -98792,14 +98836,18 @@ var _require = __webpack_require__(3844),
98792
98836
  }, 200);
98793
98837
  $scope.$bus.emit('showDoingDialog', '正在检测WPS安装版本,请稍候...');
98794
98838
  }
98795
- }, 100);
98839
+ });
98796
98840
  } else {
98797
- resolve(true);
98841
+ resolve(false);
98798
98842
  }
98799
98843
  js.onload = js.onreadystatechange = null;
98800
98844
  };
98801
- } else {
98845
+ } else if (window.wpsInstalled) {
98846
+ $scope.officeType = 'wpsjs';
98847
+ _this.downloadHint = _this.$tx('ecoa.webOffice.isInstallFile', '正文编辑器已安装');
98802
98848
  resolve(true);
98849
+ } else {
98850
+ resolve(false);
98803
98851
  }
98804
98852
  },
98805
98853
  /**
@@ -98908,7 +98956,7 @@ var _require = __webpack_require__(3844),
98908
98956
  attach.fileType = 'BODY';
98909
98957
  attach.uploadBy = this.loginUser.personName;
98910
98958
  attach.uploadTime = '待上传';
98911
- attach.saveToPdf = !!(extName === '.doc' || extName === '.docx');
98959
+ attach.saveToPdf = this.saveToPdf;
98912
98960
  attach.file = file;
98913
98961
  if (this.openType === 'SignedFile') {
98914
98962
  if (extName !== '.pdf') {
@@ -98945,9 +98993,9 @@ var _require = __webpack_require__(3844),
98945
98993
  });
98946
98994
  ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue?vue&type=script&lang=js
98947
98995
  /* harmony default export */ var webOffice_WebOfficevue_type_script_lang_js = (WebOfficevue_type_script_lang_js);
98948
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
98949
- var WebOfficevue_type_style_index_0_id_396e991e_prod_scoped_true_lang_scss = __webpack_require__(8586);
98950
- ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue?vue&type=style&index=0&id=396e991e&prod&scoped=true&lang=scss
98996
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
98997
+ var WebOfficevue_type_style_index_0_id_5639a90c_prod_scoped_true_lang_scss = __webpack_require__(8119);
98998
+ ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue?vue&type=style&index=0&id=5639a90c&prod&scoped=true&lang=scss
98951
98999
 
98952
99000
  ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WebOffice.vue
98953
99001
 
@@ -98960,18 +99008,18 @@ var WebOfficevue_type_style_index_0_id_396e991e_prod_scoped_true_lang_scss = __w
98960
99008
 
98961
99009
  var WebOffice_component = (0,componentNormalizer/* default */.A)(
98962
99010
  webOffice_WebOfficevue_type_script_lang_js,
98963
- WebOfficevue_type_template_id_396e991e_scoped_true_render,
98964
- WebOfficevue_type_template_id_396e991e_scoped_true_staticRenderFns,
99011
+ WebOfficevue_type_template_id_5639a90c_scoped_true_render,
99012
+ WebOfficevue_type_template_id_5639a90c_scoped_true_staticRenderFns,
98965
99013
  false,
98966
99014
  null,
98967
- "396e991e",
99015
+ "5639a90c",
98968
99016
  null
98969
99017
 
98970
99018
  )
98971
99019
 
98972
99020
  /* harmony default export */ var WebOffice = (WebOffice_component.exports);
98973
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
98974
- var WpsOfficevue_type_template_id_1cf10eb9_scoped_true_render = function render() {
99021
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
99022
+ var WpsOfficevue_type_template_id_5b530424_scoped_true_render = function render() {
98975
99023
  var _vm = this,
98976
99024
  _c = _vm._self._c;
98977
99025
  return _c('div', {
@@ -99023,7 +99071,7 @@ var WpsOfficevue_type_template_id_1cf10eb9_scoped_true_render = function render(
99023
99071
  }
99024
99072
  }, [_vm._v("正在打开,请稍后...")])])], 1);
99025
99073
  };
99026
- var WpsOfficevue_type_template_id_1cf10eb9_scoped_true_staticRenderFns = [];
99074
+ var WpsOfficevue_type_template_id_5b530424_scoped_true_staticRenderFns = [];
99027
99075
 
99028
99076
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
99029
99077
  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); }
@@ -99037,7 +99085,7 @@ function WpsOfficevue_type_script_lang_js_arrayLikeToArray(r, a) { (null == a ||
99037
99085
  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; }
99038
99086
  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); }
99039
99087
  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); }); }; }
99040
- // import { wpsInstallAddin } from './wpsInit'
99088
+ //import { wpsInstallAddin } from './wpsInit'
99041
99089
 
99042
99090
  var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99043
99091
  WpsOfficevue_type_script_lang_js_bodyDocHistoryVer = WpsOfficevue_type_script_lang_js_require.bodyDocHistoryVer;
@@ -99050,11 +99098,13 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99050
99098
  return null;
99051
99099
  }
99052
99100
  },
99053
- commandBar: {
99054
- type: Array,
99055
- default: function _default() {
99056
- return null;
99057
- }
99101
+ accept: {
99102
+ type: String,
99103
+ default: '.doc,.docx,.pdf'
99104
+ },
99105
+ saveToPdf: {
99106
+ type: Boolean,
99107
+ default: true
99058
99108
  }
99059
99109
  },
99060
99110
  data: function data() {
@@ -99088,14 +99138,7 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99088
99138
  this.$bus.off('btnPreviewAttachClick', this.btnPreviewAttachClick);
99089
99139
  this.$bus.off('btnEditAttachClick', this.btnEditAttachClick);
99090
99140
  },
99091
- mounted: function mounted() {
99092
- var _require2 = __webpack_require__(8686),
99093
- wpsInstallAddin = _require2.wpsInstallAddin;
99094
- wpsInstallAddin(function (res) {
99095
- console.log('检测是否安装WPS', res);
99096
- document.querySelector('#webnotifyspan').innerText = '';
99097
- });
99098
- },
99141
+ mounted: function mounted() {},
99099
99142
  methods: {
99100
99143
  btnEditAttachClick: function btnEditAttachClick(attach, officeType) {
99101
99144
  var $scope = this.$vnode.context;
@@ -99275,28 +99318,75 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99275
99318
  this.btnOpenWpsClick($scope, openType);
99276
99319
  },
99277
99320
  btnOpenWpsClick: function btnOpenWpsClick($scope, openType, fbUrl, attach) {
99321
+ var _this4 = this;
99278
99322
  this.fanwen_url = fbUrl;
99279
99323
  // 安装了wps并且officeType==='wpsjs'
99280
- if (window.wpsInstalled && $scope.officeType === 'wpsjs') {
99281
- this.btnOpenWpsClickReal($scope, openType, fbUrl, attach);
99324
+ var _require2 = __webpack_require__(8686),
99325
+ wpsInstallAddin = _require2.wpsInstallAddin;
99326
+ var wpsClientType = 'wps';
99327
+ var fileName = '';
99328
+ if (attach) {
99329
+ fileName = attach.fileName;
99330
+ } else if ($scope.bodyfile && $scope.bodyfile.fileName) {
99331
+ if ($scope.bodyfile.fileName.indexOf('.doc') !== -1 || $scope.bodyfile.fileName.indexOf('.xls') !== -1 || $scope.bodyfile.fileName.indexOf('.ppt') !== -1) {
99332
+ fileName = $scope.bodyfile.fileName;
99333
+ } else {
99334
+ var docBodyfiles = $scope.attachments.filter(function (attach) {
99335
+ if (attach.id !== $scope.bodyfile.id && attach.originalName.split('.')[0] === $scope.bodyfile.originalName.split('.')[0]) {
99336
+ return true;
99337
+ }
99338
+ });
99339
+ if (docBodyfiles.length > 0) {
99340
+ fileName = docBodyfiles[0].fileName;
99341
+ }
99342
+ }
99343
+ }
99344
+ if (fileName.indexOf('.xls') !== -1) {
99345
+ wpsClientType = 'et';
99346
+ } else if (fileName.indexOf('.ppt') !== -1) {
99347
+ wpsClientType = 'wpp';
99282
99348
  }
99349
+ wpsInstallAddin(function (res) {
99350
+ console.log('检测是否安装WPS', res);
99351
+ document.querySelector('#webnotifyspan').innerText = '';
99352
+ if (window.wpsInstalled && $scope.officeType === 'wpsjs') {
99353
+ _this4.btnOpenWpsClickReal($scope, openType, fbUrl, attach);
99354
+ }
99355
+ }, wpsClientType);
99283
99356
  },
99284
99357
  btnOpenWpsClickReal: function btnOpenWpsClickReal($scope, openType, fbUrl, attach) {
99285
- var _this4 = this;
99358
+ var _this5 = this;
99286
99359
  // 编辑正文事件
99287
99360
  $scope.formValidate( /*#__PURE__*/WpsOfficevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/WpsOfficevue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
99288
- var appUrl, WFBusiDataId, WFBodyDocId, WfModule, attachsType, attachsName, saveAs, bOpenRevision, uploadPath, downUrl, oldFileDownUrl, approveFileDownUrl, insertFileUrl, productCode, attachNames, index, blankDiv;
99361
+ var fileExtName, docBodyfiles, appUrl, WFBusiDataId, WFBodyDocId, WfModule, attachsType, attachsName, saveAs, bOpenRevision, uploadPath, downUrl, oldFileDownUrl, approveFileDownUrl, insertFileUrl, productCode, attachNames, index, blankDiv;
99289
99362
  return WpsOfficevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
99290
99363
  while (1) switch (_context.prev = _context.next) {
99291
99364
  case 0:
99365
+ fileExtName = '.doc'; //编辑文件格式
99366
+ if (attach) {
99367
+ fileExtName = '.' + attach.fileName.split('.')[1];
99368
+ } else if ($scope.bodyfile && $scope.bodyfile.fileName) {
99369
+ if ($scope.bodyfile.fileName.indexOf('.doc') !== -1 || $scope.bodyfile.fileName.indexOf('.xls') !== -1 || $scope.bodyfile.fileName.indexOf('.ppt') !== -1) {
99370
+ fileExtName = '.' + $scope.bodyfile.fileName.split('.')[1];
99371
+ } else {
99372
+ docBodyfiles = $scope.attachments.filter(function (attach) {
99373
+ if (attach.id !== $scope.bodyfile.id && attach.originalName.split('.')[0] === $scope.bodyfile.originalName.split('.')[0]) {
99374
+ return true;
99375
+ }
99376
+ });
99377
+ if (docBodyfiles.length > 0) {
99378
+ fileExtName = '.' + docBodyfiles[0].originalName.split('.')[1];
99379
+ }
99380
+ }
99381
+ }
99292
99382
  appUrl = location.href.split('#')[0];
99293
99383
  WFBusiDataId = $scope.vo.id;
99294
99384
  WFBodyDocId = $scope.wfInstance.bodyDocId ? $scope.wfInstance.bodyDocId : '';
99295
- _this4.WFBodyDocId = WFBodyDocId;
99385
+ _this5.WFBodyDocId = WFBodyDocId;
99296
99386
  WfModule = $scope.wfInstance.module ? $scope.wfInstance.module : '';
99297
99387
  attachsType = 'BODY';
99298
- attachsName = WFBodyDocId + '.doc'; //Wpsjs编辑器,标题栏显示使用saveAs下载保存到本机的文件名,上传使用attachNames
99299
- saveAs = $scope.vo.flSubject + '.doc';
99388
+ attachsName = WFBodyDocId + fileExtName; //Wpsjs编辑器,标题栏显示使用saveAs下载保存到本机的文件名,上传使用attachNames
99389
+ saveAs = $scope.vo.flSubject + fileExtName;
99300
99390
  if (attach) {
99301
99391
  attachsType = attach.fileType;
99302
99392
  attachsName = encodeURI(attach.fileName);
@@ -99315,7 +99405,7 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99315
99405
  if ($scope.wfInstance.status > 0) {
99316
99406
  bOpenRevision = true;
99317
99407
  }
99318
- _this4.openType = openType;
99408
+ _this5.openType = openType;
99319
99409
 
99320
99410
  // 使用正文pdf,测试核稿
99321
99411
  /* $scope.approveFile = $scope.bodyfile
@@ -99331,8 +99421,8 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99331
99421
  if ($scope.wfInstance.passenger.docEditMode === 'NoTitle') {
99332
99422
  openType = undefined;
99333
99423
  //将智能写作生成的文件做为范文
99334
- _this4.fanwen_url = fbUrl + '&fileName=' + WFBodyDocId + '.doc';
99335
- console.log(appUrl + "/apigw".substring(1) + _this4.fanwen_url);
99424
+ _this5.fanwen_url = fbUrl + '&fileName=' + WFBodyDocId + '.doc';
99425
+ console.log(appUrl + "/apigw".substring(1) + _this5.fanwen_url);
99336
99426
  } else {
99337
99427
  openType = 'Redlining';
99338
99428
  //将智能写作生成的文件插入到红头模板中
@@ -99341,62 +99431,62 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99341
99431
  }
99342
99432
  }
99343
99433
  if (!(openType === 'NoTracks')) {
99344
- _context.next = 24;
99434
+ _context.next = 26;
99345
99435
  break;
99346
99436
  }
99347
99437
  //清稿
99348
99438
  if ($scope.noTracksFile && $scope.noTracksFile.fileName) {
99349
- downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + '.doc&attachsType=BODY';
99439
+ downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99350
99440
  } else {
99351
- downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + '.doc&attachsType=BODY';
99441
+ downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99352
99442
  }
99353
- _context.next = 74;
99443
+ _context.next = 76;
99354
99444
  break;
99355
- case 24:
99445
+ case 26:
99356
99446
  if (!attach) {
99357
- _context.next = 29;
99447
+ _context.next = 31;
99358
99448
  break;
99359
99449
  }
99360
99450
  bOpenRevision = false;
99361
99451
  downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadById?busiDataId=' + attach.busiDataId + '&attachIds=' + attach.id + '&attachsType=ATTACH';
99362
- _context.next = 74;
99452
+ _context.next = 76;
99363
99453
  break;
99364
- case 29:
99454
+ case 31:
99365
99455
  if (!(openType === 'OpenTwoDoc')) {
99366
- _context.next = 36;
99456
+ _context.next = 38;
99367
99457
  break;
99368
99458
  }
99369
99459
  bOpenRevision = false;
99370
99460
  if ($scope.noTracksFile) {
99371
- oldFileDownUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + '.doc&attachsType=BODY';
99461
+ oldFileDownUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99372
99462
  } else {
99373
- oldFileDownUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + '.doc&attachsType=BODY';
99463
+ oldFileDownUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99374
99464
  }
99375
- oldFileDownUrl += '&saveAs=旧文件.doc';
99465
+ oldFileDownUrl += '&saveAs=旧文件' + fileExtName;
99376
99466
  if ($scope.vo.gwmbId !== undefined && $scope.vo.gwmbId !== null && $scope.vo.gwmbId !== '') {
99377
99467
  downUrl = appUrl + "/apigw".substring(1) + '/gwgl/fwmb/download?id=' + $scope.vo.gwmbId + '&dataField=fileContent&nameField=mbFileName';
99378
99468
  } else {
99379
99469
  downUrl = appUrl + 'templates/Editor.doc?t=1';
99380
99470
  }
99381
- _context.next = 74;
99471
+ _context.next = 76;
99382
99472
  break;
99383
- case 36:
99473
+ case 38:
99384
99474
  if (!(openType === 'Approve' && $scope.approveFile)) {
99385
- _context.next = 42;
99475
+ _context.next = 44;
99386
99476
  break;
99387
99477
  }
99388
99478
  bOpenRevision = false;
99389
99479
  approveFileDownUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadById?inline=true&attachIds=' + $scope.approveFile.id + '&widthType=pageWidth';
99390
99480
  if ($scope.noTracksFile) {
99391
- downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + '.doc&attachsType=BODY';
99481
+ downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99392
99482
  } else {
99393
- downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + '.doc&attachsType=BODY';
99483
+ downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99394
99484
  }
99395
- _context.next = 74;
99485
+ _context.next = 76;
99396
99486
  break;
99397
- case 42:
99487
+ case 44:
99398
99488
  if (!(openType === 'Redlining' || openType === 'RedliningOnce')) {
99399
- _context.next = 48;
99489
+ _context.next = 50;
99400
99490
  break;
99401
99491
  }
99402
99492
  uploadPath = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/upload?busiDataId=' + WFBusiDataId + '&module=' + WfModule;
@@ -99408,50 +99498,50 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99408
99498
  } else if ($scope.wfInstance.haveDoc === 1) {
99409
99499
  // 首次套红 Redlining
99410
99500
  if ($scope.noTracksFile && $scope.noTracksFile.fileName) {
99411
- insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + '.doc&attachsType=BODY';
99501
+ insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99412
99502
  } else {
99413
- insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + '.doc&attachsType=BODY';
99503
+ insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99414
99504
  }
99415
99505
  uploadPath += '&Redlining=Redlining';
99416
99506
  } else if ($scope.wfInstance.haveDoc === 2) {
99417
99507
  // 再次套红 RedliningOnce
99418
99508
  if ($scope.noTracksFile && $scope.noTracksFile.fileName) {
99419
- insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + '.doc&attachsType=BODY';
99509
+ insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=NoTracks_' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99420
99510
  } else {
99421
- insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + '.doc&attachsType=BODY';
99511
+ insertFileUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99422
99512
  }
99423
99513
  uploadPath += '&Redlining=RedliningOnce';
99424
99514
  }
99425
- _context.next = 74;
99515
+ _context.next = 76;
99426
99516
  break;
99427
- case 48:
99517
+ case 50:
99428
99518
  if (!(openType === 'attachEdit')) {
99429
- _context.next = 54;
99519
+ _context.next = 56;
99430
99520
  break;
99431
99521
  }
99432
99522
  //编辑红头文件模板附件
99433
99523
  saveAs = $scope.vo.id ? $scope.vo.id + '.docx' : $scope.vo.mbFileName;
99434
99524
  downUrl = $scope.downUrl + '&attachsName=' + WFBodyDocId;
99435
99525
  uploadPath = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/upload';
99436
- _context.next = 74;
99526
+ _context.next = 76;
99437
99527
  break;
99438
- case 54:
99439
- if (!(openType !== undefined && openType !== 'OpenTwoDoc' && openType !== 'Approve')) {
99440
- _context.next = 73;
99528
+ case 56:
99529
+ if (!(openType !== undefined && openType !== 'OpenTwoDoc' && openType !== 'Approve' && openType !== 'ReadDocEditFile' && openType !== 'ReadDocFile')) {
99530
+ _context.next = 75;
99441
99531
  break;
99442
99532
  }
99443
99533
  if (!($scope.wfInstance.status === -1)) {
99444
- _context.next = 60;
99534
+ _context.next = 62;
99445
99535
  break;
99446
99536
  }
99447
99537
  // this.$alert('请先保存文件。', '操作提示', { type: 'warning' })
99448
- _this4.$alert(_this4.$tx('ecoa.webOffice.saveFileAlert', '请先保存文件。'), _this4.$tx('common.operationTip', '操作提示'), {
99538
+ _this5.$alert(_this5.$tx('ecoa.webOffice.saveFileAlert', '请先保存文件。'), _this5.$tx('common.operationTip', '操作提示'), {
99449
99539
  type: 'warning'
99450
99540
  });
99451
99541
  return _context.abrupt("return");
99452
- case 60:
99542
+ case 62:
99453
99543
  if (!($scope.vo.flCpbTemplateId && $scope.vo.flCpbTemplateId !== '')) {
99454
- _context.next = 69;
99544
+ _context.next = 71;
99455
99545
  break;
99456
99546
  }
99457
99547
  bOpenRevision = false;
@@ -99462,18 +99552,18 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99462
99552
  productCode = window.productCode;
99463
99553
  }
99464
99554
  downUrl = appUrl + "/apigw".substring(1) + '/gwgl/cpbFile/printCpbFileDoc?busiDataId=' + $scope.vo.id + '&cpbTemplateId=' + $scope.vo.flCpbTemplateId + "&productCode=".concat(productCode);
99465
- _context.next = 71;
99555
+ _context.next = 73;
99466
99556
  break;
99467
- case 69:
99557
+ case 71:
99468
99558
  // this.$alert('当前文件没有关联呈批表/拟稿纸模板。', '操作提示', { type: 'warning' })
99469
- _this4.$alert(_this4.$tx('ecoa.webOffice.errorLinkFormAlert', '当前文件没有关联呈批表/拟稿纸模板。'), _this4.$tx('common.operationTip', '操作提示'), {
99559
+ _this5.$alert(_this5.$tx('ecoa.webOffice.errorLinkFormAlert', '当前文件没有关联呈批表/拟稿纸模板。'), _this5.$tx('common.operationTip', '操作提示'), {
99470
99560
  type: 'warning'
99471
99561
  });
99472
99562
  return _context.abrupt("return");
99473
- case 71:
99474
- _context.next = 74;
99475
- break;
99476
99563
  case 73:
99564
+ _context.next = 76;
99565
+ break;
99566
+ case 75:
99477
99567
  if ($scope.wfInstance.haveDoc === 0) {
99478
99568
  // 初始进来 haveDoc = 0
99479
99569
  if ($scope.wfInstance.passenger.docEditMode === 'NoTitle') {
@@ -99486,15 +99576,15 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99486
99576
  }
99487
99577
  }
99488
99578
  } else {
99489
- downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + '.doc&attachsType=BODY';
99579
+ downUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/downloadByName?busiDataId=' + WFBusiDataId + '&attachsName=' + WFBodyDocId + fileExtName + '&attachsType=BODY';
99490
99580
  }
99491
- case 74:
99581
+ case 76:
99492
99582
  if (downUrl.indexOf('&saveAs=') === -1) {
99493
99583
  downUrl += '&saveAs=' + saveAs;
99494
99584
  }
99495
99585
 
99496
99586
  // 使用范文
99497
- if (_this4.fanwen_url) downUrl = appUrl + "/apigw".substring(1) + _this4.fanwen_url;
99587
+ if (_this5.fanwen_url) downUrl = appUrl + "/apigw".substring(1) + _this5.fanwen_url;
99498
99588
 
99499
99589
  // 文件附件,每个附件一行
99500
99590
  attachNames = '';
@@ -99515,7 +99605,7 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99515
99605
  blankDiv.innerHTML = attachNames;
99516
99606
  attachNames = blankDiv.innerText;
99517
99607
  }
99518
- _this4.$http({
99608
+ _this5.$http({
99519
99609
  method: 'GET',
99520
99610
  params: {
99521
99611
  timeLength: 60
@@ -99544,15 +99634,15 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99544
99634
 
99545
99635
  //启用编辑正文历史版本保存功能
99546
99636
  if (!openType) {
99547
- if (_this4.bodyDocHistoryVer === 'everySave') {
99637
+ if (_this5.bodyDocHistoryVer === 'everySave') {
99548
99638
  //每次编辑正文保存一个版本
99549
99639
  uploadPath += '&fileId=' + WFBodyDocId + '&fileVer=' + (0,utils/* formatTime */.fU)(new Date(), 'YYYYMMDDHHmmss');
99550
- } else if (_this4.bodyDocHistoryVer === 'everyTaskNode' && $scope.curTN.tnStartTime) {
99640
+ } else if (_this5.bodyDocHistoryVer === 'everyTaskNode' && $scope.curTN.tnStartTime) {
99551
99641
  //版本号为当前环节开始时间,一个环节处理人只保留一个历史版本
99552
99642
  uploadPath += '&fileId=' + WFBodyDocId + '&fileVer=' + $scope.curTN.tnStartTime.replaceAll('-', '').replaceAll(' ', '').replaceAll(':', '').replace('.', '');
99553
99643
  }
99554
99644
  }
99555
- var uploadAppendPath = uploadPath.replace(WFBodyDocId + '.doc', WFBodyDocId + '.pdf');
99645
+ var uploadAppendPath = uploadPath.replace(WFBodyDocId + fileExtName, WFBodyDocId + '.pdf');
99556
99646
  if (attach || openType === 'PrintFile') uploadAppendPath = '';
99557
99647
  var filePath = downUrl + '&tSessionId=' + res.body.tSessionId;
99558
99648
  var uploadFieldName = 'file';
@@ -99700,6 +99790,8 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99700
99790
  if ($scope.wfInstance.passenger.znhgAgent) {
99701
99791
  disableHgbtn = false;
99702
99792
  }
99793
+ //window.open(filePath, '_blank')
99794
+ document.querySelector('#webnotifyspan').innerText = '';
99703
99795
  window._WpsInvoke([{
99704
99796
  OnlineEditDoc: {
99705
99797
  docId: attachsName,
@@ -99718,7 +99810,7 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99718
99810
  uploadFieldName: uploadFieldName,
99719
99811
  buttonGroups: disableBtns,
99720
99812
  // 屏蔽功能按钮
99721
- userName: $scope.curTN && $scope.curTN.userName ? $scope.curTN.userName : _this4.loginUser.personName,
99813
+ userName: $scope.curTN && $scope.curTN.userName ? $scope.curTN.userName : _this5.loginUser.personName,
99722
99814
  revisionCtrl: {
99723
99815
  bOpenRevision: bOpenRevision,
99724
99816
  // true 打开修订,false关闭修订
@@ -99729,16 +99821,18 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99729
99821
  // 套红书签位置
99730
99822
  insertFileUrl: insertFileUrl,
99731
99823
  // 套红插入的正文
99732
- evenNumberPageSize: String(_this4.isEvenNumberPage),
99824
+ evenNumberPageSize: String(_this5.isEvenNumberPage),
99733
99825
  // 最后一页是否必须偶数页,1:是,0:否
99734
99826
  disableHgbtn: disableHgbtn,
99827
+ disableSavebtn: openType === 'ReadDocFile' ? '1' : '0',
99828
+ //禁用保存按钮
99735
99829
  productCode: _productCode,
99736
99830
  ecwebTicket: window.$auth.getTicket()
99737
99831
  }
99738
99832
  }]); // onlineEditDoc方法对应于OA助手dispatcher支持的方法名
99739
99833
  }
99740
99834
  });
99741
- case 79:
99835
+ case 81:
99742
99836
  case "end":
99743
99837
  return _context.stop();
99744
99838
  }
@@ -99837,7 +99931,7 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99837
99931
  window._WpsInvoke([{
99838
99932
  ExitWPS: {}
99839
99933
  }]);
99840
- $scope.$message.success(this.$tx('ecoa.webOffice.fileSaveSuccessMsg'));
99934
+ $scope.$message.success(this.$tx('ecoa.webOffice.fileSaveSuccessMsg', '文件已保存成功!'));
99841
99935
  } else if (saveInfo.code === 'success' && saveInfo.afterPDF && saveInfo.attachsType === 'BODY') {
99842
99936
  window._WpsInvoke([{
99843
99937
  ExitWPS: {}
@@ -99903,9 +99997,9 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
99903
99997
  });
99904
99998
  ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=script&lang=js
99905
99999
  /* harmony default export */ var webOffice_WpsOfficevue_type_script_lang_js = (WpsOfficevue_type_script_lang_js);
99906
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
99907
- var WpsOfficevue_type_style_index_0_id_1cf10eb9_prod_scoped_true_lang_scss = __webpack_require__(7934);
99908
- ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=style&index=0&id=1cf10eb9&prod&scoped=true&lang=scss
100000
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
100001
+ var WpsOfficevue_type_style_index_0_id_5b530424_prod_scoped_true_lang_scss = __webpack_require__(4596);
100002
+ ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=style&index=0&id=5b530424&prod&scoped=true&lang=scss
99909
100003
 
99910
100004
  ;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue
99911
100005
 
@@ -99918,11 +100012,11 @@ var WpsOfficevue_type_style_index_0_id_1cf10eb9_prod_scoped_true_lang_scss = __w
99918
100012
 
99919
100013
  var WpsOffice_component = (0,componentNormalizer/* default */.A)(
99920
100014
  webOffice_WpsOfficevue_type_script_lang_js,
99921
- WpsOfficevue_type_template_id_1cf10eb9_scoped_true_render,
99922
- WpsOfficevue_type_template_id_1cf10eb9_scoped_true_staticRenderFns,
100015
+ WpsOfficevue_type_template_id_5b530424_scoped_true_render,
100016
+ WpsOfficevue_type_template_id_5b530424_scoped_true_staticRenderFns,
99923
100017
  false,
99924
100018
  null,
99925
- "1cf10eb9",
100019
+ "5b530424",
99926
100020
  null
99927
100021
 
99928
100022
  )