ecinc-cloud-wappaio 9.0.137 → 9.0.138
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/ecwappaio.common.js
CHANGED
|
@@ -228197,19 +228197,19 @@ var wfengine_install = function install(Vue) {
|
|
|
228197
228197
|
var attachShortName = $scope.attachments[i].fileName.substring(0, $scope.attachments[i].fileName.lastIndexOf('.'));
|
|
228198
228198
|
if ($scope.attachments[i].fileType.toUpperCase() === 'BODY') {
|
|
228199
228199
|
if (attachShortName === bydyShortName || $scope.attachments[i].originalName.split('.')[0] === bydyShortName) {
|
|
228200
|
-
// pdf
|
|
228201
|
-
if (
|
|
228200
|
+
// pdf格式优先
|
|
228201
|
+
if (!$scope.bodyfile || $scope.attachments[i].originalName.indexOf('.pdf') !== -1) {
|
|
228202
228202
|
$scope.bodyfile = $scope.attachments[i];
|
|
228203
228203
|
}
|
|
228204
228204
|
}
|
|
228205
|
-
if ($scope.attachments[i].originalName.indexOf('.doc') !== -1 && $scope.attachments[i].originalName.split('.')[0] === $scope.wfInstance.bodyDocId
|
|
228205
|
+
if ($scope.attachments[i].originalName.indexOf('.doc') !== -1 && $scope.attachments[i].originalName.split('.')[0] === $scope.wfInstance.bodyDocId) {
|
|
228206
228206
|
canEditBodyfile = true;
|
|
228207
228207
|
}
|
|
228208
228208
|
}
|
|
228209
228209
|
}
|
|
228210
|
-
if (
|
|
228210
|
+
if (!$scope.bodyfile) {
|
|
228211
228211
|
for (var _i = 0; _i < $scope.attachments.length; _i++) {
|
|
228212
|
-
if ($scope.attachments[_i].fileType.toUpperCase() === 'BODY' &&
|
|
228212
|
+
if ($scope.attachments[_i].fileType.toUpperCase() === 'BODY' && $scope.attachments[_i].originalName.indexOf('.pdf') !== -1) {
|
|
228213
228213
|
$scope.bodyfile = $scope.attachments[_i];
|
|
228214
228214
|
}
|
|
228215
228215
|
}
|
|
@@ -228221,14 +228221,15 @@ var wfengine_install = function install(Vue) {
|
|
|
228221
228221
|
} else {
|
|
228222
228222
|
for (var _i2 = 0; _i2 < $scope.attachments.length; _i2++) {
|
|
228223
228223
|
if ($scope.attachments[_i2].fileType.toUpperCase() === 'BODY') {
|
|
228224
|
-
|
|
228225
|
-
|
|
228226
|
-
if ($scope.bodyfile === undefined || $scope.bodyfile === null || $scope.attachments[_i2].originalName.indexOf('.pdf') !== -1 || $scope.attachments[_i2].filePath.indexOf('/noTracks/') !== -1) {
|
|
228224
|
+
if ($scope.attachments[_i2].originalName.split('.')[0] === $scope.wfInstance.bodyDocId) {
|
|
228225
|
+
if (!$scope.bodyfile || $scope.attachments[_i2].originalName.indexOf('.pdf') !== -1 || $scope.attachments[_i2].filePath.indexOf('/noTracks/') !== -1) {
|
|
228227
228226
|
// pdf格式优先、无修订DOC优先
|
|
228228
228227
|
$scope.bodyfile = $scope.attachments[_i2];
|
|
228229
228228
|
}
|
|
228230
228229
|
} else if ($scope.attachments[_i2].fileName.indexOf('RedTitle_') === 0 && $scope.attachments[_i2].originalName.indexOf('.pdf') !== -1) {
|
|
228231
228230
|
$scope.bodyfile = $scope.attachments[_i2];
|
|
228231
|
+
} else if ($scope.attachments[_i2].fileName.indexOf('NoTracks_') === 0 && $scope.attachments[_i2].originalName.indexOf('.pdf') !== -1) {
|
|
228232
|
+
$scope.bodyfile = $scope.attachments[_i2];
|
|
228232
228233
|
} else if ($scope.attachments[_i2].fileName.indexOf('SignedFile_') === 0) {
|
|
228233
228234
|
$scope.bodyfile = $scope.attachments[_i2];
|
|
228234
228235
|
}
|
package/lib/ecwappaio.umd.js
CHANGED
|
@@ -228207,19 +228207,19 @@ var wfengine_install = function install(Vue) {
|
|
|
228207
228207
|
var attachShortName = $scope.attachments[i].fileName.substring(0, $scope.attachments[i].fileName.lastIndexOf('.'));
|
|
228208
228208
|
if ($scope.attachments[i].fileType.toUpperCase() === 'BODY') {
|
|
228209
228209
|
if (attachShortName === bydyShortName || $scope.attachments[i].originalName.split('.')[0] === bydyShortName) {
|
|
228210
|
-
// pdf
|
|
228211
|
-
if (
|
|
228210
|
+
// pdf格式优先
|
|
228211
|
+
if (!$scope.bodyfile || $scope.attachments[i].originalName.indexOf('.pdf') !== -1) {
|
|
228212
228212
|
$scope.bodyfile = $scope.attachments[i];
|
|
228213
228213
|
}
|
|
228214
228214
|
}
|
|
228215
|
-
if ($scope.attachments[i].originalName.indexOf('.doc') !== -1 && $scope.attachments[i].originalName.split('.')[0] === $scope.wfInstance.bodyDocId
|
|
228215
|
+
if ($scope.attachments[i].originalName.indexOf('.doc') !== -1 && $scope.attachments[i].originalName.split('.')[0] === $scope.wfInstance.bodyDocId) {
|
|
228216
228216
|
canEditBodyfile = true;
|
|
228217
228217
|
}
|
|
228218
228218
|
}
|
|
228219
228219
|
}
|
|
228220
|
-
if (
|
|
228220
|
+
if (!$scope.bodyfile) {
|
|
228221
228221
|
for (var _i = 0; _i < $scope.attachments.length; _i++) {
|
|
228222
|
-
if ($scope.attachments[_i].fileType.toUpperCase() === 'BODY' &&
|
|
228222
|
+
if ($scope.attachments[_i].fileType.toUpperCase() === 'BODY' && $scope.attachments[_i].originalName.indexOf('.pdf') !== -1) {
|
|
228223
228223
|
$scope.bodyfile = $scope.attachments[_i];
|
|
228224
228224
|
}
|
|
228225
228225
|
}
|
|
@@ -228231,14 +228231,15 @@ var wfengine_install = function install(Vue) {
|
|
|
228231
228231
|
} else {
|
|
228232
228232
|
for (var _i2 = 0; _i2 < $scope.attachments.length; _i2++) {
|
|
228233
228233
|
if ($scope.attachments[_i2].fileType.toUpperCase() === 'BODY') {
|
|
228234
|
-
|
|
228235
|
-
|
|
228236
|
-
if ($scope.bodyfile === undefined || $scope.bodyfile === null || $scope.attachments[_i2].originalName.indexOf('.pdf') !== -1 || $scope.attachments[_i2].filePath.indexOf('/noTracks/') !== -1) {
|
|
228234
|
+
if ($scope.attachments[_i2].originalName.split('.')[0] === $scope.wfInstance.bodyDocId) {
|
|
228235
|
+
if (!$scope.bodyfile || $scope.attachments[_i2].originalName.indexOf('.pdf') !== -1 || $scope.attachments[_i2].filePath.indexOf('/noTracks/') !== -1) {
|
|
228237
228236
|
// pdf格式优先、无修订DOC优先
|
|
228238
228237
|
$scope.bodyfile = $scope.attachments[_i2];
|
|
228239
228238
|
}
|
|
228240
228239
|
} else if ($scope.attachments[_i2].fileName.indexOf('RedTitle_') === 0 && $scope.attachments[_i2].originalName.indexOf('.pdf') !== -1) {
|
|
228241
228240
|
$scope.bodyfile = $scope.attachments[_i2];
|
|
228241
|
+
} else if ($scope.attachments[_i2].fileName.indexOf('NoTracks_') === 0 && $scope.attachments[_i2].originalName.indexOf('.pdf') !== -1) {
|
|
228242
|
+
$scope.bodyfile = $scope.attachments[_i2];
|
|
228242
228243
|
} else if ($scope.attachments[_i2].fileName.indexOf('SignedFile_') === 0) {
|
|
228243
228244
|
$scope.bodyfile = $scope.attachments[_i2];
|
|
228244
228245
|
}
|