@gct-paas/excel 0.1.40-beta.11 → 0.1.40-beta.13
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-gj20uBnJ.js → BaseComponent-BNYlBwRp.js} +2 -2
- package/dist/{VueVideoPlayer-BeylL5J6.js → VueVideoPlayer-CA8iKJQb.js} +2 -2
- package/dist/{align-editor-r0dHXFka.js → align-editor-BLoPPjyE.js} +1 -1
- package/dist/{barcode-design-CYvf_EAE.js → barcode-design-Dqvxi5NV.js} +2 -2
- package/dist/base/index.es.js +189 -177
- package/dist/{diagonal-design-oDhnFV7y.js → diagonal-design-DG-Dx4ts.js} +2 -2
- package/dist/{dynamic-table-action-DQwZUD0_.js → dynamic-table-action-Bank1QhA.js} +713 -133
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-8yB6zly8.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CMUJIaqF.js} +507 -1096
- package/dist/{edit.utils-CXmmCnxE-Cu6obgSA.js → edit.utils-CXmmCnxE-CjdKEddt.js} +1 -1
- package/dist/excel.css +127 -84
- package/dist/{exceljs.min-Cw2hDE6L.js → exceljs.min-UvFp3sV4.js} +2 -2
- package/dist/{font-editor-B_0EZdyd.js → font-editor-DnMEr3MH.js} +3 -3
- package/dist/{image-design-FDLY6DFg.js → image-design-CwtJAv3F.js} +2 -2
- package/dist/{index-C4ZaFHIk.js → index-3MWFMn8S.js} +3 -3
- package/dist/{index-D1QJAMGR.js → index-Aza4NNmK.js} +2 -2
- package/dist/{index-DEHsGK91.js → index-B5OUUXeo.js} +1 -1
- package/dist/{index-BdFPuj12.js → index-B9lsZxiJ.js} +1 -1
- package/dist/{index-BuAaPDLl.js → index-BBn6MJSx.js} +2 -2
- package/dist/{index-CRIhEnfm.js → index-BKQuT0fA.js} +1 -1
- package/dist/{index-CQTRWLPa.js → index-BPY-u_dg.js} +3 -2
- package/dist/{index-Go0PUrqy.js → index-BQYnbcBb.js} +1 -1
- package/dist/{index-CFVecFFb.js → index-BVs40sek.js} +2 -2
- package/dist/{index-DcjvPNF5.js → index-B_XnofhV.js} +2 -2
- package/dist/{index-BCsDTwbK.js → index-BeVxjuh9.js} +1 -1
- package/dist/{index-Z9jq6KeM.js → index-BggSZyva.js} +2 -2
- package/dist/{index-KxrgWfEL.js → index-BqKnOPo_.js} +1 -1
- package/dist/{index-B2bvlNJo.js → index-BtRVxr4g.js} +2 -2
- package/dist/{index-BZd3wYPr.js → index-C5Ldbkko.js} +2 -2
- package/dist/{index-D3xW5qOp.js → index-CGZ_QXnT.js} +2 -2
- package/dist/{index-73QPpTaL.js → index-CHKEoI0-.js} +3 -3
- package/dist/{index-C0TsnxJJ.js → index-CJiS8qwY.js} +2 -2
- package/dist/{index-Dyfxs8FQ.js → index-CKRFb60x.js} +2 -2
- package/dist/{index-CxcaWxbW.js → index-C_Yhjehy.js} +2 -2
- package/dist/{index-7u6Pmaax.js → index-CaT3CiHe.js} +1 -1
- package/dist/{index-CdKmjzHb.js → index-Cd_mJxU6.js} +3 -3
- package/dist/{index-DOmpZ2Vn.js → index-Cq-XyRHo.js} +2 -2
- package/dist/{index-DGODLCja.js → index-CszU9umD.js} +1 -1
- package/dist/{index-DgLLlaiF.js → index-CwADS2FU.js} +1 -1
- package/dist/{index-CiCgngBb.js → index-D29NlAJu.js} +2 -2
- package/dist/{index-BtTM4eCk.js → index-D5aotGHm.js} +2 -2
- package/dist/{index-ZJQMS_Ik.js → index-DFSzmsEj.js} +2 -2
- package/dist/{index-xJJRBQFw.js → index-DLjQtnue.js} +1745 -1644
- package/dist/{index-C1EtpaAY.js → index-D_SKDlr_.js} +2 -2
- package/dist/{index-4cLi3g2p.js → index-DyW4nBh7.js} +2 -2
- package/dist/{index-xeRTb7EG.js → index-VbBHe0-r.js} +3 -3
- package/dist/{index-Bh8Vsmje.js → index-XT4AMdYd.js} +4 -4
- package/dist/{index-Cg1LuaLW.js → index-bu7pivuw.js} +2 -2
- package/dist/{index-DJiuJgNx.js → index-d8vCiBu7.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/{mb-render-_IUbyYCY.js → mb-render-CAIFQRQe.js} +1 -1
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CnQiVFDN.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-Mtk2wCxy.js} +1 -1
- package/dist/{pagination-design-BpXq_uV5.js → pagination-design-BEykgAvG.js} +2 -2
- package/dist/paper-widget-design-ooxHgZry.js +4 -0
- package/dist/{print-runtime-instance-MOb76qZn.js → print-runtime-instance-4ZDfLM5V.js} +1 -1
- package/dist/{print-snapshot-renderer-oKcwQUgc.js → print-snapshot-renderer-zOa_XHc0.js} +3 -3
- package/dist/{qrcode-design-CkkXDXcD.js → qrcode-design-CvYHvmMW.js} +1 -1
- package/dist/{revo-grid.entry-BZADj2ve.js → revo-grid.entry-CAz8pEMB.js} +1 -1
- package/dist/{revogr-attribution_7.entry-DbQASE7d.js → revogr-attribution_7.entry-RBj_kk6o.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-BUDhUelS.js → revogr-clipboard_3.entry-B_WeVhDK.js} +2 -2
- package/dist/{revogr-data_4.entry-0V57Lz9p.js → revogr-data_4.entry-VaYdG5rT.js} +2 -2
- package/dist/{revogr-filter-panel.entry-BJEYteeW.js → revogr-filter-panel.entry-BCwmMUrv.js} +1 -1
- package/dist/seal-design-CG41_ii2.js +4 -0
- package/dist/{serialnumber-design-BbjW4gnZ.js → serialnumber-design-DHQVyTpR.js} +1 -1
- package/dist/shared/index.es.js +22 -22
- package/dist/{single-field-drop-DBjHYyMO.js → single-field-drop-D9h6cfEW.js} +2 -2
- package/dist/{size-editor-CcYZKUn5.js → size-editor-CYH_vGEJ.js} +1 -1
- package/dist/src/nocode-base/src/hooks/material-consume-object/initialize-autofill.d.ts +3 -1
- package/dist/src/nocode-base/src/runtime/multi-sheet-runtime.d.ts +3 -1
- package/dist/src/nocode-base/src/runtime/runtime-context.d.ts +4 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search.util.d.ts +8 -0
- 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-CUn9Ys8U.js → sub-table-factory-B0zWW-QG.js} +2 -2
- package/dist/{text-design-CJ-LzwEP.js → text-design-DOQAiCNS.js} +2 -2
- package/dist/{throttle-Cpk1LoGk-BVommE6v.js → throttle-Cpk1LoGk-CMJVKhfH.js} +1 -1
- package/dist/{timediff-design-DLlIUaqv.js → timediff-design-BpVtGq2d.js} +1 -1
- package/dist/{trace-like-wrapper-3MK6tjpN.js → trace-like-wrapper-CfQ-z7OG.js} +2 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-CmqBS9Ol.js → value-editor.vue_vue_type_style_index_0_lang-dI4Svbwa.js} +2 -2
- package/dist/web-render/index.es.js +3 -3
- package/dist/{widget-barcode-BzrOK6u9.js → widget-barcode-Q35uB5iK.js} +4 -4
- package/dist/{widget-diagonal-DXnNY3TR.js → widget-diagonal-DqhdnkvW.js} +3 -3
- package/dist/{widget-image-qlZU5zfL.js → widget-image-BXD0sEE3.js} +5 -5
- package/dist/{widget-line-BkFVTPZE.js → widget-line-DH-692Ln.js} +2 -2
- package/dist/{widget-pagination-BI7Vtnio.js → widget-pagination-fIAO2QPA.js} +5 -5
- package/dist/{widget-power-CQaD6Z_a.js → widget-power-DWVhbXTd.js} +3 -3
- package/dist/{widget-qrcode-DNpnyMCx.js → widget-qrcode-Bo1KSkKG.js} +3 -3
- package/dist/{widget-rangelimit-DE7-MYZD.js → widget-rangelimit-BFKtZq_w.js} +3 -3
- package/dist/{widget-serialnumber-CyMnA-nP.js → widget-serialnumber-DZqKmj9h.js} +1 -1
- package/dist/{widget-text-BpZ7YJtP.js → widget-text-CY_4aox8.js} +5 -5
- package/dist/{widget-timediff-DSEwFrr9.js → widget-timediff-CPMbymXT.js} +2 -2
- package/package.json +2 -2
- package/dist/paper-widget-design-CSOyFSja.js +0 -4
- package/dist/seal-design-BMrCPheX.js +0 -4
|
@@ -64959,140 +64959,238 @@ function resolveFieldRenderComponent(props) {
|
|
|
64959
64959
|
}
|
|
64960
64960
|
return resolveRenderComponent(props.bizType, props.fieldType);
|
|
64961
64961
|
}
|
|
64962
|
-
|
|
64963
|
-
|
|
64964
|
-
|
|
64965
|
-
|
|
64966
|
-
|
|
64967
|
-
|
|
64968
|
-
|
|
64969
|
-
|
|
64970
|
-
|
|
64971
|
-
|
|
64972
|
-
|
|
64973
|
-
|
|
64974
|
-
|
|
64975
|
-
function isAttachFieldActive(attach, formData) {
|
|
64976
|
-
if (attach?.parent && !isAttachFieldActive(attach.parent, formData)) return false;
|
|
64977
|
-
if (!attach?.belongFieldId || isNil(attach.optionValue)) {
|
|
64978
|
-
return true;
|
|
64979
|
-
}
|
|
64980
|
-
const row = attach.subtableFieldId ? findRuntimeTableRow(formData?.[attach.subtableFieldId], attach.rowKey) : formData;
|
|
64981
|
-
if (attach.subtableFieldId && (!attach.rowKey || !row || row === formData)) {
|
|
64982
|
-
return false;
|
|
64983
|
-
}
|
|
64984
|
-
const raw = row?.[attach.belongFieldId];
|
|
64985
|
-
if (attach.multiple) {
|
|
64986
|
-
const current = renderUtils.getValue(raw, true);
|
|
64987
|
-
if (!Array.isArray(current)) return false;
|
|
64988
|
-
return current.some((v) => isSameOptionValue(v, attach.optionValue));
|
|
64989
|
-
}
|
|
64990
|
-
return isSameOptionValue(raw, attach.optionValue);
|
|
64962
|
+
const getApi$1 = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
|
|
64963
|
+
const postApi = api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey;
|
|
64964
|
+
async function materialCheck(params) {
|
|
64965
|
+
const res = await postApi(
|
|
64966
|
+
{
|
|
64967
|
+
bsKey: "biz_single_material_check",
|
|
64968
|
+
modelKey: "em_material_loading",
|
|
64969
|
+
modelCategory: "entity"
|
|
64970
|
+
},
|
|
64971
|
+
{},
|
|
64972
|
+
params
|
|
64973
|
+
);
|
|
64974
|
+
return res;
|
|
64991
64975
|
}
|
|
64992
|
-
function
|
|
64993
|
-
|
|
64994
|
-
return true;
|
|
64995
|
-
}
|
|
64996
|
-
return isAttachFieldActive(
|
|
64976
|
+
async function stockCheck(params) {
|
|
64977
|
+
await postApi(
|
|
64997
64978
|
{
|
|
64998
|
-
|
|
64999
|
-
|
|
65000
|
-
|
|
64979
|
+
bsKey: "biz_form_single_confirm",
|
|
64980
|
+
modelKey: "em_material_loading",
|
|
64981
|
+
modelCategory: "entity"
|
|
65001
64982
|
},
|
|
65002
|
-
|
|
64983
|
+
{},
|
|
64984
|
+
{
|
|
64985
|
+
entry: params.entry,
|
|
64986
|
+
material_id_: params.row.product_id_,
|
|
64987
|
+
production_identification_name_: params.row.material_no_,
|
|
64988
|
+
qty_: params.row.qty_,
|
|
64989
|
+
operation_id_: params.row.routing_operation_id_,
|
|
64990
|
+
main_material_no_: params.mainMaterialNo
|
|
64991
|
+
}
|
|
65003
64992
|
);
|
|
65004
64993
|
}
|
|
65005
|
-
|
|
65006
|
-
|
|
65007
|
-
|
|
65008
|
-
|
|
65009
|
-
|
|
65010
|
-
|
|
65011
|
-
|
|
65012
|
-
|
|
65013
|
-
|
|
65014
|
-
|
|
65015
|
-
|
|
65016
|
-
|
|
65017
|
-
|
|
64994
|
+
async function fetchHistoryConsume(params) {
|
|
64995
|
+
const res = await postApi(
|
|
64996
|
+
{
|
|
64997
|
+
bsKey: "listAll",
|
|
64998
|
+
modelKey: "em_material_consume",
|
|
64999
|
+
modelCategory: "entity"
|
|
65000
|
+
},
|
|
65001
|
+
{},
|
|
65002
|
+
{
|
|
65003
|
+
query: params
|
|
65004
|
+
}
|
|
65005
|
+
);
|
|
65006
|
+
console.log("查询历史消耗数据", res);
|
|
65007
|
+
const arr = res.data ?? [];
|
|
65008
|
+
arr.map((i2) => {
|
|
65009
|
+
i2.qty_ = i2.qty_consumed_;
|
|
65010
|
+
});
|
|
65011
|
+
return arr;
|
|
65018
65012
|
}
|
|
65019
|
-
function
|
|
65020
|
-
|
|
65021
|
-
|
|
65022
|
-
|
|
65023
|
-
|
|
65024
|
-
|
|
65025
|
-
|
|
65026
|
-
|
|
65027
|
-
|
|
65013
|
+
async function judgeUnique(opts) {
|
|
65014
|
+
const res = await postApi(
|
|
65015
|
+
{
|
|
65016
|
+
bsKey: "biz_form_unique",
|
|
65017
|
+
modelKey: "em_material_loading",
|
|
65018
|
+
modelCategory: "entity"
|
|
65019
|
+
},
|
|
65020
|
+
{},
|
|
65021
|
+
{
|
|
65022
|
+
model_key_: opts.modelKey,
|
|
65023
|
+
datas_: opts.data
|
|
65024
|
+
}
|
|
65028
65025
|
);
|
|
65029
|
-
return
|
|
65030
|
-
...stamp,
|
|
65031
|
-
sealPosition: { ...isSealPosition(parsed.sealPosition) ? parsed.sealPosition : fallback }
|
|
65032
|
-
};
|
|
65026
|
+
return res;
|
|
65033
65027
|
}
|
|
65034
|
-
function
|
|
65028
|
+
async function isBomGranted() {
|
|
65035
65029
|
try {
|
|
65036
|
-
const
|
|
65037
|
-
|
|
65038
|
-
|
|
65030
|
+
const res = await getApi$1(
|
|
65031
|
+
{
|
|
65032
|
+
modelKey: "em_product_bom",
|
|
65033
|
+
bsKey: "biz_bom_granted",
|
|
65034
|
+
modelCategory: "entity"
|
|
65035
|
+
},
|
|
65036
|
+
{},
|
|
65037
|
+
{}
|
|
65038
|
+
);
|
|
65039
|
+
return res ?? false;
|
|
65040
|
+
} catch (error) {
|
|
65041
|
+
console.log("");
|
|
65039
65042
|
return false;
|
|
65040
65043
|
}
|
|
65041
65044
|
}
|
|
65042
|
-
function
|
|
65043
|
-
|
|
65044
|
-
|
|
65045
|
-
|
|
65046
|
-
}
|
|
65047
|
-
|
|
65045
|
+
async function getReinspectionDate(params) {
|
|
65046
|
+
if (!params.material_no_id_ && !params.material_no_) return;
|
|
65047
|
+
({
|
|
65048
|
+
"product_id_.versionIn": [params.product_id_.split(":").pop()]
|
|
65049
|
+
});
|
|
65050
|
+
if (params.material_no_id_) {
|
|
65051
|
+
params.material_no_id_;
|
|
65052
|
+
} else {
|
|
65053
|
+
params.material_no_;
|
|
65048
65054
|
}
|
|
65055
|
+
const res = await postApi(
|
|
65056
|
+
{
|
|
65057
|
+
modelCategory: "entity",
|
|
65058
|
+
modelKey: "em_production_identification",
|
|
65059
|
+
bsKey: "getOne"
|
|
65060
|
+
},
|
|
65061
|
+
{},
|
|
65062
|
+
{
|
|
65063
|
+
query: {
|
|
65064
|
+
name_: params.material_no_,
|
|
65065
|
+
id_: params.material_no_id_,
|
|
65066
|
+
"product_id_.versionEq": params.product_id_
|
|
65067
|
+
}
|
|
65068
|
+
}
|
|
65069
|
+
);
|
|
65070
|
+
const record = res?.data?.[0] ?? res?.data;
|
|
65071
|
+
const raw = record?.re_inspection_date_ ?? record?.retest_date_;
|
|
65072
|
+
if (raw == null || raw === "") return;
|
|
65073
|
+
const parsed = dayjs(raw);
|
|
65074
|
+
if (!parsed.isValid()) return;
|
|
65075
|
+
return parsed.format("YYYY-MM-DD");
|
|
65049
65076
|
}
|
|
65050
|
-
function
|
|
65051
|
-
|
|
65052
|
-
|
|
65053
|
-
|
|
65054
|
-
|
|
65055
|
-
|
|
65056
|
-
|
|
65077
|
+
async function validateReinspectionDate(opts) {
|
|
65078
|
+
if (!opts.product_id_ || !opts.material_no_ && !opts.material_no_id_) return;
|
|
65079
|
+
const date = await getReinspectionDate({
|
|
65080
|
+
product_id_: opts.product_id_,
|
|
65081
|
+
material_no_: opts.material_no_,
|
|
65082
|
+
material_no_id_: opts.material_no_id_
|
|
65083
|
+
});
|
|
65084
|
+
if (!date) return;
|
|
65085
|
+
if (dayjs(date).isBefore(dayjs(), "day")) {
|
|
65086
|
+
throw new Error($t("sys.retestDateErrorTip"));
|
|
65087
|
+
}
|
|
65057
65088
|
}
|
|
65058
|
-
function
|
|
65059
|
-
|
|
65060
|
-
|
|
65089
|
+
async function getLotLockedReason(production_identification_id_) {
|
|
65090
|
+
const { data = {}, dict = {} } = await postApi(
|
|
65091
|
+
{
|
|
65092
|
+
modelCategory: "entity",
|
|
65093
|
+
modelKey: "em_production_identification_lock_record",
|
|
65094
|
+
bsKey: "biz_get_one_lock_record"
|
|
65095
|
+
},
|
|
65096
|
+
{},
|
|
65097
|
+
{
|
|
65098
|
+
production_identification_id_
|
|
65099
|
+
}
|
|
65061
65100
|
);
|
|
65101
|
+
return $t("sys.lotLockedReason", {
|
|
65102
|
+
name: dict.lock_user_id_[data.lock_user_id_],
|
|
65103
|
+
reason: data.lock_reason_
|
|
65104
|
+
});
|
|
65062
65105
|
}
|
|
65063
|
-
|
|
65064
|
-
|
|
65065
|
-
|
|
65106
|
+
var Config_Fields = /* @__PURE__ */ ((Config_Fields2) => {
|
|
65107
|
+
Config_Fields2["materialCode"] = "materialCode";
|
|
65108
|
+
Config_Fields2["lot"] = "lot";
|
|
65109
|
+
Config_Fields2["qty"] = "qty";
|
|
65110
|
+
Config_Fields2["expiration"] = "expiration";
|
|
65111
|
+
Config_Fields2["deviceCode"] = "deviceCode";
|
|
65112
|
+
Config_Fields2["other"] = "other";
|
|
65113
|
+
return Config_Fields2;
|
|
65114
|
+
})(Config_Fields || {});
|
|
65115
|
+
const getApi = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
|
|
65116
|
+
async function getParseRuleInfo(params) {
|
|
65117
|
+
const res = await getApi(
|
|
65118
|
+
{
|
|
65119
|
+
bsKey: "rdoGetVersionById",
|
|
65120
|
+
modelKey: "em_barcode_parsing_rules",
|
|
65121
|
+
modelCategory: "entity"
|
|
65122
|
+
},
|
|
65123
|
+
params
|
|
65124
|
+
);
|
|
65125
|
+
return res.data;
|
|
65066
65126
|
}
|
|
65067
|
-
function
|
|
65068
|
-
|
|
65069
|
-
|
|
65070
|
-
|
|
65071
|
-
|
|
65072
|
-
|
|
65127
|
+
function handleOldConfig(config) {
|
|
65128
|
+
if (config.list && !config.fieldList) {
|
|
65129
|
+
config.fieldList = config.list.map((type) => {
|
|
65130
|
+
return {
|
|
65131
|
+
type,
|
|
65132
|
+
key: type === Config_Fields.other ? uuid2(32) : type
|
|
65133
|
+
};
|
|
65134
|
+
});
|
|
65135
|
+
delete config.list;
|
|
65136
|
+
}
|
|
65137
|
+
config.fieldList.forEach((item) => {
|
|
65138
|
+
if (!item.key) {
|
|
65139
|
+
item.key = item.type === Config_Fields.other ? uuid2(32) : item.type;
|
|
65140
|
+
}
|
|
65141
|
+
});
|
|
65142
|
+
return config;
|
|
65073
65143
|
}
|
|
65074
|
-
function
|
|
65075
|
-
|
|
65076
|
-
|
|
65077
|
-
|
|
65078
|
-
|
|
65079
|
-
|
|
65080
|
-
|
|
65144
|
+
function getParseRuleValue(labelStr, labelRule) {
|
|
65145
|
+
if (!labelRule) {
|
|
65146
|
+
throw new Error("请传入解析规则");
|
|
65147
|
+
}
|
|
65148
|
+
const ruleObj = JSON.parse(labelRule);
|
|
65149
|
+
const ruleConfig = handleOldConfig(ruleObj);
|
|
65150
|
+
const { separator, nullSymbol, fieldList } = ruleConfig;
|
|
65151
|
+
const labelArr = labelStr.split(separator);
|
|
65152
|
+
return labelArr.reduce((obj, e, idx) => {
|
|
65153
|
+
const field = fieldList[idx];
|
|
65154
|
+
if (field) {
|
|
65155
|
+
let val = nullSymbol && e === nullSymbol ? null : e;
|
|
65156
|
+
if (val !== null) {
|
|
65157
|
+
switch (field.type) {
|
|
65158
|
+
case Config_Fields.qty:
|
|
65159
|
+
val = Number(val);
|
|
65160
|
+
break;
|
|
65161
|
+
case Config_Fields.expiration:
|
|
65162
|
+
val = dayjs(val, field.format).format("YYYY-MM-DD HH:mm:ss");
|
|
65163
|
+
break;
|
|
65164
|
+
}
|
|
65165
|
+
}
|
|
65166
|
+
obj[field.key] = val;
|
|
65081
65167
|
}
|
|
65082
|
-
|
|
65083
|
-
|
|
65084
|
-
|
|
65085
|
-
|
|
65086
|
-
|
|
65087
|
-
|
|
65088
|
-
|
|
65168
|
+
return obj;
|
|
65169
|
+
}, {});
|
|
65170
|
+
}
|
|
65171
|
+
async function getParseRuleConfig(id) {
|
|
65172
|
+
const res = await getParseRuleInfo({ id });
|
|
65173
|
+
if (res?.rules_) {
|
|
65174
|
+
const ruleObj = JSON.parse(res.rules_);
|
|
65175
|
+
const ruleConfig = handleOldConfig(ruleObj);
|
|
65176
|
+
return ruleConfig;
|
|
65177
|
+
}
|
|
65178
|
+
}
|
|
65179
|
+
function calcFillData(data, fillMapArr) {
|
|
65180
|
+
const obj = {};
|
|
65181
|
+
if (fillMapArr?.length) {
|
|
65182
|
+
fillMapArr.forEach((i2) => {
|
|
65183
|
+
const fromKey = i2.barcodeField;
|
|
65184
|
+
if (fromKey && fromKey in data) {
|
|
65185
|
+
const val = data[fromKey];
|
|
65186
|
+
i2.formFields?.forEach((key) => {
|
|
65187
|
+
const toKey2 = key.split(".")[1];
|
|
65188
|
+
obj[toKey2] = val;
|
|
65089
65189
|
});
|
|
65090
|
-
} else if (typeof raw !== "string") {
|
|
65091
|
-
formData[props.field] = JSON.stringify(parsed);
|
|
65092
65190
|
}
|
|
65093
|
-
}
|
|
65094
|
-
}
|
|
65191
|
+
});
|
|
65095
65192
|
}
|
|
65193
|
+
return obj;
|
|
65096
65194
|
}
|
|
65097
65195
|
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;
|
|
65098
65196
|
function clone(configObject) {
|
|
@@ -66425,674 +66523,6 @@ function toFixedPoint(str, e, z) {
|
|
|
66425
66523
|
return str;
|
|
66426
66524
|
}
|
|
66427
66525
|
var BigNumber = clone();
|
|
66428
|
-
const { identify, calculate } = {
|
|
66429
|
-
identify: (expression) => window.NocodeAdapter.utils?.formulaIdentify?.(expression) ?? [],
|
|
66430
|
-
calculate: (expression, data) => window.NocodeAdapter.utils?.formulaCalculate?.(expression, data)
|
|
66431
|
-
};
|
|
66432
|
-
const getFieldDataValue = (parseInfo, formData) => {
|
|
66433
|
-
const getTextValue = (processedKey, value) => {
|
|
66434
|
-
const textValue = value ?? formData?.[processedKey] ?? "";
|
|
66435
|
-
return Array.isArray(textValue) ? textValue.join() : textValue;
|
|
66436
|
-
};
|
|
66437
|
-
const { type, processed, hashValue } = parseInfo;
|
|
66438
|
-
if (type === "hash") {
|
|
66439
|
-
const tableData = toRaw(formData?.[hashValue] || []);
|
|
66440
|
-
return tableData.filter((d) => !d.deleted_).map((row) => getTextValue(processed, row?.[processed])).filter((i2) => !isNil(i2));
|
|
66441
|
-
}
|
|
66442
|
-
return getTextValue(processed, formData?.[processed]);
|
|
66443
|
-
};
|
|
66444
|
-
const parseFormulaVar = (formulaVar) => {
|
|
66445
|
-
const result = {
|
|
66446
|
-
original: formulaVar,
|
|
66447
|
-
type: "",
|
|
66448
|
-
processed: "",
|
|
66449
|
-
hashValue: "",
|
|
66450
|
-
dataType: ""
|
|
66451
|
-
};
|
|
66452
|
-
if (/^\$([^$]+)\$\.(.+)$/.test(formulaVar)) {
|
|
66453
|
-
const match = formulaVar.match(/^\$([^$]+)\$\.(.+)$/);
|
|
66454
|
-
result.type = "hash";
|
|
66455
|
-
result.processed = match[2];
|
|
66456
|
-
result.hashValue = match[1];
|
|
66457
|
-
result.dataType = "globType";
|
|
66458
|
-
} else if (/^_\.(.+)$/.test(formulaVar)) {
|
|
66459
|
-
const match = formulaVar.match(/^_\.(.+)$/);
|
|
66460
|
-
result.type = "underscore";
|
|
66461
|
-
result.processed = match[1];
|
|
66462
|
-
result.dataType = "currentRowType";
|
|
66463
|
-
} else {
|
|
66464
|
-
result.type = "plain";
|
|
66465
|
-
result.processed = formulaVar;
|
|
66466
|
-
result.dataType = "globType";
|
|
66467
|
-
}
|
|
66468
|
-
return result;
|
|
66469
|
-
};
|
|
66470
|
-
const getParseFormulaVarInfos = (expr) => {
|
|
66471
|
-
const rowArgs = expr ? identify(expr) : [];
|
|
66472
|
-
return {
|
|
66473
|
-
rowArgs,
|
|
66474
|
-
parseInfos: rowArgs.map((curr) => parseFormulaVar(curr))
|
|
66475
|
-
};
|
|
66476
|
-
};
|
|
66477
|
-
const calculateFormula = async (expr, formData, instanceFormState) => {
|
|
66478
|
-
const rowArgs = identify(expr);
|
|
66479
|
-
const formulaData = isEmpty(rowArgs) ? {} : rowArgs.reduce((total, curr) => {
|
|
66480
|
-
const parseInfo = parseFormulaVar(curr);
|
|
66481
|
-
total[curr] = getFieldDataValue(
|
|
66482
|
-
parseInfo,
|
|
66483
|
-
parseInfo.dataType === "currentRowType" ? formData : instanceFormState
|
|
66484
|
-
);
|
|
66485
|
-
return total;
|
|
66486
|
-
}, {});
|
|
66487
|
-
return calculate(expr, formulaData);
|
|
66488
|
-
};
|
|
66489
|
-
const isEmptyValue = (value) => {
|
|
66490
|
-
return value === void 0 || value === null || typeof value === "string" && value.trim() === "" || Array.isArray(value) && value.length === 0;
|
|
66491
|
-
};
|
|
66492
|
-
const compareByOp = (left, right, op) => {
|
|
66493
|
-
switch (op) {
|
|
66494
|
-
case RangeCompareOp.LT:
|
|
66495
|
-
return left < right;
|
|
66496
|
-
case RangeCompareOp.LE:
|
|
66497
|
-
return left <= right;
|
|
66498
|
-
case RangeCompareOp.GT:
|
|
66499
|
-
return left > right;
|
|
66500
|
-
case RangeCompareOp.GE:
|
|
66501
|
-
default:
|
|
66502
|
-
return left >= right;
|
|
66503
|
-
}
|
|
66504
|
-
};
|
|
66505
|
-
const rangeCompareMessage = (op, val) => {
|
|
66506
|
-
switch (op) {
|
|
66507
|
-
case RangeCompareOp.LT:
|
|
66508
|
-
return $t("sys.fieldValueNotGreaterOrEqual", { val });
|
|
66509
|
-
case RangeCompareOp.LE:
|
|
66510
|
-
return $t("sys.fieldValueNoMoreThan", { val });
|
|
66511
|
-
case RangeCompareOp.GT:
|
|
66512
|
-
return $t("sys.fieldValueNotLessOrEqual", { val });
|
|
66513
|
-
case RangeCompareOp.GE:
|
|
66514
|
-
default:
|
|
66515
|
-
return $t("sys.fieldValueNotLessThan", { val });
|
|
66516
|
-
}
|
|
66517
|
-
};
|
|
66518
|
-
const toUnixTimestamp = (input) => {
|
|
66519
|
-
if (isNil(input) || input === "") return null;
|
|
66520
|
-
const asNumber = typeof input === "number" || typeof input === "string" && /^-?\d+(\.\d+)?$/.test(input.trim());
|
|
66521
|
-
if (asNumber) {
|
|
66522
|
-
const n = Number(input);
|
|
66523
|
-
if (Number.isNaN(n)) return null;
|
|
66524
|
-
const parsed2 = n > 1e12 ? dayjs(n) : dayjs.unix(n);
|
|
66525
|
-
return parsed2.isValid() ? parsed2.unix() : null;
|
|
66526
|
-
}
|
|
66527
|
-
const parsed = dayjs(input);
|
|
66528
|
-
return parsed.isValid() ? parsed.unix() : null;
|
|
66529
|
-
};
|
|
66530
|
-
const buildError = (validatorInfo, message2) => JSON.stringify({ ...validatorInfo, message: message2 });
|
|
66531
|
-
function areValidationCommentsEqual(left, right) {
|
|
66532
|
-
const serialize = (comments) => JSON.stringify(
|
|
66533
|
-
comments,
|
|
66534
|
-
(_key, value) => value && typeof value === "object" && "message" in value ? { ...value, message: value.message } : value
|
|
66535
|
-
);
|
|
66536
|
-
return serialize(left) === serialize(right);
|
|
66537
|
-
}
|
|
66538
|
-
const createRule = (validator, message2, trigger = "change") => ({
|
|
66539
|
-
required: true,
|
|
66540
|
-
validator,
|
|
66541
|
-
message: message2,
|
|
66542
|
-
trigger
|
|
66543
|
-
});
|
|
66544
|
-
function relocateDeletedRowsToEnd(rows = []) {
|
|
66545
|
-
const active = [];
|
|
66546
|
-
const deleted = [];
|
|
66547
|
-
for (const row of rows) {
|
|
66548
|
-
if (row?.deleted_) deleted.push(row);
|
|
66549
|
-
else active.push(row);
|
|
66550
|
-
}
|
|
66551
|
-
return [...active, ...deleted];
|
|
66552
|
-
}
|
|
66553
|
-
const MAX_NUMERIC_DIGITS = 15;
|
|
66554
|
-
const NUMERIC_FIELD_TYPES = /* @__PURE__ */ new Set([
|
|
66555
|
-
FIELD_TYPE.INTEGER,
|
|
66556
|
-
FIELD_TYPE.LONG,
|
|
66557
|
-
FIELD_TYPE.DOUBLE,
|
|
66558
|
-
FIELD_TYPE.DECIMAL
|
|
66559
|
-
]);
|
|
66560
|
-
function filterRulesByTrigger(rules, trigger) {
|
|
66561
|
-
return rules.filter((rule) => {
|
|
66562
|
-
const ruleTrigger = rule.trigger;
|
|
66563
|
-
if (!ruleTrigger) return trigger === "change";
|
|
66564
|
-
if (trigger === "blur") {
|
|
66565
|
-
return ruleTrigger === "blur" || ruleTrigger === "change";
|
|
66566
|
-
}
|
|
66567
|
-
return ruleTrigger === trigger;
|
|
66568
|
-
});
|
|
66569
|
-
}
|
|
66570
|
-
function assembleRules(input) {
|
|
66571
|
-
const { showRequired, fieldType, validatorInfo, props } = input;
|
|
66572
|
-
const {
|
|
66573
|
-
minlength,
|
|
66574
|
-
maxlength,
|
|
66575
|
-
regex,
|
|
66576
|
-
regexHint,
|
|
66577
|
-
validateTrue,
|
|
66578
|
-
validateFalse,
|
|
66579
|
-
enableRangeValidate,
|
|
66580
|
-
maxValidateMode,
|
|
66581
|
-
minValidateMode,
|
|
66582
|
-
maxCompareOp,
|
|
66583
|
-
minCompareOp,
|
|
66584
|
-
minValue,
|
|
66585
|
-
maxValue,
|
|
66586
|
-
minFormulaExpr,
|
|
66587
|
-
maxFormulaExpr,
|
|
66588
|
-
minDate,
|
|
66589
|
-
maxDate,
|
|
66590
|
-
minDateFormulaExpr,
|
|
66591
|
-
maxDateFormulaExpr,
|
|
66592
|
-
maxDateValidateMode,
|
|
66593
|
-
minDateValidateMode
|
|
66594
|
-
} = props;
|
|
66595
|
-
const resolvedMaxCompareOp = maxCompareOp ?? RangeCompareOp.LE;
|
|
66596
|
-
const resolvedMinCompareOp = minCompareOp ?? RangeCompareOp.GE;
|
|
66597
|
-
const RuleProps = [];
|
|
66598
|
-
if (props.bizType === FIELD_TYPE.SEAL) {
|
|
66599
|
-
if (showRequired) {
|
|
66600
|
-
RuleProps.push(
|
|
66601
|
-
createRule(
|
|
66602
|
-
(_rule, value) => isSealStamped(value),
|
|
66603
|
-
buildError(
|
|
66604
|
-
{ ...validatorInfo, validationCode: "seal-required" },
|
|
66605
|
-
$t("sys.fieldRequired")
|
|
66606
|
-
),
|
|
66607
|
-
"manual"
|
|
66608
|
-
)
|
|
66609
|
-
);
|
|
66610
|
-
}
|
|
66611
|
-
RuleProps.push(createRule((_rule, value) => isEmptyValue(value) || isValidSealValue(value), buildError(validatorInfo, $t("sys.seal.invalid"))));
|
|
66612
|
-
return RuleProps;
|
|
66613
|
-
}
|
|
66614
|
-
if (showRequired) {
|
|
66615
|
-
RuleProps.push(
|
|
66616
|
-
createRule(
|
|
66617
|
-
(_rule, value) => !isEmptyValue(value),
|
|
66618
|
-
buildError(validatorInfo, $t("sys.fieldRequired")),
|
|
66619
|
-
"manual"
|
|
66620
|
-
)
|
|
66621
|
-
);
|
|
66622
|
-
}
|
|
66623
|
-
if (!isNil(minlength)) {
|
|
66624
|
-
RuleProps.push(
|
|
66625
|
-
createRule((_rule, value) => {
|
|
66626
|
-
if (isEmptyValue(value)) return true;
|
|
66627
|
-
return String(value).length >= minlength;
|
|
66628
|
-
}, buildError(validatorInfo, $t("sys.fieldLengthNotLessThan", { len: minlength })))
|
|
66629
|
-
);
|
|
66630
|
-
}
|
|
66631
|
-
const effectiveMaxlength = isNil(maxlength) && fieldType === FIELD_TYPE.TEXT ? 1024 : maxlength;
|
|
66632
|
-
if (!isNil(effectiveMaxlength)) {
|
|
66633
|
-
RuleProps.push(
|
|
66634
|
-
createRule((_rule, value) => {
|
|
66635
|
-
if (isEmptyValue(value)) return true;
|
|
66636
|
-
return String(value).length <= effectiveMaxlength;
|
|
66637
|
-
}, buildError(validatorInfo, $t("sys.fieldLengthNoMoreThan", { len: effectiveMaxlength })))
|
|
66638
|
-
);
|
|
66639
|
-
}
|
|
66640
|
-
if (regex) {
|
|
66641
|
-
RuleProps.push(
|
|
66642
|
-
createRule((_rule, value) => {
|
|
66643
|
-
if (isEmptyValue(value)) return true;
|
|
66644
|
-
return new RegExp(regex).test(value);
|
|
66645
|
-
}, buildError(validatorInfo, regexHint ?? $t("sys.fieldFormatError")))
|
|
66646
|
-
);
|
|
66647
|
-
}
|
|
66648
|
-
if (validateTrue) {
|
|
66649
|
-
RuleProps.push({
|
|
66650
|
-
required: true,
|
|
66651
|
-
trigger: "manual",
|
|
66652
|
-
validator: (_rule, value) => value === true,
|
|
66653
|
-
message: buildError(validatorInfo, $t("sys.fieldValueNeedTrue"))
|
|
66654
|
-
});
|
|
66655
|
-
}
|
|
66656
|
-
if (validateFalse) {
|
|
66657
|
-
RuleProps.push({
|
|
66658
|
-
required: true,
|
|
66659
|
-
trigger: "manual",
|
|
66660
|
-
validator: (_rule, value) => value === false,
|
|
66661
|
-
message: buildError(validatorInfo, $t("sys.fieldValueNeedFalse"))
|
|
66662
|
-
});
|
|
66663
|
-
}
|
|
66664
|
-
const maxMode = maxValidateMode ?? RangeValidateMode.No_Validate;
|
|
66665
|
-
const minMode = minValidateMode ?? RangeValidateMode.No_Validate;
|
|
66666
|
-
const shouldValidateNumericLength = !enableRangeValidate || maxMode === RangeValidateMode.No_Validate || minMode === RangeValidateMode.No_Validate;
|
|
66667
|
-
if (shouldValidateNumericLength && NUMERIC_FIELD_TYPES.has(fieldType ?? "")) {
|
|
66668
|
-
RuleProps.push(
|
|
66669
|
-
createRule((_rule, value) => {
|
|
66670
|
-
if (isEmptyValue(value)) return true;
|
|
66671
|
-
const raw = String(value).trim();
|
|
66672
|
-
const text = /e/i.test(raw) ? new BigNumber(raw).toFixed() : raw;
|
|
66673
|
-
return text.replace(/[+\-.]/g, "").length <= MAX_NUMERIC_DIGITS;
|
|
66674
|
-
}, buildError(validatorInfo, $t("sys.fieldNumericDigitsNoMoreThan")))
|
|
66675
|
-
);
|
|
66676
|
-
}
|
|
66677
|
-
const configuredMinCoversZero = enableRangeValidate && minValidateMode === RangeValidateMode.Fixed_Number && !isEmptyValue(minValue) && Number(minValue) >= 0 && (resolvedMinCompareOp === RangeCompareOp.GE || resolvedMinCompareOp === RangeCompareOp.GT);
|
|
66678
|
-
if (input.defaultMinValue === 0 && !configuredMinCoversZero) {
|
|
66679
|
-
RuleProps.push(
|
|
66680
|
-
createRule(
|
|
66681
|
-
(_rule, value) => isEmptyValue(value) || Number(value) >= 0,
|
|
66682
|
-
buildError(validatorInfo, rangeCompareMessage(RangeCompareOp.GE, 0))
|
|
66683
|
-
)
|
|
66684
|
-
);
|
|
66685
|
-
}
|
|
66686
|
-
if (!enableRangeValidate) {
|
|
66687
|
-
return RuleProps;
|
|
66688
|
-
}
|
|
66689
|
-
if (minValidateMode === RangeValidateMode.Fixed_Number && !isEmptyValue(minValue)) {
|
|
66690
|
-
RuleProps.push(
|
|
66691
|
-
createRule((_rule, value) => {
|
|
66692
|
-
if (isEmptyValue(value)) return true;
|
|
66693
|
-
return compareByOp(Number(value), Number(minValue), resolvedMinCompareOp);
|
|
66694
|
-
}, buildError(validatorInfo, rangeCompareMessage(resolvedMinCompareOp, minValue)))
|
|
66695
|
-
);
|
|
66696
|
-
}
|
|
66697
|
-
if (minValidateMode === RangeValidateMode.Variable_Validate && minFormulaExpr) {
|
|
66698
|
-
RuleProps.push({
|
|
66699
|
-
required: true,
|
|
66700
|
-
trigger: "change",
|
|
66701
|
-
validator: async (_rule, value, _callback, _source, options) => {
|
|
66702
|
-
const currentFormData = getCurrentFormData(_rule, options);
|
|
66703
|
-
const formulaValue = await calculateFormula(
|
|
66704
|
-
minFormulaExpr,
|
|
66705
|
-
currentFormData,
|
|
66706
|
-
options?.formData
|
|
66707
|
-
);
|
|
66708
|
-
if (isEmptyValue(formulaValue)) {
|
|
66709
|
-
return Promise.resolve();
|
|
66710
|
-
}
|
|
66711
|
-
const parsedMin = parseFloat(formulaValue);
|
|
66712
|
-
if (!isNaN(parsedMin)) {
|
|
66713
|
-
if (isEmptyValue(value)) {
|
|
66714
|
-
return Promise.resolve();
|
|
66715
|
-
}
|
|
66716
|
-
if (!compareByOp(Number(value), parsedMin, resolvedMinCompareOp)) {
|
|
66717
|
-
return Promise.reject(
|
|
66718
|
-
new Error(
|
|
66719
|
-
buildError(validatorInfo, rangeCompareMessage(resolvedMinCompareOp, parsedMin))
|
|
66720
|
-
)
|
|
66721
|
-
);
|
|
66722
|
-
}
|
|
66723
|
-
}
|
|
66724
|
-
return Promise.resolve();
|
|
66725
|
-
}
|
|
66726
|
-
});
|
|
66727
|
-
}
|
|
66728
|
-
if (maxValidateMode === RangeValidateMode.Fixed_Number && !isEmptyValue(maxValue)) {
|
|
66729
|
-
RuleProps.push(
|
|
66730
|
-
createRule((_rule, value) => {
|
|
66731
|
-
if (isEmptyValue(value)) return true;
|
|
66732
|
-
return compareByOp(Number(value), Number(maxValue), resolvedMaxCompareOp);
|
|
66733
|
-
}, buildError(validatorInfo, rangeCompareMessage(resolvedMaxCompareOp, maxValue)))
|
|
66734
|
-
);
|
|
66735
|
-
}
|
|
66736
|
-
if (maxValidateMode === RangeValidateMode.Variable_Validate && maxFormulaExpr) {
|
|
66737
|
-
RuleProps.push({
|
|
66738
|
-
required: true,
|
|
66739
|
-
trigger: "change",
|
|
66740
|
-
validator: async (_rule, value, _callback, _source, options) => {
|
|
66741
|
-
const currentFormData = getCurrentFormData(_rule, options);
|
|
66742
|
-
const formulaValue = await calculateFormula(
|
|
66743
|
-
maxFormulaExpr,
|
|
66744
|
-
currentFormData,
|
|
66745
|
-
options?.formData
|
|
66746
|
-
);
|
|
66747
|
-
if (isEmptyValue(formulaValue)) {
|
|
66748
|
-
return Promise.resolve();
|
|
66749
|
-
}
|
|
66750
|
-
const parsedMax = parseFloat(formulaValue);
|
|
66751
|
-
if (!isNaN(parsedMax)) {
|
|
66752
|
-
if (isEmptyValue(value)) {
|
|
66753
|
-
return Promise.resolve();
|
|
66754
|
-
}
|
|
66755
|
-
if (!compareByOp(Number(value), parsedMax, resolvedMaxCompareOp)) {
|
|
66756
|
-
return Promise.reject(
|
|
66757
|
-
new Error(
|
|
66758
|
-
buildError(validatorInfo, rangeCompareMessage(resolvedMaxCompareOp, parsedMax))
|
|
66759
|
-
)
|
|
66760
|
-
);
|
|
66761
|
-
}
|
|
66762
|
-
}
|
|
66763
|
-
return Promise.resolve();
|
|
66764
|
-
}
|
|
66765
|
-
});
|
|
66766
|
-
}
|
|
66767
|
-
if (minDateValidateMode === RangeValidateMode.Fixed_Number && minDate) {
|
|
66768
|
-
RuleProps.push(
|
|
66769
|
-
createRule((_rule, value) => {
|
|
66770
|
-
if (isEmptyValue(value)) return true;
|
|
66771
|
-
const inputTime = dayjs(value).unix();
|
|
66772
|
-
const minTimestamp = dayjs(minDate).unix();
|
|
66773
|
-
if (!dayjs(value).isValid() || !dayjs(minDate).isValid()) return true;
|
|
66774
|
-
return compareByOp(inputTime, minTimestamp, resolvedMinCompareOp);
|
|
66775
|
-
}, buildError(validatorInfo, rangeCompareMessage(resolvedMinCompareOp, minDate)))
|
|
66776
|
-
);
|
|
66777
|
-
}
|
|
66778
|
-
if (maxDateValidateMode === RangeValidateMode.Fixed_Number && maxDate) {
|
|
66779
|
-
RuleProps.push(
|
|
66780
|
-
createRule((_rule, value) => {
|
|
66781
|
-
if (isEmptyValue(value)) return true;
|
|
66782
|
-
const inputTime = dayjs(value).unix();
|
|
66783
|
-
const maxTimestamp = dayjs(maxDate).unix();
|
|
66784
|
-
if (!dayjs(value).isValid() || !dayjs(maxDate).isValid()) return true;
|
|
66785
|
-
return compareByOp(inputTime, maxTimestamp, resolvedMaxCompareOp);
|
|
66786
|
-
}, buildError(validatorInfo, rangeCompareMessage(resolvedMaxCompareOp, maxDate)))
|
|
66787
|
-
);
|
|
66788
|
-
}
|
|
66789
|
-
if (minDateValidateMode === RangeValidateMode.Variable_Validate && minDateFormulaExpr) {
|
|
66790
|
-
RuleProps.push({
|
|
66791
|
-
required: true,
|
|
66792
|
-
trigger: "change",
|
|
66793
|
-
validator: async (_rule, value, _callback, _source, options) => {
|
|
66794
|
-
const currentFormData = getCurrentFormData(_rule, options);
|
|
66795
|
-
const formulaValue = await calculateFormula(
|
|
66796
|
-
minDateFormulaExpr,
|
|
66797
|
-
currentFormData,
|
|
66798
|
-
options?.formData
|
|
66799
|
-
);
|
|
66800
|
-
const limitTime = toUnixTimestamp(formulaValue);
|
|
66801
|
-
if (limitTime !== null) {
|
|
66802
|
-
if (isEmptyValue(value)) {
|
|
66803
|
-
return Promise.resolve();
|
|
66804
|
-
}
|
|
66805
|
-
if (!dayjs(value).isValid()) {
|
|
66806
|
-
return Promise.resolve();
|
|
66807
|
-
}
|
|
66808
|
-
const inputTime = dayjs(value).unix();
|
|
66809
|
-
const fmt = fieldType === FIELD_TYPE.DATE_TIME ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
66810
|
-
if (!compareByOp(inputTime, limitTime, resolvedMinCompareOp)) {
|
|
66811
|
-
return Promise.reject(
|
|
66812
|
-
new Error(
|
|
66813
|
-
buildError(
|
|
66814
|
-
validatorInfo,
|
|
66815
|
-
rangeCompareMessage(resolvedMinCompareOp, dayjs.unix(limitTime).format(fmt))
|
|
66816
|
-
)
|
|
66817
|
-
)
|
|
66818
|
-
);
|
|
66819
|
-
}
|
|
66820
|
-
}
|
|
66821
|
-
return Promise.resolve();
|
|
66822
|
-
}
|
|
66823
|
-
});
|
|
66824
|
-
}
|
|
66825
|
-
if (maxDateValidateMode === RangeValidateMode.Variable_Validate && maxDateFormulaExpr) {
|
|
66826
|
-
RuleProps.push({
|
|
66827
|
-
required: true,
|
|
66828
|
-
trigger: "change",
|
|
66829
|
-
validator: async (_rule, value, _callback, _source, options) => {
|
|
66830
|
-
const currentFormData = getCurrentFormData(_rule, options);
|
|
66831
|
-
const formulaValue = await calculateFormula(
|
|
66832
|
-
maxDateFormulaExpr,
|
|
66833
|
-
currentFormData,
|
|
66834
|
-
options?.formData
|
|
66835
|
-
);
|
|
66836
|
-
const limitTime = toUnixTimestamp(formulaValue);
|
|
66837
|
-
if (limitTime !== null) {
|
|
66838
|
-
if (isEmptyValue(value)) {
|
|
66839
|
-
return Promise.resolve();
|
|
66840
|
-
}
|
|
66841
|
-
if (!dayjs(value).isValid()) {
|
|
66842
|
-
return Promise.resolve();
|
|
66843
|
-
}
|
|
66844
|
-
const inputTime = dayjs(value).unix();
|
|
66845
|
-
const fmt = fieldType === FIELD_TYPE.DATE_TIME ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
66846
|
-
if (!compareByOp(inputTime, limitTime, resolvedMaxCompareOp)) {
|
|
66847
|
-
return Promise.reject(
|
|
66848
|
-
new Error(
|
|
66849
|
-
buildError(
|
|
66850
|
-
validatorInfo,
|
|
66851
|
-
rangeCompareMessage(resolvedMaxCompareOp, dayjs.unix(limitTime).format(fmt))
|
|
66852
|
-
)
|
|
66853
|
-
)
|
|
66854
|
-
);
|
|
66855
|
-
}
|
|
66856
|
-
}
|
|
66857
|
-
return Promise.resolve();
|
|
66858
|
-
}
|
|
66859
|
-
});
|
|
66860
|
-
}
|
|
66861
|
-
return RuleProps;
|
|
66862
|
-
}
|
|
66863
|
-
const getApi$1 = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
|
|
66864
|
-
const postApi = api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey;
|
|
66865
|
-
async function materialCheck(params) {
|
|
66866
|
-
const res = await postApi(
|
|
66867
|
-
{
|
|
66868
|
-
bsKey: "biz_single_material_check",
|
|
66869
|
-
modelKey: "em_material_loading",
|
|
66870
|
-
modelCategory: "entity"
|
|
66871
|
-
},
|
|
66872
|
-
{},
|
|
66873
|
-
params
|
|
66874
|
-
);
|
|
66875
|
-
return res;
|
|
66876
|
-
}
|
|
66877
|
-
async function stockCheck(params) {
|
|
66878
|
-
await postApi(
|
|
66879
|
-
{
|
|
66880
|
-
bsKey: "biz_form_single_confirm",
|
|
66881
|
-
modelKey: "em_material_loading",
|
|
66882
|
-
modelCategory: "entity"
|
|
66883
|
-
},
|
|
66884
|
-
{},
|
|
66885
|
-
{
|
|
66886
|
-
entry: params.entry,
|
|
66887
|
-
material_id_: params.row.product_id_,
|
|
66888
|
-
production_identification_name_: params.row.material_no_,
|
|
66889
|
-
qty_: params.row.qty_,
|
|
66890
|
-
operation_id_: params.row.routing_operation_id_,
|
|
66891
|
-
main_material_no_: params.mainMaterialNo
|
|
66892
|
-
}
|
|
66893
|
-
);
|
|
66894
|
-
}
|
|
66895
|
-
async function fetchHistoryConsume(params) {
|
|
66896
|
-
const res = await postApi(
|
|
66897
|
-
{
|
|
66898
|
-
bsKey: "listAll",
|
|
66899
|
-
modelKey: "em_material_consume",
|
|
66900
|
-
modelCategory: "entity"
|
|
66901
|
-
},
|
|
66902
|
-
{},
|
|
66903
|
-
{
|
|
66904
|
-
query: params
|
|
66905
|
-
}
|
|
66906
|
-
);
|
|
66907
|
-
console.log("查询历史消耗数据", res);
|
|
66908
|
-
const arr = res.data ?? [];
|
|
66909
|
-
arr.map((i2) => {
|
|
66910
|
-
i2.qty_ = i2.qty_consumed_;
|
|
66911
|
-
});
|
|
66912
|
-
return arr;
|
|
66913
|
-
}
|
|
66914
|
-
async function judgeUnique(opts) {
|
|
66915
|
-
const res = await postApi(
|
|
66916
|
-
{
|
|
66917
|
-
bsKey: "biz_form_unique",
|
|
66918
|
-
modelKey: "em_material_loading",
|
|
66919
|
-
modelCategory: "entity"
|
|
66920
|
-
},
|
|
66921
|
-
{},
|
|
66922
|
-
{
|
|
66923
|
-
model_key_: opts.modelKey,
|
|
66924
|
-
datas_: opts.data
|
|
66925
|
-
}
|
|
66926
|
-
);
|
|
66927
|
-
return res;
|
|
66928
|
-
}
|
|
66929
|
-
async function isBomGranted() {
|
|
66930
|
-
try {
|
|
66931
|
-
const res = await getApi$1(
|
|
66932
|
-
{
|
|
66933
|
-
modelKey: "em_product_bom",
|
|
66934
|
-
bsKey: "biz_bom_granted",
|
|
66935
|
-
modelCategory: "entity"
|
|
66936
|
-
},
|
|
66937
|
-
{},
|
|
66938
|
-
{}
|
|
66939
|
-
);
|
|
66940
|
-
return res ?? false;
|
|
66941
|
-
} catch (error) {
|
|
66942
|
-
console.log("");
|
|
66943
|
-
return false;
|
|
66944
|
-
}
|
|
66945
|
-
}
|
|
66946
|
-
async function getReinspectionDate(params) {
|
|
66947
|
-
if (!params.material_no_id_ && !params.material_no_) return;
|
|
66948
|
-
({
|
|
66949
|
-
"product_id_.versionIn": [params.product_id_.split(":").pop()]
|
|
66950
|
-
});
|
|
66951
|
-
if (params.material_no_id_) {
|
|
66952
|
-
params.material_no_id_;
|
|
66953
|
-
} else {
|
|
66954
|
-
params.material_no_;
|
|
66955
|
-
}
|
|
66956
|
-
const res = await postApi(
|
|
66957
|
-
{
|
|
66958
|
-
modelCategory: "entity",
|
|
66959
|
-
modelKey: "em_production_identification",
|
|
66960
|
-
bsKey: "getOne"
|
|
66961
|
-
},
|
|
66962
|
-
{},
|
|
66963
|
-
{
|
|
66964
|
-
query: {
|
|
66965
|
-
name_: params.material_no_,
|
|
66966
|
-
id_: params.material_no_id_,
|
|
66967
|
-
"product_id_.versionEq": params.product_id_
|
|
66968
|
-
}
|
|
66969
|
-
}
|
|
66970
|
-
);
|
|
66971
|
-
const record = res?.data?.[0] ?? res?.data;
|
|
66972
|
-
const raw = record?.re_inspection_date_ ?? record?.retest_date_;
|
|
66973
|
-
if (raw == null || raw === "") return;
|
|
66974
|
-
const parsed = dayjs(raw);
|
|
66975
|
-
if (!parsed.isValid()) return;
|
|
66976
|
-
return parsed.format("YYYY-MM-DD");
|
|
66977
|
-
}
|
|
66978
|
-
async function validateReinspectionDate(opts) {
|
|
66979
|
-
if (!opts.product_id_ || !opts.material_no_ && !opts.material_no_id_) return;
|
|
66980
|
-
const date = await getReinspectionDate({
|
|
66981
|
-
product_id_: opts.product_id_,
|
|
66982
|
-
material_no_: opts.material_no_,
|
|
66983
|
-
material_no_id_: opts.material_no_id_
|
|
66984
|
-
});
|
|
66985
|
-
if (!date) return;
|
|
66986
|
-
if (dayjs(date).isBefore(dayjs(), "day")) {
|
|
66987
|
-
throw new Error($t("sys.retestDateErrorTip"));
|
|
66988
|
-
}
|
|
66989
|
-
}
|
|
66990
|
-
async function getLotLockedReason(production_identification_id_) {
|
|
66991
|
-
const { data = {}, dict = {} } = await postApi(
|
|
66992
|
-
{
|
|
66993
|
-
modelCategory: "entity",
|
|
66994
|
-
modelKey: "em_production_identification_lock_record",
|
|
66995
|
-
bsKey: "biz_get_one_lock_record"
|
|
66996
|
-
},
|
|
66997
|
-
{},
|
|
66998
|
-
{
|
|
66999
|
-
production_identification_id_
|
|
67000
|
-
}
|
|
67001
|
-
);
|
|
67002
|
-
return $t("sys.lotLockedReason", {
|
|
67003
|
-
name: dict.lock_user_id_[data.lock_user_id_],
|
|
67004
|
-
reason: data.lock_reason_
|
|
67005
|
-
});
|
|
67006
|
-
}
|
|
67007
|
-
var Config_Fields = /* @__PURE__ */ ((Config_Fields2) => {
|
|
67008
|
-
Config_Fields2["materialCode"] = "materialCode";
|
|
67009
|
-
Config_Fields2["lot"] = "lot";
|
|
67010
|
-
Config_Fields2["qty"] = "qty";
|
|
67011
|
-
Config_Fields2["expiration"] = "expiration";
|
|
67012
|
-
Config_Fields2["deviceCode"] = "deviceCode";
|
|
67013
|
-
Config_Fields2["other"] = "other";
|
|
67014
|
-
return Config_Fields2;
|
|
67015
|
-
})(Config_Fields || {});
|
|
67016
|
-
const getApi = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
|
|
67017
|
-
async function getParseRuleInfo(params) {
|
|
67018
|
-
const res = await getApi(
|
|
67019
|
-
{
|
|
67020
|
-
bsKey: "rdoGetVersionById",
|
|
67021
|
-
modelKey: "em_barcode_parsing_rules",
|
|
67022
|
-
modelCategory: "entity"
|
|
67023
|
-
},
|
|
67024
|
-
params
|
|
67025
|
-
);
|
|
67026
|
-
return res.data;
|
|
67027
|
-
}
|
|
67028
|
-
function handleOldConfig(config) {
|
|
67029
|
-
if (config.list && !config.fieldList) {
|
|
67030
|
-
config.fieldList = config.list.map((type) => {
|
|
67031
|
-
return {
|
|
67032
|
-
type,
|
|
67033
|
-
key: type === Config_Fields.other ? uuid2(32) : type
|
|
67034
|
-
};
|
|
67035
|
-
});
|
|
67036
|
-
delete config.list;
|
|
67037
|
-
}
|
|
67038
|
-
config.fieldList.forEach((item) => {
|
|
67039
|
-
if (!item.key) {
|
|
67040
|
-
item.key = item.type === Config_Fields.other ? uuid2(32) : item.type;
|
|
67041
|
-
}
|
|
67042
|
-
});
|
|
67043
|
-
return config;
|
|
67044
|
-
}
|
|
67045
|
-
function getParseRuleValue(labelStr, labelRule) {
|
|
67046
|
-
if (!labelRule) {
|
|
67047
|
-
throw new Error("请传入解析规则");
|
|
67048
|
-
}
|
|
67049
|
-
const ruleObj = JSON.parse(labelRule);
|
|
67050
|
-
const ruleConfig = handleOldConfig(ruleObj);
|
|
67051
|
-
const { separator, nullSymbol, fieldList } = ruleConfig;
|
|
67052
|
-
const labelArr = labelStr.split(separator);
|
|
67053
|
-
return labelArr.reduce((obj, e, idx) => {
|
|
67054
|
-
const field = fieldList[idx];
|
|
67055
|
-
if (field) {
|
|
67056
|
-
let val = nullSymbol && e === nullSymbol ? null : e;
|
|
67057
|
-
if (val !== null) {
|
|
67058
|
-
switch (field.type) {
|
|
67059
|
-
case Config_Fields.qty:
|
|
67060
|
-
val = Number(val);
|
|
67061
|
-
break;
|
|
67062
|
-
case Config_Fields.expiration:
|
|
67063
|
-
val = dayjs(val, field.format).format("YYYY-MM-DD HH:mm:ss");
|
|
67064
|
-
break;
|
|
67065
|
-
}
|
|
67066
|
-
}
|
|
67067
|
-
obj[field.key] = val;
|
|
67068
|
-
}
|
|
67069
|
-
return obj;
|
|
67070
|
-
}, {});
|
|
67071
|
-
}
|
|
67072
|
-
async function getParseRuleConfig(id) {
|
|
67073
|
-
const res = await getParseRuleInfo({ id });
|
|
67074
|
-
if (res?.rules_) {
|
|
67075
|
-
const ruleObj = JSON.parse(res.rules_);
|
|
67076
|
-
const ruleConfig = handleOldConfig(ruleObj);
|
|
67077
|
-
return ruleConfig;
|
|
67078
|
-
}
|
|
67079
|
-
}
|
|
67080
|
-
function calcFillData(data, fillMapArr) {
|
|
67081
|
-
const obj = {};
|
|
67082
|
-
if (fillMapArr?.length) {
|
|
67083
|
-
fillMapArr.forEach((i2) => {
|
|
67084
|
-
const fromKey = i2.barcodeField;
|
|
67085
|
-
if (fromKey && fromKey in data) {
|
|
67086
|
-
const val = data[fromKey];
|
|
67087
|
-
i2.formFields?.forEach((key) => {
|
|
67088
|
-
const toKey2 = key.split(".")[1];
|
|
67089
|
-
obj[toKey2] = val;
|
|
67090
|
-
});
|
|
67091
|
-
}
|
|
67092
|
-
});
|
|
67093
|
-
}
|
|
67094
|
-
return obj;
|
|
67095
|
-
}
|
|
67096
66526
|
const NUMBER_FIELD_TYPES = /* @__PURE__ */ new Set([
|
|
67097
66527
|
FIELD_TYPE.INTEGER,
|
|
67098
66528
|
FIELD_TYPE.LONG,
|
|
@@ -67556,27 +66986,27 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
67556
66986
|
case "revo-grid":
|
|
67557
66987
|
return import(
|
|
67558
66988
|
/* webpackMode: "lazy" */
|
|
67559
|
-
"./revo-grid.entry-
|
|
66989
|
+
"./revo-grid.entry-CAz8pEMB.js"
|
|
67560
66990
|
).then(processMod, consoleError);
|
|
67561
66991
|
case "revogr-filter-panel":
|
|
67562
66992
|
return import(
|
|
67563
66993
|
/* webpackMode: "lazy" */
|
|
67564
|
-
"./revogr-filter-panel.entry-
|
|
66994
|
+
"./revogr-filter-panel.entry-BCwmMUrv.js"
|
|
67565
66995
|
).then(processMod, consoleError);
|
|
67566
66996
|
case "revogr-attribution_7":
|
|
67567
66997
|
return import(
|
|
67568
66998
|
/* webpackMode: "lazy" */
|
|
67569
|
-
"./revogr-attribution_7.entry-
|
|
66999
|
+
"./revogr-attribution_7.entry-RBj_kk6o.js"
|
|
67570
67000
|
).then(processMod, consoleError);
|
|
67571
67001
|
case "revogr-clipboard_3":
|
|
67572
67002
|
return import(
|
|
67573
67003
|
/* webpackMode: "lazy" */
|
|
67574
|
-
"./revogr-clipboard_3.entry-
|
|
67004
|
+
"./revogr-clipboard_3.entry-B_WeVhDK.js"
|
|
67575
67005
|
).then(processMod, consoleError);
|
|
67576
67006
|
case "revogr-data_4":
|
|
67577
67007
|
return import(
|
|
67578
67008
|
/* webpackMode: "lazy" */
|
|
67579
|
-
"./revogr-data_4.entry-
|
|
67009
|
+
"./revogr-data_4.entry-VaYdG5rT.js"
|
|
67580
67010
|
).then(processMod, consoleError);
|
|
67581
67011
|
}
|
|
67582
67012
|
}
|
|
@@ -77812,7 +77242,7 @@ function groupFixedTableRows(rows, options) {
|
|
|
77812
77242
|
return result;
|
|
77813
77243
|
}
|
|
77814
77244
|
export {
|
|
77815
|
-
|
|
77245
|
+
PlatformEnum as $,
|
|
77816
77246
|
CellType as A,
|
|
77817
77247
|
BwipCodeType as B,
|
|
77818
77248
|
ComponentTypeEnum as C,
|
|
@@ -77833,323 +77263,304 @@ export {
|
|
|
77833
77263
|
PaperWidgeValueType as R,
|
|
77834
77264
|
SUB_TABLE_PANEL_TYPE_NAME as S,
|
|
77835
77265
|
TRACE_FIELD_TYPES as T,
|
|
77836
|
-
|
|
77837
|
-
|
|
77266
|
+
onlineFormMasterModelTypeEnum as U,
|
|
77267
|
+
UniqueConstraintType as V,
|
|
77838
77268
|
WAREHOUSE_FIELD_TYPES as W,
|
|
77839
|
-
|
|
77840
|
-
|
|
77841
|
-
|
|
77842
|
-
|
|
77269
|
+
FieldDefaultValueTypeEnum as X,
|
|
77270
|
+
FormTypeEnum as Y,
|
|
77271
|
+
mitt as Z,
|
|
77272
|
+
isDateObjectField as _,
|
|
77843
77273
|
getProfile as a,
|
|
77844
|
-
|
|
77845
|
-
|
|
77846
|
-
|
|
77847
|
-
|
|
77848
|
-
|
|
77849
|
-
|
|
77850
|
-
|
|
77851
|
-
|
|
77852
|
-
|
|
77853
|
-
|
|
77854
|
-
|
|
77855
|
-
|
|
77856
|
-
|
|
77857
|
-
|
|
77858
|
-
|
|
77859
|
-
|
|
77860
|
-
|
|
77861
|
-
|
|
77862
|
-
|
|
77863
|
-
|
|
77864
|
-
|
|
77865
|
-
|
|
77866
|
-
|
|
77867
|
-
|
|
77868
|
-
|
|
77869
|
-
|
|
77870
|
-
|
|
77871
|
-
|
|
77872
|
-
|
|
77873
|
-
|
|
77874
|
-
|
|
77875
|
-
|
|
77876
|
-
|
|
77877
|
-
|
|
77878
|
-
|
|
77879
|
-
|
|
77880
|
-
|
|
77881
|
-
|
|
77882
|
-
|
|
77883
|
-
|
|
77884
|
-
|
|
77885
|
-
|
|
77886
|
-
|
|
77887
|
-
|
|
77888
|
-
|
|
77889
|
-
|
|
77890
|
-
|
|
77891
|
-
|
|
77892
|
-
|
|
77893
|
-
|
|
77894
|
-
|
|
77895
|
-
|
|
77896
|
-
|
|
77897
|
-
|
|
77898
|
-
|
|
77899
|
-
|
|
77900
|
-
|
|
77901
|
-
|
|
77902
|
-
|
|
77903
|
-
|
|
77904
|
-
|
|
77905
|
-
|
|
77906
|
-
|
|
77907
|
-
|
|
77274
|
+
getParseRuleInfo as a$,
|
|
77275
|
+
LabelPosition as a0,
|
|
77276
|
+
BooleanShowMode as a1,
|
|
77277
|
+
SignatureImageDirectionEnum as a2,
|
|
77278
|
+
FallbackSignTypeEnum as a3,
|
|
77279
|
+
SignatureNumberTypeEnum as a4,
|
|
77280
|
+
SignatureTimeTypeEnum as a5,
|
|
77281
|
+
SignShowTypeEnum as a6,
|
|
77282
|
+
SignatureTypeEnum as a7,
|
|
77283
|
+
_export_sfc as a8,
|
|
77284
|
+
normalizeFieldType as a9,
|
|
77285
|
+
ImageDisplayModeEnum as aA,
|
|
77286
|
+
FormDesignEnum as aB,
|
|
77287
|
+
BASIC_FIELD_TYPES as aC,
|
|
77288
|
+
getAllTableProfiles as aD,
|
|
77289
|
+
transformUtils as aE,
|
|
77290
|
+
EmptySymbol as aF,
|
|
77291
|
+
ASSIGNMENTSTRATEGY_ENUM as aG,
|
|
77292
|
+
Dependency_ENUM as aH,
|
|
77293
|
+
EntityModelCategoryEnum as aI,
|
|
77294
|
+
resolveLotDisplayLabel as aJ,
|
|
77295
|
+
CheckDsTypeEnum as aK,
|
|
77296
|
+
DeviceLink as aL,
|
|
77297
|
+
DeviceParamsTypeTitle as aM,
|
|
77298
|
+
AITooltips as aN,
|
|
77299
|
+
DenoiseMethodOptions as aO,
|
|
77300
|
+
BinarizeMethodOptions as aP,
|
|
77301
|
+
DateFormat as aQ,
|
|
77302
|
+
withRequestCache as aR,
|
|
77303
|
+
LOT_CONTAINER_ROLE as aS,
|
|
77304
|
+
buildLotSnListQuery as aT,
|
|
77305
|
+
renderUtils as aU,
|
|
77306
|
+
resolveLotRecordByValue as aV,
|
|
77307
|
+
materialCheck as aW,
|
|
77308
|
+
getLotLockedReason as aX,
|
|
77309
|
+
validateReinspectionDate as aY,
|
|
77310
|
+
ProductionIdentificationTypeEnum as aZ,
|
|
77311
|
+
BindCmpStyleEnum as a_,
|
|
77312
|
+
PaperSizeMap as aa,
|
|
77313
|
+
getFieldMain as ab,
|
|
77314
|
+
buildUUID as ac,
|
|
77315
|
+
FieldIconMap as ad,
|
|
77316
|
+
BigNumber as ae,
|
|
77317
|
+
FieldSysVarDefaultValueEnum as af,
|
|
77318
|
+
CellWidgetViewState as ag,
|
|
77319
|
+
DiagonalDirection as ah,
|
|
77320
|
+
WidgetImageSizeMode as ai,
|
|
77321
|
+
LineDirection as aj,
|
|
77322
|
+
TimeDiffFormat as ak,
|
|
77323
|
+
DiagonalVertex as al,
|
|
77324
|
+
resolveDiagonalVertex as am,
|
|
77325
|
+
getThemeColorByTableType as an,
|
|
77326
|
+
ViewTypeEnum as ao,
|
|
77327
|
+
isDynamicSubTablePanelType as ap,
|
|
77328
|
+
isFixedSubTablePanelType as aq,
|
|
77329
|
+
ExpressionModeEnum as ar,
|
|
77330
|
+
ReturnTypeEnum as as,
|
|
77331
|
+
ExpressionTabEnum as at,
|
|
77332
|
+
RangeValidateMode as au,
|
|
77333
|
+
RangeCompareOp as av,
|
|
77334
|
+
getExclusiveBusinessTypeTokens as aw,
|
|
77335
|
+
getSubTableTypeByRefModelType as ax,
|
|
77336
|
+
findFieldMain as ay,
|
|
77337
|
+
DecimalDisplayMode as az,
|
|
77908
77338
|
isBusinessSubTableProfile as b,
|
|
77909
|
-
|
|
77910
|
-
|
|
77911
|
-
|
|
77912
|
-
|
|
77913
|
-
|
|
77914
|
-
|
|
77915
|
-
|
|
77916
|
-
|
|
77917
|
-
|
|
77918
|
-
|
|
77919
|
-
|
|
77920
|
-
|
|
77921
|
-
|
|
77922
|
-
|
|
77923
|
-
|
|
77924
|
-
|
|
77925
|
-
|
|
77926
|
-
|
|
77927
|
-
|
|
77928
|
-
|
|
77929
|
-
|
|
77930
|
-
|
|
77931
|
-
|
|
77932
|
-
|
|
77933
|
-
|
|
77934
|
-
|
|
77935
|
-
|
|
77936
|
-
|
|
77937
|
-
|
|
77938
|
-
|
|
77939
|
-
|
|
77940
|
-
|
|
77941
|
-
|
|
77942
|
-
|
|
77943
|
-
|
|
77944
|
-
|
|
77945
|
-
|
|
77946
|
-
|
|
77947
|
-
|
|
77948
|
-
|
|
77949
|
-
|
|
77950
|
-
|
|
77951
|
-
|
|
77952
|
-
|
|
77953
|
-
|
|
77954
|
-
|
|
77955
|
-
|
|
77956
|
-
|
|
77957
|
-
|
|
77958
|
-
|
|
77959
|
-
|
|
77960
|
-
|
|
77961
|
-
|
|
77962
|
-
|
|
77963
|
-
|
|
77964
|
-
|
|
77965
|
-
|
|
77966
|
-
|
|
77967
|
-
|
|
77968
|
-
|
|
77969
|
-
|
|
77970
|
-
|
|
77971
|
-
|
|
77972
|
-
|
|
77339
|
+
fetchCustomCheckDsData as b$,
|
|
77340
|
+
getParseRuleValue as b0,
|
|
77341
|
+
normalizeRefLoaderResult as b1,
|
|
77342
|
+
STOCKTAKE_DIMENSION as b2,
|
|
77343
|
+
F$8 as b3,
|
|
77344
|
+
resolveStocktakeSelectApi as b4,
|
|
77345
|
+
normalizeProductionContainerOptions as b5,
|
|
77346
|
+
buildProductionLotListQuery as b6,
|
|
77347
|
+
refUtils as b7,
|
|
77348
|
+
buildInspectionLotListQuery as b8,
|
|
77349
|
+
buildDeviceFilterQuery as b9,
|
|
77350
|
+
CHECK_TABLE_MEDPRO_PROTOCOL_KEY as bA,
|
|
77351
|
+
CodeRunner as bB,
|
|
77352
|
+
Config_Fields as bC,
|
|
77353
|
+
ControlStatusEnum as bD,
|
|
77354
|
+
DEVICE_SEARCH_API as bE,
|
|
77355
|
+
DeviceStatus as bF,
|
|
77356
|
+
EBR_PROVIDE_ENUM as bG,
|
|
77357
|
+
EFieldBizTypeEnum as bH,
|
|
77358
|
+
JoinModelTypeEum as bI,
|
|
77359
|
+
MAX_FRONT_ROW_KEY_LENGTH as bJ,
|
|
77360
|
+
MobileFillTypeEnum as bK,
|
|
77361
|
+
OfficeTypeEnum as bL,
|
|
77362
|
+
PosEnum as bM,
|
|
77363
|
+
RUNTIME_COLUMN_ROW_KEY as bN,
|
|
77364
|
+
SummaryApproveHisTypeEnum as bO,
|
|
77365
|
+
applyCheckDsDataToRuntime as bP,
|
|
77366
|
+
applyMedProCheckDsDataToRuntime as bQ,
|
|
77367
|
+
bindRuntimeTableColumns as bR,
|
|
77368
|
+
buildDeviceBaseQuery as bS,
|
|
77369
|
+
calcFillData as bT,
|
|
77370
|
+
calcUtils as bU,
|
|
77371
|
+
decodeTableCellRowKey as bV,
|
|
77372
|
+
encodeTableCellRowKey as bW,
|
|
77373
|
+
ensureFrontRowKey as bX,
|
|
77374
|
+
ensureTableRowKeys as bY,
|
|
77375
|
+
extractKeywordFromQueryData as bZ,
|
|
77376
|
+
fetchCheckDsDataForTable as b_,
|
|
77377
|
+
DEVICE_GROUP_QUERY_KEY as ba,
|
|
77378
|
+
getRowId as bb,
|
|
77379
|
+
findRuntimeTableRow as bc,
|
|
77380
|
+
RenderModeEnum as bd,
|
|
77381
|
+
findRuntimeParentRow as be,
|
|
77382
|
+
useOnlineFormTransformField2Component as bf,
|
|
77383
|
+
FormulaRuleFieldKeyEnum as bg,
|
|
77384
|
+
formulaRuleFieldDict as bh,
|
|
77385
|
+
resolveDesignPanelFeatures as bi,
|
|
77386
|
+
BIZ_TABLE_CONFIG_SEED_TYPES as bj,
|
|
77387
|
+
STOCKTAKE_DIMENSION_OPTIONS as bk,
|
|
77388
|
+
isRepeatingSubTablePanelType as bl,
|
|
77389
|
+
uuid2 as bm,
|
|
77390
|
+
fetchHistoryConsume as bn,
|
|
77391
|
+
isBomGranted as bo,
|
|
77392
|
+
parseFrontConfig as bp,
|
|
77393
|
+
baseDataUtils as bq,
|
|
77394
|
+
normalizeToArray as br,
|
|
77395
|
+
safeParseArray as bs,
|
|
77396
|
+
BpmnNodeTypeEnum as bt,
|
|
77397
|
+
mergeByMultiKey as bu,
|
|
77398
|
+
evaluateInspectionDecisionRule as bv,
|
|
77399
|
+
useNocodeEmitter as bw,
|
|
77400
|
+
commonUtils as bx,
|
|
77401
|
+
BpmnSignatureTypeEnum as by,
|
|
77402
|
+
ButtonTypeEnum as bz,
|
|
77973
77403
|
getProfileByTableType as c,
|
|
77974
|
-
|
|
77975
|
-
|
|
77976
|
-
|
|
77977
|
-
|
|
77978
|
-
|
|
77979
|
-
|
|
77980
|
-
|
|
77981
|
-
|
|
77982
|
-
|
|
77983
|
-
|
|
77984
|
-
|
|
77985
|
-
|
|
77986
|
-
|
|
77987
|
-
|
|
77988
|
-
|
|
77989
|
-
|
|
77990
|
-
|
|
77991
|
-
|
|
77992
|
-
|
|
77993
|
-
|
|
77994
|
-
|
|
77995
|
-
|
|
77996
|
-
|
|
77997
|
-
|
|
77998
|
-
|
|
77999
|
-
|
|
78000
|
-
|
|
78001
|
-
|
|
78002
|
-
|
|
78003
|
-
|
|
78004
|
-
|
|
78005
|
-
|
|
78006
|
-
|
|
78007
|
-
|
|
78008
|
-
|
|
78009
|
-
|
|
78010
|
-
|
|
78011
|
-
|
|
78012
|
-
|
|
78013
|
-
|
|
78014
|
-
|
|
78015
|
-
|
|
78016
|
-
|
|
78017
|
-
|
|
78018
|
-
|
|
78019
|
-
|
|
78020
|
-
|
|
78021
|
-
|
|
78022
|
-
|
|
78023
|
-
|
|
78024
|
-
|
|
78025
|
-
|
|
78026
|
-
|
|
78027
|
-
|
|
78028
|
-
|
|
78029
|
-
|
|
78030
|
-
|
|
78031
|
-
|
|
78032
|
-
|
|
78033
|
-
|
|
78034
|
-
|
|
78035
|
-
|
|
78036
|
-
|
|
78037
|
-
|
|
77404
|
+
F$c as c$,
|
|
77405
|
+
fetchMedProCheckDsData as c0,
|
|
77406
|
+
findRuntimeTableCell as c1,
|
|
77407
|
+
getCheckTableSnapshotKey as c2,
|
|
77408
|
+
getParseRuleConfig as c3,
|
|
77409
|
+
getReinspectionDate as c4,
|
|
77410
|
+
getRenderedRuntimeTableCell as c5,
|
|
77411
|
+
handleOldConfig as c6,
|
|
77412
|
+
hasAnyCheckTableSnapshot as c7,
|
|
77413
|
+
hasByTableCheckTableSnapshot as c8,
|
|
77414
|
+
hasSharedCheckTableSnapshot as c9,
|
|
77415
|
+
SCAN_ROW_CONTENT_FIELDS as cA,
|
|
77416
|
+
F$7 as cB,
|
|
77417
|
+
runRowHandler as cC,
|
|
77418
|
+
F$a as cD,
|
|
77419
|
+
F$9 as cE,
|
|
77420
|
+
FILL_FROM_SOURCE_PRODUCT_OPTION as cF,
|
|
77421
|
+
FILL_FROM_TARGET_MATERIAL_NO_OPTION as cG,
|
|
77422
|
+
FILL_FROM_INVENTORY_OPTION$2 as cH,
|
|
77423
|
+
FILL_FROM_PART_OPTION as cI,
|
|
77424
|
+
FILL_FROM_INVENTORY_OPTION$3 as cJ,
|
|
77425
|
+
TABLE_TYPE$b as cK,
|
|
77426
|
+
FILL_FROM_INVENTORY_OPTION$1 as cL,
|
|
77427
|
+
INVENTORY_BASE_FIELDS as cM,
|
|
77428
|
+
resolveGroupByWarehouse as cN,
|
|
77429
|
+
AUTO_LOAD_READONLY_SELECT_FIELDS as cO,
|
|
77430
|
+
buildFillFromInventoryOption as cP,
|
|
77431
|
+
resolveStocktakeInventoryApi as cQ,
|
|
77432
|
+
F$5 as cR,
|
|
77433
|
+
FILL_FROM_INVENTORY_OPTION as cS,
|
|
77434
|
+
LOCKED_INPUT_FIELDS as cT,
|
|
77435
|
+
composeProductionLotListQuery as cU,
|
|
77436
|
+
F as cV,
|
|
77437
|
+
isProductManuallyEditable as cW,
|
|
77438
|
+
applyFillFromMfgOrderOption as cX,
|
|
77439
|
+
applyFillFromOption as cY,
|
|
77440
|
+
applyFillFromProductOption as cZ,
|
|
77441
|
+
MATERIAL_CONTAINER_ID as c_,
|
|
77442
|
+
isMedProSuite as ca,
|
|
77443
|
+
isTableRowKeyMatch as cb,
|
|
77444
|
+
jsonSchemaUtils as cc,
|
|
77445
|
+
judgeUnique as cd,
|
|
77446
|
+
migrateDiagonalDirectionToVertex as ce,
|
|
77447
|
+
requestMedProCheckDsData as cf,
|
|
77448
|
+
requestNonMedProCheckDsData as cg,
|
|
77449
|
+
sqlUtils as ch,
|
|
77450
|
+
stockCheck as ci,
|
|
77451
|
+
useOnlineFormActionButton as cj,
|
|
77452
|
+
getFieldPlaceholder as ck,
|
|
77453
|
+
FRONT_ROW_KEY as cl,
|
|
77454
|
+
resetTableRowIdentity as cm,
|
|
77455
|
+
q as cn,
|
|
77456
|
+
QUICK_FILL_ALLOWED_FIELDS as co,
|
|
77457
|
+
groupFixedTableRows as cp,
|
|
77458
|
+
processQuickFillRows as cq,
|
|
77459
|
+
getIsGroupEmpty as cr,
|
|
77460
|
+
getAugmentedNamespace as cs,
|
|
77461
|
+
CardControlEnum as ct,
|
|
77462
|
+
EntityModelTypeEnum as cu,
|
|
77463
|
+
RecordNoGenerateEnum as cv,
|
|
77464
|
+
TagTypeEnum as cw,
|
|
77465
|
+
F$3 as cx,
|
|
77466
|
+
FILL_FROM_TARGET_PRODUCT_OPTION as cy,
|
|
77467
|
+
F$6 as cz,
|
|
78038
77468
|
getBusinessProfileByRefModelType as d,
|
|
78039
|
-
|
|
78040
|
-
|
|
78041
|
-
|
|
78042
|
-
|
|
78043
|
-
|
|
78044
|
-
|
|
78045
|
-
|
|
78046
|
-
|
|
78047
|
-
|
|
78048
|
-
|
|
78049
|
-
|
|
78050
|
-
|
|
78051
|
-
|
|
78052
|
-
|
|
78053
|
-
|
|
78054
|
-
|
|
78055
|
-
|
|
78056
|
-
|
|
78057
|
-
|
|
78058
|
-
|
|
78059
|
-
|
|
78060
|
-
|
|
78061
|
-
|
|
78062
|
-
|
|
78063
|
-
|
|
78064
|
-
|
|
78065
|
-
|
|
78066
|
-
|
|
78067
|
-
|
|
78068
|
-
|
|
78069
|
-
|
|
78070
|
-
|
|
78071
|
-
|
|
78072
|
-
|
|
78073
|
-
|
|
78074
|
-
|
|
78075
|
-
|
|
78076
|
-
|
|
78077
|
-
|
|
78078
|
-
|
|
78079
|
-
|
|
78080
|
-
|
|
78081
|
-
|
|
78082
|
-
|
|
78083
|
-
|
|
78084
|
-
|
|
78085
|
-
|
|
78086
|
-
|
|
78087
|
-
|
|
78088
|
-
|
|
78089
|
-
|
|
78090
|
-
|
|
78091
|
-
|
|
78092
|
-
|
|
78093
|
-
|
|
78094
|
-
|
|
78095
|
-
|
|
78096
|
-
|
|
78097
|
-
|
|
78098
|
-
|
|
78099
|
-
|
|
78100
|
-
|
|
78101
|
-
|
|
77469
|
+
CELL_HANDLER_CLASS as d$,
|
|
77470
|
+
PRODUCT_QUICK_SEARCH_FIELDS as d0,
|
|
77471
|
+
PRODUCT_QUICK_SEARCH_EXP as d1,
|
|
77472
|
+
isProductManuallyEditable$1 as d2,
|
|
77473
|
+
applyFillFromMaterialNoOption as d3,
|
|
77474
|
+
applyFillFromProductOption$1 as d4,
|
|
77475
|
+
F$b as d5,
|
|
77476
|
+
FILL_FROM_INVENTORY_OPTION$4 as d6,
|
|
77477
|
+
registerInstance as d7,
|
|
77478
|
+
createEvent as d8,
|
|
77479
|
+
getColumnByProp as d9,
|
|
77480
|
+
DataStore as dA,
|
|
77481
|
+
getSourceItem as dB,
|
|
77482
|
+
getSourceItemVirtualIndexByProp as dC,
|
|
77483
|
+
getColumnType as dD,
|
|
77484
|
+
setSourceByPhysicalIndex as dE,
|
|
77485
|
+
setSourceByVirtualIndex as dF,
|
|
77486
|
+
SelectionStore as dG,
|
|
77487
|
+
cropCellToMax as dH,
|
|
77488
|
+
nextCell as dI,
|
|
77489
|
+
isRowType as dJ,
|
|
77490
|
+
ViewportStore as dK,
|
|
77491
|
+
AndOrButton as dL,
|
|
77492
|
+
ReorderButton as dM,
|
|
77493
|
+
TrashButton as dN,
|
|
77494
|
+
isFilterBtn as dO,
|
|
77495
|
+
ColumnService as dP,
|
|
77496
|
+
MOBILE_CLASS as dQ,
|
|
77497
|
+
SELECTION_BORDER_CLASS as dR,
|
|
77498
|
+
getCellData as dS,
|
|
77499
|
+
getCellEditor as dT,
|
|
77500
|
+
getRange as dU,
|
|
77501
|
+
isRangeSingleCell as dV,
|
|
77502
|
+
codesLetter as dW,
|
|
77503
|
+
calculateRowHeaderSize as dX,
|
|
77504
|
+
ROW_HEADER_TYPE as dY,
|
|
77505
|
+
getScrollbarSize as dZ,
|
|
77506
|
+
FOCUS_CLASS as d_,
|
|
77507
|
+
timeout as da,
|
|
77508
|
+
getVisibleSourceItem as db,
|
|
77509
|
+
getColumns as dc,
|
|
77510
|
+
rowTypes as dd,
|
|
77511
|
+
GroupingRowPlugin as de,
|
|
77512
|
+
StretchColumn as df,
|
|
77513
|
+
isStretchPlugin as dg,
|
|
77514
|
+
AutoSizeColumnPlugin as dh,
|
|
77515
|
+
FilterPlugin as di,
|
|
77516
|
+
ExportFilePlugin as dj,
|
|
77517
|
+
SortingPlugin as dk,
|
|
77518
|
+
ColumnMovePlugin as dl,
|
|
77519
|
+
ThemeService as dm,
|
|
77520
|
+
h as dn,
|
|
77521
|
+
Host as dp,
|
|
77522
|
+
getElement as dq,
|
|
77523
|
+
BasePlugin as dr,
|
|
77524
|
+
reduce as ds,
|
|
77525
|
+
columnTypes as dt,
|
|
77526
|
+
debounce$1 as du,
|
|
77527
|
+
RESIZE_INTERVAL as dv,
|
|
77528
|
+
DimensionStore as dw,
|
|
77529
|
+
gatherTrimmedItems as dx,
|
|
77530
|
+
getColumnSizes as dy,
|
|
77531
|
+
getItemByIndex as dz,
|
|
78102
77532
|
expandAutofillTemplates as e,
|
|
78103
|
-
|
|
78104
|
-
|
|
78105
|
-
|
|
78106
|
-
|
|
78107
|
-
|
|
78108
|
-
|
|
78109
|
-
|
|
78110
|
-
|
|
78111
|
-
|
|
78112
|
-
|
|
78113
|
-
|
|
78114
|
-
|
|
78115
|
-
|
|
78116
|
-
|
|
78117
|
-
|
|
78118
|
-
|
|
78119
|
-
|
|
78120
|
-
|
|
78121
|
-
|
|
78122
|
-
|
|
78123
|
-
|
|
78124
|
-
|
|
78125
|
-
|
|
78126
|
-
|
|
78127
|
-
|
|
78128
|
-
|
|
78129
|
-
|
|
78130
|
-
|
|
78131
|
-
|
|
78132
|
-
|
|
78133
|
-
|
|
78134
|
-
FOCUS_CLASS as eh,
|
|
78135
|
-
CELL_HANDLER_CLASS as ei,
|
|
78136
|
-
TMP_SELECTION_BG_CLASS as ej,
|
|
78137
|
-
getItemByPosition as ek,
|
|
78138
|
-
EDIT_INPUT_WR as el,
|
|
78139
|
-
keyValues as em,
|
|
78140
|
-
isObject as en,
|
|
78141
|
-
DRAGG_TEXT as eo,
|
|
78142
|
-
PSEUDO_GROUP_ITEM as ep,
|
|
78143
|
-
GROUP_EXPANDED as eq,
|
|
78144
|
-
GROUP_DEPTH as er,
|
|
78145
|
-
GROUP_EXPAND_BTN as es,
|
|
78146
|
-
DATA_ROW as et,
|
|
78147
|
-
isGroupingColumn as eu,
|
|
78148
|
-
GROUP_COLUMN_PROP as ev,
|
|
78149
|
-
getCellRaw as ew,
|
|
78150
|
-
DATA_COL as ex,
|
|
78151
|
-
CELL_CLASS as ey,
|
|
78152
|
-
Build as ez,
|
|
77533
|
+
TMP_SELECTION_BG_CLASS as e0,
|
|
77534
|
+
getItemByPosition as e1,
|
|
77535
|
+
EDIT_INPUT_WR as e2,
|
|
77536
|
+
keyValues as e3,
|
|
77537
|
+
isObject as e4,
|
|
77538
|
+
DRAGG_TEXT as e5,
|
|
77539
|
+
PSEUDO_GROUP_ITEM as e6,
|
|
77540
|
+
GROUP_EXPANDED as e7,
|
|
77541
|
+
GROUP_DEPTH as e8,
|
|
77542
|
+
GROUP_EXPAND_BTN as e9,
|
|
77543
|
+
DATA_ROW as ea,
|
|
77544
|
+
isGroupingColumn as eb,
|
|
77545
|
+
GROUP_COLUMN_PROP as ec,
|
|
77546
|
+
getCellRaw as ed,
|
|
77547
|
+
DATA_COL as ee,
|
|
77548
|
+
CELL_CLASS as ef,
|
|
77549
|
+
Build as eg,
|
|
77550
|
+
isRowDragService as eh,
|
|
77551
|
+
DRAG_ICON_CLASS as ei,
|
|
77552
|
+
DRAGGABLE_CLASS as ej,
|
|
77553
|
+
getCellDataParsed as ek,
|
|
77554
|
+
GROUP_EXPAND_EVENT as el,
|
|
77555
|
+
isGrouping as em,
|
|
77556
|
+
HEADER_ROW_CLASS as en,
|
|
77557
|
+
HEADER_ACTUAL_ROW_CLASS as eo,
|
|
77558
|
+
ROW_FOCUSED_CLASS as ep,
|
|
77559
|
+
HEADER_SORTABLE_CLASS as eq,
|
|
77560
|
+
MIN_COL_SIZE as er,
|
|
77561
|
+
FilterButton as es,
|
|
77562
|
+
HeaderCellRenderer as et,
|
|
77563
|
+
HEADER_CLASS as eu,
|
|
78153
77564
|
resolveAutofillToField as f,
|
|
78154
77565
|
getAllDataProfiles as g,
|
|
78155
77566
|
SubTableType as h,
|