ecinc-cloud-mappaio 9.6.42 → 9.6.43

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.
@@ -7233,7 +7233,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-0685b481] .van-nav-bar__title{
7233
7233
 
7234
7234
  /***/ }),
7235
7235
 
7236
- /***/ 2968:
7236
+ /***/ 3379:
7237
7237
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7238
7238
 
7239
7239
  "use strict";
@@ -7247,7 +7247,7 @@ __webpack_require__.r(__webpack_exports__);
7247
7247
 
7248
7248
  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()));
7249
7249
  // Module
7250
- ___CSS_LOADER_EXPORT___.push([module.id, ".wfattach-container .van-cell__value[data-v-26bea2c4],.wfattach-container[data-v-26bea2c4] .van-cell__title{-webkit-box-flex:0;-ms-flex:none;flex:none}.wfattach-container[data-v-26bea2c4] .van-cell__title{width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.wfattach-container[data-v-26bea2c4] .van-cell__value{width:25%;height:24px}.wfattach-container[data-v-26bea2c4] .van-cell__value .van-icon-add-o{line-height:24px}.wfattach-container[data-v-26bea2c4] .van-cell__value .van-circle{margin-top:2px}.wfattach-container[data-v-26bea2c4] .van-cell__value .attach-icon{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.wfattach-container[data-v-26bea2c4] .van-cell__value .attach-icon .van-icon{line-height:24px;margin-left:15px;font-size:16px}.wfattach-container[data-v-26bea2c4]:after{border-top-width:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-26bea2c4]{padding-left:70px;padding-right:36px}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-26bea2c4]:after{right:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-26bea2c4]:first-child:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;top:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title[data-v-26bea2c4]{position:relative}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_photo[data-v-26bea2c4]{position:absolute;left:-54px;height:44px;width:44px}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_name[data-v-26bea2c4]{width:calc(100vw - 107px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-attachment-field[data-v-26bea2c4]{position:relative}.van-attachment-field[data-v-26bea2c4]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;top:unset;border-width:0;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}", ""]);
7250
+ ___CSS_LOADER_EXPORT___.push([module.id, ".wfattach-container .van-cell__value[data-v-fb72985a],.wfattach-container[data-v-fb72985a] .van-cell__title{-webkit-box-flex:0;-ms-flex:none;flex:none}.wfattach-container[data-v-fb72985a] .van-cell__title{width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.wfattach-container[data-v-fb72985a] .van-cell__value{width:25%;height:24px}.wfattach-container[data-v-fb72985a] .van-cell__value .van-icon-add-o{line-height:24px}.wfattach-container[data-v-fb72985a] .van-cell__value .van-circle{margin-top:2px}.wfattach-container[data-v-fb72985a] .van-cell__value .attach-icon{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.wfattach-container[data-v-fb72985a] .van-cell__value .attach-icon .van-icon{line-height:24px;margin-left:15px;font-size:16px}.wfattach-container[data-v-fb72985a]:after{border-top-width:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-fb72985a]{padding-left:70px;padding-right:36px}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-fb72985a]:after{right:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-fb72985a]:first-child:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;top:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title[data-v-fb72985a]{position:relative}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_photo[data-v-fb72985a]{position:absolute;left:-54px;height:44px;width:44px}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_name[data-v-fb72985a]{width:calc(100vw - 107px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-attachment-field[data-v-fb72985a]{position:relative}.van-attachment-field[data-v-fb72985a]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;top:unset;border-width:0;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}", ""]);
7251
7251
  // Exports
7252
7252
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
7253
7253
 
@@ -32431,19 +32431,19 @@ var update = add("04d25616", content, true, {"sourceMap":false,"shadowMode":fals
32431
32431
 
32432
32432
  /***/ }),
32433
32433
 
32434
- /***/ 7548:
32434
+ /***/ 8631:
32435
32435
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
32436
32436
 
32437
32437
  // style-loader: Adds some css to the DOM by adding a <style> tag
32438
32438
 
32439
32439
  // load the styles
32440
- var content = __webpack_require__(2968);
32440
+ var content = __webpack_require__(3379);
32441
32441
  if(content.__esModule) content = content.default;
32442
32442
  if(typeof content === 'string') content = [[module.id, content, '']];
32443
32443
  if(content.locals) module.exports = content.locals;
32444
32444
  // add the styles to the DOM
32445
32445
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
32446
- var update = add("36a36c70", content, true, {"sourceMap":false,"shadowMode":false});
32446
+ var update = add("4bed1bee", content, true, {"sourceMap":false,"shadowMode":false});
32447
32447
 
32448
32448
  /***/ }),
32449
32449
 
@@ -56239,8 +56239,8 @@ WfStatus_src.install = function (Vue) {
56239
56239
  Vue.component(WfStatus_src.name, WfStatus_src);
56240
56240
  };
56241
56241
  /* harmony default export */ var WfStatus = (WfStatus_src);
