ocpview-plus 1.2.8 → 1.3.0
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/dist/ocpviewplus.min.esm.js +67 -121
- package/dist/ocpviewplus.min.js +14 -14
- package/package.json +1 -1
- package/src/components/masterplate/RewriteListdetails/indexV3.vue +4 -0
- package/src/components/masterplate/base.vue +3 -0
- package/src/components/masterplate/billdetailform.vue +4 -154
- package/src/components/masterplate/billquerygrid.vue +9 -3
- package/src/components/masterplate/contractappendix.vue +10 -3
- package/src/components/masterplate/layouttemplate.vue +1 -1
- package/src/components/masterplate/lefttreerightdetails.vue +1 -1
- package/src/components/tree/basetree.vue +33 -1
|
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
|
|
|
453
453
|
common.initAnchor(ViewUI2.Anchor);
|
|
454
454
|
};
|
|
455
455
|
const name = "ocpview-plus";
|
|
456
|
-
const version$2 = "1.
|
|
456
|
+
const version$2 = "1.3.0";
|
|
457
457
|
const title = "ocpviewPlus";
|
|
458
458
|
const description = "A high quality Service UI components Library with Vue.js";
|
|
459
459
|
const homepage = "";
|
|
@@ -34959,7 +34959,38 @@ const _sfc_main$17 = {
|
|
|
34959
34959
|
};
|
|
34960
34960
|
updateNode(this.data);
|
|
34961
34961
|
},
|
|
34962
|
-
setNodes(data
|
|
34962
|
+
setNodes(data, name2, value) {
|
|
34963
|
+
let tempName = name2;
|
|
34964
|
+
if (name2 === "readOnly") {
|
|
34965
|
+
tempName = "disabled";
|
|
34966
|
+
} else if (name2 === "selected") {
|
|
34967
|
+
if (this.myConfig.multiSelect && this.myConfig.showCheckBox) {
|
|
34968
|
+
tempName = "checked";
|
|
34969
|
+
} else {
|
|
34970
|
+
tempName = "selected";
|
|
34971
|
+
}
|
|
34972
|
+
}
|
|
34973
|
+
let responseId = this.myConfig.responseId;
|
|
34974
|
+
this.$refs.tree.flatState.forEach((el2) => {
|
|
34975
|
+
let index = data.findIndex(
|
|
34976
|
+
(el22) => el2.node[responseId] === el22[responseId]
|
|
34977
|
+
);
|
|
34978
|
+
if (index > -1) {
|
|
34979
|
+
if (el2.node[tempName] !== value) {
|
|
34980
|
+
let obj = {};
|
|
34981
|
+
obj[tempName] = value;
|
|
34982
|
+
Object.assign(el2.node, obj);
|
|
34983
|
+
}
|
|
34984
|
+
} else {
|
|
34985
|
+
if (el2.node[tempName] !== !value) {
|
|
34986
|
+
let obj = {};
|
|
34987
|
+
obj[tempName] = !value;
|
|
34988
|
+
Object.assign(el2.node, obj);
|
|
34989
|
+
}
|
|
34990
|
+
}
|
|
34991
|
+
});
|
|
34992
|
+
},
|
|
34993
|
+
setNodese(data = [], name2, value) {
|
|
34963
34994
|
let tempName = name2;
|
|
34964
34995
|
if (name2 === "readOnly") {
|
|
34965
34996
|
tempName = "disabled";
|
|
@@ -40060,6 +40091,9 @@ const _sfc_main$L = {
|
|
|
40060
40091
|
},
|
|
40061
40092
|
setHideDividerValue(value) {
|
|
40062
40093
|
this.$refs.layout.setHideDividerValue(value);
|
|
40094
|
+
},
|
|
40095
|
+
handleSuccessAfter(response, file, fileList) {
|
|
40096
|
+
this.$emit("handleSuccessAfter", response, file, fileList);
|
|
40063
40097
|
}
|
|
40064
40098
|
},
|
|
40065
40099
|
watch: {
|
|
@@ -42220,8 +42254,9 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42220
42254
|
config: _ctx.uiconfig,
|
|
42221
42255
|
dictData: _ctx.globalConfig.dictData,
|
|
42222
42256
|
moduleMethod: _ctx.globalConfig.userModuleMethod,
|
|
42257
|
+
onHandleSuccessAfter: _ctx.handleSuccessAfter,
|
|
42223
42258
|
onDoAction: _ctx.doAction
|
|
42224
|
-
}, null, 40, ["config", "dictData", "moduleMethod", "onDoAction"])),
|
|
42259
|
+
}, null, 40, ["config", "dictData", "moduleMethod", "onHandleSuccessAfter", "onDoAction"])),
|
|
42225
42260
|
createVNode(_component_Modal, {
|
|
42226
42261
|
title: "\u9644\u4EF6",
|
|
42227
42262
|
modelValue: _ctx.showDetailAppendix,
|
|
@@ -44230,13 +44265,10 @@ const _sfc_main$A = {
|
|
|
44230
44265
|
this.myConfig.gridConfig.showCondition = false;
|
|
44231
44266
|
this.myConfig.gridConfig.overrideData = this.gridOverrideData;
|
|
44232
44267
|
this.myConfig.gridConfig.onSelectionChange = this.gridOnSelectionChange;
|
|
44233
|
-
this.myConfig.gridConfig.resources = this.config.resources;
|
|
44234
44268
|
this.myConfig.gridConfig.height = 1;
|
|
44235
44269
|
this.myConfig.gridConfig.adjustHeight = 5;
|
|
44236
44270
|
this.myConfig.gridConfig.showBorder = true;
|
|
44237
44271
|
this.myConfig.gridConfig.showStripe = true;
|
|
44238
|
-
this.myConfig.gridConfig.method = this.config.classPrefix + ".search";
|
|
44239
|
-
this.myConfig.gridConfig.response = this.config.response;
|
|
44240
44272
|
this.myConfig.gridConfig.generalOrientation = true;
|
|
44241
44273
|
this.myConfig.gridConfig.pageSize = "small";
|
|
44242
44274
|
this.myConfig.gridConfig.items.forEach((el2) => {
|
|
@@ -44255,6 +44287,15 @@ const _sfc_main$A = {
|
|
|
44255
44287
|
if (this.myConfig.gridConfig.initRefresh !== void 0) {
|
|
44256
44288
|
this.initRefresh = this.myConfig.gridConfig.initRefresh;
|
|
44257
44289
|
}
|
|
44290
|
+
if (!this.myConfig.gridConfig.method) {
|
|
44291
|
+
this.myConfig.gridConfig.method = this.myConfig.classPrefix + ".search";
|
|
44292
|
+
}
|
|
44293
|
+
if (!this.myConfig.gridConfig.resources) {
|
|
44294
|
+
this.myConfig.gridConfig.resources = this.config.resources;
|
|
44295
|
+
}
|
|
44296
|
+
if (!this.myConfig.gridConfig.response) {
|
|
44297
|
+
this.myConfig.gridConfig.response = this.config.response;
|
|
44298
|
+
}
|
|
44258
44299
|
if (this.myConfig.enablePermissions !== void 0) {
|
|
44259
44300
|
this.enablePermissions = this.myConfig.enablePermissions;
|
|
44260
44301
|
}
|
|
@@ -46464,7 +46505,11 @@ const _sfc_main$v = {
|
|
|
46464
46505
|
name: "filememo",
|
|
46465
46506
|
type: "ComboBox",
|
|
46466
46507
|
dictkey: "CUSTFILETYPE",
|
|
46467
|
-
|
|
46508
|
+
visible: false
|
|
46509
|
+
}, {
|
|
46510
|
+
label: "\u9644\u4EF6\u7C7B\u578B",
|
|
46511
|
+
name: "filemode",
|
|
46512
|
+
type: "TextBox",
|
|
46468
46513
|
width: 300
|
|
46469
46514
|
}, {
|
|
46470
46515
|
label: "\u6587\u4EF6\u540D\u79F0",
|
|
@@ -46639,7 +46684,9 @@ const _sfc_main$v = {
|
|
|
46639
46684
|
if (this.myConfig.readOnly) {
|
|
46640
46685
|
del.readOnly = true;
|
|
46641
46686
|
}
|
|
46642
|
-
|
|
46687
|
+
if (params.row.scenetype !== "0") {
|
|
46688
|
+
btnConfig.items.push(del);
|
|
46689
|
+
}
|
|
46643
46690
|
} else {
|
|
46644
46691
|
let up2 = this.$Method.copy(this.rowBtnData[0]);
|
|
46645
46692
|
if (this.myConfig.readOnly) {
|
|
@@ -46768,7 +46815,7 @@ const _sfc_main$v = {
|
|
|
46768
46815
|
this.showPdf(params);
|
|
46769
46816
|
}
|
|
46770
46817
|
},
|
|
46771
|
-
handleSuccess(
|
|
46818
|
+
handleSuccess(response, file, fileList) {
|
|
46772
46819
|
this.getFilesInfo(this.billno, this.modulecode, this.myConfig.notdelfile, this.myConfig.scenetype, this.doInitData);
|
|
46773
46820
|
this.flag = false;
|
|
46774
46821
|
if (this.myConfig.scenetype === "4") {
|
|
@@ -46776,6 +46823,7 @@ const _sfc_main$v = {
|
|
|
46776
46823
|
} else {
|
|
46777
46824
|
this.hideLoading();
|
|
46778
46825
|
}
|
|
46826
|
+
this.$emit("handleSuccessAfter", response, file, fileList);
|
|
46779
46827
|
},
|
|
46780
46828
|
handleMaxSize(file) {
|
|
46781
46829
|
this.alert("\u6587\u4EF6[" + file.name + "]\u7684\u6587\u4EF6\u5927\u5C0F\u4E0D\u5141\u8BB8\u8D85\u8FC7" + this.myConfig.fileSize + "M");
|
|
@@ -47301,116 +47349,6 @@ const _sfc_main$u = {
|
|
|
47301
47349
|
}
|
|
47302
47350
|
},
|
|
47303
47351
|
methods: {
|
|
47304
|
-
loadDynamicConfig() {
|
|
47305
|
-
try {
|
|
47306
|
-
const postData = {
|
|
47307
|
-
modulecode: this.myConfig.modulecode,
|
|
47308
|
-
moduleid: this.myConfig.modulecode
|
|
47309
|
-
};
|
|
47310
|
-
this.asyncPost(
|
|
47311
|
-
this.uiconfig.resources,
|
|
47312
|
-
"uiconfigs.getPageConfig",
|
|
47313
|
-
postData,
|
|
47314
|
-
(data) => {
|
|
47315
|
-
if (!data || !this.uiconfig) {
|
|
47316
|
-
console.log("1 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
|
|
47317
|
-
return;
|
|
47318
|
-
}
|
|
47319
|
-
this.mergeDynamicConfig(
|
|
47320
|
-
this.uiconfig,
|
|
47321
|
-
data
|
|
47322
|
-
);
|
|
47323
|
-
},
|
|
47324
|
-
function(data) {
|
|
47325
|
-
console.error(data);
|
|
47326
|
-
},
|
|
47327
|
-
function(data) {
|
|
47328
|
-
console.error(data);
|
|
47329
|
-
}
|
|
47330
|
-
);
|
|
47331
|
-
} catch (e10) {
|
|
47332
|
-
console.error("\u52A8\u6001\u914D\u7F6E\u52A0\u8F7D\u5931\u8D25", e10);
|
|
47333
|
-
}
|
|
47334
|
-
},
|
|
47335
|
-
mergeDynamicConfig(localConfig, serverConfig) {
|
|
47336
|
-
if (!localConfig || !serverConfig) {
|
|
47337
|
-
console.log("1 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
|
|
47338
|
-
return;
|
|
47339
|
-
}
|
|
47340
|
-
if (localConfig.billQueryConfig.gridConfig.items && serverConfig.billQueryConfig.gridConfig.items) {
|
|
47341
|
-
this.mergeFlatItems(
|
|
47342
|
-
localConfig.billQueryConfig.gridConfig.items,
|
|
47343
|
-
serverConfig.billQueryConfig.gridConfig.items
|
|
47344
|
-
);
|
|
47345
|
-
}
|
|
47346
|
-
if (localConfig.detailConfig && serverConfig.detailConfig) {
|
|
47347
|
-
this.mergeDetailConfig(
|
|
47348
|
-
localConfig.detailConfig,
|
|
47349
|
-
serverConfig.detailConfig
|
|
47350
|
-
);
|
|
47351
|
-
}
|
|
47352
|
-
},
|
|
47353
|
-
mergeDetailConfig(localDetail, serverDetail) {
|
|
47354
|
-
if (localDetail.formsConfig.items && serverDetail.formsConfig.items) {
|
|
47355
|
-
this.mergeContainerItems(
|
|
47356
|
-
localDetail.formsConfig.items,
|
|
47357
|
-
serverDetail.formsConfig.items
|
|
47358
|
-
);
|
|
47359
|
-
}
|
|
47360
|
-
if (localDetail.billDetailConfig.items && serverDetail.billDetailConfig.items) {
|
|
47361
|
-
this.mergeContainerItems(
|
|
47362
|
-
localDetail.billDetailConfig.items,
|
|
47363
|
-
serverDetail.billDetailConfig.items
|
|
47364
|
-
);
|
|
47365
|
-
}
|
|
47366
|
-
},
|
|
47367
|
-
mergeContainerItems(localContainers, serverContainers) {
|
|
47368
|
-
const containerMap = this.buildItemMap(localContainers);
|
|
47369
|
-
serverContainers.forEach((serverContainer) => {
|
|
47370
|
-
const localContainer = containerMap.get(serverContainer.name);
|
|
47371
|
-
if (!localContainer) {
|
|
47372
|
-
console.log("2 \u6CA1\u6709\u914D\u7F6Elocalcontainer");
|
|
47373
|
-
return;
|
|
47374
|
-
}
|
|
47375
|
-
Object.assign(localContainer, serverContainer);
|
|
47376
|
-
if (Array.isArray(localContainer.items) && Array.isArray(serverContainer.items)) {
|
|
47377
|
-
this.mergeFlatItems(
|
|
47378
|
-
localContainer.items,
|
|
47379
|
-
serverContainer.items
|
|
47380
|
-
);
|
|
47381
|
-
}
|
|
47382
|
-
});
|
|
47383
|
-
},
|
|
47384
|
-
mergeFlatItems(localItems, serverItems) {
|
|
47385
|
-
const fieldMap = this.buildItemMap(localItems);
|
|
47386
|
-
serverItems.forEach((serverItem) => {
|
|
47387
|
-
const localItem = fieldMap.get(serverItem.name);
|
|
47388
|
-
console.log(serverItem.name, localItem);
|
|
47389
|
-
if (localItem) {
|
|
47390
|
-
console.log("\u5408\u5E76\u524D", localItem);
|
|
47391
|
-
Object.assign(localItem, serverItem);
|
|
47392
|
-
console.log("merge\u540E", JSON.stringify(this.uiconfig));
|
|
47393
|
-
this.uiconfig = Object.assign({}, this.uiconfig);
|
|
47394
|
-
}
|
|
47395
|
-
});
|
|
47396
|
-
},
|
|
47397
|
-
buildItemMap(items, map2 = /* @__PURE__ */ new Map()) {
|
|
47398
|
-
if (!Array.isArray(items))
|
|
47399
|
-
return map2;
|
|
47400
|
-
items.forEach((item) => {
|
|
47401
|
-
if (!item) {
|
|
47402
|
-
console.log("3 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
|
|
47403
|
-
return;
|
|
47404
|
-
}
|
|
47405
|
-
if (item.name) {
|
|
47406
|
-
map2.set(item.name, item);
|
|
47407
|
-
}
|
|
47408
|
-
if (Array.isArray(item.items)) {
|
|
47409
|
-
this.buildItemMap(item.items, map2);
|
|
47410
|
-
}
|
|
47411
|
-
});
|
|
47412
|
-
return map2;
|
|
47413
|
-
},
|
|
47414
47352
|
getCurlAnchorData() {
|
|
47415
47353
|
let tmp = [];
|
|
47416
47354
|
this.anchorData.forEach((el2) => {
|
|
@@ -48172,6 +48110,9 @@ const _sfc_main$u = {
|
|
|
48172
48110
|
});
|
|
48173
48111
|
});
|
|
48174
48112
|
}
|
|
48113
|
+
},
|
|
48114
|
+
handleSuccessAfter(response, file, fileList) {
|
|
48115
|
+
this.$emit("handleSuccessAfter", response, file, fileList);
|
|
48175
48116
|
}
|
|
48176
48117
|
},
|
|
48177
48118
|
props: {
|
|
@@ -48327,8 +48268,9 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
48327
48268
|
config: temp2,
|
|
48328
48269
|
dictData: $props.dictData,
|
|
48329
48270
|
modulecode: $data.modulecode,
|
|
48271
|
+
onHandleSuccessAfter: $options.handleSuccessAfter,
|
|
48330
48272
|
onDoAction: $options.doAction
|
|
48331
|
-
}, null, 8, ["config", "dictData", "modulecode", "onDoAction"])) : createCommentVNode("", true)
|
|
48273
|
+
}, null, 8, ["config", "dictData", "modulecode", "onHandleSuccessAfter", "onDoAction"])) : createCommentVNode("", true)
|
|
48332
48274
|
], 8, _hoisted_5$7)), [
|
|
48333
48275
|
[vShow, $data.detailVisible[index].visible]
|
|
48334
48276
|
]);
|
|
@@ -58082,6 +58024,9 @@ const _sfc_main$5 = {
|
|
|
58082
58024
|
this.$emit("doAction", obj);
|
|
58083
58025
|
}
|
|
58084
58026
|
}
|
|
58027
|
+
},
|
|
58028
|
+
handleSuccessAfter(response, file, fileList) {
|
|
58029
|
+
this.$emit("handleSuccessAfter", response, file, fileList);
|
|
58085
58030
|
}
|
|
58086
58031
|
},
|
|
58087
58032
|
mounted() {
|
|
@@ -58118,6 +58063,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
58118
58063
|
config: _ctx.myConfig.detailConfig,
|
|
58119
58064
|
dictData: _ctx.dictData,
|
|
58120
58065
|
moduleMethod: _ctx.moduleMethod,
|
|
58066
|
+
onHandleSuccessAfter: $options.handleSuccessAfter,
|
|
58121
58067
|
onDoAction: $options.doAction
|
|
58122
58068
|
}, {
|
|
58123
58069
|
toolbar: withCtx(() => [
|
|
@@ -58142,7 +58088,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
58142
58088
|
])
|
|
58143
58089
|
]),
|
|
58144
58090
|
_: 1
|
|
58145
|
-
}, 8, ["config", "dictData", "moduleMethod", "onDoAction"]), [
|
|
58091
|
+
}, 8, ["config", "dictData", "moduleMethod", "onHandleSuccessAfter", "onDoAction"]), [
|
|
58146
58092
|
[vShow, _ctx.showHead]
|
|
58147
58093
|
]),
|
|
58148
58094
|
createVNode(_component_ApprovalBox, {
|