25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2 satır
7.0KB

  1. import{d as q,C as z,B as H,b as D,r as h,Z as $,o as W,c as d,e as i,f as m,h as a,i as o,F as C,H as Z,u as _,G as R,g as v,j as M,t as U,k as g}from"./index.0018c8ef.js";import{l as J}from"./reviewCheckProjectList.4029676b.js";import{g as K}from"./getIsShowReviewCheck.df9597bb.js";const Q={class:"flex"},X={class:"flex"},ee={key:0},te=["onClick"],ae={key:1,class:"text-info cursor-not-allowed"},le=["onClick"],oe=["onClick"],ne=q({name:"reviewCheckProjectList"}),ie=Object.assign(ne,{setup(re){const Y=z(H.userStore).userInfo||{},{statusOptions:f,statusGjOptions:V,statusOptionsCascader:L,projectTypeOptions:I}=H.dictStore.globalDicts||{},e=D({projectName:void 0,buildOrg:void 0,projectType:void 0,status:void 0,approveAmountMin:void 0,approveAmountMax:void 0,projectYear:void 0,times:void 0}),b=h(),N=h(0),P=D([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:"200",showOverflowTooltip:!0},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrg",prop:"buildOrg",minWidth:"150",showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectTypeName",prop:"projectTypeName",width:80},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:"80"},{label:"\u5F53\u524D\u5DF2\u5BA1\u67E5\u4EBA\u6570",slot:"verifiedHumans",prop:"verifiedHumans",width:"130"},{label:"\u9879\u76EE\u72B6\u6001",key:"status",prop:"status",width:"120",render:n=>{var l,u,r,s,y,k,c,j;return[$("span",{class:["dot mr-4",`bg-${((l=f[n.status])==null?void 0:l.color)||((u=V[n.status])==null?void 0:u.color)}`]}),$("span",{class:`text-${((r=f[n.status])==null?void 0:r.color)||((s=V[n.status])==null?void 0:s.color)}`},n.status&&((y=f[n.stage])==null?void 0:y.name)?`${(k=f[n.stage])==null?void 0:k.name}-${(c=f[n.status])==null?void 0:c.name}`:((j=V[n.status])==null?void 0:j.name)||"-")]}},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"150",fixed:"right"}]),O=h([]),w=async(n=b.value.pageParams)=>{var u,r,s;const l=await J({...n,...e,projectYear:e.projectYear*1||void 0,createOnMin:((u=e.times)==null?void 0:u[0])||void 0,createOnMax:((r=e.times)==null?void 0:r[1])||void 0,approveAmountMin:e.approveAmountMin*1||void 0,approveAmountMax:e.approveAmountMax*1||void 0,times:void 0,status:(s=e.status)==null?void 0:s[e.status.length-1]});O.value=l.data.records,N.value=l.data.total},S=()=>{w()},B=()=>{e.projectName=void 0,e.projectType=void 0,e.buildOrg=void 0,e.status=void 0,e.projectYear=void 0,e.approveAmountMin=void 0,e.approveAmountMax=void 0,e.times=void 0,b.value.pageParams.pageNumber=1,b.value.pageParams.pageSize=10,w()};return W(async()=>{w()}),(n,l)=>{const u=d("el-input"),r=d("el-form-item"),s=d("el-col"),y=d("el-option"),k=d("el-select"),c=d("el-row"),j=d("el-cascader"),x=d("el-date-picker"),A=d("el-button"),F=d("el-form"),T=d("el-card"),G=d("el-tooltip"),E=d("table-list");return i(),m(C,null,[a(T,{class:"w-full search"},{default:o(()=>[a(F,{model:e,size:"small","label-suffix":":"},{default:o(()=>[a(c,{gutter:16,class:"mb-16"},{default:o(()=>[a(s,{span:8},{default:o(()=>[a(r,{label:"\u9879\u76EE\u540D\u79F0"},{default:o(()=>[a(u,{modelValue:e.projectName,"onUpdate:modelValue":l[0]||(l[0]=t=>e.projectName=t),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:8},{default:o(()=>[a(r,{label:"\u7533\u62A5\u5355\u4F4D"},{default:o(()=>[a(u,{modelValue:e.buildOrg,"onUpdate:modelValue":l[1]||(l[1]=t=>e.buildOrg=t),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:8},{default:o(()=>[a(r,{label:"\u9879\u76EE\u7C7B\u578B"},{default:o(()=>[a(k,{modelValue:e.projectType,"onUpdate:modelValue":l[2]||(l[2]=t=>e.projectType=t),placeholder:"\u5168\u90E8",class:"w-full"},{default:o(()=>[(i(!0),m(C,null,Z(_(I),(t,p)=>(i(),R(y,{key:p,label:t,value:p},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),a(c,{gutter:16,class:"mb-16"},{default:o(()=>[a(s,{span:8},{default:o(()=>[a(r,{label:"\u9879\u76EE\u72B6\u6001"},{default:o(()=>[a(j,{modelValue:e.status,"onUpdate:modelValue":l[3]||(l[3]=t=>e.status=t),class:"w-full",props:{label:"name",value:"code"},options:_(L)},null,8,["modelValue","options"])]),_:1})]),_:1}),a(s,{span:8},{default:o(()=>[a(r,{class:"whitespace-nowrap",label:"\u6279\u590D\u8D44\u91D1(\u4E07\u5143)"},{default:o(()=>[v("div",Q,[a(u,{modelValue:e.approveAmountMin,"onUpdate:modelValue":l[4]||(l[4]=t=>e.approveAmountMin=t),type:"number",placeholder:"",clearable:""},null,8,["modelValue"]),l[8]||(l[8]=M(" \xA0\u81F3\xA0 ")),a(u,{modelValue:e.approveAmountMax,"onUpdate:modelValue":l[5]||(l[5]=t=>e.approveAmountMax=t),type:"number",placeholder:"",clearable:""},null,8,["modelValue"])])]),_:1})]),_:1}),a(s,{span:8},{default:o(()=>[a(r,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:o(()=>[a(x,{modelValue:e.projectYear,"onUpdate:modelValue":l[6]||(l[6]=t=>e.projectYear=t),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),a(c,{gutter:16},{default:o(()=>[a(s,{span:16},{default:o(()=>[a(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:o(()=>[a(x,{modelValue:e.times,"onUpdate:modelValue":l[7]||(l[7]=t=>e.times=t),type:"datetimerange",editable:!1,format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:8},{default:o(()=>[a(r,{class:"btn"},{default:o(()=>[v("div",X,[a(A,{type:"primary",onClick:S},{default:o(()=>l[9]||(l[9]=[M("\u67E5\u8BE2 ")])),_:1}),a(A,{onClick:B},{default:o(()=>l[10]||(l[10]=[M("\u91CD\u7F6E ")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(T,{class:"w-full mt-8"},{header:o(()=>l[11]||(l[11]=[v("div",{class:"flex justify-between"},[v("span",null,"\u5217\u8868")],-1)])),default:o(()=>[a(E,{ref_key:"tableListRef",ref:b,column:P,data:O.value,total:N.value,onGetTableData:w},{verifiedHumans:o(({scope:t})=>[t.row.reviewCheckNotApprove?(i(),R(G,{key:1,class:"box-item",effect:"dark",content:t.row.reviewCheckNotApprove,placement:"top-start"},{default:o(()=>[v("a",null,U(t.row.verifiedHumans),1)]),_:2},1032,["content"])):(i(),m("span",ee,U(t.row.verifiedHumans),1))]),action:o(({scope:t})=>[!t.row.approved&&_(K)(!0)?(i(),m("a",{key:0,onClick:p=>n.$router.push({name:"auditList",query:{id:t.row.id,projectCode:t.row.projectCode}})},"\u5BA1\u67E5",8,te)):g("",!0),t.row.approved?(i(),m("a",ae,"\u5DF2\u5BA1\u67E5")):g("",!0),_(Y).userRoleInfoList.map(p=>p.code).includes("REGION_MANAGER")||_(Y).userRoleInfoList.map(p=>p.code).includes("SUPER_ADMIN")?(i(),m(C,{key:2},[!t.row.reviewCheckFinish&&t.row.verifiedHumans==="7/7"?(i(),m("a",{key:0,onClick:p=>n.$router.push({name:"reviewSummary",query:{id:t.row.id,projectCode:t.row.projectCode}})},"\u5408\u6210\u62A5\u544A",8,le)):t.row.reviewCheckFinish?(i(),m("a",{key:1,onClick:p=>n.$router.push({name:"reviewCheckProjectListProjectDetail",query:{id:t.row.id}})},"\u67E5\u770B\u62A5\u544A",8,oe)):g("",!0)],64)):g("",!0)]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{ie as default};