ecinc-cloud-mappaio 9.6.5 → 9.6.6

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.
@@ -7209,7 +7209,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".wfattach-container .van-cell__value[d
7209
7209
 
7210
7210
  /***/ }),
7211
7211
 
7212
- /***/ 5700:
7212
+ /***/ 2412:
7213
7213
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7214
7214
 
7215
7215
  "use strict";
@@ -7223,7 +7223,7 @@ __webpack_require__.r(__webpack_exports__);
7223
7223
 
7224
7224
  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()));
7225
7225
  // Module
7226
- ___CSS_LOADER_EXPORT___.push([module.id, ".loading[data-v-38af2d59]{margin-top:100px;text-align:center}.upload-progress[data-v-38af2d59]{background-color:#fff;padding-top:50px;padding-bottom:50px;text-align:center}.van-ellipsis[data-v-38af2d59]{text-align:center;margin:20px auto 0;max-width:90%}.file-svg-icon[data-v-38af2d59]{font-size:70px}.file-svg-icon .svg-icon[data-v-38af2d59]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.van-cell-group[data-v-38af2d59]{margin:10px 10px 0 10px;border:1px solid #fbf9f9;border-radius:5px}.more-btns[data-v-38af2d59]{width:120px;border-radius:6px;padding:16px}.more-btns .btn-item[data-v-38af2d59]{border-bottom:1px solid #fbf9f9;width:100%;height:44px;line-height:44px}.more-btns .btn-item .van-icon[data-v-38af2d59]{font-size:16px;margin-right:10px}[data-v-38af2d59] .van-action-sheet__header{text-align:left!important;padding:0 15px;font-size:14px;color:#666}.attachmentContent[data-v-38af2d59]{max-height:300px;padding:0 10px}.attachmentContent .attachmentContent_son[data-v-38af2d59]{height:50px;line-height:50px;border-bottom:1px solid #f7f8fa;padding:10px 0;display:-webkit-box;display:-ms-flexbox;display:flex}.attachmentContent .attachmentContent_son .icon_left[data-v-38af2d59],.attachmentContent .attachmentContent_son .icon_right[data-v-38af2d59]{width:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.attachmentContent .attachmentContent_son .content[data-v-38af2d59]{width:calc(100% - 80px)}.attachmentContent .attachmentContent_son .content .name[data-v-38af2d59]{height:30px;line-height:30px;font-size:16px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.attachmentContent .attachmentContent_son .content .size[data-v-38af2d59]{height:20px;line-height:20px;font-size:12px;color:#999}[data-v-38af2d59] .van-action-sheet__content{border-top:1px solid #f7f8fa}[data-v-38af2d59] .van-action-sheet__close{color:#000;font-size:16px}", ""]);
7226
+ ___CSS_LOADER_EXPORT___.push([module.id, ".loading[data-v-2e25b2ec]{margin-top:100px;text-align:center}.upload-progress[data-v-2e25b2ec]{background-color:#fff;padding-top:50px;padding-bottom:50px;text-align:center}.van-ellipsis[data-v-2e25b2ec]{text-align:center;margin:20px auto 0;max-width:90%}.file-svg-icon[data-v-2e25b2ec]{font-size:70px}.file-svg-icon .svg-icon[data-v-2e25b2ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.van-cell-group[data-v-2e25b2ec]{margin:10px 10px 0 10px;border:1px solid #fbf9f9;border-radius:5px}.more-btns[data-v-2e25b2ec]{width:120px;border-radius:6px;padding:16px}.more-btns .btn-item[data-v-2e25b2ec]{border-bottom:1px solid #fbf9f9;width:100%;height:44px;line-height:44px}.more-btns .btn-item .van-icon[data-v-2e25b2ec]{font-size:16px;margin-right:10px}[data-v-2e25b2ec] .van-action-sheet__header{text-align:left!important;padding:0 15px;font-size:14px;color:#666}.attachmentContent[data-v-2e25b2ec]{max-height:300px;padding:0 10px}.attachmentContent .attachmentContent_son[data-v-2e25b2ec]{height:50px;line-height:50px;border-bottom:1px solid #f7f8fa;padding:10px 0;display:-webkit-box;display:-ms-flexbox;display:flex}.attachmentContent .attachmentContent_son .icon_left[data-v-2e25b2ec],.attachmentContent .attachmentContent_son .icon_right[data-v-2e25b2ec]{width:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.attachmentContent .attachmentContent_son .content[data-v-2e25b2ec]{width:calc(100% - 80px)}.attachmentContent .attachmentContent_son .content .name[data-v-2e25b2ec]{height:30px;line-height:30px;font-size:16px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.attachmentContent .attachmentContent_son .content .size[data-v-2e25b2ec]{height:20px;line-height:20px;font-size:12px;color:#999}[data-v-2e25b2ec] .van-action-sheet__content{border-top:1px solid #f7f8fa}[data-v-2e25b2ec] .van-action-sheet__close{color:#000;font-size:16px}", ""]);
7227
7227
  // Exports
