Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

2 rindas
7.0KB

  1. import{d as q,G as z,D,b as H,r as V,a0 as $,o as W,c as d,e as i,f as m,h as a,i as l,F as C,J,u as _,I as R,g as v,j as M,t as U,k as j}from"./index.d340e473.js";import{l as K}from"./reviewCheckProjectList.addd5649.js";import{g as Q}from"./getIsShowReviewCheck.a13f8f4e.js";const X={class:"flex"},Z={class:"flex"},ee=v("div",{class:"flex justify-between"},[v("span",null,"\u5217\u8868")],-1),te={key:0},ae=["onClick"],le={key:1,class:"text-info cursor-not-allowed"},oe=["onClick"],ne=["onClick"],re=q({name:"reviewCheckProjectList"}),pe=Object.assign(re,{setup(se){const Y=z(D.userStore).userInfo||{},{statusOptions:f,statusGjOptions:g,statusOptionsCascader:I,projectTypeOptions:L}=D.dictStore.globalDicts||{},e=H({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=V(),N=V(0),P=H([{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 o,u,r,s,y,k,c,h;return[$("span",{class:["dot mr-4",`bg-${((o=f[n.status])==null?void 0:o.color)||((u=g[n.status])==null?void 0:u.color)}`]}),$("span",{class:`text-${((r=f[n.status])==null?void 0:r.color)||((s=g[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}`:((h=g[n.status])==null?void 0:h.name)||"-")]}},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"150",fixed:"right"}]),O=V([]),w=async(n=b.value.pageParams)=>{var u,r,s;const o=await K({...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=o.data.records,N.value=o.data.total},S=()=>{w()},F=()=>{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,o)=>{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"),h=d("el-cascader"),x=d("el-date-picker"),A=d("el-button"),G=d("el-form"),T=d("el-card"),B=d("el-tooltip"),E=d("table-list");return i(),m(C,null,[a(T,{class:"w-full search"},{default:l(()=>[a(G,{model:e,size:"small","label-suffix":":"},{default:l(()=>[a(c,{gutter:16,class:"mb-16"},{default:l(()=>[a(s,{span:8},{default:l(()=>[a(r,{label:"\u9879\u76EE\u540D\u79F0"},{default:l(()=>[a(u,{modelValue:e.projectName,"onUpdate:modelValue":o[0]||(o[0]=t=>e.projectName=t),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:8},{default:l(()=>[a(r,{label:"\u7533\u62A5\u5355\u4F4D"},{default:l(()=>[a(u,{modelValue:e.buildOrg,"onUpdate:modelValue":o[1]||(o[1]=t=>e.buildOrg=t),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:8},{default:l(()=>[a(r,{label:"\u9879\u76EE\u7C7B\u578B"},{default:l(()=>[a(k,{modelValue:e.projectType,"onUpdate:modelValue":o[2]||(o[2]=t=>e.projectType=t),placeholder:"\u5168\u90E8",class:"w-full"},{default:l(()=>[(i(!0),m(C,null,J(_(L),(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:l(()=>[a(s,{span:8},{default:l(()=>[a(r,{label:"\u9879\u76EE\u72B6\u6001"},{default:l(()=>[a(h,{modelValue:e.status,"onUpdate:modelValue":o[3]||(o[3]=t=>e.status=t),class:"w-full",props:{label:"name",value:"code"},options:_(I)},null,8,["modelValue","options"])]),_:1})]),_:1}),a(s,{span:8},{default:l(()=>[a(r,{class:"whitespace-nowrap",label:"\u6279\u590D\u8D44\u91D1(\u4E07\u5143)"},{default:l(()=>[v("div",X,[a(u,{modelValue:e.approveAmountMin,"onUpdate:modelValue":o[4]||(o[4]=t=>e.approveAmountMin=t),type:"number",placeholder:"",clearable:""},null,8,["modelValue"]),M(" \xA0\u81F3\xA0 "),a(u,{modelValue:e.approveAmountMax,"onUpdate:modelValue":o[5]||(o[5]=t=>e.approveAmountMax=t),type:"number",placeholder:"",clearable:""},null,8,["modelValue"])])]),_:1})]),_:1}),a(s,{span:8},{default:l(()=>[a(r,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:l(()=>[a(x,{modelValue:e.projectYear,"onUpdate:modelValue":o[6]||(o[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:l(()=>[a(s,{span:16},{default:l(()=>[a(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[a(x,{modelValue:e.times,"onUpdate:modelValue":o[7]||(o[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:l(()=>[a(r,{class:"btn"},{default:l(()=>[v("div",Z,[a(A,{type:"primary",onClick:S},{default:l(()=>[M("\u67E5\u8BE2 ")]),_:1}),a(A,{onClick:F},{default:l(()=>[M("\u91CD\u7F6E ")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(T,{class:"w-full mt-8"},{header:l(()=>[ee]),default:l(()=>[a(E,{ref_key:"tableListRef",ref:b,column:P,data:O.value,total:N.value,onGetTableData:w},{verifiedHumans:l(({scope:t})=>[t.row.reviewCheckNotApprove?(i(),R(B,{key:1,class:"box-item",effect:"dark",content:t.row.reviewCheckNotApprove,placement:"top-start"},{default:l(()=>[v("a",null,U(t.row.verifiedHumans),1)]),_:2},1032,["content"])):(i(),m("span",te,U(t.row.verifiedHumans),1))]),action:l(({scope:t})=>[!t.row.approved&&_(Q)(!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,ae)):j("",!0),t.row.approved?(i(),m("a",le,"\u5DF2\u5BA1\u67E5")):j("",!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,oe)):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,ne)):j("",!0)],64)):j("",!0)]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{pe as default};