useBusinessQuery.e0e81f10.js 980 B

1
  1. import{l as f}from"./lodash.0da4bba2.js";import{cl as C,Q as h}from"./index.56449854.js";const u={index:2,name:"relaComName",code:"relaComNo"};function x(r){const{sourceConfig:t,apis:i,insertBusinessField:o=u}=r,e=f.exports.cloneDeep(t),{columns:n}=e,{index:c=u.index,name:a=u.name,code:l=u.code}=o,d=n.splice(c);function m(s,p){return s[p]?s[p]:"--"}return n.push({prop:l,label:"\u4E1A\u52A1\u516C\u53F8\u7F16\u53F7",minWidth:"155px",cellRenderer:({row:s})=>m(s,l)}),n.push({prop:a,label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",minWidth:"155px",cellRenderer:({row:s})=>m(s,a)}),e.apis=i,e.columns=n.concat(d),{contentConfig:e}}function A(r){const{sourceConfig:t,queryField:i="relaComNo"}=r,o=JSON.parse(JSON.stringify(t)),e=C(""),n=h(()=>e.value==="");return o.formItems=[...o.formItems,{trigger:"change",field:i,placeholder:"\u4E1A\u52A1\u516C\u53F8",noRest:!0,type:"business-permission",onChange:c=>e.value=c}],{searchConfig:o,isHasCompany:n,companyNo:e}}export{x as a,A as u};