56242
- ;// 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/Attachment.vue?vue&type=template&id=26bea2c4&scoped=true
56243
- var Attachmentvue_type_template_id_26bea2c4_scoped_true_render = function render() {
56242
+ ;// 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/Attachment.vue?vue&type=template&id=fb72985a&scoped=true
56243
+ var Attachmentvue_type_template_id_fb72985a_scoped_true_render = function render() {
56244
56244
  var _vm = this,
56245
56245
  _c = _vm._self._c;
56246
56246
  return _c('div', {
@@ -56501,7 +56501,7 @@ var Attachmentvue_type_template_id_26bea2c4_scoped_true_render = function render
56501
56501
  }
56502
56502
  })], 1) : _vm._e()], 1);
56503
56503
  };
56504
- var Attachmentvue_type_template_id_26bea2c4_scoped_true_staticRenderFns = [];
56504
+ var Attachmentvue_type_template_id_fb72985a_scoped_true_staticRenderFns = [];
56505
56505
 
56506
56506
  ;// 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/Attachment.vue?vue&type=script&lang=js
56507
56507
  function Attachmentvue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return Attachmentvue_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; }, Attachmentvue_type_script_lang_js_typeof(o); }
@@ -56865,79 +56865,208 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
56865
56865
  },
56866
56866
  handleUploadPreview: function handleUploadPreview(attach) {
56867
56867
  var _this6 = this;
56868
- if (attach.id === undefined) return;
56869
- if (this.onAttachPreviewClick) {
56870
- // 自定义附件下载预览事件
56871
- this.onAttachPreviewClick(attach);
56872
- return;
56873
- }
56874
- var device = js_cookie_default().get('device');
56875
- var topdf = false;
56876
- var extName = '';
56877
- if (attach.fileName.indexOf('.') !== -1) {
56878
- extName = attach.fileName.substring(attach.fileName.lastIndexOf('.')).toLowerCase();
56879
- }
56880
- if (device !== 'qywx' && device !== 'zwwx') {
56881
- // 企业微信、粤政易支持文档在线预览,不需要转pdf
56882
- if (extName !== '' && extName !== '.pdf' && extName !== '.pdfx' && (this.onlineFile + ',').indexOf(extName + ',') !== -1) {
56883
- topdf = true;
56884
- }
56885
- } else if ((this.onlineFile + ',').indexOf('.ofd,') !== -1 && extName === '.ofd') {
56886
- // 后端支持ofd转pdf
56887
- topdf = true;
56888
- }
56889
- if (this.viewer.indexOf('dcs=') === 0 && (topdf || extName === '.pdf' || extName === '.pdfx' || extName === '.ofd')) {
56890
- this.$vnode.context.doing = true;
56891
- this.$http({
56868
+ return Attachmentvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/Attachmentvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
56869
+ var device, topdf, extName, tSessionId, hostname, downUrl, convertType, appUrl, _tSessionId, _downUrl, WfModule, WFBodyDocId, WFBusiDataId, params, _appUrl, _tSessionId2, _downUrl2, url, fileName;
56870
+ return Attachmentvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
56871
+ while (1) switch (_context.prev = _context.next) {
56872
+ case 0:
56873
+ if (!(attach.id === undefined)) {
56874
+ _context.next = 2;
56875
+ break;
56876
+ }
56877
+ return _context.abrupt("return");
56878
+ case 2:
56879
+ if (!_this6.onAttachPreviewClick) {
56880
+ _context.next = 5;
56881
+ break;
56882
+ }
56883
+ // 自定义附件下载预览事件
56884
+ _this6.onAttachPreviewClick(attach);
56885
+ return _context.abrupt("return");
56886
+ case 5:
56887
+ device = js_cookie_default().get('device');
56888
+ topdf = false;
56889
+ extName = '';
56890
+ if (attach.fileName.indexOf('.') !== -1) {
56891
+ extName = attach.fileName.substring(attach.fileName.lastIndexOf('.')).toLowerCase();
56892
+ }
56893
+ if (device !== 'qywx' && device !== 'zwwx') {
56894
+ // 企业微信、粤政易支持文档在线预览,不需要转pdf
56895
+ if (extName !== '' && extName !== '.pdf' && extName !== '.pdfx' && (_this6.onlineFile + ',').indexOf(extName + ',') !== -1) {
56896
+ topdf = true;
56897
+ }
56898
+ } else if ((_this6.onlineFile + ',').indexOf('.ofd,') !== -1 && extName === '.ofd') {
56899
+ // 后端支持ofd转pdf
56900
+ topdf = true;
56901
+ }
56902
+ if (!(_this6.viewer.indexOf('dcs=') === 0 && (topdf || extName === '.ofd'))) {
56903
+ _context.next = 22;
56904
+ break;
56905
+ }
56906
+ _this6.$vnode.context.doing = true;
56907
+ tSessionId = res.body.tSessionId;
56908
+ hostname = location.href.split('mindex.html')[0];
56909
+ downUrl = hostname.substring(0, hostname.length - 1) + "/apigw" + '/' + _this6.wfAttachUrl + '/downloadById?attachIds=' + attach.id + '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken() + '&tSessionId=' + tSessionId;
56910
+ convertType = '0';
56911
+ if (extName === '.pdf') {
56912
+ convertType = '20';
56913
+ } else if (extName === '.ofd') {
56914
+ convertType = '21';
56915
+ }
56916
+ downUrl = _this6.viewer.split('=')[1] + '/composite/httpfile?convertType=' + convertType + '&fileUrl=' + encodeURIComponent(downUrl + (_this6.waterMark ? '&waterMark=' + _this6.waterMark + '&markContent=' + _this6.markContent : ''));
56917
+ if (_this6.viewerUrlParams !== '' && _this6.viewerUrlParams !== null && _this6.viewerUrlParams !== undefined) {
56918
+ downUrl += _this6.viewerUrlParams;
56919
+ }
56920
+ $.post(downUrl, {}, function (res) {
56921
+ _this6.$vnode.context.doing = false;
56922
+ if (res.errorcode === 0) {
56923
+ window.open(res.data.viewUrl);
56924
+ } else {
56925
+ _this6.$dialog.alert({
56926
+ message: res.message
56927
+ });
56928
+ }
56929
+ }, 'json');
56930
+ _context.next = 66;
56931
+ break;
56932
+ case 22:
56933
+ if (!(_this6.viewer === 'wpsh5' && (topdf || extName === '.ofd'))) {
56934
+ _context.next = 41;
56935
+ break;
56936
+ }
56937
+ // 打开 wps h5
56938
+ appUrl = location.href.split('#')[0].split('windex.html')[0]; // 开发调试期间指定地址
56939
+ if (appUrl.indexOf('//127') !== -1 || appUrl.indexOf('//192') !== -1) {
56940
+ appUrl = 'http://toa.ecinc.com.cn:2028/';
56941
+ }
56942
+ _this6.$vnode.context.doing = true;
56943
+ _context.next = 28;
56944
+ return _this6.getSessionId();
56945
+ case 28:
56946
+ _tSessionId = _context.sent;
56947
+ //正文下载地址
56948
+ _downUrl = appUrl + "/apigw";
56949
+ _downUrl += _this6.wfAttachUrl.substring(0, 1) === '/' ? _this6.wfAttachUrl : '/' + _this6.wfAttachUrl;
56950
+ _downUrl += '/downloadById?attachIds=' + attach.id + '&topdf=false';
56951
+ //downUrl += this.waterMark ? '&waterMark=' + this.waterMark + '&markContent=' + this.markContent : ''
56952
+ _downUrl += '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken() + '&tSessionId=' + _tSessionId;
56953
+ _downUrl += '&saveAs=' + attach.fileName;
56954
+ WfModule = _this6.$vnode.context.wfInstance.module;
56955
+ WFBodyDocId = _this6.$vnode.context.wfInstance.bodyDocId;
56956
+ WFBusiDataId = _this6.$vnode.context.vo.id;
56957
+ params = {
56958
+ openType: 'view',
56959
+ attachId: '',
56960
+ module: WfModule,
56961
+ busiDataId: WFBusiDataId,
56962
+ bodyDocId: WFBodyDocId,
56963
+ downUrl: encodeURI(_downUrl),
56964
+ attachName: attach.fileName,
56965
+ attachType: attach.fileType
56966
+ };
56967
+ _this6.$http({
56968
+ method: 'GET',
56969
+ params: params,
56970
+ url: 'wpsOffice/getAppToken'
56971
+ }).then(function (res) {
56972
+ if (res.code === 'success') {
56973
+ _this6.tSessionId = res.body.tSessionId;
56974
+ var editorUrl = './plugins/wpsjs/h5office/editor.html';
56975
+ editorUrl += '?token=' + encodeURI(res.body.accessToken);
56976
+ editorUrl += '&signatureurl=' + encodeURIComponent(res.body.url);
56977
+ window.open(editorUrl); // 打开
56978
+ } else {
56979
+ _this6.$dialog.alert({
56980
+ message: res.message
56981
+ });
56982
+ }
56983
+ _this6.$vnode.context.doing = false;
56984
+ });
56985
+ _context.next = 66;
56986
+ break;
56987
+ case 41:
56988
+ if (!(_this6.viewer === 'fuxin' && (topdf || extName === '.ofd'))) {
56989
+ _context.next = 58;
56990
+ break;
56991
+ }
56992
+ _appUrl = location.href.split('#')[0]; // url
56993
+ _context.next = 45;
56994
+ return _this6.getSessionId();
56995
+ case 45:
56996
+ _tSessionId2 = _context.sent;
56997
+ if (!(imgType.indexOf(extName.substring(1)) > -1 && window.openImgView)) {
56998
+ _context.next = 50;
56999
+ break;
57000
+ }
57001
+ sessionStorage.setItem('IMG_INDEX_' + _this6.vo.id, attach.index);
57002
+ window.open('#/imgView?wfAttachUrl=' + _this6.wfAttachUrl + '&busiDataId=' + _this6.vo.id);
57003
+ return _context.abrupt("return");
57004
+ case 50:
57005
+ _downUrl2 = _appUrl + "/apigw";
57006
+ _downUrl2 += _this6.wfAttachUrl.substring(0, 1) === '/' ? _this6.wfAttachUrl : '/' + _this6.wfAttachUrl;
57007
+ _downUrl2 += '/downloadById?attachIds=' + attach.id + '&topdf=' + topdf;
57008
+ _downUrl2 += _this6.waterMark ? '&waterMark=' + _this6.waterMark + '&markContent=' + _this6.markContent : '';
57009
+ _downUrl2 += '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken() + '&tSessionId=' + _tSessionId2;
57010
+ if (_this6.fuxinBaseUrl) {
57011
+ window.open(_this6.fuxinBaseUrl + '?docuri=' + encodeURIComponent(_downUrl2));
57012
+ } else {
57013
+ _this6.$http({
57014
+ method: 'get',
57015
+ contentType: 'application/x-www-form-urlencoded',
57016
+ url: 'base/paramConfig/findParamValueByName?orgCode=standard&paramName=fuxin.viewer.url'
57017
+ }).then(function (res) {
57018
+ if (res.code === 'success') {
57019
+ _this6.fuxinBaseUrl = res.body.value;
57020
+ window.open(_this6.fuxinBaseUrl + '?docuri=' + encodeURIComponent(_downUrl2));
57021
+ } else {
57022
+ _this6.$dialog.alert({
57023
+ message: '未配置福星预览地址参数 fuxin.viewer.url'
57024
+ });
57025
+ }
57026
+ });
57027
+ }
57028
+ _context.next = 66;
57029
+ break;
57030
+ case 58:
57031
+ url = "/apigw";
57032
+ url += _this6.wfAttachUrl.substring(0, 1) === '/' ? _this6.wfAttachUrl : '/' + _this6.wfAttachUrl;
57033
+ url += '/downloadById?inline=true&attachIds=' + attach.id + '&topdf=' + topdf;
57034
+ url += _this6.waterMark ? '&waterMark=' + _this6.waterMark + '&markContent=' + _this6.markContent : '';
57035
+ url += '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken();
57036
+ // console.log({ url: url, name: attach.fileName, size: attach.fileRealSize, title: '进行下载' })
57037
+ fileName = attach.fileName;
57038
+ if (topdf) {
57039
+ if (fileName.indexOf('.') > 0) {
57040
+ fileName = fileName.substring(0, fileName.lastIndexOf('.')) + '.pdf';
57041
+ } else {
57042
+ fileName = fileName + '.pdf';
57043
+ }
57044
+ }
57045
+ _this6.$mappUtils.downLoadAndOpenFile(_this6, url, fileName, attach.fileRealSize);
57046
+ case 66:
57047
+ case "end":
57048
+ return _context.stop();
57049
+ }
57050
+ }, _callee);
57051
+ }))();
57052
+ },
57053
+ getSessionId: function getSessionId() {
57054
+ var _this7 = this;
57055
+ return new Promise(function (resolve, reject) {
57056
+ _this7.$http({
56892
57057
  method: 'GET',
57058
+ params: {
57059
+ timeLength: 60
57060
+ },
56893
57061
  url: 'base/user/getSessionId'
56894
57062
  }).then(function (res) {
56895
57063
  if (res.code === 'success') {
56896
- var tSessionId = res.body.tSessionId;
56897
- var hostname = location.href.split('mindex.html')[0];
56898
- var downUrl = hostname.substring(0, hostname.length - 1) + "/apigw" + '/' + _this6.wfAttachUrl + '/downloadById?attachIds=' + attach.id + '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken() + '&tSessionId=' + tSessionId;
56899
- var convertType = '0';
56900
- if (extName === '.pdf') {
56901
- convertType = '20';
56902
- } else if (extName === '.ofd') {
56903
- convertType = '21';
56904
- }
56905
- downUrl = _this6.viewer.split('=')[1] + '/composite/httpfile?convertType=' + convertType + '&fileUrl=' + encodeURIComponent(downUrl + (_this6.waterMark ? '&waterMark=' + _this6.waterMark + '&markContent=' + _this6.markContent : ''));
56906
- if (_this6.viewerUrlParams !== '' && _this6.viewerUrlParams !== null && _this6.viewerUrlParams !== undefined) {
56907
- downUrl += _this6.viewerUrlParams;
56908
- }
56909
- $.post(downUrl, {}, function (res) {
56910
- _this6.$vnode.context.doing = false;
56911
- if (res.errorcode === 0) {
56912
- window.open(res.data.viewUrl);
56913
- } else {
56914
- _this6.$dialog.alert({
56915
- message: res.message
56916
- });
56917
- }
56918
- }, 'json');
57064
+ resolve(res.body.tSessionId);
56919
57065
  } else {
56920
- _this6.$vnode.context.doing = false;
57066
+ reject(res.msg);
56921
57067
  }
56922
57068
  });
56923
- } else {
56924
- var url = "/apigw";
56925
- url += this.wfAttachUrl.substring(0, 1) === '/' ? this.wfAttachUrl : '/' + this.wfAttachUrl;
56926
- url += '/downloadById?inline=true&attachIds=' + attach.id + '&topdf=' + topdf;
56927
- url += this.waterMark ? '&waterMark=' + this.waterMark + '&markContent=' + this.markContent : '';
56928
- url += '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken();
56929
- // console.log({ url: url, name: attach.fileName, size: attach.fileRealSize, title: '进行下载' })
56930
-
56931
- var fileName = attach.fileName;
56932
- if (topdf) {
56933
- if (fileName.indexOf('.') > 0) {
56934
- fileName = fileName.substring(0, fileName.lastIndexOf('.')) + '.pdf';
56935
- } else {
56936
- fileName = fileName + '.pdf';
56937
- }
56938
- }
56939
- this.$mappUtils.downLoadAndOpenFile(this, url, fileName, attach.fileRealSize);
56940
- }
57069
+ });
56941
57070
  },
