@fmdeui/fmui 1.0.176 → 1.0.178

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.
@@ -38,11 +38,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  const props = __props;
39
39
  const useBaseApi = usefmPageFormDatatore();
40
40
  const tipLoadData = computed(() => {
41
- var _a, _b;
41
+ var _a, _b, _c;
42
42
  if (props.isDel) {
43
- return useBaseApi.getLableDelLogData(props.params.table, props.params.field, props.params.bizid, ((_a = props.params) == null ? void 0 : _a.bizType) || "basefrom");
43
+ return useBaseApi.getLableDelLogData(props.params.table, props.params.bizid, ((_a = props.params) == null ? void 0 : _a.code) || "", ((_b = props.params) == null ? void 0 : _b.bizType) || "basefrom");
44
44
  }
45
- return useBaseApi.getLableLogData(props.params.table, props.params.field, props.params.bizid, ((_b = props.params) == null ? void 0 : _b.bizType) || "basefrom");
45
+ return useBaseApi.getLableLogData(props.params.table, props.params.field, props.params.bizid, ((_c = props.params) == null ? void 0 : _c.bizType) || "basefrom");
46
46
  });
47
47
  return (_ctx, _cache) => {
48
48
  const _component_el_icon = resolveComponent("el-icon");
@@ -129,7 +129,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
129
129
  /* TEXT */
130
130
  ),
131
131
  createTextVNode(
132
- "\u3011" + toDisplayString(value == null ? void 0 : value.price) + "*" + toDisplayString((value == null ? void 0 : value.numA) != null ? value == null ? void 0 : value.numA : value == null ? void 0 : value.num) + "*" + toDisplayString((value == null ? void 0 : value.unit) != null ? value == null ? void 0 : value.unit : (value == null ? void 0 : value.numB) || 1) + "=" + toDisplayString(value == null ? void 0 : value.totalMoney) + "\uFF0C",
132
+ "\u3011" + toDisplayString(value == null ? void 0 : value.price) + "*" + toDisplayString((value == null ? void 0 : value.numA) != null ? value == null ? void 0 : value.numA : value == null ? void 0 : value.num) + "*" + toDisplayString((value == null ? void 0 : value.unit) != null ? value == null ? void 0 : value.unit : (value == null ? void 0 : value.numB) || 1) + "=" + toDisplayString((value == null ? void 0 : value.totalMoney) == null ? value == null ? void 0 : value.sumMoney : value == null ? void 0 : value.totalMoney) + "\uFF0C",
133
133
  1
134
134
  /* TEXT */
135
135
  ),
@@ -43,7 +43,7 @@ const usefmPageFormDatatore = defineStore("fmPageFormDatatore", () => {
43
43
  }
44
44
  return resultLogData;
45
45
  };
