数通互联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
123 KiB

4 months ago
import{g6 as Io,d as Xe,r as h,G as Sl,w as ie,a0 as et,a7 as ke,a as r,f as b,q as m,e as o,h as u,F as A,_ as ul,y as fe,z as lt,dr as Oo,I as wl,b as n,c as x,H as v,$ as C,g as q,ab as tt,bI as qt,b8 as Jt,L as Gt,aY as zo,bf as Re,al as at,am as ot,ai as Wt,ac as Yt,ay as $o,eq as Qt,eG as Zt,ax as De,eH as Ql,g7 as Po,cE as Zl,t as Ce,eI as Xt,e0 as Ho,eJ as Bt,bn as Xl,eK as Mo,eL as Bo,eM as Ko,aP as Ke,eN as jo,aq as Lo,ap as qo,M as Jo,aw as Go,bD as Wo,av as Yo,bc as Qo,aj as Zo,an as Xo,cA as en,cB as ln,dZ as tn,ao as an,bA as on,dW as nn,aF as rn,ak as sn,N as un,aA as dn,S as cn,bB as pn,b3 as fn,aG as mn,b4 as vn,eO as gn,p as nt,m as rt,n as il,eR as hn,er as yn,u as bn,Y as Kt,eu as xn,ey as rl,ex as Qe,es as Se,ev as _n,et as Ze,ew as Cn,g8 as kn,g9 as Vn,ga as Fn,gb as wn,at as Sn}from"./index-e450010e.js";import{A as Rn}from"./aceDrawer-bed1e945.js";/* empty css */import{v as Dn,M as Tn,_ as Nn,e as An,A as Un,a as En,b as In,c as jt}from"./index-75199847.js";import{t as sl,E as On}from"./Editor-e214347c.js";import{v as ue}from"./v4-4a60fe23.js";/* empty css */import{F as zn}from"./formVersion-d56e8795.js";import{_ as $n}from"./previewPage.vue_vue_type_script_setup_true_lang-c385e251.js";import"./bianKuangYuanjiao-da7c4bc6.js";import"./siJiao-b8f63525.js";const Pn=[{type:"mobile",label:"手机号码",regExp:/^0{0,1}(13[0-9]|15[7-9]|153|156|18[7-9])[0-9]{8}$/,message:"请输入手机号码",checkbox:!1},{type:"tel",label:"固话",regExp:/^0\d{2,3}-\d{7,8}$/,message:"请输入固定电话号码",checkbox:!1},{type:"phone",label:"固话或手机",regExp:/^((0\d{2,3}(-?)\d{7,8})|(1[3456789]\d{9}))$/,message:"请输入固定电话号码或手机号",checkbox:!1},{type:"email",label:"邮箱",regExp:/^[a-z0-9A-Z._%-]+@([a-z0-9A-Z-]+\.)+[a-zA-Z]{2,4}$/,message:"请输入邮箱地址",checkbox:!1},{type:"card",label:"身份证",regExp:/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/,message:"请输入身份证号",checkbox:!1},{type:"url",label:"网址",regExp:/^https?:\/\/((.)+(\.)?)*(:\d+)?(\/((\.)?(\?)?=?&?.(\?)?)*)*$/,message:"请输入网址",checkbox:!1}],Hn=[{type:"int",label:"正整数",regExp:/^[0-9]*[1-9][0-9]*$/,message:"请输入正整数",checkbox:!1},{type:"number",label:"数字",regExp:/^\d+(\.\d+)?$/,message:"请输入数字",checkbox:!1},{type:"money",label:"金额",regExp:/^[0-9]+\.?[0-9]{0,2}$/,message:"请输入正确的金额,最多两位小数",checkbox:!1},{type:"float",label:"浮点数",regExp:/^(\-|\+)?\d+(\.\d+)?$/,message:"请输入正确的金额,最多两位小数",checkbox:!1}],Lt=I=>{console.log("解析出表单可作为AI变量的元素------------>",I);let de=new Array;return I.formData&&I.formData.list&&I.formData.list.length>0&&I.formData.list.forEach(M=>{if(!Io.includes(M.type)){let V="";M.label?V=M.label:M.item&&M.item.label?V=M.item.label:V=M.unitName,console.log("解析出表单可作为AI变量的元素----2--1-1----->",M),de.push({label:V,value:M.name})}}),de},Mn={class:"isHidde"},Bn=["innerHTML"],Kn=Xe({__name:"asfTmFillRoleFilterCondi",props:{aftText:{type:String,default(){return{}}},aftTextCopy:{type:String,default(){return{}}}},emits:["textChange","gongshiChange"],setup(I,{expose:de,emit:M}){let V=ue().replaceAll("-","").toString();const j={selector:"#"+V,language_url:"/tinymce/langs/zh-Hans.js",language:"zh-Hans",skin_url:"/tinymce/skins/ui/oxide",height:164,statusbar:!1,toolbar:!1,branding:!1,menubar:!1,forced_root_block:"",newline_behavior:"",content_css:"/tinymce/skins/content/default/content.css",auto_focus:!0},c=I;let N=M;const f=h("");f.value=c.aftText;const z=h(null);Sl(()=>{sl.init({})}),ie(()=>f.value,T=>{N("textChange",T),et(()=>{let J=[],Y=[];z.value.childNodes.forEach(Ve=>{Ve.childNodes.forEach(ne=>{J.push(ne.innerText?ne.innerText:ne.data),ne.dataset&&ne.dataset.keyid?Y.push(ne.dataset.keyid):Y.push(ne.innerText?ne.innerText:ne.data)})});let pe=Y.join("").replace(/\s+/g,""),G={formulaHtml:z
将删除本节点与本节点的所有子孙节点!`)){const s=t.parent,p=s.data.children||s.data,g=p.findIndex(k=>k.id===l.id);p.splice(g,1),Ne.value=[...Ne.value]}},ga=(t,l)=>{let i=prompt("请输入:");if(i!=null&&i.length>0){const s=t.parent,p=s.data.children||s.data,g=p.findIndex(k=>k.id===l.id);p[g].label=i,Ne.value=[...Ne.value]}},ha=(t,l)=>{const i=t.parent,s=i.data.children||i.data,p=s.findIndex(g=>g.id===l.id);s[p].disabled=!s[p].disabled,Ne.value=[...Ne.value]};function ya(t,l,i){const s=e.value.control;s.imgUrl=t.data.url,s.uploadFlag=!0}const ba=[{value:"数据源",label:"数据源"},{value:"固定选项",label:"固定选项"}];let ct="";const ol=h(!1);function xa(){alert("暂不支持外部填单")}function _a(){Ca().then(({data:t})=>{ct=t,ol.value==!1&&(ol.value=!0)})}function Ca(){return Ke({url:"/javasys/lowCode/QrCode/getQrCodeImgInside",method:"post",data:{cfid:V.customerformid}})}function ka(){for(f.value.qrCodeShowFields.length>5&&alert("最多可选择5个字段");f.value.qrCodeShowFields.length>5;)f.value.qrCodeShowFields.pop()}const Ae={children:"children",label:"label"},$e=h(),Pe=h();function Va(){return Ke({url:"/javasys/lowCode/AssociatedForms/getFieldTree",method:"post",data:{cfid:V.customerformid}})}function Fa(){return Ke({url:"/javasys/lowCode/transfer/getOrgAndManTree",method:"post"})}function wa(){return Ke({url:"/javasys/lowCode/AssociatedForms/getCustomerFormList",method:"post"})}function Sa(){return Ke({url:"/javasys/lowCode/AssociatedForms/getRoleList",method:"post"})}function pt(){return Ke({url:"/javasys/lowCode/AssociatedForms/getFieldTree",method:"post",data:{cfid:e.value.control.formid}})}function Ra(){return Ke({url:"/javasys/lowCode/AssociatedForms/getFieldTree",method:"post",data:{cfid:e.value.control.optionsValue3Formid}})}const cl=h(),zl=h(),He=h(),$l=h(),pl=h();let nl=0;function Le(t,l){return t.length<l?[]:t.slice(l)}function ft(){e.value.control.glbbddbd=f.value.name,e.value.control.formid===""||pt().then(({data:t})=>{if(t.id!=="cfid为空"){let l=h(t.children),i=JSON.parse(JSON.stringify(t.children)),s=JSON.parse(JSON.stringify(t.children)),p=JSON.parse(JSON.stringify(t.children));i=i.filter(w=>w.type!=="table"),i.splice(0,2),i.splice(2,4),s=s.filter(w=>w.type=="table"),p=p.filter(w=>w.type=="table"),p.forEach(w=>{w.children=Le(w.children,6)});for(let w=0;w<s.length;w++)s[w].children=[];let g=h(i),k=h(s),P=h(p),U=0;for(let w=0;w<k.value.length;w++)k.value[w].disabled=!1,U++;nl=U,cl.value=[{id:"rootid_"+t.label,label:"关联的表单-"+t.label,children:[...l.value],treeAttrs:t.treeAttrs,disabled:!0}],zl.value=[{id:"rootid_"+t.label,label:"关联的表单-"+t.label,children:[...g.value],treeAttrs:t.treeAttrs,disabled:!0}],He.value=[{id:"rootid_"+t.label,label:"关联的表单-"+t.label,children:[...k.value],treeAttrs:t.treeAttrs,disabled:!0}],$l.value=[{id:"rootid_"+t.label,label:"关联的表单-"+t.label,children:[...P.value],treeAttrs:t.treeAttrs,disabled:!0}]}e.value.control.asfasfLabel=t.label})}function mt(){e.value.control.optionsValue3Formid===""||Ra().then(({data:t})=>{if(t.id!=="cfid为空"){if(t.treeAttrs.onlyToShowTableId==""){let g=h(t.children);pl.value=[{id:"rootid_"+t.label,label:"关联的表单-"+t.label,children:[...g.value],treeAttrs:t.treeAttrs}]}else{let g=h(t.children);g.value=g.value.filter(P=>P.children!=null);let k=JSON.parse(JSON.stringify(g.value));k=k.filter(P=>P.label==t.treeAttrs.onlyToShowTableId),k=k[0].children,pl.value=[{id:"rootid_"+t.label,label:"关联的表单-"+t.label,children:[...k],treeAttrs:t.treeAttrs}]}let l=e.value.control.optionsValue3Formid,i=l.split(":")[0],s=e.value.control.optionsValue3Field,p=s.split(":")[1];if(typeof p<"u"){if(i!=p)e.value.control.optionsValue3Field="";else if(l.includes(":zibiaoid-")){let g=l.split(":zibiaoid-")[1];s.includes(g)||(e.value.control.optionsValue3Field="")}}}})}let qe=h(),fl=h(),Je=h(),vt=h(),gt=h(),Da=h(),Me=h(),ht=[],Ge=[],Be;yt();function yt(){Va().then(({data:t})=>{if(Be=JSON.parse(JSON.stringify(t)),!(t.id==="cfid为空"||t.id==="masterTable为null")){let l=h(t.children),i=JSON.pars