ecinc-cloud-moaecoav9 9.6.281 → 9.6.283
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/ecmoaecoa.common.js +307 -121
- package/lib/ecmoaecoa.umd.js +307 -121
- package/lib/ecmoaecoa.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/ecmoaecoa.umd.js
CHANGED
|
@@ -2541,7 +2541,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "div[data-v-7e721607]{margin:2rem auto}
|
|
|
2541
2541
|
|
|
2542
2542
|
/***/ }),
|
|
2543
2543
|
|
|
2544
|
-
/***/
|
|
2544
|
+
/***/ 259:
|
|
2545
2545
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2546
2546
|
|
|
2547
2547
|
"use strict";
|
|
@@ -2555,7 +2555,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2555
2555
|
|
|
2556
2556
|
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()));
|
|
2557
2557
|
// Module
|
|
2558
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
2558
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-587c9eaa] .toolBar{width:100%;margin-left:16px;margin-right:16px}[data-v-587c9eaa] .toolBar .van-col--1{height:44px}[data-v-587c9eaa] .toolBar .van-col--1 .van-icon{margin-top:14px}[data-v-587c9eaa] .toolBar .van-col--22{text-align:left;padding-left:16px;padding-right:16px}[data-v-587c9eaa] .toolBar .van-button--mini{height:44px;border:0;font-size:16px}.popup-body[data-v-587c9eaa]{height:calc(100vh - 46px);overflow-y:auto;background-color:#f7f8fa}.editor[data-v-587c9eaa]{margin-top:-44px;width:100%;height:calc(100vh - 2px)}", ""]);
|
|
2559
2559
|
// Exports
|
|
2560
2560
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
2561
2561
|
|
|
@@ -2604,7 +2604,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".popup-content[data-v-4b3a9d6a]{height
|
|
|
2604
2604
|
|
|
2605
2605
|
/***/ }),
|
|
2606
2606
|
|
|
2607
|
-
/***/
|
|
2607
|
+
/***/ 9955:
|
|
2608
2608
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2609
2609
|
|
|
2610
2610
|
"use strict";
|
|
@@ -2618,7 +2618,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2618
2618
|
|
|
2619
2619
|
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()));
|
|
2620
2620
|
// Module
|
|
2621
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".popup_dialog[data-v-
|
|
2621
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".popup_dialog[data-v-495f4af2]{border-radius:5px;-webkit-transform:none;transform:none}.popup_dialog.van-popup--center[data-v-495f4af2]{top:100%}.popup_cell.van-cell[data-v-495f4af2]:after{left:0;right:0;border-bottom:1px solid #ebedf0}.popup_cell.van-cell .apply-img[data-v-495f4af2]{height:20px;margin-right:10px}.popup_cell.van-cell .van-cell__title[data-v-495f4af2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.top[data-v-495f4af2]{color:#333}.top .readed[data-v-495f4af2]{color:#777}", ""]);
|
|
2622
2622
|
// Exports
|
|
2623
2623
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
2624
2624
|
|
|
@@ -27935,19 +27935,19 @@ var update = add("44797fcb", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
27935
27935
|
|
|
27936
27936
|
/***/ }),
|
|
27937
27937
|
|
|
27938
|
-
/***/
|
|
27938
|
+
/***/ 3951:
|
|
27939
27939
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
27940
27940
|
|
|
27941
27941
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
27942
27942
|
|
|
27943
27943
|
// load the styles
|
|
27944
|
-
var content = __webpack_require__(
|
|
27944
|
+
var content = __webpack_require__(259);
|
|
27945
27945
|
if(content.__esModule) content = content.default;
|
|
27946
27946
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
27947
27947
|
if(content.locals) module.exports = content.locals;
|
|
27948
27948
|
// add the styles to the DOM
|
|
27949
27949
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
27950
|
-
var update = add("
|
|
27950
|
+
var update = add("1e28a4d6", content, true, {"sourceMap":false,"shadowMode":false});
|
|
27951
27951
|
|
|
27952
27952
|
/***/ }),
|
|
27953
27953
|
|
|
@@ -27983,19 +27983,19 @@ var update = add("7391e38b", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
27983
27983
|
|
|
27984
27984
|
/***/ }),
|
|
27985
27985
|
|
|
27986
|
-
/***/
|
|
27986
|
+
/***/ 2351:
|
|
27987
27987
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
27988
27988
|
|
|
27989
27989
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
27990
27990
|
|
|
27991
27991
|
// load the styles
|
|
27992
|
-
var content = __webpack_require__(
|
|
27992
|
+
var content = __webpack_require__(9955);
|
|
27993
27993
|
if(content.__esModule) content = content.default;
|
|
27994
27994
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
27995
27995
|
if(content.locals) module.exports = content.locals;
|
|
27996
27996
|
// add the styles to the DOM
|
|
27997
27997
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
27998
|
-
var update = add("
|
|
27998
|
+
var update = add("75e89484", content, true, {"sourceMap":false,"shadowMode":false});
|
|
27999
27999
|
|
|
28000
28000
|
/***/ }),
|
|
28001
28001
|
|
|
@@ -45138,8 +45138,8 @@ var ecweboffice_component = normalizeComponent(
|
|
|
45138
45138
|
)
|
|
45139
45139
|
|
|
45140
45140
|
/* harmony default export */ var ecweboffice = (ecweboffice_component.exports);
|
|
45141
|
-
;// 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/ecmoa/ecoa/src/webOffice/H5Office.vue?vue&type=template&id=
|
|
45142
|
-
var
|
|
45141
|
+
;// 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/ecmoa/ecoa/src/webOffice/H5Office.vue?vue&type=template&id=587c9eaa&scoped=true
|
|
45142
|
+
var H5Officevue_type_template_id_587c9eaa_scoped_true_render = function render() {
|
|
45143
45143
|
var _vm = this,
|
|
45144
45144
|
_c = _vm._self._c;
|
|
45145
45145
|
return _vm.dialogVisible ? _c('van-popup', {
|
|
@@ -45236,7 +45236,7 @@ var H5Officevue_type_template_id_41efcb3c_scoped_true_render = function render()
|
|
|
45236
45236
|
}
|
|
45237
45237
|
}) : _vm._e()]], 2)]) : _vm._e();
|
|
45238
45238
|
};
|
|
45239
|
-
var
|
|
45239
|
+
var H5Officevue_type_template_id_587c9eaa_scoped_true_staticRenderFns = [];
|
|
45240
45240
|
|
|
45241
45241
|
;// 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/ecmoa/ecoa/src/webOffice/H5Office.vue?vue&type=script&lang=js
|
|
45242
45242
|
function H5Officevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return H5Officevue_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; }, H5Officevue_type_script_lang_js_typeof(o); }
|
|
@@ -45277,7 +45277,8 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45277
45277
|
attachType: null,
|
|
45278
45278
|
appUrl: '',
|
|
45279
45279
|
openType: '',
|
|
45280
|
-
componentKey: Date.now()
|
|
45280
|
+
componentKey: Date.now(),
|
|
45281
|
+
foxitDocId: ''
|
|
45281
45282
|
};
|
|
45282
45283
|
},
|
|
45283
45284
|
computed: {},
|
|
@@ -45386,6 +45387,8 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45386
45387
|
_this3.btnOpenYzdocEditorClick($scope, [], downUrl, attach.fileId || attach.id, attach.fileVer);
|
|
45387
45388
|
} else if (_this3.officeType === 'ech5') {
|
|
45388
45389
|
_this3.btnOpenEcdocEditorClick($scope, [], downUrl, attach.fileId || attach.id, attach.fileVer);
|
|
45390
|
+
} else if (_this3.officeType === 'foxith5') {
|
|
45391
|
+
_this3.btnOpenFoxitjjEditorClick($scope, [], downUrl, 'edit', {});
|
|
45389
45392
|
}
|
|
45390
45393
|
});
|
|
45391
45394
|
},
|
|
@@ -45531,6 +45534,8 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45531
45534
|
_this4.btnOpenYzdocEditorClick($scope, bookmarks, data, params, openType);
|
|
45532
45535
|
} else if (_this4.officeType === 'ech5') {
|
|
45533
45536
|
_this4.btnOpenEcdocEditorClick($scope, bookmarks, downUrl, fileId, fileVer, data);
|
|
45537
|
+
} else if (_this4.officeType === 'foxith5') {
|
|
45538
|
+
_this4.btnOpenFoxitjjEditorClick($scope, bookmarks, downUrl, openType, data);
|
|
45534
45539
|
}
|
|
45535
45540
|
});
|
|
45536
45541
|
}, function (errmsg) {
|
|
@@ -45704,7 +45709,7 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45704
45709
|
onSaveDocClick: function onSaveDocClick() {
|
|
45705
45710
|
var _this6 = this;
|
|
45706
45711
|
return H5Officevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/H5Officevue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
|
|
45707
|
-
var saveRst, uploadUrl;
|
|
45712
|
+
var saveRst, editorIframe, saveTimer, uploadUrl;
|
|
45708
45713
|
return H5Officevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
45709
45714
|
while (1) switch (_context4.prev = _context4.next) {
|
|
45710
45715
|
case 0:
|
|
@@ -45745,6 +45750,28 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45745
45750
|
setTimeout(function () {
|
|
45746
45751
|
_this6.checkYzdocEditorFinished(_this6.$scope, _this6.$scope.fileVersionId, 0, _this6.openType);
|
|
45747
45752
|
}, 1000);
|
|
45753
|
+
} else if (_this6.officeType === 'foxith5') {
|
|
45754
|
+
_this6.$toast({
|
|
45755
|
+
type: 'html',
|
|
45756
|
+
message: '<p style="padding:20px">' + _this6.$tx('ecoa.message.savingFile', '正在保存文件...') + '</p>',
|
|
45757
|
+
duration: 0,
|
|
45758
|
+
forbidClick: true
|
|
45759
|
+
}); //, overlay: true
|
|
45760
|
+
editorIframe = document.querySelector('#editor');
|
|
45761
|
+
if (editorIframe && editorIframe.contentWindow) {
|
|
45762
|
+
editorIframe.contentWindow.saveDocument();
|
|
45763
|
+
}
|
|
45764
|
+
saveTimer = window.setInterval(function () {
|
|
45765
|
+
if (editorIframe.contentWindow.saveVersion) {
|
|
45766
|
+
window.clearInterval(saveTimer);
|
|
45767
|
+
if (editorIframe.contentWindow.saveVersion.status) {
|
|
45768
|
+
_this6.checkFoxitjjdocEditorFinished(_this6.$scope, _this6.foxitDocId, 0, _this6.openType);
|
|
45769
|
+
} else {
|
|
45770
|
+
//this.$dialog.alert({ message: '保存文件失败', type: 'error' })
|
|
45771
|
+
_this6.closeDialog;
|
|
45772
|
+
}
|
|
45773
|
+
}
|
|
45774
|
+
}, 500);
|
|
45748
45775
|
} else if (_this6.officeType === 'ech5') {
|
|
45749
45776
|
// const editor = document.querySelector('#editor').contentWindow
|
|
45750
45777
|
// console.log(editor, 'editor')
|
|
@@ -45781,8 +45808,157 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45781
45808
|
}, _callee4);
|
|
45782
45809
|
}))();
|
|
45783
45810
|
},
|
|
45784
|
-
|
|
45811
|
+
btnOpenFoxitjjEditorClick: function btnOpenFoxitjjEditorClick($scope, bookmarks, downUrl, openType, data) {
|
|
45785
45812
|
var _this7 = this;
|
|
45813
|
+
var appUrl = location.href.split('#')[0].split('mindex.html')[0];
|
|
45814
|
+
if (appUrl.indexOf('//127') !== -1) {
|
|
45815
|
+
appUrl = 'http://toa.ecinc.com.cn:2028/';
|
|
45816
|
+
}
|
|
45817
|
+
var WFBusiDataId = $scope.vo.id;
|
|
45818
|
+
var WFBodyDocId = $scope.wfInstance.bodyDocId;
|
|
45819
|
+
var WfModule = $scope.wfInstance.module;
|
|
45820
|
+
var attachName = WFBodyDocId + '.doc';
|
|
45821
|
+
var attachType = this.attachType;
|
|
45822
|
+
if (downUrl.indexOf('=ATTACH') !== -1) {
|
|
45823
|
+
attachName = downUrl.split('attachsName=')[1].split('&')[0];
|
|
45824
|
+
}
|
|
45825
|
+
if (openType === 'Redlining' || openType === 'RedliningOnce') {
|
|
45826
|
+
attachName = 'RedTitle_' + WFBodyDocId + '.doc';
|
|
45827
|
+
}
|
|
45828
|
+
var uploadUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/upload';
|
|
45829
|
+
uploadUrl += '?busiDataId=' + WFBusiDataId;
|
|
45830
|
+
uploadUrl += '&bodyDocId=' + WFBodyDocId;
|
|
45831
|
+
uploadUrl += '&module=' + WfModule;
|
|
45832
|
+
uploadUrl += '&attachsName=' + attachName;
|
|
45833
|
+
uploadUrl += '&attachsType=' + attachType;
|
|
45834
|
+
uploadUrl += '&topdf=true';
|
|
45835
|
+
uploadUrl += '&saveAs=' + attachName;
|
|
45836
|
+
uploadUrl += '&r=' + Math.random();
|
|
45837
|
+
var foxitOpenType = 'openPreview';
|
|
45838
|
+
if (openType !== 'view') {
|
|
45839
|
+
foxitOpenType = 'openEditor';
|
|
45840
|
+
}
|
|
45841
|
+
var fileTitle = attachName;
|
|
45842
|
+
if (attachType === 'BODY') {
|
|
45843
|
+
fileTitle = $scope.vo.flSubject + '.doc';
|
|
45844
|
+
}
|
|
45845
|
+
this.$http({
|
|
45846
|
+
method: 'GET',
|
|
45847
|
+
url: 'foxitEditor/getEditorUrl',
|
|
45848
|
+
params: {
|
|
45849
|
+
module: WfModule,
|
|
45850
|
+
busiDataId: WFBusiDataId,
|
|
45851
|
+
attachId: '',
|
|
45852
|
+
attachName: attachName,
|
|
45853
|
+
attachType: attachType,
|
|
45854
|
+
fileTitle: fileTitle,
|
|
45855
|
+
bodyDocId: WFBodyDocId,
|
|
45856
|
+
downUrl: appUrl + (data.insertFileUrl || downUrl),
|
|
45857
|
+
uploadUrl: uploadUrl,
|
|
45858
|
+
openType: foxitOpenType
|
|
45859
|
+
}
|
|
45860
|
+
}).then(function (res) {
|
|
45861
|
+
_this7.loaded = false;
|
|
45862
|
+
if (res.code === 'success') {
|
|
45863
|
+
_this7.foxitDocId = res.body.docId;
|
|
45864
|
+
var docId = res.body.docId;
|
|
45865
|
+
var openUrl = './plugins/foxitjj/editor.html?docId=' + docId + '&attachName=' + attachName + '&fileUrl=' + encodeURI(res.body.url);
|
|
45866
|
+
_this7.bodyFileUrl = openUrl;
|
|
45867
|
+
_this7.$scope = $scope;
|
|
45868
|
+
data.bodyFileUrl = appUrl + downUrl + '&ecweb-ticket-' + productCode + '=' + encodeURIComponent(window.$auth.getTicket()) + '&productCode=' + productCode;
|
|
45869
|
+
data.bodyDocId = $scope.wfInstance.bodyDocId;
|
|
45870
|
+
window.redTitleData = data;
|
|
45871
|
+
} else {
|
|
45872
|
+
_this7.$dialog.alert({
|
|
45873
|
+
message: res.message,
|
|
45874
|
+
type: 'error'
|
|
45875
|
+
});
|
|
45876
|
+
}
|
|
45877
|
+
});
|
|
45878
|
+
},
|
|
45879
|
+
checkFoxitjjdocEditorFinished: function checkFoxitjjdocEditorFinished($scope, docId, checkCount, openType) {
|
|
45880
|
+
var _this8 = this;
|
|
45881
|
+
var WFBusiDataId = $scope.vo.id;
|
|
45882
|
+
var WFBodyDocId = $scope.wfInstance.bodyDocId;
|
|
45883
|
+
var WfModule = $scope.wfInstance.module;
|
|
45884
|
+
this.$http({
|
|
45885
|
+
method: 'GET',
|
|
45886
|
+
url: 'foxitEditor/checkFinished',
|
|
45887
|
+
params: {
|
|
45888
|
+
module: WfModule,
|
|
45889
|
+
busiDataId: WFBusiDataId,
|
|
45890
|
+
bodyDocId: WFBodyDocId,
|
|
45891
|
+
docId: docId,
|
|
45892
|
+
checkCount: checkCount
|
|
45893
|
+
}
|
|
45894
|
+
}).then(function (chkRes) {
|
|
45895
|
+
if (chkRes.code === 'success') {
|
|
45896
|
+
if (chkRes.body.waiting) {
|
|
45897
|
+
setTimeout(function () {
|
|
45898
|
+
_this8.checkFoxitjjdocEditorFinished($scope, docId, ++checkCount, openType);
|
|
45899
|
+
}, 1000);
|
|
45900
|
+
} else if (chkRes.body.finished) {
|
|
45901
|
+
_this8.closeDialog();
|
|
45902
|
+
} else if (chkRes.body.saved) {
|
|
45903
|
+
if (_this8.attachType === 'BODY') {
|
|
45904
|
+
var haveDoc = $scope.wfInstance.haveDoc;
|
|
45905
|
+
var signedFileName = $scope.vo.signedFileName;
|
|
45906
|
+
if ($scope.wfInstance.passenger.docEditMode === 'NoTitle') {
|
|
45907
|
+
if (!_this8.openType) {
|
|
45908
|
+
$scope.wfInstance.haveDoc = 1;
|
|
45909
|
+
} else if (_this8.openType === 'Redlining' || _this8.openType === 'RedliningOnce') {
|
|
45910
|
+
$scope.wfInstance.haveDoc = 2;
|
|
45911
|
+
}
|
|
45912
|
+
} else {
|
|
45913
|
+
$scope.wfInstance.haveDoc = 2;
|
|
45914
|
+
}
|
|
45915
|
+
if ($scope.vo.signedFileName) $scope.vo.signedFileName = null;
|
|
45916
|
+
chkRes.body.uploadAttachList.forEach(function (attach) {
|
|
45917
|
+
if (attach.fileName.indexOf('.pdf') || attach.fileName.indexOf('.ofd')) {
|
|
45918
|
+
_this8.$set($scope, 'bodyfile', attach);
|
|
45919
|
+
$scope.bodyfile.bodyFileName = $scope.bodyfile.fileName;
|
|
45920
|
+
$scope.bodyfile.fileName = $scope.vo.flSubject + '.' + $scope.bodyfile.originalName.split('.')[1];
|
|
45921
|
+
}
|
|
45922
|
+
_this8.updateAttachFileVer($scope, attach);
|
|
45923
|
+
});
|
|
45924
|
+
if ($scope.wfInstance.status === -1 || haveDoc !== $scope.wfInstance.haveDoc || signedFileName !== $scope.vo.signedFileName || chkRes.body.uploadAttachList[0].fileVer) {
|
|
45925
|
+
_this8.$nextTick(function () {
|
|
45926
|
+
_this8.$bus.emit('reloadBodyFile');
|
|
45927
|
+
$scope.btnSubmitClick('Save');
|
|
45928
|
+
_this8.closeDialog();
|
|
45929
|
+
});
|
|
45930
|
+
} else {
|
|
45931
|
+
$scope.btnSubmitClick('Save');
|
|
45932
|
+
_this8.$bus.emit('reloadBodyFile');
|
|
45933
|
+
_this8.closeDialog();
|
|
45934
|
+
}
|
|
45935
|
+
_this8.$bus.emit('onTabChanged', 1);
|
|
45936
|
+
} else {
|
|
45937
|
+
chkRes.body.uploadAttachList.forEach(function (attach) {
|
|
45938
|
+
_this8.updateAttachFileVer($scope, attach);
|
|
45939
|
+
});
|
|
45940
|
+
_this8.closeDialog();
|
|
45941
|
+
}
|
|
45942
|
+
_this8.loaded = true;
|
|
45943
|
+
}
|
|
45944
|
+
} else {
|
|
45945
|
+
_this8.$bus.emit('closeDoingDialog');
|
|
45946
|
+
_this8.$dialog.alert({
|
|
45947
|
+
message: chkRes.message,
|
|
45948
|
+
type: 'error'
|
|
45949
|
+
});
|
|
45950
|
+
}
|
|
45951
|
+
}, function (err) {
|
|
45952
|
+
_this8.$bus.emit('closeDoingDialog');
|
|
45953
|
+
_this8.$dialog.alert({
|
|
45954
|
+
message: err.message,
|
|
45955
|
+
type: 'error'
|
|
45956
|
+
});
|
|
45957
|
+
console.log(err);
|
|
45958
|
+
});
|
|
45959
|
+
},
|
|
45960
|
+
checkWpsEditorFinished: function checkWpsEditorFinished($scope, attachId, uploadUrl, checkCount) {
|
|
45961
|
+
var _this9 = this;
|
|
45786
45962
|
this.$http({
|
|
45787
45963
|
method: 'GET',
|
|
45788
45964
|
url: 'wpsOffice/checkFinished',
|
|
@@ -45796,12 +45972,12 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45796
45972
|
if (chkRes.code === 'success') {
|
|
45797
45973
|
if (chkRes.body.waiting) {
|
|
45798
45974
|
setTimeout(function () {
|
|
45799
|
-
|
|
45975
|
+
_this9.checkWpsEditorFinished($scope, attachId, uploadUrl, ++checkCount);
|
|
45800
45976
|
}, 1000);
|
|
45801
45977
|
} else if (chkRes.body.finished) {
|
|
45802
|
-
|
|
45978
|
+
_this9.closeDialog();
|
|
45803
45979
|
} else if (chkRes.body.saved) {
|
|
45804
|
-
if (
|
|
45980
|
+
if (_this9.attachType === 'BODY') {
|
|
45805
45981
|
var haveDoc = $scope.wfInstance.haveDoc;
|
|
45806
45982
|
if (haveDoc !== 2 || $scope.vo.signedFileName) {
|
|
45807
45983
|
$scope.wfInstance.haveDoc = 2;
|
|
@@ -45809,32 +45985,32 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45809
45985
|
}
|
|
45810
45986
|
chkRes.body.uploadAttachList.forEach(function (attach) {
|
|
45811
45987
|
if (attach.fileName.indexOf('.pdf') || attach.fileName.indexOf('.ofd')) {
|
|
45812
|
-
|
|
45988
|
+
_this9.$set($scope, 'bodyfile', attach);
|
|
45813
45989
|
$scope.bodyfile.bodyFileName = $scope.bodyfile.fileName;
|
|
45814
45990
|
$scope.bodyfile.fileName = '文件正文.' + $scope.bodyfile.originalName.split('.')[1];
|
|
45815
45991
|
}
|
|
45816
|
-
|
|
45992
|
+
_this9.updateAttachFileVer($scope, attach);
|
|
45817
45993
|
});
|
|
45818
45994
|
if ($scope.wfInstance.status === -1 || haveDoc === 0) {
|
|
45819
|
-
|
|
45820
|
-
|
|
45995
|
+
_this9.$nextTick(function () {
|
|
45996
|
+
_this9.$bus.emit('reloadBodyFile');
|
|
45821
45997
|
$scope.btnSubmitClick('Save');
|
|
45822
|
-
|
|
45998
|
+
_this9.closeDialog();
|
|
45823
45999
|
});
|
|
45824
46000
|
} else {
|
|
45825
|
-
|
|
45826
|
-
|
|
46001
|
+
_this9.$bus.emit('reloadBodyFile');
|
|
46002
|
+
_this9.closeDialog();
|
|
45827
46003
|
}
|
|
45828
46004
|
} else {
|
|
45829
46005
|
chkRes.body.uploadAttachList.forEach(function (attach) {
|
|
45830
|
-
|
|
46006
|
+
_this9.updateAttachFileVer($scope, attach);
|
|
45831
46007
|
});
|
|
45832
|
-
|
|
46008
|
+
_this9.closeDialog();
|
|
45833
46009
|
}
|
|
45834
46010
|
}
|
|
45835
46011
|
} else {
|
|
45836
|
-
|
|
45837
|
-
|
|
46012
|
+
_this9.$bus.emit('closeDoingDialog');
|
|
46013
|
+
_this9.$dialog.alert({
|
|
45838
46014
|
message: chkRes.message,
|
|
45839
46015
|
type: 'error'
|
|
45840
46016
|
});
|
|
@@ -45842,7 +46018,7 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45842
46018
|
});
|
|
45843
46019
|
},
|
|
45844
46020
|
btnOpenYzdocEditorClick: function btnOpenYzdocEditorClick($scope, bookmarks, data, params, openType) {
|
|
45845
|
-
var
|
|
46021
|
+
var _this10 = this;
|
|
45846
46022
|
var appUrl = location.href.split('#')[0].split('mindex.html')[0];
|
|
45847
46023
|
if (appUrl.indexOf('//127') !== -1 || appUrl.indexOf('//192') !== -1) {
|
|
45848
46024
|
appUrl = 'http://toa.ecinc.com.cn:2028/';
|
|
@@ -45874,20 +46050,20 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45874
46050
|
}
|
|
45875
46051
|
console.log(requestObj, 'requestObj.data');
|
|
45876
46052
|
this.$http(requestObj).then(function (res) {
|
|
45877
|
-
|
|
46053
|
+
_this10.loaded = false;
|
|
45878
46054
|
if (res.code === 'success') {
|
|
45879
46055
|
var apiUrl = res.body.apiUrl;
|
|
45880
46056
|
var appId = res.body.appId;
|
|
45881
46057
|
var sign = res.body.sign;
|
|
45882
46058
|
var fileVersionId = res.body.fileVersionId;
|
|
45883
|
-
|
|
45884
|
-
var fileUrl = apiUrl + 'api/edit/file?fileVersionId=' + fileVersionId + '&userRight=0' + '&appId=' + appId + '&userName=' +
|
|
46059
|
+
_this10.$bus.emit('closeDoingDialog');
|
|
46060
|
+
var fileUrl = apiUrl + 'api/edit/file?fileVersionId=' + fileVersionId + '&userRight=0' + '&appId=' + appId + '&userName=' + _this10.loginUser.personName + '&sign=' + sign;
|
|
45885
46061
|
// const fileUrl = 'api/edit/file?fileVersionId=' + fileVersionId + '&userRight=0' + '&appId=' + appId + '&userName=' + this.loginUser.personName + '&sign=' + sign
|
|
45886
46062
|
|
|
45887
|
-
|
|
46063
|
+
_this10.bodyFileUrl = fileUrl;
|
|
45888
46064
|
console.log(fileUrl);
|
|
45889
|
-
|
|
45890
|
-
|
|
46065
|
+
_this10.$scope = $scope;
|
|
46066
|
+
_this10.$scope.fileVersionId = fileVersionId;
|
|
45891
46067
|
|
|
45892
46068
|
// const docEditor = window.open(fileUrl)
|
|
45893
46069
|
// this.doctimer = setInterval(() => {
|
|
@@ -45899,7 +46075,7 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45899
46075
|
// }
|
|
45900
46076
|
// }, 500)
|
|
45901
46077
|
} else {
|
|
45902
|
-
|
|
46078
|
+
_this10.$dialog.alert({
|
|
45903
46079
|
message: res.message,
|
|
45904
46080
|
type: 'error'
|
|
45905
46081
|
});
|
|
@@ -45907,7 +46083,7 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45907
46083
|
});
|
|
45908
46084
|
},
|
|
45909
46085
|
checkYzdocEditorFinished: function checkYzdocEditorFinished($scope, fileVersionId, checkCount, openType) {
|
|
45910
|
-
var
|
|
46086
|
+
var _this11 = this;
|
|
45911
46087
|
var WFBusiDataId = $scope.vo.id;
|
|
45912
46088
|
var WFBodyDocId = $scope.wfInstance.bodyDocId;
|
|
45913
46089
|
var WfModule = $scope.wfInstance.module;
|
|
@@ -45928,21 +46104,21 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45928
46104
|
if (chkRes.code === 'success') {
|
|
45929
46105
|
if (chkRes.body.waiting) {
|
|
45930
46106
|
setTimeout(function () {
|
|
45931
|
-
|
|
46107
|
+
_this11.checkYzdocEditorFinished($scope, fileVersionId, ++checkCount, openType);
|
|
45932
46108
|
}, 1000);
|
|
45933
46109
|
} else if (chkRes.body.finished) {
|
|
45934
|
-
|
|
46110
|
+
_this11.closeDialog();
|
|
45935
46111
|
} else if (chkRes.body.saved) {
|
|
45936
|
-
if (
|
|
46112
|
+
if (_this11.attachType === 'BODY') {
|
|
45937
46113
|
console.log(chkRes.body, 'chkRes.body ----- > 永中保存完成 ------ 》 406');
|
|
45938
46114
|
var haveDoc = $scope.wfInstance.haveDoc;
|
|
45939
46115
|
var signedFileName = $scope.vo.signedFileName;
|
|
45940
46116
|
if ($scope.wfInstance.passenger.docEditMode === 'NoTitle') {
|
|
45941
46117
|
// NoTitle 模式下
|
|
45942
|
-
if (!
|
|
46118
|
+
if (!_this11.openType) {
|
|
45943
46119
|
// 编辑正文且无红头
|
|
45944
46120
|
$scope.wfInstance.haveDoc = 1;
|
|
45945
|
-
} else if (
|
|
46121
|
+
} else if (_this11.openType === 'Redlining' || _this11.openType === 'RedliningOnce') {
|
|
45946
46122
|
// 套红
|
|
45947
46123
|
$scope.wfInstance.haveDoc = 2;
|
|
45948
46124
|
}
|
|
@@ -45953,44 +46129,46 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45953
46129
|
if ($scope.vo.signedFileName) $scope.vo.signedFileName = null;
|
|
45954
46130
|
chkRes.body.uploadAttachList.forEach(function (attach) {
|
|
45955
46131
|
if (attach.fileName.indexOf('.pdf') || attach.fileName.indexOf('.ofd')) {
|
|
45956
|
-
|
|
46132
|
+
_this11.$set($scope, 'bodyfile', attach);
|
|
46133
|
+
$scope.bodyfile.bodyFileName = $scope.bodyfile.fileName;
|
|
46134
|
+
$scope.bodyfile.fileName = '文件正文.' + $scope.bodyfile.originalName.split('.')[1];
|
|
45957
46135
|
}
|
|
45958
|
-
|
|
46136
|
+
_this11.updateAttachFileVer($scope, attach);
|
|
45959
46137
|
});
|
|
45960
46138
|
if ($scope.wfInstance.status === -1 || haveDoc !== $scope.wfInstance.haveDoc || signedFileName !== $scope.vo.signedFileName || chkRes.body.uploadAttachList[0].fileVer) {
|
|
45961
46139
|
// 保存并刷新
|
|
45962
|
-
|
|
45963
|
-
|
|
46140
|
+
_this11.$nextTick(function () {
|
|
46141
|
+
_this11.$bus.emit('reloadBodyFile');
|
|
45964
46142
|
$scope.btnSubmitClick('Save');
|
|
45965
|
-
|
|
46143
|
+
_this11.closeDialog();
|
|
45966
46144
|
});
|
|
45967
46145
|
} else {
|
|
45968
46146
|
// 仅编辑正文,重置当前正文部分显示
|
|
45969
46147
|
$scope.btnSubmitClick('Save');
|
|
45970
|
-
|
|
45971
|
-
|
|
46148
|
+
_this11.$bus.emit('reloadBodyFile');
|
|
46149
|
+
_this11.closeDialog();
|
|
45972
46150
|
}
|
|
45973
46151
|
|
|
45974
46152
|
// 更新正文位置的按钮
|
|
45975
|
-
|
|
46153
|
+
_this11.$bus.emit('onTabChanged', 1);
|
|
45976
46154
|
} else {
|
|
45977
46155
|
chkRes.body.uploadAttachList.forEach(function (attach) {
|
|
45978
|
-
|
|
46156
|
+
_this11.updateAttachFileVer($scope, attach);
|
|
45979
46157
|
});
|
|
45980
|
-
|
|
46158
|
+
_this11.closeDialog();
|
|
45981
46159
|
}
|
|
45982
|
-
|
|
46160
|
+
_this11.loaded = true;
|
|
45983
46161
|
}
|
|
45984
46162
|
} else {
|
|
45985
|
-
|
|
45986
|
-
|
|
46163
|
+
_this11.$bus.emit('closeDoingDialog');
|
|
46164
|
+
_this11.$dialog.alert({
|
|
45987
46165
|
message: chkRes.message,
|
|
45988
46166
|
type: 'error'
|
|
45989
46167
|
});
|
|
45990
46168
|
}
|
|
45991
46169
|
}, function (err) {
|
|
45992
|
-
|
|
45993
|
-
|
|
46170
|
+
_this11.$bus.emit('closeDoingDialog');
|
|
46171
|
+
_this11.$dialog.alert({
|
|
45994
46172
|
message: err.message,
|
|
45995
46173
|
type: 'error'
|
|
45996
46174
|
});
|
|
@@ -45998,9 +46176,9 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
45998
46176
|
});
|
|
45999
46177
|
},
|
|
46000
46178
|
getSessionId: function getSessionId() {
|
|
46001
|
-
var
|
|
46179
|
+
var _this12 = this;
|
|
46002
46180
|
return new Promise(function (resolve, reject) {
|
|
46003
|
-
|
|
46181
|
+
_this12.$http({
|
|
46004
46182
|
method: 'GET',
|
|
46005
46183
|
params: {
|
|
46006
46184
|
timeLength: 60
|
|
@@ -46016,13 +46194,13 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46016
46194
|
});
|
|
46017
46195
|
},
|
|
46018
46196
|
btnOpenEcdocEditorClick: function btnOpenEcdocEditorClick($scope, bookmarks, downUrl, fileId, fileVer, data) {
|
|
46019
|
-
var
|
|
46197
|
+
var _this13 = this;
|
|
46020
46198
|
return H5Officevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/H5Officevue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
|
|
46021
46199
|
var _this, appUrl, fileName, attachType, insertFileUrl, tSessionId;
|
|
46022
46200
|
return H5Officevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
46023
46201
|
while (1) switch (_context5.prev = _context5.next) {
|
|
46024
46202
|
case 0:
|
|
46025
|
-
_this =
|
|
46203
|
+
_this = _this13;
|
|
46026
46204
|
appUrl = location.href.split('#')[0].split('mindex.html')[0]; // if (appUrl.indexOf('//127') !== -1) {
|
|
46027
46205
|
// appUrl = 'http://192.168.0.100:9529/'
|
|
46028
46206
|
// }
|
|
@@ -46046,7 +46224,7 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46046
46224
|
insertFileUrl = downUrl;
|
|
46047
46225
|
downUrl = data.insertFileUrl;
|
|
46048
46226
|
_context5.next = 12;
|
|
46049
|
-
return
|
|
46227
|
+
return _this13.getSessionId();
|
|
46050
46228
|
case 12:
|
|
46051
46229
|
tSessionId = _context5.sent;
|
|
46052
46230
|
insertFileUrl += '&tSessionId=' + tSessionId;
|
|
@@ -46054,7 +46232,7 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46054
46232
|
console.log(downUrl, 'downUrl');
|
|
46055
46233
|
console.log(insertFileUrl, 'insertFileUrl');
|
|
46056
46234
|
// encodeURIComponent()
|
|
46057
|
-
|
|
46235
|
+
_this13.$http({
|
|
46058
46236
|
method: 'GET',
|
|
46059
46237
|
url: 'wopi/getAccessToken',
|
|
46060
46238
|
params: {
|
|
@@ -46062,20 +46240,20 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46062
46240
|
fileName: fileName
|
|
46063
46241
|
}
|
|
46064
46242
|
}).then(function (res) {
|
|
46065
|
-
|
|
46243
|
+
_this13.loaded = false;
|
|
46066
46244
|
if (res.code === 'success') {
|
|
46067
|
-
|
|
46245
|
+
_this13.tSessionId = res.body.tSessionId;
|
|
46068
46246
|
// this.$bus.emit('closeDoingDialog')
|
|
46069
46247
|
|
|
46070
46248
|
var editorUrl = res.body.editorUrl;
|
|
46071
46249
|
if (editorUrl.indexOf('lang=') < 0) {
|
|
46072
46250
|
editorUrl += '&lang=zh-CN';
|
|
46073
46251
|
}
|
|
46074
|
-
|
|
46252
|
+
_this13.editorUrl = editorUrl;
|
|
46075
46253
|
var docEditor;
|
|
46076
46254
|
new Promise(function (resolve, reject) {
|
|
46077
46255
|
_this.$nextTick(function () {
|
|
46078
|
-
|
|
46256
|
+
_this13.ecweboffice = true;
|
|
46079
46257
|
_this.$nextTick(function () {
|
|
46080
46258
|
docEditor = _this.$refs.ecweboffice;
|
|
46081
46259
|
if (docEditor) {
|
|
@@ -46093,7 +46271,7 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46093
46271
|
var bodyInsered = false;
|
|
46094
46272
|
|
|
46095
46273
|
// const reloadMsg = '正在保存附件,请稍候...'
|
|
46096
|
-
|
|
46274
|
+
_this13.doctimer = setInterval(function () {
|
|
46097
46275
|
// 在线编辑代码开始
|
|
46098
46276
|
docEditor.ShowInsertButton(false);
|
|
46099
46277
|
if (!bodyInsered && data && data.bkInsertFile && data.insertFileUrl) {
|
|
@@ -46115,19 +46293,19 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46115
46293
|
docEditor.InsertBookmarks(bookmarks);
|
|
46116
46294
|
setBookmarked = true;
|
|
46117
46295
|
}
|
|
46118
|
-
if (!
|
|
46119
|
-
clearInterval(
|
|
46296
|
+
if (!_this13.ecweboffice && !_this13.waiting) {
|
|
46297
|
+
clearInterval(_this13.doctimer);
|
|
46120
46298
|
if (window.fileStatus > 0) {
|
|
46121
46299
|
// this.$bus.emit('showDoingDialog', reloadMsg)
|
|
46122
46300
|
|
|
46123
46301
|
var _uploadUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/upload';
|
|
46124
|
-
|
|
46302
|
+
_this13.checkEcincEditorFinished($scope, _this13.tSessionId, _uploadUrl, 0);
|
|
46125
46303
|
}
|
|
46126
46304
|
}
|
|
46127
46305
|
// 在线编辑代码结束
|
|
46128
|
-
if (!
|
|
46129
|
-
clearInterval(
|
|
46130
|
-
|
|
46306
|
+
if (!_this13.ecweboffice) {
|
|
46307
|
+
clearInterval(_this13.doctimer);
|
|
46308
|
+
_this13.btnEcdocSavedClick(true);
|
|
46131
46309
|
}
|
|
46132
46310
|
}, 100);
|
|
46133
46311
|
});
|
|
@@ -46140,24 +46318,24 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46140
46318
|
uploadUrl += '&bodyDocId=' + $scope.wfInstance.bodyDocId;
|
|
46141
46319
|
uploadUrl += '&module=' + $scope.wfInstance.module;
|
|
46142
46320
|
var attachsName = '';
|
|
46143
|
-
if (
|
|
46144
|
-
attachsName = 'RedTitle_' +
|
|
46321
|
+
if (_this13.openType === 'Redlining' || _this13.openType === 'RedliningOnce') {
|
|
46322
|
+
attachsName = 'RedTitle_' + _this13.WFBodyDocId + '.doc';
|
|
46145
46323
|
} else {
|
|
46146
|
-
attachsName =
|
|
46324
|
+
attachsName = _this13.WFBodyDocId + '.doc';
|
|
46147
46325
|
}
|
|
46148
46326
|
uploadUrl += '&attachsName=' + attachsName;
|
|
46149
46327
|
uploadUrl += '&attachsType=' + attachType;
|
|
46150
46328
|
uploadUrl += '&topdf=true';
|
|
46151
|
-
uploadUrl += '&saveAs=' +
|
|
46329
|
+
uploadUrl += '&saveAs=' + _this13.WFBodyDocId + '.doc';
|
|
46152
46330
|
uploadUrl += '&r=' + Math.random();
|
|
46153
46331
|
document.querySelector('#btnSaveDoc').uploadUrl = uploadUrl;
|
|
46154
46332
|
document.querySelector('#btnSaveDoc').checkSave = false;
|
|
46155
46333
|
} else {
|
|
46156
|
-
|
|
46334
|
+
_this13.$dialog.alert({
|
|
46157
46335
|
message: res.message,
|
|
46158
46336
|
type: 'error'
|
|
46159
46337
|
});
|
|
46160
|
-
|
|
46338
|
+
_this13.dialogVisible = false;
|
|
46161
46339
|
}
|
|
46162
46340
|
});
|
|
46163
46341
|
case 17:
|
|
@@ -46168,7 +46346,7 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46168
46346
|
}))();
|
|
46169
46347
|
},
|
|
46170
46348
|
checkEcincEditorFinished: function checkEcincEditorFinished($scope, fileId, uploadUrl, checkCount) {
|
|
46171
|
-
var
|
|
46349
|
+
var _this14 = this;
|
|
46172
46350
|
this.$http({
|
|
46173
46351
|
method: 'GET',
|
|
46174
46352
|
url: 'wopi/checkFinished',
|
|
@@ -46181,15 +46359,15 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46181
46359
|
if (chkRes.code === 'success') {
|
|
46182
46360
|
if (chkRes.body.waiting) {
|
|
46183
46361
|
setTimeout(function () {
|
|
46184
|
-
|
|
46362
|
+
_this14.checkEcincEditorFinished($scope, fileId, uploadUrl, ++checkCount);
|
|
46185
46363
|
}, 1000);
|
|
46186
46364
|
} else if (chkRes.body.finished) {
|
|
46187
46365
|
// this.$bus.emit('closeDoingDialog')
|
|
46188
|
-
|
|
46366
|
+
_this14.closeDialog();
|
|
46189
46367
|
} else if (chkRes.body.saved) {
|
|
46190
|
-
|
|
46191
|
-
|
|
46192
|
-
if (
|
|
46368
|
+
_this14.loaded = true;
|
|
46369
|
+
_this14.dialogVisible = false;
|
|
46370
|
+
if (_this14.attachType === 'BODY') {
|
|
46193
46371
|
var haveDoc = $scope.wfInstance.haveDoc;
|
|
46194
46372
|
var signedFileName = $scope.vo.signedFileName;
|
|
46195
46373
|
// if (haveDoc !== 2 || $scope.vo.signedFileName) {
|
|
@@ -46199,10 +46377,10 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46199
46377
|
|
|
46200
46378
|
if ($scope.wfInstance.passenger.docEditMode === 'NoTitle') {
|
|
46201
46379
|
// NoTitle 模式
|
|
46202
|
-
if (!
|
|
46380
|
+
if (!_this14.openType) {
|
|
46203
46381
|
// 编辑正文且无红头
|
|
46204
46382
|
$scope.wfInstance.haveDoc = 1;
|
|
46205
|
-
} else if (
|
|
46383
|
+
} else if (_this14.openType === 'Redlining' || _this14.openType === 'RedliningOnce') {
|
|
46206
46384
|
// 套红
|
|
46207
46385
|
$scope.wfInstance.haveDoc = 2;
|
|
46208
46386
|
}
|
|
@@ -46214,33 +46392,33 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46214
46392
|
chkRes.body.uploadAttachList.forEach(function (attach) {
|
|
46215
46393
|
if (attach.fileName.indexOf('.pdf') || attach.fileName.indexOf('.ofd')) {
|
|
46216
46394
|
attach.fileName = '文件正文.pdf';
|
|
46217
|
-
|
|
46395
|
+
_this14.$set($scope, 'bodyfile', attach);
|
|
46218
46396
|
}
|
|
46219
|
-
|
|
46397
|
+
_this14.updateAttachFileVer($scope, attach);
|
|
46220
46398
|
});
|
|
46221
46399
|
if ($scope.wfInstance.status === -1 || haveDoc !== $scope.wfInstance.haveDoc || signedFileName !== $scope.vo.signedFileName || chkRes.body.uploadAttachList[0].fileVer) {
|
|
46222
46400
|
// 保存并刷新
|
|
46223
|
-
|
|
46401
|
+
_this14.$nextTick(function () {
|
|
46224
46402
|
if ($scope.wfInstance.status === -1) {
|
|
46225
46403
|
$scope.btnSubmitClick('AutoSave', function () {
|
|
46226
|
-
|
|
46227
|
-
|
|
46404
|
+
_this14.$bus.emit('reloadBodyFile');
|
|
46405
|
+
_this14.closeDialog();
|
|
46228
46406
|
});
|
|
46229
46407
|
} else {
|
|
46230
46408
|
$scope.btnSubmitClick('SaveAndReload');
|
|
46231
|
-
|
|
46409
|
+
_this14.closeDialog();
|
|
46232
46410
|
}
|
|
46233
46411
|
});
|
|
46234
46412
|
} else {
|
|
46235
46413
|
// 仅编辑正文,重置当前正文部分显示
|
|
46236
46414
|
$scope.btnSubmitClick('AutoSave', function () {
|
|
46237
|
-
|
|
46415
|
+
_this14.$bus.emit('reloadBodyFile');
|
|
46238
46416
|
});
|
|
46239
|
-
|
|
46417
|
+
_this14.closeDialog();
|
|
46240
46418
|
}
|
|
46241
46419
|
|
|
46242
46420
|
// 更新正文位置的按钮
|
|
46243
|
-
|
|
46421
|
+
_this14.$bus.emit('onTabChanged', 0);
|
|
46244
46422
|
|
|
46245
46423
|
// if ($scope.wfInstance.status === -1 || haveDoc === 0) {
|
|
46246
46424
|
// this.$nextTick(() => {
|
|
@@ -46255,17 +46433,17 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46255
46433
|
// }
|
|
46256
46434
|
} else {
|
|
46257
46435
|
chkRes.body.uploadAttachList.forEach(function (attach) {
|
|
46258
|
-
|
|
46436
|
+
_this14.updateAttachFileVer($scope, attach);
|
|
46259
46437
|
});
|
|
46260
|
-
|
|
46438
|
+
_this14.closeDialog();
|
|
46261
46439
|
}
|
|
46262
46440
|
}
|
|
46263
46441
|
} else {
|
|
46264
|
-
|
|
46442
|
+
_this14.$dialog.alert({
|
|
46265
46443
|
message: chkRes.message,
|
|
46266
46444
|
type: 'error'
|
|
46267
46445
|
});
|
|
46268
|
-
|
|
46446
|
+
_this14.$bus.emit('closeDoingDialog');
|
|
46269
46447
|
}
|
|
46270
46448
|
});
|
|
46271
46449
|
},
|
|
@@ -46302,9 +46480,9 @@ function H5Officevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != H5O
|
|
|
46302
46480
|
});
|
|
46303
46481
|
;// CONCATENATED MODULE: ./packages/ecmoa/ecoa/src/webOffice/H5Office.vue?vue&type=script&lang=js
|
|
46304
46482
|
/* harmony default export */ var webOffice_H5Officevue_type_script_lang_js = (H5Officevue_type_script_lang_js);
|
|
46305
|
-
// 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/ecmoa/ecoa/src/webOffice/H5Office.vue?vue&type=style&index=0&id=
|
|
46306
|
-
var
|
|
46307
|
-
;// CONCATENATED MODULE: ./packages/ecmoa/ecoa/src/webOffice/H5Office.vue?vue&type=style&index=0&id=
|
|
46483
|
+
// 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/ecmoa/ecoa/src/webOffice/H5Office.vue?vue&type=style&index=0&id=587c9eaa&prod&scoped=true&lang=scss
|
|
46484
|
+
var H5Officevue_type_style_index_0_id_587c9eaa_prod_scoped_true_lang_scss = __webpack_require__(3951);
|
|
46485
|
+
;// CONCATENATED MODULE: ./packages/ecmoa/ecoa/src/webOffice/H5Office.vue?vue&type=style&index=0&id=587c9eaa&prod&scoped=true&lang=scss
|
|
46308
46486
|
|
|
46309
46487
|
;// CONCATENATED MODULE: ./packages/ecmoa/ecoa/src/webOffice/H5Office.vue
|
|
46310
46488
|
|
|
@@ -46317,18 +46495,18 @@ var H5Officevue_type_style_index_0_id_41efcb3c_prod_scoped_true_lang_scss = __we
|
|
|
46317
46495
|
|
|
46318
46496
|
var H5Office_component = normalizeComponent(
|
|
46319
46497
|
webOffice_H5Officevue_type_script_lang_js,
|
|
46320
|
-
|
|
46321
|
-
|
|
46498
|
+
H5Officevue_type_template_id_587c9eaa_scoped_true_render,
|
|
46499
|
+
H5Officevue_type_template_id_587c9eaa_scoped_true_staticRenderFns,
|
|
46322
46500
|
false,
|
|
46323
46501
|
null,
|
|
46324
|
-
"
|
|
46502
|
+
"587c9eaa",
|
|
46325
46503
|
null
|
|
46326
46504
|
|
|
46327
46505
|
)
|
|
46328
46506
|
|
|
46329
46507
|
/* harmony default export */ var H5Office = (H5Office_component.exports);
|
|
46330
|
-
;// 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/ecmoa/ecoa/src/wfTaskItem/index.vue?vue&type=template&id=
|
|
46331
|
-
var
|
|
46508
|
+
;// 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/ecmoa/ecoa/src/wfTaskItem/index.vue?vue&type=template&id=495f4af2&scoped=true
|
|
46509
|
+
var wfTaskItemvue_type_template_id_495f4af2_scoped_true_render = function render() {
|
|
46332
46510
|
var _vm = this,
|
|
46333
46511
|
_c = _vm._self._c;
|
|
46334
46512
|
return _c('div', {
|
|
@@ -46475,7 +46653,7 @@ var wfTaskItemvue_type_template_id_534df5d4_scoped_true_render = function render
|
|
|
46475
46653
|
})]) : _vm._e(), _c('span', [_vm._v(_vm._s(flow.name))])])], 2);
|
|
46476
46654
|
}), 1)], 1) : _vm._e(), _c('TaskItemTypeTree')], 1);
|
|
46477
46655
|
};
|
|
46478
|
-
var
|
|
46656
|
+
var wfTaskItemvue_type_template_id_495f4af2_scoped_true_staticRenderFns = [];
|
|
46479
46657
|
|
|
46480
46658
|
;// 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/ecmoa/ecoa/src/wfTaskItem/TaskItemTypeTree.vue?vue&type=template&id=4b3a9d6a&scoped=true
|
|
46481
46659
|
var TaskItemTypeTreevue_type_template_id_4b3a9d6a_scoped_true_render = function render() {
|
|
@@ -47662,7 +47840,11 @@ function wfTaskItemvue_type_script_lang_js_asyncToGenerator(n) { return function
|
|
|
47662
47840
|
|
|
47663
47841
|
// }
|
|
47664
47842
|
if (itemType == 'TODO' || itemType == 'DRAFT') {
|
|
47665
|
-
val.status == 1
|
|
47843
|
+
if (val.status == 1) {
|
|
47844
|
+
itemType = 'DONE';
|
|
47845
|
+
} else {
|
|
47846
|
+
itemType = 'TODO';
|
|
47847
|
+
}
|
|
47666
47848
|
url = 'workflow/wfTaskItemAttend/setAttend';
|
|
47667
47849
|
params = {
|
|
47668
47850
|
attend: 0,
|
|
@@ -47670,14 +47852,18 @@ function wfTaskItemvue_type_script_lang_js_asyncToGenerator(n) { return function
|
|
|
47670
47852
|
itemType: itemType
|
|
47671
47853
|
};
|
|
47672
47854
|
} else if (itemType == 'TOREAD') {
|
|
47673
|
-
|
|
47855
|
+
if (val.status == 1) {
|
|
47856
|
+
itemType = 'DONE';
|
|
47857
|
+
} else {
|
|
47858
|
+
itemType = 'TODO';
|
|
47859
|
+
}
|
|
47674
47860
|
params = {
|
|
47675
47861
|
attend: 0,
|
|
47676
47862
|
id: val.id,
|
|
47677
47863
|
itemType: itemType
|
|
47678
47864
|
};
|
|
47679
47865
|
if (val.attend === 1) {
|
|
47680
|
-
itemType = 'Attend'
|
|
47866
|
+
// itemType = 'Attend'
|
|
47681
47867
|
url = 'workflow/wfTaskItemAttend/batchAttend';
|
|
47682
47868
|
params = {
|
|
47683
47869
|
attend: 0,
|
|
@@ -47881,9 +48067,9 @@ function wfTaskItemvue_type_script_lang_js_asyncToGenerator(n) { return function
|
|
|
47881
48067
|
});
|
|
47882
48068
|
;// CONCATENATED MODULE: ./packages/ecmoa/ecoa/src/wfTaskItem/index.vue?vue&type=script&lang=js
|
|
47883
48069
|
/* harmony default export */ var src_wfTaskItemvue_type_script_lang_js = (wfTaskItemvue_type_script_lang_js);
|
|
47884
|
-
// 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/ecmoa/ecoa/src/wfTaskItem/index.vue?vue&type=style&index=0&id=
|
|
47885
|
-
var
|
|
47886
|
-
;// CONCATENATED MODULE: ./packages/ecmoa/ecoa/src/wfTaskItem/index.vue?vue&type=style&index=0&id=
|
|
48070
|
+
// 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/ecmoa/ecoa/src/wfTaskItem/index.vue?vue&type=style&index=0&id=495f4af2&prod&scoped=true&lang=scss
|
|
48071
|
+
var wfTaskItemvue_type_style_index_0_id_495f4af2_prod_scoped_true_lang_scss = __webpack_require__(2351);
|
|
48072
|
+
;// CONCATENATED MODULE: ./packages/ecmoa/ecoa/src/wfTaskItem/index.vue?vue&type=style&index=0&id=495f4af2&prod&scoped=true&lang=scss
|
|
47887
48073
|
|
|
47888
48074
|
;// CONCATENATED MODULE: ./packages/ecmoa/ecoa/src/wfTaskItem/index.vue
|
|
47889
48075
|
|
|
@@ -47896,11 +48082,11 @@ var wfTaskItemvue_type_style_index_0_id_534df5d4_prod_scoped_true_lang_scss = __
|
|
|
47896
48082
|
|
|
47897
48083
|
var wfTaskItem_component = normalizeComponent(
|
|
47898
48084
|
src_wfTaskItemvue_type_script_lang_js,
|
|
47899
|
-
|
|
47900
|
-
|
|
48085
|
+
wfTaskItemvue_type_template_id_495f4af2_scoped_true_render,
|
|
48086
|
+
wfTaskItemvue_type_template_id_495f4af2_scoped_true_staticRenderFns,
|
|
47901
48087
|
false,
|
|
47902
48088
|
null,
|
|
47903
|
-
"
|
|
48089
|
+
"495f4af2",
|
|
47904
48090
|
null
|
|
47905
48091
|
|
|
47906
48092
|
)
|