@das-fed/ui 6.4.0-dev.55.5 → 6.4.0-dev.55.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.
@@ -9,14 +9,14 @@ import { DasUpload as yt } from "@das-fed/ui/packages/components/upload/index";
9
9
  import { DasFormItem as A } from "@das-fed/ui/packages/components/form-item/index";
10
10
  import { DasAutocomplete as bt } from "@das-fed/ui/packages/components/autocomplete/index";
11
11
  import ve from "dayjs";
12
- import { DasImageViewer as Be } from "@das-fed/ui/packages/components/image-viewer/index";
12
+ import { DasImageViewer as Ke } from "@das-fed/ui/packages/components/image-viewer/index";
13
13
  import { DasInput as _t } from "@das-fed/ui/packages/components/input/index";
14
14
  import { DasTooltip as De } from "@das-fed/ui/packages/components/tooltip/index";
15
- import { i18n as B, t as V, setI18nRule as wt } from "@das-fed/web/packages/i18n/index";
15
+ import { i18n as K, t as V, setI18nRule as wt } from "@das-fed/web/packages/i18n/index";
16
16
  import { DasTableColumn as E } from "@das-fed/ui/packages/components/table/index";
17
17
  import { DasSearchForm as Ct } from "@das-fed/ui/packages/components/search-form/index";
18
18
  import { DasModelTableDialog as Vt } from "@das-fed/ui/packages/business-components/model-table-dialog";
19
- import { getProjectInfo as Ke } from "@das-fed/utils/common-info";
19
+ import { getProjectInfo as Be } from "@das-fed/utils/common-info";
20
20
  import { getConfig as Dt } from "@das-fed/utils/config";
21
21
  import { DasRichEditor as je } from "@das-fed/ui/packages/components/rich-editor/index";
22
22
  import { DasCollaspe as Ae } from "@das-fed/ui/packages/components/collaspe/index";