7228
7228
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
7229
7229
 
@@ -32402,19 +32402,19 @@ var update = add("7f7025d5", content, true, {"sourceMap":false,"shadowMode":fals
32402
32402
 
32403
32403
  /***/ }),
32404
32404
 
32405
- /***/ 2102:
32405
+ /***/ 2606:
32406
32406
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
32407
32407
 
32408
32408
  // style-loader: Adds some css to the DOM by adding a <style> tag
32409
32409
 
32410
32410
  // load the styles
32411
- var content = __webpack_require__(5700);
32411
+ var content = __webpack_require__(2412);
32412
32412
  if(content.__esModule) content = content.default;
32413
32413
  if(typeof content === 'string') content = [[module.id, content, '']];
32414
32414
  if(content.locals) module.exports = content.locals;
32415
32415
  // add the styles to the DOM
32416
32416
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
32417
- var update = add("07af8b03", content, true, {"sourceMap":false,"shadowMode":false});
32417
+ var update = add("9f1f0c72", content, true, {"sourceMap":false,"shadowMode":false});
32418
32418
 
32419
32419
  /***/ }),
32420
32420
 
@@ -56897,8 +56897,8 @@ var Attachment_component = (0,componentNormalizer/* default */.A)(
56897
56897
  )
56898
56898
 
56899
56899
  /* harmony default export */ var Attachment = (Attachment_component.exports);
56900
- ;// 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=template&id=38af2d59&scoped=true
56901
- var BodyFilevue_type_template_id_38af2d59_scoped_true_render = function render() {
56900
+ ;// 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=template&id=2e25b2ec&scoped=true
56901
+ var BodyFilevue_type_template_id_2e25b2ec_scoped_true_render = function render() {
56902
56902
  var _vm = this,
56903
56903
  _c = _vm._self._c;
56904
56904
  return _c('div', {
@@ -57262,7 +57262,7 @@ var BodyFilevue_type_template_id_38af2d59_scoped_true_render = function render()
57262
57262
  })])]) : _vm._e()]) : _vm._e()];
57263
57263
  })], 2)])], 1);
57264
57264
  };
57265
- var BodyFilevue_type_template_id_38af2d59_scoped_true_staticRenderFns = [];
57265
+ var BodyFilevue_type_template_id_2e25b2ec_scoped_true_staticRenderFns = [];
57266
57266
 
57267
57267
  ;// 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=script&lang=js
57268
57268
  function BodyFilevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return BodyFilevue_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; }, BodyFilevue_type_script_lang_js_typeof(o); }
@@ -57403,44 +57403,11 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
57403
57403
  return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
57404
57404
  while (1) switch (_context.prev = _context.next) {
57405
57405
  case 0:
57406
- debugger;
57407
- if (!(_this2.wflowNavbarList[tabActive] === 'BodyFile')) {
57408
- _context.next = 10;
57409
- break;
57410
- }
57411
- // if (this.$vnode.context.wfInstance.passenger.onlineViewer === 'fuxin') {
57412
- console.log('this.viewer', _this2);
57413
- if (!(_this2.viewer === 'fuxin' && !_this2.fuxinBaseUrl)) {
57414
- _context.next = 8;
57415
- break;
57416
- }
57417
- _context.next = 6;
57418
- return _this2.$http({
57419
- method: 'get',
57420
- contentType: 'application/x-www-form-urlencoded',
57421
- url: 'base/paramConfig/findParamValueByName?orgCode=standard&paramName=fuxin.viewer.url'
57422
- }).then(function (res) {
57423
- if (res.code === 'success') {
57424
- _this2.fuxinBaseUrl = res.body.value;
57425
- _this2.onlineViewer = 'fuxin';
57426
- } else {
57427
- _this2.onlineViewer = 'pdfjs';
57428
- }
57429
- });
57430
- case 6:
57431
- _context.next = 9;
57432
- break;
57433
- case 8:
57434
- if (_this2.viewer === 'fuxin' && _this2.fuxinBaseUrl) {
57435
- _this2.onlineViewer = _this2.viewer;
57436
- } else {
57437
- _this2.onlineViewer = _this2.viewer || 'pdfjs';
57406
+ if (_this2.wflowNavbarList[tabActive] === 'BodyFile') {
57407
+ // if (this.$vnode.context.wfInstance.passenger.onlineViewer === 'fuxin') {
57438
57408
  }
57439
- case 9:
57440
- _this2.viewBodyFile();
57441
- case 10:
57442
57409
  _this2.setFooterBtns(tabActive);
57443
- case 11:
57410
+ case 2:
57444
57411
  case "end":
57445
57412
  return _context.stop();
57446
57413
  }
@@ -57637,201 +57604,250 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
57637
57604
  },
