1 |
- import{l as f}from"./lodash.f6259d7e.js";import{aD as C,W as h}from"./index.1d5f2f42.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:a=u.index,name:c=u.name,code:l=u.code}=o,d=n.splice(a);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:c,label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",minWidth:"155px",cellRenderer:({row:s})=>m(s,c)}),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:a=>e.value=a}],{searchConfig:o,isHasCompany:n,companyNo:e}}export{x as a,A as u};
|