yqform-h5 0.1.47 → 0.1.49

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.
@@ -12074,7 +12074,7 @@ Ft.AxiosHeaders = Ir;
12074
12074
  Ft.formToJSON = (e) => om(X.isHTMLForm(e) ? new FormData(e) : e);
12075
12075
  Ft.HttpStatusCode = IE;
12076
12076
  Ft.default = Ft;
12077
- const Zo = Ft, kE = { VITE_DOMAIN_URL: "/log", VITE_ENV: "proddev", VITE_VIDEO_APP_ID: "1310300221", BASE_URL: "/", MODE: "proddev", DEV: !1, PROD: !0, SSR: !1 }, TE = `${kE.VITE_DOMAIN_URL}`, mc = 3e4;
12077
+ const Zo = Ft, kE = { VITE_DOMAIN_URL: "", VITE_ENV: "prod", VITE_VIDEO_APP_ID: "1500014793", BASE_URL: "/", MODE: "prod", DEV: !1, PROD: !0, SSR: !1 }, TE = `${kE.VITE_DOMAIN_URL}`, mc = 3e4;
12078
12078
  Zo.defaults.withCredentials = !0;
12079
12079
  Zo.defaults.baseURL = TE;
12080
12080
  const Ss = (e, t, n, o) => new Promise((a, s) => {
@@ -12444,20 +12444,20 @@ const BE = {
12444
12444
  });
12445
12445
  });