56942
57071
  handleUploadExceed: function handleUploadExceed(files, fileList) {
56943
57072
  // this.$dialog.alert({ message: `当前限制选择 ${this.limitCount} 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件` })
@@ -56950,7 +57079,7 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
56950
57079
  });
56951
57080
  },
56952
57081
  handleUploadRemove: function handleUploadRemove(file) {
56953
- var _this7 = this;
57082
+ var _this8 = this;
56954
57083
  var _this = this;
56955
57084
  if (file.id === undefined) {
56956
57085
  for (var i = 0; i < this.attachments.length; i++) {
@@ -56959,7 +57088,7 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
56959
57088
  }
56960
57089
  }
56961
57090
  this.attachList = this.attachments.filter(function (attach) {
56962
- return attach.fileType === _this7.attachsType;
57091
+ return attach.fileType === _this8.attachsType;
56963
57092
  });
56964
57093
  for (var j = 0; j < this.uploadAttach.length; j++) {
56965
57094
  if (this.uploadAttach[j] === file.file) {
@@ -56974,21 +57103,21 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
56974
57103
  }
56975
57104
  }
56976
57105
  this.attachList = this.attachments.filter(function (attach) {
56977
- return attach.fileType === _this7.attachsType;
57106
+ return attach.fileType === _this8.attachsType;
56978
57107
  });
56979
57108
  this.$forceUpdate();
56980
57109
  } else {
56981
57110
  this.$dialog.confirm({
56982
57111
  message: this.$tx('ecmapp.message.sureDeleterAttach', '您是否确认删除选择的附件?')
56983
- }).then( /*#__PURE__*/Attachmentvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/Attachmentvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
57112
+ }).then( /*#__PURE__*/Attachmentvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/Attachmentvue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
56984
57113
  var deleteUrl;
56985
- return Attachmentvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
56986
- while (1) switch (_context.prev = _context.next) {
57114
+ return Attachmentvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee2$(_context2) {
57115
+ while (1) switch (_context2.prev = _context2.next) {
56987
57116
  case 0:
56988
- deleteUrl = _this7.wfAttachUrl + '/delete';
56989
- if (_this.$vnode.context.wfInstance === undefined || _this.$vnode.context.wfInstance === null || _this.$vnode.context.wfInstance.id === undefined) deleteUrl = _this7.wfAttachUrl + '/deleteAttach'; // 非流程表单
57117
+ deleteUrl = _this8.wfAttachUrl + '/delete';
57118
+ if (_this.$vnode.context.wfInstance === undefined || _this.$vnode.context.wfInstance === null || _this.$vnode.context.wfInstance.id === undefined) deleteUrl = _this8.wfAttachUrl + '/deleteAttach'; // 非流程表单
56990
57119
 
56991
- _this7.$http({
57120
+ _this8.$http({
56992
57121
  method: 'DELETE',
56993
57122
  contentType: 'application/x-www-form-urlencoded',
56994
57123
  params: {
@@ -56997,33 +57126,33 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
56997
57126
  url: deleteUrl
56998
57127
  }).then(function (res) {
56999
57128
  if (res.code === 'success') {
57000
- for (var i = 0; i < _this7.attachments.length; i++) {
57001
- if (_this7.attachments[i].id === file.id) {
57002
- _this7.attachments.splice(i--, 1);
57129
+ for (var i = 0; i < _this8.attachments.length; i++) {
57130
+ if (_this8.attachments[i].id === file.id) {
57131
+ _this8.attachments.splice(i--, 1);
57003
57132
  }
57004
57133
  }
57005
- _this7.attachList = _this7.attachments.filter(function (attach) {
57006
- return attach.fileType === _this7.attachsType;
57134
+ _this8.attachList = _this8.attachments.filter(function (attach) {
57135
+ return attach.fileType === _this8.attachsType;
57007
57136
  });
57008
- _this7.$forceUpdate();
57137
+ _this8.$forceUpdate();
57009
57138
  } else {
57010
- _this7.$dialog.alert({
57139
+ _this8.$dialog.alert({
57011
57140
  message: res.message
57012
57141
  });
57013
57142
  }
57014
57143
  });
57015
57144
  case 3:
57016
57145
  case "end":
57017
- return _context.stop();
57146
+ return _context2.stop();
57018
57147
  }
57019
- }, _callee);
57148
+ }, _callee2);
57020
57149
  }))).catch(function () {
57021
57150
  console.log('cancel delete.');
57022
57151
  });
57023
57152
  }
57024
57153
  },
57025
57154
  handleUploadChange: function handleUploadChange(file) {
57026
- var _this8 = this;
57155
+ var _this9 = this;
57027
57156
  if (this.accept && this.accept !== '*.*') {
57028
57157
  // accept包含"/",例:image/jpeg等,格式比较多,不再检测扩展名是否匹配
57029
57158
  if (this.accept.indexOf('/') === -1) {
@@ -57113,7 +57242,7 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
57113
57242
  this.attachments.push(_attach);
57114
57243
  }
57115
57244
  this.attachList = this.attachments.filter(function (attach) {
57116
- return attach.fileType === _this8.attachsType;
57245
+ return attach.fileType === _this9.attachsType;
57117
57246
  });
57118
57247
  this.$forceUpdate();
57119
57248
  },
@@ -57146,18 +57275,18 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
57146
57275
  }
57147
57276
  },
57148
57277
  uploadWflowAttach: function uploadWflowAttach($scope) {
57149
- var _this9 = this;
57278
+ var _this10 = this;
57150
57279
  return new Promise( /*#__PURE__*/function () {
57151
- var _ref2 = Attachmentvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/Attachmentvue_type_script_lang_js_regeneratorRuntime().mark(function _callee4(resole) {
57280
+ var _ref2 = Attachmentvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/Attachmentvue_type_script_lang_js_regeneratorRuntime().mark(function _callee5(resole) {
57152
57281
  var uploadAttach, _this, uploadAttachFile, _uploadAttachFile, bodyfile, resp, fileName, extName, docEditMode;
57153
- return Attachmentvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
57154
- while (1) switch (_context4.prev = _context4.next) {
57282
+ return Attachmentvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
57283
+ while (1) switch (_context5.prev = _context5.next) {
57155
57284
  case 0:
57156
57285
  _uploadAttachFile = function _uploadAttachFile3() {
57157
- _uploadAttachFile = Attachmentvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/Attachmentvue_type_script_lang_js_regeneratorRuntime().mark(function _callee3(attach, index) {
57286
+ _uploadAttachFile = Attachmentvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/Attachmentvue_type_script_lang_js_regeneratorRuntime().mark(function _callee4(attach, index) {
57158
57287
  var file, config, module, reqData, uploadRst;
57159
- return Attachmentvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
57160
- while (1) switch (_context3.prev = _context3.next) {
57288
+ return Attachmentvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
57289
+ while (1) switch (_context4.prev = _context4.next) {
57161
57290
  case 0:
57162
57291
  file = attach.file;
57163
57292
  config = {
@@ -57190,16 +57319,16 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
57190
57319
  // 代办佐证材料
57191
57320
  reqData.uploadBy = attach.uploadBy;
57192
57321
  }
57193
- _context3.next = 9;
57322
+ _context4.next = 9;
57194
57323
  return _this.$wfEngine.upload(_this, _this.wfAttachUrl + '/upload', file.file, reqData, config);
57195
57324
  case 9:
57196
- uploadRst = _context3.sent;
57197
- return _context3.abrupt("return", uploadRst);
57325
+ uploadRst = _context4.sent;
57326
+ return _context4.abrupt("return", uploadRst);
57198
57327
  case 11:
57199
57328
  case "end":
57200
- return _context3.stop();
57329
+ return _context4.stop();
57201
57330
  }
57202
- }, _callee3);
57331
+ }, _callee4);
57203
57332
  }));
57204
57333
  return _uploadAttachFile.apply(this, arguments);
57205
57334
  };
@@ -57208,13 +57337,13 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
57208
57337
  };
57209
57338
  uploadAttach = [];
57210
57339
  if ($scope.doNextAttach && $scope.doNextAttach.file !== undefined && $scope.doNextAttach.file !== null && $scope.doNextAttach.file.progress === 0) {
57211
- _this9.attachments.push($scope.doNextAttach);
57340
+ _this10.attachments.push($scope.doNextAttach);
57212
57341
  }
57213
- _this9.attachments.forEach(function (attach, index) {
57342
+ _this10.attachments.forEach(function (attach, index) {
57214
57343
  if (attach.file != null && !attach.file.complete && attach.uploadIndex === undefined) {
57215
- if (attach.fileType === _this9.attachsType || attach.uploadType === 'formfile' || attach.uploadType === 'DONEXT') {
57344
+ if (attach.fileType === _this10.attachsType || attach.uploadType === 'formfile' || attach.uploadType === 'DONEXT') {
57216
57345
  attach.file.message = null;
57217
- attach.file.fileType = attach.fileType || _this9.attachsType;
57346
+ attach.file.fileType = attach.fileType || _this10.attachsType;
57218
57347
  attach.uploadIndex = index;
57219
57348
  uploadAttach.push(attach);
57220
57349
  }
@@ -57222,18 +57351,18 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
57222
57351
  });
57223
57352
 
57224
57353
  // 上传文件
57225
- _this = _this9; // 先上传正文
57354
+ _this = _this10; // 先上传正文
57226
57355
  if (!($scope.bodyfile && $scope.bodyfile.file !== undefined && $scope.bodyfile.file !== null && $scope.bodyfile.file.progress === 0)) {
57227
- _context4.next = 14;
57356
+ _context5.next = 14;
57228
57357
  break;
57229
57358
  }
57230
57359
  bodyfile = $scope.bodyfile;
57231
57360
  bodyfile.file.message = null;
57232
- bodyfile.file.fileType = bodyfile.fileType || _this9.attachsType;
57233
- _context4.next = 12;
57361
+ bodyfile.file.fileType = bodyfile.fileType || _this10.attachsType;
57362
+ _context5.next = 12;
57234
57363
  return uploadAttachFile(bodyfile, 0);
57235
57364
  case 12:
57236
- resp = _context4.sent;
57365
+ resp = _context5.sent;
57237
57366
  if (resp.code === 'success') {
57238
57367
  bodyfile.file.complete = true;
57239
57368
  resp.body.uploadAttachList.forEach(function (attach) {
@@ -57244,7 +57373,7 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
57244
57373
  break;
57245
57374
  }
57246
57375
  }
57247
- _this9.attachments.push(attach);
57376
+ _this10.attachments.push(attach);
57248
57377
  if (attach.fileName.indexOf('.pdf') || attach.fileName.indexOf('.ofd')) {
57249
57378
  _this.$set($scope, 'bodyfile', attach);
57250
57379
  if (typeof $scope.vo.flBodyFilename !== 'undefined') $scope.vo.flBodyFilename = attach.fileName;
@@ -57257,9 +57386,9 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
57257
57386
  fileName = bodyfile.file.name;
57258
57387
  extName = fileName.substring(fileName.lastIndexOf('.')).toLowerCase();
57259
57388
  docEditMode = '';
57260
- if (_this9.$vnode.context.wfInstance.passenger.docEditMode) {
57389
+ if (_this10.$vnode.context.wfInstance.passenger.docEditMode) {
57261
57390
  // 当前模式获取
57262
- docEditMode = _this9.$vnode.context.wfInstance.passenger.docEditMode;
57391
+ docEditMode = _this10.$vnode.context.wfInstance.passenger.docEditMode;
57263
57392
  }
57264
57393
  if (docEditMode === 'RedTitle') {
57265
57394
  // 红头模式默认上传 红头文件
@@ -57282,44 +57411,44 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
57282
57411
  }
57283
57412
  if (uploadAttach.length === 0) resole({
57284
57413
  code: 'success',
57285
- message: _this9.$tx('ecmapp.message.fileUploadSuccess', '文件正文上传成功!')
57414
+ message: _this10.$tx('ecmapp.message.fileUploadSuccess', '文件正文上传成功!')
57286
57415
  });
57287
- _this9.$nextTick(function () {
57288
- _this9.$bus.emit('onTabChanged', 0);
57416
+ _this10.$nextTick(function () {
57417
+ _this10.$bus.emit('onTabChanged', 0);
57289
57418
  });
57290
57419
  } else {
57291
57420
  bodyfile.file.status = 'failure';
57292
57421
  bodyfile.file.message = resp.message;
57293
- _this9.$bus.emit('onUploadProgress', bodyfile);
57422
+ _this10.$bus.emit('onUploadProgress', bodyfile);
57294
57423
  if (uploadAttach.length === 0) resole(resp);
57295
57424
  }
57296
57425
  case 14:
57297
57426
  if (uploadAttach.length === 0) {
57298
- if (_this9.isRequired === 1 && _this9.attachList.length === 0) {
57299
- _this9.$dialog.alert({
57300
- message: _this9.$tx('ecmapp.message.needUploadFile', '请选择需要上传的附件!')
57427
+ if (_this10.isRequired === 1 && _this10.attachList.length === 0) {
57428
+ _this10.$dialog.alert({
57429
+ message: _this10.$tx('ecmapp.message.needUploadFile', '请选择需要上传的附件!')
57301
57430
  });
57302
57431
  resole({
57303
57432
  code: 'failure',
57304
- message: _this9.$tx('ecmapp.message.noSelNeedUploadFile', '没有选择需要上传的附件')
57433
+ message: _this10.$tx('ecmapp.message.noSelNeedUploadFile', '没有选择需要上传的附件')
57305
57434
  });
57306
57435
  } else {
57307
57436
  resole({
57308
57437
  code: 'success',
57309
- message: _this9.$tx('ecmapp.message.noTobeUploadFile', '没有待上传附件')
57438
+ message: _this10.$tx('ecmapp.message.noTobeUploadFile', '没有待上传附件')
57310
57439
  });
57311
57440
  }
57312
57441
  }
57313
57442
  uploadAttach.forEach( /*#__PURE__*/function () {
57314
- var _ref3 = Attachmentvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/Attachmentvue_type_script_lang_js_regeneratorRuntime().mark(function _callee2(attach, index) {
57443
+ var _ref3 = Attachmentvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/Attachmentvue_type_script_lang_js_regeneratorRuntime().mark(function _callee3(attach, index) {
57315
57444
  var uploadRst, file, complete;
57316
- return Attachmentvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee2$(_context2) {
57317
- while (1) switch (_context2.prev = _context2.next) {
57445
+ return Attachmentvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
57446
+ while (1) switch (_context3.prev = _context3.next) {
57318
57447
  case 0:
57319
- _context2.next = 2;
57448
+ _context3.next = 2;
57320
57449
  return uploadAttachFile(attach, index + 1);
57321
57450
  case 2:
57322
- uploadRst = _context2.sent;
57451
+ uploadRst = _context3.sent;
57323
57452
  file = attach.file;
57324
57453
  if (uploadRst.code === 'success') {
57325
57454
  file.complete = true;
@@ -57328,34 +57457,34 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
57328
57457
  complete = true;
57329
57458
  _this.attachments.forEach(function (iattach, iindex) {
57330
57459
  if (file === iattach.file) {
57331
- var attachments = $scope.attachments || $scope.vo.passenger.attachments || _this9.attachments;
57460
+ var attachments = $scope.attachments || $scope.vo.passenger.attachments || _this10.attachments;
57332
57461
  if (uploadRst.body.uploadAttachList.length === 2) {
57333
57462
  attachments.splice(iindex, 1, uploadRst.body.uploadAttachList[0], uploadRst.body.uploadAttachList[1]);
57334
57463
  } else {
57335
57464
  attachments.splice(iindex, 1, uploadRst.body.uploadAttachList[0]);
57336
57465
  }
57337
57466
  }
57338
- if (iattach.fileType === _this9.attachsType && iattach.file && iattach.file.complete !== true) {
57467
+ if (iattach.fileType === _this10.attachsType && iattach.file && iattach.file.complete !== true) {
57339
57468
  complete = false;
57340
57469
  }
57341
57470
  });
57342
57471
  if (complete) {
57343
57472
  resole({
57344
57473
  code: 'success',
57345
- message: _this9.$tx('ecmapp.message.attchUploadFile', '附件全部上传成功')
57474
+ message: _this10.$tx('ecmapp.message.attchUploadFile', '附件全部上传成功')
57346
57475
  });
57347
57476
  }
57348
57477
  } else {
57349
57478
  file.status = 'failure';
57350
57479
  file.message = uploadRst.message;
57351
57480
  resole(uploadRst);
57352
- _this9.$forceUpdate();
57481
+ _this10.$forceUpdate();
57353
57482
  }
57354
57483
  case 5:
57355
57484
  case "end":
57356
- return _context2.stop();
57485
+ return _context3.stop();
57357
57486
  }
57358
- }, _callee2);
57487
+ }, _callee3);
57359
57488
  }));
57360
57489
  return function (_x4, _x5) {
57361
57490
  return _ref3.apply(this, arguments);
@@ -57363,9 +57492,9 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
57363
57492
  }());
57364
57493
  case 16:
57365
57494
  case "end":
57366
- return _context4.stop();
57495
+ return _context5.stop();
57367
57496
  }
57368
- }, _callee4);
57497
+ }, _callee5);
57369
57498
  }));
57370
57499
  return function (_x) {
57371
57500
  return _ref2.apply(this, arguments);
@@ -57385,9 +57514,9 @@ function Attachmentvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != A
57385
57514
  });
57386
57515
  ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=script&lang=js
57387
57516
  /* harmony default export */ var src_Attachmentvue_type_script_lang_js = (Attachmentvue_type_script_lang_js);
57388
- // 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/Attachment.vue?vue&type=style&index=0&id=26bea2c4&prod&scoped=true&lang=scss
57389
- var Attachmentvue_type_style_index_0_id_26bea2c4_prod_scoped_true_lang_scss = __webpack_require__(7548);
57390
- ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=26bea2c4&prod&scoped=true&lang=scss
57517
+ // 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/Attachment.vue?vue&type=style&index=0&id=fb72985a&prod&scoped=true&lang=scss
57518
+ var Attachmentvue_type_style_index_0_id_fb72985a_prod_scoped_true_lang_scss = __webpack_require__(8631);
57519
+ ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=fb72985a&prod&scoped=true&lang=scss
57391
57520
 
57392
57521
  ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/Attachment.vue
57393
57522
 
@@ -57400,11 +57529,11 @@ var Attachmentvue_type_style_index_0_id_26bea2c4_prod_scoped_true_lang_scss = __
57400
57529
 
57401
57530
  var Attachment_component = (0,componentNormalizer/* default */.A)(
57402
57531
  src_Attachmentvue_type_script_lang_js,
57403
- Attachmentvue_type_template_id_26bea2c4_scoped_true_render,
57404
- Attachmentvue_type_template_id_26bea2c4_scoped_true_staticRenderFns,
57532
+ Attachmentvue_type_template_id_fb72985a_scoped_true_render,
57533
+ Attachmentvue_type_template_id_fb72985a_scoped_true_staticRenderFns,
57405
57534
  false,
57406
57535
  null,
57407
- "26bea2c4",
57536
+ "fb72985a",
57408
57537
  null
57409
57538
 
57410
57539
  )