You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
7.1KB

  1. var K=Object.defineProperty,Q=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var S=(u,r,l)=>r in u?K(u,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):u[r]=l,Y=(u,r)=>{for(var l in r||(r={}))Z.call(r,l)&&S(u,l,r[l]);if(P)for(var l of P(r))ee.call(r,l)&&S(u,l,r[l]);return u},$=(u,r)=>Q(u,X(r));var D=(u,r,l)=>new Promise((g,N)=>{var O=m=>{try{f(l.next(m))}catch(v){N(v)}},e=m=>{try{f(l.throw(m))}catch(v){N(v)}},f=m=>m.done?g(m.value):Promise.resolve(m.value).then(O,e);f((l=l.apply(u,r)).next())});import{y as ae,_ as te,d as le,A as oe,D as ne,b as B,r as h,a3 as H,o as se,c as i,e as x,I as T,j as t,u as y,i as a,h as re,f as de,F as ue,J as pe,g as M,k as w}from"./index.47f2a3eb.js";import{E as ie}from"./index.e6c859ab.js";import{g as R,a as me}from"./getIsShowRegionTree.bbdce095.js";const ce=u=>ae.get("/api/v1/irs/project/list",{params:u}),fe={class:"flex"},_e={class:"flex"},be=M("div",{class:"flex justify-between"},[M("span",null,"\u5217\u8868")],-1),ge=["onClick"],ve=le({name:"projectIrsDoc"}),je=Object.assign(ve,{setup(u){const r=oe(),{statusOptions:l,statusGjOptions:g,statusOptionsCascader:N,projectTypeOptions:O}=ne.dictStore.globalDicts||{},e=B({projectName:void 0,buildOrg:void 0,projectType:void 0,status:void 0,approveAmountMin:void 0,approveAmountMax:void 0,projectYear:void 0,times:void 0}),f=h(),m=h(0),v=B([{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:"buildOrgName",prop:"buildOrgName",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:"\u9879\u76EE\u72B6\u6001",key:"status",prop:"status",width:"120",render:s=>{var o,d,c,p,_,V,b,A;return[H("span",{class:["dot mr-4",`bg-${((o=l[s.status])==null?void 0:o.color)||((d=g[s.status])==null?void 0:d.color)}`]}),H("span",{class:`text-${((c=l[s.status])==null?void 0:c.color)||((p=g[s.status])==null?void 0:p.color)}`},s.status&&((_=l[s.stage])==null?void 0:_.name)?`${(V=l[s.stage])==null?void 0:V.name}-${(b=l[s.status])==null?void 0:b.name}`:((A=g[s.status])==null?void 0:A.name)||"-")]}},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"80",fixed:"right"}]),E=h([]),I=h(),L=s=>{I.value=s.regionLevel===3?s.regionCode:void 0,f.value.pageParams.pageNumber=1,j()},j=(...o)=>D(this,[...o],function*(s=f.value.pageParams){var c,p,_;const d=yield ce($(Y(Y({},s),e),{projectYear:e.projectYear*1||void 0,createOnMin:((c=e.times)==null?void 0:c[0])||void 0,createOnMax:((p=e.times)==null?void 0:p[1])||void 0,regionCode:I.value||void 0,approveAmountMin:e.approveAmountMin*1||void 0,approveAmountMax:e.approveAmountMax*1||void 0,times:void 0,status:(_=e.status)==null?void 0:_[e.status.length-1]}));E.value=d.data.records,m.value=d.data.total}),F=()=>{j()},z=()=>{e.projectName=void 0,e.buildOrg=void 0,e.projectType=void 0,e.status=void 0,e.projectYear=void 0,e.approveAmountMin=void 0,e.approveAmountMax=void 0,e.times=void 0,f.value.pageParams.pageNumber=1,f.value.pageParams.pageSize=10,j()},J=s=>{r.push({name:"projectIrsDocDetail",query:{id:s.id}})};return se(()=>D(this,null,function*(){R(["SUPER_ADMIN","REGION_MANAGER"])||j()})),(s,o)=>{const d=i("el-col"),c=i("el-input"),p=i("el-form-item"),_=i("el-option"),V=i("el-select"),b=i("el-row"),A=i("el-cascader"),U=i("el-date-picker"),C=i("el-button"),W=i("el-form"),G=i("el-card"),q=i("table-list");return x(),T(b,null,{default:t(()=>[y(R)(["SUPER_ADMIN","REGION_MANAGER"])?(x(),T(d,{key:0,span:4,class:"pr-16"},{default:t(()=>[a(ie,{params:y(me)({SUPER_ADMIN:!1,REGION_MANAGER:!1}),onGetTree:L},null,8,["params"])]),_:1})):re("v-if",!0),a(d,{span:y(R)(["SUPER_ADMIN","REGION_MANAGER"])?20:24},{default:t(()=>[a(G,{class:"w-full search"},{default:t(()=>[a(W,{model:e,size:"small","label-suffix":":"},{default:t(()=>[a(b,{gutter:16,class:"mb-16"},{default:t(()=>[a(d,{span:8},{default:t(()=>[a(p,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[a(c,{modelValue:e.projectName,"onUpdate:modelValue":o[0]||(o[0]=n=>e.projectName=n),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(d,{span:8},{default:t(()=>[a(p,{label:"\u7533\u62A5\u5355\u4F4D"},{default:t(()=>[a(c,{modelValue:e.buildOrg,"onUpdate:modelValue":o[1]||(o[1]=n=>e.buildOrg=n),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(d,{span:8},{default:t(()=>[a(p,{label:"\u9879\u76EE\u7C7B\u578B"},{default:t(()=>[a(V,{modelValue:e.projectType,"onUpdate:modelValue":o[2]||(o[2]=n=>e.projectType=n),placeholder:"\u5168\u90E8",class:"w-full"},{default:t(()=>[(x(!0),de(ue,null,pe(y(O),(n,k)=>(x(),T(_,{key:k,label:n,value:k},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),a(b,{gutter:16,class:"mb-16"},{default:t(()=>[a(d,{span:8},{default:t(()=>[a(p,{label:"\u9879\u76EE\u72B6\u6001"},{default:t(()=>[a(A,{modelValue:e.status,"onUpdate:modelValue":o[3]||(o[3]=n=>e.status=n),class:"w-full",props:{label:"name",value:"code"},options:y(N)},null,8,["modelValue","options"])]),_:1})]),_:1}),a(d,{span:8},{default:t(()=>[a(p,{class:"whitespace-nowrap",label:"\u6279\u590D\u8D44\u91D1(\u4E07\u5143)"},{default:t(()=>[M("div",fe,[a(c,{modelValue:e.approveAmountMin,"onUpdate:modelValue":o[4]||(o[4]=n=>e.approveAmountMin=n),type:"number",placeholder:"",clearable:""},null,8,["modelValue"]),w(" \xA0\u81F3\xA0 "),a(c,{modelValue:e.approveAmountMax,"onUpdate:modelValue":o[5]||(o[5]=n=>e.approveAmountMax=n),type:"number",placeholder:"",clearable:""},null,8,["modelValue"])])]),_:1})]),_:1}),a(d,{span:8},{default:t(()=>[a(p,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:t(()=>[a(U,{modelValue:e.projectYear,"onUpdate:modelValue":o[6]||(o[6]=n=>e.projectYear=n),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),a(b,{gutter:16},{default:t(()=>[a(d,{span:16},{default:t(()=>[a(p,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(()=>[a(U,{modelValue:e.times,"onUpdate:modelValue":o[7]||(o[7]=n=>e.times=n),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(d,{span:8},{default:t(()=>[a(p,{class:"btn"},{default:t(()=>[M("div",_e,[a(C,{type:"primary",onClick:F},{default:t(()=>[w("\u67E5\u8BE2 ")]),_:1}),a(C,{onClick:z},{default:t(()=>[w("\u91CD\u7F6E ")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(G,{class:"w-full mt-8"},{header:t(()=>[be]),default:t(()=>[a(q,{ref_key:"tableListRef",ref:f,column:v,data:E.value,total:m.value,onGetTableData:j},{action:t(({scope:n})=>[M("a",{onClick:k=>J(n.row)},"\u8BE6\u60C5",8,ge)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1})}}}),Ae=te(je,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectStoreManage/projectIrsDoc/index.vue"]]);export{Ae as default};