import{r as s,A as P,B as R,c as r,C as E,d as x,e as A,D as h,E as V,i as l,f as e,h as o,G as L,l as y,m as u,y as N,v as Q}from"./index-BXdSy86L.js";import{d as $}from"./dispatch-D5OGiGsN.js";const F={class:"app-container"},H={__name:"index",setup(G){const{proxy:w}=Q(),v=s([]);s(!1);const m=s(!0),k=s(!0),f=s(0),C=P({form:{},queryParams:{page:1,limit:10}}),{queryParams:a,form:I}=R(C);function _(){m.value=!0,$(a.value).then(d=>{v.value=d.data,f.value=d.count,m.value=!1})}function p(){a.value.page=1,a.value.limit=10,_()}function K(){w.resetForm("queryRef"),p()}function S(d){w.$router.push("dispatch/salary/advance?id="+d.id+"&code="+d.base_code)}return _(),(d,i)=>{const b=r("el-input"),c=r("el-form-item"),g=r("el-button"),U=r("el-form"),t=r("el-table-column"),q=r("el-table"),B=r("pagination"),D=E("loading");return x(),A("div",F,[h(e(U,{model:l(a),ref:"queryRef",inline:!0},{default:o(()=>[e(c,{label:"派遣公司名称",prop:"name"},{default:o(()=>[e(b,{modelValue:l(a).name,"onUpdate:modelValue":i[0]||(i[0]=n=>l(a).name=n),clearable:"",style:{width:"300px"},onKeyup:y(p,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(c,{label:"默认账号",prop:"default_account"},{default:o(()=>[e(b,{modelValue:l(a).default_account,"onUpdate:modelValue":i[1]||(i[1]=n=>l(a).default_account=n),clearable:"",style:{width:"300px"},onKeyup:y(p,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(c,{label:"编号",prop:"base_code"},{default:o(()=>[e(b,{modelValue:l(a).base_code,"onUpdate:modelValue":i[2]||(i[2]=n=>l(a).base_code=n),clearable:"",style:{width:"300px"},onKeyup:y(p,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(c,null,{default:o(()=>[e(g,{type:"primary",icon:"Search",onClick:p},{default:o(()=>[u("搜索")]),_:1}),e(g,{icon:"Refresh",onClick:K},{default:o(()=>[u("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[V,l(k)]]),h((x(),L(q,{data:l(v)},{default:o(()=>[e(t,{label:"编号",align:"left",prop:"base_code",width:"200",fixed:""}),e(t,{label:"派遣公司名称",align:"left",prop:"name",width:"260",fixed:""}),e(t,{label:"默认账号",align:"left",prop:"default_account",width:"180",fixed:""}),e(t,{label:"前缀",align:"left",prop:"prefix",width:"100"}),e(t,{label:"规模",align:"center",prop:"scale"}),e(t,{label:"联系人",align:"center",prop:"contracts"}),e(t,{label:"联系电话",align:"center",prop:"contract_number",width:"120"}),e(t,{label:"公司地址（省市县区 ）",align:"left",prop:"district",width:"200"}),e(t,{label:"详细地址",align:"left",prop:"address",width:"200"}),e(t,{label:"是否使用电子合同",align:"center",prop:"line_contract",width:"180"},{default:o(({row:n})=>[u(N(n.line_contract=="1"?"是":"否"),1)]),_:1}),e(t,{label:"统一社会信用代码",align:"left",prop:"id_no",width:"180"}),e(t,{label:"电子签章应用id",align:"left",prop:"seal_id",width:"180"}),e(t,{label:"电子签章应用秘钥",align:"left",prop:"secret_key",width:"280"}),e(t,{label:"注册日期",align:"left",prop:"register_time",width:"180"}),e(t,{label:"创建时间",align:"left",prop:"create_time",width:"180"}),e(t,{label:"更新时间",align:"left",prop:"update_time",width:"180"}),e(t,{label:"操作",width:"180",align:"center","class-name":"small-padding fixed-width"},{default:o(({row:n})=>[e(g,{link:"",type:"primary",onClick:T=>S(n),icon:"EditPen"},{default:o(()=>[u("设置预支工资")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[D,l(m)]]),h(e(B,{total:l(f),page:l(a).page,"onUpdate:page":i[3]||(i[3]=n=>l(a).page=n),limit:l(a).limit,"onUpdate:limit":i[4]||(i[4]=n=>l(a).limit=n),onPagination:_},null,8,["total","page","limit"]),[[V,l(f)>0]])])}}};export{H as default};
