@gct-paas/excel 0.1.39-beta.30 → 0.1.39-beta.32
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/{BaseComponent-BkwxLOiM.js → BaseComponent-BZ7vpBcD.js} +2 -2
- package/dist/{VueVideoPlayer-DmZ_P4Cp.js → VueVideoPlayer-CTtss6-e.js} +2 -2
- package/dist/{align-editor-C1Fj-34U.js → align-editor-0EJDQ9xk.js} +1 -1
- package/dist/{barcode-design-D90bLWOL.js → barcode-design-CU6ykxXr.js} +2 -2
- package/dist/base/index.es.js +170 -170
- package/dist/{diagonal-design-YbEx-5SA.js → diagonal-design-bgZAeLZP.js} +2 -2
- package/dist/{dynamic-table-action-DXlLVZZF.js → dynamic-table-action-BvHth2cC.js} +679 -123
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-vRTNdchM.js} +503 -1083
- package/dist/{edit.utils-CXmmCnxE-BMWwEMfe.js → edit.utils-CXmmCnxE-Cj0XviBc.js} +1 -1
- package/dist/excel.css +68 -17
- package/dist/{exceljs.min-B-mYUB0l.js → exceljs.min-Cr5txU5w.js} +2 -2
- package/dist/{font-editor-D0dV4bEL.js → font-editor-BIEWxnat.js} +3 -3
- package/dist/{image-design-DkQBDv9K.js → image-design-AOi1nT_M.js} +2 -2
- package/dist/{index-BEkX75av.js → index-0cS2b0oE.js} +2 -2
- package/dist/{index-Dgs95dud.js → index-2SyQ6xAT.js} +1 -1
- package/dist/{index-BYpPubsS.js → index-B1JboJFx.js} +1 -1
- package/dist/{index-D9BcQ25Q.js → index-B4aDuWy4.js} +2 -2
- package/dist/{index-w1Oz-JSm.js → index-BFhX3ACB.js} +1 -1
- package/dist/{index-CrnlU1jr.js → index-BOo6MotZ.js} +3 -3
- package/dist/{index-8GDKkzhT.js → index-BRirBsMg.js} +2 -2
- package/dist/{index-DlfthBvr.js → index-BYOG-n0c.js} +2 -2
- package/dist/{index-CaKVMIWJ.js → index-BeFJ_RCt.js} +1 -1
- package/dist/{index-jfKiyRsE.js → index-Bk8rU908.js} +1776 -1695
- package/dist/{index-Zr4W3H4i.js → index-BzgVexIB.js} +2 -2
- package/dist/{index-lSMZmF7U.js → index-C5rtaFud.js} +2 -2
- package/dist/{index-VBBgqHqv.js → index-C7veczU_.js} +3 -3
- package/dist/{index-DWrIPK_U.js → index-CDhZoiEf.js} +1 -1
- package/dist/{index-B-hm9GED.js → index-CTLIQVKX.js} +2 -2
- package/dist/{index-CfLLsSW6.js → index-CX4Pp6kw.js} +2 -2
- package/dist/{index-rDv1Pb8y.js → index-CZD5cYIe.js} +2 -2
- package/dist/{index-CHv965Bj.js → index-CfS4Vi7D.js} +3 -2
- package/dist/{index-BPvsxMaD.js → index-Cfe2Q-hG.js} +1 -1
- package/dist/{index-ulVZgzRz.js → index-Cip1bDDj.js} +2 -2
- package/dist/{index-DzmKXFwH.js → index-CkgcA21r.js} +2 -2
- package/dist/{index-DOGxYpwq.js → index-Cld2wf77.js} +1 -1
- package/dist/{index-DsS5smhd.js → index-CwSEWCP8.js} +3 -3
- package/dist/{index-DZYpzeZM.js → index-D-8Q9FIL.js} +3 -3
- package/dist/{index-K9yUIBxc.js → index-D9GxA4Uy.js} +4 -4
- package/dist/{index-D19ggbiC.js → index-DThgFjEo.js} +2 -2
- package/dist/{index-CVPJGks5.js → index-DzchEThV.js} +2 -2
- package/dist/{index-Boj1Babg.js → index-Ezicwad7.js} +2 -2
- package/dist/{index-C0gB21qk.js → index-LJlRgrPE.js} +2 -2
- package/dist/{index-BgL2ciTw.js → index-SXIZsVts.js} +1 -1
- package/dist/{index-CiyvJops.js → index-chIttzzx.js} +2 -2
- package/dist/{index-CNSt1kk7.js → index-g5NmWlup.js} +2 -2
- package/dist/{index-V3FsjgC2.js → index-n97S5YRD.js} +1 -1
- package/dist/{index-BKmJ_uM2.js → index-nl7I1bLi.js} +1 -1
- package/dist/{index-DyLoooUC.js → index-sbz8PAuq.js} +2 -2
- package/dist/index.es.js +2 -2
- package/dist/{mb-render-Dc2J-VKn.js → mb-render-FUO_-FXR.js} +1 -1
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-D60Qjkgq.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DOYhOffQ.js} +1 -1
- package/dist/{pagination-design-J5Xr1H6H.js → pagination-design-BXWK58mU.js} +2 -2
- package/dist/paper-widget-design-DGRbbkYV.js +4 -0
- package/dist/{print-runtime-instance-CkGherFi.js → print-runtime-instance-CwdH93fy.js} +1 -1
- package/dist/{print-snapshot-renderer-BxrmKmGQ.js → print-snapshot-renderer-CzlFqiSh.js} +3 -3
- package/dist/{qrcode-design-DJciYm3W.js → qrcode-design-8A5a_F1s.js} +1 -1
- package/dist/{revo-grid.entry-D2XU7yfg.js → revo-grid.entry-DKvA7bUR.js} +1 -1
- package/dist/{revogr-attribution_7.entry-DiKuD6Oj.js → revogr-attribution_7.entry-C2PtJ_Tj.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-BaU8s-5o.js → revogr-clipboard_3.entry-BM7_JY0U.js} +2 -2
- package/dist/{revogr-data_4.entry-D6AqE208.js → revogr-data_4.entry-CdMQPL7I.js} +2 -2
- package/dist/{revogr-filter-panel.entry-B0-_hrSZ.js → revogr-filter-panel.entry-BJiGVhcw.js} +1 -1
- package/dist/seal-design-BFQUgxHz.js +4 -0
- package/dist/{serialnumber-design-BfeGFYY4.js → serialnumber-design-QaDIsxYT.js} +1 -1
- package/dist/shared/index.es.js +22 -22
- package/dist/{single-field-drop-wg47buz7.js → single-field-drop-C-Af1KzB.js} +2 -2
- package/dist/{size-editor-hnWquuM2.js → size-editor-BV0KrQ37.js} +1 -1
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +11 -0
- package/dist/src/online-form/src/views/designer/modules/base/designer-wrapper.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/modules/duplicate-field-notice.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/types/sheets.d.ts +2 -0
- package/dist/{sub-table-factory-DCjl5fld.js → sub-table-factory-b8fCKT0z.js} +2 -2
- package/dist/{text-design-BQqBHcG3.js → text-design-C35O7YR4.js} +2 -2
- package/dist/{throttle-Cpk1LoGk-C-bCLTWf.js → throttle-Cpk1LoGk-HQvkISS4.js} +1 -1
- package/dist/{timediff-design-DzNFXX0B.js → timediff-design-CKjl56qS.js} +1 -1
- package/dist/{trace-like-wrapper-BO9GpUUT.js → trace-like-wrapper-CvZpyPlh.js} +2 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-NrJ6BC4L.js → value-editor.vue_vue_type_style_index_0_lang-Bk7ZLZxh.js} +2 -2
- package/dist/web-render/index.es.js +3 -3
- package/dist/{widget-barcode-CqFwMMNr.js → widget-barcode-CNkIguP5.js} +4 -4
- package/dist/{widget-diagonal-Bv7rOoCE.js → widget-diagonal-Mi9aX6hU.js} +3 -3
- package/dist/{widget-image-C7uAoxCn.js → widget-image-i2JtNBbz.js} +5 -5
- package/dist/{widget-line-DjEbtHhc.js → widget-line-OIsUSKiO.js} +2 -2
- package/dist/{widget-pagination-Dc4pC9a8.js → widget-pagination--EyLbrPC.js} +5 -5
- package/dist/{widget-power-9LyPBlNG.js → widget-power-FPby3ucD.js} +3 -3
- package/dist/{widget-qrcode-wY0Htp8v.js → widget-qrcode-D5P4cW3m.js} +3 -3
- package/dist/{widget-rangelimit-CT9yqbbL.js → widget-rangelimit-DdwIzSFH.js} +3 -3
- package/dist/{widget-serialnumber-CChK8wrF.js → widget-serialnumber-C-T8DI3m.js} +1 -1
- package/dist/{widget-text-mWwms2HC.js → widget-text-BHlQYZUH.js} +5 -5
- package/dist/{widget-timediff-GSd_w8qO.js → widget-timediff--QTyT_AT.js} +2 -2
- package/package.json +2 -2
- package/dist/paper-widget-design-mppU2AMx.js +0 -4
- package/dist/seal-design-FsL7H3e7.js +0 -4
|
@@ -64639,140 +64639,238 @@ function resolveFieldRenderComponent(props) {
|
|
|
64639
64639
|
}
|
|
64640
64640
|
return resolveRenderComponent(props.bizType, props.fieldType);
|
|
64641
64641
|
}
|
|
64642
|
-
|
|
64643
|
-
|
|
64644
|
-
|
|
64645
|
-
|
|
64646
|
-
|
|
64647
|
-
|
|
64648
|
-
|
|
64649
|
-
|
|
64650
|
-
|
|
64651
|
-
|
|
64652
|
-
|
|
64653
|
-
|
|
64654
|
-
|
|
64655
|
-
function isAttachFieldActive(attach, formData) {
|
|
64656
|
-
if (attach?.parent && !isAttachFieldActive(attach.parent, formData)) return false;
|
|
64657
|
-
if (!attach?.belongFieldId || isNil(attach.optionValue)) {
|
|
64658
|
-
return true;
|
|
64659
|
-
}
|
|
64660
|
-
const row = attach.subtableFieldId ? findRuntimeTableRow(formData?.[attach.subtableFieldId], attach.rowKey) : formData;
|
|
64661
|
-
if (attach.subtableFieldId && (!attach.rowKey || !row || row === formData)) {
|
|
64662
|
-
return false;
|
|
64663
|
-
}
|
|
64664
|
-
const raw = row?.[attach.belongFieldId];
|
|
64665
|
-
if (attach.multiple) {
|
|
64666
|
-
const current = renderUtils.getValue(raw, true);
|
|
64667
|
-
if (!Array.isArray(current)) return false;
|
|
64668
|
-
return current.some((v) => isSameOptionValue(v, attach.optionValue));
|
|
64669
|
-
}
|
|
64670
|
-
return isSameOptionValue(raw, attach.optionValue);
|
|
64642
|
+
const getApi$1 = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
|
|
64643
|
+
const postApi = api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey;
|
|
64644
|
+
async function materialCheck(params) {
|
|
64645
|
+
const res = await postApi(
|
|
64646
|
+
{
|
|
64647
|
+
bsKey: "biz_single_material_check",
|
|
64648
|
+
modelKey: "em_material_loading",
|
|
64649
|
+
modelCategory: "entity"
|
|
64650
|
+
},
|
|
64651
|
+
{},
|
|
64652
|
+
params
|
|
64653
|
+
);
|
|
64654
|
+
return res;
|
|
64671
64655
|
}
|
|
64672
|
-
function
|
|
64673
|
-
|
|
64674
|
-
return true;
|
|
64675
|
-
}
|
|
64676
|
-
return isAttachFieldActive(
|
|
64656
|
+
async function stockCheck(params) {
|
|
64657
|
+
await postApi(
|
|
64677
64658
|
{
|
|
64678
|
-
|
|
64679
|
-
|
|
64680
|
-
|
|
64659
|
+
bsKey: "biz_form_single_confirm",
|
|
64660
|
+
modelKey: "em_material_loading",
|
|
64661
|
+
modelCategory: "entity"
|
|
64681
64662
|
},
|
|
64682
|
-
|
|
64663
|
+
{},
|
|
64664
|
+
{
|
|
64665
|
+
entry: params.entry,
|
|
64666
|
+
material_id_: params.row.product_id_,
|
|
64667
|
+
production_identification_name_: params.row.material_no_,
|
|
64668
|
+
qty_: params.row.qty_,
|
|
64669
|
+
operation_id_: params.row.routing_operation_id_,
|
|
64670
|
+
main_material_no_: params.mainMaterialNo
|
|
64671
|
+
}
|
|
64683
64672
|
);
|
|
64684
64673
|
}
|
|
64685
|
-
|
|
64686
|
-
|
|
64687
|
-
|
|
64688
|
-
|
|
64689
|
-
|
|
64690
|
-
|
|
64691
|
-
|
|
64692
|
-
|
|
64693
|
-
|
|
64694
|
-
|
|
64695
|
-
|
|
64696
|
-
|
|
64697
|
-
|
|
64674
|
+
async function fetchHistoryConsume(params) {
|
|
64675
|
+
const res = await postApi(
|
|
64676
|
+
{
|
|
64677
|
+
bsKey: "listAll",
|
|
64678
|
+
modelKey: "em_material_consume",
|
|
64679
|
+
modelCategory: "entity"
|
|
64680
|
+
},
|
|
64681
|
+
{},
|
|
64682
|
+
{
|
|
64683
|
+
query: params
|
|
64684
|
+
}
|
|
64685
|
+
);
|
|
64686
|
+
console.log("查询历史消耗数据", res);
|
|
64687
|
+
const arr = res.data ?? [];
|
|
64688
|
+
arr.map((i2) => {
|
|
64689
|
+
i2.qty_ = i2.qty_consumed_;
|
|
64690
|
+
});
|
|
64691
|
+
return arr;
|
|
64698
64692
|
}
|
|
64699
|
-
function
|
|
64700
|
-
|
|
64701
|
-
|
|
64702
|
-
|
|
64703
|
-
|
|
64704
|
-
|
|
64705
|
-
|
|
64706
|
-
|
|
64707
|
-
|
|
64693
|
+
async function judgeUnique(opts) {
|
|
64694
|
+
const res = await postApi(
|
|
64695
|
+
{
|
|
64696
|
+
bsKey: "biz_form_unique",
|
|
64697
|
+
modelKey: "em_material_loading",
|
|
64698
|
+
modelCategory: "entity"
|
|
64699
|
+
},
|
|
64700
|
+
{},
|
|
64701
|
+
{
|
|
64702
|
+
model_key_: opts.modelKey,
|
|
64703
|
+
datas_: opts.data
|
|
64704
|
+
}
|
|
64708
64705
|
);
|
|
64709
|
-
return
|
|
64710
|
-
...stamp,
|
|
64711
|
-
sealPosition: { ...isSealPosition(parsed.sealPosition) ? parsed.sealPosition : fallback }
|
|
64712
|
-
};
|
|
64706
|
+
return res;
|
|
64713
64707
|
}
|
|
64714
|
-
function
|
|
64708
|
+
async function isBomGranted() {
|
|
64715
64709
|
try {
|
|
64716
|
-
const
|
|
64717
|
-
|
|
64718
|
-
|
|
64710
|
+
const res = await getApi$1(
|
|
64711
|
+
{
|
|
64712
|
+
modelKey: "em_product_bom",
|
|
64713
|
+
bsKey: "biz_bom_granted",
|
|
64714
|
+
modelCategory: "entity"
|
|
64715
|
+
},
|
|
64716
|
+
{},
|
|
64717
|
+
{}
|
|
64718
|
+
);
|
|
64719
|
+
return res ?? false;
|
|
64720
|
+
} catch (error) {
|
|
64721
|
+
console.log("");
|
|
64719
64722
|
return false;
|
|
64720
64723
|
}
|
|
64721
64724
|
}
|
|
64722
|
-
function
|
|
64723
|
-
|
|
64724
|
-
|
|
64725
|
-
|
|
64726
|
-
}
|
|
64727
|
-
|
|
64725
|
+
async function getReinspectionDate(params) {
|
|
64726
|
+
if (!params.material_no_id_ && !params.material_no_) return;
|
|
64727
|
+
({
|
|
64728
|
+
"product_id_.versionIn": [params.product_id_.split(":").pop()]
|
|
64729
|
+
});
|
|
64730
|
+
if (params.material_no_id_) {
|
|
64731
|
+
params.material_no_id_;
|
|
64732
|
+
} else {
|
|
64733
|
+
params.material_no_;
|
|
64728
64734
|
}
|
|
64735
|
+
const res = await postApi(
|
|
64736
|
+
{
|
|
64737
|
+
modelCategory: "entity",
|
|
64738
|
+
modelKey: "em_production_identification",
|
|
64739
|
+
bsKey: "getOne"
|
|
64740
|
+
},
|
|
64741
|
+
{},
|
|
64742
|
+
{
|
|
64743
|
+
query: {
|
|
64744
|
+
name_: params.material_no_,
|
|
64745
|
+
id_: params.material_no_id_,
|
|
64746
|
+
"product_id_.versionEq": params.product_id_
|
|
64747
|
+
}
|
|
64748
|
+
}
|
|
64749
|
+
);
|
|
64750
|
+
const record = res?.data?.[0] ?? res?.data;
|
|
64751
|
+
const raw = record?.re_inspection_date_ ?? record?.retest_date_;
|
|
64752
|
+
if (raw == null || raw === "") return;
|
|
64753
|
+
const parsed = dayjs(raw);
|
|
64754
|
+
if (!parsed.isValid()) return;
|
|
64755
|
+
return parsed.format("YYYY-MM-DD");
|
|
64729
64756
|
}
|
|
64730
|
-
function
|
|
64731
|
-
|
|
64732
|
-
|
|
64733
|
-
|
|
64734
|
-
|
|
64735
|
-
|
|
64736
|
-
|
|
64757
|
+
async function validateReinspectionDate(opts) {
|
|
64758
|
+
if (!opts.product_id_ || !opts.material_no_ && !opts.material_no_id_) return;
|
|
64759
|
+
const date = await getReinspectionDate({
|
|
64760
|
+
product_id_: opts.product_id_,
|
|
64761
|
+
material_no_: opts.material_no_,
|
|
64762
|
+
material_no_id_: opts.material_no_id_
|
|
64763
|
+
});
|
|
64764
|
+
if (!date) return;
|
|
64765
|
+
if (dayjs(date).isBefore(dayjs(), "day")) {
|
|
64766
|
+
throw new Error($t("sys.retestDateErrorTip"));
|
|
64767
|
+
}
|
|
64737
64768
|
}
|
|
64738
|
-
function
|
|
64739
|
-
|
|
64740
|
-
|
|
64769
|
+
async function getLotLockedReason(production_identification_id_) {
|
|
64770
|
+
const { data = {}, dict = {} } = await postApi(
|
|
64771
|
+
{
|
|
64772
|
+
modelCategory: "entity",
|
|
64773
|
+
modelKey: "em_production_identification_lock_record",
|
|
64774
|
+
bsKey: "biz_get_one_lock_record"
|
|
64775
|
+
},
|
|
64776
|
+
{},
|
|
64777
|
+
{
|
|
64778
|
+
production_identification_id_
|
|
64779
|
+
}
|
|
64741
64780
|
);
|
|
64781
|
+
return $t("sys.lotLockedReason", {
|
|
64782
|
+
name: dict.lock_user_id_[data.lock_user_id_],
|
|
64783
|
+
reason: data.lock_reason_
|
|
64784
|
+
});
|
|
64742
64785
|
}
|
|
64743
|
-
|
|
64744
|
-
|
|
64745
|
-
|
|
64786
|
+
var Config_Fields = /* @__PURE__ */ ((Config_Fields2) => {
|
|
64787
|
+
Config_Fields2["materialCode"] = "materialCode";
|
|
64788
|
+
Config_Fields2["lot"] = "lot";
|
|
64789
|
+
Config_Fields2["qty"] = "qty";
|
|
64790
|
+
Config_Fields2["expiration"] = "expiration";
|
|
64791
|
+
Config_Fields2["deviceCode"] = "deviceCode";
|
|
64792
|
+
Config_Fields2["other"] = "other";
|
|
64793
|
+
return Config_Fields2;
|
|
64794
|
+
})(Config_Fields || {});
|
|
64795
|
+
const getApi = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
|
|
64796
|
+
async function getParseRuleInfo(params) {
|
|
64797
|
+
const res = await getApi(
|
|
64798
|
+
{
|
|
64799
|
+
bsKey: "rdoGetVersionById",
|
|
64800
|
+
modelKey: "em_barcode_parsing_rules",
|
|
64801
|
+
modelCategory: "entity"
|
|
64802
|
+
},
|
|
64803
|
+
params
|
|
64804
|
+
);
|
|
64805
|
+
return res.data;
|
|
64746
64806
|
}
|
|
64747
|
-
function
|
|
64748
|
-
|
|
64749
|
-
|
|
64750
|
-
|
|
64751
|
-
|
|
64752
|
-
|
|
64807
|
+
function handleOldConfig(config) {
|
|
64808
|
+
if (config.list && !config.fieldList) {
|
|
64809
|
+
config.fieldList = config.list.map((type) => {
|
|
64810
|
+
return {
|
|
64811
|
+
type,
|
|
64812
|
+
key: type === Config_Fields.other ? uuid2(32) : type
|
|
64813
|
+
};
|
|
64814
|
+
});
|
|
64815
|
+
delete config.list;
|
|
64816
|
+
}
|
|
64817
|
+
config.fieldList.forEach((item) => {
|
|
64818
|
+
if (!item.key) {
|
|
64819
|
+
item.key = item.type === Config_Fields.other ? uuid2(32) : item.type;
|
|
64820
|
+
}
|
|
64821
|
+
});
|
|
64822
|
+
return config;
|
|
64753
64823
|
}
|
|
64754
|
-
function
|
|
64755
|
-
|
|
64756
|
-
|
|
64757
|
-
|
|
64758
|
-
|
|
64759
|
-
|
|
64760
|
-
|
|
64824
|
+
function getParseRuleValue(labelStr, labelRule) {
|
|
64825
|
+
if (!labelRule) {
|
|
64826
|
+
throw new Error("请传入解析规则");
|
|
64827
|
+
}
|
|
64828
|
+
const ruleObj = JSON.parse(labelRule);
|
|
64829
|
+
const ruleConfig = handleOldConfig(ruleObj);
|
|
64830
|
+
const { separator, nullSymbol, fieldList } = ruleConfig;
|
|
64831
|
+
const labelArr = labelStr.split(separator);
|
|
64832
|
+
return labelArr.reduce((obj, e, idx) => {
|
|
64833
|
+
const field = fieldList[idx];
|
|
64834
|
+
if (field) {
|
|
64835
|
+
let val = nullSymbol && e === nullSymbol ? null : e;
|
|
64836
|
+
if (val !== null) {
|
|
64837
|
+
switch (field.type) {
|
|
64838
|
+
case Config_Fields.qty:
|
|
64839
|
+
val = Number(val);
|
|
64840
|
+
break;
|
|
64841
|
+
case Config_Fields.expiration:
|
|
64842
|
+
val = dayjs(val, field.format).format("YYYY-MM-DD HH:mm:ss");
|
|
64843
|
+
break;
|
|
64844
|
+
}
|
|
64845
|
+
}
|
|
64846
|
+
obj[field.key] = val;
|
|
64761
64847
|
}
|
|
64762
|
-
|
|
64763
|
-
|
|
64764
|
-
|
|
64765
|
-
|
|
64766
|
-
|
|
64767
|
-
|
|
64768
|
-
|
|
64848
|
+
return obj;
|
|
64849
|
+
}, {});
|
|
64850
|
+
}
|
|
64851
|
+
async function getParseRuleConfig(id) {
|
|
64852
|
+
const res = await getParseRuleInfo({ id });
|
|
64853
|
+
if (res?.rules_) {
|
|
64854
|
+
const ruleObj = JSON.parse(res.rules_);
|
|
64855
|
+
const ruleConfig = handleOldConfig(ruleObj);
|
|
64856
|
+
return ruleConfig;
|
|
64857
|
+
}
|
|
64858
|
+
}
|
|
64859
|
+
function calcFillData(data, fillMapArr) {
|
|
64860
|
+
const obj = {};
|
|
64861
|
+
if (fillMapArr?.length) {
|
|
64862
|
+
fillMapArr.forEach((i2) => {
|
|
64863
|
+
const fromKey = i2.barcodeField;
|
|
64864
|
+
if (fromKey && fromKey in data) {
|
|
64865
|
+
const val = data[fromKey];
|
|
64866
|
+
i2.formFields?.forEach((key) => {
|
|
64867
|
+
const toKey2 = key.split(".")[1];
|
|
64868
|
+
obj[toKey2] = val;
|
|
64769
64869
|
});
|
|
64770
|
-
} else if (typeof raw !== "string") {
|
|
64771
|
-
formData[props.field] = JSON.stringify(parsed);
|
|
64772
64870
|
}
|
|
64773
|
-
}
|
|
64774
|
-
}
|
|
64871
|
+
});
|
|
64775
64872
|
}
|
|
64873
|
+
return obj;
|
|
64776
64874
|
}
|
|
64777
64875
|
var isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, mathceil = Math.ceil, mathfloor = Math.floor, bignumberError = "[BigNumber Error] ", tooManyDigits = bignumberError + "Number primitive has more than 15 significant digits: ", BASE = 1e14, LOG_BASE = 14, MAX_SAFE_INTEGER$2 = 9007199254740991, POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], SQRT_BASE = 1e7, MAX = 1e9;
|
|
64778
64876
|
function clone(configObject) {
|
|
@@ -66105,665 +66203,6 @@ function toFixedPoint(str, e, z) {
|
|
|
66105
66203
|
return str;
|
|
66106
66204
|
}
|
|
66107
66205
|
var BigNumber = clone();
|
|
66108
|
-
const { identify, calculate } = {
|
|
66109
|
-
identify: (expression) => window.NocodeAdapter.utils?.formulaIdentify?.(expression) ?? [],
|
|
66110
|
-
calculate: (expression, data) => window.NocodeAdapter.utils?.formulaCalculate?.(expression, data)
|
|
66111
|
-
};
|
|
66112
|
-
const getFieldDataValue = (parseInfo, formData) => {
|
|
66113
|
-
const getTextValue = (processedKey, value) => {
|
|
66114
|
-
const textValue = value ?? formData?.[processedKey] ?? "";
|
|
66115
|
-
return Array.isArray(textValue) ? textValue.join() : textValue;
|
|
66116
|
-
};
|
|
66117
|
-
const { type, processed, hashValue } = parseInfo;
|
|
66118
|
-
if (type === "hash") {
|
|
66119
|
-
const tableData = toRaw(formData?.[hashValue] || []);
|
|
66120
|
-
return tableData.filter((d) => !d.deleted_).map((row) => getTextValue(processed, row?.[processed])).filter((i2) => !isNil(i2));
|
|
66121
|
-
}
|
|
66122
|
-
return getTextValue(processed, formData?.[processed]);
|
|
66123
|
-
};
|
|
66124
|
-
const parseFormulaVar = (formulaVar) => {
|
|
66125
|
-
const result = {
|
|
66126
|
-
original: formulaVar,
|
|
66127
|
-
type: "",
|
|
66128
|
-
processed: "",
|
|
66129
|
-
hashValue: "",
|
|
66130
|
-
dataType: ""
|
|
66131
|
-
};
|
|
66132
|
-
if (/^\$([^$]+)\$\.(.+)$/.test(formulaVar)) {
|
|
66133
|
-
const match = formulaVar.match(/^\$([^$]+)\$\.(.+)$/);
|
|
66134
|
-
result.type = "hash";
|
|
66135
|
-
result.processed = match[2];
|
|
66136
|
-
result.hashValue = match[1];
|
|
66137
|
-
result.dataType = "globType";
|
|
66138
|
-
} else if (/^_\.(.+)$/.test(formulaVar)) {
|
|
66139
|
-
const match = formulaVar.match(/^_\.(.+)$/);
|
|
66140
|
-
result.type = "underscore";
|
|
66141
|
-
result.processed = match[1];
|
|
66142
|
-
result.dataType = "currentRowType";
|
|
66143
|
-
} else {
|
|
66144
|
-
result.type = "plain";
|
|
66145
|
-
result.processed = formulaVar;
|
|
66146
|
-
result.dataType = "globType";
|
|
66147
|
-
}
|
|
66148
|
-
return result;
|
|
66149
|
-
};
|
|
66150
|
-
const getParseFormulaVarInfos = (expr) => {
|
|
66151
|
-
const rowArgs = expr ? identify(expr) : [];
|
|
66152
|
-
return {
|
|
66153
|
-
rowArgs,
|
|
66154
|
-
parseInfos: rowArgs.map((curr) => parseFormulaVar(curr))
|
|
66155
|
-
};
|
|
66156
|
-
};
|
|
66157
|
-
const calculateFormula = async (expr, formData, instanceFormState) => {
|
|
66158
|
-
const rowArgs = identify(expr);
|
|
66159
|
-
const formulaData = isEmpty(rowArgs) ? {} : rowArgs.reduce((total, curr) => {
|
|
66160
|
-
const parseInfo = parseFormulaVar(curr);
|
|
66161
|
-
total[curr] = getFieldDataValue(
|
|
66162
|
-
parseInfo,
|
|
66163
|
-
parseInfo.dataType === "currentRowType" ? formData : instanceFormState
|
|
66164
|
-
);
|
|
66165
|
-
return total;
|
|
66166
|
-
}, {});
|
|
66167
|
-
return calculate(expr, formulaData);
|
|
66168
|
-
};
|
|
66169
|
-
const isEmptyValue = (value) => {
|
|
66170
|
-
return value === void 0 || value === null || typeof value === "string" && value.trim() === "" || Array.isArray(value) && value.length === 0;
|
|
66171
|
-
};
|
|
66172
|
-
const compareByOp = (left, right, op) => {
|
|
66173
|
-
switch (op) {
|
|
66174
|
-
case RangeCompareOp.LT:
|
|
66175
|
-
return left < right;
|
|
66176
|
-
case RangeCompareOp.LE:
|
|
66177
|
-
return left <= right;
|
|
66178
|
-
case RangeCompareOp.GT:
|
|
66179
|
-
return left > right;
|
|
66180
|
-
case RangeCompareOp.GE:
|
|
66181
|
-
default:
|
|
66182
|
-
return left >= right;
|
|
66183
|
-
}
|
|
66184
|
-
};
|
|
66185
|
-
const rangeCompareMessage = (op, val) => {
|
|
66186
|
-
switch (op) {
|
|
66187
|
-
case RangeCompareOp.LT:
|
|
66188
|
-
return $t("sys.fieldValueNotGreaterOrEqual", { val });
|
|
66189
|
-
case RangeCompareOp.LE:
|
|
66190
|
-
return $t("sys.fieldValueNoMoreThan", { val });
|
|
66191
|
-
case RangeCompareOp.GT:
|
|
66192
|
-
return $t("sys.fieldValueNotLessOrEqual", { val });
|
|
66193
|
-
case RangeCompareOp.GE:
|
|
66194
|
-
default:
|
|
66195
|
-
return $t("sys.fieldValueNotLessThan", { val });
|
|
66196
|
-
}
|
|
66197
|
-
};
|
|
66198
|
-
const toUnixTimestamp = (input) => {
|
|
66199
|
-
if (isNil(input) || input === "") return null;
|
|
66200
|
-
const asNumber = typeof input === "number" || typeof input === "string" && /^-?\d+(\.\d+)?$/.test(input.trim());
|
|
66201
|
-
if (asNumber) {
|
|
66202
|
-
const n = Number(input);
|
|
66203
|
-
if (Number.isNaN(n)) return null;
|
|
66204
|
-
const parsed2 = n > 1e12 ? dayjs(n) : dayjs.unix(n);
|
|
66205
|
-
return parsed2.isValid() ? parsed2.unix() : null;
|
|
66206
|
-
}
|
|
66207
|
-
const parsed = dayjs(input);
|
|
66208
|
-
return parsed.isValid() ? parsed.unix() : null;
|
|
66209
|
-
};
|
|
66210
|
-
const buildError = (validatorInfo, message2) => JSON.stringify({ ...validatorInfo, message: message2 });
|
|
66211
|
-
function areValidationCommentsEqual(left, right) {
|
|
66212
|
-
const serialize = (comments) => JSON.stringify(
|
|
66213
|
-
comments,
|
|
66214
|
-
(_key, value) => value && typeof value === "object" && "message" in value ? { ...value, message: value.message } : value
|
|
66215
|
-
);
|
|
66216
|
-
return serialize(left) === serialize(right);
|
|
66217
|
-
}
|
|
66218
|
-
const createRule = (validator, message2, trigger = "change") => ({
|
|
66219
|
-
required: true,
|
|
66220
|
-
validator,
|
|
66221
|
-
message: message2,
|
|
66222
|
-
trigger
|
|
66223
|
-
});
|
|
66224
|
-
function relocateDeletedRowsToEnd(rows = []) {
|
|
66225
|
-
const active = [];
|
|
66226
|
-
const deleted = [];
|
|
66227
|
-
for (const row of rows) {
|
|
66228
|
-
if (row?.deleted_) deleted.push(row);
|
|
66229
|
-
else active.push(row);
|
|
66230
|
-
}
|
|
66231
|
-
return [...active, ...deleted];
|
|
66232
|
-
}
|
|
66233
|
-
const MAX_NUMERIC_DIGITS = 15;
|
|
66234
|
-
const NUMERIC_FIELD_TYPES = /* @__PURE__ */ new Set([
|
|
66235
|
-
FIELD_TYPE.INTEGER,
|
|
66236
|
-
FIELD_TYPE.LONG,
|
|
66237
|
-
FIELD_TYPE.DOUBLE,
|
|
66238
|
-
FIELD_TYPE.DECIMAL
|
|
66239
|
-
]);
|
|
66240
|
-
function filterRulesByTrigger(rules, trigger) {
|
|
66241
|
-
return rules.filter((rule) => {
|
|
66242
|
-
const ruleTrigger = rule.trigger;
|
|
66243
|
-
if (!ruleTrigger) return trigger === "change";
|
|
66244
|
-
if (trigger === "blur") {
|
|
66245
|
-
return ruleTrigger === "blur" || ruleTrigger === "change";
|
|
66246
|
-
}
|
|
66247
|
-
return ruleTrigger === trigger;
|
|
66248
|
-
});
|
|
66249
|
-
}
|
|
66250
|
-
function assembleRules(input) {
|
|
66251
|
-
const { showRequired, fieldType, validatorInfo, props } = input;
|
|
66252
|
-
const {
|
|
66253
|
-
minlength,
|
|
66254
|
-
maxlength,
|
|
66255
|
-
regex,
|
|
66256
|
-
regexHint,
|
|
66257
|
-
validateTrue,
|
|
66258
|
-
validateFalse,
|
|
66259
|
-
enableRangeValidate,
|
|
66260
|
-
maxValidateMode,
|
|
66261
|
-
minValidateMode,
|
|
66262
|
-
maxCompareOp,
|
|
66263
|
-
minCompareOp,
|
|
66264
|
-
minValue,
|
|
66265
|
-
maxValue,
|
|
66266
|
-
minFormulaExpr,
|
|
66267
|
-
maxFormulaExpr,
|
|
66268
|
-
minDate,
|
|
66269
|
-
maxDate,
|
|
66270
|
-
minDateFormulaExpr,
|
|
66271
|
-
maxDateFormulaExpr,
|
|
66272
|
-
maxDateValidateMode,
|
|
66273
|
-
minDateValidateMode
|
|
66274
|
-
} = props;
|
|
66275
|
-
const resolvedMaxCompareOp = maxCompareOp ?? RangeCompareOp.LE;
|
|
66276
|
-
const resolvedMinCompareOp = minCompareOp ?? RangeCompareOp.GE;
|
|
66277
|
-
const RuleProps = [];
|
|
66278
|
-
if (props.bizType === FIELD_TYPE.SEAL) {
|
|
66279
|
-
if (showRequired) {
|
|
66280
|
-
RuleProps.push(
|
|
66281
|
-
createRule(
|
|
66282
|
-
(_rule, value) => isSealStamped(value),
|
|
66283
|
-
buildError(
|
|
66284
|
-
{ ...validatorInfo, validationCode: "seal-required" },
|
|
66285
|
-
$t("sys.fieldRequired")
|
|
66286
|
-
),
|
|
66287
|
-
"manual"
|
|
66288
|
-
)
|
|
66289
|
-
);
|
|
66290
|
-
}
|
|
66291
|
-
RuleProps.push(createRule((_rule, value) => isEmptyValue(value) || isValidSealValue(value), buildError(validatorInfo, $t("sys.seal.invalid"))));
|
|
66292
|
-
return RuleProps;
|
|
66293
|
-
}
|
|
66294
|
-
if (showRequired) {
|
|
66295
|
-
RuleProps.push(
|
|
66296
|
-
createRule(
|
|
66297
|
-
(_rule, value) => !isEmptyValue(value),
|
|
66298
|
-
buildError(validatorInfo, $t("sys.fieldRequired")),
|
|
66299
|
-
"manual"
|
|
66300
|
-
)
|
|
66301
|
-
);
|
|
66302
|
-
}
|
|
66303
|
-
if (!isNil(minlength)) {
|
|
66304
|
-
RuleProps.push(
|
|
66305
|
-
createRule((_rule, value) => {
|
|
66306
|
-
if (isEmptyValue(value)) return true;
|
|
66307
|
-
return String(value).length >= minlength;
|
|
66308
|
-
}, buildError(validatorInfo, $t("sys.fieldLengthNotLessThan", { len: minlength })))
|
|
66309
|
-
);
|
|
66310
|
-
}
|
|
66311
|
-
const effectiveMaxlength = isNil(maxlength) && fieldType === FIELD_TYPE.TEXT ? 1024 : maxlength;
|
|
66312
|
-
if (!isNil(effectiveMaxlength)) {
|
|
66313
|
-
RuleProps.push(
|
|
66314
|
-
createRule((_rule, value) => {
|
|
66315
|
-
if (isEmptyValue(value)) return true;
|
|
66316
|
-
return String(value).length <= effectiveMaxlength;
|
|
66317
|
-
}, buildError(validatorInfo, $t("sys.fieldLengthNoMoreThan", { len: effectiveMaxlength })))
|
|
66318
|
-
);
|
|
66319
|
-
}
|
|
66320
|
-
if (regex) {
|
|
66321
|
-
RuleProps.push(
|
|
66322
|
-
createRule((_rule, value) => {
|
|
66323
|
-
if (isEmptyValue(value)) return true;
|
|
66324
|
-
return new RegExp(regex).test(value);
|
|
66325
|
-
}, buildError(validatorInfo, regexHint ?? $t("sys.fieldFormatError")))
|
|
66326
|
-
);
|
|
66327
|
-
}
|
|
66328
|
-
if (validateTrue) {
|
|
66329
|
-
RuleProps.push({
|
|
66330
|
-
required: true,
|
|
66331
|
-
trigger: "manual",
|
|
66332
|
-
validator: (_rule, value) => value === true,
|
|
66333
|
-
message: buildError(validatorInfo, $t("sys.fieldValueNeedTrue"))
|
|
66334
|
-
});
|
|
66335
|
-
}
|
|
66336
|
-
if (validateFalse) {
|
|
66337
|
-
RuleProps.push({
|
|
66338
|
-
required: true,
|
|
66339
|
-
trigger: "manual",
|
|
66340
|
-
validator: (_rule, value) => value === false,
|
|
66341
|
-
message: buildError(validatorInfo, $t("sys.fieldValueNeedFalse"))
|
|
66342
|
-
});
|
|
66343
|
-
}
|
|
66344
|
-
const maxMode = maxValidateMode ?? RangeValidateMode.No_Validate;
|
|
66345
|
-
const minMode = minValidateMode ?? RangeValidateMode.No_Validate;
|
|
66346
|
-
const shouldValidateNumericLength = !enableRangeValidate || maxMode === RangeValidateMode.No_Validate || minMode === RangeValidateMode.No_Validate;
|
|
66347
|
-
if (shouldValidateNumericLength && NUMERIC_FIELD_TYPES.has(fieldType ?? "")) {
|
|
66348
|
-
RuleProps.push(
|
|
66349
|
-
createRule((_rule, value) => {
|
|
66350
|
-
if (isEmptyValue(value)) return true;
|
|
66351
|
-
const raw = String(value).trim();
|
|
66352
|
-
const text = /e/i.test(raw) ? new BigNumber(raw).toFixed() : raw;
|
|
66353
|
-
return text.replace(/[+\-.]/g, "").length <= MAX_NUMERIC_DIGITS;
|
|
66354
|
-
}, buildError(validatorInfo, $t("sys.fieldNumericDigitsNoMoreThan")))
|
|
66355
|
-
);
|
|
66356
|
-
}
|
|
66357
|
-
if (!enableRangeValidate) {
|
|
66358
|
-
return RuleProps;
|
|
66359
|
-
}
|
|
66360
|
-
if (minValidateMode === RangeValidateMode.Fixed_Number && !isEmptyValue(minValue)) {
|
|
66361
|
-
RuleProps.push(
|
|
66362
|
-
createRule((_rule, value) => {
|
|
66363
|
-
if (isEmptyValue(value)) return true;
|
|
66364
|
-
return compareByOp(Number(value), Number(minValue), resolvedMinCompareOp);
|
|
66365
|
-
}, buildError(validatorInfo, rangeCompareMessage(resolvedMinCompareOp, minValue)))
|
|
66366
|
-
);
|
|
66367
|
-
}
|
|
66368
|
-
if (minValidateMode === RangeValidateMode.Variable_Validate && minFormulaExpr) {
|
|
66369
|
-
RuleProps.push({
|
|
66370
|
-
required: true,
|
|
66371
|
-
trigger: "change",
|
|
66372
|
-
validator: async (_rule, value, _callback, _source, options) => {
|
|
66373
|
-
const currentFormData = getCurrentFormData(_rule, options);
|
|
66374
|
-
const formulaValue = await calculateFormula(
|
|
66375
|
-
minFormulaExpr,
|
|
66376
|
-
currentFormData,
|
|
66377
|
-
options?.formData
|
|
66378
|
-
);
|
|
66379
|
-
if (isEmptyValue(formulaValue)) {
|
|
66380
|
-
return Promise.resolve();
|
|
66381
|
-
}
|
|
66382
|
-
const parsedMin = parseFloat(formulaValue);
|
|
66383
|
-
if (!isNaN(parsedMin)) {
|
|
66384
|
-
if (isEmptyValue(value)) {
|
|
66385
|
-
return Promise.resolve();
|
|
66386
|
-
}
|
|
66387
|
-
if (!compareByOp(Number(value), parsedMin, resolvedMinCompareOp)) {
|
|
66388
|
-
return Promise.reject(
|
|
66389
|
-
new Error(
|
|
66390
|
-
buildError(validatorInfo, rangeCompareMessage(resolvedMinCompareOp, parsedMin))
|
|
66391
|
-
)
|
|
66392
|
-
);
|
|
66393
|
-
}
|
|
66394
|
-
}
|
|
66395
|
-
return Promise.resolve();
|
|
66396
|
-
}
|
|
66397
|
-
});
|
|
66398
|
-
}
|
|
66399
|
-
if (maxValidateMode === RangeValidateMode.Fixed_Number && !isEmptyValue(maxValue)) {
|
|
66400
|
-
RuleProps.push(
|
|
66401
|
-
createRule((_rule, value) => {
|
|
66402
|
-
if (isEmptyValue(value)) return true;
|
|
66403
|
-
return compareByOp(Number(value), Number(maxValue), resolvedMaxCompareOp);
|
|
66404
|
-
}, buildError(validatorInfo, rangeCompareMessage(resolvedMaxCompareOp, maxValue)))
|
|
66405
|
-
);
|
|
66406
|
-
}
|
|
66407
|
-
if (maxValidateMode === RangeValidateMode.Variable_Validate && maxFormulaExpr) {
|
|
66408
|
-
RuleProps.push({
|
|
66409
|
-
required: true,
|
|
66410
|
-
trigger: "change",
|
|
66411
|
-
validator: async (_rule, value, _callback, _source, options) => {
|
|
66412
|
-
const currentFormData = getCurrentFormData(_rule, options);
|
|
66413
|
-
const formulaValue = await calculateFormula(
|
|
66414
|
-
maxFormulaExpr,
|
|
66415
|
-
currentFormData,
|
|
66416
|
-
options?.formData
|
|
66417
|
-
);
|
|
66418
|
-
if (isEmptyValue(formulaValue)) {
|
|
66419
|
-
return Promise.resolve();
|
|
66420
|
-
}
|
|
66421
|
-
const parsedMax = parseFloat(formulaValue);
|
|
66422
|
-
if (!isNaN(parsedMax)) {
|
|
66423
|
-
if (isEmptyValue(value)) {
|
|
66424
|
-
return Promise.resolve();
|
|
66425
|
-
}
|
|
66426
|
-
if (!compareByOp(Number(value), parsedMax, resolvedMaxCompareOp)) {
|
|
66427
|
-
return Promise.reject(
|
|
66428
|
-
new Error(
|
|
66429
|
-
buildError(validatorInfo, rangeCompareMessage(resolvedMaxCompareOp, parsedMax))
|
|
66430
|
-
)
|
|
66431
|
-
);
|
|
66432
|
-
}
|
|
66433
|
-
}
|
|
66434
|
-
return Promise.resolve();
|
|
66435
|
-
}
|
|
66436
|
-
});
|
|
66437
|
-
}
|
|
66438
|
-
if (minDateValidateMode === RangeValidateMode.Fixed_Number && minDate) {
|
|
66439
|
-
RuleProps.push(
|
|
66440
|
-
createRule((_rule, value) => {
|
|
66441
|
-
if (isEmptyValue(value)) return true;
|
|
66442
|
-
const inputTime = dayjs(value).unix();
|
|
66443
|
-
const minTimestamp = dayjs(minDate).unix();
|
|
66444
|
-
if (!dayjs(value).isValid() || !dayjs(minDate).isValid()) return true;
|
|
66445
|
-
return compareByOp(inputTime, minTimestamp, resolvedMinCompareOp);
|
|
66446
|
-
}, buildError(validatorInfo, rangeCompareMessage(resolvedMinCompareOp, minDate)))
|
|
66447
|
-
);
|
|
66448
|
-
}
|
|
66449
|
-
if (maxDateValidateMode === RangeValidateMode.Fixed_Number && maxDate) {
|
|
66450
|
-
RuleProps.push(
|
|
66451
|
-
createRule((_rule, value) => {
|
|
66452
|
-
if (isEmptyValue(value)) return true;
|
|
66453
|
-
const inputTime = dayjs(value).unix();
|
|
66454
|
-
const maxTimestamp = dayjs(maxDate).unix();
|
|
66455
|
-
if (!dayjs(value).isValid() || !dayjs(maxDate).isValid()) return true;
|
|
66456
|
-
return compareByOp(inputTime, maxTimestamp, resolvedMaxCompareOp);
|
|
66457
|
-
}, buildError(validatorInfo, rangeCompareMessage(resolvedMaxCompareOp, maxDate)))
|
|
66458
|
-
);
|
|
66459
|
-
}
|
|
66460
|
-
if (minDateValidateMode === RangeValidateMode.Variable_Validate && minDateFormulaExpr) {
|
|
66461
|
-
RuleProps.push({
|
|
66462
|
-
required: true,
|
|
66463
|
-
trigger: "change",
|
|
66464
|
-
validator: async (_rule, value, _callback, _source, options) => {
|
|
66465
|
-
const currentFormData = getCurrentFormData(_rule, options);
|
|
66466
|
-
const formulaValue = await calculateFormula(
|
|
66467
|
-
minDateFormulaExpr,
|
|
66468
|
-
currentFormData,
|
|
66469
|
-
options?.formData
|
|
66470
|
-
);
|
|
66471
|
-
const limitTime = toUnixTimestamp(formulaValue);
|
|
66472
|
-
if (limitTime !== null) {
|
|
66473
|
-
if (isEmptyValue(value)) {
|
|
66474
|
-
return Promise.resolve();
|
|
66475
|
-
}
|
|
66476
|
-
if (!dayjs(value).isValid()) {
|
|
66477
|
-
return Promise.resolve();
|
|
66478
|
-
}
|
|
66479
|
-
const inputTime = dayjs(value).unix();
|
|
66480
|
-
const fmt = fieldType === FIELD_TYPE.DATE_TIME ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
66481
|
-
if (!compareByOp(inputTime, limitTime, resolvedMinCompareOp)) {
|
|
66482
|
-
return Promise.reject(
|
|
66483
|
-
new Error(
|
|
66484
|
-
buildError(
|
|
66485
|
-
validatorInfo,
|
|
66486
|
-
rangeCompareMessage(resolvedMinCompareOp, dayjs.unix(limitTime).format(fmt))
|
|
66487
|
-
)
|
|
66488
|
-
)
|
|
66489
|
-
);
|
|
66490
|
-
}
|
|
66491
|
-
}
|
|
66492
|
-
return Promise.resolve();
|
|
66493
|
-
}
|
|
66494
|
-
});
|
|
66495
|
-
}
|
|
66496
|
-
if (maxDateValidateMode === RangeValidateMode.Variable_Validate && maxDateFormulaExpr) {
|
|
66497
|
-
RuleProps.push({
|
|
66498
|
-
required: true,
|
|
66499
|
-
trigger: "change",
|
|
66500
|
-
validator: async (_rule, value, _callback, _source, options) => {
|
|
66501
|
-
const currentFormData = getCurrentFormData(_rule, options);
|
|
66502
|
-
const formulaValue = await calculateFormula(
|
|
66503
|
-
maxDateFormulaExpr,
|
|
66504
|
-
currentFormData,
|
|
66505
|
-
options?.formData
|
|
66506
|
-
);
|
|
66507
|
-
const limitTime = toUnixTimestamp(formulaValue);
|
|
66508
|
-
if (limitTime !== null) {
|
|
66509
|
-
if (isEmptyValue(value)) {
|
|
66510
|
-
return Promise.resolve();
|
|
66511
|
-
}
|
|
66512
|
-
if (!dayjs(value).isValid()) {
|
|
66513
|
-
return Promise.resolve();
|
|
66514
|
-
}
|
|
66515
|
-
const inputTime = dayjs(value).unix();
|
|
66516
|
-
const fmt = fieldType === FIELD_TYPE.DATE_TIME ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
66517
|
-
if (!compareByOp(inputTime, limitTime, resolvedMaxCompareOp)) {
|
|
66518
|
-
return Promise.reject(
|
|
66519
|
-
new Error(
|
|
66520
|
-
buildError(
|
|
66521
|
-
validatorInfo,
|
|
66522
|
-
rangeCompareMessage(resolvedMaxCompareOp, dayjs.unix(limitTime).format(fmt))
|
|
66523
|
-
)
|
|
66524
|
-
)
|
|
66525
|
-
);
|
|
66526
|
-
}
|
|
66527
|
-
}
|
|
66528
|
-
return Promise.resolve();
|
|
66529
|
-
}
|
|
66530
|
-
});
|
|
66531
|
-
}
|
|
66532
|
-
return RuleProps;
|
|
66533
|
-
}
|
|
66534
|
-
const getApi$1 = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
|
|
66535
|
-
const postApi = api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey;
|
|
66536
|
-
async function materialCheck(params) {
|
|
66537
|
-
const res = await postApi(
|
|
66538
|
-
{
|
|
66539
|
-
bsKey: "biz_single_material_check",
|
|
66540
|
-
modelKey: "em_material_loading",
|
|
66541
|
-
modelCategory: "entity"
|
|
66542
|
-
},
|
|
66543
|
-
{},
|
|
66544
|
-
params
|
|
66545
|
-
);
|
|
66546
|
-
return res;
|
|
66547
|
-
}
|
|
66548
|
-
async function stockCheck(params) {
|
|
66549
|
-
await postApi(
|
|
66550
|
-
{
|
|
66551
|
-
bsKey: "biz_form_single_confirm",
|
|
66552
|
-
modelKey: "em_material_loading",
|
|
66553
|
-
modelCategory: "entity"
|
|
66554
|
-
},
|
|
66555
|
-
{},
|
|
66556
|
-
{
|
|
66557
|
-
entry: params.entry,
|
|
66558
|
-
material_id_: params.row.product_id_,
|
|
66559
|
-
production_identification_name_: params.row.material_no_,
|
|
66560
|
-
qty_: params.row.qty_,
|
|
66561
|
-
operation_id_: params.row.routing_operation_id_,
|
|
66562
|
-
main_material_no_: params.mainMaterialNo
|
|
66563
|
-
}
|
|
66564
|
-
);
|
|
66565
|
-
}
|
|
66566
|
-
async function fetchHistoryConsume(params) {
|
|
66567
|
-
const res = await postApi(
|
|
66568
|
-
{
|
|
66569
|
-
bsKey: "listAll",
|
|
66570
|
-
modelKey: "em_material_consume",
|
|
66571
|
-
modelCategory: "entity"
|
|
66572
|
-
},
|
|
66573
|
-
{},
|
|
66574
|
-
{
|
|
66575
|
-
query: params
|
|
66576
|
-
}
|
|
66577
|
-
);
|
|
66578
|
-
console.log("查询历史消耗数据", res);
|
|
66579
|
-
const arr = res.data ?? [];
|
|
66580
|
-
arr.map((i2) => {
|
|
66581
|
-
i2.qty_ = i2.qty_consumed_;
|
|
66582
|
-
});
|
|
66583
|
-
return arr;
|
|
66584
|
-
}
|
|
66585
|
-
async function judgeUnique(opts) {
|
|
66586
|
-
const res = await postApi(
|
|
66587
|
-
{
|
|
66588
|
-
bsKey: "biz_form_unique",
|
|
66589
|
-
modelKey: "em_material_loading",
|
|
66590
|
-
modelCategory: "entity"
|
|
66591
|
-
},
|
|
66592
|
-
{},
|
|
66593
|
-
{
|
|
66594
|
-
model_key_: opts.modelKey,
|
|
66595
|
-
datas_: opts.data
|
|
66596
|
-
}
|
|
66597
|
-
);
|
|
66598
|
-
return res;
|
|
66599
|
-
}
|
|
66600
|
-
async function isBomGranted() {
|
|
66601
|
-
try {
|
|
66602
|
-
const res = await getApi$1(
|
|
66603
|
-
{
|
|
66604
|
-
modelKey: "em_product_bom",
|
|
66605
|
-
bsKey: "biz_bom_granted",
|
|
66606
|
-
modelCategory: "entity"
|
|
66607
|
-
},
|
|
66608
|
-
{},
|
|
66609
|
-
{}
|
|
66610
|
-
);
|
|
66611
|
-
return res ?? false;
|
|
66612
|
-
} catch (error) {
|
|
66613
|
-
console.log("");
|
|
66614
|
-
return false;
|
|
66615
|
-
}
|
|
66616
|
-
}
|
|
66617
|
-
async function getReinspectionDate(params) {
|
|
66618
|
-
if (!params.material_no_id_ && !params.material_no_) return;
|
|
66619
|
-
({
|
|
66620
|
-
"product_id_.versionIn": [params.product_id_.split(":").pop()]
|
|
66621
|
-
});
|
|
66622
|
-
if (params.material_no_id_) {
|
|
66623
|
-
params.material_no_id_;
|
|
66624
|
-
} else {
|
|
66625
|
-
params.material_no_;
|
|
66626
|
-
}
|
|
66627
|
-
const res = await postApi(
|
|
66628
|
-
{
|
|
66629
|
-
modelCategory: "entity",
|
|
66630
|
-
modelKey: "em_production_identification",
|
|
66631
|
-
bsKey: "getOne"
|
|
66632
|
-
},
|
|
66633
|
-
{},
|
|
66634
|
-
{
|
|
66635
|
-
query: {
|
|
66636
|
-
name_: params.material_no_,
|
|
66637
|
-
id_: params.material_no_id_,
|
|
66638
|
-
"product_id_.versionEq": params.product_id_
|
|
66639
|
-
}
|
|
66640
|
-
}
|
|
66641
|
-
);
|
|
66642
|
-
const record = res?.data?.[0] ?? res?.data;
|
|
66643
|
-
const raw = record?.re_inspection_date_ ?? record?.retest_date_;
|
|
66644
|
-
if (raw == null || raw === "") return;
|
|
66645
|
-
const parsed = dayjs(raw);
|
|
66646
|
-
if (!parsed.isValid()) return;
|
|
66647
|
-
return parsed.format("YYYY-MM-DD");
|
|
66648
|
-
}
|
|
66649
|
-
async function validateReinspectionDate(opts) {
|
|
66650
|
-
if (!opts.product_id_ || !opts.material_no_ && !opts.material_no_id_) return;
|
|
66651
|
-
const date = await getReinspectionDate({
|
|
66652
|
-
product_id_: opts.product_id_,
|
|
66653
|
-
material_no_: opts.material_no_,
|
|
66654
|
-
material_no_id_: opts.material_no_id_
|
|
66655
|
-
});
|
|
66656
|
-
if (!date) return;
|
|
66657
|
-
if (dayjs(date).isBefore(dayjs(), "day")) {
|
|
66658
|
-
throw new Error($t("sys.retestDateErrorTip"));
|
|
66659
|
-
}
|
|
66660
|
-
}
|
|
66661
|
-
async function getLotLockedReason(production_identification_id_) {
|
|
66662
|
-
const { data = {}, dict = {} } = await postApi(
|
|
66663
|
-
{
|
|
66664
|
-
modelCategory: "entity",
|
|
66665
|
-
modelKey: "em_production_identification_lock_record",
|
|
66666
|
-
bsKey: "biz_get_one_lock_record"
|
|
66667
|
-
},
|
|
66668
|
-
{},
|
|
66669
|
-
{
|
|
66670
|
-
production_identification_id_
|
|
66671
|
-
}
|
|
66672
|
-
);
|
|
66673
|
-
return $t("sys.lotLockedReason", {
|
|
66674
|
-
name: dict.lock_user_id_[data.lock_user_id_],
|
|
66675
|
-
reason: data.lock_reason_
|
|
66676
|
-
});
|
|
66677
|
-
}
|
|
66678
|
-
var Config_Fields = /* @__PURE__ */ ((Config_Fields2) => {
|
|
66679
|
-
Config_Fields2["materialCode"] = "materialCode";
|
|
66680
|
-
Config_Fields2["lot"] = "lot";
|
|
66681
|
-
Config_Fields2["qty"] = "qty";
|
|
66682
|
-
Config_Fields2["expiration"] = "expiration";
|
|
66683
|
-
Config_Fields2["deviceCode"] = "deviceCode";
|
|
66684
|
-
Config_Fields2["other"] = "other";
|
|
66685
|
-
return Config_Fields2;
|
|
66686
|
-
})(Config_Fields || {});
|
|
66687
|
-
const getApi = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
|
|
66688
|
-
async function getParseRuleInfo(params) {
|
|
66689
|
-
const res = await getApi(
|
|
66690
|
-
{
|
|
66691
|
-
bsKey: "rdoGetVersionById",
|
|
66692
|
-
modelKey: "em_barcode_parsing_rules",
|
|
66693
|
-
modelCategory: "entity"
|
|
66694
|
-
},
|
|
66695
|
-
params
|
|
66696
|
-
);
|
|
66697
|
-
return res.data;
|
|
66698
|
-
}
|
|
66699
|
-
function handleOldConfig(config) {
|
|
66700
|
-
if (config.list && !config.fieldList) {
|
|
66701
|
-
config.fieldList = config.list.map((type) => {
|
|
66702
|
-
return {
|
|
66703
|
-
type,
|
|
66704
|
-
key: type === Config_Fields.other ? uuid2(32) : type
|
|
66705
|
-
};
|
|
66706
|
-
});
|
|
66707
|
-
delete config.list;
|
|
66708
|
-
}
|
|
66709
|
-
config.fieldList.forEach((item) => {
|
|
66710
|
-
if (!item.key) {
|
|
66711
|
-
item.key = item.type === Config_Fields.other ? uuid2(32) : item.type;
|
|
66712
|
-
}
|
|
66713
|
-
});
|
|
66714
|
-
return config;
|
|
66715
|
-
}
|
|
66716
|
-
function getParseRuleValue(labelStr, labelRule) {
|
|
66717
|
-
if (!labelRule) {
|
|
66718
|
-
throw new Error("请传入解析规则");
|
|
66719
|
-
}
|
|
66720
|
-
const ruleObj = JSON.parse(labelRule);
|
|
66721
|
-
const ruleConfig = handleOldConfig(ruleObj);
|
|
66722
|
-
const { separator, nullSymbol, fieldList } = ruleConfig;
|
|
66723
|
-
const labelArr = labelStr.split(separator);
|
|
66724
|
-
return labelArr.reduce((obj, e, idx) => {
|
|
66725
|
-
const field = fieldList[idx];
|
|
66726
|
-
if (field) {
|
|
66727
|
-
let val = nullSymbol && e === nullSymbol ? null : e;
|
|
66728
|
-
if (val !== null) {
|
|
66729
|
-
switch (field.type) {
|
|
66730
|
-
case Config_Fields.qty:
|
|
66731
|
-
val = Number(val);
|
|
66732
|
-
break;
|
|
66733
|
-
case Config_Fields.expiration:
|
|
66734
|
-
val = dayjs(val, field.format).format("YYYY-MM-DD HH:mm:ss");
|
|
66735
|
-
break;
|
|
66736
|
-
}
|
|
66737
|
-
}
|
|
66738
|
-
obj[field.key] = val;
|
|
66739
|
-
}
|
|
66740
|
-
return obj;
|
|
66741
|
-
}, {});
|
|
66742
|
-
}
|
|
66743
|
-
async function getParseRuleConfig(id) {
|
|
66744
|
-
const res = await getParseRuleInfo({ id });
|
|
66745
|
-
if (res?.rules_) {
|
|
66746
|
-
const ruleObj = JSON.parse(res.rules_);
|
|
66747
|
-
const ruleConfig = handleOldConfig(ruleObj);
|
|
66748
|
-
return ruleConfig;
|
|
66749
|
-
}
|
|
66750
|
-
}
|
|
66751
|
-
function calcFillData(data, fillMapArr) {
|
|
66752
|
-
const obj = {};
|
|
66753
|
-
if (fillMapArr?.length) {
|
|
66754
|
-
fillMapArr.forEach((i2) => {
|
|
66755
|
-
const fromKey = i2.barcodeField;
|
|
66756
|
-
if (fromKey && fromKey in data) {
|
|
66757
|
-
const val = data[fromKey];
|
|
66758
|
-
i2.formFields?.forEach((key) => {
|
|
66759
|
-
const toKey2 = key.split(".")[1];
|
|
66760
|
-
obj[toKey2] = val;
|
|
66761
|
-
});
|
|
66762
|
-
}
|
|
66763
|
-
});
|
|
66764
|
-
}
|
|
66765
|
-
return obj;
|
|
66766
|
-
}
|
|
66767
66206
|
const NUMBER_FIELD_TYPES = /* @__PURE__ */ new Set([
|
|
66768
66207
|
FIELD_TYPE.INTEGER,
|
|
66769
66208
|
FIELD_TYPE.LONG,
|
|
@@ -67227,27 +66666,27 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
67227
66666
|
case "revo-grid":
|
|
67228
66667
|
return import(
|
|
67229
66668
|
/* webpackMode: "lazy" */
|
|
67230
|
-
"./revo-grid.entry-
|
|
66669
|
+
"./revo-grid.entry-DKvA7bUR.js"
|
|
67231
66670
|
).then(processMod, consoleError);
|
|
67232
66671
|
case "revogr-filter-panel":
|
|
67233
66672
|
return import(
|
|
67234
66673
|
/* webpackMode: "lazy" */
|
|
67235
|
-
"./revogr-filter-panel.entry-
|
|
66674
|
+
"./revogr-filter-panel.entry-BJiGVhcw.js"
|
|
67236
66675
|
).then(processMod, consoleError);
|
|
67237
66676
|
case "revogr-attribution_7":
|
|
67238
66677
|
return import(
|
|
67239
66678
|
/* webpackMode: "lazy" */
|
|
67240
|
-
"./revogr-attribution_7.entry-
|
|
66679
|
+
"./revogr-attribution_7.entry-C2PtJ_Tj.js"
|
|
67241
66680
|
).then(processMod, consoleError);
|
|
67242
66681
|
case "revogr-clipboard_3":
|
|
67243
66682
|
return import(
|
|
67244
66683
|
/* webpackMode: "lazy" */
|
|
67245
|
-
"./revogr-clipboard_3.entry-
|
|
66684
|
+
"./revogr-clipboard_3.entry-BM7_JY0U.js"
|
|
67246
66685
|
).then(processMod, consoleError);
|
|
67247
66686
|
case "revogr-data_4":
|
|
67248
66687
|
return import(
|
|
67249
66688
|
/* webpackMode: "lazy" */
|
|
67250
|
-
"./revogr-data_4.entry-
|
|
66689
|
+
"./revogr-data_4.entry-CdMQPL7I.js"
|
|
67251
66690
|
).then(processMod, consoleError);
|
|
67252
66691
|
}
|
|
67253
66692
|
}
|
|
@@ -77483,7 +76922,7 @@ function groupFixedTableRows(rows, options) {
|
|
|
77483
76922
|
return result;
|
|
77484
76923
|
}
|
|
77485
76924
|
export {
|
|
77486
|
-
|
|
76925
|
+
LabelPosition as $,
|
|
77487
76926
|
ParamModelTypeEnum as A,
|
|
77488
76927
|
BwipCodeType as B,
|
|
77489
76928
|
ComponentTypeEnum as C,
|
|
@@ -77501,321 +76940,302 @@ export {
|
|
|
77501
76940
|
Orientation as O,
|
|
77502
76941
|
PaginationFormat as P,
|
|
77503
76942
|
PaperWidgeValueType as Q,
|
|
77504
|
-
|
|
76943
|
+
onlineFormMasterModelTypeEnum as R,
|
|
77505
76944
|
SUB_TABLE_PANEL_TYPE_NAME as S,
|
|
77506
76945
|
TRACE_FIELD_TYPES as T,
|
|
77507
|
-
|
|
77508
|
-
|
|
76946
|
+
UniqueConstraintType as U,
|
|
76947
|
+
FieldDefaultValueTypeEnum as V,
|
|
77509
76948
|
WAREHOUSE_FIELD_TYPES as W,
|
|
77510
|
-
|
|
77511
|
-
|
|
77512
|
-
|
|
77513
|
-
|
|
76949
|
+
FormTypeEnum as X,
|
|
76950
|
+
mitt as Y,
|
|
76951
|
+
isDateObjectField as Z,
|
|
76952
|
+
PlatformEnum as _,
|
|
77514
76953
|
getProfile as a,
|
|
77515
|
-
|
|
77516
|
-
|
|
77517
|
-
|
|
77518
|
-
|
|
77519
|
-
|
|
77520
|
-
|
|
77521
|
-
|
|
77522
|
-
|
|
77523
|
-
|
|
77524
|
-
|
|
77525
|
-
|
|
77526
|
-
|
|
77527
|
-
|
|
77528
|
-
|
|
77529
|
-
|
|
77530
|
-
|
|
77531
|
-
|
|
77532
|
-
|
|
77533
|
-
|
|
77534
|
-
|
|
77535
|
-
|
|
77536
|
-
|
|
77537
|
-
|
|
77538
|
-
|
|
77539
|
-
|
|
77540
|
-
|
|
77541
|
-
|
|
77542
|
-
|
|
77543
|
-
|
|
77544
|
-
|
|
77545
|
-
|
|
77546
|
-
|
|
77547
|
-
|
|
77548
|
-
|
|
77549
|
-
|
|
77550
|
-
|
|
77551
|
-
|
|
77552
|
-
|
|
77553
|
-
|
|
77554
|
-
|
|
77555
|
-
|
|
77556
|
-
|
|
77557
|
-
|
|
77558
|
-
|
|
77559
|
-
|
|
77560
|
-
|
|
77561
|
-
|
|
77562
|
-
|
|
77563
|
-
|
|
77564
|
-
|
|
77565
|
-
|
|
77566
|
-
|
|
77567
|
-
|
|
77568
|
-
|
|
77569
|
-
|
|
77570
|
-
|
|
77571
|
-
|
|
77572
|
-
|
|
77573
|
-
|
|
77574
|
-
|
|
77575
|
-
|
|
77576
|
-
|
|
77577
|
-
|
|
77578
|
-
|
|
76954
|
+
getParseRuleValue as a$,
|
|
76955
|
+
BooleanShowMode as a0,
|
|
76956
|
+
SignatureImageDirectionEnum as a1,
|
|
76957
|
+
FallbackSignTypeEnum as a2,
|
|
76958
|
+
SignatureNumberTypeEnum as a3,
|
|
76959
|
+
SignatureTimeTypeEnum as a4,
|
|
76960
|
+
SignShowTypeEnum as a5,
|
|
76961
|
+
SignatureTypeEnum as a6,
|
|
76962
|
+
_export_sfc as a7,
|
|
76963
|
+
normalizeFieldType as a8,
|
|
76964
|
+
PaperSizeMap as a9,
|
|
76965
|
+
getSubTableTypeByRefModelType as aA,
|
|
76966
|
+
getAllTableProfiles as aB,
|
|
76967
|
+
transformUtils as aC,
|
|
76968
|
+
EmptySymbol as aD,
|
|
76969
|
+
ASSIGNMENTSTRATEGY_ENUM as aE,
|
|
76970
|
+
Dependency_ENUM as aF,
|
|
76971
|
+
EntityModelCategoryEnum as aG,
|
|
76972
|
+
resolveLotDisplayLabel as aH,
|
|
76973
|
+
CheckDsTypeEnum as aI,
|
|
76974
|
+
DeviceLink as aJ,
|
|
76975
|
+
DeviceParamsTypeTitle as aK,
|
|
76976
|
+
AITooltips as aL,
|
|
76977
|
+
DenoiseMethodOptions as aM,
|
|
76978
|
+
BinarizeMethodOptions as aN,
|
|
76979
|
+
JoinModelTypeEum as aO,
|
|
76980
|
+
sqlUtils as aP,
|
|
76981
|
+
DateFormat as aQ,
|
|
76982
|
+
LOT_CONTAINER_ROLE as aR,
|
|
76983
|
+
buildLotSnListQuery as aS,
|
|
76984
|
+
renderUtils as aT,
|
|
76985
|
+
resolveLotRecordByValue as aU,
|
|
76986
|
+
materialCheck as aV,
|
|
76987
|
+
getLotLockedReason as aW,
|
|
76988
|
+
validateReinspectionDate as aX,
|
|
76989
|
+
ProductionIdentificationTypeEnum as aY,
|
|
76990
|
+
BindCmpStyleEnum as aZ,
|
|
76991
|
+
getParseRuleInfo as a_,
|
|
76992
|
+
getFieldMain as aa,
|
|
76993
|
+
buildUUID as ab,
|
|
76994
|
+
FieldIconMap as ac,
|
|
76995
|
+
BigNumber as ad,
|
|
76996
|
+
FieldSysVarDefaultValueEnum as ae,
|
|
76997
|
+
CellWidgetViewState as af,
|
|
76998
|
+
DiagonalDirection as ag,
|
|
76999
|
+
WidgetImageSizeMode as ah,
|
|
77000
|
+
LineDirection as ai,
|
|
77001
|
+
TimeDiffFormat as aj,
|
|
77002
|
+
DiagonalVertex as ak,
|
|
77003
|
+
resolveDiagonalVertex as al,
|
|
77004
|
+
getThemeColorByTableType as am,
|
|
77005
|
+
ViewTypeEnum as an,
|
|
77006
|
+
isDynamicSubTablePanelType as ao,
|
|
77007
|
+
isFixedSubTablePanelType as ap,
|
|
77008
|
+
ExpressionModeEnum as aq,
|
|
77009
|
+
ReturnTypeEnum as ar,
|
|
77010
|
+
ExpressionTabEnum as as,
|
|
77011
|
+
RangeValidateMode as at,
|
|
77012
|
+
RangeCompareOp as au,
|
|
77013
|
+
DecimalDisplayMode as av,
|
|
77014
|
+
ImageDisplayModeEnum as aw,
|
|
77015
|
+
FormDesignEnum as ax,
|
|
77016
|
+
BASIC_FIELD_TYPES as ay,
|
|
77017
|
+
getExclusiveBusinessTypeTokens as az,
|
|
77579
77018
|
isBusinessSubTableProfile as b,
|
|
77580
|
-
|
|
77581
|
-
|
|
77582
|
-
|
|
77583
|
-
|
|
77584
|
-
|
|
77585
|
-
|
|
77586
|
-
|
|
77587
|
-
|
|
77588
|
-
|
|
77589
|
-
|
|
77590
|
-
|
|
77591
|
-
|
|
77592
|
-
|
|
77593
|
-
|
|
77594
|
-
|
|
77595
|
-
|
|
77596
|
-
|
|
77597
|
-
|
|
77598
|
-
|
|
77599
|
-
|
|
77600
|
-
|
|
77601
|
-
|
|
77602
|
-
|
|
77603
|
-
|
|
77604
|
-
|
|
77605
|
-
|
|
77606
|
-
|
|
77607
|
-
|
|
77608
|
-
|
|
77609
|
-
|
|
77610
|
-
|
|
77611
|
-
|
|
77612
|
-
|
|
77613
|
-
|
|
77614
|
-
|
|
77615
|
-
|
|
77616
|
-
|
|
77617
|
-
|
|
77618
|
-
|
|
77619
|
-
|
|
77620
|
-
|
|
77621
|
-
|
|
77622
|
-
|
|
77623
|
-
|
|
77624
|
-
|
|
77625
|
-
|
|
77626
|
-
|
|
77627
|
-
|
|
77628
|
-
|
|
77629
|
-
|
|
77630
|
-
|
|
77631
|
-
|
|
77632
|
-
|
|
77633
|
-
|
|
77634
|
-
|
|
77635
|
-
|
|
77636
|
-
|
|
77637
|
-
|
|
77638
|
-
|
|
77639
|
-
|
|
77640
|
-
|
|
77641
|
-
|
|
77642
|
-
|
|
77643
|
-
|
|
77019
|
+
findRuntimeTableCell as b$,
|
|
77020
|
+
normalizeRefLoaderResult as b0,
|
|
77021
|
+
STOCKTAKE_DIMENSION as b1,
|
|
77022
|
+
F$8 as b2,
|
|
77023
|
+
resolveStocktakeSelectApi as b3,
|
|
77024
|
+
RenderModeEnum as b4,
|
|
77025
|
+
normalizeProductionContainerOptions as b5,
|
|
77026
|
+
buildProductionLotListQuery as b6,
|
|
77027
|
+
refUtils as b7,
|
|
77028
|
+
buildInspectionLotListQuery as b8,
|
|
77029
|
+
buildDeviceFilterQuery as b9,
|
|
77030
|
+
CodeRunner as bA,
|
|
77031
|
+
Config_Fields as bB,
|
|
77032
|
+
ControlStatusEnum as bC,
|
|
77033
|
+
DEVICE_SEARCH_API as bD,
|
|
77034
|
+
DeviceStatus as bE,
|
|
77035
|
+
EBR_PROVIDE_ENUM as bF,
|
|
77036
|
+
EFieldBizTypeEnum as bG,
|
|
77037
|
+
MAX_FRONT_ROW_KEY_LENGTH as bH,
|
|
77038
|
+
MobileFillTypeEnum as bI,
|
|
77039
|
+
OfficeTypeEnum as bJ,
|
|
77040
|
+
PosEnum as bK,
|
|
77041
|
+
RUNTIME_COLUMN_ROW_KEY as bL,
|
|
77042
|
+
SummaryApproveHisTypeEnum as bM,
|
|
77043
|
+
applyCheckDsDataToRuntime as bN,
|
|
77044
|
+
applyMedProCheckDsDataToRuntime as bO,
|
|
77045
|
+
bindRuntimeTableColumns as bP,
|
|
77046
|
+
buildDeviceBaseQuery as bQ,
|
|
77047
|
+
calcFillData as bR,
|
|
77048
|
+
calcUtils as bS,
|
|
77049
|
+
decodeTableCellRowKey as bT,
|
|
77050
|
+
encodeTableCellRowKey as bU,
|
|
77051
|
+
ensureFrontRowKey as bV,
|
|
77052
|
+
ensureTableRowKeys as bW,
|
|
77053
|
+
extractKeywordFromQueryData as bX,
|
|
77054
|
+
fetchCheckDsDataForTable as bY,
|
|
77055
|
+
fetchCustomCheckDsData as bZ,
|
|
77056
|
+
fetchMedProCheckDsData as b_,
|
|
77057
|
+
DEVICE_GROUP_QUERY_KEY as ba,
|
|
77058
|
+
getRowId as bb,
|
|
77059
|
+
findRuntimeTableRow as bc,
|
|
77060
|
+
findRuntimeParentRow as bd,
|
|
77061
|
+
useOnlineFormTransformField2Component as be,
|
|
77062
|
+
FormulaRuleFieldKeyEnum as bf,
|
|
77063
|
+
formulaRuleFieldDict as bg,
|
|
77064
|
+
resolveDesignPanelFeatures as bh,
|
|
77065
|
+
BIZ_TABLE_CONFIG_SEED_TYPES as bi,
|
|
77066
|
+
STOCKTAKE_DIMENSION_OPTIONS as bj,
|
|
77067
|
+
isRepeatingSubTablePanelType as bk,
|
|
77068
|
+
uuid2 as bl,
|
|
77069
|
+
fetchHistoryConsume as bm,
|
|
77070
|
+
isBomGranted as bn,
|
|
77071
|
+
parseFrontConfig as bo,
|
|
77072
|
+
baseDataUtils as bp,
|
|
77073
|
+
normalizeToArray as bq,
|
|
77074
|
+
safeParseArray as br,
|
|
77075
|
+
BpmnNodeTypeEnum as bs,
|
|
77076
|
+
mergeByMultiKey as bt,
|
|
77077
|
+
evaluateInspectionDecisionRule as bu,
|
|
77078
|
+
useNocodeEmitter as bv,
|
|
77079
|
+
commonUtils as bw,
|
|
77080
|
+
BpmnSignatureTypeEnum as bx,
|
|
77081
|
+
ButtonTypeEnum as by,
|
|
77082
|
+
CHECK_TABLE_MEDPRO_PROTOCOL_KEY as bz,
|
|
77644
77083
|
getProfileByTableType as c,
|
|
77645
|
-
|
|
77646
|
-
|
|
77647
|
-
|
|
77648
|
-
|
|
77649
|
-
|
|
77650
|
-
|
|
77651
|
-
|
|
77652
|
-
|
|
77653
|
-
|
|
77654
|
-
|
|
77655
|
-
|
|
77656
|
-
|
|
77657
|
-
|
|
77658
|
-
|
|
77659
|
-
|
|
77660
|
-
|
|
77661
|
-
|
|
77662
|
-
|
|
77663
|
-
|
|
77664
|
-
|
|
77665
|
-
|
|
77666
|
-
|
|
77667
|
-
|
|
77668
|
-
|
|
77669
|
-
F$
|
|
77670
|
-
|
|
77671
|
-
|
|
77672
|
-
F
|
|
77673
|
-
|
|
77674
|
-
|
|
77675
|
-
|
|
77676
|
-
|
|
77677
|
-
|
|
77678
|
-
|
|
77679
|
-
|
|
77680
|
-
|
|
77681
|
-
|
|
77682
|
-
|
|
77683
|
-
|
|
77684
|
-
|
|
77685
|
-
|
|
77686
|
-
|
|
77687
|
-
|
|
77688
|
-
|
|
77689
|
-
|
|
77690
|
-
|
|
77691
|
-
|
|
77692
|
-
|
|
77693
|
-
|
|
77694
|
-
|
|
77695
|
-
|
|
77696
|
-
|
|
77697
|
-
|
|
77698
|
-
|
|
77699
|
-
|
|
77700
|
-
|
|
77701
|
-
|
|
77702
|
-
|
|
77703
|
-
|
|
77704
|
-
|
|
77705
|
-
|
|
77706
|
-
|
|
77707
|
-
|
|
77708
|
-
|
|
77084
|
+
applyFillFromProductOption$1 as c$,
|
|
77085
|
+
getCheckTableSnapshotKey as c0,
|
|
77086
|
+
getParseRuleConfig as c1,
|
|
77087
|
+
getReinspectionDate as c2,
|
|
77088
|
+
getRenderedRuntimeTableCell as c3,
|
|
77089
|
+
handleOldConfig as c4,
|
|
77090
|
+
hasAnyCheckTableSnapshot as c5,
|
|
77091
|
+
hasByTableCheckTableSnapshot as c6,
|
|
77092
|
+
hasSharedCheckTableSnapshot as c7,
|
|
77093
|
+
isMedProSuite as c8,
|
|
77094
|
+
isTableRowKeyMatch as c9,
|
|
77095
|
+
F$9 as cA,
|
|
77096
|
+
FILL_FROM_SOURCE_PRODUCT_OPTION as cB,
|
|
77097
|
+
FILL_FROM_TARGET_MATERIAL_NO_OPTION as cC,
|
|
77098
|
+
FILL_FROM_INVENTORY_OPTION$2 as cD,
|
|
77099
|
+
FILL_FROM_PART_OPTION as cE,
|
|
77100
|
+
FILL_FROM_INVENTORY_OPTION$3 as cF,
|
|
77101
|
+
TABLE_TYPE$b as cG,
|
|
77102
|
+
FILL_FROM_INVENTORY_OPTION$1 as cH,
|
|
77103
|
+
INVENTORY_BASE_FIELDS as cI,
|
|
77104
|
+
resolveGroupByWarehouse as cJ,
|
|
77105
|
+
AUTO_LOAD_READONLY_SELECT_FIELDS as cK,
|
|
77106
|
+
buildFillFromInventoryOption as cL,
|
|
77107
|
+
resolveStocktakeInventoryApi as cM,
|
|
77108
|
+
F$5 as cN,
|
|
77109
|
+
FILL_FROM_INVENTORY_OPTION as cO,
|
|
77110
|
+
composeProductionLotListQuery as cP,
|
|
77111
|
+
F as cQ,
|
|
77112
|
+
isProductManuallyEditable as cR,
|
|
77113
|
+
applyFillFromMfgOrderOption as cS,
|
|
77114
|
+
applyFillFromOption as cT,
|
|
77115
|
+
applyFillFromProductOption as cU,
|
|
77116
|
+
MATERIAL_CONTAINER_ID as cV,
|
|
77117
|
+
F$c as cW,
|
|
77118
|
+
PRODUCT_QUICK_SEARCH_FIELDS as cX,
|
|
77119
|
+
PRODUCT_QUICK_SEARCH_EXP as cY,
|
|
77120
|
+
isProductManuallyEditable$1 as cZ,
|
|
77121
|
+
applyFillFromMaterialNoOption as c_,
|
|
77122
|
+
jsonSchemaUtils as ca,
|
|
77123
|
+
judgeUnique as cb,
|
|
77124
|
+
migrateDiagonalDirectionToVertex as cc,
|
|
77125
|
+
requestMedProCheckDsData as cd,
|
|
77126
|
+
requestNonMedProCheckDsData as ce,
|
|
77127
|
+
stockCheck as cf,
|
|
77128
|
+
useOnlineFormActionButton as cg,
|
|
77129
|
+
getFieldPlaceholder as ch,
|
|
77130
|
+
FRONT_ROW_KEY as ci,
|
|
77131
|
+
resetTableRowIdentity as cj,
|
|
77132
|
+
q as ck,
|
|
77133
|
+
QUICK_FILL_ALLOWED_FIELDS as cl,
|
|
77134
|
+
groupFixedTableRows as cm,
|
|
77135
|
+
processQuickFillRows as cn,
|
|
77136
|
+
getIsGroupEmpty as co,
|
|
77137
|
+
getAugmentedNamespace as cp,
|
|
77138
|
+
CardControlEnum as cq,
|
|
77139
|
+
EntityModelTypeEnum as cr,
|
|
77140
|
+
RecordNoGenerateEnum as cs,
|
|
77141
|
+
TagTypeEnum as ct,
|
|
77142
|
+
F$6 as cu,
|
|
77143
|
+
SCAN_ROW_CONTENT_FIELDS as cv,
|
|
77144
|
+
F$3 as cw,
|
|
77145
|
+
F$7 as cx,
|
|
77146
|
+
runRowHandler as cy,
|
|
77147
|
+
F$a as cz,
|
|
77709
77148
|
getBusinessProfileByRefModelType as d,
|
|
77710
|
-
|
|
77711
|
-
|
|
77712
|
-
|
|
77713
|
-
|
|
77714
|
-
|
|
77715
|
-
|
|
77716
|
-
|
|
77717
|
-
|
|
77718
|
-
|
|
77719
|
-
|
|
77720
|
-
|
|
77721
|
-
|
|
77722
|
-
|
|
77723
|
-
|
|
77724
|
-
|
|
77725
|
-
|
|
77726
|
-
|
|
77727
|
-
|
|
77728
|
-
|
|
77729
|
-
|
|
77730
|
-
|
|
77731
|
-
|
|
77732
|
-
|
|
77733
|
-
|
|
77734
|
-
|
|
77735
|
-
|
|
77736
|
-
|
|
77737
|
-
|
|
77738
|
-
|
|
77739
|
-
|
|
77740
|
-
|
|
77741
|
-
|
|
77742
|
-
|
|
77743
|
-
|
|
77744
|
-
|
|
77745
|
-
|
|
77746
|
-
|
|
77747
|
-
|
|
77748
|
-
|
|
77749
|
-
|
|
77750
|
-
|
|
77751
|
-
|
|
77752
|
-
|
|
77753
|
-
|
|
77754
|
-
|
|
77755
|
-
|
|
77756
|
-
|
|
77757
|
-
|
|
77758
|
-
|
|
77759
|
-
|
|
77760
|
-
|
|
77761
|
-
|
|
77762
|
-
|
|
77763
|
-
|
|
77764
|
-
|
|
77765
|
-
|
|
77766
|
-
|
|
77767
|
-
|
|
77768
|
-
|
|
77769
|
-
|
|
77770
|
-
|
|
77771
|
-
|
|
77772
|
-
|
|
77149
|
+
isObject as d$,
|
|
77150
|
+
F$b as d0,
|
|
77151
|
+
FILL_FROM_INVENTORY_OPTION$4 as d1,
|
|
77152
|
+
registerInstance as d2,
|
|
77153
|
+
createEvent as d3,
|
|
77154
|
+
getColumnByProp as d4,
|
|
77155
|
+
timeout as d5,
|
|
77156
|
+
getVisibleSourceItem as d6,
|
|
77157
|
+
getColumns as d7,
|
|
77158
|
+
rowTypes as d8,
|
|
77159
|
+
GroupingRowPlugin as d9,
|
|
77160
|
+
setSourceByVirtualIndex as dA,
|
|
77161
|
+
SelectionStore as dB,
|
|
77162
|
+
cropCellToMax as dC,
|
|
77163
|
+
nextCell as dD,
|
|
77164
|
+
isRowType as dE,
|
|
77165
|
+
ViewportStore as dF,
|
|
77166
|
+
AndOrButton as dG,
|
|
77167
|
+
ReorderButton as dH,
|
|
77168
|
+
TrashButton as dI,
|
|
77169
|
+
isFilterBtn as dJ,
|
|
77170
|
+
ColumnService as dK,
|
|
77171
|
+
MOBILE_CLASS as dL,
|
|
77172
|
+
SELECTION_BORDER_CLASS as dM,
|
|
77173
|
+
getCellData as dN,
|
|
77174
|
+
getCellEditor as dO,
|
|
77175
|
+
getRange as dP,
|
|
77176
|
+
isRangeSingleCell as dQ,
|
|
77177
|
+
codesLetter as dR,
|
|
77178
|
+
calculateRowHeaderSize as dS,
|
|
77179
|
+
ROW_HEADER_TYPE as dT,
|
|
77180
|
+
getScrollbarSize as dU,
|
|
77181
|
+
FOCUS_CLASS as dV,
|
|
77182
|
+
CELL_HANDLER_CLASS as dW,
|
|
77183
|
+
TMP_SELECTION_BG_CLASS as dX,
|
|
77184
|
+
getItemByPosition as dY,
|
|
77185
|
+
EDIT_INPUT_WR as dZ,
|
|
77186
|
+
keyValues as d_,
|
|
77187
|
+
StretchColumn as da,
|
|
77188
|
+
isStretchPlugin as db,
|
|
77189
|
+
AutoSizeColumnPlugin as dc,
|
|
77190
|
+
FilterPlugin as dd,
|
|
77191
|
+
ExportFilePlugin as de,
|
|
77192
|
+
SortingPlugin as df,
|
|
77193
|
+
ColumnMovePlugin as dg,
|
|
77194
|
+
ThemeService as dh,
|
|
77195
|
+
h as di,
|
|
77196
|
+
Host as dj,
|
|
77197
|
+
getElement as dk,
|
|
77198
|
+
BasePlugin as dl,
|
|
77199
|
+
reduce as dm,
|
|
77200
|
+
columnTypes as dn,
|
|
77201
|
+
debounce$1 as dp,
|
|
77202
|
+
RESIZE_INTERVAL as dq,
|
|
77203
|
+
DimensionStore as dr,
|
|
77204
|
+
gatherTrimmedItems as ds,
|
|
77205
|
+
getColumnSizes as dt,
|
|
77206
|
+
getItemByIndex as du,
|
|
77207
|
+
DataStore as dv,
|
|
77208
|
+
getSourceItem as dw,
|
|
77209
|
+
getSourceItemVirtualIndexByProp as dx,
|
|
77210
|
+
getColumnType as dy,
|
|
77211
|
+
setSourceByPhysicalIndex as dz,
|
|
77773
77212
|
expandAutofillTemplates as e,
|
|
77774
|
-
|
|
77775
|
-
|
|
77776
|
-
|
|
77777
|
-
|
|
77778
|
-
|
|
77779
|
-
|
|
77780
|
-
|
|
77781
|
-
|
|
77782
|
-
|
|
77783
|
-
|
|
77784
|
-
|
|
77785
|
-
|
|
77786
|
-
|
|
77787
|
-
|
|
77788
|
-
|
|
77789
|
-
|
|
77790
|
-
|
|
77791
|
-
|
|
77792
|
-
|
|
77793
|
-
|
|
77794
|
-
|
|
77795
|
-
|
|
77796
|
-
|
|
77797
|
-
|
|
77798
|
-
|
|
77799
|
-
|
|
77800
|
-
keyValues as eh,
|
|
77801
|
-
isObject as ei,
|
|
77802
|
-
DRAGG_TEXT as ej,
|
|
77803
|
-
PSEUDO_GROUP_ITEM as ek,
|
|
77804
|
-
GROUP_EXPANDED as el,
|
|
77805
|
-
GROUP_DEPTH as em,
|
|
77806
|
-
GROUP_EXPAND_BTN as en,
|
|
77807
|
-
DATA_ROW as eo,
|
|
77808
|
-
isGroupingColumn as ep,
|
|
77809
|
-
GROUP_COLUMN_PROP as eq,
|
|
77810
|
-
getCellRaw as er,
|
|
77811
|
-
DATA_COL as es,
|
|
77812
|
-
CELL_CLASS as et,
|
|
77813
|
-
Build as eu,
|
|
77814
|
-
isRowDragService as ev,
|
|
77815
|
-
DRAG_ICON_CLASS as ew,
|
|
77816
|
-
DRAGGABLE_CLASS as ex,
|
|
77817
|
-
getCellDataParsed as ey,
|
|
77818
|
-
GROUP_EXPAND_EVENT as ez,
|
|
77213
|
+
DRAGG_TEXT as e0,
|
|
77214
|
+
PSEUDO_GROUP_ITEM as e1,
|
|
77215
|
+
GROUP_EXPANDED as e2,
|
|
77216
|
+
GROUP_DEPTH as e3,
|
|
77217
|
+
GROUP_EXPAND_BTN as e4,
|
|
77218
|
+
DATA_ROW as e5,
|
|
77219
|
+
isGroupingColumn as e6,
|
|
77220
|
+
GROUP_COLUMN_PROP as e7,
|
|
77221
|
+
getCellRaw as e8,
|
|
77222
|
+
DATA_COL as e9,
|
|
77223
|
+
CELL_CLASS as ea,
|
|
77224
|
+
Build as eb,
|
|
77225
|
+
isRowDragService as ec,
|
|
77226
|
+
DRAG_ICON_CLASS as ed,
|
|
77227
|
+
DRAGGABLE_CLASS as ee,
|
|
77228
|
+
getCellDataParsed as ef,
|
|
77229
|
+
GROUP_EXPAND_EVENT as eg,
|
|
77230
|
+
isGrouping as eh,
|
|
77231
|
+
HEADER_ROW_CLASS as ei,
|
|
77232
|
+
HEADER_ACTUAL_ROW_CLASS as ej,
|
|
77233
|
+
ROW_FOCUSED_CLASS as ek,
|
|
77234
|
+
HEADER_SORTABLE_CLASS as el,
|
|
77235
|
+
MIN_COL_SIZE as em,
|
|
77236
|
+
FilterButton as en,
|
|
77237
|
+
HeaderCellRenderer as eo,
|
|
77238
|
+
HEADER_CLASS as ep,
|
|
77819
77239
|
SubTableType as f,
|
|
77820
77240
|
getAllDataProfiles as g,
|
|
77821
77241
|
getAllBusinessRefModelTypes as h,
|