57638
57605
  setFooterBtns: function setFooterBtns(tabActive) {
57639
57606
  var _this6 = this;
57640
- var footerBtns = [];
57641
- if (this.wflowNavbarList[tabActive] !== 'BodyFile') {
57642
- this.$vnode.context.setFooterBtns();
57643
- } else {
57644
- if (this.pdfSealChange) {
57645
- this.setBtnSealSave();
57646
- return;
57647
- }
57648
- if (this.pdfSignChange) {
57649
- this.setBtnSingSave();
57650
- return;
57651
- }
57652
- for (var i = 0; i < footerBtns.length; i++) {
57653
- var btn = footerBtns[i];
57654
- if (btn.id !== 'btn_submit') {
57655
- footerBtns.splice(i--, 1);
57656
- }
57657
- }
57658
- var isSeal = false;
57659
- if (this.$vnode.context.wfInstance.passenger.docEditMode === 'NoTitle') {
57660
- // 套红模式下需要先套红在盖章
57661
- console.log(this.attachments, 'attachment');
57662
- var bodyFileList = this.attachments.filter(function (item) {
57663
- return item.fileType === 'BODY';
57664
- });
57665
- if (bodyFileList && bodyFileList.length > 0) {
57666
- if (bodyFileList.length === 1) {
57667
- isSeal = true;
57668
- } else {
57669
- bodyFileList.forEach(function (item) {
57670
- var fileName = item.fileName;
57671
- var bodyFileName = item.bodyFileName ? item.bodyFileName : item.fileName;
57672
- if (bodyFileName.includes('RedTitle_') || bodyFileName === _this6.$vnode.context.vo.flbodyfilename || fileName === _this6.$vnode.context.vo.flbodyfilename || fileName.includes('RedTitle_')) {
57673
- isSeal = true;
57607
+ return BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee3() {
57608
+ var footerBtns, i, btn, isSeal, bodyFileList, openDocBtn, _openDocBtn, downloadBtn, historyFilesBtn, otherAppBtn, uploadBtn, _uploadBtn, editdocBtn, RedTitleBtn, _openDocBtn2, attachmentsTitleBtn, moreBtns, _i;
57609
+ return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
57610
+ while (1) switch (_context3.prev = _context3.next) {
57611
+ case 0:
57612
+ footerBtns = [];
57613
+ if (!(_this6.wflowNavbarList[tabActive] !== 'BodyFile')) {
57614
+ _context3.next = 5;
57615
+ break;
57616
+ }
57617
+ _this6.$vnode.context.setFooterBtns();
57618
+ _context3.next = 30;
57619
+ break;
57620
+ case 5:
57621
+ if (!_this6.pdfSealChange) {
57622
+ _context3.next = 8;
57623
+ break;
57624
+ }
57625
+ _this6.setBtnSealSave();
57626
+ return _context3.abrupt("return");
57627
+ case 8:
57628
+ if (!_this6.pdfSignChange) {
57629
+ _context3.next = 11;
57630
+ break;
57631
+ }
57632
+ _this6.setBtnSingSave();
57633
+ return _context3.abrupt("return");
57634
+ case 11:
57635
+ for (i = 0; i < footerBtns.length; i++) {
57636
+ btn = footerBtns[i];
57637
+ if (btn.id !== 'btn_submit') {
57638
+ footerBtns.splice(i--, 1);
57639
+ }
57640
+ }
57641
+ isSeal = false;
57642
+ if (_this6.$vnode.context.wfInstance.passenger.docEditMode === 'NoTitle') {
57643
+ // 套红模式下需要先套红在盖章
57644
+ console.log(_this6.attachments, 'attachment');
57645
+ bodyFileList = _this6.attachments.filter(function (item) {
57646
+ return item.fileType === 'BODY';
57647
+ });
57648
+ if (bodyFileList && bodyFileList.length > 0) {
57649
+ if (bodyFileList.length === 1) {
57650
+ isSeal = true;
57651
+ } else {
57652
+ bodyFileList.forEach(function (item) {
57653
+ var fileName = item.fileName;
57654
+ var bodyFileName = item.bodyFileName ? item.bodyFileName : item.fileName;
57655
+ if (bodyFileName.includes('RedTitle_') || bodyFileName === _this6.$vnode.context.vo.flbodyfilename || fileName === _this6.$vnode.context.vo.flbodyfilename || fileName.includes('RedTitle_')) {
57656
+ isSeal = true;
57657
+ }
57658
+ });
57659
+ }
57660
+ }
57661
+ } else {
57662
+ // 非套红模式下可直接盖章
57663
+ isSeal = true;
57664
+ }
57665
+ if (_this6.curTN.tnCanEdit === 1) {
57666
+ if (_this6.seal && isSeal) {
57667
+ openDocBtn = {
57668
+ id: 'btn_openDoc',
57669
+ btnName: '盖 章',
57670
+ btnIcon: 'upload',
57671
+ btnClick: _this6.openSeal,
57672
+ btnPermission: '',
57673
+ btnStyleType: 'default'
57674
+ };
57675
+ footerBtns.splice(0, 0, openDocBtn);
57676
+ }
57677
+ if (_this6.sign && isSeal) {
57678
+ _openDocBtn = {
57679
+ id: 'btn_openDoc',
57680
+ btnName: '签 名',
57681
+ btnIcon: 'upload',
57682
+ btnClick: _this6.pdfSign,
57683
+ btnPermission: '',
57684
+ btnStyleType: 'default'
57685
+ };
57686
+ footerBtns.splice(0, 0, _openDocBtn);
57687
+ }
57688
+ }
57689
+ if (_this6.flBodyfile) {
57690
+ downloadBtn = {
57691
+ id: 'btn_download',
57692
+ btnName: '下 载',
57693
+ btnIcon: 'download',
57694
+ btnClick: _this6.downLoadFile,
57695
+ btnPermission: '',
57696
+ btnStyleType: 'default'
57697
+ };
57698
+ footerBtns.splice(0, 0, downloadBtn);
57699
+ }
57700
+ if (_this6.flBodyfile && _this6.flBodyfile.fileId) {
57701
+ historyFilesBtn = {
57702
+ id: 'btn_historyFiles',
57703
+ btnName: '历史版本',
57704
+ btnIcon: 'upload',
57705
+ btnClick: _this6.btnViewHistoryFilesClick,
57706
+ btnPermission: '',
57707
+ btnStyleType: 'default'
57708
+ };
57709
+ footerBtns.splice(0, 0, historyFilesBtn);
57710
+ }
57711
+ if (window.mappType === 'ecinc') {
57712
+ otherAppBtn = {
57713
+ id: 'btn_otherApp',
57714
+ btnName: '其它应用打开',
57715
+ btnIcon: 'otherApp',
57716
+ btnClick: _this6.btnOtherAppOpenClick,
57717
+ btnPermission: '',
57718
+ btnStyleType: 'default'
57719
+ };
57720
+ footerBtns.splice(0, 0, otherAppBtn);
57721
+ }
57722
+ if (_this6.curTN.tnCanEdit === 1) {
57723
+ if (!_this6.flBodyfile || !_this6.flBodyfile.id) {
57724
+ uploadBtn = {
57725
+ id: 'btn_upload',
57726
+ btnName: '上传正文',
57727
+ btnIcon: 'upload',
57728
+ btnClick: _this6.btnUploadBodyfileClick,
57729
+ btnPermission: '',
57730
+ btnStyleType: 'default'
57731
+ };
57732
+ footerBtns.splice(0, 0, uploadBtn);
57733
+ } else {
57734
+ _uploadBtn = {
57735
+ id: 'btn_upload',
57736
+ btnName: '重新上传',
57737
+ btnIcon: 'upload',
57738
+ btnClick: _this6.btnUploadBodyfileClick,
57739
+ btnPermission: '',
57740
+ btnStyleType: 'default'
57741
+ };
57742
+ footerBtns.splice(0, 0, _uploadBtn);
57743
+ }
57744
+ editdocBtn = _this6.$vnode.context.commandBar.filter(function (btn) {
57745
+ if (btn.btnShow && btn.btnJavascript && btn.btnJavascript.indexOf('btnOpenWordClick') === 0) return true;
57746
+ });
57747
+ if (_this6.$vnode.context.wfInstance.passenger.docEditMode === 'NoTitle') {
57748
+ // 套红按钮
57749
+ RedTitleBtn = _this6.$vnode.context.commandBar.filter(function (btn) {
57750
+ if (btn.btnShow && btn.btnJavascript && btn.btnJavascript.indexOf('btnNoTitleModifyFlTypeClick') === 0) return true;
57751
+ });
57752
+ RedTitleBtn.btnClick = _this6.btnNoTitleModifyFlTypeClick;
57753
+ if (_this6.$vnode.context.wfInstance.haveDoc === 2 && editdocBtn.length > 0) {
57754
+ RedTitleBtn.btnName = '重新套红';
57755
+ footerBtns.splice(0, 0, RedTitleBtn);
57756
+ } else if (_this6.$vnode.context.wfInstance.haveDoc === 1 && editdocBtn.length > 0) {
57757
+ RedTitleBtn.btnName = '套红';
57758
+ footerBtns.splice(0, 0, RedTitleBtn);
57759
+ }
57674
57760
  }
57675
- });
57676
- }
57677
- }
57678
- } else {
57679
- // 非套红模式下可直接盖章
57680
- isSeal = true;
57681
- }
57682
- if (this.curTN.tnCanEdit === 1) {
57683
- if (this.seal && isSeal) {
57684
- var openDocBtn = {
57685
- id: 'btn_openDoc',
57686
- btnName: '盖 章',
57687
- btnIcon: 'upload',
57688
- btnClick: this.openSeal,
57689
- btnPermission: '',
57690
- btnStyleType: 'default'
57691
- };
57692
- footerBtns.splice(0, 0, openDocBtn);
57693
- }
57694
- if (this.sign && isSeal) {
57695
- var _openDocBtn = {
57696
- id: 'btn_openDoc',
57697
- btnName: '签 名',
57698
- btnIcon: 'upload',
57699
- btnClick: this.pdfSign,
57700
- btnPermission: '',
57701
- btnStyleType: 'default'
57702
- };
57703
- footerBtns.splice(0, 0, _openDocBtn);
57704
- }
57705
- }
57706
- if (this.flBodyfile) {
57707
- var downloadBtn = {
57708
- id: 'btn_download',
57709
- btnName: '下 载',
57710
- btnIcon: 'download',
57711
- btnClick: this.downLoadFile,
57712
- btnPermission: '',
57713
- btnStyleType: 'default'
57714
- };
57715
- footerBtns.splice(0, 0, downloadBtn);
57716
- }
57717
- if (this.flBodyfile && this.flBodyfile.fileId) {
57718
- var historyFilesBtn = {
57719
- id: 'btn_historyFiles',
57720
- btnName: '历史版本',
57721
- btnIcon: 'upload',
57722
- btnClick: this.btnViewHistoryFilesClick,
57723
- btnPermission: '',
57724
- btnStyleType: 'default'
57725
- };
57726
- footerBtns.splice(0, 0, historyFilesBtn);
57727
- }
57728
- if (window.mappType === 'ecinc') {
57729
- var otherAppBtn = {
57730
- id: 'btn_otherApp',
57731
- btnName: '其它应用打开',
57732
- btnIcon: 'otherApp',
57733
- btnClick: this.btnOtherAppOpenClick,
57734
- btnPermission: '',
57735
- btnStyleType: 'default'
57736
- };
57737
- footerBtns.splice(0, 0, otherAppBtn);
57738
- }
57739
- if (this.curTN.tnCanEdit === 1) {
57740
- if (!this.flBodyfile || !this.flBodyfile.id) {
57741
- var uploadBtn = {
57742
- id: 'btn_upload',
57743
- btnName: '上传正文',
57744
- btnIcon: 'upload',
57745
- btnClick: this.btnUploadBodyfileClick,
57746
- btnPermission: '',
57747
- btnStyleType: 'default'
57748
- };
57749
- footerBtns.splice(0, 0, uploadBtn);
57750
- } else {
57751
- var _uploadBtn = {
57752
- id: 'btn_upload',
57753
- btnName: '重新上传',
57754
- btnIcon: 'upload',
57755
- btnClick: this.btnUploadBodyfileClick,
57756
- btnPermission: '',
57757
- btnStyleType: 'default'
57758
- };
57759
- footerBtns.splice(0, 0, _uploadBtn);
57760
- }
57761
- var editdocBtn = this.$vnode.context.commandBar.filter(function (btn) {
57762
- if (btn.btnShow && btn.btnJavascript && btn.btnJavascript.indexOf('btnOpenWordClick') === 0) return true;
57763
- });
57764
- if (this.$vnode.context.wfInstance.passenger.docEditMode === 'NoTitle') {
57765
- // 套红按钮
57766
- var RedTitleBtn = this.$vnode.context.commandBar.filter(function (btn) {
57767
- if (btn.btnShow && btn.btnJavascript && btn.btnJavascript.indexOf('btnNoTitleModifyFlTypeClick') === 0) return true;
57768
- });
57769
- RedTitleBtn.btnClick = this.btnNoTitleModifyFlTypeClick;
57770
- if (this.$vnode.context.wfInstance.haveDoc === 2 && editdocBtn.length > 0) {
57771
- RedTitleBtn.btnName = '重新套红';
57772
- footerBtns.splice(0, 0, RedTitleBtn);
57773
- } else if (this.$vnode.context.wfInstance.haveDoc === 1 && editdocBtn.length > 0) {
57774
- RedTitleBtn.btnName = '套红';
57775
- footerBtns.splice(0, 0, RedTitleBtn);
57776
- }
57777
- }
57778
-
57779
- // else { // RedTitle 模式 修改红头按钮
57780
- // const RedTitleBtn = this.$vnode.context.commandBar.filter(btn => {
57781
- // if (btn.btnShow && btn.btnJavascript && btn.btnJavascript.indexOf('btnModifyFlTypeClick') === 0) return true
57782
- // })
57783
- // if (this.$vnode.context.wfInstance.haveDoc === 2) {
57784
- // footerBtns.splice(0, 0, RedTitleBtn)
57785
- // }
57786
- // }
57787
57761
 
57788
- if (editdocBtn.length > 0 && (this.officeType === 'wpsh5' || this.officeType === 'yzh5' || this.officeType === 'ech5')) {
57789
- var _openDocBtn2 = {
57790
- id: 'btn_openDoc',
57791
- btnName: '编辑正文',
57792
- btnIcon: 'upload',
57793
- btnClick: this.btnOpenWordClick,
57794
- btnPermission: '',
57795
- btnStyleType: 'default'
57796
- };
57797
- footerBtns.splice(0, 0, _openDocBtn2);
57798
- }
57799
-
57800
- // if (this.attachments.some(item => item.fileType !== 'BODY')) {
57801
- this.attachmentsNum = this.attachments.filter(function (val) {
57802
- return val.fileType !== 'BODY';
57803
- }).length;
57804
- var attachmentsTitleBtn = {
57805
- id: 'btn_attachment',
57806
- btnName: "\u9644 \u4EF6(".concat(this.attachmentsNum, ")"),
57807
- btnIcon: 'attachment',
57808
- btnClick: this.attachmentFile,
57809
- btnPermission: '',
57810
- btnStyleType: 'default'
57811
- };
57812
- footerBtns.splice(0, 0, attachmentsTitleBtn);
57813
- // }
57814
- }
57815
- if (footerBtns.length > 3) {
57816
- var moreBtns = {
57817
- id: 'btn_upload',
57818
- btnName: '更 多',
57819
- btnIcon: 'upload',
57820
- btnPermission: '',
57821
- btnStyleType: 'default',
57822
- children: []
57823
- };
57824
- // 只显示第1个、最后一个,中间的显示在“更多”子按钮组中
57825
- for (var _i = 1; _i < footerBtns.length - 1; _i++) {
57826
- footerBtns[_i].text = footerBtns[_i].btnName;
57827
- moreBtns.children.push(footerBtns[_i]);
57828
- footerBtns.splice(_i--, 1);
57762
+ // else { // RedTitle 模式 修改红头按钮
57763
+ // const RedTitleBtn = this.$vnode.context.commandBar.filter(btn => {
57764
+ // if (btn.btnShow && btn.btnJavascript && btn.btnJavascript.indexOf('btnModifyFlTypeClick') === 0) return true
57765
+ // })
57766
+ // if (this.$vnode.context.wfInstance.haveDoc === 2) {
57767
+ // footerBtns.splice(0, 0, RedTitleBtn)
57768
+ // }
57769
+ // }
57770
+
57771
+ if (editdocBtn.length > 0 && (_this6.officeType === 'wpsh5' || _this6.officeType === 'yzh5' || _this6.officeType === 'ech5')) {
57772
+ _openDocBtn2 = {
57773
+ id: 'btn_openDoc',
57774
+ btnName: '编辑正文',
57775
+ btnIcon: 'upload',
57776
+ btnClick: _this6.btnOpenWordClick,
57777
+ btnPermission: '',
57778
+ btnStyleType: 'default'
57779
+ };
57780
+ footerBtns.splice(0, 0, _openDocBtn2);
57781
+ }
57782
+
57783
+ // if (this.attachments.some(item => item.fileType !== 'BODY')) {
57784
+ _this6.attachmentsNum = _this6.attachments.filter(function (val) {
57785
+ return val.fileType !== 'BODY';
57786
+ }).length;
57787
+ attachmentsTitleBtn = {
57788
+ id: 'btn_attachment',
57789
+ btnName: "\u9644 \u4EF6(".concat(_this6.attachmentsNum, ")"),
57790
+ btnIcon: 'attachment',
57791
+ btnClick: _this6.attachmentFile,
57792
+ btnPermission: '',
57793
+ btnStyleType: 'default'
57794
+ };
57795
+ footerBtns.splice(0, 0, attachmentsTitleBtn);
57796
+ // }
57797
+ }
57798
+ if (footerBtns.length > 3) {
57799
+ moreBtns = {
57800
+ id: 'btn_upload',
57801
+ btnName: '更 多',
57802
+ btnIcon: 'upload',
57803
+ btnPermission: '',
57804
+ btnStyleType: 'default',
57805
+ children: []
57806
+ }; // 只显示第1个、最后一个,中间的显示在“更多”子按钮组中
57807
+ for (_i = 1; _i < footerBtns.length - 1; _i++) {
57808
+ footerBtns[_i].text = footerBtns[_i].btnName;
57809
+ moreBtns.children.push(footerBtns[_i]);
57810
+ footerBtns.splice(_i--, 1);
57811
+ }
57812
+ footerBtns.splice(1, 0, moreBtns);
57813
+ }
57814
+ console.log('this.viewer', _this6);
57815
+ if (!(_this6.viewer === 'fuxin' && !_this6.fuxinBaseUrl)) {
57816
+ _context3.next = 26;
57817
+ break;
57818
+ }
57819
+ _context3.next = 24;
57820
+ return _this6.$http({
57821
+ method: 'get',
57822
+ contentType: 'application/x-www-form-urlencoded',
57823
+ url: 'base/paramConfig/findParamValueByName?orgCode=standard&paramName=fuxin.viewer.url'
57824
+ }).then(function (res) {
57825
+ if (res.code === 'success') {
57826
+ _this6.fuxinBaseUrl = res.body.value;
57827
+ _this6.onlineViewer = 'fuxin';
57828
+ } else {
57829
+ _this6.onlineViewer = 'pdfjs';
57830
+ }
57831
+ });
57832
+ case 24:
57833
+ _context3.next = 27;
57834
+ break;
57835
+ case 26:
57836
+ if (_this6.viewer === 'fuxin' && _this6.fuxinBaseUrl) {
57837
+ _this6.onlineViewer = _this6.viewer;
57838
+ } else {
57839
+ _this6.onlineViewer = _this6.viewer || 'pdfjs';
57840
+ }
57841
+ case 27:
57842
+ _this6.viewBodyFile();
57843
+ console.log(footerBtns, 'footerBtns --- >363');
57844
+ _this6.$vnode.context.footerBtns = footerBtns;
57845
+ case 30:
57846
+ case "end":
57847
+ return _context3.stop();
57829
57848
  }
57830
- footerBtns.splice(1, 0, moreBtns);
57831
- }
57832
- console.log(footerBtns, 'footerBtns --- >363');
57833
- this.$vnode.context.footerBtns = footerBtns;
57834
- }
57849
+ }, _callee3);
57850
+ }))();
57835
57851
  },
