cnhis-design-vue 3.0.3 → 3.0.6

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/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { watch, h as h$1, resolveComponent, defineComponent, inject, computed, nextTick, reactive, createApp, ref, Teleport, createCommentVNode, provide, onMounted, onUnmounted, getCurrentInstance, onBeforeUnmount, onActivated, onDeactivated, createVNode, mergeProps, isVNode, openBlock, createElementBlock, unref, createElementVNode, toDisplayString, withCtx, normalizeClass, renderSlot, createTextVNode, useAttrs, normalizeStyle, withDirectives, vShow, Fragment, createBlock, vModelSelect, vModelText, pushScopeId, popScopeId, vModelCheckbox, withModifiers } from 'vue';
2
2
  import { SettingsSharp, CaretDown, CaretForward, CopyOutline, SyncOutline, EllipsisVerticalSharp, Reload, ChevronDown } from '@vicons/ionicons5';
3
- import { NTooltip, NInput, NInputNumber, NSelect, useMessage, NIcon, NPopconfirm, NButton, NInputGroup, NCheckbox, NCheckboxGroup, NSpace, NProgress, NDropdown, NSwitch, NPopover, NSpin, NDatePicker, NRadio, NModal, NForm, NGrid, NFormItemGi, NFormItem } from 'naive-ui';
3
+ import { NTooltip, NInput, NInputNumber, NSelect, NDatePicker, useMessage, NIcon, NPopconfirm, NButton, NInputGroup, NCheckbox, NCheckboxGroup, NSpace, NProgress, NDropdown, NSwitch, NPopover, NSpin, NRadio, NModal, NForm, NGrid, NFormItemGi, NFormItem } from 'naive-ui';
4
4
  import draggable from 'vuedraggable';
5
5
 
6
6
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -31033,7 +31033,7 @@ const bigTableEmits = [
31033
31033
  "selectionChangeLocal",
31034
31034
  "switchBtnOnChange",
31035
31035
  "asyncTableChange",
31036
- "updateInput"
31036
+ "formChange"
31037
31037
  ];
31038
31038
 
31039
31039
  var moment$1 = {exports: {}};
@@ -38467,8 +38467,8 @@ const useEdit = (props, state, emit, xGrid) => {
38467
38467
  await xGrid.value.insertAt(record, getInsertRecords.at(-1));
38468
38468
  xGrid.value.clearActived();
38469
38469
  };