@@ -25,7 +25,7 @@ const X = "v1", kt = Z(`/workflow/form/form/${X}`), St = Z(`/workflow/form/formD
25
25
  Z(`/workflow/api/user/${X}`);
26
26
  const Ue = Z(`/workflow/api/extend/${X}`), Nt = Z(`/workflow/flow/def/${X}`), Lt = Z(`/workflow/form/customQuery/${X}`), ae = Z(`/api/enterpriseright/permission/${X}`), ke = Z(`/api/space-manage/space-tree/${X}`), zt = Z(`/workflow/form/dataTemplate/${X}`), Se = Z(`/api/supply/supplier/${X}`), Mt = Z(`/api/warehouse/vms/${X}/asset-receive`), Tt = zt.get("/getBpmDataTemplateInfoByFlowKey"), Rt = kt.get("/formDesign"), Pt = St.get("/get"), $t = Ue.get("/report-config");
27
27
  Ue.get("/application-report");
28
- const Et = Nt.get("/getBindRelationByDefKey"), Ft = Lt.get("/getByAlias"), It = ae.get("/organization/authTree"), Ot = ae.post("/user/list"), qt = ae.post("/data/user-query"), Bt = ae.get("/role/list"), Kt = ae.post("/data/role-ids"), jt = ae.get("/organization/organizationpage"), At = ae.get("/station/list"), Qt = ae.get("/position/list"), ye = ae.post("/organization/detailbyids"), Ut = ke.get("/controller/area-children"), Yt = ke.get("/controller/fuzzy-tree-all"), xt = ke.get("/controller/space"), Jt = Se.post("/supplier/list/page", (n) => {
28
+ const Et = Nt.get("/getBindRelationByDefKey"), Ft = Lt.get("/getByAlias"), It = ae.get("/organization/authTree"), Ot = ae.post("/user/list"), qt = ae.post("/data/user-query"), Kt = ae.get("/role/list"), Bt = ae.post("/data/role-ids"), jt = ae.get("/organization/organizationpage"), At = ae.get("/station/list"), Qt = ae.get("/position/list"), ye = ae.post("/organization/detailbyids"), Ut = ke.get("/controller/area-children"), Yt = ke.get("/controller/fuzzy-tree-all"), xt = ke.get("/controller/space"), Jt = Se.post("/supplier/list/page", (n) => {
29
29
  var e, t;
30
30
  return n.data.pageBean = {
31
31
  page: ((e = n == null ? void 0 : n.data) == null ? void 0 : e.pageIndex) || 1,
@@ -57,6 +57,7 @@ const Et = Nt.get("/getBindRelationByDefKey"), Ft = Lt.get("/getByAlias"), It =
57
57
  o(T.pcForm.pcFormId);
58
58
  }
59
59
  }, b = async () => {
60
+ if (!n.flowKey) return;
60
61
  const [k, T] = await Tt().run({
61
62
  flowKey: n.flowKey,
62
63
  needDisplayFileds: !1
@@ -478,7 +479,7 @@ const Et = Nt.get("/getBindRelationByDefKey"), Ft = Lt.get("/getByAlias"), It =
478
479
  }, {
479
480
  default: z(() => [
480
481
  qe("div", ua, [
481
- S(a(Be), {
482
+ S(a(Ke), {
482
483
  modelValue: r.value,
483
484
  "onUpdate:modelValue": p[0] || (p[0] = (o) => r.value = o),
484
485
  status: c.value,
@@ -938,22 +939,22 @@ const fa = (n, e) => {
938
939
  default: Da
939
940
  }, Symbol.toStringTag, { value: "Module" })), ka = (n, e, t) => {
940
941
  var ue, ne, pe, de, ce;
941
- const s = Ke().id, g = l(!1), i = (ce = (de = (pe = (ne = (ue = n == null ? void 0 : n.options) == null ? void 0 : ue.selector) == null ? void 0 : ne.type) == null ? void 0 : pe.alias) == null ? void 0 : de.replace("eip-", "")) == null ? void 0 : ce.replace("-selector", ""), y = l([]), C = l(""), u = l(""), h = {
942
- user: B("搜索姓名/账号/手机号").value,
943
- org: B("搜索组织名称/组织编码").value,
944
- role: B("搜索角色名称").value,
945
- job: B("职务名称/职务编码").value,
946
- post: B("搜索岗位名称/岗位编码").value,
947
- supplier: B("搜索供应商编码/名称").value,
948
- source: B("搜索单据编码/申请人").value
942
+ const s = Be().id, g = l(!1), i = (ce = (de = (pe = (ne = (ue = n == null ? void 0 : n.options) == null ? void 0 : ue.selector) == null ? void 0 : ne.type) == null ? void 0 : pe.alias) == null ? void 0 : de.replace("eip-", "")) == null ? void 0 : ce.replace("-selector", ""), y = l([]), C = l(""), u = l(""), h = {
943
+ user: K("搜索姓名/账号/手机号").value,
944
+ org: K("搜索组织名称/组织编码").value,
945
+ role: K("搜索角色名称").value,
946
+ job: K("职务名称/职务编码").value,
947
+ post: K("搜索岗位名称/岗位编码").value,
948
+ supplier: K("搜索供应商编码/名称").value,
949
+ source: K("搜索单据编码/申请人").value
949
950
  }, m = {
950
- user: B("添加用户").value,
951
- org: B("组织选择器").value,
952
- role: B("角色选择器").value,
953
- job: B("职务选择器").value,
954
- post: B("岗位选择器").value,
955
- supplier: B("选择供应商").value,
956
- source: B("选择源单").value
951
+ user: K("添加用户").value,
952
+ org: K("组织选择器").value,
953
+ role: K("角色选择器").value,
954
+ job: K("职务选择器").value,
955
+ post: K("岗位选择器").value,
956
+ supplier: K("选择供应商").value,
957
+ source: K("选择源单").value
957
958
  }, c = {
958
959
  user: "id",
959
960
  org: "id",
@@ -963,19 +964,19 @@ const fa = (n, e) => {
963
964
  supplier: "id",
964
965
  source: "code"
965
966
  }, d = {
966
- 1: B("正常").value,
967
- 2: B("锁定").value,
968
- 3: B("禁用").value
967
+ 1: K("正常").value,
968
+ 2: K("锁定").value,
969
+ 3: K("禁用").value
969
970
  }, r = {
970
- 0: B("普通").value,
971
- 1: B("管理员").value
971
+ 0: K("普通").value,
972
+ 1: K("管理员").value
972
973
  }, _ = {
973
- 0: B("无效").value,
974
- 1: B("有效").value
974
+ 0: K("无效").value,
975
+ 1: K("有效").value
975
976
  }, v = {
976
977
  user: qt,
977
978
  org: ye,
978
- role: Kt,
979
+ role: Bt,
979
980
  job: ye,
980
981
  post: ye,
981
982
  supplier: Ht
@@ -1047,7 +1048,7 @@ const fa = (n, e) => {
1047
1048
  },
1048
1049
  props: {
1049
1050
  inputOptions: {
1050
- placeholder: B("搜索组织名称").value
1051
+ placeholder: K("搜索组织名称").value
1051
1052
  }
1052
1053
  }
1053
1054
  },
@@ -1067,7 +1068,7 @@ const fa = (n, e) => {
1067
1068
  data: []
1068
1069
  }
1069
1070
  }, w()), i === "role" && (o.value.content = {
1070
- api: Bt,
1071
+ api: Kt,
1071
1072
  searchKey: "orgId",
1072
1073
  params: {
1073
1074
  status: 1
@@ -1123,7 +1124,7 @@ const fa = (n, e) => {
1123
1124
  },
1124
1125
  {
1125
1126
  type: "select",
1126
- label: B("供应商类型").value,
1127
+ label: K("供应商类型").value,
1127
1128
  layout: "out",
1128
1129
  width: "200px",
1129
1130
  closable: !0,
@@ -1149,7 +1150,7 @@ const fa = (n, e) => {
1149
1150
  };
1150
1151
  b();
1151
1152
  const J = async () => {
1152
- var O, Q, q, M, K, $, L, oe, Ne, Le, ze, Me, Te, Re, Pe, $e, Ee;
1153
+ var O, Q, q, M, B, $, L, oe, Ne, Le, ze, Me, Te, Re, Pe, $e, Ee;
1153
1154
  o.value.content.params = {
1154
1155
  ...(Q = (O = o == null ? void 0 : o.value) == null ? void 0 : O.content) == null ? void 0 : Q.params,
1155
1156
  pageIndex: 1
@@ -1161,7 +1162,7 @@ const fa = (n, e) => {
1161
1162
  relation: "AND",
1162
1163
  operation: "EQUAL"
1163
1164
  }
1164
- ], (K = f == null ? void 0 : f.value[0]) != null && K.value && (o.value.content.params.querys = (ze = (oe = (L = ($ = o == null ? void 0 : o.value) == null ? void 0 : $.content) == null ? void 0 : L.params) == null ? void 0 : oe.querys) == null ? void 0 : ze.concat([
1165
+ ], (B = f == null ? void 0 : f.value[0]) != null && B.value && (o.value.content.params.querys = (ze = (oe = (L = ($ = o == null ? void 0 : o.value) == null ? void 0 : $.content) == null ? void 0 : L.params) == null ? void 0 : oe.querys) == null ? void 0 : ze.concat([
1165
1166
  {
1166
1167
  property: "name",
1167
1168
  value: (Ne = f == null ? void 0 : f.value[0]) == null ? void 0 : Ne.value,
@@ -1225,8 +1226,8 @@ const fa = (n, e) => {
1225
1226
  ];
1226
1227
  return;
1227
1228
  } else i === "user" ? q.userIds = M : i === "role" ? q.ids = M : i === "supplier" ? q.id = M : q = M;
1228
- const [K, $] = await Q(q).run();
1229
- K || (i === "supplier" ? y.value = [
1229
+ const [B, $] = await Q(q).run();
1230
+ B || (i === "supplier" ? y.value = [
1230
1231
  {
1231
1232
  label: ($ == null ? void 0 : $.name) || ($ == null ? void 0 : $.code),
1232
1233
  value: $ == null ? void 0 : $.id
@@ -1251,7 +1252,7 @@ const fa = (n, e) => {
1251
1252
  let h = {
1252
1253
  pageSize: 1e4,
1253
1254
  pageIndex: 1,
1254
- projectId: Ke().id,
1255
+ projectId: Be().id,
1255
1256
  //项目id
1256
1257
  spaceId: ""
1257
1258
  // orgId:getProjectInfo().id
@@ -1330,11 +1331,11 @@ const fa = (n, e) => {
1330
1331
  })) : p == "supplier" ? (c.value = g(e.setting.name) ? [g(e.setting.name)] : [c.value], c.value && R(g(e.setting.name)), N(c, (M) => {
1331
1332
  s(e.setting.name, M == null ? void 0 : M.toString());
1332
1333
  }), N(Y, (M) => {
1333
- var K, $, L, oe;
1334
- ((oe = (L = ($ = (K = e == null ? void 0 : e.setting) == null ? void 0 : K.options) == null ? void 0 : $.selector) == null ? void 0 : L.type) == null ? void 0 : oe.supplierPhone) !== void 0 && s(e.setting.options.selector.type.supplierPhone, M);
1334
+ var B, $, L, oe;
1335
+ ((oe = (L = ($ = (B = e == null ? void 0 : e.setting) == null ? void 0 : B.options) == null ? void 0 : $.selector) == null ? void 0 : L.type) == null ? void 0 : oe.supplierPhone) !== void 0 && s(e.setting.options.selector.type.supplierPhone, M);
1335
1336
  })) : (c.value = g(e.setting.name) ? g(e.setting.name) : c.value, c.value && R(c.value), c.value.length || s(e.setting.name, null), N(o, (M) => {
1336
- c.value = M.map((K) => K.value).toString(), s(e.setting.name, c.value);
1337
- })), (M, K) => (D(), U(
1337
+ c.value = M.map((B) => B.value).toString(), s(e.setting.name, c.value);
1338
+ })), (M, B) => (D(), U(
1338
1339
  G,
1339
1340
  null,
1340
1341
  [
@@ -1342,7 +1343,7 @@ const fa = (n, e) => {
1342
1343
  key: 0,
1343
1344
  col: e.span,
1344
1345
  modelValue: c.value,
1345
- "onUpdate:modelValue": K[1] || (K[1] = ($) => c.value = $),
1346
+ "onUpdate:modelValue": B[1] || (B[1] = ($) => c.value = $),
1346
1347
  prop: e.setting.name,
1347
1348
  label: M.setting.desc,
1348
1349
  type: "inputDialogSelect",
@@ -1360,7 +1361,7 @@ const fa = (n, e) => {
1360
1361
  S(a(Vt), {
1361
1362
  "append-to-body": "",
1362
1363
  modelValue: a(d),
1363
- "onUpdate:modelValue": K[0] || (K[0] = (L) => he(d) ? d.value = L : null),
1364
+ "onUpdate:modelValue": B[0] || (B[0] = (L) => he(d) ? d.value = L : null),
1364
1365
  options: a(v),
1365
1366
  onConfirm: a(T),
1366
1367
  title: a(r),
@@ -1650,11 +1651,11 @@ const fa = (n, e) => {
1650
1651
  placeholder: M.setting.options.placeholder,
1651
1652
  required: Q.value,
1652
1653
  modelValue: c.value,
1653
- "onUpdate:modelValue": K[2] || (K[2] = ($) => c.value = $),
1654
+ "onUpdate:modelValue": B[2] || (B[2] = ($) => c.value = $),
1654
1655
  keyword: a(ne),
1655
- "onUpdate:keyword": K[3] || (K[3] = ($) => he(ne) ? ne.value = $ : null),
1656
+ "onUpdate:keyword": B[3] || (B[3] = ($) => he(ne) ? ne.value = $ : null),
1656
1657
  path: a(W),
1657
- "onUpdate:path": K[4] || (K[4] = ($) => he(W) ? W.value = $ : null),
1658
+ "onUpdate:path": B[4] || (B[4] = ($) => he(W) ? W.value = $ : null),
1658
1659
  isView: e.isView,
1659
1660
  disabled: a(m),
1660
1661
  load: a(de),
@@ -1729,7 +1730,7 @@ const fa = (n, e) => {
1729
1730
  }, {
1730
1731
  default: z(() => [
1731
1732
  r.value ? (D(), U("div", Ta, [
1732
- S(a(Be), {
1733
+ S(a(Ke), {
1733
1734
  modelValue: r.value,
1734
1735
  "onUpdate:modelValue": v[0] || (v[0] = (p) => r.value = p),
1735
1736
  status: c.value,
@@ -1857,10 +1858,10 @@ const fa = (n, e) => {
1857
1858
  }), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1858
1859
  __proto__: null,
1859
1860
  default: qa
1860
- }, Symbol.toStringTag, { value: "Module" })), Ba = {
1861
+ }, Symbol.toStringTag, { value: "Module" })), Ka = {
1861
1862
  name: "textarea"
1862
- }, Ka = /* @__PURE__ */ j({
1863
- ...Ba,
1863
+ }, Ba = /* @__PURE__ */ j({
1864
+ ...Ka,
1864
1865
  props: {
1865
1866
  setting: { default: () => ({
1866
1867
  icon: "",
@@ -1951,7 +1952,7 @@ const fa = (n, e) => {
1951
1952
  }
1952
1953
  }), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1953
1954
  __proto__: null,
1954
- default: Ka
1955
+ default: Ba
1955
1956
  }, Symbol.toStringTag, { value: "Module" })), ja = {
1956
1957
  name: "time"
1957
1958
  }, Aa = /* @__PURE__ */ j({
@@ -611,7 +611,7 @@ const yo = (e, r) => {
611
611
  key: "searchInputKey",
612
612
  label: "",
613
613
  type: "searchInput",
614
- placeholder: j("请输入关键字"),
614
+ placeholder: j("请输入关键字").value,
615
615
  value: "",
616
616
  clearable: !0,
617
617
  isIconLeft: !0,
@@ -622,7 +622,7 @@ const yo = (e, r) => {
622
622
  /** 1 */
623
623
  {
624
624
  key: "input1",
625
- label: j("输入框"),
625
+ label: j("输入框").value,
626
626
  type: "input",
627
627
  borderType: y.value == "underline" ? "bottom" : "bordered",
628
628
  value: "",
@@ -632,10 +632,10 @@ const yo = (e, r) => {
632
632
  /** 2 */
633
633
  {
634
634
  key: "sourceKey",
635
- label: j("选择框"),
635
+ label: j("选择框").value,
636
636
  borderType: y.value,
637
637
  type: "select",
638
- placeholder: j("请选择"),
638
+ placeholder: j("请选择").value,
639
639
  value: void 0,
640
640
  options: [],
641
641
  optionsValueKey: "key",
@@ -652,7 +652,7 @@ const yo = (e, r) => {
652
652
  {
653
653
  key: "timeKey",
654
654
  borderType: y.value,
655
- label: j("时间框"),
655
+ label: j("时间框").value,
656
656
  width: "200px",
657
657
  type: "date",
658
658
  format: "YYYY/MM/DD HH:mm:ss",
@@ -664,7 +664,7 @@ const yo = (e, r) => {
664
664
  /** 4 */
665
665
  {
666
666
  key: "treeKey",
667
- label: j("位置选择"),
667
+ label: j("位置选择").value,
668
668
  type: "treeSelect",
669
669
  borderType: y.value,
670
670
  width: "200px",
@@ -687,7 +687,7 @@ const yo = (e, r) => {
687
687
  /** 5 */
688
688
  {
689
689
  key: "radioKey",
690
- label: j("单选"),
690
+ label: j("单选").value,
691
691
  type: "radio",
692
692
  value: "",
693
693
  options: [],
@@ -698,7 +698,7 @@ const yo = (e, r) => {
698
698
  {
699
699
  key: "timeRangeKey",
700
700
  borderType: y.value,
701
- label: j("时间框"),
701
+ label: j("时间框").value,
702
702
  width: "200px",
703
703
  type: "dateRange",
704
704
  format: "YYYY/MM/DD",
@@ -710,7 +710,7 @@ const yo = (e, r) => {
710
710
  /** 7 组织树 业务内置 */
711
711
  {
712
712
  key: "orgKey",
713
- label: j("组织"),
713
+ label: j("组织").value,
714
714
  type: "treeSelect",
715
715
  borderType: y.value,
716
716
  width: "200px",
@@ -791,7 +791,7 @@ const yo = (e, r) => {
791
791
  if (a.mg) {
792
792
  s = !0;
793
793
  const $ = a.name, v = a.cm;
794
- c.key += c.key ? `,${$}` : $, c.label += c.label ? `,${v}` : v, c.placeholder += c.placeholder ? `/${v}` : `${j("process-search-form-search")}${v}`, a.defaultValue && (c.value = a.defaultValue);
794
+ c.key += c.key ? `,${$}` : $, c.label += c.label ? `,${v}` : v, c.placeholder += c.placeholder ? `/${v}` : `${j("process-search-form-search").value}${v}`, a.defaultValue && (c.value = a.defaultValue);
795
795
  return;
796
796
  }
797
797
  const o = T(i[1]);
@@ -9,10 +9,25 @@ declare const _default: {
9
9
  en: string;
10
10
  _appCode: string;
11
11
  };
12
+ 开始时间: {
13
+ 'zh-CN': string;
14
+ en: string;
15
+ _appCode: string;
16
+ };
17
+ 结束时间: {
18
+ 'zh-CN': string;
19
+ en: string;
20
+ _appCode: string;
21
+ };
12
22
  请选择日期: {
13
23
  'zh-CN': string;
14
24
  en: string;
15
25
  _appCode: string;
16
26
  };
27
+ 请选择时间: {
28
+ 'zh-CN': string;
29
+ en: string;
30
+ _appCode: string;
31
+ };
17
32
  };
18
33
  export default _default;