57836
57852
  // 选择印章
57837
57853
  openSeal: function openSeal() {
@@ -57852,20 +57868,20 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
57852
57868
  // 保存印章
57853
57869
  pdfSealSave: function pdfSealSave() {
57854
57870
  var _this7 = this;
57855
- return BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee3() {
57856
- return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
57857
- while (1) switch (_context3.prev = _context3.next) {
57871
+ return BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
57872
+ return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
57873
+ while (1) switch (_context4.prev = _context4.next) {
57858
57874
  case 0:
57859
- _context3.next = 2;
57875
+ _context4.next = 2;
57860
57876
  return _this7.$refs.PdfTools.pdfStamp();
57861
57877
  case 2:
57862
57878
  _this7.pdfSealChange = false;
57863
57879
  _this7.setFooterBtns(0);
57864
57880
  case 4:
57865
57881
  case "end":
57866
- return _context3.stop();
57882
+ return _context4.stop();
57867
57883
  }
57868
- }, _callee3);
57884
+ }, _callee4);
57869
57885
  }))();
57870
57886
  },
57871
57887
  // 添加签名
@@ -57887,20 +57903,20 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
57887
57903
  // 保存签名
57888
57904
  pdfSignSave: function pdfSignSave() {
57889
57905
  var _this8 = this;
57890
- return BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
57891
- return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
57892
- while (1) switch (_context4.prev = _context4.next) {
57906
+ return BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
57907
+ return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
57908
+ while (1) switch (_context5.prev = _context5.next) {
57893
57909
  case 0:
57894
- _context4.next = 2;
57910
+ _context5.next = 2;
57895
57911
  return _this8.$refs.PdfTools.pdfSign();
57896
57912
  case 2:
57897
57913
  _this8.pdfSignChange = false;
57898
57914
  _this8.setFooterBtns(0);
57899
57915
  case 4:
57900
57916
  case "end":
57901
- return _context4.stop();
57917
+ return _context5.stop();
57902
57918
  }
57903
- }, _callee4);
57919
+ }, _callee5);
57904
57920
  }))();
