@qqt-product/system 0.0.20 → 0.0.21
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/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Wo from "@qqt-product/utils";
|
|
2
2
|
import { defineComponent as Be, resolveComponent as k, openBlock as q, createElementBlock as ie, createVNode as T, withCtx as P, createTextVNode as te, mergeProps as fr, isVNode as Dh, ref as Y, watch as VI, createElementVNode as ae, reactive as Le, shallowRef as we, computed as Sn, h as Kr, nextTick as mt, inject as Ke, toRefs as al, shallowReactive as zI, onMounted as nl, withDirectives as xt, createBlock as be, createCommentVNode as He, vShow as ba, Fragment as et, renderList as vt, vModelText as Wr, toDisplayString as rt, pushScopeId as S2, popScopeId as w2, unref as _t, normalizeStyle as GI, watchEffect as $I, resolveDirective as HI, normalizeProps as I_, guardReactiveProps as F_ } from "vue";
|
|
3
|
-
import { message as
|
|
3
|
+
import { message as K, Modal as Ut, BUTTON_ADD_ONE_ROW as Hu, BUTTON_DELETE_ROW as No, BUTTON_SAVE as da, useRefInstanceHook as qo, usePromiseStepHook as il, BUTTON_CUSTOM_PRIMARY as qf, BUTTON_CUSTOM as C2, BUTTON_PUBLISH as UI, BUTTON_UPLOAD as WI } from "@qqt-product/ui";
|
|
4
4
|
import Na from "@qqt-product/api";
|
|
5
5
|
import { VXETable as Ea } from "vxe-table";
|
|
6
6
|
import { QIcon as qI } from "@qqt-product/icons";
|
|
@@ -1291,7 +1291,7 @@ const Xt = "http", _F = Be({
|
|
|
1291
1291
|
},
|
|
1292
1292
|
selectedOk() {
|
|
1293
1293
|
let r = {};
|
|
1294
|
-
this.inputType == "manual" && this.dataSource ? r = { dictCode: this.dataSource } : this.$refs.selectGrid && (r = this.$refs.selectGrid.getRadioRecord()), r ? (this.visible = !1, this.$emit("ok", r)) :
|
|
1294
|
+
this.inputType == "manual" && this.dataSource ? r = { dictCode: this.dataSource } : this.$refs.selectGrid && (r = this.$refs.selectGrid.getRadioRecord()), r ? (this.visible = !1, this.$emit("ok", r)) : K.warning("\u8BF7\u9009\u62E9\u6570\u636E");
|
|
1295
1295
|
},
|
|
1296
1296
|
handlePageChange({ currentPage: r, pageSize: t }) {
|
|
1297
1297
|
this.tablePage.currentPage = r, this.tablePage.pageSize = t, this.loadData();
|
|
@@ -1679,7 +1679,8 @@ function um() {
|
|
|
1679
1679
|
templateVersion: "1",
|
|
1680
1680
|
extend: "",
|
|
1681
1681
|
id: "",
|
|
1682
|
-
elsAccount: ""
|
|
1682
|
+
elsAccount: "",
|
|
1683
|
+
defaultType: "0"
|
|
1683
1684
|
}), u = Y(!0), c = we(0), f = we('purchase_organization_info,org_name,org_code,org_category_code = "companyCode" && status="1"'), d = we('purchase_organization_info,org_name,org_code,org_category_code = "purchaseOrganization" && status="1"'), h = we('purchase_organization_info,org_name,org_code,org_category_code = "purchaseGroup" && status="1"'), p = Y(), v = Y(), g = Y(), m = Y(), y = Y(!1), _ = Y(!1), b = Y(!1), S = we(!1), w = Y({}), C = Y(), x = Y(), D = Y({}), E = we(["callback", "initFunction", "extend", "fieldValidator"]), A = we(["sys", "mobile", "audit"]), M = we({
|
|
1684
1685
|
groupCode: [{ required: !0, message: "\u8BF7\u9009\u62E9\u5206\u7EC4" }],
|
|
1685
1686
|
fieldName: [{ required: !0, message: "\u8BF7\u8F93\u5165\u5B57\u6BB5\u540D" }],
|
|
@@ -1850,12 +1851,12 @@ function eP(r) {
|
|
|
1850
1851
|
const d = new FileReader();
|
|
1851
1852
|
d.onloadend = () => {
|
|
1852
1853
|
const h = JSON.parse(d.result);
|
|
1853
|
-
|
|
1854
|
+
K.error(h.message);
|
|
1854
1855
|
}, d.readAsText(u);
|
|
1855
1856
|
return;
|
|
1856
1857
|
}
|
|
1857
1858
|
if (!u) {
|
|
1858
|
-
|
|
1859
|
+
K.error("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25");
|
|
1859
1860
|
return;
|
|
1860
1861
|
}
|
|
1861
1862
|
const c = window.URL.createObjectURL(new Blob([u])), f = document.createElement("a");
|
|
@@ -3346,8 +3347,8 @@ const FB = f0, PB = Be({
|
|
|
3346
3347
|
title: "\u5206\u7EC4\u540D",
|
|
3347
3348
|
editRender: {
|
|
3348
3349
|
events: {
|
|
3349
|
-
change: (
|
|
3350
|
-
lt(
|
|
3350
|
+
change: (Q) => {
|
|
3351
|
+
lt(Q, "groupNameI18nKey", "");
|
|
3351
3352
|
}
|
|
3352
3353
|
},
|
|
3353
3354
|
name: "$input",
|
|
@@ -3370,9 +3371,9 @@ const FB = f0, PB = Be({
|
|
|
3370
3371
|
},
|
|
3371
3372
|
{ field: "groupNameI18nKey", title: "I18nKey" },
|
|
3372
3373
|
{ field: "extend", title: "\u6269\u5C55", slots: { default: "extend_col_render" } }
|
|
3373
|
-
]), Hr = ({ option:
|
|
3374
|
+
]), Hr = ({ option: Q, row: ue }) => {
|
|
3374
3375
|
var De;
|
|
3375
|
-
const se = (De = w.value) == null ? void 0 : De.filter((Re) => Re.groupName.indexOf(
|
|
3376
|
+
const se = (De = w.value) == null ? void 0 : De.filter((Re) => Re.groupName.indexOf(Q.data) > -1);
|
|
3376
3377
|
return ue.groupCode.indexOf(se[0].groupCode) !== -1;
|
|
3377
3378
|
}, jt = Le([
|
|
3378
3379
|
{
|
|
@@ -3430,8 +3431,8 @@ const FB = f0, PB = Be({
|
|
|
3430
3431
|
fixed: "left",
|
|
3431
3432
|
editRender: {
|
|
3432
3433
|
events: {
|
|
3433
|
-
change: (
|
|
3434
|
-
lt(
|
|
3434
|
+
change: (Q) => {
|
|
3435
|
+
lt(Q, "fieldLabelI18nKey", "");
|
|
3435
3436
|
}
|
|
3436
3437
|
},
|
|
3437
3438
|
name: "$input",
|
|
@@ -3582,8 +3583,8 @@ const FB = f0, PB = Be({
|
|
|
3582
3583
|
fixed: "left",
|
|
3583
3584
|
editRender: {
|
|
3584
3585
|
events: {
|
|
3585
|
-
change: (
|
|
3586
|
-
lt(
|
|
3586
|
+
change: (Q) => {
|
|
3587
|
+
lt(Q, "fieldLabelI18nKey", "");
|
|
3587
3588
|
}
|
|
3588
3589
|
},
|
|
3589
3590
|
name: "$input",
|
|
@@ -3690,14 +3691,14 @@ const FB = f0, PB = Be({
|
|
|
3690
3691
|
});
|
|
3691
3692
|
});
|
|
3692
3693
|
}, () => {
|
|
3693
|
-
let { fullData:
|
|
3694
|
-
if (!
|
|
3695
|
-
|
|
3694
|
+
let { fullData: Q } = v.value.getTableData();
|
|
3695
|
+
if (!Q.length) {
|
|
3696
|
+
K.warning("\u8BF7\u6DFB\u52A0\u5206\u7EC4!");
|
|
3696
3697
|
return;
|
|
3697
3698
|
}
|
|
3698
|
-
v.value.validate(
|
|
3699
|
+
v.value.validate(Q, (ue) => {
|
|
3699
3700
|
if (!ue) {
|
|
3700
|
-
let se =
|
|
3701
|
+
let se = Q.filter((Ge) => Ge.groupType == "head"), De = Q.filter((Ge) => Ge.groupType == "item"), Re = se.map((Ge) => ({
|
|
3701
3702
|
value: Ge.groupCode,
|
|
3702
3703
|
label: Ge.groupName
|
|
3703
3704
|
})), ut = De.map((Ge) => ({
|
|
@@ -3710,8 +3711,8 @@ const FB = f0, PB = Be({
|
|
|
3710
3711
|
}
|
|
3711
3712
|
});
|
|
3712
3713
|
}, () => {
|
|
3713
|
-
let { fullData:
|
|
3714
|
-
C.value.validate(
|
|
3714
|
+
let { fullData: Q } = C.value.getTableData();
|
|
3715
|
+
C.value.validate(Q, (ue) => {
|
|
3715
3716
|
ue || (y.value++, setTimeout(() => {
|
|
3716
3717
|
x_();
|
|
3717
3718
|
}, 1e3));
|
|
@@ -3719,9 +3720,9 @@ const FB = f0, PB = Be({
|
|
|
3719
3720
|
}], rI = zI({
|
|
3720
3721
|
sortOrder: [{ required: !0, message: "\u8BF7\u8F93\u5165\u6392\u5E8F" }],
|
|
3721
3722
|
groupName: [{ required: !0, message: "\u8BF7\u8F93\u5165\u5206\u7EC4\u540D\u79F0" }],
|
|
3722
|
-
groupCode: [{ required: !0, message: "\u8BF7\u8F93\u5165\u5206\u7EC4\u7F16\u7801" }, { validator: (
|
|
3723
|
+
groupCode: [{ required: !0, message: "\u8BF7\u8F93\u5165\u5206\u7EC4\u7F16\u7801" }, { validator: (Q) => {
|
|
3723
3724
|
const ue = v;
|
|
3724
|
-
let { fullData: se } = ue.value.getTableData(), { cellValue: De, row: Re } =
|
|
3725
|
+
let { fullData: se } = ue.value.getTableData(), { cellValue: De, row: Re } = Q, ut = Re.sortOrder - 1, Ge = null;
|
|
3725
3726
|
if (se.length > 0) {
|
|
3726
3727
|
let Va = se.map((vp) => vp.groupCode);
|
|
3727
3728
|
Va.splice(ut, 1), Va.find((vp) => vp == De) && (Ge = new Error("\u5206\u7EC4\u7F16\u7801\u4E0D\u80FD\u586B\u5199\u76F8\u540C\u7684\u503C\uFF01"));
|
|
@@ -3731,13 +3732,13 @@ const FB = f0, PB = Be({
|
|
|
3731
3732
|
groupType: [{ required: !0, message: "\u8BF7\u9009\u62E9\u5206\u7EC4\u7C7B\u578B" }]
|
|
3732
3733
|
}), aI = () => {
|
|
3733
3734
|
sessionStorage.setItem("businessTipsShow", "0");
|
|
3734
|
-
}, nI = (
|
|
3735
|
-
g.extend =
|
|
3736
|
-
}, iI = ({ value:
|
|
3735
|
+
}, nI = (Q) => {
|
|
3736
|
+
g.extend = Q;
|
|
3737
|
+
}, iI = ({ value: Q }) => {
|
|
3737
3738
|
e.get({
|
|
3738
3739
|
url: "/template/templateHead/querySysByBusinessType",
|
|
3739
3740
|
params: {
|
|
3740
|
-
businessType:
|
|
3741
|
+
businessType: Q
|
|
3741
3742
|
}
|
|
3742
3743
|
}).then((ue) => {
|
|
3743
3744
|
if (ue.success) {
|
|
@@ -3745,41 +3746,41 @@ const FB = f0, PB = Be({
|
|
|
3745
3746
|
w.value = se, $.value = De, G.value = Re;
|
|
3746
3747
|
}
|
|
3747
3748
|
});
|
|
3748
|
-
}, oI = (
|
|
3749
|
-
g.defaultTypeFlag =
|
|
3750
|
-
}, w_ = (
|
|
3749
|
+
}, oI = (Q) => {
|
|
3750
|
+
g.defaultTypeFlag = Q, g.defaultType && (Q ? g.defaultType = "1" : g.defaultType = "0");
|
|
3751
|
+
}, w_ = (Q) => new Promise((ue, se) => {
|
|
3751
3752
|
e.post({
|
|
3752
3753
|
url: "/base/dict/findDictItems",
|
|
3753
|
-
data:
|
|
3754
|
+
data: Q
|
|
3754
3755
|
}).then((De) => {
|
|
3755
3756
|
De.success ? ue(De.result) : se(De);
|
|
3756
3757
|
}).catch((De) => {
|
|
3757
3758
|
se(De);
|
|
3758
3759
|
});
|
|
3759
|
-
}), sI = ({ row:
|
|
3760
|
-
if (ue.property == "defaultValue" && (
|
|
3760
|
+
}), sI = ({ row: Q, column: ue }) => {
|
|
3761
|
+
if (ue.property == "defaultValue" && (Q.fieldType == "select" || Q.fieldType == "multiple") && Q.dictCode) {
|
|
3761
3762
|
let se = {
|
|
3762
3763
|
busAccount: n.value,
|
|
3763
|
-
dictCode:
|
|
3764
|
+
dictCode: Q.dictCode
|
|
3764
3765
|
};
|
|
3765
3766
|
w_(se).then((De) => {
|
|
3766
3767
|
let Re = De.map((ut) => ({
|
|
3767
3768
|
value: ut.value,
|
|
3768
3769
|
label: ut.title
|
|
3769
3770
|
}));
|
|
3770
|
-
|
|
3771
|
+
Q.defaultValueOpts = Re;
|
|
3771
3772
|
});
|
|
3772
3773
|
}
|
|
3773
|
-
}, lI = (
|
|
3774
|
+
}, lI = (Q) => new Promise((ue) => {
|
|
3774
3775
|
let se = {
|
|
3775
3776
|
busAccount: n.value,
|
|
3776
|
-
dictCode:
|
|
3777
|
+
dictCode: Q.dictCode
|
|
3777
3778
|
};
|
|
3778
3779
|
w_(se).then((De) => {
|
|
3779
3780
|
De.success && ue(De.result);
|
|
3780
3781
|
});
|
|
3781
|
-
}), C_ = async (
|
|
3782
|
-
for (const ue of
|
|
3782
|
+
}), C_ = async (Q) => {
|
|
3783
|
+
for (const ue of Q)
|
|
3783
3784
|
if ((ue.fieldType == "select" || ue.fieldType == "multiple") && ue.dictCode) {
|
|
3784
3785
|
let se = await lI(ue);
|
|
3785
3786
|
se = se.map((De) => ({
|
|
@@ -3793,11 +3794,11 @@ const FB = f0, PB = Be({
|
|
|
3793
3794
|
params: {
|
|
3794
3795
|
id: a.value.id
|
|
3795
3796
|
}
|
|
3796
|
-
}).then((
|
|
3797
|
-
if (
|
|
3798
|
-
R.value =
|
|
3799
|
-
let { templateGroupList: ue, templateConfigHeadList: se, templateConfigItemList: De } =
|
|
3800
|
-
Object.assign(g,
|
|
3797
|
+
}).then((Q) => {
|
|
3798
|
+
if (Q.success) {
|
|
3799
|
+
R.value = Q.result;
|
|
3800
|
+
let { templateGroupList: ue, templateConfigHeadList: se, templateConfigItemList: De } = Q.result;
|
|
3801
|
+
Object.assign(g, { ...Q.result, defaultTypeFlag: Q.result.defaultType == "1" }), w.value = ue;
|
|
3801
3802
|
let Re = se.map((Ge) => (Ge.mobile ? Ge.mobile += "" : Ge.mobile = "1", Ge));
|
|
3802
3803
|
$.value = Re;
|
|
3803
3804
|
let ut = De.map((Ge) => (Ge.mobile ? Ge.mobile += "" : Ge.mobile = "1", Ge));
|
|
@@ -3812,52 +3813,52 @@ const FB = f0, PB = Be({
|
|
|
3812
3813
|
y.value--;
|
|
3813
3814
|
}, fI = () => {
|
|
3814
3815
|
tI[y.value]();
|
|
3815
|
-
}, dI = (
|
|
3816
|
+
}, dI = (Q) => {
|
|
3816
3817
|
const ue = v.value;
|
|
3817
3818
|
Ne.create(ue.$el.querySelector(".body--wrapper>.vxe-table--body tbody"), {
|
|
3818
3819
|
group: {
|
|
3819
3820
|
name: "foo"
|
|
3820
3821
|
},
|
|
3821
3822
|
onEnd: (se) => {
|
|
3822
|
-
const De = se.newIndex, Re = se.oldIndex, ut =
|
|
3823
|
-
|
|
3823
|
+
const De = se.newIndex, Re = se.oldIndex, ut = Q.value.splice(Re, 1)[0];
|
|
3824
|
+
Q.value.splice(De, 0, ut);
|
|
3824
3825
|
}
|
|
3825
3826
|
});
|
|
3826
3827
|
}, hI = () => {
|
|
3827
|
-
let
|
|
3828
|
-
Ne.create(
|
|
3828
|
+
let Q = C.value;
|
|
3829
|
+
Ne.create(Q.$el.querySelector(".vxe-table--render-wrapper .vxe-table--fixed-wrapper .vxe-table--fixed-left-wrapper .vxe-table--body-wrapper tbody"), {
|
|
3829
3830
|
group: {
|
|
3830
3831
|
name: "bar"
|
|
3831
3832
|
},
|
|
3832
3833
|
onEnd: ({ newIndex: ue, oldIndex: se }) => {
|
|
3833
|
-
let { fullData: De } =
|
|
3834
|
+
let { fullData: De } = Q.getTableData(), Re = [...De], ut = Re.splice(se, 1)[0];
|
|
3834
3835
|
Re.splice(ue, 0, ut), Re = Re.map((Ge, Va) => (Ge.sortOrder = Va + 1, Ge)), $.value = Re;
|
|
3835
3836
|
}
|
|
3836
3837
|
});
|
|
3837
3838
|
}, x_ = () => {
|
|
3838
|
-
let
|
|
3839
|
-
Ne.create(
|
|
3839
|
+
let Q = I.value;
|
|
3840
|
+
Ne.create(Q.$el.querySelector(".vxe-table--render-wrapper .vxe-table--fixed-wrapper .vxe-table--fixed-left-wrapper .vxe-table--body-wrapper tbody"), {
|
|
3840
3841
|
group: {
|
|
3841
3842
|
name: "bar2"
|
|
3842
3843
|
},
|
|
3843
3844
|
onEnd: ({ newIndex: ue, oldIndex: se }) => {
|
|
3844
|
-
let { fullData: De } =
|
|
3845
|
+
let { fullData: De } = Q.getTableData(), Re = [...De], ut = Re.splice(se, 1)[0];
|
|
3845
3846
|
Re.splice(ue, 0, ut), Re = Re.map((Ge, Va) => (Ge.sortOrder = Va + 1, Ge)), G.value = Re;
|
|
3846
3847
|
}
|
|
3847
3848
|
});
|
|
3848
3849
|
}, pI = () => {
|
|
3849
|
-
let { fullData:
|
|
3850
|
+
let { fullData: Q } = v.value.getTableData(), ue = Q.length;
|
|
3850
3851
|
v.value.insertAt({ sortOrder: ue + 1, groupType: "head" }, -1);
|
|
3851
3852
|
}, vI = () => {
|
|
3852
3853
|
if (g.businessType === "costForm") {
|
|
3853
|
-
let
|
|
3854
|
+
let Q = "/cost/costField/queryAll";
|
|
3854
3855
|
return e.get({
|
|
3855
|
-
url:
|
|
3856
|
+
url: Q
|
|
3856
3857
|
});
|
|
3857
3858
|
} else {
|
|
3858
|
-
let
|
|
3859
|
+
let Q = "/template/templateHead/queryHeadFieldsByBusinessType";
|
|
3859
3860
|
return e.get({
|
|
3860
|
-
url:
|
|
3861
|
+
url: Q,
|
|
3861
3862
|
params: {
|
|
3862
3863
|
businessType: g.businessType
|
|
3863
3864
|
}
|
|
@@ -3865,14 +3866,14 @@ const FB = f0, PB = Be({
|
|
|
3865
3866
|
}
|
|
3866
3867
|
}, gI = () => {
|
|
3867
3868
|
if (g.businessType === "costForm") {
|
|
3868
|
-
let
|
|
3869
|
+
let Q = "/cost/costField/queryAll";
|
|
3869
3870
|
return e.get({
|
|
3870
|
-
url:
|
|
3871
|
+
url: Q
|
|
3871
3872
|
});
|
|
3872
3873
|
} else {
|
|
3873
|
-
let
|
|
3874
|
+
let Q = "/template/templateHead/queryItemFieldsByBusinessType";
|
|
3874
3875
|
return e.get({
|
|
3875
|
-
url:
|
|
3876
|
+
url: Q,
|
|
3876
3877
|
params: {
|
|
3877
3878
|
businessType: g.businessType
|
|
3878
3879
|
}
|
|
@@ -3880,14 +3881,14 @@ const FB = f0, PB = Be({
|
|
|
3880
3881
|
}
|
|
3881
3882
|
}, mI = () => {
|
|
3882
3883
|
Fi.value = "headGrid";
|
|
3883
|
-
let { fullData:
|
|
3884
|
+
let { fullData: Q } = C.value.getTableData();
|
|
3884
3885
|
if (n.value == "100000") {
|
|
3885
|
-
let se =
|
|
3886
|
+
let se = Q.length;
|
|
3886
3887
|
C.value.insertAt({ sortOrder: se + 1, groupType: "head" }, -1);
|
|
3887
3888
|
return;
|
|
3888
3889
|
}
|
|
3889
3890
|
m.value = !0;
|
|
3890
|
-
let ue =
|
|
3891
|
+
let ue = Q.map((se) => se.fieldName + "_" + se.groupCode);
|
|
3891
3892
|
vI().then((se) => {
|
|
3892
3893
|
if (se.success)
|
|
3893
3894
|
if (g.businessType === "costForm")
|
|
@@ -3897,19 +3898,19 @@ const FB = f0, PB = Be({
|
|
|
3897
3898
|
D.value = De, E.value = !0;
|
|
3898
3899
|
}
|
|
3899
3900
|
else
|
|
3900
|
-
|
|
3901
|
+
K.warning(se.message);
|
|
3901
3902
|
}).finally(() => {
|
|
3902
3903
|
m.value = !1;
|
|
3903
3904
|
});
|
|
3904
3905
|
}, yI = () => {
|
|
3905
3906
|
Fi.value = "itemGrid";
|
|
3906
|
-
let { fullData:
|
|
3907
|
+
let { fullData: Q } = I.value.getTableData();
|
|
3907
3908
|
if (n.value == "100000") {
|
|
3908
|
-
let se =
|
|
3909
|
+
let se = Q.length;
|
|
3909
3910
|
I.value.insertAt({ sortOrder: se + 1, groupType: "head" }, -1);
|
|
3910
3911
|
return;
|
|
3911
3912
|
}
|
|
3912
|
-
let ue =
|
|
3913
|
+
let ue = Q.map((se) => se.fieldName + "_" + se.groupCode);
|
|
3913
3914
|
m.value = !0, gI().then((se) => {
|
|
3914
3915
|
if (se.success)
|
|
3915
3916
|
if (g.businessType === "costForm")
|
|
@@ -3923,100 +3924,100 @@ const FB = f0, PB = Be({
|
|
|
3923
3924
|
}
|
|
3924
3925
|
else {
|
|
3925
3926
|
const De = "\u6CA1\u6709\u914D\u7F6E\u8868\u884C\u6570\u636E";
|
|
3926
|
-
|
|
3927
|
+
K.warning(De);
|
|
3927
3928
|
}
|
|
3928
3929
|
else
|
|
3929
|
-
|
|
3930
|
+
K.warning(se.message);
|
|
3930
3931
|
}).finally(() => {
|
|
3931
3932
|
m.value = !1;
|
|
3932
3933
|
});
|
|
3933
|
-
}, _I = (
|
|
3934
|
-
const ue = E_(
|
|
3934
|
+
}, _I = (Q) => {
|
|
3935
|
+
const ue = E_(Q);
|
|
3935
3936
|
let se = ue.value.getCheckboxRecords();
|
|
3936
|
-
if ((
|
|
3937
|
-
|
|
3937
|
+
if ((Q === "headGridRef" || Q === "itemGridRef") && se.some((Re) => Re.sys === "1")) {
|
|
3938
|
+
K.error("\u7CFB\u7EDF\u914D\u7F6E\u5B57\u6BB5\u4E0D\u5141\u8BB8\u5220\u9664");
|
|
3938
3939
|
return;
|
|
3939
3940
|
}
|
|
3940
3941
|
if (!se.length) {
|
|
3941
|
-
|
|
3942
|
+
K.error("\u8BF7\u9009\u62E9\u6570\u636E\uFF01");
|
|
3942
3943
|
return;
|
|
3943
3944
|
}
|
|
3944
|
-
ue.value.removeCheckboxRow(se), wI(
|
|
3945
|
+
ue.value.removeCheckboxRow(se), wI(Q);
|
|
3945
3946
|
}, D_ = () => {
|
|
3946
3947
|
m.value = !m.value;
|
|
3947
3948
|
}, bI = () => {
|
|
3948
3949
|
if (!a.value.id) {
|
|
3949
|
-
|
|
3950
|
+
K.warning("\u8BF7\u5148\u4FDD\u5B58\u6A21\u677F\u914D\u7F6E");
|
|
3950
3951
|
return;
|
|
3951
3952
|
}
|
|
3952
|
-
const
|
|
3953
|
-
gt("\u8868\u5934\u914D\u7F6E", a.value.id,
|
|
3953
|
+
const Q = "head", ue = "TemplateConfigHeadList";
|
|
3954
|
+
gt("\u8868\u5934\u914D\u7F6E", a.value.id, Q, ue, "/template/templateHead/exportTemplateColumnConfig", D_);
|
|
3954
3955
|
}, SI = () => {
|
|
3955
3956
|
if (!a.value.id) {
|
|
3956
|
-
|
|
3957
|
+
K.warning("\u8BF7\u5148\u4FDD\u5B58\u6A21\u677F\u914D\u7F6E");
|
|
3957
3958
|
return;
|
|
3958
3959
|
}
|
|
3959
|
-
const
|
|
3960
|
-
gt("\u8868\u884C\u914D\u7F6E", a.value.id,
|
|
3960
|
+
const Q = "item", ue = "TemplateConfigItemList";
|
|
3961
|
+
gt("\u8868\u884C\u914D\u7F6E", a.value.id, Q, ue, "/template/templateHead/exportTemplateColumnConfig", D_);
|
|
3961
3962
|
};
|
|
3962
|
-
let E_ = (
|
|
3963
|
-
const wI = (
|
|
3964
|
-
const ue = E_(
|
|
3963
|
+
let E_ = (Q) => ({ groupGridRef: v, headGridRef: C, itemGrid: I })[Q];
|
|
3964
|
+
const wI = (Q) => {
|
|
3965
|
+
const ue = E_(Q);
|
|
3965
3966
|
let { fullData: se } = ue.value.getTableData();
|
|
3966
3967
|
se.forEach((De, Re) => {
|
|
3967
3968
|
De.sortOrder = Re + 1;
|
|
3968
3969
|
});
|
|
3969
3970
|
}, CI = () => {
|
|
3970
3971
|
var De, Re;
|
|
3971
|
-
let
|
|
3972
|
-
if (!
|
|
3973
|
-
|
|
3972
|
+
let Q = h.value.getCheckboxRecords();
|
|
3973
|
+
if (!Q.length) {
|
|
3974
|
+
K.warning("\u8BF7\u9009\u62E9\u6570\u636E\uFF01");
|
|
3974
3975
|
return;
|
|
3975
3976
|
}
|
|
3976
3977
|
let ue = [];
|
|
3977
3978
|
Fi.value == "headGrid" ? ue = C.value.getTableData().fullData : ue = I.value.getTableData().fullData;
|
|
3978
3979
|
let se = ue.length;
|
|
3979
|
-
|
|
3980
|
+
Q.forEach((ut, Ge) => {
|
|
3980
3981
|
ut.sortOrder = se + Ge + 1;
|
|
3981
|
-
}), Fi.value == "headGrid" ? (De = C.value) == null || De.insertAt(
|
|
3982
|
-
}, T_ = (
|
|
3982
|
+
}), Fi.value == "headGrid" ? (De = C.value) == null || De.insertAt(Q, -1) : (Re = I.value) == null || Re.insertAt(Q, -1), E.value = !1;
|
|
3983
|
+
}, T_ = (Q, ue) => {
|
|
3983
3984
|
S_.value.forEach((se) => {
|
|
3984
|
-
let De = se.children.find((Re) => Re.field ==
|
|
3985
|
+
let De = se.children.find((Re) => Re.field == Q);
|
|
3985
3986
|
De && (De.disabled = ue);
|
|
3986
3987
|
});
|
|
3987
|
-
}, A_ = (
|
|
3988
|
-
["input", "number", "float", "date", "textArea"].includes(
|
|
3989
|
-
}, xI = (
|
|
3990
|
-
A_(
|
|
3991
|
-
let ue =
|
|
3988
|
+
}, A_ = (Q) => {
|
|
3989
|
+
["input", "number", "float", "date", "textArea"].includes(Q.fieldType) && Q.required == "0" ? T_("fold", !1) : (T_("fold", !0), d.value.fold && (d.value.fold = "0"));
|
|
3990
|
+
}, xI = (Q) => {
|
|
3991
|
+
A_(Q.row);
|
|
3992
|
+
let ue = Q.data, se = Q.$rowIndex;
|
|
3992
3993
|
mt(() => {
|
|
3993
3994
|
ue.forEach((De, Re) => {
|
|
3994
|
-
De.groupCode ===
|
|
3995
|
+
De.groupCode === Q.row.groupCode && se !== Re && (De.sum = 0);
|
|
3995
3996
|
});
|
|
3996
3997
|
});
|
|
3997
|
-
}, DI = (
|
|
3998
|
+
}, DI = (Q) => {
|
|
3998
3999
|
let ue = A.value.data, se = A.value.$rowIndex;
|
|
3999
4000
|
mt(() => {
|
|
4000
4001
|
ue.forEach((De, Re) => {
|
|
4001
|
-
De.groupCode ===
|
|
4002
|
+
De.groupCode === Q.groupCode && se !== Re && (De.sum = 0);
|
|
4002
4003
|
});
|
|
4003
4004
|
});
|
|
4004
|
-
}, EI = (
|
|
4005
|
-
c.value =
|
|
4006
|
-
}, TI = (
|
|
4007
|
-
A_(
|
|
4008
|
-
}, AI = (
|
|
4009
|
-
o.value =
|
|
4005
|
+
}, EI = (Q) => {
|
|
4006
|
+
c.value = Q, f.value.open();
|
|
4007
|
+
}, TI = (Q) => {
|
|
4008
|
+
A_(Q.row), d.value = Q.row, A.value = Q, u.value = !0;
|
|
4009
|
+
}, AI = (Q) => c.value.dictCode = Q.dictCode, LI = (Q) => {
|
|
4010
|
+
o.value = Q, Q === "callback" ? M.value = y.value === 2 ? za.bindFunctionHead : za.bindFunctionRow : Q === "initFunction" ? M.value = y.value === 2 ? za.initFunctionHead : za.initFunctionRow : Q === "extend" ? M.value = y.value === 2 ? za.extendHead : za.extendRow : Q === "fieldValidator" ? M.value = y.value === 2 ? za.fieldValidatorHead : za.fieldValidatorRow : Q === "formula" && (M.value = y.value === 2 ? za.formulaHead : za.formulaRow), s.value = !0;
|
|
4010
4011
|
}, MI = () => {
|
|
4011
4012
|
s.value = !1;
|
|
4012
|
-
}, II = (
|
|
4013
|
+
}, II = (Q) => {
|
|
4013
4014
|
let ue = !1;
|
|
4014
|
-
if (M.value =
|
|
4015
|
-
|
|
4015
|
+
if (M.value = Q, o.value === "callback" && !d.value.callback ? (d.value.callback = Q, ue = !0) : o.value === "initFunction" && !d.value.initFunction ? (d.value.initFunction = Q, ue = !0) : o.value === "extend" && !d.value.extend ? (d.value.extend = Q, ue = !0) : o.value === "fieldValidator" && !d.value.fieldValidator ? (d.value.fieldValidator = Q, ue = !0) : o.value === "formula" && !d.value.formula && (d.value.formula = Q, ue = !0), !ue) {
|
|
4016
|
+
K.warning("\u51FD\u6570\u5DF2\u5B58\u5728\uFF0C\u4E0D\u53EF\u5BFC\u5165\u793A\u4F8B");
|
|
4016
4017
|
return;
|
|
4017
4018
|
}
|
|
4018
4019
|
s.value = !1;
|
|
4019
|
-
}, FI = (
|
|
4020
|
+
}, FI = (Q) => {
|
|
4020
4021
|
let ue = A.value.data, se = A.value.$rowIndex, De = [...ue];
|
|
4021
4022
|
De.reverse();
|
|
4022
4023
|
let Re = De.findIndex((Ge) => Ge.fixType), ut = Re > -1 ? ue.length - Re - 1 : Re;
|
|
@@ -4028,46 +4029,46 @@ const FB = f0, PB = Be({
|
|
|
4028
4029
|
break;
|
|
4029
4030
|
mt(() => {
|
|
4030
4031
|
ue.forEach((Ge, Va) => {
|
|
4031
|
-
Ge.groupCode ===
|
|
4032
|
+
Ge.groupCode === Q.groupCode && se !== Va && (Ge.sum = 0);
|
|
4032
4033
|
});
|
|
4033
4034
|
});
|
|
4034
|
-
}, L_ = (
|
|
4035
|
-
let ue =
|
|
4035
|
+
}, L_ = (Q) => {
|
|
4036
|
+
let ue = Q.getTableData().fullData;
|
|
4036
4037
|
ue = Wo.sortBy(ue, function(se) {
|
|
4037
4038
|
return parseInt(se.sortOrder);
|
|
4038
|
-
}).map((se, De) => (se.sortOrder = De + 1, se)),
|
|
4039
|
+
}).map((se, De) => (se.sortOrder = De + 1, se)), Q.loadData(ue);
|
|
4039
4040
|
}, PI = () => {
|
|
4040
|
-
let
|
|
4041
|
-
L_(
|
|
4042
|
-
}, M_ = (
|
|
4043
|
-
|
|
4041
|
+
let Q = C.value, ue = I.value;
|
|
4042
|
+
L_(Q), L_(ue);
|
|
4043
|
+
}, M_ = (Q, ue) => {
|
|
4044
|
+
Q.forEach((se) => {
|
|
4044
4045
|
se.fieldType === ue && se.defaultValue instanceof Array && (se.defaultValue = se.defaultValue.join(","));
|
|
4045
4046
|
});
|
|
4046
|
-
}, BI = (
|
|
4047
|
+
}, BI = (Q) => {
|
|
4047
4048
|
let ue = Tl.add;
|
|
4048
|
-
a.value && a.value.id && (ue = Tl.edit),
|
|
4049
|
+
a.value && a.value.id && (ue = Tl.edit), Q == "publish" && (ue = Tl.publish), PI();
|
|
4049
4050
|
let se = Object.assign({ templateGroupList: [], templateConfigHeadList: [], templateConfigItemList: [] }, g), De = C.value.getTableData().fullData, Re = I.value.getTableData().fullData;
|
|
4050
4051
|
M_(Re, "multiple"), M_(De, "multiple"), se.templateGroupList = v.value.getTableData().fullData, se.templateConfigHeadList = De, se.templateConfigItemList = Re, m.value = !0, e.post({ url: ue, data: se }).then((ut) => {
|
|
4051
4052
|
if (ut.success) {
|
|
4052
|
-
if (g.id = ut.result ? ut.result.id : "", g.elsAccount = ut.result ? ut.result.elsAccount : "", a.value.id = g.id, R.value = ut.result, g.templateVersion = ut.result ? ut.result.templateVersion : "", Tl.add == ue ||
|
|
4053
|
+
if (g.id = ut.result ? ut.result.id : "", g.elsAccount = ut.result ? ut.result.elsAccount : "", a.value.id = g.id, R.value = ut.result, g.templateVersion = ut.result ? ut.result.templateVersion : "", Tl.add == ue || Q == "publish") {
|
|
4053
4054
|
const Ge = ut.result;
|
|
4054
4055
|
g.templateNumber = Ge ? Ge.templateNumber : "", a.value.templateStatus = Ge ? Ge.templateStatus : "", F.value = `${Ge.elsAccount}/purchase_${Ge.businessType}_${Ge.templateNumber}_${Ge.templateVersion}`;
|
|
4055
4056
|
}
|
|
4056
|
-
|
|
4057
|
+
K.success("\u64CD\u4F5C\u6210\u529F\uFF01");
|
|
4057
4058
|
} else
|
|
4058
|
-
|
|
4059
|
+
K.warning(ut.message);
|
|
4059
4060
|
m.value = !1;
|
|
4060
4061
|
});
|
|
4061
|
-
}, RI = (
|
|
4062
|
+
}, RI = (Q = "") => {
|
|
4062
4063
|
let { fullData: ue } = I.value.getTableData();
|
|
4063
4064
|
I.value.validate(ue, (se) => {
|
|
4064
|
-
se || BI(
|
|
4065
|
+
se || BI(Q);
|
|
4065
4066
|
});
|
|
4066
4067
|
}, NI = () => {
|
|
4067
4068
|
B.value = !0;
|
|
4068
4069
|
}, kI = () => {
|
|
4069
4070
|
t("handleReturn");
|
|
4070
|
-
}, OI = (
|
|
4071
|
+
}, OI = (Q, ue) => ue.title.toLowerCase().indexOf(Q.toLowerCase()) >= 0;
|
|
4071
4072
|
return nl(() => {
|
|
4072
4073
|
a.value && a.value.id ? uI() : mt(() => {
|
|
4073
4074
|
m.value = !1;
|
|
@@ -4143,7 +4144,7 @@ const FB = f0, PB = Be({
|
|
|
4143
4144
|
};
|
|
4144
4145
|
}
|
|
4145
4146
|
});
|
|
4146
|
-
const Yo = (r) => (S2("data-v-
|
|
4147
|
+
const Yo = (r) => (S2("data-v-e98e2a52"), r = r(), w2(), r), BB = { class: "page-container" }, RB = { class: "edit-page" }, NB = { class: "page-header" }, kB = { class: "page-content" }, OB = { class: "content-step-one" }, VB = { class: "content-step-trow" }, zB = { id: "groupGrid" }, GB = /* @__PURE__ */ Yo(() => /* @__PURE__ */ ae("span", {
|
|
4147
4148
|
class: "drag-btn",
|
|
4148
4149
|
style: { cursor: "move" }
|
|
4149
4150
|
}, [
|
|
@@ -5370,7 +5371,7 @@ function y4(r, t, e, a, n, i) {
|
|
|
5370
5371
|
}, null, 8, ["currentEditRow", "openTure"])
|
|
5371
5372
|
]);
|
|
5372
5373
|
}
|
|
5373
|
-
const W2 = /* @__PURE__ */ St(PB, [["render", y4], ["__scopeId", "data-v-
|
|
5374
|
+
const W2 = /* @__PURE__ */ St(PB, [["render", y4], ["__scopeId", "data-v-e98e2a52"]]), _4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5374
5375
|
__proto__: null,
|
|
5375
5376
|
default: W2
|
|
5376
5377
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5401,12 +5402,12 @@ function d0(r) {
|
|
|
5401
5402
|
const _ = new FileReader();
|
|
5402
5403
|
_.onloadend = () => {
|
|
5403
5404
|
const b = JSON.parse(_.result);
|
|
5404
|
-
|
|
5405
|
+
K.error(b.message);
|
|
5405
5406
|
}, _.readAsText(g);
|
|
5406
5407
|
return;
|
|
5407
5408
|
}
|
|
5408
5409
|
if (!g) {
|
|
5409
|
-
|
|
5410
|
+
K.error("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25");
|
|
5410
5411
|
return;
|
|
5411
5412
|
}
|
|
5412
5413
|
const m = window.URL.createObjectURL(new Blob([g])), y = document.createElement("a");
|
|
@@ -5415,7 +5416,7 @@ function d0(r) {
|
|
|
5415
5416
|
h && h();
|
|
5416
5417
|
});
|
|
5417
5418
|
}, handleCopy: ({ url: s = "", type: l, row: u, afterCallback: c, tip: f = "\u63D0\u793A" }) => {
|
|
5418
|
-
s == "" &&
|
|
5419
|
+
s == "" && K.error("\u8BF7\u914D\u7F6EURL");
|
|
5419
5420
|
const d = l, h = {
|
|
5420
5421
|
id: u.id
|
|
5421
5422
|
};
|
|
@@ -5430,14 +5431,14 @@ function d0(r) {
|
|
|
5430
5431
|
params: h,
|
|
5431
5432
|
data: h
|
|
5432
5433
|
}).then((p) => {
|
|
5433
|
-
p.success ?
|
|
5434
|
+
p.success ? K.success(p.message) : K.error(p.message);
|
|
5434
5435
|
}).finally(() => {
|
|
5435
5436
|
c && c();
|
|
5436
5437
|
});
|
|
5437
5438
|
}
|
|
5438
5439
|
});
|
|
5439
5440
|
}, handleCancel: ({ url: s = "", type: l, row: u, afterCallback: c, tip: f = "\u63D0\u793A" }) => {
|
|
5440
|
-
s == "" &&
|
|
5441
|
+
s == "" && K.error("\u8BF7\u914D\u7F6EURL");
|
|
5441
5442
|
const d = l, h = {
|
|
5442
5443
|
id: u.id
|
|
5443
5444
|
};
|
|
@@ -5452,14 +5453,14 @@ function d0(r) {
|
|
|
5452
5453
|
params: h,
|
|
5453
5454
|
data: h
|
|
5454
5455
|
}).then((p) => {
|
|
5455
|
-
p.success ?
|
|
5456
|
+
p.success ? K.success(p.message) : K.error(p.message);
|
|
5456
5457
|
}).finally(() => {
|
|
5457
5458
|
c && c();
|
|
5458
5459
|
});
|
|
5459
5460
|
}
|
|
5460
5461
|
});
|
|
5461
5462
|
}, handleDelete: ({ url: s = "", type: l, row: u, afterCallback: c, tip: f = "\u63D0\u793A" }) => {
|
|
5462
|
-
s == "" &&
|
|
5463
|
+
s == "" && K.error("\u8BF7\u914D\u7F6EURL");
|
|
5463
5464
|
const d = l, h = {
|
|
5464
5465
|
id: u.id
|
|
5465
5466
|
};
|
|
@@ -5474,14 +5475,14 @@ function d0(r) {
|
|
|
5474
5475
|
params: h,
|
|
5475
5476
|
data: h
|
|
5476
5477
|
}).then((p) => {
|
|
5477
|
-
p.success ?
|
|
5478
|
+
p.success ? K.success(p.message) : K.error(p.message);
|
|
5478
5479
|
}).finally(() => {
|
|
5479
5480
|
c && c();
|
|
5480
5481
|
});
|
|
5481
5482
|
}
|
|
5482
5483
|
});
|
|
5483
5484
|
}, handleUpgrade: ({ url: s = "", type: l, row: u, afterCallback: c, tip: f = "\u63D0\u793A" }) => {
|
|
5484
|
-
s == "" &&
|
|
5485
|
+
s == "" && K.error("\u8BF7\u914D\u7F6EURL");
|
|
5485
5486
|
const d = l, h = {
|
|
5486
5487
|
id: u.id
|
|
5487
5488
|
};
|
|
@@ -5496,14 +5497,14 @@ function d0(r) {
|
|
|
5496
5497
|
params: h,
|
|
5497
5498
|
data: h
|
|
5498
5499
|
}).then((p) => {
|
|
5499
|
-
p.success ?
|
|
5500
|
+
p.success ? K.success(p.message) : K.error(p.message);
|
|
5500
5501
|
}).finally(() => {
|
|
5501
5502
|
c && c();
|
|
5502
5503
|
});
|
|
5503
5504
|
}
|
|
5504
5505
|
});
|
|
5505
5506
|
}, handlUniversal: ({ url: s = "", type: l, row: u, afterCallback: c, tip: f = "\u63D0\u793A" }) => {
|
|
5506
|
-
s == "" &&
|
|
5507
|
+
s == "" && K.error("\u8BF7\u914D\u7F6EURL");
|
|
5507
5508
|
const d = l, h = {
|
|
5508
5509
|
id: u.id
|
|
5509
5510
|
};
|
|
@@ -5518,7 +5519,7 @@ function d0(r) {
|
|
|
5518
5519
|
params: h,
|
|
5519
5520
|
data: h
|
|
5520
5521
|
}).then((p) => {
|
|
5521
|
-
p.success ?
|
|
5522
|
+
p.success ? K.success(p.message) : K.error(p.message);
|
|
5522
5523
|
}).finally(() => {
|
|
5523
5524
|
c && c();
|
|
5524
5525
|
});
|
|
@@ -5620,13 +5621,13 @@ const C4 = Be({
|
|
|
5620
5621
|
},
|
|
5621
5622
|
imortChangeEvent(r) {
|
|
5622
5623
|
const t = r.file.response;
|
|
5623
|
-
t && t.success ? this.isLoading = !0 : t && !t.success &&
|
|
5624
|
+
t && t.success ? this.isLoading = !0 : t && !t.success && K.error("\u6587\u4EF6\u5BFC\u5165\u5931\u8D25\uFF1A" + t.message);
|
|
5624
5625
|
},
|
|
5625
5626
|
beforeUpload(r) {
|
|
5626
5627
|
if (r.name.substr(r.name.lastIndexOf(".")) !== ".json")
|
|
5627
|
-
return
|
|
5628
|
+
return K.warning("\u8BF7\u4E0A\u4F20Json\u6587\u4EF6"), !1;
|
|
5628
5629
|
if (r.size > 20 * 1024 * 1024)
|
|
5629
|
-
return
|
|
5630
|
+
return K.warning("\u8D85\u8FC7\u6700\u5927\u6587\u4EF6\u9650\u5236!"), !1;
|
|
5630
5631
|
}
|
|
5631
5632
|
},
|
|
5632
5633
|
watch: {
|
|
@@ -5781,12 +5782,12 @@ const I4 = /* @__PURE__ */ St(C4, [["render", M4], ["__scopeId", "data-v-6a21d02
|
|
|
5781
5782
|
i.value.loading = !0;
|
|
5782
5783
|
let B = (i.value.gridInstance.getCheckboxRecords() || []).map((R) => R.id);
|
|
5783
5784
|
if (B.length == 0)
|
|
5784
|
-
return
|
|
5785
|
+
return K.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u6A21\u7248\u8FDB\u884C\u914D\u7F6E\u751F\u6210\uFF01"), !1;
|
|
5785
5786
|
s.post({
|
|
5786
5787
|
url: e.value.batchGeneratorConfig,
|
|
5787
5788
|
data: B
|
|
5788
5789
|
}).then((R) => {
|
|
5789
|
-
R.success ?
|
|
5790
|
+
R.success ? K.success(R.message) : K.warning(R.message);
|
|
5790
5791
|
}).finally(() => {
|
|
5791
5792
|
i.value.loading = !1, i.value.gridInstance.clearCheckboxRow(), i.value.fetchListData();
|
|
5792
5793
|
});
|
|
@@ -5794,7 +5795,7 @@ const I4 = /* @__PURE__ */ St(C4, [["render", M4], ["__scopeId", "data-v-6a21d02
|
|
|
5794
5795
|
function S() {
|
|
5795
5796
|
const F = i.value.gridInstance.getCheckboxRecords() || [];
|
|
5796
5797
|
if (F.length > 1 || F.length === 0) {
|
|
5797
|
-
|
|
5798
|
+
K.warning("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E\u5BFC\u51FA");
|
|
5798
5799
|
return;
|
|
5799
5800
|
}
|
|
5800
5801
|
l({
|
|
@@ -6541,7 +6542,7 @@ const $4 = /* @__PURE__ */ St(V4, [["render", G4], ["__scopeId", "data-v-eefb177
|
|
|
6541
6542
|
const s = Na.useHttp();
|
|
6542
6543
|
function l() {
|
|
6543
6544
|
s.get({ url: "/integrated/integratedReportData/refreshReportData" }).then((u) => {
|
|
6544
|
-
u.success ? i.value.fetchListData() :
|
|
6545
|
+
u.success ? i.value.fetchListData() : K.error(u.message);
|
|
6545
6546
|
});
|
|
6546
6547
|
}
|
|
6547
6548
|
return (u, c) => {
|
|
@@ -6563,7 +6564,7 @@ const $4 = /* @__PURE__ */ St(V4, [["render", G4], ["__scopeId", "data-v-eefb177
|
|
|
6563
6564
|
setup(r) {
|
|
6564
6565
|
const t = Ke("Q_SRM_I18N", (l, u, c) => l && c ? c + u : u), e = Y(), a = Na.useHttp(), n = () => {
|
|
6565
6566
|
a.get({ url: "/integrated/integratedReportData/refreshNodes" }).then((l) => {
|
|
6566
|
-
l && l.success ? (
|
|
6567
|
+
l && l.success ? (K.success(l.message), e.value.fetchListData()) : K.error(l.message);
|
|
6567
6568
|
});
|
|
6568
6569
|
}, i = Le({
|
|
6569
6570
|
columnsCode: "purchaseRequest",
|
|
@@ -6599,7 +6600,7 @@ const $4 = /* @__PURE__ */ St(V4, [["render", G4], ["__scopeId", "data-v-eefb177
|
|
|
6599
6600
|
queryConfig: {
|
|
6600
6601
|
customSearch: (l) => {
|
|
6601
6602
|
if (console.log("customSearch", l), !l.businessTypeCore)
|
|
6602
|
-
return
|
|
6603
|
+
return K.warn("\u8BF7\u5148\u9009\u62E9\u4E1A\u52A1\u6A21\u5757");
|
|
6603
6604
|
e.value.fetchListData();
|
|
6604
6605
|
},
|
|
6605
6606
|
form: [
|
|
@@ -6750,7 +6751,7 @@ const $4 = /* @__PURE__ */ St(V4, [["render", G4], ["__scopeId", "data-v-eefb177
|
|
|
6750
6751
|
},
|
|
6751
6752
|
methods: {
|
|
6752
6753
|
onReset() {
|
|
6753
|
-
|
|
6754
|
+
K.success("\u5DF2\u91CD\u7F6E"), this.init();
|
|
6754
6755
|
},
|
|
6755
6756
|
onSubmit() {
|
|
6756
6757
|
console.log(this.form);
|
|
@@ -6760,7 +6761,7 @@ const $4 = /* @__PURE__ */ St(V4, [["render", G4], ["__scopeId", "data-v-eefb177
|
|
|
6760
6761
|
}), this.allowRepeatLogin = this.form.allowRepeatLogin ? "1" : "0";
|
|
6761
6762
|
let t = Object.assign({}, this.form, { complexity: JSON.stringify(this.complexity), allowRepeatLogin: this.allowRepeatLogin });
|
|
6762
6763
|
console.log("postData!", t), this.qHttp.post({ url: r, data: t }).then((e) => {
|
|
6763
|
-
e.success ? (
|
|
6764
|
+
e.success ? (K.success("\u63D0\u4EA4\u6210\u529F"), this.init()) : K.warning(e.message);
|
|
6764
6765
|
});
|
|
6765
6766
|
},
|
|
6766
6767
|
init() {
|
|
@@ -7209,7 +7210,7 @@ const DR = /* @__PURE__ */ St(CR, [["render", xR], ["__scopeId", "data-v-b66225c
|
|
|
7209
7210
|
f.value.loading = !0, u.get({
|
|
7210
7211
|
url: i.value.delRedisData
|
|
7211
7212
|
}).then((S) => {
|
|
7212
|
-
S.success ? (
|
|
7213
|
+
S.success ? (K.success(S.message), f.value.fetchListData()) : K.warning(S.message);
|
|
7213
7214
|
}).finally(() => {
|
|
7214
7215
|
f.value.loading = !0;
|
|
7215
7216
|
});
|
|
@@ -7224,7 +7225,7 @@ const DR = /* @__PURE__ */ St(CR, [["render", xR], ["__scopeId", "data-v-b66225c
|
|
|
7224
7225
|
f.value.loading = !0, u.get({
|
|
7225
7226
|
url: i.value.delPerRedis
|
|
7226
7227
|
}).then((S) => {
|
|
7227
|
-
S.success ? (
|
|
7228
|
+
S.success ? (K.success(S.message), f.value.fetchListData()) : K.warning(S.message);
|
|
7228
7229
|
}).finally(() => {
|
|
7229
7230
|
f.value.loading = !0;
|
|
7230
7231
|
});
|
|
@@ -7235,7 +7236,7 @@ const DR = /* @__PURE__ */ St(CR, [["render", xR], ["__scopeId", "data-v-b66225c
|
|
|
7235
7236
|
f.value.loading = !0, u.get({
|
|
7236
7237
|
url: i.value.translateAll
|
|
7237
7238
|
}).then((S) => {
|
|
7238
|
-
f.value.loading = !1, S.success ?
|
|
7239
|
+
f.value.loading = !1, S.success ? K.success("\u64CD\u4F5C\u6210\u529F") : K.warning("\u64CD\u4F5C\u5931\u8D25");
|
|
7239
7240
|
}).catch(() => {
|
|
7240
7241
|
f.value.loading = !1;
|
|
7241
7242
|
});
|
|
@@ -7243,20 +7244,20 @@ const DR = /* @__PURE__ */ St(CR, [["render", xR], ["__scopeId", "data-v-b66225c
|
|
|
7243
7244
|
function v() {
|
|
7244
7245
|
var w, C;
|
|
7245
7246
|
if (((C = (w = r.userInfo) == null ? void 0 : w.userInfo) == null ? void 0 : C.elsAccount) != "100000") {
|
|
7246
|
-
|
|
7247
|
+
K.warning("\u8BF7\u5728\u5E73\u53F0\u6DFB\u52A0\u8BCD\u6761\uFF01");
|
|
7247
7248
|
return;
|
|
7248
7249
|
}
|
|
7249
7250
|
o.value = !0;
|
|
7250
7251
|
}
|
|
7251
7252
|
function g(S) {
|
|
7252
|
-
S == "confirm" ? !s.value.i18nValue && !s.value.i18nValue ?
|
|
7253
|
+
S == "confirm" ? !s.value.i18nValue && !s.value.i18nValue ? K.error("\u8BF7\u586B\u5199\u8BCD\u6761\u7C7B\u578B\u548C\u4E2D\u6587\u5185\u5BB9") : (f.value.loading = !0, u.post({
|
|
7253
7254
|
url: i.value.add,
|
|
7254
7255
|
data: {
|
|
7255
7256
|
translateType: s.value.translateType,
|
|
7256
7257
|
i18nValue: s.value.i18nValue
|
|
7257
7258
|
}
|
|
7258
7259
|
}).then((w) => {
|
|
7259
|
-
f.value.loading = !1, w.success ? (
|
|
7260
|
+
f.value.loading = !1, w.success ? (K.success("\u64CD\u4F5C\u6210\u529F"), f.value.fetchListData()) : K.warning("\u64CD\u4F5C\u5931\u8D25");
|
|
7260
7261
|
}).catch(() => {
|
|
7261
7262
|
f.value.loading = !1;
|
|
7262
7263
|
})) : s.value = {
|
|
@@ -7273,7 +7274,7 @@ const DR = /* @__PURE__ */ St(CR, [["render", xR], ["__scopeId", "data-v-b66225c
|
|
|
7273
7274
|
url: i.value.deleteWord,
|
|
7274
7275
|
params: { i18nKey: S.i18nKey }
|
|
7275
7276
|
}).then((w) => {
|
|
7276
|
-
w.success ? (
|
|
7277
|
+
w.success ? (K.success(w.message), f.value.fetchListData()) : K.warning(w.message);
|
|
7277
7278
|
}).finally(() => {
|
|
7278
7279
|
f.value.loading = !0;
|
|
7279
7280
|
});
|
|
@@ -7284,11 +7285,11 @@ const DR = /* @__PURE__ */ St(CR, [["render", xR], ["__scopeId", "data-v-b66225c
|
|
|
7284
7285
|
a.value = !0;
|
|
7285
7286
|
}
|
|
7286
7287
|
function _(S) {
|
|
7287
|
-
S == "confirm" && (e.value == "zh" ?
|
|
7288
|
+
S == "confirm" && (e.value == "zh" ? K.warning("\u4E2D\u6587\u4E0D\u9700\u8981\u7FFB\u8BD1\uFF01") : (f.value.loading = !0, u.get({
|
|
7288
7289
|
url: i.value.translateData,
|
|
7289
7290
|
params: { to: e.value }
|
|
7290
7291
|
}).then((w) => {
|
|
7291
|
-
w.success && (
|
|
7292
|
+
w.success && (K.success("\u64CD\u4F5C\u6210\u529F\uFF01"), f.value.fetchListData());
|
|
7292
7293
|
}).finally(() => {
|
|
7293
7294
|
f.value.loading = !1, a.value = !1;
|
|
7294
7295
|
})));
|
|
@@ -7836,7 +7837,7 @@ const BR = /* @__PURE__ */ St(FR, [["render", PR], ["__scopeId", "data-v-b3e4afb
|
|
|
7836
7837
|
function m({ row: D = {} }) {
|
|
7837
7838
|
let E = D.id, A = D.status, M = D.subAccount, I = "\u51BB\u7ED3";
|
|
7838
7839
|
if (M == "admin") {
|
|
7839
|
-
|
|
7840
|
+
K.warning("\u7BA1\u7406\u5458\u8D26\u53F7\u4E0D\u5141\u8BB8\u6B64\u64CD\u4F5C\uFF01");
|
|
7840
7841
|
return;
|
|
7841
7842
|
}
|
|
7842
7843
|
A == "1" ? A = "2" : (A = "1", I = "\u89E3\u51BB"), Ut.confirm({
|
|
@@ -7847,7 +7848,7 @@ const BR = /* @__PURE__ */ St(FR, [["render", PR], ["__scopeId", "data-v-b3e4afb
|
|
|
7847
7848
|
url: "/account/elsSubAccount/frozenBatch",
|
|
7848
7849
|
data: { ids: E, status: A }
|
|
7849
7850
|
}).then((F) => {
|
|
7850
|
-
F.success ? (s.value.fetchListData(),
|
|
7851
|
+
F.success ? (s.value.fetchListData(), K.success(F.message)) : K.warning(F.message);
|
|
7851
7852
|
});
|
|
7852
7853
|
}
|
|
7853
7854
|
});
|
|
@@ -7865,7 +7866,7 @@ const BR = /* @__PURE__ */ St(FR, [["render", PR], ["__scopeId", "data-v-b3e4afb
|
|
|
7865
7866
|
...c.value
|
|
7866
7867
|
}
|
|
7867
7868
|
}).then((E) => {
|
|
7868
|
-
E.success ? (s.value.fetchListData(),
|
|
7869
|
+
E.success ? (s.value.fetchListData(), K.success("\u64CD\u4F5C\u6210\u529F")) : K.warning("\u64CD\u4F5C\u5931\u8D25");
|
|
7869
7870
|
}).finally(() => {
|
|
7870
7871
|
l.value = !1;
|
|
7871
7872
|
});
|
|
@@ -7881,7 +7882,7 @@ const BR = /* @__PURE__ */ St(FR, [["render", PR], ["__scopeId", "data-v-b3e4afb
|
|
|
7881
7882
|
n.value.validate((E) => {
|
|
7882
7883
|
if (!E) {
|
|
7883
7884
|
if (h.value.confirmpassword != h.value.password) {
|
|
7884
|
-
|
|
7885
|
+
K.warning("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4");
|
|
7885
7886
|
return;
|
|
7886
7887
|
}
|
|
7887
7888
|
v.put({
|
|
@@ -7890,7 +7891,7 @@ const BR = /* @__PURE__ */ St(FR, [["render", PR], ["__scopeId", "data-v-b3e4afb
|
|
|
7890
7891
|
...h.value
|
|
7891
7892
|
}
|
|
7892
7893
|
}).then((A) => {
|
|
7893
|
-
A.success ? (s.value.fetchListData(),
|
|
7894
|
+
A.success ? (s.value.fetchListData(), K.success("\u64CD\u4F5C\u6210\u529F")) : K.warning("\u64CD\u4F5C\u5931\u8D25");
|
|
7894
7895
|
}).finally(() => {
|
|
7895
7896
|
u.value = !1;
|
|
7896
7897
|
});
|
|
@@ -7914,7 +7915,7 @@ const BR = /* @__PURE__ */ St(FR, [["render", PR], ["__scopeId", "data-v-b3e4afb
|
|
|
7914
7915
|
var E;
|
|
7915
7916
|
let D = s.value.gridInstance.getCheckboxRecords() || [];
|
|
7916
7917
|
if (D.length > 1 || D.length == 0) {
|
|
7917
|
-
|
|
7918
|
+
K.warning("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
7918
7919
|
return;
|
|
7919
7920
|
}
|
|
7920
7921
|
a.value.elsAccount = (E = D[0]) == null ? void 0 : E.elsAccount, w(D[0]).then(() => {
|
|
@@ -8319,7 +8320,7 @@ const GR = Be({
|
|
|
8319
8320
|
a.value.loading = !0, e.get({
|
|
8320
8321
|
url: c.value.getDataByErpUrl
|
|
8321
8322
|
}).then((I) => {
|
|
8322
|
-
a.value.loading = !1, I.success ?
|
|
8323
|
+
a.value.loading = !1, I.success ? K.success("\u64CD\u4F5C\u6210\u529F") : K.warning("\u64CD\u4F5C\u5931\u8D25");
|
|
8323
8324
|
}).catch(() => {
|
|
8324
8325
|
a.value.loading = !1;
|
|
8325
8326
|
});
|
|
@@ -8327,7 +8328,7 @@ const GR = Be({
|
|
|
8327
8328
|
function m() {
|
|
8328
8329
|
let I = a.value.gridInstance.getCheckboxRecords() || [];
|
|
8329
8330
|
if (!I.length) {
|
|
8330
|
-
|
|
8331
|
+
K.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u884C");
|
|
8331
8332
|
return;
|
|
8332
8333
|
}
|
|
8333
8334
|
let F = I.map((B) => B.id).join(",");
|
|
@@ -8337,7 +8338,7 @@ const GR = Be({
|
|
|
8337
8338
|
ids: F
|
|
8338
8339
|
}
|
|
8339
8340
|
}).then((B) => {
|
|
8340
|
-
a.value.loading = !1, B.success ?
|
|
8341
|
+
a.value.loading = !1, B.success ? K.success("\u64CD\u4F5C\u6210\u529F") : K.warning("\u64CD\u4F5C\u5931\u8D25");
|
|
8341
8342
|
}).catch(() => {
|
|
8342
8343
|
a.value.loading = !1;
|
|
8343
8344
|
});
|
|
@@ -8345,7 +8346,7 @@ const GR = Be({
|
|
|
8345
8346
|
function y() {
|
|
8346
8347
|
let I = a.value.gridInstance.getCheckboxRecords() || [];
|
|
8347
8348
|
if (!I.length) {
|
|
8348
|
-
|
|
8349
|
+
K.warning("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u884C");
|
|
8349
8350
|
return;
|
|
8350
8351
|
}
|
|
8351
8352
|
let F = I.map((B) => B.id).join(",");
|
|
@@ -8355,7 +8356,7 @@ const GR = Be({
|
|
|
8355
8356
|
ids: F
|
|
8356
8357
|
}
|
|
8357
8358
|
}).then((B) => {
|
|
8358
|
-
a.value.loading = !1, B.success ?
|
|
8359
|
+
a.value.loading = !1, B.success ? K.success(B.message) : K.warning(B.message);
|
|
8359
8360
|
}).catch(() => {
|
|
8360
8361
|
a.value.loading = !1;
|
|
8361
8362
|
});
|
|
@@ -8364,7 +8365,7 @@ const GR = Be({
|
|
|
8364
8365
|
let F = I.id, B = I.status, R = I.subAccount, $ = "\u51BB\u7ED3";
|
|
8365
8366
|
if (R == "admin") {
|
|
8366
8367
|
const U = "\u7BA1\u7406\u5458\u8D26\u53F7\u4E0D\u5141\u8BB8\u6B64\u64CD\u4F5C\uFF01";
|
|
8367
|
-
|
|
8368
|
+
K.warning(U);
|
|
8368
8369
|
return;
|
|
8369
8370
|
}
|
|
8370
8371
|
B == "1" ? B = "2" : (B = "1", $ = "\u89E3\u51BB");
|
|
@@ -8377,7 +8378,7 @@ const GR = Be({
|
|
|
8377
8378
|
url: "/account/elsSubAccount/frozenBatch",
|
|
8378
8379
|
data: { ids: F, status: B }
|
|
8379
8380
|
}).then((U) => {
|
|
8380
|
-
U.success ? (
|
|
8381
|
+
U.success ? (K.success(U.message), a.value.fetchListData()) : K.warning(U.message);
|
|
8381
8382
|
});
|
|
8382
8383
|
}
|
|
8383
8384
|
});
|
|
@@ -8414,7 +8415,7 @@ const GR = Be({
|
|
|
8414
8415
|
url: "/account/elsSubAccount/deliverTo",
|
|
8415
8416
|
params: I
|
|
8416
8417
|
}).then((R) => {
|
|
8417
|
-
a.value.loading = !0, R.success ? (
|
|
8418
|
+
a.value.loading = !0, R.success ? (K.success(R.message), d.value = {}, a.value.fetchListData()) : K.warning(R.message);
|
|
8418
8419
|
}).finally(() => {
|
|
8419
8420
|
f.value = !1;
|
|
8420
8421
|
});
|
|
@@ -8431,7 +8432,7 @@ const GR = Be({
|
|
|
8431
8432
|
o.value.validate((F) => {
|
|
8432
8433
|
if (!F) {
|
|
8433
8434
|
if (s.value.confirmpassword != s.value.password) {
|
|
8434
|
-
|
|
8435
|
+
K.warning("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4");
|
|
8435
8436
|
return;
|
|
8436
8437
|
}
|
|
8437
8438
|
e.put({
|
|
@@ -8440,7 +8441,7 @@ const GR = Be({
|
|
|
8440
8441
|
...s.value
|
|
8441
8442
|
}
|
|
8442
8443
|
}).then((B) => {
|
|
8443
|
-
B.success ? (a.value.fetchListData(),
|
|
8444
|
+
B.success ? (a.value.fetchListData(), K.success("\u64CD\u4F5C\u6210\u529F")) : K.warning("\u64CD\u4F5C\u5931\u8D25");
|
|
8444
8445
|
}).finally(() => {
|
|
8445
8446
|
l.value = !1;
|
|
8446
8447
|
});
|
|
@@ -9578,7 +9579,7 @@ const i7 = {
|
|
|
9578
9579
|
}
|
|
9579
9580
|
N.then((O) => {
|
|
9580
9581
|
const H = O, Z = H.success ? "success" : "error";
|
|
9581
|
-
|
|
9582
|
+
K[Z](H.message), H.success && t.emit("authCancel");
|
|
9582
9583
|
}).finally(() => {
|
|
9583
9584
|
b.value = !1;
|
|
9584
9585
|
});
|
|
@@ -9820,7 +9821,7 @@ const i7 = {
|
|
|
9820
9821
|
{
|
|
9821
9822
|
validator: async ({ itemValue: C }) => {
|
|
9822
9823
|
if (/[\u4E00-\u9FA5]/g.test(C))
|
|
9823
|
-
return
|
|
9824
|
+
return K.warn("\u89D2\u8272\u7F16\u7801\u4E0D\u53EF\u8F93\u5165\u6C49\u5B57!"), Promise.reject("\u89D2\u8272\u7F16\u7801\u4E0D\u53EF\u8F93\u5165\u6C49\u5B57!");
|
|
9824
9825
|
if (t.value.id)
|
|
9825
9826
|
return Promise.resolve();
|
|
9826
9827
|
{
|
|
@@ -9830,7 +9831,7 @@ const i7 = {
|
|
|
9830
9831
|
fieldVal: C,
|
|
9831
9832
|
dataId: i.value.id
|
|
9832
9833
|
}, D = await l.get({ url: "/base/duplicate/check", params: x });
|
|
9833
|
-
return D && D.success ? Promise.resolve() : (
|
|
9834
|
+
return D && D.success ? Promise.resolve() : (K.warn(D.message), Promise.reject(D.message));
|
|
9834
9835
|
}
|
|
9835
9836
|
}
|
|
9836
9837
|
}
|
|
@@ -9924,11 +9925,11 @@ const i7 = {
|
|
|
9924
9925
|
}
|
|
9925
9926
|
function y() {
|
|
9926
9927
|
if (i.value.roleName == "") {
|
|
9927
|
-
|
|
9928
|
+
K.warning("\u8BF7\u8F93\u5165\u89D2\u8272\u540D\u79F0");
|
|
9928
9929
|
return;
|
|
9929
9930
|
}
|
|
9930
9931
|
if (i.value.roleCode == "") {
|
|
9931
|
-
|
|
9932
|
+
K.warning("\u8BF7\u8F93\u5165\u89D2\u8272\u7F16\u7801");
|
|
9932
9933
|
return;
|
|
9933
9934
|
}
|
|
9934
9935
|
let C = { id: o.value.id, roleName: i.value.roleName, roleCode: i.value.roleCode };
|
|
@@ -9936,7 +9937,7 @@ const i7 = {
|
|
|
9936
9937
|
url: a.value.copy,
|
|
9937
9938
|
data: C
|
|
9938
9939
|
}).then((x) => {
|
|
9939
|
-
s.value.loading = !1, x.success ? (s.value.fetchListData(),
|
|
9940
|
+
s.value.loading = !1, x.success ? (s.value.fetchListData(), K.success(x.message)) : K.warning(x.message);
|
|
9940
9941
|
}).finally(() => {
|
|
9941
9942
|
o.value = {}, i.value = {}, n.value = !1;
|
|
9942
9943
|
});
|
|
@@ -9959,7 +9960,7 @@ const i7 = {
|
|
|
9959
9960
|
...t.value
|
|
9960
9961
|
}
|
|
9961
9962
|
}).then((x) => {
|
|
9962
|
-
s.value.loading = !1, x.success ? (s.value.fetchListData(),
|
|
9963
|
+
s.value.loading = !1, x.success ? (s.value.fetchListData(), K.success(x.message), t.value = {}, r.value = !1) : K.warning(x.message);
|
|
9963
9964
|
});
|
|
9964
9965
|
}
|
|
9965
9966
|
function w() {
|
|
@@ -9976,7 +9977,7 @@ const i7 = {
|
|
|
9976
9977
|
}).then((D) => {
|
|
9977
9978
|
debugger;
|
|
9978
9979
|
if (!D) {
|
|
9979
|
-
|
|
9980
|
+
K.error("\u672A\u627E\u5230\u5BF9\u5E94\u6587\u4EF6");
|
|
9980
9981
|
return;
|
|
9981
9982
|
}
|
|
9982
9983
|
let E = window.URL.createObjectURL(new Blob([D])), A = document.createElement("a");
|
|
@@ -10676,7 +10677,7 @@ const p7 = /* @__PURE__ */ St(d7, [["render", h7], ["__scopeId", "data-v-556c543
|
|
|
10676
10677
|
var I;
|
|
10677
10678
|
let A = D === "add" ? "/account/permissionGroup/addAuthUser" : "/account/permissionGroup/removeAuthUser", M = (I = a.value) == null ? void 0 : I.id;
|
|
10678
10679
|
n.post({ url: A, data: { groupId: M, userId: E.id } }).then((F) => {
|
|
10679
|
-
F && F.success ? (
|
|
10680
|
+
F && F.success ? (K.success(F.message), C(d.value), S(f.value)) : K.warn(F.message);
|
|
10680
10681
|
});
|
|
10681
10682
|
};
|
|
10682
10683
|
return nl(() => {
|
|
@@ -10884,7 +10885,7 @@ const D7 = /* @__PURE__ */ St(x7, [["__scopeId", "data-v-6bb7f383"]]), E7 = /* @
|
|
|
10884
10885
|
url: f,
|
|
10885
10886
|
data: s
|
|
10886
10887
|
}).then((d) => {
|
|
10887
|
-
d && d.success ? (
|
|
10888
|
+
d && d.success ? (K.success(d.message), t("fetch-list-data")) : K.error(d.message);
|
|
10888
10889
|
});
|
|
10889
10890
|
};
|
|
10890
10891
|
return (f, d) => {
|
|
@@ -11099,7 +11100,7 @@ const L7 = { style: { height: "100%" } }, M7 = ["innerHTML"], I7 = /* @__PURE__
|
|
|
11099
11100
|
onOk() {
|
|
11100
11101
|
let f = [c.id];
|
|
11101
11102
|
e.post({ url: "/news/elsTenantPortalNews/delete", data: f }).then((d) => {
|
|
11102
|
-
d && d.success ? (
|
|
11103
|
+
d && d.success ? (K.success(d.message), a.value.fetchListData()) : K.error(d.message);
|
|
11103
11104
|
});
|
|
11104
11105
|
},
|
|
11105
11106
|
okText: n("i18n_title_confirm", "\u786E\u5B9A"),
|
|
@@ -11112,7 +11113,7 @@ const L7 = { style: { height: "100%" } }, M7 = ["innerHTML"], I7 = /* @__PURE__
|
|
|
11112
11113
|
onOk() {
|
|
11113
11114
|
let f = a.value.gridInstance.getCheckboxRecords().map((d) => d.id);
|
|
11114
11115
|
e.post({ url: "/news/elsTenantPortalNews/delete", data: f }).then((d) => {
|
|
11115
|
-
d && d.success ? (
|
|
11116
|
+
d && d.success ? (K.success(d.message), a.value.fetchListData()) : K.error(d.message);
|
|
11116
11117
|
});
|
|
11117
11118
|
},
|
|
11118
11119
|
okText: n("i18n_title_confirm", "\u786E\u5B9A"),
|
|
@@ -11124,7 +11125,7 @@ const L7 = { style: { height: "100%" } }, M7 = ["innerHTML"], I7 = /* @__PURE__
|
|
|
11124
11125
|
content: n("i18n_title_isConfirmPublishing", "\u662F\u5426\u786E\u8BA4\u53D1\u5E03\uFF1F"),
|
|
11125
11126
|
onOk() {
|
|
11126
11127
|
e.post({ url: `/news/elsTenantPortalNews/publish/${c.id}` }).then((f) => {
|
|
11127
|
-
f && f.success ? (
|
|
11128
|
+
f && f.success ? (K.success(f.message), a.value.fetchListData()) : K.error(f.message);
|
|
11128
11129
|
});
|
|
11129
11130
|
},
|
|
11130
11131
|
okText: n("i18n_title_confirm", "\u786E\u5B9A"),
|
|
@@ -11562,14 +11563,14 @@ const $7 = Be({
|
|
|
11562
11563
|
id: c.id
|
|
11563
11564
|
};
|
|
11564
11565
|
a.get({ url: "/notice/purchaseNotice/topOpt", params: f }).then((d) => {
|
|
11565
|
-
d && d.success ? (
|
|
11566
|
+
d && d.success ? (K.success(d.message), e.value.fetchListData()) : K.error(d.message);
|
|
11566
11567
|
});
|
|
11567
11568
|
}, o = async (c) => {
|
|
11568
11569
|
const f = {
|
|
11569
11570
|
id: c.id
|
|
11570
11571
|
};
|
|
11571
11572
|
a.get({ url: "/notice/purchaseNotice/cancel", params: f }).then((d) => {
|
|
11572
|
-
d && d.success ? (
|
|
11573
|
+
d && d.success ? (K.success(d.message), e.value.fetchListData()) : (K.success(d.message), e.value.fetchListData());
|
|
11573
11574
|
});
|
|
11574
11575
|
}, s = Le({
|
|
11575
11576
|
statusConfig: {
|
|
@@ -11908,7 +11909,7 @@ const X7 = { class: "edit-page" }, Z7 = /* @__PURE__ */ Be({
|
|
|
11908
11909
|
]
|
|
11909
11910
|
}), { pageData: f, layoutConfig: d, defaultValues: h } = qo(o), { stepTriggerValidate: p, composeSave: v, composePublish: g, customLoading: m } = il({ pageData: f, layoutConfig: d, defaultValues: h, options: c }), y = () => {
|
|
11910
11911
|
p();
|
|
11911
|
-
}, _ = (C) => C.effectiveTime && C.expiryTime && C.effectiveTime > C.expiryTime ? (
|
|
11912
|
+
}, _ = (C) => C.effectiveTime && C.expiryTime && C.effectiveTime > C.expiryTime ? (K.warning("\u516C\u544A\u53D1\u5E03\u751F\u6548\u65F6\u95F4\u5FC5\u987B\u5C0F\u4E8E\u5931\u6548\u65F6\u95F4"), !1) : !0, b = () => {
|
|
11912
11913
|
!_(f.value) || p();
|
|
11913
11914
|
}, S = (C) => {
|
|
11914
11915
|
if (console.log(C.key === qf.key), C.key === da.key)
|
|
@@ -11917,16 +11918,16 @@ const X7 = { class: "edit-page" }, Z7 = /* @__PURE__ */ Be({
|
|
|
11917
11918
|
let x = f.value.purchaseNoticeSupplierList;
|
|
11918
11919
|
if (f.value.noticeScope == "4") {
|
|
11919
11920
|
if (x && x.length)
|
|
11920
|
-
return
|
|
11921
|
+
return K.warning(e("i18n_field_RIRdXWVKRdXABSuRdX_d20c2f0d", "\u6307\u5B9A\u4F9B\u5E94\u5546\uFF0C\u8BF7\u5728\u4F9B\u5E94\u5546\u5217\u8868\u6DFB\u52A0\u4F9B\u5E94\u5546")), !1;
|
|
11921
11922
|
} else if (x && x.length > 0)
|
|
11922
|
-
return
|
|
11923
|
+
return K.warning(e("i18n_field_RxvLKuWRIRdXWWxTPiFRdXWVQG_962d5139", "\u516C\u544A\u8303\u56F4\u662F\u975E\u201C\u6307\u5B9A\u4F9B\u5E94\u5546\u201D,\u4E0D\u9700\u8981\u9009\u62E9\u4F9B\u5E94\u5546\uFF0C\u8BF7\u5220\u9664")), !1;
|
|
11923
11924
|
x2.confirm({
|
|
11924
11925
|
title: "\u53D1\u5E03",
|
|
11925
11926
|
content: "\u662F\u5426\u786E\u8BA4\u53D1\u5E03",
|
|
11926
11927
|
onOk() {
|
|
11927
11928
|
return new Promise((D, E) => {
|
|
11928
11929
|
i.post({ url: "/notice/purchaseNotice/publish", data: { noticeStatus: "1", publishUser: "", ...f.value } }).then((A) => {
|
|
11929
|
-
A.success ? (
|
|
11930
|
+
A.success ? (K.success(A.message), a.go(-1), D(!0)) : (K.error(A.message), E(!1));
|
|
11930
11931
|
});
|
|
11931
11932
|
});
|
|
11932
11933
|
}
|
|
@@ -12169,7 +12170,7 @@ const tN = Be({
|
|
|
12169
12170
|
function l() {
|
|
12170
12171
|
let u = i.value.gridInstance.getCheckboxRecords();
|
|
12171
12172
|
if (u.length <= 0) {
|
|
12172
|
-
|
|
12173
|
+
K.warning(e("\u8BF7\u52FE\u9009\u9700\u4E00\u952E\u9605\u8BFB\u7684\u6D88\u606F\u884C\uFF01", "\u8BF7\u52FE\u9009\u9700\u4E00\u952E\u9605\u8BFB\u7684\u6D88\u606F\u884C\uFF01"));
|
|
12173
12174
|
return;
|
|
12174
12175
|
}
|
|
12175
12176
|
let c = u.map((f) => f.id);
|
|
@@ -12177,7 +12178,7 @@ const tN = Be({
|
|
|
12177
12178
|
url: n.value.readBatch,
|
|
12178
12179
|
data: c
|
|
12179
12180
|
}).then((f) => {
|
|
12180
|
-
f.success ? (
|
|
12181
|
+
f.success ? (K.success(f.message), i.value.fetchListData()) : K.warning(f.message);
|
|
12181
12182
|
});
|
|
12182
12183
|
}
|
|
12183
12184
|
return { showEditPage: a, apiUrls: n, pageData: o, listLayoutRef: i };
|
|
@@ -12483,7 +12484,7 @@ const vN = Be({
|
|
|
12483
12484
|
e.value.loading = !0, a.post({
|
|
12484
12485
|
url: t.value.retry + "/" + s.id
|
|
12485
12486
|
}).then((l) => {
|
|
12486
|
-
l.success ? (e.value.fetchListData(),
|
|
12487
|
+
l.success ? (e.value.fetchListData(), K.success(l.message)) : K.warning(l.message);
|
|
12487
12488
|
}).finally(() => {
|
|
12488
12489
|
e.value.loading = !0;
|
|
12489
12490
|
});
|
|
@@ -14039,7 +14040,7 @@ const BN = /* @__PURE__ */ St(IN, [["render", PN], ["__scopeId", "data-v-b3cf1b8
|
|
|
14039
14040
|
url: r,
|
|
14040
14041
|
data: t
|
|
14041
14042
|
}).then((e) => {
|
|
14042
|
-
e.success ? (
|
|
14043
|
+
e.success ? (K.success(e.message), this.$emit("ok")) : K.warning(e.message);
|
|
14043
14044
|
}).finally(() => {
|
|
14044
14045
|
this.confirmLoading = !1, this.close();
|
|
14045
14046
|
});
|
|
@@ -14051,7 +14052,7 @@ const BN = /* @__PURE__ */ St(IN, [["render", PN], ["__scopeId", "data-v-b3cf1b8
|
|
|
14051
14052
|
setCorn(r) {
|
|
14052
14053
|
console.log("data)", r), this.$nextTick(() => {
|
|
14053
14054
|
this.form.cronExpression = r;
|
|
14054
|
-
}), Object.keys(r).length == 0 &&
|
|
14055
|
+
}), Object.keys(r).length == 0 && K.warning("\u8BF7\u8F93\u5165cron\u8868\u8FBE\u5F0F!");
|
|
14055
14056
|
}
|
|
14056
14057
|
}
|
|
14057
14058
|
});
|
|
@@ -14325,7 +14326,7 @@ const VN = Be({
|
|
|
14325
14326
|
url: t.value.pause,
|
|
14326
14327
|
params: { jobNameKey: g.jobNameKey }
|
|
14327
14328
|
}).then((m) => {
|
|
14328
|
-
m.success ? (
|
|
14329
|
+
m.success ? (K.success(m.message), e.value.fetchListData()) : K.warning(m.message);
|
|
14329
14330
|
}).finally(() => {
|
|
14330
14331
|
e.value.loading = !1;
|
|
14331
14332
|
});
|
|
@@ -14344,7 +14345,7 @@ const VN = Be({
|
|
|
14344
14345
|
url: t.value.resume,
|
|
14345
14346
|
params: { jobNameKey: g.jobNameKey }
|
|
14346
14347
|
}).then((m) => {
|
|
14347
|
-
m.success ? (
|
|
14348
|
+
m.success ? (K.success(m.message), e.value.fetchListData()) : K.warning(m.message);
|
|
14348
14349
|
}).finally(() => {
|
|
14349
14350
|
e.value.loading = !1;
|
|
14350
14351
|
});
|
|
@@ -14360,7 +14361,7 @@ const VN = Be({
|
|
|
14360
14361
|
url: t.value.manualExecute,
|
|
14361
14362
|
params: { id: g.id }
|
|
14362
14363
|
}).then((m) => {
|
|
14363
|
-
m.success ? (
|
|
14364
|
+
m.success ? (K.success(m.message), e.value.fetchListData()) : K.warning(m.message);
|
|
14364
14365
|
}).finally(() => {
|
|
14365
14366
|
e.value.loading = !1;
|
|
14366
14367
|
});
|
|
@@ -14477,7 +14478,7 @@ const WN = Be({
|
|
|
14477
14478
|
}
|
|
14478
14479
|
function s({ row: c = {} }) {
|
|
14479
14480
|
if (c.taskStatus !== "0") {
|
|
14480
|
-
|
|
14481
|
+
K.warning("\u5F53\u524D\u72B6\u6001\u4E0D\u5141\u8BB8\u6267\u884C\u6587\u4EF6\u4EFB\u52A1");
|
|
14481
14482
|
return;
|
|
14482
14483
|
}
|
|
14483
14484
|
Ut.confirm({
|
|
@@ -14487,7 +14488,7 @@ const WN = Be({
|
|
|
14487
14488
|
e.value.loading = !0, a.post({
|
|
14488
14489
|
url: t.value.runTask + "/" + c.id
|
|
14489
14490
|
}).then((f) => {
|
|
14490
|
-
f.success ? (e.value.fetchListData(),
|
|
14491
|
+
f.success ? (e.value.fetchListData(), K.success(f.message)) : K.warning(f.message);
|
|
14491
14492
|
}).finally(() => {
|
|
14492
14493
|
e.value.loading = !0;
|
|
14493
14494
|
});
|
|
@@ -14599,7 +14600,7 @@ const QN = Be({
|
|
|
14599
14600
|
url: t.value.retry,
|
|
14600
14601
|
data: s
|
|
14601
14602
|
}).then((l) => {
|
|
14602
|
-
l.success ? (e.value.fetchListData(),
|
|
14603
|
+
l.success ? (e.value.fetchListData(), K.success(l.message)) : K.warning(l.message);
|
|
14603
14604
|
}).finally(() => {
|
|
14604
14605
|
e.value.loading = !1;
|
|
14605
14606
|
});
|