eoss-ui 0.4.95 → 0.4.96
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/eoss-ui.common.js +15 -10
- package/lib/flow.js +9 -4
- package/lib/index.js +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/toolbar.css +1 -1
- package/package.json +1 -1
- package/packages/flow/src/main.vue +58 -51
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/toolbar.css +1 -1
- package/packages/theme-chalk/src/toolbar.scss +7 -0
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:12px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}.es-toolbar .el-form-item__content,.es-toolbar .el-form-item__label{line-height:32px!important}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}
|
|
1
|
+
@charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:12px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange{max-width:300px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-input__icon,.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-range-separator{line-height:24px}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}.es-toolbar .el-form-item__content,.es-toolbar .el-form-item__label{line-height:32px!important}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}
|
package/package.json
CHANGED
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
/>
|
|
275
275
|
</el-form-item>
|
|
276
276
|
<el-form-item
|
|
277
|
-
v-if="isMainSubProcess"
|
|
277
|
+
v-if="isMainSubProcess && isNodeShowProcess"
|
|
278
278
|
prop="mainSubId"
|
|
279
279
|
label="主办"
|
|
280
280
|
>
|
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
"
|
|
502
502
|
trigger="click"
|
|
503
503
|
placement="top"
|
|
504
|
-
style="border-left:1px solid #d9d9d9"
|
|
504
|
+
style="border-left: 1px solid #d9d9d9"
|
|
505
505
|
>
|
|
506
506
|
<el-button>...</el-button>
|
|
507
507
|
<el-dropdown-menu slot="dropdown">
|
|
@@ -778,6 +778,7 @@ export default {
|
|
|
778
778
|
isHideCurrentOrg: false, //是否隐藏本单位(承办)
|
|
779
779
|
isHideOtherOrg: false, //是否隐藏外单位(承办)
|
|
780
780
|
isMainSubProcess: false, // 判断是否子-主流程
|
|
781
|
+
isNodeShowProcess: false, //是否展示主办
|
|
781
782
|
isNextUser: false,
|
|
782
783
|
isShowNode: false,
|
|
783
784
|
nextNodeList: [],
|
|
@@ -945,7 +946,7 @@ export default {
|
|
|
945
946
|
},
|
|
946
947
|
methods: {
|
|
947
948
|
getsubProcessColumns() {
|
|
948
|
-
if (!this.isMainSubProcess) return [];
|
|
949
|
+
if (!this.isMainSubProcess || !this.isNodeShowProcess) return [];
|
|
949
950
|
let data = [];
|
|
950
951
|
let obj = { name: '[部门员工]-' };
|
|
951
952
|
if (this.nextCurrentOrgObjSelect.length > 0) {
|
|
@@ -1644,6 +1645,9 @@ export default {
|
|
|
1644
1645
|
this.nodeType = data.nodeExtAttr.nodeType;
|
|
1645
1646
|
//如果当前为承办节点/会签节点,则展示本单位外单位办理人选择
|
|
1646
1647
|
if (this.nodeType === 1 || this.nodeType === 2) {
|
|
1648
|
+
this.isMainSubProcess === true
|
|
1649
|
+
? (this.isNodeShowProcess = true)
|
|
1650
|
+
: (this.isNodeShowProcess = false);
|
|
1647
1651
|
this.isMainSubProcess === true
|
|
1648
1652
|
? (this.isMainSubProcess = true)
|
|
1649
1653
|
: (this.isMainSubProcess = false);
|
|
@@ -1655,6 +1659,7 @@ export default {
|
|
|
1655
1659
|
} else {
|
|
1656
1660
|
this.isHideCurrentOrg = false;
|
|
1657
1661
|
this.isHideOtherOrg = false;
|
|
1662
|
+
this.isNodeShowProcess = false;
|
|
1658
1663
|
this.isMainSubProcess = false;
|
|
1659
1664
|
this.isNextUser = true;
|
|
1660
1665
|
// this.isMainSubProcess === true
|
|
@@ -1748,6 +1753,7 @@ export default {
|
|
|
1748
1753
|
this.isNextUser = false;
|
|
1749
1754
|
this.isShowNode = false;
|
|
1750
1755
|
this.isMainSubProcess = false;
|
|
1756
|
+
this.isNodeShowProcess = false;
|
|
1751
1757
|
this.nextNode.nextNodeId = '';
|
|
1752
1758
|
this.nextNode.isReturnSubmitter = 0;
|
|
1753
1759
|
this.nextNode.isUndertakeReply = 0;
|
|
@@ -2255,7 +2261,7 @@ export default {
|
|
|
2255
2261
|
this.value = this.value.replace(RegExp('同意。', 'g'), '');
|
|
2256
2262
|
this.value = val + this.value;
|
|
2257
2263
|
}
|
|
2258
|
-
if(!this.validInfo()) return
|
|
2264
|
+
if (!this.validInfo()) return;
|
|
2259
2265
|
if (this.beforeSubmit == undefined) {
|
|
2260
2266
|
this.subFun(this.sendData);
|
|
2261
2267
|
} else {
|
|
@@ -2269,58 +2275,59 @@ export default {
|
|
|
2269
2275
|
});
|
|
2270
2276
|
},
|
|
2271
2277
|
validInfo() {
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
if (
|
|
2285
|
-
this.nextNode.nextUserId == '' ||
|
|
2286
|
-
(this.multiple && this.nextNode.nextUserId.length == 0)
|
|
2287
|
-
) {
|
|
2288
|
-
this.$message.warning('请选择下步办理人');
|
|
2289
|
-
return false
|
|
2290
|
-
}
|
|
2291
|
-
} else {
|
|
2292
|
-
if (
|
|
2293
|
-
this.nextNode.nextOrgId == '' ||
|
|
2294
|
-
(this.multiple && this.nextNode.nextOrgId.length == 0)
|
|
2295
|
-
) {
|
|
2296
|
-
this.$message.warning('请选择办理对象');
|
|
2297
|
-
return false
|
|
2298
|
-
}
|
|
2299
|
-
}
|
|
2300
|
-
}
|
|
2301
|
-
|
|
2302
|
-
if (
|
|
2303
|
-
this.nextNode.isAddSign == '1' &&
|
|
2304
|
-
this.nextNode.addSignUserId.length == 0
|
|
2305
|
-
)
|
|
2306
|
-
{this.$message.warning('请选择加签办理人');
|
|
2307
|
-
return false}
|
|
2278
|
+
if (
|
|
2279
|
+
!this.endFlow &&
|
|
2280
|
+
this.newTypeCode != 'fenyue' &&
|
|
2281
|
+
!this.shrink &&
|
|
2282
|
+
this.nextNode.isAddSign != '1' &&
|
|
2283
|
+
this.nextNode.isRemoveSign != '1' &&
|
|
2284
|
+
this.isSpecial &&
|
|
2285
|
+
!this.isReject &&
|
|
2286
|
+
this.nodeInfos.length != 0 &&
|
|
2287
|
+
this.isNextUser
|
|
2288
|
+
) {
|
|
2289
|
+
if (this.isShowNextUser) {
|
|
2308
2290
|
if (
|
|
2309
|
-
this.nextNode.
|
|
2310
|
-
this.nextNode.
|
|
2311
|
-
){
|
|
2312
|
-
|
|
2313
|
-
return false
|
|
2314
|
-
}
|
|
2315
|
-
if (!this.value && this.isOpinionRequired === 1) {
|
|
2316
|
-
this.$message.warning('请选择输入审批意见');
|
|
2291
|
+
this.nextNode.nextUserId == '' ||
|
|
2292
|
+
(this.multiple && this.nextNode.nextUserId.length == 0)
|
|
2293
|
+
) {
|
|
2294
|
+
this.$message.warning('请选择下步办理人');
|
|
2317
2295
|
return false;
|
|
2318
2296
|
}
|
|
2319
|
-
|
|
2320
|
-
|
|
2297
|
+
} else {
|
|
2298
|
+
if (
|
|
2299
|
+
this.nextNode.nextOrgId == '' ||
|
|
2300
|
+
(this.multiple && this.nextNode.nextOrgId.length == 0)
|
|
2301
|
+
) {
|
|
2302
|
+
this.$message.warning('请选择办理对象');
|
|
2321
2303
|
return false;
|
|
2322
2304
|
}
|
|
2323
|
-
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
if (
|
|
2309
|
+
this.nextNode.isAddSign == '1' &&
|
|
2310
|
+
this.nextNode.addSignUserId.length == 0
|
|
2311
|
+
) {
|
|
2312
|
+
this.$message.warning('请选择加签办理人');
|
|
2313
|
+
return false;
|
|
2314
|
+
}
|
|
2315
|
+
if (
|
|
2316
|
+
this.nextNode.isRemoveSign == '1' &&
|
|
2317
|
+
this.nextNode.removeSignUserId.length == 0
|
|
2318
|
+
) {
|
|
2319
|
+
this.$message.warning('请选择减签办理人');
|
|
2320
|
+
return false;
|
|
2321
|
+
}
|
|
2322
|
+
if (!this.value && this.isOpinionRequired === 1) {
|
|
2323
|
+
this.$message.warning('请选择输入审批意见');
|
|
2324
|
+
return false;
|
|
2325
|
+
}
|
|
2326
|
+
if (this.isHideCurrentOrg && !this.nextNode.nextCurrentOrgObjJson) {
|
|
2327
|
+
this.$message.warning(`请选择${this.currentOrgName || '本单位'}`);
|
|
2328
|
+
return false;
|
|
2329
|
+
}
|
|
2330
|
+
return true;
|
|
2324
2331
|
},
|
|
2325
2332
|
sendData() {
|
|
2326
2333
|
this.$refs['nextNode'].validate(async (valid) => {
|