ecinc-cloud-mappaio 9.6.42 → 9.6.44

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