57905
57921
  },
57906
57922
  attachmentDownloadClick: function attachmentDownloadClick(attachment) {
@@ -57925,16 +57941,16 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
57925
57941
  if (_this9.$vnode.context.wfInstance.haveDoc) {
57926
57942
  _this9.$dialog.confirm({
57927
57943
  message: _this9.$tx('ecmapp.wflowform.coverMainText', '重新上传会覆盖现有正文,是否确认?')
57928
- }).then( /*#__PURE__*/BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
57929
- return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
57930
- while (1) switch (_context5.prev = _context5.next) {
57944
+ }).then( /*#__PURE__*/BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee6() {
57945
+ return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee6$(_context6) {
57946
+ while (1) switch (_context6.prev = _context6.next) {
57931
57947
  case 0:
57932
57948
  resolve(true);
57933
57949
  case 1:
57934
57950
  case "end":
57935
- return _context5.stop();
57951
+ return _context6.stop();
57936
57952
  }
57937
- }, _callee5);
57953
+ }, _callee6);
57938
57954
  }))).catch(function () {
57939
57955
  reject('cancel btnUploadBodyfileClick.');
57940
57956
  });
@@ -58159,10 +58175,10 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
58159
58175
  var _this = this;
58160
58176
  this.$dialog.confirm({
58161
58177
  message: confirmMsg
58162
- }).then( /*#__PURE__*/BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee6() {
58178
+ }).then( /*#__PURE__*/BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee7() {
58163
58179
  var deleteIds, originalName, i;
58164
- return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee6$(_context6) {
58165
- while (1) switch (_context6.prev = _context6.next) {
58180
+ return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee7$(_context7) {
58181
+ while (1) switch (_context7.prev = _context7.next) {
58166
58182
  case 0:
58167
58183
  deleteIds = flBodyfile.id;
58168
58184
  originalName = flBodyfile.originalName.substring(0, flBodyfile.originalName.indexOf('.'));
@@ -58218,18 +58234,18 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
58218
58234
  });
58219
58235
  case 4:
58220
58236
  case "end":
58221
- return _context6.stop();
58237
+ return _context7.stop();
58222
58238
  }
58223
- }, _callee6);
58239
+ }, _callee7);
58224
58240
  })));
