@gct-paas/word 0.1.74-beta.21 → 0.1.74-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @gct-paas/word v0.1.74-beta.
|
|
1
|
+
/*! @gct-paas/word v0.1.74-beta.23 */
|
|
2
2
|
import { Fragment, Suspense, Teleport, Transition, TransitionGroup, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, getCurrentInstance, getCurrentScope, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, readonly, ref, render, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toHandlers, toRaw, toRef, toValue, unref, useAttrs, useCssVars, useModel, useSlots, vModelRadio, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
3
3
|
import Mt, { PopperWrapper } from "floating-vue";
|
|
4
4
|
import VueKonva from "vue-konva";
|
|
@@ -125582,6 +125582,17 @@ var init_transform = __esmMin((() => {
|
|
|
125582
125582
|
transformUtils = { transformSourceData2SubTable };
|
|
125583
125583
|
}));
|
|
125584
125584
|
//#endregion
|
|
125585
|
+
//#region src/runtime/canvas/table/render/material-consume/derived-qty.ts
|
|
125586
|
+
/**
|
|
125587
|
+
* 未选择物料时,已消耗数量与当前行消耗数量保持一致。
|
|
125588
|
+
* 空值统一写为 null,避免数值字段向提交接口传递空字符串。
|
|
125589
|
+
*/
|
|
125590
|
+
function resolveConsumedQtyWithoutProduct(value) {
|
|
125591
|
+
if (value === void 0 || value === null || value === "") return null;
|
|
125592
|
+
return Number(value);
|
|
125593
|
+
}
|
|
125594
|
+
var init_derived_qty = __esmMin((() => {}));
|
|
125595
|
+
//#endregion
|
|
125585
125596
|
//#region src/runtime/canvas/table/render/material-consume/material-consume-table-controller.ts
|
|
125586
125597
|
/**
|
|
125587
125598
|
* 解析规则配置字符串解析成对象
|
|
@@ -125612,6 +125623,7 @@ var init_material_consume_table_controller = __esmMin((() => {
|
|
|
125612
125623
|
init_material_consume_group_merge();
|
|
125613
125624
|
init_index_es();
|
|
125614
125625
|
init_transform();
|
|
125626
|
+
init_derived_qty();
|
|
125615
125627
|
init_defineProperty();
|
|
125616
125628
|
MCDataUtil = class MCDataUtil {
|
|
125617
125629
|
/**
|
|
@@ -126277,7 +126289,7 @@ var init_material_consume_table_controller = __esmMin((() => {
|
|
|
126277
126289
|
const modifySingleRow = (row, rowIndex) => {
|
|
126278
126290
|
const fieldKey = `${this.subTableInfo.valuePath}[${rowIndex}].qty_consumed_`;
|
|
126279
126291
|
if (!row.product_id_) {
|
|
126280
|
-
doc.dataManager.set(fieldKey,
|
|
126292
|
+
doc.dataManager.set(fieldKey, resolveConsumedQtyWithoutProduct(row.qty_), "user");
|
|
126281
126293
|
return;
|
|
126282
126294
|
}
|
|
126283
126295
|
let total = 0;
|
|
@@ -138662,7 +138674,7 @@ var init_table_dropdown_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
138662
138674
|
return allowManualInput.value && !!((_keyword$value = keyword.value) === null || _keyword$value === void 0 ? void 0 : _keyword$value.trim());
|
|
138663
138675
|
});
|
|
138664
138676
|
const hideSearch = computed(() => props.widget.widgetMeta.props.searchable === false);
|
|
138665
|
-
const { xTable, loading, keyword, tableData, pagination, hasData, hasNextPage, hasPrevPage, search,
|
|
138677
|
+
const { xTable, loading, keyword, tableData, pagination, hasData, hasNextPage, hasPrevPage, search, handlePagination } = useSelectTable(fetcher, {
|
|
138666
138678
|
data: [],
|
|
138667
138679
|
total: 0,
|
|
138668
138680
|
highlightIdx: []
|
|
@@ -138670,13 +138682,12 @@ var init_table_dropdown_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
138670
138682
|
const debouncedSearch = useDebounceFn(() => {
|
|
138671
138683
|
search();
|
|
138672
138684
|
}, 500);
|
|
138685
|
+
watch(keyword, () => {
|
|
138686
|
+
debouncedSearch();
|
|
138687
|
+
});
|
|
138673
138688
|
function onDeviceTypeChange() {
|
|
138674
138689
|
debouncedSearch();
|
|
138675
138690
|
}
|
|
138676
|
-
function resetSearch() {
|
|
138677
|
-
if (isDeviceField.value) deviceTypeId.value = void 0;
|
|
138678
|
-
reset();
|
|
138679
|
-
}
|
|
138680
138691
|
const onChangeSelect = async (row) => {
|
|
138681
138692
|
var _row$_item;
|
|
138682
138693
|
const { belongingObject, fieldType } = props.widget.widgetMeta.field;
|
|
@@ -138720,8 +138731,7 @@ var init_table_dropdown_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
138720
138731
|
class: "table-search__keyword",
|
|
138721
138732
|
placeholder: unref(isDeviceField) ? "搜索设备" : "请输入关键字",
|
|
138722
138733
|
allowClear: "",
|
|
138723
|
-
onKeydown: withKeys(unref(search), ["enter"])
|
|
138724
|
-
onClear: unref(search)
|
|
138734
|
+
onKeydown: withKeys(unref(search), ["enter"])
|
|
138725
138735
|
}, {
|
|
138726
138736
|
prependIcon: withCtx(() => [createVNode(unref(icon_default), {
|
|
138727
138737
|
icon: "icon-sousuo",
|
|
@@ -138732,39 +138742,27 @@ var init_table_dropdown_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
138732
138742
|
}, 8, [
|
|
138733
138743
|
"modelValue",
|
|
138734
138744
|
"placeholder",
|
|
138735
|
-
"onKeydown"
|
|
138736
|
-
"onClear"
|
|
138745
|
+
"onKeydown"
|
|
138737
138746
|
]),
|
|
138738
|
-
createVNode(unref(button_default), {
|
|
138739
|
-
type: "primary",
|
|
138740
|
-
onClick: unref(search)
|
|
138741
|
-
}, {
|
|
138742
|
-
default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode("搜索", -1)])]),
|
|
138743
|
-
_: 1
|
|
138744
|
-
}, 8, ["onClick"]),
|
|
138745
138747
|
showManualInputBtn.value ? (openBlock(), createBlock(unref(button_default), {
|
|
138746
138748
|
key: 0,
|
|
138747
138749
|
type: "primary",
|
|
138748
138750
|
plain: "",
|
|
138749
138751
|
onClick: onConfirmManualInput
|
|
138750
138752
|
}, {
|
|
138751
|
-
default: withCtx(() => [..._cache[
|
|
138753
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode(" 确认输入 ", -1)])]),
|
|
138752
138754
|
_: 1
|
|
138753
138755
|
})) : createCommentVNode("", true),
|
|
138754
|
-
createVNode(unref(button_default), { onClick: resetSearch }, {
|
|
138755
|
-
default: withCtx(() => [..._cache[7] || (_cache[7] = [createTextVNode("重置", -1)])]),
|
|
138756
|
-
_: 1
|
|
138757
|
-
}),
|
|
138758
138756
|
__props.modelValue ? (openBlock(), createBlock(unref(button_default), {
|
|
138759
138757
|
key: 1,
|
|
138760
138758
|
type: "danger",
|
|
138761
138759
|
plain: "",
|
|
138762
138760
|
onClick: _cache[1] || (_cache[1] = () => onChangeSelect())
|
|
138763
138761
|
}, {
|
|
138764
|
-
default: withCtx(() => [..._cache[
|
|
138762
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode(" 清除 ", -1)])]),
|
|
138765
138763
|
_: 1
|
|
138766
138764
|
})) : createCommentVNode("", true)
|
|
138767
|
-
], 64)) : createCommentVNode("", true), unref(isDeviceField) ? (openBlock(), createElementBlock("div", _hoisted_3$60, [_cache[
|
|
138765
|
+
], 64)) : createCommentVNode("", true), unref(isDeviceField) ? (openBlock(), createElementBlock("div", _hoisted_3$60, [_cache[7] || (_cache[7] = createElementVNode("span", { class: "table-search__label" }, "设备类型", -1)), createVNode(device_type_select_default, {
|
|
138768
138766
|
modelValue: deviceTypeId.value,
|
|
138769
138767
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => deviceTypeId.value = $event),
|
|
138770
138768
|
onChange: onDeviceTypeChange
|