12446
12446
  } else if (this.item.type === "hos") {
12447
- const t = { page: 0, size: 20, name: this.cusSearchValue };
12448
- let n = 0;
12449
- Ss("get", "/services/bl/api/user/hospital", t).then((o) => {
12450
- if (n = o.totalPages, this.cusSearchValue === "" && (n = 2), this.item.options = o.content.map((a) => ({ id: a.id, content: content.name, ...a })), n === 0)
12447
+ const t = window.location.search, n = new URLSearchParams(t), o = { page: 0, size: 20, name: this.cusSearchValue, pid: n.get("pid") };
12448
+ let a = 0;
12449
+ Ss("get", "/services/bl/api/user/hospital", o).then((s) => {
12450
+ if (a = s.totalPages, this.cusSearchValue === "" && (a = 2), this.item.options = s.content.map((u) => ({ id: u.id, content: u.name, ...u })), a === 0)
12451
12451
  this.loadCustom = !1, this.optionEmpty = !0;
12452
12452
  else
12453
- for (let a = 1; a < n; a++)
12454
- this.optionEmpty = !1, t.page = a, t.size = 20, t.name = this.cusSearchValue, Ss("get", "/services/bl/api/user/hospital", t).then((s) => {
12455
- s.content.forEach((u) => {
12456
- let d = { id: u.id, content: u.name, ...u };
12457
- console.log("obj >>", u), this.item.options.push(d);
12453
+ for (let u = 1; u < a; u++)
12454
+ this.optionEmpty = !1, o.page = u, o.size = 20, o.name = this.cusSearchValue, Ss("get", "/services/bl/api/user/hospital", o).then((d) => {
12455
+ d.content.forEach((f) => {
12456
+ let c = { id: f.id, content: f.name, ...f };
12457
+ console.log("obj >>", f), this.item.options.push(c);
12458
12458
  }), this.loadCustom = !1;
12459
- }).catch((s) => {
12460
- this.loadCustom = !1, console.log(s);
12459
+ }).catch((d) => {
12460
+ this.loadCustom = !1, console.log(d);
12461
12461
  });
12462
12462
  });
12463
12463
  }
@@ -12630,7 +12630,7 @@ const BE = {
12630
12630
  created() {
12631
12631
  this.item.type === "rate" && (this.rateValue = 1), this.initDependValue(), this.item.type === "phone" && this.item.autoFill && this.item.autoFill.auto && this.item.autoFill.config && (this.textValue = this.item.autoFill.config()), this.item.type === "identity" && !this.item.emsg && (this.item.emsg = "身份证格式不正确");
12632
12632
  }
12633
- }, ba = (e) => (ld("data-v-9b257789"), e = e(), ud(), e), RE = {
12633
+ }, ba = (e) => (ld("data-v-c326186a"), e = e(), ud(), e), RE = {
12634
12634
  key: 0,
12635
12635
  class: "form-item-container"
12636
12636
  }, FE = {
@@ -13243,7 +13243,7 @@ function kx(e, t, n, o, a, s) {
13243
13243
  }, 8, ["show"])
13244
13244
  ])) : Ce("", !0);
13245
13245
  }
13246
- const cm = /* @__PURE__ */ vo(BE, [["render", kx], ["__scopeId", "data-v-9b257789"]]);
13246
+ const cm = /* @__PURE__ */ vo(BE, [["render", kx], ["__scopeId", "data-v-c326186a"]]);
13247
13247
  /*!
13248
13248
  * vue-draggable-next v2.2.0
13249
13249
  * (c) 2023 Anish George
@@ -15265,34 +15265,34 @@ const DS = {
15265
15265
  required: !1,
15266
15266
  default: !1
15267
15267
  },
15268
- form: {
15269
- type: Object,
15270
- default: function() {
15271
- return {
15272
- spec: {
15273
- name: "",
15274
- theme: {
15275
- name: "show",
15276
- color: "#07c160",
15277
- header: "",
15278
- footer: ""
15279
- },
15280
- unit: ""
15281
- },
15282
- groups: [
15283
- {
15284
- gid: "templeteData",
15285
- spec: {
15286
- title: "",
15287
- subtitle: "",
15288
- unit: ""
15289
- },
15290
- items: []
15291
- }
15292
- ]
15293
- };
15294
- }
15295
- },
15268
+ // form: {
15269
+ // type: Object,
15270
+ // default: function () {
15271
+ // return {
15272
+ // spec: {
15273
+ // name: '',
15274
+ // theme: {
15275
+ // name: 'show',
15276
+ // color: '#07c160',
15277
+ // header: '',
15278
+ // footer: '',
15279
+ // },
15280
+ // unit: '',
15281
+ // },
15282
+ // groups: [
15283
+ // {
15284
+ // gid: 'templeteData',
15285
+ // spec: {
15286
+ // title: '',
15287
+ // subtitle: '',
15288
+ // unit: '',
15289
+ // },
15290
+ // items: [],
15291
+ // },
15292
+ // ],
15293
+ // };
15294
+ // },
15295
+ // },
15296
15296
  answer: {
15297
15297
  type: Object,
15298
15298
  required: !1
@@ -15335,7 +15335,11 @@ const DS = {
15335
15335
  data() {
15336
15336
  return {
15337
15337
  currentPageIndex: 0,
15338
- dependValues: []
15338
+ dependValues: [],
15339
+ form: {
15340
+ groups: [{ gid: "templeteData", spec: { unit: "页", title: "", subtitle: "" }, items: [{ key: "keyq3cb4y", emsg: "", type: "hos", title: "医院", weight: !1, depends: [], options: [], required: !0, subtitle: "", placeholder: "请选择医院" }], depends: [] }],
15341
+ spec: { name: "", unit: "页", theme: { name: "show", color: "#07c160", footer: "", header: "" } }
15342
+ }
15339
15343
  };
15340
15344
  },
15341
15345
  provide() {
@@ -15347,7 +15351,9 @@ const DS = {
15347
15351
  computed: {
15348
15352
  // 根据分组依赖项显示的表单项
15349
15353
  formVisible() {
15350
- const e = { ...this.form }, t = [];
15354
+ const e = { ...this.form };
15355
+ console.log("[ obj ] >", e);
15356
+ const t = [];
15351
15357
  if (this.form.groups)
15352
15358
  return this.form.groups.forEach((n) => {
15353
15359
  this.isShow(n) ? t.push(n) : n.items.forEach((a) => {
@@ -15426,7 +15432,7 @@ function RS(e, t, n, o, a, s) {
15426
15432
  ])) : Ce("", !0)
15427
15433
  ]);
15428
15434
  }
15429
- const xm = /* @__PURE__ */ vo(DS, [["render", RS], ["__scopeId", "data-v-61dc854b"]]);
15435
+ const xm = /* @__PURE__ */ vo(DS, [["render", RS], ["__scopeId", "data-v-6975fd3f"]]);
15430
15436
  const tt = (e) => e != null, go = (e) => typeof e == "function", er = (e) => e !== null && typeof e == "object", Md = (e) => er(e) && go(e.then) && go(e.catch), oo = (e) => Object.prototype.toString.call(e) === "[object Date]" && !Number.isNaN(e.getTime());
15431
15437
  function FS(e) {
15432
15438
  return e = e.replace(/[^-|\d]/g, ""), /^((\+86)|(86))?(1)\d{10}$/.test(e) || /^0[0-9-]{10,13}$/.test(e);