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.
- package/lib/ecmappaio.common.js +280 -264
- package/lib/ecmappaio.umd.js +280 -264
- package/lib/ecmappaio.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/ecmappaio.umd.js
CHANGED
|
@@ -7219,7 +7219,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".wfattach-container .van-cell__value[d
|
|
|
7219
7219
|
|
|
7220
7220
|
/***/ }),
|
|
7221
7221
|
|
|
7222
|
-
/***/
|
|
7222
|
+
/***/ 3500:
|
|
7223
7223
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7224
7224
|
|
|
7225
7225
|
"use strict";
|
|
@@ -7233,7 +7233,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7233
7233
|
|
|
7234
7234
|
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()));
|
|
7235
7235
|
// Module
|
|
7236
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".loading[data-v-
|
|
7236
|
+
___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}", ""]);
|
|
7237
7237
|
// Exports
|
|
7238
7238
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
7239
7239
|
|
|
@@ -32412,19 +32412,19 @@ var update = add("3ffd4899", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
32412
32412
|
|
|
32413
32413
|
/***/ }),
|
|
32414
32414
|
|
|
32415
|
-
/***/
|
|
32415
|
+
/***/ 600:
|
|
32416
32416
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
32417
32417
|
|
|
32418
32418
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
32419
32419
|
|
|
32420
32420
|
// load the styles
|
|
32421
|
-
var content = __webpack_require__(
|
|
32421
|
+
var content = __webpack_require__(3500);
|
|
32422
32422
|
if(content.__esModule) content = content.default;
|
|
32423
32423
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
32424
32424
|
if(content.locals) module.exports = content.locals;
|
|
32425
32425
|
// add the styles to the DOM
|
|
32426
32426
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
32427
|
-
var update = add("
|
|
32427
|
+
var update = add("2534c2ea", content, true, {"sourceMap":false,"shadowMode":false});
|
|
32428
32428
|
|
|
32429
32429
|
/***/ }),
|
|
32430
32430
|
|
|
@@ -56907,8 +56907,8 @@ var Attachment_component = (0,componentNormalizer/* default */.A)(
|
|
|
56907
56907
|
)
|
|
56908
56908
|
|
|
56909
56909
|
/* harmony default export */ var Attachment = (Attachment_component.exports);
|
|
56910
|
-
;// 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=template&id=
|
|
56911
|
-
var
|
|
56910
|
+
;// 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=template&id=2e25b2ec&scoped=true
|
|
56911
|
+
var BodyFilevue_type_template_id_2e25b2ec_scoped_true_render = function render() {
|
|
56912
56912
|
var _vm = this,
|
|
56913
56913
|
_c = _vm._self._c;
|
|
56914
56914
|
return _c('div', {
|
|
@@ -57272,7 +57272,7 @@ var BodyFilevue_type_template_id_38af2d59_scoped_true_render = function render()
|
|
|
57272
57272
|
})])]) : _vm._e()]) : _vm._e()];
|
|
57273
57273
|
})], 2)])], 1);
|
|
57274
57274
|
};
|
|
57275
|
-
var
|
|
57275
|
+
var BodyFilevue_type_template_id_2e25b2ec_scoped_true_staticRenderFns = [];
|
|
57276
57276
|
|
|
57277
57277
|
;// 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=script&lang=js
|
|
57278
57278
|
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); }
|
|
@@ -57413,44 +57413,11 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
57413
57413
|
return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
57414
57414
|
while (1) switch (_context.prev = _context.next) {
|
|
57415
57415
|
case 0:
|
|
57416
|
-
|
|
57417
|
-
|
|
57418
|
-
_context.next = 10;
|
|
57419
|
-
break;
|
|
57420
|
-
}
|
|
57421
|
-
// if (this.$vnode.context.wfInstance.passenger.onlineViewer === 'fuxin') {
|
|
57422
|
-
console.log('this.viewer', _this2);
|
|
57423
|
-
if (!(_this2.viewer === 'fuxin' && !_this2.fuxinBaseUrl)) {
|
|
57424
|
-
_context.next = 8;
|
|
57425
|
-
break;
|
|
57426
|
-
}
|
|
57427
|
-
_context.next = 6;
|
|
57428
|
-
return _this2.$http({
|
|
57429
|
-
method: 'get',
|
|
57430
|
-
contentType: 'application/x-www-form-urlencoded',
|
|
57431
|
-
url: 'base/paramConfig/findParamValueByName?orgCode=standard¶mName=fuxin.viewer.url'
|
|
57432
|
-
}).then(function (res) {
|
|
57433
|
-
if (res.code === 'success') {
|
|
57434
|
-
_this2.fuxinBaseUrl = res.body.value;
|
|
57435
|
-
_this2.onlineViewer = 'fuxin';
|
|
57436
|
-
} else {
|
|
57437
|
-
_this2.onlineViewer = 'pdfjs';
|
|
57438
|
-
}
|
|
57439
|
-
});
|
|
57440
|
-
case 6:
|
|
57441
|
-
_context.next = 9;
|
|
57442
|
-
break;
|
|
57443
|
-
case 8:
|
|
57444
|
-
if (_this2.viewer === 'fuxin' && _this2.fuxinBaseUrl) {
|
|
57445
|
-
_this2.onlineViewer = _this2.viewer;
|
|
57446
|
-
} else {
|
|
57447
|
-
_this2.onlineViewer = _this2.viewer || 'pdfjs';
|
|
57416
|
+
if (_this2.wflowNavbarList[tabActive] === 'BodyFile') {
|
|
57417
|
+
// if (this.$vnode.context.wfInstance.passenger.onlineViewer === 'fuxin') {
|
|
57448
57418
|
}
|
|
57449
|
-
case 9:
|
|
57450
|
-
_this2.viewBodyFile();
|
|
57451
|
-
case 10:
|
|
57452
57419
|
_this2.setFooterBtns(tabActive);
|
|
57453
|
-
case
|
|
57420
|
+
case 2:
|
|
57454
57421
|
case "end":
|
|
57455
57422
|
return _context.stop();
|
|
57456
57423
|
}
|
|
@@ -57647,201 +57614,250 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
57647
57614
|
},
|
|
57648
57615
|
setFooterBtns: function setFooterBtns(tabActive) {
|
|
57649
57616
|
var _this6 = this;
|
|
57650
|
-
|
|
57651
|
-
|
|
57652
|
-
|
|
57653
|
-
|
|
57654
|
-
|
|
57655
|
-
|
|
57656
|
-
|
|
57657
|
-
|
|
57658
|
-
|
|
57659
|
-
|
|
57660
|
-
|
|
57661
|
-
|
|
57662
|
-
|
|
57663
|
-
|
|
57664
|
-
|
|
57665
|
-
|
|
57666
|
-
|
|
57667
|
-
|
|
57668
|
-
|
|
57669
|
-
|
|
57670
|
-
|
|
57671
|
-
|
|
57672
|
-
|
|
57673
|
-
|
|
57674
|
-
|
|
57675
|
-
|
|
57676
|
-
|
|
57677
|
-
|
|
57678
|
-
|
|
57679
|
-
|
|
57680
|
-
|
|
57681
|
-
|
|
57682
|
-
|
|
57683
|
-
|
|
57617
|
+
return BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee3() {
|
|
57618
|
+
var footerBtns, i, btn, isSeal, bodyFileList, openDocBtn, _openDocBtn, downloadBtn, historyFilesBtn, otherAppBtn, uploadBtn, _uploadBtn, editdocBtn, RedTitleBtn, _openDocBtn2, attachmentsTitleBtn, moreBtns, _i;
|
|
57619
|
+
return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
57620
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
57621
|
+
case 0:
|
|
57622
|
+
footerBtns = [];
|
|
57623
|
+
if (!(_this6.wflowNavbarList[tabActive] !== 'BodyFile')) {
|
|
57624
|
+
_context3.next = 5;
|
|
57625
|
+
break;
|
|
57626
|
+
}
|
|
57627
|
+
_this6.$vnode.context.setFooterBtns();
|
|
57628
|
+
_context3.next = 30;
|
|
57629
|
+
break;
|
|
57630
|
+
case 5:
|
|
57631
|
+
if (!_this6.pdfSealChange) {
|
|
57632
|
+
_context3.next = 8;
|
|
57633
|
+
break;
|
|
57634
|
+
}
|
|
57635
|
+
_this6.setBtnSealSave();
|
|
57636
|
+
return _context3.abrupt("return");
|
|
57637
|
+
case 8:
|
|
57638
|
+
if (!_this6.pdfSignChange) {
|
|
57639
|
+
_context3.next = 11;
|
|
57640
|
+
break;
|
|
57641
|
+
}
|
|
57642
|
+
_this6.setBtnSingSave();
|
|
57643
|
+
return _context3.abrupt("return");
|
|
57644
|
+
case 11:
|
|
57645
|
+
for (i = 0; i < footerBtns.length; i++) {
|
|
57646
|
+
btn = footerBtns[i];
|
|
57647
|
+
if (btn.id !== 'btn_submit') {
|
|
57648
|
+
footerBtns.splice(i--, 1);
|
|
57649
|
+
}
|
|
57650
|
+
}
|
|
57651
|
+
isSeal = false;
|
|
57652
|
+
if (_this6.$vnode.context.wfInstance.passenger.docEditMode === 'NoTitle') {
|
|
57653
|
+
// 套红模式下需要先套红在盖章
|
|
57654
|
+
console.log(_this6.attachments, 'attachment');
|
|
57655
|
+
bodyFileList = _this6.attachments.filter(function (item) {
|
|
57656
|
+
return item.fileType === 'BODY';
|
|
57657
|
+
});
|
|
57658
|
+
if (bodyFileList && bodyFileList.length > 0) {
|
|
57659
|
+
if (bodyFileList.length === 1) {
|
|
57660
|
+
isSeal = true;
|
|
57661
|
+
} else {
|
|
57662
|
+
bodyFileList.forEach(function (item) {
|
|
57663
|
+
var fileName = item.fileName;
|
|
57664
|
+
var bodyFileName = item.bodyFileName ? item.bodyFileName : item.fileName;
|
|
57665
|
+
if (bodyFileName.includes('RedTitle_') || bodyFileName === _this6.$vnode.context.vo.flbodyfilename || fileName === _this6.$vnode.context.vo.flbodyfilename || fileName.includes('RedTitle_')) {
|
|
57666
|
+
isSeal = true;
|
|
57667
|
+
}
|
|
57668
|
+
});
|
|
57669
|
+
}
|
|
57670
|
+
}
|
|
57671
|
+
} else {
|
|
57672
|
+
// 非套红模式下可直接盖章
|
|
57673
|
+
isSeal = true;
|
|
57674
|
+
}
|
|
57675
|
+
if (_this6.curTN.tnCanEdit === 1) {
|
|
57676
|
+
if (_this6.seal && isSeal) {
|
|
57677
|
+
openDocBtn = {
|
|
57678
|
+
id: 'btn_openDoc',
|
|
57679
|
+
btnName: '盖 章',
|
|
57680
|
+
btnIcon: 'upload',
|
|
57681
|
+
btnClick: _this6.openSeal,
|
|
57682
|
+
btnPermission: '',
|
|
57683
|
+
btnStyleType: 'default'
|
|
57684
|
+
};
|
|
57685
|
+
footerBtns.splice(0, 0, openDocBtn);
|
|
57686
|
+
}
|
|
57687
|
+
if (_this6.sign && isSeal) {
|
|
57688
|
+
_openDocBtn = {
|
|
57689
|
+
id: 'btn_openDoc',
|
|
57690
|
+
btnName: '签 名',
|
|
57691
|
+
btnIcon: 'upload',
|
|
57692
|
+
btnClick: _this6.pdfSign,
|
|
57693
|
+
btnPermission: '',
|
|
57694
|
+
btnStyleType: 'default'
|
|
57695
|
+
};
|
|
57696
|
+
footerBtns.splice(0, 0, _openDocBtn);
|
|
57697
|
+
}
|
|
57698
|
+
}
|
|
57699
|
+
if (_this6.flBodyfile) {
|
|
57700
|
+
downloadBtn = {
|
|
57701
|
+
id: 'btn_download',
|
|
57702
|
+
btnName: '下 载',
|
|
57703
|
+
btnIcon: 'download',
|
|
57704
|
+
btnClick: _this6.downLoadFile,
|
|
57705
|
+
btnPermission: '',
|
|
57706
|
+
btnStyleType: 'default'
|
|
57707
|
+
};
|
|
57708
|
+
footerBtns.splice(0, 0, downloadBtn);
|
|
57709
|
+
}
|
|
57710
|
+
if (_this6.flBodyfile && _this6.flBodyfile.fileId) {
|
|
57711
|
+
historyFilesBtn = {
|
|
57712
|
+
id: 'btn_historyFiles',
|
|
57713
|
+
btnName: '历史版本',
|
|
57714
|
+
btnIcon: 'upload',
|
|
57715
|
+
btnClick: _this6.btnViewHistoryFilesClick,
|
|
57716
|
+
btnPermission: '',
|
|
57717
|
+
btnStyleType: 'default'
|
|
57718
|
+
};
|
|
57719
|
+
footerBtns.splice(0, 0, historyFilesBtn);
|
|
57720
|
+
}
|
|
57721
|
+
if (window.mappType === 'ecinc') {
|
|
57722
|
+
otherAppBtn = {
|
|
57723
|
+
id: 'btn_otherApp',
|
|
57724
|
+
btnName: '其它应用打开',
|
|
57725
|
+
btnIcon: 'otherApp',
|
|
57726
|
+
btnClick: _this6.btnOtherAppOpenClick,
|
|
57727
|
+
btnPermission: '',
|
|
57728
|
+
btnStyleType: 'default'
|
|
57729
|
+
};
|
|
57730
|
+
footerBtns.splice(0, 0, otherAppBtn);
|
|
57731
|
+
}
|
|
57732
|
+
if (_this6.curTN.tnCanEdit === 1) {
|
|
57733
|
+
if (!_this6.flBodyfile || !_this6.flBodyfile.id) {
|
|
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
|
+
} else {
|
|
57744
|
+
_uploadBtn = {
|
|
57745
|
+
id: 'btn_upload',
|
|
57746
|
+
btnName: '重新上传',
|
|
57747
|
+
btnIcon: 'upload',
|
|
57748
|
+
btnClick: _this6.btnUploadBodyfileClick,
|
|
57749
|
+
btnPermission: '',
|
|
57750
|
+
btnStyleType: 'default'
|
|
57751
|
+
};
|
|
57752
|
+
footerBtns.splice(0, 0, _uploadBtn);
|
|
57753
|
+
}
|
|
57754
|
+
editdocBtn = _this6.$vnode.context.commandBar.filter(function (btn) {
|
|
57755
|
+
if (btn.btnShow && btn.btnJavascript && btn.btnJavascript.indexOf('btnOpenWordClick') === 0) return true;
|
|
57756
|
+
});
|
|
57757
|
+
if (_this6.$vnode.context.wfInstance.passenger.docEditMode === 'NoTitle') {
|
|
57758
|
+
// 套红按钮
|
|
57759
|
+
RedTitleBtn = _this6.$vnode.context.commandBar.filter(function (btn) {
|
|
57760
|
+
if (btn.btnShow && btn.btnJavascript && btn.btnJavascript.indexOf('btnNoTitleModifyFlTypeClick') === 0) return true;
|
|
57761
|
+
});
|
|
57762
|
+
RedTitleBtn.btnClick = _this6.btnNoTitleModifyFlTypeClick;
|
|
57763
|
+
if (_this6.$vnode.context.wfInstance.haveDoc === 2 && editdocBtn.length > 0) {
|
|
57764
|
+
RedTitleBtn.btnName = '重新套红';
|
|
57765
|
+
footerBtns.splice(0, 0, RedTitleBtn);
|
|
57766
|
+
} else if (_this6.$vnode.context.wfInstance.haveDoc === 1 && editdocBtn.length > 0) {
|
|
57767
|
+
RedTitleBtn.btnName = '套红';
|
|
57768
|
+
footerBtns.splice(0, 0, RedTitleBtn);
|
|
57769
|
+
}
|
|
57684
57770
|
}
|
|
57685
|
-
});
|
|
57686
|
-
}
|
|
57687
|
-
}
|
|
57688
|
-
} else {
|
|
57689
|
-
// 非套红模式下可直接盖章
|
|
57690
|
-
isSeal = true;
|
|
57691
|
-
}
|
|
57692
|
-
if (this.curTN.tnCanEdit === 1) {
|
|
57693
|
-
if (this.seal && isSeal) {
|
|
57694
|
-
var openDocBtn = {
|
|
57695
|
-
id: 'btn_openDoc',
|
|
57696
|
-
btnName: '盖 章',
|
|
57697
|
-
btnIcon: 'upload',
|
|
57698
|
-
btnClick: this.openSeal,
|
|
57699
|
-
btnPermission: '',
|
|
57700
|
-
btnStyleType: 'default'
|
|
57701
|
-
};
|
|
57702
|
-
footerBtns.splice(0, 0, openDocBtn);
|
|
57703
|
-
}
|
|
57704
|
-
if (this.sign && isSeal) {
|
|
57705
|
-
var _openDocBtn = {
|
|
57706
|
-
id: 'btn_openDoc',
|
|
57707
|
-
btnName: '签 名',
|
|
57708
|
-
btnIcon: 'upload',
|
|
57709
|
-
btnClick: this.pdfSign,
|
|
57710
|
-
btnPermission: '',
|
|
57711
|
-
btnStyleType: 'default'
|
|
57712
|
-
};
|
|
57713
|
-
footerBtns.splice(0, 0, _openDocBtn);
|
|
57714
|
-
}
|
|
57715
|
-
}
|
|
57716
|
-
if (this.flBodyfile) {
|
|
57717
|
-
var downloadBtn = {
|
|
57718
|
-
id: 'btn_download',
|
|
57719
|
-
btnName: '下 载',
|
|
57720
|
-
btnIcon: 'download',
|
|
57721
|
-
btnClick: this.downLoadFile,
|
|
57722
|
-
btnPermission: '',
|
|
57723
|
-
btnStyleType: 'default'
|
|
57724
|
-
};
|
|
57725
|
-
footerBtns.splice(0, 0, downloadBtn);
|
|
57726
|
-
}
|
|
57727
|
-
if (this.flBodyfile && this.flBodyfile.fileId) {
|
|
57728
|
-
var historyFilesBtn = {
|
|
57729
|
-
id: 'btn_historyFiles',
|
|
57730
|
-
btnName: '历史版本',
|
|
57731
|
-
btnIcon: 'upload',
|
|
57732
|
-
btnClick: this.btnViewHistoryFilesClick,
|
|
57733
|
-
btnPermission: '',
|
|
57734
|
-
btnStyleType: 'default'
|
|
57735
|
-
};
|
|
57736
|
-
footerBtns.splice(0, 0, historyFilesBtn);
|
|
57737
|
-
}
|
|
57738
|
-
if (window.mappType === 'ecinc') {
|
|
57739
|
-
var otherAppBtn = {
|
|
57740
|
-
id: 'btn_otherApp',
|
|
57741
|
-
btnName: '其它应用打开',
|
|
57742
|
-
btnIcon: 'otherApp',
|
|
57743
|
-
btnClick: this.btnOtherAppOpenClick,
|
|
57744
|
-
btnPermission: '',
|
|
57745
|
-
btnStyleType: 'default'
|
|
57746
|
-
};
|
|
57747
|
-
footerBtns.splice(0, 0, otherAppBtn);
|
|
57748
|
-
}
|
|
57749
|
-
if (this.curTN.tnCanEdit === 1) {
|
|
57750
|
-
if (!this.flBodyfile || !this.flBodyfile.id) {
|
|
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
|
-
} else {
|
|
57761
|
-
var _uploadBtn = {
|
|
57762
|
-
id: 'btn_upload',
|
|
57763
|
-
btnName: '重新上传',
|
|
57764
|
-
btnIcon: 'upload',
|
|
57765
|
-
btnClick: this.btnUploadBodyfileClick,
|
|
57766
|
-
btnPermission: '',
|
|
57767
|
-
btnStyleType: 'default'
|
|
57768
|
-
};
|
|
57769
|
-
footerBtns.splice(0, 0, _uploadBtn);
|
|
57770
|
-
}
|
|
57771
|
-
var editdocBtn = this.$vnode.context.commandBar.filter(function (btn) {
|
|
57772
|
-
if (btn.btnShow && btn.btnJavascript && btn.btnJavascript.indexOf('btnOpenWordClick') === 0) return true;
|
|
57773
|
-
});
|
|
57774
|
-
if (this.$vnode.context.wfInstance.passenger.docEditMode === 'NoTitle') {
|
|
57775
|
-
// 套红按钮
|
|
57776
|
-
var RedTitleBtn = this.$vnode.context.commandBar.filter(function (btn) {
|
|
57777
|
-
if (btn.btnShow && btn.btnJavascript && btn.btnJavascript.indexOf('btnNoTitleModifyFlTypeClick') === 0) return true;
|
|
57778
|
-
});
|
|
57779
|
-
RedTitleBtn.btnClick = this.btnNoTitleModifyFlTypeClick;
|
|
57780
|
-
if (this.$vnode.context.wfInstance.haveDoc === 2 && editdocBtn.length > 0) {
|
|
57781
|
-
RedTitleBtn.btnName = '重新套红';
|
|
57782
|
-
footerBtns.splice(0, 0, RedTitleBtn);
|
|
57783
|
-
} else if (this.$vnode.context.wfInstance.haveDoc === 1 && editdocBtn.length > 0) {
|
|
57784
|
-
RedTitleBtn.btnName = '套红';
|
|
57785
|
-
footerBtns.splice(0, 0, RedTitleBtn);
|
|
57786
|
-
}
|
|
57787
|
-
}
|
|
57788
|
-
|
|
57789
|
-
// else { // RedTitle 模式 修改红头按钮
|
|
57790
|
-
// const RedTitleBtn = this.$vnode.context.commandBar.filter(btn => {
|
|
57791
|
-
// if (btn.btnShow && btn.btnJavascript && btn.btnJavascript.indexOf('btnModifyFlTypeClick') === 0) return true
|
|
57792
|
-
// })
|
|
57793
|
-
// if (this.$vnode.context.wfInstance.haveDoc === 2) {
|
|
57794
|
-
// footerBtns.splice(0, 0, RedTitleBtn)
|
|
57795
|
-
// }
|
|
57796
|
-
// }
|
|
57797
57771
|
|
|
57798
|
-
|
|
57799
|
-
|
|
57800
|
-
|
|
57801
|
-
|
|
57802
|
-
|
|
57803
|
-
|
|
57804
|
-
|
|
57805
|
-
|
|
57806
|
-
|
|
57807
|
-
|
|
57808
|
-
|
|
57809
|
-
|
|
57810
|
-
|
|
57811
|
-
|
|
57812
|
-
|
|
57813
|
-
|
|
57814
|
-
|
|
57815
|
-
|
|
57816
|
-
|
|
57817
|
-
|
|
57818
|
-
|
|
57819
|
-
|
|
57820
|
-
|
|
57821
|
-
|
|
57822
|
-
|
|
57823
|
-
|
|
57824
|
-
|
|
57825
|
-
|
|
57826
|
-
|
|
57827
|
-
|
|
57828
|
-
|
|
57829
|
-
|
|
57830
|
-
|
|
57831
|
-
|
|
57832
|
-
|
|
57833
|
-
|
|
57834
|
-
|
|
57835
|
-
|
|
57836
|
-
|
|
57837
|
-
|
|
57838
|
-
|
|
57772
|
+
// else { // RedTitle 模式 修改红头按钮
|
|
57773
|
+
// const RedTitleBtn = this.$vnode.context.commandBar.filter(btn => {
|
|
57774
|
+
// if (btn.btnShow && btn.btnJavascript && btn.btnJavascript.indexOf('btnModifyFlTypeClick') === 0) return true
|
|
57775
|
+
// })
|
|
57776
|
+
// if (this.$vnode.context.wfInstance.haveDoc === 2) {
|
|
57777
|
+
// footerBtns.splice(0, 0, RedTitleBtn)
|
|
57778
|
+
// }
|
|
57779
|
+
// }
|
|
57780
|
+
|
|
57781
|
+
if (editdocBtn.length > 0 && (_this6.officeType === 'wpsh5' || _this6.officeType === 'yzh5' || _this6.officeType === 'ech5')) {
|
|
57782
|
+
_openDocBtn2 = {
|
|
57783
|
+
id: 'btn_openDoc',
|
|
57784
|
+
btnName: '编辑正文',
|
|
57785
|
+
btnIcon: 'upload',
|
|
57786
|
+
btnClick: _this6.btnOpenWordClick,
|
|
57787
|
+
btnPermission: '',
|
|
57788
|
+
btnStyleType: 'default'
|
|
57789
|
+
};
|
|
57790
|
+
footerBtns.splice(0, 0, _openDocBtn2);
|
|
57791
|
+
}
|
|
57792
|
+
|
|
57793
|
+
// if (this.attachments.some(item => item.fileType !== 'BODY')) {
|
|
57794
|
+
_this6.attachmentsNum = _this6.attachments.filter(function (val) {
|
|
57795
|
+
return val.fileType !== 'BODY';
|
|
57796
|
+
}).length;
|
|
57797
|
+
attachmentsTitleBtn = {
|
|
57798
|
+
id: 'btn_attachment',
|
|
57799
|
+
btnName: "\u9644 \u4EF6(".concat(_this6.attachmentsNum, ")"),
|
|
57800
|
+
btnIcon: 'attachment',
|
|
57801
|
+
btnClick: _this6.attachmentFile,
|
|
57802
|
+
btnPermission: '',
|
|
57803
|
+
btnStyleType: 'default'
|
|
57804
|
+
};
|
|
57805
|
+
footerBtns.splice(0, 0, attachmentsTitleBtn);
|
|
57806
|
+
// }
|
|
57807
|
+
}
|
|
57808
|
+
if (footerBtns.length > 3) {
|
|
57809
|
+
moreBtns = {
|
|
57810
|
+
id: 'btn_upload',
|
|
57811
|
+
btnName: '更 多',
|
|
57812
|
+
btnIcon: 'upload',
|
|
57813
|
+
btnPermission: '',
|
|
57814
|
+
btnStyleType: 'default',
|
|
57815
|
+
children: []
|
|
57816
|
+
}; // 只显示第1个、最后一个,中间的显示在“更多”子按钮组中
|
|
57817
|
+
for (_i = 1; _i < footerBtns.length - 1; _i++) {
|
|
57818
|
+
footerBtns[_i].text = footerBtns[_i].btnName;
|
|
57819
|
+
moreBtns.children.push(footerBtns[_i]);
|
|
57820
|
+
footerBtns.splice(_i--, 1);
|
|
57821
|
+
}
|
|
57822
|
+
footerBtns.splice(1, 0, moreBtns);
|
|
57823
|
+
}
|
|
57824
|
+
console.log('this.viewer', _this6);
|
|
57825
|
+
if (!(_this6.viewer === 'fuxin' && !_this6.fuxinBaseUrl)) {
|
|
57826
|
+
_context3.next = 26;
|
|
57827
|
+
break;
|
|
57828
|
+
}
|
|
57829
|
+
_context3.next = 24;
|
|
57830
|
+
return _this6.$http({
|
|
57831
|
+
method: 'get',
|
|
57832
|
+
contentType: 'application/x-www-form-urlencoded',
|
|
57833
|
+
url: 'base/paramConfig/findParamValueByName?orgCode=standard¶mName=fuxin.viewer.url'
|
|
57834
|
+
}).then(function (res) {
|
|
57835
|
+
if (res.code === 'success') {
|
|
57836
|
+
_this6.fuxinBaseUrl = res.body.value;
|
|
57837
|
+
_this6.onlineViewer = 'fuxin';
|
|
57838
|
+
} else {
|
|
57839
|
+
_this6.onlineViewer = 'pdfjs';
|
|
57840
|
+
}
|
|
57841
|
+
});
|
|
57842
|
+
case 24:
|
|
57843
|
+
_context3.next = 27;
|
|
57844
|
+
break;
|
|
57845
|
+
case 26:
|
|
57846
|
+
if (_this6.viewer === 'fuxin' && _this6.fuxinBaseUrl) {
|
|
57847
|
+
_this6.onlineViewer = _this6.viewer;
|
|
57848
|
+
} else {
|
|
57849
|
+
_this6.onlineViewer = _this6.viewer || 'pdfjs';
|
|
57850
|
+
}
|
|
57851
|
+
case 27:
|
|
57852
|
+
_this6.viewBodyFile();
|
|
57853
|
+
console.log(footerBtns, 'footerBtns --- >363');
|
|
57854
|
+
_this6.$vnode.context.footerBtns = footerBtns;
|
|
57855
|
+
case 30:
|
|
57856
|
+
case "end":
|
|
57857
|
+
return _context3.stop();
|
|
57839
57858
|
}
|
|
57840
|
-
|
|
57841
|
-
|
|
57842
|
-
console.log(footerBtns, 'footerBtns --- >363');
|
|
57843
|
-
this.$vnode.context.footerBtns = footerBtns;
|
|
57844
|
-
}
|
|
57859
|
+
}, _callee3);
|
|
57860
|
+
}))();
|
|
57845
57861
|
},
|
|
57846
57862
|
// 选择印章
|
|
57847
57863
|
openSeal: function openSeal() {
|
|
@@ -57862,20 +57878,20 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
57862
57878
|
// 保存印章
|
|
57863
57879
|
pdfSealSave: function pdfSealSave() {
|
|
57864
57880
|
var _this7 = this;
|
|
57865
|
-
return BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function
|
|
57866
|
-
return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function
|
|
57867
|
-
while (1) switch (
|
|
57881
|
+
return BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
|
|
57882
|
+
return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
57883
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
57868
57884
|
case 0:
|
|
57869
|
-
|
|
57885
|
+
_context4.next = 2;
|
|
57870
57886
|
return _this7.$refs.PdfTools.pdfStamp();
|
|
57871
57887
|
case 2:
|
|
57872
57888
|
_this7.pdfSealChange = false;
|
|
57873
57889
|
_this7.setFooterBtns(0);
|
|
57874
57890
|
case 4:
|
|
57875
57891
|
case "end":
|
|
57876
|
-
return
|
|
57892
|
+
return _context4.stop();
|
|
57877
57893
|
}
|
|
57878
|
-
},
|
|
57894
|
+
}, _callee4);
|
|
57879
57895
|
}))();
|
|
57880
57896
|
},
|
|
57881
57897
|
// 添加签名
|
|
@@ -57897,20 +57913,20 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
57897
57913
|
// 保存签名
|
|
57898
57914
|
pdfSignSave: function pdfSignSave() {
|
|
57899
57915
|
var _this8 = this;
|
|
57900
|
-
return BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function
|
|
57901
|
-
return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function
|
|
57902
|
-
while (1) switch (
|
|
57916
|
+
return BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
|
|
57917
|
+
return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
57918
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
57903
57919
|
case 0:
|
|
57904
|
-
|
|
57920
|
+
_context5.next = 2;
|
|
57905
57921
|
return _this8.$refs.PdfTools.pdfSign();
|
|
57906
57922
|
case 2:
|
|
57907
57923
|
_this8.pdfSignChange = false;
|
|
57908
57924
|
_this8.setFooterBtns(0);
|
|
57909
57925
|
case 4:
|
|
57910
57926
|
case "end":
|
|
57911
|
-
return
|
|
57927
|
+
return _context5.stop();
|
|
57912
57928
|
}
|
|
57913
|
-
},
|
|
57929
|
+
}, _callee5);
|
|
57914
57930
|
}))();
|
|
57915
57931
|
},
|
|
57916
57932
|
attachmentDownloadClick: function attachmentDownloadClick(attachment) {
|
|
@@ -57935,16 +57951,16 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
57935
57951
|
if (_this9.$vnode.context.wfInstance.haveDoc) {
|
|
57936
57952
|
_this9.$dialog.confirm({
|
|
57937
57953
|
message: _this9.$tx('ecmapp.wflowform.coverMainText', '重新上传会覆盖现有正文,是否确认?')
|
|
57938
|
-
}).then( /*#__PURE__*/BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function
|
|
57939
|
-
return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function
|
|
57940
|
-
while (1) switch (
|
|
57954
|
+
}).then( /*#__PURE__*/BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee6() {
|
|
57955
|
+
return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
57956
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
57941
57957
|
case 0:
|
|
57942
57958
|
resolve(true);
|
|
57943
57959
|
case 1:
|
|
57944
57960
|
case "end":
|
|
57945
|
-
return
|
|
57961
|
+
return _context6.stop();
|
|
57946
57962
|
}
|
|
57947
|
-
},
|
|
57963
|
+
}, _callee6);
|
|
57948
57964
|
}))).catch(function () {
|
|
57949
57965
|
reject('cancel btnUploadBodyfileClick.');
|
|
57950
57966
|
});
|
|
@@ -58169,10 +58185,10 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
58169
58185
|
var _this = this;
|
|
58170
58186
|
this.$dialog.confirm({
|
|
58171
58187
|
message: confirmMsg
|
|
58172
|
-
}).then( /*#__PURE__*/BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function
|
|
58188
|
+
}).then( /*#__PURE__*/BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee7() {
|
|
58173
58189
|
var deleteIds, originalName, i;
|
|
58174
|
-
return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function
|
|
58175
|
-
while (1) switch (
|
|
58190
|
+
return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
58191
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
58176
58192
|
case 0:
|
|
58177
58193
|
deleteIds = flBodyfile.id;
|
|
58178
58194
|
originalName = flBodyfile.originalName.substring(0, flBodyfile.originalName.indexOf('.'));
|
|
@@ -58228,18 +58244,18 @@ function BodyFilevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
58228
58244
|
});
|
|
58229
58245
|
case 4:
|
|
58230
58246
|
case "end":
|
|
58231
|
-
return
|
|
58247
|
+
return _context7.stop();
|
|
58232
58248
|
}
|
|
58233
|
-
},
|
|
58249
|
+
}, _callee7);
|
|
58234
58250
|
})));
|
|
58235
58251
|
}
|
|
58236
58252
|
}
|
|
58237
58253
|
});
|
|
58238
58254
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/BodyFile.vue?vue&type=script&lang=js
|
|
58239
58255
|
/* harmony default export */ var src_BodyFilevue_type_script_lang_js = (BodyFilevue_type_script_lang_js);
|
|
58240
|
-
// 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=
|
|
58241
|
-
var
|
|
58242
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=
|
|
58256
|
+
// 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=2e25b2ec&prod&scoped=true&lang=scss
|
|
58257
|
+
var BodyFilevue_type_style_index_0_id_2e25b2ec_prod_scoped_true_lang_scss = __webpack_require__(600);
|
|
58258
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=2e25b2ec&prod&scoped=true&lang=scss
|
|
58243
58259
|
|
|
58244
58260
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/BodyFile.vue
|
|
58245
58261
|
|
|
@@ -58252,11 +58268,11 @@ var BodyFilevue_type_style_index_0_id_38af2d59_prod_scoped_true_lang_scss = __we
|
|
|
58252
58268
|
|
|
58253
58269
|
var BodyFile_component = (0,componentNormalizer/* default */.A)(
|
|
58254
58270
|
src_BodyFilevue_type_script_lang_js,
|
|
58255
|
-
|
|
58256
|
-
|
|
58271
|
+
BodyFilevue_type_template_id_2e25b2ec_scoped_true_render,
|
|
58272
|
+
BodyFilevue_type_template_id_2e25b2ec_scoped_true_staticRenderFns,
|
|
58257
58273
|
false,
|
|
58258
58274
|
null,
|
|
58259
|
-
"
|
|
58275
|
+
"2e25b2ec",
|
|
58260
58276
|
null
|
|
58261
58277
|
|
|
58262
58278
|
)
|