58225
58241
  }
58226
58242
  }
58227
58243
  });
58228
58244
  ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/BodyFile.vue?vue&type=script&lang=js
58229
58245
  /* harmony default export */ var src_BodyFilevue_type_script_lang_js = (BodyFilevue_type_script_lang_js);
58230
- // 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=38af2d59&prod&scoped=true&lang=scss
58231
- var BodyFilevue_type_style_index_0_id_38af2d59_prod_scoped_true_lang_scss = __webpack_require__(2102);
58232
- ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=38af2d59&prod&scoped=true&lang=scss
58246
+ // 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=2e25b2ec&prod&scoped=true&lang=scss
58247
+ var BodyFilevue_type_style_index_0_id_2e25b2ec_prod_scoped_true_lang_scss = __webpack_require__(2606);
58248
+ ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=2e25b2ec&prod&scoped=true&lang=scss
58233
58249
 
58234
58250
  ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/BodyFile.vue
58235
58251
 
@@ -58242,11 +58258,11 @@ var BodyFilevue_type_style_index_0_id_38af2d59_prod_scoped_true_lang_scss = __we
58242
58258
 
58243
58259
  var BodyFile_component = (0,componentNormalizer/* default */.A)(
58244
58260
  src_BodyFilevue_type_script_lang_js,
58245
- BodyFilevue_type_template_id_38af2d59_scoped_true_render,
58246
- BodyFilevue_type_template_id_38af2d59_scoped_true_staticRenderFns,
58261
+ BodyFilevue_type_template_id_2e25b2ec_scoped_true_render,
58262
+ BodyFilevue_type_template_id_2e25b2ec_scoped_true_staticRenderFns,
58247
58263
  false,
58248
58264
  null,
58249
- "38af2d59",
58265
+ "2e25b2ec",
58250
58266
  null
58251
58267
 
58252
58268
  )