Files
qhmes/web-dist/js/OnlineSearchFormItem-CR0ng0jZ.js

2 lines
9.1 KiB
Java
Raw Normal View History

2026-06-16 18:19:57 +08:00
var z=Object.defineProperty;var E=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var A=(e,l,o)=>l in e?z(e,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[l]=o,K=(e,l)=>{for(var o in l||(l={}))G.call(l,o)&&A(e,o,l[o]);if(E)for(var o of E(l))W.call(l,o)&&A(e,o,l[o]);return e};import{e as Q,h as w,r as q,a4 as H,y as n,z as i,A as c,J as R,K as s,C as p,F as m,f as V,Q as J,D as X,E as Z,G as N,B as I}from"./vue-vendor-DNhG1Cve.js";import{f as _,g as x,b as ee,h as le,i as ae,j as te,k as ie,a as ne,l as oe,J as ue}from"./index-C69VKHba.js";import re from"./JOnlineSearchSelect-DG4FVOSh.js";import{au as de,aB as se,av as pe,aw as me,aG as ve}from"./index-X7Y8jykP.js";import{m as ge}from"./dayjs-jnKD3YGS.js";import"./helper-DcLcf4v6.js";import"./index-BzChaRPg.js";import"./BasicForm.vue_vue_type_style_index_0_lang-B29PWQy0.js";import"./index-DO7ZhK45.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./useTimeout-D5AmIBZw.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./breakpointEnum-BhAg6bcX.js";import"./index-BDvqZ5j4.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./useAppInject-DPZGPcR3.js";import"./index-CuWaQdlK.js";import"./index-aCD42OrZ.js";import"./quarterOfYear-BU2sPnff.js";import"./index-J2mOtM3w.js";const P=Q({name:"OnlineSearchFormItem",components:{JOnlineSearchSelect:re,JDictSelectTag:ue,JTreeSelect:oe,JCategorySelect:ne,JSelectUser:ie,JSelectUserByDept:te,JSelectDept:ae,JPopup:le,JAreaLinkage:ee,JAreaSelect:x,JSelectMultiple:_},props:{value:{type:String,default:""},item:{type:Object,default:()=>{},required:!0},dictOptions:{type:Object,default:()=>{},required:!1},onlineForm:{type:Object,default:()=>{},required:!1}},emits:["update:value","change"],setup(e,{emit:l}){const o="120px",B={style:{"max-width":o}},j="single";let y=q(""),d=q(""),f=q("");w(()=>e.value,()=>{b()?y.value=e.value?e.value:void 0:y.value=e.value,e.value||(d.value="",f.value="")},{deep:!0,immediate:!0}),w(y,t=>{l("update:value",t)},{immediate:!0}),w(d,t=>{l("change",e.item.field+"_begin",t),l("update:value","1")}),w(f,t=>{l("change",e.item.field+"_end",t),l("update:value","1")});function k(t){return t.dbField?t.dbField:t.field}function b(){let t=e.item;return t?t.view=="list"||t.view=="radio"||t.view=="switch":!1}function D(){let t=e.item;return t.dictTable&&t.dictTable.length>0?t.dictTable+","+t.dictText+","+t.dictCode:t.dictCode}function F(){let t=e.item,{dictTable:a,dictCode:v,dictText:r}=t,g=a.toLowerCase().split("where"),u="";return g.length>1&&(u=" where"+g[1]),"select "+v+" as 'value', "+r+" as 'text' from "+g[0]+u}function T(t){let{dictText:a,dictCode:v}=t;if(!a||a.length==0)return[];let r=a.split(","),h=v.split(","),g=[];for(let u=0;u<r.length;u++)g.push({target:r[u],source:h[u]});return g}function U(t){let{dictText:a}=e.item,r=a.split(",")[0];l("change",r,t[r])}function Y(t){l("update:value",t)}function C(t,a,v){let r={labelKey:a,rowKey:v},h=t.fieldExtendJson;if(h&&typeof h=="string"){let g=JSON.parse(h),u=K({},g);u.text&&(r.labelKey=u.text),u.store&&(r.rowKey=u.store)}return r}let M=C(e.item,"realname","username"),O=C(e.item,"departName","id");function S(t){t&&t.length>0?l("update:value",t.join(",")):l("update:value","")}return{getPopupFieldConfig:T,userSelectProp:M,depSelectProp:O,handleSelectChange:S,setFieldsValue:U,innerValue:y,beginValue:d,endValue:f,isEasySelect:b,getDictOptionKey:k,getDictCode:D,labelTextMaxWidth:o,labelCol:B,single_mode:j,getSqlByDictCode:F,handleCategoryTreeChange:Y}}}),$=()=>{H(e=>({v301cce78:e.labelTextMaxWidth}))},L=P.setup;P.setup=L?(e,l)=>($(),L(e,l)):$;const fe=["title"];function he(e,l,o,B,j,y){const d=ge,f=s("JDictSelectTag"),k=me,b=pe,D=s("JTreeSelect"),F=s("JCategorySelect"),T=s("JOnlineSearchSelect"),U=s("JSelectUser"),Y=s("JSelectDept"),C=s("JPopup"),M=s("JAreaSelect"),O=s("