46
- const getLableDelLogData = (table, field, bizid, bizinType = "basefrom") => {
46
+ const getLableDelLogData = (table, bizid, code = "", bizinType = "basefrom") => {
47
47
  const resultLogData = [];
48
48
  const bizType = state.currentBizType != "" ? state.currentBizType : bizinType;
49
49
  if (state.formData[bizType]) {
@@ -51,8 +51,8 @@ const usefmPageFormDatatore = defineStore("fmPageFormDatatore", () => {
51
51
  var _a, _b;
52
52
  const filteredLogs = (_b = (_a = item.logData) == null ? void 0 : _a.filter(
53
53
  (log) => {
54
- var _a2;
55
- return log.table === table && log.field === field && ((_a2 = log == null ? void 0 : log.snapshot) == null ? void 0 : _a2.regMainId) === bizid && log.actionType === "delete";
54
+ var _a2, _b2, _c;
55
+ return log.table === table && (table == "costs" ? ((_a2 = log == null ? void 0 : log.snapshot) == null ? void 0 : _a2.itemCode) === code && ((_b2 = log == null ? void 0 : log.snapshot) == null ? void 0 : _b2.regMainId) === bizid : ((_c = log == null ? void 0 : log.snapshot) == null ? void 0 : _c.regMainId) === bizid) && log.actionType === "delete";
56
56
  }
57
57
  )) != null ? _b : [];
58
58
  filteredLogs.forEach((log) => {
@@ -11,7 +11,7 @@ export declare const usefmPageFormDatatore: StoreDefinition<"fmPageFormDatatore"
11
11
  clearFormData: (bizType?: string) => void;
12
12
  clearAllFormData: () => void;
13
13
  getLableLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
14
- getLableDelLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
14
+ getLableDelLogData: (table: any, bizid: any, code?: string, bizinType?: string) => any[];
15
15
  }, never>, Pick<{
16
16
  setCurrentBizType: (bizType?: string) => void;
17
17
  setFormData: (data: any, bizType?: string) => void;
@@ -19,7 +19,7 @@ export declare const usefmPageFormDatatore: StoreDefinition<"fmPageFormDatatore"
19
19
  clearFormData: (bizType?: string) => void;
20
20
  clearAllFormData: () => void;
21
21
  getLableLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
22
- getLableDelLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
22
+ getLableDelLogData: (table: any, bizid: any, code?: string, bizinType?: string) => any[];
23
23
  }, never>, Pick<{
24
24
  setCurrentBizType: (bizType?: string) => void;
25
25
  setFormData: (data: any, bizType?: string) => void;
@@ -27,5 +27,5 @@ export declare const usefmPageFormDatatore: StoreDefinition<"fmPageFormDatatore"
27
27
  clearFormData: (bizType?: string) => void;
28
28
  clearAllFormData: () => void;
29
29
  getLableLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
30
- getLableDelLogData: (table: any, field: any, bizid: any, bizinType?: string) => any[];
30
+ getLableDelLogData: (table: any, bizid: any, code?: string, bizinType?: string) => any[];
31
31
  }, "setCurrentBizType" | "setFormData" | "getFormData" | "clearFormData" | "clearAllFormData" | "getLableLogData" | "getLableDelLogData">>;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.176 */
1
+ /*! fmdeui-fmui v1.0.178 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
@@ -4138,7 +4138,7 @@
4138
4138
  }
4139
4139
  return resultLogData;
4140
4140
  };
4141
- const getLableDelLogData = (table, field, bizid, bizinType = "basefrom") => {
4141
+ const getLableDelLogData = (table, bizid, code = "", bizinType = "basefrom") => {
4142
4142
  const resultLogData = [];
4143
4143
  const bizType = state.currentBizType != "" ? state.currentBizType : bizinType;
4144
4144
  if (state.formData[bizType]) {
@@ -4146,8 +4146,8 @@
4146
4146
  var _a, _b;
4147
4147
  const filteredLogs = (_b = (_a = item.logData) == null ? void 0 : _a.filter(
4148
4148
  (log) => {
4149
- var _a2;
4150
- return log.table === table && log.field === field && ((_a2 = log == null ? void 0 : log.snapshot) == null ? void 0 : _a2.regMainId) === bizid && log.actionType === "delete";
4149
+ var _a2, _b2, _c;
4150
+ return log.table === table && (table == "costs" ? ((_a2 = log == null ? void 0 : log.snapshot) == null ? void 0 : _a2.itemCode) === code && ((_b2 = log == null ? void 0 : log.snapshot) == null ? void 0 : _b2.regMainId) === bizid : ((_c = log == null ? void 0 : log.snapshot) == null ? void 0 : _c.regMainId) === bizid) && log.actionType === "delete";
4151
4151
  }
4152
4152
  )) != null ? _b : [];
4153
4153
  filteredLogs.forEach((log) => {
@@ -31509,11 +31509,11 @@
31509
31509
  const props = __props;
31510
31510
  const useBaseApi = usefmPageFormDatatore();
31511
31511
  const tipLoadData = vue.computed(() => {
31512
- var _a, _b;
31512
+ var _a, _b, _c;
31513
31513
  if (props.isDel) {
31514
- return useBaseApi.getLableDelLogData(props.params.table, props.params.field, props.params.bizid, ((_a = props.params) == null ? void 0 : _a.bizType) || "basefrom");
31514
+ return useBaseApi.getLableDelLogData(props.params.table, props.params.bizid, ((_a = props.params) == null ? void 0 : _a.code) || "", ((_b = props.params) == null ? void 0 : _b.bizType) || "basefrom");
31515
31515
  }
31516
- return useBaseApi.getLableLogData(props.params.table, props.params.field, props.params.bizid, ((_b = props.params) == null ? void 0 : _b.bizType) || "basefrom");
31516
+ return useBaseApi.getLableLogData(props.params.table, props.params.field, props.params.bizid, ((_c = props.params) == null ? void 0 : _c.bizType) || "basefrom");
31517
31517
  });
31518
31518
  return (_ctx, _cache) => {
31519
31519
  const _component_el_icon = vue.resolveComponent("el-icon");
@@ -31600,7 +31600,7 @@
31600
31600
  /* TEXT */
31601
31601
  ),
31602
31602
  vue.createTextVNode(
31603
- "\u3011" + vue.toDisplayString(value == null ? void 0 : value.price) + "*" + vue.toDisplayString((value == null ? void 0 : value.numA) != null ? value == null ? void 0 : value.numA : value == null ? void 0 : value.num) + "*" + vue.toDisplayString((value == null ? void 0 : value.unit) != null ? value == null ? void 0 : value.unit : (value == null ? void 0 : value.numB) || 1) + "=" + vue.toDisplayString(value == null ? void 0 : value.totalMoney) + "\uFF0C",
31603
+ "\u3011" + vue.toDisplayString(value == null ? void 0 : value.price) + "*" + vue.toDisplayString((value == null ? void 0 : value.numA) != null ? value == null ? void 0 : value.numA : value == null ? void 0 : value.num) + "*" + vue.toDisplayString((value == null ? void 0 : value.unit) != null ? value == null ? void 0 : value.unit : (value == null ? void 0 : value.numB) || 1) + "=" + vue.toDisplayString((value == null ? void 0 : value.totalMoney) == null ? value == null ? void 0 : value.sumMoney : value == null ? void 0 : value.totalMoney) + "\uFF0C",
31604
31604
  1
31605
31605
  /* TEXT */
31606
31606
  ),