|
- var H=Object.defineProperty,Q=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable;var M=(l,o,t)=>o in l?H(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,w=(l,o)=>{for(var t in o||(o={}))X.call(o,t)&&M(l,t,o[t]);if(G)for(var t of G(o))Y.call(o,t)&&M(l,t,o[t]);return l},T=(l,o)=>Q(l,W(o));var k=(l,o,t)=>new Promise((I,s)=>{var i=u=>{try{v(t.next(u))}catch(_){s(_)}},N=u=>{try{v(t.throw(u))}catch(_){s(_)}},v=u=>u.done?I(u.value):Promise.resolve(u.value).then(i,N);v((t=t.apply(l,o)).next())});import{_ as Z,d as ee,G as ae,D as te,A as oe,b as O,r as g,o as le,e as d,f as U,I as $,l as a,h as f,k as e,j as P,i as ne,m as R,p as re}from"./index.11dc4694.js";import{E as se}from"./index.0394235d.js";import{l as de,a as ue}from"./operationProjectRecord.88f86460.js";import{g as h,a as ie}from"./getIsShowRegionTree.11f4997d.js";const ce={class:"px-20 pt-10 pb-20 w-full"},me={class:"flex"},pe={class:"flex justify-between items-center"},_e=["onClick"],fe=["onClick"],be=["onClick"],ve=ee({name:"operationProjectRecord"}),ge=Object.assign(ve,{setup(l){const o=ae(te.userStore).userInfo,{proxy:t}=re(),I=oe(),s=O({projectName:void 0,buildOrg:void 0}),i=g(),N=g(0),v=O([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u9879\u76EE\u7F16\u53F7",key:"baseProjId",prop:"baseProjId"},{label:"\u9879\u76EE\u540D\u79F0",key:"baseProjName",prop:"baseProjName"},{label:"\u5EFA\u8BBE\u5355\u4F4D",key:"baseBuildDeprt",prop:"baseBuildDeprt"},{label:"\u884C\u653F\u533A\u5212",key:"baseAreaName",prop:"baseAreaName"},{label:"\u7533\u62A5\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"baseProjDeclAmount",prop:"baseProjDeclAmount",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"160",fixed:"right"}]),u=g([]),_=g(),S=n=>{_.value=n.regionLevel===3?n.regionCode:void 0,i.value.pageParams.pageNumber=1,b()},c=g("1"),B=n=>{c.value=n,C()},b=(...m)=>k(this,[...m],function*(n=i.value.pageParams){const p=yield de(c.value,T(w(w({},n),s),{regionCode:_.value}));u.value=p.data.records,N.value=p.data.total}),z=()=>{b()},C=()=>{s.projectName=void 0,s.buildOrg=void 0,i.value.pageParams.pageNumber=1,i.value.pageParams.pageSize=10,b()},L=n=>{t.$messageBox.confirm("\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u9879\u5417?","\u63D0\u793A\uFF01",{type:"warning"}).then(()=>k(this,null,function*(){yield ue(c.value,c.value==="1"?n.baseProjId:n.draftId),t.$message.success("\u5220\u9664\u6210\u529F\uFF01"),yield b()}))};return le(()=>{h(["SUPER_ADMIN","REGION_MANAGER"])||(_.value=o.value.regionCode,b(i.value.pageParams))}),(n,m)=>{const p=d("el-col"),A=d("el-input"),j=d("el-form-item"),y=d("el-button"),E=d("el-row"),q=d("el-form"),x=d("el-card"),D=d("el-tab-pane"),F=d("el-tabs"),J=d("table-list"),K=d("el-container");return U(),$(K,{class:"overflow-y-auto"},{default:a(()=>[f("div",ce,[e(E,null,{default:a(()=>[P(h)(["SUPER_ADMIN","REGION_MANAGER"])?(U(),$(p,{key:0,span:4,class:"pr-16"},{default:a(()=>[e(se,{params:P(ie)({SUPER_ADMIN:!1,REGION_MANAGER:!1}),onGetTree:S},null,8,["params"])]),_:1})):ne("v-if",!0),e(p,{span:P(h)(["SUPER_ADMIN","REGION_MANAGER"])?20:24},{default:a(()=>[e(x,{class:"w-full search"},{default:a(()=>[e(q,{model:s,size:"small","label-suffix":":"},{default:a(()=>[e(E,{gutter:16},{default:a(()=>[e(p,{span:8},{default:a(()=>[e(j,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(A,{modelValue:s.projectName,"onUpdate:modelValue":m[0]||(m[0]=r=>s.projectName=r),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:8},{default:a(()=>[e(j,{label:"\u9879\u76EE\u5355\u4F4D"},{default:a(()=>[e(A,{modelValue:s.buildOrg,"onUpdate:modelValue":m[1]||(m[1]=r=>s.buildOrg=r),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:8},{default:a(()=>[e(j,{class:"btn"},{default:a(()=>[f("div",me,[e(y,{type:"primary",onClick:z},{default:a(()=>[R("\u67E5\u8BE2")]),_:1}),e(y,{onClick:C},{default:a(()=>[R("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(x,{class:"w-full mt-8 tab-card"},{header:a(()=>[f("div",pe,[e(F,{modelValue:c.value,"onUpdate:modelValue":m[2]||(m[2]=r=>c.value=r),onTabChange:B},{default:a(()=>[e(D,{label:"\u9879\u76EE\u5217\u8868",name:"1"}),e(D,{label:"\u8349\u7A3F\u7BB1",name:"2"})]),_:1},8,["modelValue"]),f("div",null,[e(y,{type:"primary",size:"small",icon:"Plus",onClick:m[3]||(m[3]=r=>P(I).push({name:"operationProjectEdit"}))},{default:a(()=>[R("\u5F55\u5165\u9879\u76EE")]),_:1})])])]),default:a(()=>[e(J,{ref_key:"tableListRef",ref:i,column:v,data:u.value,total:N.value,onGetTableData:b},{action:a(({scope:r})=>[f("a",{onClick:V=>n.$router.push({name:"operationProjectRecordDetail",query:{id:r.row.baseProjId,draftId:r.row.draftId,type:c.value}})},"\u67E5\u770B",8,_e),f("a",{onClick:V=>n.$router.push({name:"operationProjectEdit",query:{id:r.row.baseProjId,draftId:r.row.draftId,type:c.value}})},"\u7F16\u8F91",8,fe),f("a",{class:"text-danger",onClick:V=>L(r.row)},"\u5220\u9664",8,be)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1})])]),_:1})}}}),we=Z(ge,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/declareManage/operationProjectRecord/index.vue"]]);export{we as default};
|