38470
- const onUpdateInput = ({ value, row, column }) => {
38471
- emit("updateInput", { value, row, column });
38470
+ const onFormChange = ({ value, row, column }) => {
38471
+ emit("formChange", { value, row, column });
38472
38472
  };
38473
38473
  const getDefaultValue = (params, item) => {
38474
38474
  const value = params.row[item.columnName];
@@ -38488,7 +38488,7 @@ const useEdit = (props, state, emit, xGrid) => {
38488
38488
  activeMethod,
38489
38489
  deleteRow,
38490
38490
  onClickSelectTable,
38491
- onUpdateInput,
38491
+ onFormChange,
38492
38492
  getDefaultValue
38493
38493
  };
38494
38494
  };
@@ -38504,7 +38504,7 @@ var img$3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAADKCAYAAABDnT56A
38504
38504
  const _hoisted_1$8 = { class: "no-data-tip NoData-page" };
38505
38505
  const _hoisted_2$7 = ["src"];
38506
38506
  const _hoisted_3$5 = { key: 1 };
38507
- var script$b = /* @__PURE__ */ defineComponent({
38507
+ var script$c = /* @__PURE__ */ defineComponent({
38508
38508
  props: {
38509
38509
  noDataTip: {
38510
38510
  type: String,
@@ -38565,14 +38565,14 @@ var script$b = /* @__PURE__ */ defineComponent({
38565
38565
  }
38566
38566
  });
38567
38567
 
38568
- script$b.__scopeId = "data-v-4a4b0812";
38569
- script$b.__file = "packages/big-table/src/components/NoData.vue";
38568
+ script$c.__scopeId = "data-v-4a4b0812";
38569
+ script$c.__file = "packages/big-table/src/components/NoData.vue";
38570
38570
 
38571
38571
  const _hoisted_1$7 = { class: "text-over-tooltip-components" };
38572
38572
  const __default__$8 = {
38573
38573
  name: "TextOverTooltip"
38574
38574
  };
38575
- var script$a = /* @__PURE__ */ defineComponent({
38575
+ var script$b = /* @__PURE__ */ defineComponent({
38576
38576
  ...__default__$8,
38577
38577
  props: {
38578
38578
  content: { type: [String, Number], required: false },
@@ -38640,15 +38640,15 @@ var script$a = /* @__PURE__ */ defineComponent({
38640
38640
  }
38641
38641
  });
38642
38642
 
38643
- script$a.__scopeId = "data-v-6633a934";
38644
- script$a.__file = "packages/big-table/src/components/TextOverTooltip.vue";
38643
+ script$b.__scopeId = "data-v-6633a934";
38644
+ script$b.__file = "packages/big-table/src/components/TextOverTooltip.vue";
38645
38645
 
38646
38646
  const _hoisted_1$6 = { key: 0 };
38647
38647
  const _hoisted_2$6 = ["xlink:href"];
38648
38648
  const __default__$7 = {
38649
38649
  name: "SvgIcon"
38650
38650
  };
38651
- var script$9 = /* @__PURE__ */ defineComponent({
38651
+ var script$a = /* @__PURE__ */ defineComponent({
38652
38652
  ...__default__$7,
38653
38653
  props: {
38654
38654
  iconClass: { type: String, required: true, default: "" },
@@ -38678,10 +38678,10 @@ var script$9 = /* @__PURE__ */ defineComponent({
38678
38678
  }
38679
38679
  });
38680
38680
 
38681
- script$9.__scopeId = "data-v-d1ad5be8";
38682
- script$9.__file = "src/component/svg/index.vue";
38681
+ script$a.__scopeId = "data-v-d1ad5be8";
38682
+ script$a.__file = "src/component/svg/index.vue";
38683
38683
 
38684
- var script$8 = defineComponent({
38684
+ var script$9 = defineComponent({
38685
38685
  name: "EditInput",
38686
38686
  inheritAttrs: false,
38687
38687
  components: {
@@ -38706,10 +38706,10 @@ var script$8 = defineComponent({
38706
38706
  default: 0
38707
38707
  }
38708
38708
  },
38709
- emits: ["updateInput"],
38709
+ emits: ["formChange"],
38710
38710
  setup(props, { attrs, slots, emit }) {
38711
38711
  const onUpdateValue = (value) => {
38712
- emit("updateInput", {
38712
+ emit("formChange", {
38713
38713
  value,
38714
38714
  row: props.row,
38715
38715
  column: props.col,
@@ -38724,9 +38724,9 @@ var script$8 = defineComponent({
38724
38724
  }
38725
38725
  });
38726
38726
 
38727
- script$8.__file = "packages/big-table/src/components/edit-form/edit-input.vue";
38727
+ script$9.__file = "packages/big-table/src/components/edit-form/edit-input.vue";
38728
38728
 
38729
- var script$7 = defineComponent({
38729
+ var script$8 = defineComponent({
38730
38730
  name: "EditSelect",
38731
38731
  inheritAttrs: false,
38732
38732
  components: {
@@ -38735,16 +38735,18 @@ var script$7 = defineComponent({
38735
38735
  props: {
38736
38736
  col: {
38737
38737
  type: Object,
38738
- default: () => {
38739
- }
38738
+ default: () => ({})
38740
38739
  },
38741
38740
  row: {
38742
38741
  type: Object,
38743
- default: () => {
38744
- }
38742
+ default: () => ({})
38743
+ },
38744
+ index: {
38745
+ type: [Number, Object],
38746
+ default: 0
38745
38747
  }
38746
38748
  },
38747
- emits: ["setOptions"],
38749
+ emits: ["setOptions", "formChange"],
38748
38750
  setup(props, { attrs, slots, emit }) {
38749
38751
  const state = reactive({
38750
38752
  options: []
@@ -38762,18 +38764,73 @@ var script$7 = defineComponent({
38762
38764
  }
38763
38765
  };
38764
38766
  setOptions();
38767
+ const onUpdateValue = (value) => {
38768
+ emit("formChange", {
38769
+ value,
38770
+ row: props.row,
38771
+ column: props.col,
38772
+ index: props.index
38773
+ });
38774
+ };
38765
38775
  return () => [createVNode(NSelect, mergeProps(attrs, {
38766
38776
  "options": state.options,
38767
38777
  "consistentMenuWidth": false,
38768
38778
  "clearable": true,
38769
38779
  "filterable": true,
38770
38780
  "to": false,
38771
- "placeholder": "\u8BF7\u9009\u62E9"
38781
+ "placeholder": "\u8BF7\u9009\u62E9",
38782
+ "onUpdateValue": onUpdateValue
38772
38783
  }), null)];
38773
38784
  }
38774
38785
  });
38775
38786
 
38776
- script$7.__file = "packages/big-table/src/components/edit-form/edit-select.vue";
38787
+ script$8.__file = "packages/big-table/src/components/edit-form/edit-select.vue";
38788
+
38789
+ var script$7 = defineComponent({
38790
+ name: "EditDate",
38791
+ inheritAttrs: false,
38792
+ components: {
38793
+ NDatePicker
38794
+ },
38795
+ props: {
38796
+ col: {
38797
+ type: Object,
38798
+ default: () => ({})
38799
+ },
38800
+ row: {
38801
+ type: Object,
38802
+ default: () => ({})
38803
+ },
38804
+ index: {
38805
+ type: [Number, Object],
38806
+ default: 0
38807
+ }
38808
+ },
38809
+ emits: ["formChange"],
38810
+ setup(props, { attrs, slots, emit }) {
38811
+ const onConfirm = (value, formattedValue) => {
38812
+ console.log("\u65F6\u95F4\u9009\u62E9->", value);
38813
+ emit("formChange", {
38814
+ value,
38815
+ row: props.row,
38816
+ column: props.col,
38817
+ index: props.index
38818
+ });
38819
+ };
38820
+ const config = {
38821
+ type: props.col.type || "datetime",
38822
+ clearable: props.col.clearable || true,
38823
+ disabled: props.col.disabled || false,
38824
+ valueFormat: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
38825
+ to: false
38826
+ };
38827
+ return () => createVNode(NDatePicker, mergeProps(attrs, config, {
38828
+ "onConfirm": onConfirm
38829
+ }), null);
38830
+ }
38831
+ });
38832
+
38833
+ script$7.__file = "packages/big-table/src/components/edit-form/edit-date.vue";
38777
38834
 
38778
38835
  var img$2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAYm0lEQVR4XtVd+3MVVZ7/dudF3iEJCa+QB6+ACCKP+AAcBVEZZWsVmZldZ6xRkIRZrZ3Z2T9gd539ZYaZLcUkCjpTs1u1NZRu+WRFURR5riAKAgEEkhDyTsg7Iffe7q3P9/a3Od237yMP1Omqrk7u7e7zPZ/z+T7P6b4afYfbyy+/nGua5mLTNOcSkeyTiSjdNM10TdPSIZ5pmr2apvUSEfZmIjqHXdM07Ce2bNnS/l11Q/s2G961a1dyZ2fnGiK6zzCM+zRNu9U0zTHJoGmaaZrmKV3XPyaij7Ozs/du3Lhx8Nvq15iEj0VIALRjx45VgUDgZ6ZpbiCijFiuG8M5PZqmvR4XF/fnzZs37wfAY7hX1EtvGoC7d+9Oqq+v/7lhGP9MRCVRJbk5J1zSdf23M2bM+OO6deuu34wmxh1AqGlHR0e5aZq/JqKpN0PoUdyzUdO03+Xk5FSPt3qPK4DV1dWPmKb5gmmaRaPo5E2/RNO0Wk3T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HBuL7lPPLrMGKhRJhzLly4kNTd3f1z0zS/0xdxa5r228zMzD/Onj37r+NF3B4M0E6cOMGvgieiDZqmZaixWjSVjDaGHjaxR9f11zVN+/PixYv/el8F79VxqHdra+sa64cI7iMiPCGFXxNwrMWLBJobcF3X+ccINE3jHyPIy8vbO95qGkmem6bC0ZiD748dO8Y/hxEXF1caCAT45zA0TctXfw7DKij06rrei5/FME2zRdf1c6ZpYq/Bz2EsXbr0O/s5jP8H7IBGeRihM9IAAAAASUVORK5CYII=";
38779
38836
 
@@ -39451,7 +39508,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
39451
39508
  const { formatData, htmlToText, getBtnStyle } = useFormat(state);
39452
39509
  const { imgs2imgArr, parseDurationValue, parseCombinationValue, formatFieldText } = useTableParse(formatData);
39453
39510
  const { allSelectedLength, checkOperateCurrentTable, setRowStatus, resetBatchOperationRowStatus, checkListFormUnionSettingParamsList, handleClickCancelBtnByInline, setAllRowInlineStatus, hideSelectCloumns, handleEditFormLength, resetOperationRowStatus, recordClickBtnInfo, getInlineOpreateRow } = useBatchEditing(props, state, emit, xGrid);
39454
- const { initEditTable, activeMethod, deleteRow, onClickSelectTable, onUpdateInput, getDefaultValue } = useEdit(props, state, emit, xGrid);
39511
+ const { initEditTable, activeMethod, deleteRow, onClickSelectTable, onFormChange, getDefaultValue } = useEdit(props, state, emit, xGrid);
39455
39512
  const { isAboutNestTable, isExpandTable, handleRowId, toggleExpandMethod, loadExpandMethod, nestHandleClickRow } = useNestTable(props, state, emit);
39456
39513
  const attr = useAttrs();
39457
39514
  const currentCheckedKeys = computed(() => {
@@ -39543,7 +39600,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
39543
39600
  };
39544
39601
  onMounted(() => {
39545
39602
  bindDocumentClick();
39546
- state.tableHeight = handleTableHeight(state, props);
39603
+ state.tableHeight = handleTableHeight(state, props) || "auto";
39547
39604
  if (!props.isNestTable)
39548
39605
  return;
39549
39606
  loadColumn(props.columnConfig);
@@ -39794,23 +39851,31 @@ var script$6 = /* @__PURE__ */ defineComponent({
39794
39851
  index: $rowIndex
39795
39852
  };
39796
39853
  if (formType === "input" || formType === "number") {
39797
- return createVNode(script$8, mergeProps(propsData, {
39854
+ return createVNode(script$9, mergeProps(propsData, {
39798
39855
  "type": formType,
39799
39856
  "value": row[col.columnName],
39800
39857
  "onUpdate:value": ($event) => row[col.columnName] = $event,
39801
- "onUpdateInput": onUpdateInput
39858
+ "onFormChange": onFormChange
39802
39859
  }), null);
39803
39860
  }
39804
39861
  if (formType === "select") {
39805
- return createVNode(script$7, mergeProps(propsData, {
39862
+ return createVNode(script$8, mergeProps(propsData, {
39806
39863
  "value": row[col.columnName],
39807
39864
  "onUpdate:value": ($event) => row[col.columnName] = $event,
39808
- "onSetOptions": (options) => row[`${col.columnName}_options`] = options
39865
+ "onSetOptions": (options) => row[`${col.columnName}_options`] = options,
39866
+ "onFormChange": onFormChange
39867
+ }), null);
39868
+ }
39869
+ if (formType === "date") {
39870
+ return createVNode(script$7, mergeProps(propsData, {
39871
+ "formattedValue": row[col.columnName],
39872
+ "onUpdate:formattedValue": ($event) => row[col.columnName] = $event,
39873
+ "onFormChange": onFormChange
39809
39874
  }), null);
39810
39875
  }
39811
39876
  };
39812
39877
  const getEditBtn = (row, col, index) => {
39813
- return col.tileBtnList.map((btn) => {
39878
+ return col.tileBtnList?.map((btn) => {
39814
39879
  if (btn.settingObj[0].trigger_type === "DELETE") {
39815
39880
  return createVNode(NPopconfirm, {
39816
39881
  "onPositiveClick": () => deleteRow(row, col, index)
@@ -40188,13 +40253,13 @@ var script$6 = /* @__PURE__ */ defineComponent({
40188
40253
  isAlias = !!tooltipTitle;
40189
40254
  }
40190
40255
  if (type === "format")
40191
- return createVNode(script$a, {
40256
+ return createVNode(script$b, {
40192
40257
  "tooltipTitle": tooltipTitle,
40193
40258
  "content": name,
40194
40259
  "isAlias": isAlias
40195
40260
  }, null);
40196
40261
  return () => {
40197
- return [createVNode(script$a, {
40262
+ return [createVNode(script$b, {
40198
40263
  "tooltipTitle": tooltipTitle,
40199
40264
  "content": name,
40200
40265
  "isAlias": isAlias
@@ -40748,7 +40813,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
40748
40813
  return createVNode(NPopconfirm, {
40749
40814
  "onPositiveClick": () => confirmScanMulti(params)
40750
40815
  }, {
40751
- trigger: () => createVNode(script$9, {
40816
+ trigger: () => createVNode(script$a, {
40752
40817
  "class": "scan-multi-delete",
40753
40818
  "iconClass": "shanchu"
40754
40819
  }, null),
@@ -40961,7 +41026,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
40961
41026
  }, [createVNode("img", {
40962
41027
  "class": "bigTable-qr-img",
40963
41028
  "src": src
40964
- }, null), createVNode("span", null, [createVNode(script$9, {
41029
+ }, null), createVNode("span", null, [createVNode(script$a, {
40965
41030
  "iconClass": "fangda"
40966
41031
  }, null)])])];
40967
41032
  };
@@ -41045,7 +41110,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
41045
41110
  }
41046
41111
  else {
41047
41112
  icon = createVNode(NTooltip, null, {
41048
- trigger: () => createVNode(script$9, {
41113
+ trigger: () => createVNode(script$a, {
41049
41114
  "iconClass": btn.icon,
41050
41115
  "style": {
41051
41116
  marginRight: mr
@@ -41056,7 +41121,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
41056
41121
  }
41057
41122
  }
41058
41123
  else if (btn.iconSetting) {
41059
- icon = createVNode(script$9, {
41124
+ icon = createVNode(script$a, {
41060
41125
  "iconClass": JSON.parse(btn.iconSetting).icon,
41061
41126
  "style": {
41062
41127
  marginRight: mr
@@ -41485,7 +41550,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
41485
41550
  onScroll: handlerScroll,
41486
41551
  onCellMouseenter: handleCellMouseenter
41487
41552
  }, {
41488
- empty: withCtx(() => [unref(state).isShowEmpty ? (openBlock(), createElementBlock("div", _hoisted_9$4, [createVNode(script$b, {
41553
+ empty: withCtx(() => [unref(state).isShowEmpty ? (openBlock(), createElementBlock("div", _hoisted_9$4, [createVNode(script$c, {
41489
41554
  "no-data-img": props.emptyItems.noDataImg,
41490
41555
  "no-data-tip": props.emptyItems.noDataTip,
41491
41556
  "show-img": !props.isNestTable
@@ -41539,100 +41604,11 @@ var script$6 = /* @__PURE__ */ defineComponent({
41539
41604
 
41540
41605
  script$6.__file = "packages/big-table/src/BigTable.vue";
41541
41606
 
41542
- /*!
41543
- * vue-router v4.0.13
41544
- * (c) 2022 Eduardo San Martin Morote
41545
- * @license MIT
41546
- */
41547
-
41548
- const hasSymbol = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
41549
- const PolySymbol = (name) =>
41550
- // vr = vue router
41551
- hasSymbol
41552
- ? Symbol((process.env.NODE_ENV !== 'production') ? '[vue-router]: ' + name : name)
41553
- : ((process.env.NODE_ENV !== 'production') ? '[vue-router]: ' : '_vr_') + name;
41554
- // rvlm = Router View Location Matched
41555
- /**
41556
- * RouteRecord being rendered by the closest ancestor Router View. Used for
41557
- * `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
41558
- * Location Matched
41559
- *
41560
- * @internal
41561
- */
41562
- /*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router view location matched' : 'rvlm');
41563
- /**
41564
- * Allows overriding the router view depth to control which component in
41565
- * `matched` is rendered. rvd stands for Router View Depth
41566
- *
41567
- * @internal
41568
- */
41569
- /*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router view depth' : 'rvd');
41570
- /**
41571
- * Allows overriding the router instance returned by `useRouter` in tests. r
41572
- * stands for router
41573
- *
41574
- * @internal
41575
- */
41576
- /*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router' : 'r');
41577
- /**
41578
- * Allows overriding the current route returned by `useRoute` in tests. rl
41579
- * stands for route location
41580
- *
41581
- * @internal
41582
- */
41583
- const routeLocationKey = /*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'route location' : 'rl');
41584
- /**
41585
- * Allows overriding the current route used by router-view. Internally this is
41586
- * used when the `route` prop is passed.
41587
- *
41588
- * @internal
41589
- */
41590
- /*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router view location' : 'rvl');
41591
-
41592
- var NavigationType;
41593
- (function (NavigationType) {
41594
- NavigationType["pop"] = "pop";
41595
- NavigationType["push"] = "push";
41596
- })(NavigationType || (NavigationType = {}));
41597
- var NavigationDirection;
41598
- (function (NavigationDirection) {
41599
- NavigationDirection["back"] = "back";
41600
- NavigationDirection["forward"] = "forward";
41601
- NavigationDirection["unknown"] = "";
41602
- })(NavigationDirection || (NavigationDirection = {}));
41603
-
41604
- /*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'navigation failure' : 'nf');
41605
- /**
41606
- * Enumeration with all possible types for navigation failures. Can be passed to
41607
- * {@link isNavigationFailure} to check for specific failures.
41608
- */
41609
- var NavigationFailureType;
41610
- (function (NavigationFailureType) {
41611
- /**
41612
- * An aborted navigation is a navigation that failed because a navigation
41613
- * guard returned `false` or called `next(false)`
41614
- */
41615
- NavigationFailureType[NavigationFailureType["aborted"] = 4] = "aborted";
41616
- /**
41617
- * A cancelled navigation is a navigation that failed because a more recent
41618
- * navigation finished started (not necessarily finished).
41619
- */
41620
- NavigationFailureType[NavigationFailureType["cancelled"] = 8] = "cancelled";
41621
- /**
41622
- * A duplicated navigation is a navigation that failed because it was
41623
- * initiated while already being at the exact same location.
41624
- */
41625
- NavigationFailureType[NavigationFailureType["duplicated"] = 16] = "duplicated";
41626
- })(NavigationFailureType || (NavigationFailureType = {}));
41627
- /**
41628
- * Returns the current route location. Equivalent to using `$route` inside
41629
- * templates.
41630
- */
41631
- function useRoute() {
41632
- return inject(routeLocationKey);
41633
- }
41607
+ script$6.install = function (app) {
41608
+ app.component(script$6.name, script$6);
41609
+ };
41634
41610
 
41635
- const _withScopeId$1 = (n) => (pushScopeId("data-v-5cd39776"), n = n(), popScopeId(), n);
41611
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-726261b7"), n = n(), popScopeId(), n);
41636
41612
  const _hoisted_1$4 = { class: "fields-set-content" };
41637
41613
  const _hoisted_2$4 = { class: "fields-table" };
41638
41614
  const _hoisted_3$3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", {
@@ -41706,7 +41682,6 @@ var script$5 = /* @__PURE__ */ defineComponent({
41706
41682
  emits: ["onSave", "onClose"],
41707
41683
  setup(__props, { emit }) {
41708
41684
  const props = __props;
41709
- const route = useRoute();
41710
41685
  const settingView = ref(null);
41711
41686
  const state = reactive({
41712
41687
  spinning: false,
@@ -41723,9 +41698,6 @@ var script$5 = /* @__PURE__ */ defineComponent({
41723
41698
  };
41724
41699
  };
41725
41700
  const isMiddleAndAdmin = computed(() => props.menuSource == "middle");
41726
- computed(() => {
41727
- return route.fullPath.includes("middleListDetail");
41728
- });
41729
41701
  const showCheckBox = (key) => {
41730
41702
  return state.fields.some((i) => Object.prototype.hasOwnProperty.call(i, key));
41731
41703
  };
@@ -41968,16 +41940,12 @@ var script$5 = /* @__PURE__ */ defineComponent({
41968
41940
  }
41969
41941
  });
41970
41942
 
41971
- script$5.__scopeId = "data-v-5cd39776";
41972
- script$5.__file = "packages/big-table/src/FieldSet.vue";
41943
+ script$5.__scopeId = "data-v-726261b7";
41944
+ script$5.__file = "packages/field-set/src/FieldSet.vue";
41973
41945
 
41974
- script$6.install = function (app) {
41975
- app.component(script$6.name, script$6);
41946
+ script$5.install = function (app) {
41976
41947
  app.component(script$5.name, script$5);
41977
- };
41978
- Object.assign(script$6, {
41979
- FieldSet: script$5
41980
- });
41948
+ };
41981
41949
 
41982
41950
  const _hoisted_1$3 = { class: "DragFormLeftItem" };
41983
41951
  const _hoisted_2$3 = {
@@ -45255,14 +45223,13 @@ var script = /* @__PURE__ */ defineComponent({
45255
45223
  previewText: { type: String, required: false, default: "\u6253\u5370\u9884\u89C8" },
45256
45224
  formatEditText: { type: String, required: false, default: "\u683C\u5F0F\u7F16\u8F91" },
45257
45225
  identityVerificationTitle: { type: String, required: false, default: "\u6253\u5370\u670D\u52A1\u8EAB\u4EFD\u6821\u9A8C" },
45258
- params: { type: Array, required: true },
45259
- hisParams: { type: null, required: true },
45226
+ params: { type: Array, required: false, default: () => [] },
45260
45227
  prevFn: { type: Function, required: false, default: () => Promise.resolve() },
45261
45228
  verifyUser: { type: Function, required: false, default: () => Promise.resolve() },
45262
45229
  queryPrintFormatByNumber: { type: Function, required: true, default: () => Promise.resolve({}) },
45263
45230
  queryTemplateParams: { type: Function, required: false, default: () => Promise.resolve({}) },
45264
45231
  strategy: { type: String, required: false, default: "MULTI" },
45265
- versionType: { type: [Number, String], required: false, default: "2" }
45232
+ printParams: { type: Array, required: false }
45266
45233
  },
45267
45234
  emits: ["success", "error"],
45268
45235
  setup(__props, { emit }) {
@@ -45303,7 +45270,7 @@ var script = /* @__PURE__ */ defineComponent({
45303
45270
  let id = state.currentFormatId;
45304
45271
  return state.formatList.find((item) => item.id === id);
45305
45272
  });
45306
- const formatTitle = computed(() => currentFormatItem.value.name || "\u683C\u5F0F\u9009\u62E9");
45273
+ computed(() => currentFormatItem.value.name || "\u683C\u5F0F\u9009\u62E9");
45307
45274
  const getTemplateIdByFormatId = (id) => {
45308
45275
  let find = state.formatList.find((item) => item.id === id);
45309
45276
  return find.templateId;
@@ -45325,36 +45292,8 @@ var script = /* @__PURE__ */ defineComponent({
45325
45292
  };
45326
45293
  emit("error", error);
45327
45294
  };
45328
- const getHisParams = (index = 0) => {
45329
- const { reportid = "280" } = props.hisParams;
45330
- const { id, name } = state.templateParams;
45331
- return {
45332
- reportid,
45333
- formatid: state.currentFormatId || id,
45334
- formatname: name,
45335
- param: props.params[index]
45336
- };
45337
- };
45338
- const getOnceHisParams = () => {
45339
- const { reportid = "280" } = props.hisParams;
45340
- const { id, name } = state.templateParams;
45341
- const obj = {};
45342
- Object.keys(props.params[0]).forEach((v) => {
45343
- obj[v] = [];
45344
- props.params.forEach((k) => {
45345
- obj[v].push(k[v]);
45346
- });
45347
- obj[v] = obj[v].join(",");
45348
- });
45349
- return {
45350
- reportid,
45351
- formatid: state.currentFormatId || id,
45352
- formatname: name,
45353
- param: obj
45354
- };
45355
- };
45356
45295
  const getPrintParams = (index = 0) => {
45357
- const params = state.printParams[index];
45296
+ const params = props.printParams?.length ? props.printParams[index] : state.printParams[index];
45358
45297
  return JSON.stringify(params);
45359
45298
  };
45360
45299
  const getOnceParams = () => {
@@ -45396,49 +45335,26 @@ var script = /* @__PURE__ */ defineComponent({
45396
45335
  prevFnError();
45397
45336
  return Promise.reject();
45398
45337
  }).then(() => {
45399
- if (props.versionType == 1 || props.versionType == 3) {
45400
- const printFn = props.versionType == 1 ? "handleHisPrint" : "handleOldHisPrint";
45401
- if (props.strategy === "MULTI") {
45402
- for (let i = 0; i < props.params.length; i++) {
45403
- const params = getHisParams(i);
45404
- printInstance[printFn](7, params).then((res) => {
45405
- console.log(res, "777777777777");
45406
- }).catch((error) => {
45407
- console.log(error, "error777");
45408
- });
45409
- }
45410
- }
45411
- else {
45412
- const params = getOnceHisParams();
45413
- printInstance[printFn](7, params).then((res) => {
45414
- console.log(res, "777777777777");
45415
- }).catch((error) => {
45416
- console.log(error, "error777");
45417
- });
45418
- }
45419
- }
45420
- else {
45421
- if (props.strategy === "MULTI") {
45422
- for (let i = 0; i < state.printParams.length; i++) {
45423
- const queryParams = {
45424
- formatId: state.currentFormatId,
45425
- templateId: getTemplateIdByFormatId(state.currentFormatId),
45426
- params: getPrintParams(i)
45427
- };
45428
- printInstance.printDirect(queryParams, callLocalServicesSuccessCbTmp, callLocalServicesErrorCb);
45429
- }
45430
- }
45431
- else {
45338
+ if (props.strategy === "MULTI") {
45339
+ for (let i = 0; i < state.printParams.length; i++) {
45432
45340
  const queryParams = {
45433
45341
  formatId: state.currentFormatId,
45434
45342
  templateId: getTemplateIdByFormatId(state.currentFormatId),
45435
- params: getOnceParams()
45343
+ params: getPrintParams(i)
45436
45344
  };
45437
- printInstance.printDirect(queryParams, (res) => {
45438
- callLocalServicesSuccessCb(res, "print");
45439
- }, callLocalServicesErrorCb);
45345
+ printInstance.printDirect(queryParams, callLocalServicesSuccessCbTmp, callLocalServicesErrorCb);
45440
45346
  }
45441
45347
  }
45348
+ else {
45349
+ const queryParams = {
45350
+ formatId: state.currentFormatId,
45351
+ templateId: getTemplateIdByFormatId(state.currentFormatId),
45352
+ params: getOnceParams()
45353
+ };
45354
+ printInstance.printDirect(queryParams, (res) => {
45355
+ callLocalServicesSuccessCb(res, "print");
45356
+ }, callLocalServicesErrorCb);
45357
+ }
45442
45358
  }).finally(() => {
45443
45359
  state.visible = false;
45444
45360
  });
@@ -45448,26 +45364,15 @@ var script = /* @__PURE__ */ defineComponent({
45448
45364
  prevFnError();
45449
45365
  return Promise.reject();
45450
45366
  }).then(() => {
45451
- if (props.versionType == 1 || props.versionType == 3) {
45452
- const params = props.strategy === "MULTI" ? getHisParams() : getOnceHisParams();
45453
- const printFn = props.versionType == 1 ? "handleHisPrint" : "handleOldHisPrint";
45454
- printInstance[printFn](8, params).then((res) => {
45455
- console.log(res, 88888888);
45456
- }).catch((error) => {
45457
- console.log(error, "error888");
45458
- });
45459
- }
45460
- else {
45461
- const params = props.strategy === "MULTI" ? getPrintParams() : getOnceParams();
45462
- const queryParams = {
45463
- formatId: state.currentFormatId,
45464
- templateId: getTemplateIdByFormatId(state.currentFormatId),
45465
- params
45466
- };
45467
- printInstance.preview(queryParams, (res) => {
45468
- callLocalServicesSuccessCb(res, "preview");
45469
- }, callLocalServicesErrorCb);
45470
- }
45367
+ const params = props.strategy === "MULTI" ? getPrintParams() : getOnceParams();
45368
+ const queryParams = {
45369
+ formatId: state.currentFormatId,
45370
+ templateId: getTemplateIdByFormatId(state.currentFormatId),
45371
+ params
45372
+ };
45373
+ printInstance.preview(queryParams, (res) => {
45374
+ callLocalServicesSuccessCb(res, "preview");
45375
+ }, callLocalServicesErrorCb);
45471
45376
  }).finally(() => {
45472
45377
  state.visible = false;
45473
45378
  });
@@ -45477,18 +45382,7 @@ var script = /* @__PURE__ */ defineComponent({
45477
45382
  prevFnError();
45478
45383
  return Promise.reject();
45479
45384
  }).then(() => {
45480
- if (props.versionType == 1 || props.versionType == 3) {
45481
- const params = props.strategy === "MULTI" ? getHisParams() : getOnceHisParams();
45482
- const printFn = props.versionType == 1 ? "handleHisPrint" : "handleOldHisPrint";
45483
- printInstance[printFn](9, params).then((res) => {
45484
- console.log(res, 999999);
45485
- }).catch((error) => {
45486
- console.log(error, "error999");
45487
- });
45488
- }
45489
- else {
45490
- state.identityVerification.visible = true;
45491
- }
45385
+ state.identityVerification.visible = true;
45492
45386
  }).finally(() => {
45493
45387
  state.visible = false;
45494
45388
  });
@@ -45533,25 +45427,6 @@ var script = /* @__PURE__ */ defineComponent({
45533
45427
  let findDefault = list.find((item) => item[key] == 1);
45534
45428
  return findDefault?.id || list[0].id;
45535
45429
  };
45536
- const setOptions = () => {
45537
- const children = state.formatList.map((v) => {
45538
- return {
45539
- label: v.name,
45540
- key: v.id
45541
- };
45542
- });
45543
- options.unshift({
45544
- label: formatTitle.value,
45545
- key: "format",
45546
- children
45547
- });
45548
- };
45549
- const initHIS = (formatListResult) => {
45550
- state.formatList = formatListResult ? formatListResult.list.filter((item) => item.printmark == 1) : [];
45551
- setOptions();
45552
- state.currentFormatId = getDefaultFormatId(state.formatList, "printmark");
45553
- state.templateParams = state.formatList[0];
45554
- };
45555
45430
  const formatFormatList = (list) => {
45556
45431
  let formatList = [];
45557
45432
  list.forEach((item) => {
@@ -45615,7 +45490,7 @@ var script = /* @__PURE__ */ defineComponent({
45615
45490
  };
45616
45491
  const initCRM = async (formatListResult) => {
45617
45492
  state.formatList = formatListResult ? formatFormatList(formatListResult.obj) : [];
45618
- setOptions();
45493
+ console.log("formatListResult", formatListResult);
45619
45494
  state.currentFormatId = getDefaultFormatId(state.formatList, "defaultFlag");
45620
45495
  if (!state.currentFormatId) {
45621
45496
  window.$message.error("\u83B7\u53D6\u6253\u5370\u683C\u5F0F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01");
@@ -45641,12 +45516,7 @@ var script = /* @__PURE__ */ defineComponent({
45641
45516
  setTimeoutSpin();
45642
45517
  instantiatePrintSDK();
45643
45518
  const formatListResult = await props.queryPrintFormatByNumber();
45644
- if (props.versionType == 1 || props.versionType == 3) {
45645
- initHIS(formatListResult);
45646
- }
45647
- else {
45648
- await initCRM(formatListResult);
45649
- }
45519
+ await initCRM(formatListResult);
45650
45520
  setLoaded();
45651
45521
  return true;
45652
45522
  };
@@ -45745,6 +45615,7 @@ script.install = function (app) {
45745
45615
  const components = [
45746
45616
  Grid,
45747
45617
  script$6,
45618
+ script$5,
45748
45619
  script$2,
45749
45620
  script
45750
45621
  ];
@@ -45758,4 +45629,4 @@ var index = {
45758
45629
  ...components
45759
45630
  };
45760
45631
 
45761
- export { script$6 as CBigTable, script as CButtonPrint, script$2 as CDragLayout, Grid as CGrid, index as default };
45632
+ export { script$6 as CBigTable, script as CButtonPrint, script$2 as CDragLayout, script$5 as CFieldSet, Grid as CGrid, index as default };