ocpview-plus 1.2.9 → 1.3.1
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 +36 -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 +4 -1
- 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
|
@@ -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 = "";
|
|
@@ -39163,7 +39163,7 @@ const _sfc_main$L = {
|
|
|
39163
39163
|
billprintModeUrl: "/widgetmodelv3/#/bill-print?modulecode={modulecode}&dataid={dataid}&mktcode={mktcode}&token={token}",
|
|
39164
39164
|
printModeUrl: "",
|
|
39165
39165
|
eventObject: ["valueChanged", "setDataBefore", "searchBefore", "cellbeginedit", "importSuccess", "addRowBefore", "indexMethod", "delRowBefore", "delRowAfter", "onSelectionChange", "formatValue", "updateCellConfig", "overrideSearchParam", "overrideData", "refurbishCheck", "onSingleChange", "onSetRowCheck", "onSelect", "onSelectCancel", "onSelectionChange", "customSummary", "customImgPath", "onDelTag", "onSearch", "onAppend", "filterData", "onAddTag", "getDictData", "setLabel", "setImportUrl", "onLinkTo", "newSaveFormBefore", "setQueryConfig", "setNodeClass", "setTreeNodeIcon", "rowClassName", "customSummaryGroup", "disabledDate"],
|
|
39166
|
-
layoutTypeList: ["ListDetails", "ListDetailsV2", "BillListDetails"]
|
|
39166
|
+
layoutTypeList: ["ListDetails", "ListDetailsV2", "BillListDetails", "ListDetailsV3"]
|
|
39167
39167
|
};
|
|
39168
39168
|
},
|
|
39169
39169
|
computed: {
|
|
@@ -40091,6 +40091,9 @@ const _sfc_main$L = {
|
|
|
40091
40091
|
},
|
|
40092
40092
|
setHideDividerValue(value) {
|
|
40093
40093
|
this.$refs.layout.setHideDividerValue(value);
|
|
40094
|
+
},
|
|
40095
|
+
handleSuccessAfter(response, file, fileList) {
|
|
40096
|
+
this.$emit("handleSuccessAfter", response, file, fileList);
|
|
40094
40097
|
}
|
|
40095
40098
|
},
|
|
40096
40099
|
watch: {
|
|
@@ -42251,8 +42254,9 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42251
42254
|
config: _ctx.uiconfig,
|
|
42252
42255
|
dictData: _ctx.globalConfig.dictData,
|
|
42253
42256
|
moduleMethod: _ctx.globalConfig.userModuleMethod,
|
|
42257
|
+
onHandleSuccessAfter: _ctx.handleSuccessAfter,
|
|
42254
42258
|
onDoAction: _ctx.doAction
|
|
42255
|
-
}, null, 40, ["config", "dictData", "moduleMethod", "onDoAction"])),
|
|
42259
|
+
}, null, 40, ["config", "dictData", "moduleMethod", "onHandleSuccessAfter", "onDoAction"])),
|
|
42256
42260
|
createVNode(_component_Modal, {
|
|
42257
42261
|
title: "\u9644\u4EF6",
|
|
42258
42262
|
modelValue: _ctx.showDetailAppendix,
|
|
@@ -44261,13 +44265,10 @@ const _sfc_main$A = {
|
|
|
44261
44265
|
this.myConfig.gridConfig.showCondition = false;
|
|
44262
44266
|
this.myConfig.gridConfig.overrideData = this.gridOverrideData;
|
|
44263
44267
|
this.myConfig.gridConfig.onSelectionChange = this.gridOnSelectionChange;
|
|
44264
|
-
this.myConfig.gridConfig.resources = this.config.resources;
|
|
44265
44268
|
this.myConfig.gridConfig.height = 1;
|
|
44266
44269
|
this.myConfig.gridConfig.adjustHeight = 5;
|
|
44267
44270
|
this.myConfig.gridConfig.showBorder = true;
|
|
44268
44271
|
this.myConfig.gridConfig.showStripe = true;
|
|
44269
|
-
this.myConfig.gridConfig.method = this.config.classPrefix + ".search";
|
|
44270
|
-
this.myConfig.gridConfig.response = this.config.response;
|
|
44271
44272
|
this.myConfig.gridConfig.generalOrientation = true;
|
|
44272
44273
|
this.myConfig.gridConfig.pageSize = "small";
|
|
44273
44274
|
this.myConfig.gridConfig.items.forEach((el2) => {
|
|
@@ -44286,6 +44287,15 @@ const _sfc_main$A = {
|
|
|
44286
44287
|
if (this.myConfig.gridConfig.initRefresh !== void 0) {
|
|
44287
44288
|
this.initRefresh = this.myConfig.gridConfig.initRefresh;
|
|
44288
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
|
+
}
|
|
44289
44299
|
if (this.myConfig.enablePermissions !== void 0) {
|
|
44290
44300
|
this.enablePermissions = this.myConfig.enablePermissions;
|
|
44291
44301
|
}
|
|
@@ -46495,7 +46505,11 @@ const _sfc_main$v = {
|
|
|
46495
46505
|
name: "filememo",
|
|
46496
46506
|
type: "ComboBox",
|
|
46497
46507
|
dictkey: "CUSTFILETYPE",
|
|
46498
|
-
|
|
46508
|
+
visible: false
|
|
46509
|
+
}, {
|
|
46510
|
+
label: "\u9644\u4EF6\u7C7B\u578B",
|
|
46511
|
+
name: "filemode",
|
|
46512
|
+
type: "TextBox",
|
|
46499
46513
|
width: 300
|
|
46500
46514
|
}, {
|
|
46501
46515
|
label: "\u6587\u4EF6\u540D\u79F0",
|
|
@@ -46670,7 +46684,9 @@ const _sfc_main$v = {
|
|
|
46670
46684
|
if (this.myConfig.readOnly) {
|
|
46671
46685
|
del.readOnly = true;
|
|
46672
46686
|
}
|
|
46673
|
-
|
|
46687
|
+
if (params.row.scenetype !== "0") {
|
|
46688
|
+
btnConfig.items.push(del);
|
|
46689
|
+
}
|
|
46674
46690
|
} else {
|
|
46675
46691
|
let up2 = this.$Method.copy(this.rowBtnData[0]);
|
|
46676
46692
|
if (this.myConfig.readOnly) {
|
|
@@ -46799,7 +46815,7 @@ const _sfc_main$v = {
|
|
|
46799
46815
|
this.showPdf(params);
|
|
46800
46816
|
}
|
|
46801
46817
|
},
|
|
46802
|
-
handleSuccess(
|
|
46818
|
+
handleSuccess(response, file, fileList) {
|
|
46803
46819
|
this.getFilesInfo(this.billno, this.modulecode, this.myConfig.notdelfile, this.myConfig.scenetype, this.doInitData);
|
|
46804
46820
|
this.flag = false;
|
|
46805
46821
|
if (this.myConfig.scenetype === "4") {
|
|
@@ -46807,6 +46823,7 @@ const _sfc_main$v = {
|
|
|
46807
46823
|
} else {
|
|
46808
46824
|
this.hideLoading();
|
|
46809
46825
|
}
|
|
46826
|
+
this.$emit("handleSuccessAfter", response, file, fileList);
|
|
46810
46827
|
},
|
|
46811
46828
|
handleMaxSize(file) {
|
|
46812
46829
|
this.alert("\u6587\u4EF6[" + file.name + "]\u7684\u6587\u4EF6\u5927\u5C0F\u4E0D\u5141\u8BB8\u8D85\u8FC7" + this.myConfig.fileSize + "M");
|
|
@@ -47332,116 +47349,6 @@ const _sfc_main$u = {
|
|
|
47332
47349
|
}
|
|
47333
47350
|
},
|
|
47334
47351
|
methods: {
|
|
47335
|
-
loadDynamicConfig() {
|
|
47336
|
-
try {
|
|
47337
|
-
const postData = {
|
|
47338
|
-
modulecode: this.myConfig.modulecode,
|
|
47339
|
-
moduleid: this.myConfig.modulecode
|
|
47340
|
-
};
|
|
47341
|
-
this.asyncPost(
|
|
47342
|
-
this.uiconfig.resources,
|
|
47343
|
-
"uiconfigs.getPageConfig",
|
|
47344
|
-
postData,
|
|
47345
|
-
(data) => {
|
|
47346
|
-
if (!data || !this.uiconfig) {
|
|
47347
|
-
console.log("1 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
|
|
47348
|
-
return;
|
|
47349
|
-
}
|
|
47350
|
-
this.mergeDynamicConfig(
|
|
47351
|
-
this.uiconfig,
|
|
47352
|
-
data
|
|
47353
|
-
);
|
|
47354
|
-
},
|
|
47355
|
-
function(data) {
|
|
47356
|
-
console.error(data);
|
|
47357
|
-
},
|
|
47358
|
-
function(data) {
|
|
47359
|
-
console.error(data);
|
|
47360
|
-
}
|
|
47361
|
-
);
|
|
47362
|
-
} catch (e10) {
|
|
47363
|
-
console.error("\u52A8\u6001\u914D\u7F6E\u52A0\u8F7D\u5931\u8D25", e10);
|
|
47364
|
-
}
|
|
47365
|
-
},
|
|
47366
|
-
mergeDynamicConfig(localConfig, serverConfig) {
|
|
47367
|
-
if (!localConfig || !serverConfig) {
|
|
47368
|
-
console.log("1 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
|
|
47369
|
-
return;
|
|
47370
|
-
}
|
|
47371
|
-
if (localConfig.billQueryConfig.gridConfig.items && serverConfig.billQueryConfig.gridConfig.items) {
|
|
47372
|
-
this.mergeFlatItems(
|
|
47373
|
-
localConfig.billQueryConfig.gridConfig.items,
|
|
47374
|
-
serverConfig.billQueryConfig.gridConfig.items
|
|
47375
|
-
);
|
|
47376
|
-
}
|
|
47377
|
-
if (localConfig.detailConfig && serverConfig.detailConfig) {
|
|
47378
|
-
this.mergeDetailConfig(
|
|
47379
|
-
localConfig.detailConfig,
|
|
47380
|
-
serverConfig.detailConfig
|
|
47381
|
-
);
|
|
47382
|
-
}
|
|
47383
|
-
},
|
|
47384
|
-
mergeDetailConfig(localDetail, serverDetail) {
|
|
47385
|
-
if (localDetail.formsConfig.items && serverDetail.formsConfig.items) {
|
|
47386
|
-
this.mergeContainerItems(
|
|
47387
|
-
localDetail.formsConfig.items,
|
|
47388
|
-
serverDetail.formsConfig.items
|
|
47389
|
-
);
|
|
47390
|
-
}
|
|
47391
|
-
if (localDetail.billDetailConfig.items && serverDetail.billDetailConfig.items) {
|
|
47392
|
-
this.mergeContainerItems(
|
|
47393
|
-
localDetail.billDetailConfig.items,
|
|
47394
|
-
serverDetail.billDetailConfig.items
|
|
47395
|
-
);
|
|
47396
|
-
}
|
|
47397
|
-
},
|
|
47398
|
-
mergeContainerItems(localContainers, serverContainers) {
|
|
47399
|
-
const containerMap = this.buildItemMap(localContainers);
|
|
47400
|
-
serverContainers.forEach((serverContainer) => {
|
|
47401
|
-
const localContainer = containerMap.get(serverContainer.name);
|
|
47402
|
-
if (!localContainer) {
|
|
47403
|
-
console.log("2 \u6CA1\u6709\u914D\u7F6Elocalcontainer");
|
|
47404
|
-
return;
|
|
47405
|
-
}
|
|
47406
|
-
Object.assign(localContainer, serverContainer);
|
|
47407
|
-
if (Array.isArray(localContainer.items) && Array.isArray(serverContainer.items)) {
|
|
47408
|
-
this.mergeFlatItems(
|
|
47409
|
-
localContainer.items,
|
|
47410
|
-
serverContainer.items
|
|
47411
|
-
);
|
|
47412
|
-
}
|
|
47413
|
-
});
|
|
47414
|
-
},
|
|
47415
|
-
mergeFlatItems(localItems, serverItems) {
|
|
47416
|
-
const fieldMap = this.buildItemMap(localItems);
|
|
47417
|
-
serverItems.forEach((serverItem) => {
|
|
47418
|
-
const localItem = fieldMap.get(serverItem.name);
|
|
47419
|
-
console.log(serverItem.name, localItem);
|
|
47420
|
-
if (localItem) {
|
|
47421
|
-
console.log("\u5408\u5E76\u524D", localItem);
|
|
47422
|
-
Object.assign(localItem, serverItem);
|
|
47423
|
-
console.log("merge\u540E", JSON.stringify(this.uiconfig));
|
|
47424
|
-
this.uiconfig = Object.assign({}, this.uiconfig);
|
|
47425
|
-
}
|
|
47426
|
-
});
|
|
47427
|
-
},
|
|
47428
|
-
buildItemMap(items, map2 = /* @__PURE__ */ new Map()) {
|
|
47429
|
-
if (!Array.isArray(items))
|
|
47430
|
-
return map2;
|
|
47431
|
-
items.forEach((item) => {
|
|
47432
|
-
if (!item) {
|
|
47433
|
-
console.log("3 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
|
|
47434
|
-
return;
|
|
47435
|
-
}
|
|
47436
|
-
if (item.name) {
|
|
47437
|
-
map2.set(item.name, item);
|
|
47438
|
-
}
|
|
47439
|
-
if (Array.isArray(item.items)) {
|
|
47440
|
-
this.buildItemMap(item.items, map2);
|
|
47441
|
-
}
|
|
47442
|
-
});
|
|
47443
|
-
return map2;
|
|
47444
|
-
},
|
|
47445
47352
|
getCurlAnchorData() {
|
|
47446
47353
|
let tmp = [];
|
|
47447
47354
|
this.anchorData.forEach((el2) => {
|
|
@@ -48203,6 +48110,9 @@ const _sfc_main$u = {
|
|
|
48203
48110
|
});
|
|
48204
48111
|
});
|
|
48205
48112
|
}
|
|
48113
|
+
},
|
|
48114
|
+
handleSuccessAfter(response, file, fileList) {
|
|
48115
|
+
this.$emit("handleSuccessAfter", response, file, fileList);
|
|
48206
48116
|
}
|
|
48207
48117
|
},
|
|
48208
48118
|
props: {
|
|
@@ -48358,8 +48268,9 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
48358
48268
|
config: temp2,
|
|
48359
48269
|
dictData: $props.dictData,
|
|
48360
48270
|
modulecode: $data.modulecode,
|
|
48271
|
+
onHandleSuccessAfter: $options.handleSuccessAfter,
|
|
48361
48272
|
onDoAction: $options.doAction
|
|
48362
|
-
}, null, 8, ["config", "dictData", "modulecode", "onDoAction"])) : createCommentVNode("", true)
|
|
48273
|
+
}, null, 8, ["config", "dictData", "modulecode", "onHandleSuccessAfter", "onDoAction"])) : createCommentVNode("", true)
|
|
48363
48274
|
], 8, _hoisted_5$7)), [
|
|
48364
48275
|
[vShow, $data.detailVisible[index].visible]
|
|
48365
48276
|
]);
|
|
@@ -58113,6 +58024,9 @@ const _sfc_main$5 = {
|
|
|
58113
58024
|
this.$emit("doAction", obj);
|
|
58114
58025
|
}
|
|
58115
58026
|
}
|
|
58027
|
+
},
|
|
58028
|
+
handleSuccessAfter(response, file, fileList) {
|
|
58029
|
+
this.$emit("handleSuccessAfter", response, file, fileList);
|
|
58116
58030
|
}
|
|
58117
58031
|
},
|
|
58118
58032
|
mounted() {
|
|
@@ -58149,6 +58063,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
58149
58063
|
config: _ctx.myConfig.detailConfig,
|
|
58150
58064
|
dictData: _ctx.dictData,
|
|
58151
58065
|
moduleMethod: _ctx.moduleMethod,
|
|
58066
|
+
onHandleSuccessAfter: $options.handleSuccessAfter,
|
|
58152
58067
|
onDoAction: $options.doAction
|
|
58153
58068
|
}, {
|
|
58154
58069
|
toolbar: withCtx(() => [
|
|
@@ -58173,7 +58088,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
58173
58088
|
])
|
|
58174
58089
|
]),
|
|
58175
58090
|
_: 1
|
|
58176
|
-
}, 8, ["config", "dictData", "moduleMethod", "onDoAction"]), [
|
|
58091
|
+
}, 8, ["config", "dictData", "moduleMethod", "onHandleSuccessAfter", "onDoAction"]), [
|
|
58177
58092
|
[vShow, _ctx.showHead]
|
|
58178
58093
|
]),
|
|
58179
58094
|
createVNode(_component_ApprovalBox, {
|