@gct-paas/excel 0.1.40-beta.5 → 0.1.40-beta.7
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-BlDgF4NL.js → BaseComponent-ByKSQlX5.js} +2 -2
- package/dist/{VueVideoPlayer-abpwAqu3.js → VueVideoPlayer-D9kpfmiz.js} +2 -2
- package/dist/{align-editor-BdF6r-Gs.js → align-editor-lWVPNKlR.js} +1 -1
- package/dist/{barcode-design-Dqzu8TED.js → barcode-design-zpWBlelw.js} +2 -2
- package/dist/base/index.es.js +352 -110
- package/dist/{diagonal-design-OOLJ1YWE.js → diagonal-design-CzRKVjcY.js} +2 -2
- package/dist/{dynamic-table-action-C__4AVW6.js → dynamic-table-action-DkHb1ST4.js} +150 -150
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BAl7OidW.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js} +578 -521
- package/dist/{edit.utils-CXmmCnxE-CaVD32MC.js → edit.utils-CXmmCnxE-DIhkrimt.js} +1 -1
- package/dist/excel.css +359 -256
- package/dist/{exceljs.min-C3uJ_Ieg.js → exceljs.min-DoNsTxQp.js} +2 -2
- package/dist/{font-editor-BZvGZaYO.js → font-editor-N7060zuX.js} +3 -3
- package/dist/{image-design-Dt_97Q--.js → image-design-fXKNGIm3.js} +2 -2
- package/dist/{index-BOehk-Mo.js → index-7J6OP2x9.js} +2 -2
- package/dist/{index-Bn4BqmG_.js → index-8A45IOjw.js} +2 -2
- package/dist/{index-DMVoiSyn.js → index-8BLKPnwH.js} +1 -1
- package/dist/{index-DzAPpHun.js → index-B5FuofNW.js} +2 -2
- package/dist/{index-DfAWRc7u.js → index-B6fCHnZl.js} +2 -2
- package/dist/{index-CKnArHCM.js → index-BA4zmgdk.js} +2 -2
- package/dist/{index-6_pgVPOb.js → index-BDRyjPGr.js} +651 -450
- package/dist/{index-D2bXGJMB.js → index-BEX6lJX9.js} +2 -2
- package/dist/{index-CwvVx_5V.js → index-BJA3YJns.js} +3 -3
- package/dist/{index-CD04dkRd.js → index-BXxzWXS4.js} +1 -1
- package/dist/{index-Lrse9db3.js → index-Bgh8yfAl.js} +2 -2
- package/dist/{index-C-wSYnoD.js → index-Bh-tmh-F.js} +2 -2
- package/dist/{index-Bxdq78c9.js → index-C4Mlck0_.js} +1 -1
- package/dist/{index-DLx-4gQ_.js → index-C5IwDker.js} +4 -4
- package/dist/{index-Cvj6_0dy.js → index-C6STl6m-.js} +1 -1
- package/dist/{index-DiZHDEas.js → index-CCw8gM1y.js} +1 -1
- package/dist/{index-DJqTfkOe.js → index-CZIuP6b-.js} +2 -2
- package/dist/{index-ZBaLDzvn.js → index-CaojJi0S.js} +1 -1
- package/dist/{index-BcSq5laa.js → index-CbeaPNDv.js} +2 -2
- package/dist/{index-DbN8jrOK.js → index-CfY2WTcN.js} +2 -2
- package/dist/{index-Cy3658Zd.js → index-CtHy6vBq.js} +3 -3
- package/dist/{index-CMzci3SX.js → index-CuHKZOUw.js} +2 -2
- package/dist/{index-Bes3atoZ.js → index-Cza077GN.js} +2 -2
- package/dist/{index-DgvOxMoA.js → index-DGyygsxH.js} +2 -2
- package/dist/{index-DhJQOZHh.js → index-DSUDSbPf.js} +1 -1
- package/dist/{index-Cy17m87b.js → index-DeEz6LI3.js} +2 -2
- package/dist/{index-B2xCe29Z.js → index-DgbgqO-w.js} +1 -1
- package/dist/{index-BGHQz2Uj.js → index-DnHsEIgl.js} +2 -2
- package/dist/{index-D4lTMizD.js → index-Xx36PP2U.js} +2 -2
- package/dist/{index-CVJadZzs.js → index-a0vY4sVG.js} +2 -2
- package/dist/{index--9zZnmyE.js → index-bRZUDA7R.js} +1 -1
- package/dist/{index-NiQurze3.js → index-gEI8m-b5.js} +1 -1
- package/dist/{index-DVFXRZRw.js → index-pSRRsoDQ.js} +4 -4
- package/dist/{index-BDvLu-0F.js → index-tjo9dn4X.js} +2 -2
- package/dist/{index-DF5OI_Xj.js → index-yf50oYV1.js} +3 -3
- package/dist/index.es.js +2 -2
- package/dist/{mb-render-CDFmykM_.js → mb-render-BCtvoXM-.js} +8 -2
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-Db5Hce6z.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DbNfQIzD.js} +1 -1
- package/dist/{pagination-design-Dz7y8YKu.js → pagination-design-BLhJhoHb.js} +2 -2
- package/dist/paper-widget-design-B8gKgZep.js +4 -0
- package/dist/{print-runtime-instance-Bq1p758u.js → print-runtime-instance-v1jzD3oO.js} +1 -1
- package/dist/{print-snapshot-renderer-BWVZ-Lql.js → print-snapshot-renderer-BSf76qD7.js} +3 -3
- package/dist/{qrcode-design-Dq0tczvD.js → qrcode-design-D9f0hRKd.js} +1 -1
- package/dist/{revo-grid.entry-BKZT_dju.js → revo-grid.entry-NMojEZjd.js} +1 -1
- package/dist/{revogr-attribution_7.entry-CXdkYl1q.js → revogr-attribution_7.entry-jR0LwEie.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-Dq9k6E4q.js → revogr-clipboard_3.entry-DMQ65QLh.js} +2 -2
- package/dist/{revogr-data_4.entry-CpBkj9S_.js → revogr-data_4.entry-Buvf7dRf.js} +2 -2
- package/dist/{revogr-filter-panel.entry-Bu5hYWK7.js → revogr-filter-panel.entry-TLjszdsH.js} +1 -1
- package/dist/seal-design-B80mv8SJ.js +4 -0
- package/dist/{serialnumber-design-DUqW6M9C.js → serialnumber-design-DsSZwN3t.js} +1 -1
- package/dist/shared/index.es.js +9 -9
- package/dist/{single-field-drop-MXmkrdjF.js → single-field-drop-DRMCsh_s.js} +2 -2
- package/dist/{size-editor-DCVa84rA.js → size-editor-m8uyQ1bU.js} +1 -1
- package/dist/src/domain/document-business/business/product-release/profile.d.ts +2 -0
- package/dist/src/domain/document-business/business/product-release/service.d.ts +2 -0
- package/dist/src/domain/document-business/index.d.ts +2 -0
- package/dist/src/domain/document-business/registry.d.ts +2 -0
- package/dist/src/domain/document-business/runtime/field-query-runtime.d.ts +4 -0
- package/dist/src/domain/document-business/types.d.ts +24 -0
- package/dist/src/domain/field/number/product-release-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/query-filter.d.ts +15 -0
- package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +13 -11
- package/dist/src/domain/table/business/material/material-substitution/runtime/select-loaders.d.ts +8 -0
- package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +3 -3
- package/dist/src/nocode-base/src/hooks/form-model/form-model-controller.d.ts +2 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/initialize-autofill.d.ts +17 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/object-validation-controller.d.ts +24 -0
- package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +1 -0
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +3 -0
- package/dist/src/nocode-base/src/interface/ref-loader.d.ts +12 -1
- package/dist/src/nocode-base/src/interface/render.d.ts +3 -1
- package/dist/src/nocode-base/src/interface/transform.d.ts +9 -1
- package/dist/src/nocode-base/src/types/common/base.d.ts +2 -0
- package/dist/src/online-form/src/views/__cell_widgets__/cell-widget-design.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-option-select.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +1 -0
- package/dist/src/shared/enum/field-type.d.ts +7 -2
- package/dist/src/shared/utils/withRequestCache.d.ts +27 -0
- package/dist/{sub-table-factory-BBiAj7oz.js → sub-table-factory-BxxIXXCZ.js} +194 -85
- package/dist/{text-design-BfXr3TcH.js → text-design-DgOV0ZhV.js} +2 -2
- package/dist/{throttle-Cpk1LoGk-BtY6yO1U.js → throttle-Cpk1LoGk-Dj14U5ox.js} +1 -1
- package/dist/{timediff-design-BF-mVD2d.js → timediff-design-C0zYdIQI.js} +1 -1
- package/dist/{trace-like-wrapper-2AsEoSS7.js → trace-like-wrapper-XB73ltP9.js} +2 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-D8_zt9JM.js → value-editor.vue_vue_type_style_index_0_lang-CRFXw695.js} +2 -2
- package/dist/web-render/index.es.js +3 -3
- package/dist/{widget-barcode-BMnwSzpx.js → widget-barcode-BLKBY_Dh.js} +4 -4
- package/dist/{widget-diagonal-iuAFZn-R.js → widget-diagonal-LVxcpB3b.js} +3 -3
- package/dist/{widget-image-sZeIt4K6.js → widget-image-Cch0ImSI.js} +5 -5
- package/dist/{widget-line-izrJUAAT.js → widget-line-CUSNrxgG.js} +2 -2
- package/dist/{widget-pagination-CTANdU2l.js → widget-pagination-CM1S6Ytp.js} +5 -5
- package/dist/{widget-power-OZD7bTxW.js → widget-power-DQJ8F2R7.js} +3 -3
- package/dist/{widget-qrcode-xvyklot3.js → widget-qrcode-BmnaFfc4.js} +3 -3
- package/dist/{widget-rangelimit-BZhTuRkT.js → widget-rangelimit-Db0ZX6Fb.js} +3 -3
- package/dist/{widget-serialnumber-BwUHV475.js → widget-serialnumber-BEOWsFs1.js} +1 -1
- package/dist/{widget-text-B8MzTxa3.js → widget-text-DZFAhPxy.js} +5 -5
- package/dist/{widget-timediff-YAH8bbso.js → widget-timediff-C_Nh7uw-.js} +2 -2
- package/package.json +2 -2
- package/dist/paper-widget-design-BlIbv2tj.js +0 -4
- package/dist/seal-design-LHZWDjEb.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowReactive } from "vue";
|
|
2
|
-
import { aI as SubTableActionMenuTypeEnum, aJ as getMenuByAction, aK as SubTableActionEnum, aL as resolveScanFillData, ao as SubTableCore, aM as buildDefaultMapFromProfile, aN as buildFieldStatusFromProfile, aO as getRowHandlersForFieldChange, aP as getInsertSubMenu, aQ as resolveScanAdjustType, aR as resolveScanQty, aS as toDateOnly, aT as getCopySubMenu, aU as resolveScanParsedValue, aV as isProductBatchEmptyRow } from "./dynamic-table-action-
|
|
3
|
-
import { p as api,
|
|
2
|
+
import { aI as SubTableActionMenuTypeEnum, aJ as getMenuByAction, aK as SubTableActionEnum, aL as resolveScanFillData, ao as SubTableCore, aM as buildDefaultMapFromProfile, aN as buildFieldStatusFromProfile, aO as getRowHandlersForFieldChange, aP as getInsertSubMenu, aQ as resolveScanAdjustType, aR as resolveScanQty, aS as toDateOnly, aT as getCopySubMenu, aU as resolveScanParsedValue, aV as isProductBatchEmptyRow } from "./dynamic-table-action-DkHb1ST4.js";
|
|
3
|
+
import { p as api, cQ as F$1, aM as resolveLotDisplayLabel, cR as FILL_FROM_TARGET_PRODUCT_OPTION, aY as resolveLotRecordByValue, b0 as ProductionIdentificationTypeEnum, aW as buildLotSnListQuery, cS as F$2, cT as SCAN_ROW_CONTENT_FIELDS, cU as F$3, cV as runRowHandler, c as getProfileByTableType, b as isBusinessSubTableProfile, cW as F$4, cX as F$5, cY as FILL_FROM_SOURCE_PRODUCT_OPTION, cZ as FILL_FROM_TARGET_MATERIAL_NO_OPTION, c_ as FILL_FROM_INVENTORY_OPTION, c$ as FILL_FROM_PART_OPTION, d0 as FILL_FROM_INVENTORY_OPTION$1, d1 as TABLE_TYPE, d2 as FILL_FROM_INVENTORY_OPTION$2, b6 as F$6, d3 as INVENTORY_BASE_FIELDS, d4 as resolveGroupByWarehouse, d5 as AUTO_LOAD_READONLY_SELECT_FIELDS, b5 as STOCKTAKE_DIMENSION, b2 as getParseRuleInfo, d6 as buildFillFromInventoryOption, c5 as calcFillData, d7 as resolveStocktakeInventoryApi, b3 as getParseRuleValue, d8 as F$7, d9 as FILL_FROM_INVENTORY_OPTION$3, da as LOCKED_INPUT_FIELDS, cb as extractKeywordFromQueryData, db as composeProductionLotListQuery, dc as F$8, dd as isProductManuallyEditable, de as applyFillFromMfgOrderOption, df as applyFillFromOption$1, dg as applyFillFromProductOption, aV as LOT_CONTAINER_ROLE, dh as MATERIAL_CONTAINER_ID, di as F$9, dj as PRODUCT_QUICK_SEARCH_FIELDS, dk as PRODUCT_QUICK_SEARCH_EXP, dl as isProductManuallyEditable$1, dm as applyFillFromMaterialNoOption, dn as applyFillFromProductOption$1, dp as F$a, dq as FILL_FROM_INVENTORY_OPTION$4, Z as FormTypeEnum, aH as transformUtils, h as SubTableType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
4
4
|
import { has, merge } from "lodash-es";
|
|
5
5
|
class RuntimeInstanceController {
|
|
6
6
|
context;
|
|
@@ -284,6 +284,152 @@ async function matchProductionIdentificationScanRecords(parsed) {
|
|
|
284
284
|
);
|
|
285
285
|
return unwrapBizServiceList(result);
|
|
286
286
|
}
|
|
287
|
+
function isBlank$4(value) {
|
|
288
|
+
return value === void 0 || value === null || value === "";
|
|
289
|
+
}
|
|
290
|
+
function flattenMaterialConsumeRecord(item) {
|
|
291
|
+
const result = { ...item };
|
|
292
|
+
for (const field of ["product_id_.name_", "product_id_.code_", "product_id_.spec_"]) {
|
|
293
|
+
result[field] = item[field] ?? item._OPCT?.[field] ?? item.__FOREIGN__?.[field];
|
|
294
|
+
}
|
|
295
|
+
return result;
|
|
296
|
+
}
|
|
297
|
+
const emptyResult = () => ({ data: [], options: [], finished: true, totalCount: 0, totalPage: 0 });
|
|
298
|
+
function buildTargetMaterialSelectionPatch(record) {
|
|
299
|
+
const hasBatch = !isBlank$4(record.name_);
|
|
300
|
+
const label = hasBatch ? resolveLotDisplayLabel(record) : "";
|
|
301
|
+
return {
|
|
302
|
+
...Object.fromEntries(
|
|
303
|
+
FILL_FROM_TARGET_PRODUCT_OPTION.map(({ optionField, toField }) => [
|
|
304
|
+
toField,
|
|
305
|
+
record[optionField]
|
|
306
|
+
])
|
|
307
|
+
),
|
|
308
|
+
[F$1.targetMaterialNoId]: hasBatch ? record.id_ : void 0,
|
|
309
|
+
[F$1.targetMaterialNoLb]: label ? JSON.stringify([label]) : void 0
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
function createMaterialConsumeHistoryLoader(rowData, fieldName = "SN") {
|
|
313
|
+
const beforeOpen = async () => {
|
|
314
|
+
const value = rowData[F$1.productionContainer];
|
|
315
|
+
if (isBlank$4(value)) {
|
|
316
|
+
return {
|
|
317
|
+
allowed: false,
|
|
318
|
+
message: window.$t("sys.pageDesigner.pleaseSelectFirstSth", { sth: fieldName })
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
const record = await resolveLotRecordByValue({ id: value });
|
|
322
|
+
if (rowData[F$1.productionContainer] !== value) return { allowed: false };
|
|
323
|
+
const type = record?.production_identification_type_;
|
|
324
|
+
const message = type === ProductionIdentificationTypeEnum.SN ? "" : type === ProductionIdentificationTypeEnum.LOT ? `${fieldName}选择的是 LOT 类型的批次,请选择 SN 类型的批次` : `无法确认${fieldName}的批次信息,请重新选择`;
|
|
325
|
+
return { allowed: !message, message };
|
|
326
|
+
};
|
|
327
|
+
const loader = async ({
|
|
328
|
+
mode,
|
|
329
|
+
queryData = {},
|
|
330
|
+
pageNo = 1,
|
|
331
|
+
pageSize = 20,
|
|
332
|
+
ids = []
|
|
333
|
+
}) => {
|
|
334
|
+
const value = rowData[F$1.productionContainer];
|
|
335
|
+
const operation = rowData[F$1.routingOperation];
|
|
336
|
+
if (isBlank$4(value)) return emptyResult();
|
|
337
|
+
const validation = await beforeOpen();
|
|
338
|
+
const isCurrent = () => rowData[F$1.productionContainer] === value && rowData[F$1.routingOperation] === operation;
|
|
339
|
+
if (!validation.allowed || !isCurrent()) return emptyResult();
|
|
340
|
+
const query = Object.fromEntries(
|
|
341
|
+
Object.entries(queryData).filter(
|
|
342
|
+
([, item]) => Array.isArray(item) ? item.length > 0 : !isBlank$4(item)
|
|
343
|
+
)
|
|
344
|
+
);
|
|
345
|
+
query["production_identification_id_.eq"] = value;
|
|
346
|
+
delete query["routing_operation_id_.eq"];
|
|
347
|
+
if (!isBlank$4(operation)) query["routing_operation_id_.eq"] = operation;
|
|
348
|
+
if (mode === "byIds" && ids.length) query["product_id_.in"] = ids;
|
|
349
|
+
const keys = Object.keys(query);
|
|
350
|
+
const res = await api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey(
|
|
351
|
+
{ modelCategory: "entity", modelKey: "em_material_consume", bsKey: "listByPage" },
|
|
352
|
+
{},
|
|
353
|
+
{
|
|
354
|
+
foreignFields: ["product_id_.spec_", "product_id_.code_", "product_id_.name_"],
|
|
355
|
+
query,
|
|
356
|
+
exp: keys.length > 1 ? `AND(${keys.join(",")})` : keys[0] ?? "",
|
|
357
|
+
pageNo,
|
|
358
|
+
pageSize
|
|
359
|
+
}
|
|
360
|
+
);
|
|
361
|
+
if (!isCurrent()) return emptyResult();
|
|
362
|
+
const rows = (Array.isArray(res) ? res : res?.data ?? []).map(flattenMaterialConsumeRecord);
|
|
363
|
+
const totalCount = Number(res?.totalCount ?? rows.length);
|
|
364
|
+
const totalPage = Number(res?.totalPage ?? Math.max(1, Math.ceil(totalCount / pageSize)));
|
|
365
|
+
return {
|
|
366
|
+
data: rows,
|
|
367
|
+
options: rows.map((item) => ({
|
|
368
|
+
label: item["product_id_.name_"] ?? item.material_name_ ?? String(item.product_id_ ?? ""),
|
|
369
|
+
value: item.product_id_,
|
|
370
|
+
disabled: !!item.deleted_,
|
|
371
|
+
_item: item
|
|
372
|
+
})),
|
|
373
|
+
finished: mode === "byIds" || pageNo >= totalPage,
|
|
374
|
+
totalCount,
|
|
375
|
+
totalPage
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
loader.beforeOpen = beforeOpen;
|
|
379
|
+
return loader;
|
|
380
|
+
}
|
|
381
|
+
function createTargetMaterialLoader(rowData) {
|
|
382
|
+
const loader = async ({
|
|
383
|
+
mode,
|
|
384
|
+
queryData = {},
|
|
385
|
+
pageNo = 1,
|
|
386
|
+
pageSize = 20,
|
|
387
|
+
ids = []
|
|
388
|
+
}) => {
|
|
389
|
+
const keyword = queryData["name_.iLike"] ?? queryData["name_.like"] ?? "";
|
|
390
|
+
const filters = Object.fromEntries(
|
|
391
|
+
Object.entries(queryData).filter(
|
|
392
|
+
([key, value]) => !key.endsWith(".like") && !key.endsWith(".iLike") && !isBlank$4(value) && (!Array.isArray(value) || value.length > 0)
|
|
393
|
+
)
|
|
394
|
+
);
|
|
395
|
+
if (mode === "byIds" && ids.length) {
|
|
396
|
+
if (!isBlank$4(rowData[F$1.targetMaterialNoId])) {
|
|
397
|
+
filters["id_.eq"] = rowData[F$1.targetMaterialNoId];
|
|
398
|
+
} else {
|
|
399
|
+
filters["product_id_.in"] = ids;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
const { queryData: query, exp } = buildLotSnListQuery(keyword, filters);
|
|
403
|
+
const res = await api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey(
|
|
404
|
+
{
|
|
405
|
+
modelCategory: "entity",
|
|
406
|
+
modelKey: "em_production_identification",
|
|
407
|
+
bsKey: "biz_get_production_identification"
|
|
408
|
+
},
|
|
409
|
+
{},
|
|
410
|
+
{ query, exp, pageNo, pageSize }
|
|
411
|
+
);
|
|
412
|
+
const rows = Array.isArray(res) ? res : res?.data ?? [];
|
|
413
|
+
const totalCount = Number(res?.totalCount ?? rows.length);
|
|
414
|
+
const totalPage = Number(res?.totalPage ?? Math.max(1, Math.ceil(totalCount / pageSize)));
|
|
415
|
+
return {
|
|
416
|
+
data: rows,
|
|
417
|
+
options: rows.map((item) => ({
|
|
418
|
+
label: item.product_id_name_ ?? String(item.product_id_ ?? ""),
|
|
419
|
+
value: item.product_id_,
|
|
420
|
+
disabled: !!item.deleted_,
|
|
421
|
+
_item: item
|
|
422
|
+
})),
|
|
423
|
+
finished: mode === "byIds" || pageNo >= totalPage,
|
|
424
|
+
totalCount,
|
|
425
|
+
totalPage
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
loader.getSelectedKey = () => rowData[F$1.targetMaterialNoId];
|
|
429
|
+
loader.getOptionKey = (option) => option._item?.id_ ?? option.value;
|
|
430
|
+
loader.getSelectionPatch = buildTargetMaterialSelectionPatch;
|
|
431
|
+
return loader;
|
|
432
|
+
}
|
|
287
433
|
class ProfileDrivenSubTableCore extends SubTableCore {
|
|
288
434
|
get profile() {
|
|
289
435
|
const profile = getProfileByTableType(this.ctx.widget.props.tableType);
|
|
@@ -345,64 +491,6 @@ const MATERIAL_CONSUME_HISTORY_DISPLAY_FIELDS = [
|
|
|
345
491
|
{ key: "material_name_", name: "物料批号" },
|
|
346
492
|
{ key: "qty_consumed_", name: "已消耗数量" }
|
|
347
493
|
];
|
|
348
|
-
function getForeignProductValue(item, field) {
|
|
349
|
-
return item[field] ?? item._OPCT?.[field] ?? item.__FOREIGN__?.[field];
|
|
350
|
-
}
|
|
351
|
-
function flattenMaterialConsumeRecord(item) {
|
|
352
|
-
return {
|
|
353
|
-
...item,
|
|
354
|
-
"product_id_.name_": getForeignProductValue(item, "product_id_.name_"),
|
|
355
|
-
"product_id_.code_": getForeignProductValue(item, "product_id_.code_"),
|
|
356
|
-
"product_id_.spec_": getForeignProductValue(item, "product_id_.spec_")
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
function hasQueryValue(value) {
|
|
360
|
-
if (Array.isArray(value)) return value.length > 0;
|
|
361
|
-
return !isBlank$3(value);
|
|
362
|
-
}
|
|
363
|
-
function createMaterialConsumeHistoryLoader() {
|
|
364
|
-
return async ({ mode, queryData = {}, pageNo = 1, pageSize = 20, ids = [] }) => {
|
|
365
|
-
const query = Object.fromEntries(
|
|
366
|
-
Object.entries(queryData).filter(([, value]) => hasQueryValue(value))
|
|
367
|
-
);
|
|
368
|
-
if (mode === "byIds" && ids.length) {
|
|
369
|
-
query["product_id_.in"] = ids;
|
|
370
|
-
}
|
|
371
|
-
const queryKeys = Object.keys(query);
|
|
372
|
-
const exp = queryKeys.length > 1 ? `AND(${queryKeys.join(",")})` : queryKeys.length === 1 ? queryKeys[0] : "";
|
|
373
|
-
const res = await api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey(
|
|
374
|
-
{
|
|
375
|
-
modelCategory: "entity",
|
|
376
|
-
modelKey: "em_material_consume",
|
|
377
|
-
bsKey: "listByPage"
|
|
378
|
-
},
|
|
379
|
-
{},
|
|
380
|
-
{
|
|
381
|
-
foreignFields: ["product_id_.spec_", "product_id_.code_", "product_id_.name_"],
|
|
382
|
-
query,
|
|
383
|
-
exp,
|
|
384
|
-
pageNo,
|
|
385
|
-
pageSize
|
|
386
|
-
}
|
|
387
|
-
);
|
|
388
|
-
const rows = (Array.isArray(res) ? res : res?.data ?? []).map(flattenMaterialConsumeRecord);
|
|
389
|
-
const totalCount = Number(res?.totalCount ?? rows.length);
|
|
390
|
-
const totalPage = Number(res?.totalPage ?? Math.max(1, Math.ceil(totalCount / pageSize)));
|
|
391
|
-
const options = rows.map((item) => ({
|
|
392
|
-
label: getForeignProductValue(item, "product_id_.name_") ?? item.material_name_ ?? String(item.product_id_ ?? ""),
|
|
393
|
-
value: item.product_id_,
|
|
394
|
-
disabled: !!item.deleted_,
|
|
395
|
-
_item: item
|
|
396
|
-
}));
|
|
397
|
-
return {
|
|
398
|
-
data: rows,
|
|
399
|
-
options,
|
|
400
|
-
finished: mode === "byIds" || pageNo >= totalPage,
|
|
401
|
-
totalCount,
|
|
402
|
-
totalPage
|
|
403
|
-
};
|
|
404
|
-
};
|
|
405
|
-
}
|
|
406
494
|
function applyAllocatePartTd(params, partField, mode, inventoryBinding) {
|
|
407
495
|
const { field, tdHandler } = params;
|
|
408
496
|
if (field !== partField) return;
|
|
@@ -486,21 +574,21 @@ class DevicePartConsumeTableCore extends ProfileDrivenSubTableCore {
|
|
|
486
574
|
return this.factory.ctx.paramsConfig?.warehouseId;
|
|
487
575
|
}
|
|
488
576
|
handleFieldTd = (params) => {
|
|
489
|
-
applyAllocatePartTd(params, F$
|
|
490
|
-
formField: F$
|
|
577
|
+
applyAllocatePartTd(params, F$2.part, "inventory", {
|
|
578
|
+
formField: F$2.inventory,
|
|
491
579
|
optionField: "id_"
|
|
492
580
|
});
|
|
493
581
|
super.handleFieldTd(params);
|
|
494
582
|
};
|
|
495
583
|
calcFieldQuery = (params) => {
|
|
496
|
-
if (params.field === F$
|
|
584
|
+
if (params.field === F$2.part) {
|
|
497
585
|
return { warehouse_id_: this.warehouseId };
|
|
498
586
|
}
|
|
499
587
|
};
|
|
500
588
|
handleChange(params) {
|
|
501
589
|
super.handleChange(params);
|
|
502
590
|
const { field, value, option, rowData } = params;
|
|
503
|
-
if (field !== F$
|
|
591
|
+
if (field !== F$2.part || isBlank$3(value) || !option) return;
|
|
504
592
|
applyOptionFill(rowData, option, FILL_FROM_INVENTORY_OPTION$2);
|
|
505
593
|
}
|
|
506
594
|
}
|
|
@@ -512,14 +600,38 @@ class MaterialSubstitutionTableCore extends ProfileDrivenSubTableCore {
|
|
|
512
600
|
}
|
|
513
601
|
handleFieldTd = (params) => {
|
|
514
602
|
const { field, tdHandler } = params;
|
|
515
|
-
if (field === F$
|
|
603
|
+
if (field === F$1.targetProduct) {
|
|
604
|
+
const rules = tdHandler.td.cellWidget.props.autofillRules;
|
|
605
|
+
if (rules) {
|
|
606
|
+
tdHandler.mergeTd({
|
|
607
|
+
cellWidget: {
|
|
608
|
+
props: {
|
|
609
|
+
autofillRules: rules.filter(
|
|
610
|
+
(rule) => rule.fromField !== "qty_consumed_" || rule.toField !== F$1.targetQtyConsumed
|
|
611
|
+
)
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
if (field === F$1.sourceProduct || field === F$1.targetProduct) {
|
|
516
618
|
tdHandler.mergeTd({
|
|
517
619
|
cellWidget: {
|
|
518
620
|
props: {
|
|
519
|
-
displayFields: MATERIAL_CONSUME_HISTORY_DISPLAY_FIELDS
|
|
621
|
+
displayFields: field === F$1.sourceProduct ? MATERIAL_CONSUME_HISTORY_DISPLAY_FIELDS : [
|
|
622
|
+
{ key: "name_", name: "LOT/SN" },
|
|
623
|
+
{ key: "product_id_code_", name: "物料编码" },
|
|
624
|
+
{ key: "product_id_name_", name: "物料名称" },
|
|
625
|
+
{ key: "product_id_spec_", name: "物料规格" }
|
|
626
|
+
],
|
|
520
627
|
quickSearchable: true,
|
|
521
|
-
quickSearchField: ["material_name_.
|
|
522
|
-
|
|
628
|
+
quickSearchField: field === F$1.sourceProduct ? ["material_name_.iLike"] : [
|
|
629
|
+
"name_.iLike",
|
|
630
|
+
"related_parent_name_.iLike",
|
|
631
|
+
"product_id_code_.iLike",
|
|
632
|
+
"product_id_name_.iLike",
|
|
633
|
+
"spec_.iLike"
|
|
634
|
+
],
|
|
523
635
|
customRefTableMode: "flat",
|
|
524
636
|
newSpecificConfig: { newOptions: [] }
|
|
525
637
|
}
|
|
@@ -529,20 +641,22 @@ class MaterialSubstitutionTableCore extends ProfileDrivenSubTableCore {
|
|
|
529
641
|
super.handleFieldTd(params);
|
|
530
642
|
};
|
|
531
643
|
calcFieldQuery = ({ field, rowData }) => {
|
|
532
|
-
if (field !== F$
|
|
644
|
+
if (field !== F$1.sourceProduct) return;
|
|
533
645
|
const query = {};
|
|
534
|
-
if (!isBlank$3(rowData[F$
|
|
535
|
-
query["production_identification_id_.eq"] = rowData[F$
|
|
646
|
+
if (!isBlank$3(rowData[F$1.productionContainer])) {
|
|
647
|
+
query["production_identification_id_.eq"] = rowData[F$1.productionContainer];
|
|
536
648
|
}
|
|
537
|
-
if (!isBlank$3(rowData[F$
|
|
538
|
-
query["routing_operation_id_.eq"] = rowData[F$
|
|
649
|
+
if (!isBlank$3(rowData[F$1.routingOperation])) {
|
|
650
|
+
query["routing_operation_id_.eq"] = rowData[F$1.routingOperation];
|
|
539
651
|
}
|
|
540
652
|
return query;
|
|
541
653
|
};
|
|
542
|
-
calcFieldDataSource = ({ field }) => {
|
|
543
|
-
if (field === F$
|
|
544
|
-
|
|
654
|
+
calcFieldDataSource = ({ field, rowData }) => {
|
|
655
|
+
if (field === F$1.sourceProduct) {
|
|
656
|
+
const fieldName = this.formModelController?.getSubModelFields(this.subModelKey)?.find((item) => item.key === F$1.productionContainer)?.name;
|
|
657
|
+
return createMaterialConsumeHistoryLoader(rowData, fieldName);
|
|
545
658
|
}
|
|
659
|
+
if (field === F$1.targetProduct) return createTargetMaterialLoader(rowData);
|
|
546
660
|
};
|
|
547
661
|
handleChange(params) {
|
|
548
662
|
super.handleChange(params);
|
|
@@ -550,7 +664,7 @@ class MaterialSubstitutionTableCore extends ProfileDrivenSubTableCore {
|
|
|
550
664
|
if (isBlank$3(value) || !option) return;
|
|
551
665
|
const source = resolveOptionRecord$1(option);
|
|
552
666
|
if (!source) return;
|
|
553
|
-
if (field === F$
|
|
667
|
+
if (field === F$1.sourceProduct) {
|
|
554
668
|
applyOptionFill(
|
|
555
669
|
rowData,
|
|
556
670
|
flattenMaterialConsumeRecord(source),
|
|
@@ -558,16 +672,11 @@ class MaterialSubstitutionTableCore extends ProfileDrivenSubTableCore {
|
|
|
558
672
|
);
|
|
559
673
|
return;
|
|
560
674
|
}
|
|
561
|
-
if (field === F$
|
|
562
|
-
|
|
563
|
-
rowData[F$2.targetMaterialNoId] = void 0;
|
|
564
|
-
rowData[F$2.targetMaterialNoLb] = void 0;
|
|
565
|
-
for (const { optionField, toField } of FILL_FROM_TARGET_PRODUCT_OPTION) {
|
|
566
|
-
rowData[toField] = record[optionField];
|
|
567
|
-
}
|
|
675
|
+
if (field === F$1.targetProduct) {
|
|
676
|
+
Object.assign(rowData, buildTargetMaterialSelectionPatch(source));
|
|
568
677
|
return;
|
|
569
678
|
}
|
|
570
|
-
if (field === F$
|
|
679
|
+
if (field === F$1.targetMaterialNo) {
|
|
571
680
|
applyOptionFill(rowData, source, FILL_FROM_TARGET_MATERIAL_NO_OPTION);
|
|
572
681
|
}
|
|
573
682
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, createCommentVNode, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
import { pick } from "lodash-es";
|
|
3
|
-
import { R as PaperWidgeValueType, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
+
import { R as PaperWidgeValueType, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "@gct-paas/form-base";
|
|
6
6
|
import "ant-design-vue";
|
|
7
|
-
import { u as useSpreadSheet, h as useModelFields } from "./index-
|
|
7
|
+
import { u as useSpreadSheet, h as useModelFields } from "./index-BDRyjPGr.js";
|
|
8
8
|
const _hoisted_1 = { class: "ws-pre-wrap" };
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "text-design",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getScrollDimension } from "./viewport.helpers-CoCAvmZs-D_JddDC6.js";
|
|
2
|
-
import {
|
|
2
|
+
import { en as isObject, dN as debounce } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
3
3
|
const initialParams = {
|
|
4
4
|
contentSize: 0,
|
|
5
5
|
clientSize: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, toDisplayString, unref } from "vue";
|
|
2
|
-
import { an as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { an as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "@gct-paas/form-base";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { get, pick } from "lodash-es";
|
|
2
|
-
import { F as FIELD_TYPE,
|
|
2
|
+
import { F as FIELD_TYPE, b1 as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "@gct-paas/form-base";
|
|
6
6
|
import "ant-design-vue";
|
|
7
|
-
import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index-
|
|
7
|
+
import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index-BDRyjPGr.js";
|
|
8
8
|
function getTraceLikeSelectProps(data) {
|
|
9
9
|
const isSubtableMfgOrder = !!data.info.subModelKey && (data.info.bizType === FIELD_TYPE.MFG_ORDER || data.info.fieldType === FIELD_TYPE.MFG_ORDER);
|
|
10
10
|
const displayFields = (() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode, unref, createCommentVNode } from "vue";
|
|
2
2
|
import { pick } from "lodash-es";
|
|
3
|
-
import { h as useModelFields, u as useSpreadSheet, m as useDrop, P as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, S as SingleDrop, o as getFieldIcon } from "./index-
|
|
4
|
-
import { R as PaperWidgeValueType, au as ExpressionModeEnum, aw as ExpressionTabEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
+
import { h as useModelFields, u as useSpreadSheet, m as useDrop, P as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, S as SingleDrop, o as getFieldIcon } from "./index-BDRyjPGr.js";
|
|
4
|
+
import { R as PaperWidgeValueType, au as ExpressionModeEnum, aw as ExpressionTabEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "@gct-paas/form-base";
|
|
7
7
|
import "ant-design-vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as ModalWrapper, _ as _sfc_main$3 } from "../index-
|
|
2
|
-
import { A, B, P, S, j, h, i, u } from "../index-
|
|
1
|
+
import { M as ModalWrapper, _ as _sfc_main$3 } from "../index-DnHsEIgl.js";
|
|
2
|
+
import { A, B, P, S, j, h, i, u } from "../index-DnHsEIgl.js";
|
|
3
3
|
import { message } from "ant-design-vue";
|
|
4
|
-
import { K as useModal, a9 as _export_sfc, p as api,
|
|
4
|
+
import { K as useModal, a9 as _export_sfc, p as api, ch as getParseRuleConfig, b3 as getParseRuleValue, c5 as calcFillData, a_ as getLotLockedReason } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
5
5
|
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeClass, createVNode, createTextVNode, reactive, onMounted, createBlock, unref, withCtx, withKeys, withDirectives, createCommentVNode, vShow, computed, mergeProps, toHandlers } from "vue";
|
|
6
6
|
import { cloneDeep } from "lodash-es";
|
|
7
7
|
import "dayjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
|
-
import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { q as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-BDRyjPGr.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-CRFXw695.js";
|
|
4
|
+
import { q as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "dayjs";
|
|
7
7
|
import "@gct-paas/form-base";
|
|
8
8
|
import "ant-design-vue";
|
|
9
|
-
import { A as AlignEditor } from "./align-editor-
|
|
9
|
+
import { A as AlignEditor } from "./align-editor-lWVPNKlR.js";
|
|
10
10
|
const _hoisted_1 = { class: "pl-6px" };
|
|
11
11
|
const _hoisted_2 = { class: "flex justify-end" };
|
|
12
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createElementVNode, toDisplayString, createVNode, watch, createElementBlock, Fragment, createCommentVNode } from "vue";
|
|
2
|
-
import { F as FormItem, q as SelectEx } from "./index-
|
|
2
|
+
import { F as FormItem, q as SelectEx } from "./index-BDRyjPGr.js";
|
|
3
3
|
import { defaults } from "lodash-es";
|
|
4
|
-
import { F as FIELD_TYPE, a9 as _export_sfc, ak as DiagonalDirection, ao as DiagonalVertex,
|
|
4
|
+
import { F as FIELD_TYPE, a9 as _export_sfc, ak as DiagonalDirection, ao as DiagonalVertex, cs as migrateDiagonalDirectionToVertex } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "@gct-paas/form-base";
|
|
7
7
|
import { message } from "ant-design-vue";
|
|
8
8
|
import { a as useNamespace } from "./AntdIcon-DCIaV352.js";
|
|
9
|
-
import { S as SingleFieldDrop } from "./single-field-drop-
|
|
9
|
+
import { S as SingleFieldDrop } from "./single-field-drop-DRMCsh_s.js";
|
|
10
10
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
11
11
|
__name: "diagonal-name-editor",
|
|
12
12
|
props: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent, reactive, ref, computed, watchEffect, createVNode, unref, createTextVNode, render, resolveComponent, openBlock, createElementBlock, Fragment, withCtx, createElementVNode, withModifiers, createCommentVNode, toDisplayString, renderList, createBlock } from "vue";
|
|
2
|
-
import { L as LeftOutlined, R as RightOutlined, t as isClient, u as useSpreadSheet, F as FormItem, v as ImgParser } from "./index-
|
|
3
|
-
import { S as SizeEditor } from "./size-editor-
|
|
2
|
+
import { L as LeftOutlined, R as RightOutlined, t as isClient, u as useSpreadSheet, F as FormItem, v as ImgParser } from "./index-BDRyjPGr.js";
|
|
3
|
+
import { S as SizeEditor } from "./size-editor-m8uyQ1bU.js";
|
|
4
4
|
import { message } from "ant-design-vue";
|
|
5
|
-
import { al as WidgetImageSizeMode, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
5
|
+
import { al as WidgetImageSizeMode, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "dayjs";
|
|
8
8
|
import "@gct-paas/form-base";
|
|
9
|
-
import { u as useWebUpload } from "./index-
|
|
9
|
+
import { u as useWebUpload } from "./index-DnHsEIgl.js";
|
|
10
10
|
import "vxe-table";
|
|
11
|
-
import { C as CloseOutlined } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-
|
|
11
|
+
import { C as CloseOutlined } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DbNfQIzD.js";
|
|
12
12
|
const resumeSvg = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1595307154239'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7317'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M316%20672h60c4.4%200%208-3.6%208-8V360c0-4.4-3.6-8-8-8h-60c-4.4%200-8%203.6-8%208v304c0%204.4%203.6%208%208%208zM512%20622c22.1%200%2040-17.9%2040-39%200-23.1-17.9-41-40-41s-40%2017.9-40%2041c0%2021.1%2017.9%2039%2040%2039zM512%20482c22.1%200%2040-17.9%2040-39%200-23.1-17.9-41-40-41s-40%2017.9-40%2041c0%2021.1%2017.9%2039%2040%2039z'%20p-id='7318'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M880%20112H144c-17.7%200-32%2014.3-32%2032v736c0%2017.7%2014.3%2032%2032%2032h736c17.7%200%2032-14.3%2032-32V144c0-17.7-14.3-32-32-32z%20m-40%20728H184V184h656v656z'%20p-id='7319'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M648%20672h60c4.4%200%208-3.6%208-8V360c0-4.4-3.6-8-8-8h-60c-4.4%200-8%203.6-8%208v304c0%204.4%203.6%208%208%208z'%20p-id='7320'%20fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e";
|
|
13
13
|
const rotateSvg = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1595306944988'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1820'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M1464.3%20279.7'%20p-id='1821'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M512%20960c-60.5%200-119.1-11.9-174.4-35.2-53.4-22.6-101.3-54.9-142.4-96s-73.4-89-96-142.4C75.9%20631.1%2064%20572.5%2064%20512s11.9-119.1%2035.2-174.4c22.6-53.4%2054.9-101.3%2096-142.4s89-73.4%20142.4-96C392.9%2075.9%20451.5%2064%20512%2064s119.1%2011.9%20174.4%2035.2c53.4%2022.6%20101.3%2054.9%20142.4%2096s73.4%2089%2096%20142.4C948.1%20392.9%20960%20451.5%20960%20512c0%2019.1-15.5%2034.6-34.6%2034.6s-34.6-15.5-34.6-34.6c0-51.2-10-100.8-29.8-147.4-19.1-45.1-46.4-85.6-81.2-120.4C745%20209.4%20704.5%20182%20659.4%20163c-46.7-19.7-96.3-29.8-147.4-29.8-51.2%200-100.8%2010-147.4%2029.8-45.1%2019.1-85.6%2046.4-120.4%2081.2S182%20319.5%20163%20364.6c-19.7%2046.7-29.8%2096.3-29.8%20147.4%200%2051.2%2010%20100.8%2029.8%20147.4%2019.1%2045.1%2046.4%2085.6%2081.2%20120.4C279%20814.6%20319.5%20842%20364.6%20861c46.7%2019.7%2096.3%2029.8%20147.4%2029.8%2064.6%200%20128.4-16.5%20184.4-47.8%2054.4-30.4%20100.9-74.1%20134.6-126.6%2010.3-16.1%2031.7-20.8%2047.8-10.4%2016.1%2010.3%2020.8%2031.7%2010.4%2047.8-39.8%2062-94.8%20113.7-159.1%20149.6-66.2%2037-141.7%2056.6-218.1%2056.6z'%20p-id='1822'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M924%20552c-19.8%200-36-16.2-36-36V228c0-19.8%2016.2-36%2036-36s36%2016.2%2036%2036v288c0%2019.8-16.2%2036-36%2036zM275.4%20575.5c9.5-2.5%2019.1%202.9%2022.3%2012.2%203.5%2010.2%209.9%2017.7%2019.1%2022.6%207.1%203.9%2015.1%205.8%2024%205.8%2016.6%200%2030.8-6.9%2042.5-20.8%2011.7-13.8%2020-32.7%2024.9-75.1-7.7%2012.2-17.3%2020.8-28.7%2025.8-11.4%205-23.7%207.4-36.8%207.4-26.7%200-47.7-8.3-63.3-24.9-15.5-16.6-23.3-37.9-23.3-64.1%200-25.1%207.7-47.1%2023-66.2%2015.3-19%2037.9-28.6%2067.8-28.6%2040.3%200%2068.1%2018.1%2083.4%2054.4%208.5%2019.9%2012.7%2044.9%2012.7%2074.9%200%2033.8-5.1%2063.8-15.3%2089.9-16.9%2043.5-45.5%2065.2-85.8%2065.2-27%200-47.6-7.1-61.6-21.2-10-10.1-16.4-22-19.3-35.8-2-9.6%204-19.1%2013.5-21.6l0.9%200.1z%20m103-74.4c9.4-7.5%2014.1-20.6%2014.1-39.3%200-16.8-4.2-29.3-12.7-37.5S360.6%20412%20347.5%20412c-14%200-25.2%204.7-33.4%2014.1-8.2%209.4-12.4%2022-12.4%2037.7%200%2014.9%203.6%2026.7%2010.9%2035.5%207.2%208.8%2018.8%2013.1%2034.6%2013.1%2011.4%200%2021.8-3.8%2031.2-11.3zM646.6%20414.4c12.4%2022.8%2018.5%2054%2018.5%2093.7%200%2037.6-5.6%2068.7-16.8%2093.3-16.2%2035.3-42.8%2052.9-79.6%2052.9-33.2%200-57.9-14.4-74.2-43.3-13.5-24.1-20.3-56.4-20.3-97%200-31.4%204.1-58.4%2012.2-80.9%2015.2-42%2042.7-63%2082.5-63%2035.9%200%2061.8%2014.8%2077.7%2044.3z%20m-40.2%20173.3c9.4-13.9%2014-39.9%2014-78%200-27.4-3.4-50-10.1-67.7-6.8-17.7-19.9-26.6-39.4-26.6-17.9%200-31%208.4-39.3%2025.2-8.3%2016.8-12.4%2041.6-12.4%2074.3%200%2024.6%202.6%2044.4%207.9%2059.4%208.1%2022.8%2022%2034.3%2041.6%2034.3%2015.7%200%2028.3-7%2037.7-20.9zM803.3%20387.2c11.2%2011.3%2016.8%2025%2016.8%2041.2%200%2016.7-5.8%2030.7-17.5%2041.8C791%20481.4%20777.4%20487%20762%20487c-17.1%200-31.2-5.8-42.1-17.4-10.9-11.6-16.4-25.1-16.4-40.6%200-16.5%205.8-30.4%2017.3-41.7%2011.5-11.3%2025.3-17%2041.2-17%2016.3%200%2030.1%205.7%2041.3%2016.9zM739.5%20451c6.2%206.2%2013.7%209.3%2022.5%209.3%208.4%200%2015.8-3.1%2022.1-9.3%206.3-6.2%209.4-13.7%209.4-22.6%200-8.5-3.1-15.9-9.3-22.1-6.2-6.2-13.6-9.3-22.2-9.3s-16.1%203.1-22.4%209.3c-6.3%206.2-9.4%2013.7-9.4%2022.6-0.1%208.4%203%2015.8%209.3%2022.1z'%20p-id='1823'%20fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e";
|
|
14
14
|
const scaleSvg = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1595307195033'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8116'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M887.081%20904.791a25.8%2025.8%200%200%201-18.376-7.619L705.618%20734.075l-4.163%203.369c-58.255%2047.18-131.522%2073.16-206.32%2073.16-181.07%200-328.377-147.308-328.377-328.367%200-181.068%20147.308-328.376%20328.377-328.376%20181.063%200%20328.376%20147.308%20328.376%20328.376%200%2077.072-27.412%20152.07-77.169%20211.17l-3.522%204.173%20162.719%20162.744a25.846%2025.846%200%200%201%207.639%2018.432%2026.081%2026.081%200%200%201-26.051%2026.045l-0.046-0.01zM495.13%20205.957c-152.336%200-276.27%20123.935-276.27%20276.27%200%20152.33%20123.934%20276.27%20276.27%20276.27%20152.34%200%20276.275-123.94%20276.275-276.27%200-152.335-123.935-276.27-276.275-276.27z'%20fill='%23ffffff'%20p-id='8117'%3e%3c/path%3e%3cpath%20d='M626.545%20508.355h-262.83a26.127%2026.127%200%200%201%200-52.255h262.83a26.127%2026.127%200%200%201%200%2052.255z'%20fill='%23ffffff'%20p-id='8118'%3e%3c/path%3e%3cpath%20d='M495.13%20639.77a26.127%2026.127%200%200%201-26.128-26.128v-262.83a26.127%2026.127%200%200%201%2052.255%200v262.835a26.127%2026.127%200%200%201-26.127%2026.123z'%20fill='%23ffffff'%20p-id='8119'%3e%3c/path%3e%3c/svg%3e";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, normalizeClass, toDisplayString, renderList, createBlock, normalizeStyle } from "vue";
|
|
2
|
-
import { am as LineDirection } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { am as LineDirection } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "@gct-paas/form-base";
|
|
6
6
|
import "ant-design-vue";
|
|
7
|
-
import { F as FormItem, x as LineStyleOptions, C as ColorPicker } from "./index-
|
|
7
|
+
import { F as FormItem, x as LineStyleOptions, C as ColorPicker } from "./index-BDRyjPGr.js";
|
|
8
8
|
const _hoisted_1 = { class: "ks-row-middle" };
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "widget-line",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
-
import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "@gct-paas/form-base";
|
|
6
6
|
import "ant-design-vue";
|
|
7
|
-
import { F as FormItem, y as PaginationFormatOptions } from "./index-
|
|
8
|
-
import { S as SizeEditor } from "./size-editor-
|
|
9
|
-
import { A as AlignEditor } from "./align-editor-
|
|
10
|
-
import { F as FontEditor } from "./font-editor-
|
|
7
|
+
import { F as FormItem, y as PaginationFormatOptions } from "./index-BDRyjPGr.js";
|
|
8
|
+
import { S as SizeEditor } from "./size-editor-m8uyQ1bU.js";
|
|
9
|
+
import { A as AlignEditor } from "./align-editor-lWVPNKlR.js";
|
|
10
|
+
import { F as FontEditor } from "./font-editor-N7060zuX.js";
|
|
11
11
|
const _hoisted_1 = { class: "pl-6px" };
|
|
12
12
|
const _hoisted_2 = { class: "pl-6px" };
|
|
13
13
|
const DefaultCustomFormat = "Page ${no} / ${total}";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { u as useSpreadSheet, E as useReverseModeling, F as FormItem } from "./index-
|
|
3
|
-
import { S as SingleFieldDrop } from "./single-field-drop-
|
|
2
|
+
import { u as useSpreadSheet, E as useReverseModeling, F as FormItem } from "./index-BDRyjPGr.js";
|
|
3
|
+
import { S as SingleFieldDrop } from "./single-field-drop-DRMCsh_s.js";
|
|
4
4
|
import { a as useNamespace } from "./AntdIcon-DCIaV352.js";
|
|
5
|
-
import { F as FIELD_TYPE, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
5
|
+
import { F as FIELD_TYPE, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
6
6
|
import { message } from "ant-design-vue";
|
|
7
7
|
import "lodash-es";
|
|
8
8
|
import "dayjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { q as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-BDRyjPGr.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-CRFXw695.js";
|
|
4
|
+
import { q as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "dayjs";
|
|
7
7
|
import "@gct-paas/form-base";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createVNode, withCtx } from "vue";
|
|
2
|
-
import { F as FormItem } from "./index-
|
|
3
|
-
import { S as SingleFieldDrop } from "./single-field-drop-
|
|
2
|
+
import { F as FormItem } from "./index-BDRyjPGr.js";
|
|
3
|
+
import { S as SingleFieldDrop } from "./single-field-drop-DRMCsh_s.js";
|
|
4
4
|
import { a as useNamespace } from "./AntdIcon-DCIaV352.js";
|
|
5
|
-
import { F as FIELD_TYPE, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
5
|
+
import { F as FIELD_TYPE, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
6
6
|
import { message } from "ant-design-vue";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "widget-rangelimit",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx } from "vue";
|
|
2
|
-
import { F as FormItem } from "./index-
|
|
2
|
+
import { F as FormItem } from "./index-BDRyjPGr.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "widget-serialnumber",
|
|
5
5
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { u as useSpreadSheet, F as FormItem } from "./index-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { S as SizeEditor } from "./size-editor-
|
|
5
|
-
import { A as AlignEditor } from "./align-editor-
|
|
6
|
-
import { F as FontEditor } from "./font-editor-
|
|
2
|
+
import { u as useSpreadSheet, F as FormItem } from "./index-BDRyjPGr.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-CRFXw695.js";
|
|
4
|
+
import { S as SizeEditor } from "./size-editor-m8uyQ1bU.js";
|
|
5
|
+
import { A as AlignEditor } from "./align-editor-lWVPNKlR.js";
|
|
6
|
+
import { F as FontEditor } from "./font-editor-N7060zuX.js";
|
|
7
7
|
const _hoisted_1 = { class: "pl-6px" };
|
|
8
8
|
const _hoisted_2 = { class: "pl-6px" };
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
|
-
import { u as useSpreadSheet, h as useModelFields, F as FormItem } from "./index-
|
|
3
|
-
import { F as FIELD_TYPE, an as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { u as useSpreadSheet, h as useModelFields, F as FormItem } from "./index-BDRyjPGr.js";
|
|
3
|
+
import { F as FIELD_TYPE, an as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
|
|
4
4
|
import "lodash-es";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "@gct-paas/form-base";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/excel",
|
|
3
|
-
"version": "0.1.40-beta.
|
|
3
|
+
"version": "0.1.40-beta.7",
|
|
4
4
|
"description": "GCT Excel online form rendering",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@ant-design/icons-vue": "^6.1.0",
|
|
51
51
|
"@gct-paas/core": "0.1.6-dev.41",
|
|
52
|
-
"@gct-paas/form-base": "0.1.2-beta.
|
|
52
|
+
"@gct-paas/form-base": "0.1.2-beta.4",
|
|
53
53
|
"@gct-paas/scss": "0.1.6-dev.41",
|
|
54
54
|
"@panzoom/panzoom": "^4.6.2",
|
|
55
55
|
"@revolist/vue3-datagrid": "^4.24.2",
|