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.3KB

  1. var te=Object.defineProperty,le=Object.defineProperties;var ne=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var U=(r,l,n)=>l in r?te(r,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[l]=n,P=(r,l)=>{for(var n in l||(l={}))oe.call(l,n)&&U(r,n,l[n]);if(E)for(var n of E(l))se.call(l,n)&&U(r,n,l[n]);return r},W=(r,l)=>le(r,ne(l));var O=(r,l,n)=>new Promise((g,s)=>{var x=m=>{try{v(n.next(m))}catch(w){s(w)}},$=m=>{try{v(n.throw(m))}catch(w){s(w)}},v=m=>m.done?g(m.value):Promise.resolve(m.value).then(x,$);v((n=n.apply(r,l)).next())});import{_ as ie,d as re,D as de,A as ue,b as me,r as D,o as pe,e as i,f as c,I as z,l as t,k as a,h as b,m as T,t as N,g as _,n as F,i as f,F as G,j as V,a3 as j,p as ce}from"./index.11dc4694.js";import{E as _e}from"./index.0394235d.js";import{l as fe,g as ge}from"./evaluationPlan.1b9d08f3.js";const we={class:"flex"},ye={class:"flex justify-between"},be={key:0,class:"flex items-center"},ve={key:1},ke=["onClick"],he=["onClick"],Ce=["onClick"],xe=["onClick"],Se=["onClick"];const De=re({name:"evaluationPlan"}),Te=Object.assign(De,{setup(r){const{proxy:l}=ce(),{operationTypeOptions:n}=de.dictStore.globalDicts||{},g=ue(),s=me({name:void 0,times:void 0}),x={1:"\u9879\u76EE",2:"\u5E94\u7528"},$=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u8BA1\u5212\u540D\u79F0",key:"name",prop:"name",minWidth:200,showOverflowTooltip:!0},{label:"\u81EA\u8BC4\u65F6\u95F4",key:"seltTime",slot:"seltTime",width:200},{label:"\u8BC4\u4EF7\u5BF9\u8C61",key:"target",prop:"target",render:o=>j("span",o.target.split(",").map(u=>x[u]).join("\uFF0C")),width:100},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u5BA1\u6838\u72B6\u6001",key:"auditStatusName",slot:"auditStatusName",width:100},{label:"\u64CD\u4F5C",slot:"action",fixed:"right",width:190}],v=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u8BA1\u5212\u540D\u79F0",key:"name",prop:"name",minWidth:200,showOverflowTooltip:!0},{label:"\u8BC4\u4EF7\u5BF9\u8C61",key:"target",prop:"target",render:o=>{var u;return j("span",(u=o.target)==null?void 0:u.split(",").map(p=>x[p]).join("\uFF0C"))},width:100},{label:"\u63D0\u4EA4\u5BA1\u6838\u65F6\u95F4",key:"createOn",prop:"createOn"},{label:"\u5BA1\u6838\u64CD\u4F5C",key:"operationType",prop:"operationType",render:o=>j("span",n[o.operationType]||"-")},{label:"\u5BA1\u6838\u72B6\u6001",slot:"auditStatusName",prop:"auditStatusName"},{label:"\u64CD\u4F5C",slot:"action",fixed:"right",width:190}],m=D(0),w=D([]),L=o=>{s.regionCode=o.regionLevel===3?o.regionCode:void 0,k.value.pageParams.pageNumber=1,h()},k=D(),d=D("1"),h=(...u)=>O(this,[...u],function*(o=k.value.pageParams){var S,y;w.value=[];const p=yield fe(d.value,W(P(P({},o),s),{start:((S=s.times)==null?void 0:S[0])||void 0,end:((y=s.times)==null?void 0:y[1])||void 0,times:void 0,auditType:2}));w.value=p.data.records,m.value=p.data.total}),R=()=>{k.value.pageParams.pageNumber=1,h()},Y=()=>{k.value.pageParams.pageNumber=1,s.name=void 0,s.times=void 0,h()},A=()=>{g.push({name:"addPlan",query:{regionId:s.regionId}})},Ne=o=>{l.$messageBox.confirm(`\u662F\u5426\u5220\u9664${o.name}?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(()=>O(this,null,function*(){yield ge(o.id),l.$message.success("\u5220\u9664\u6210\u529F\uFF01"),h()}))},J=o=>{d.value=o,Y()};return pe(()=>{}),(o,u)=>{const p=i("el-col"),S=i("el-input"),y=i("el-form-item"),K=i("el-date-picker"),I=i("el-button"),B=i("el-row"),H=i("el-form"),M=i("el-card"),q=i("el-tab-pane"),Q=i("el-tabs"),X=i("Warning"),Z=i("el-icon"),ee=i("el-tooltip"),ae=i("table-list");return c(),z(B,null,{default:t(()=>[a(p,{style:{"padding-right":"16px"},span:4},{default:t(()=>[a(_e,{onGetTree:L})]),_:1}),a(p,{span:20},{default:t(()=>[a(M,{class:"w-full search"},{default:t(()=>[a(H,{model:s,size:"small","label-suffix":":"},{default:t(()=>[a(B,{gutter:16},{default:t(()=>[a(p,{span:8},{default:t(()=>[a(y,{label:"\u8BA1\u5212\u540D\u79F0"},{default:t(()=>[a(S,{modelValue:s.name,"onUpdate:modelValue":u[0]||(u[0]=e=>s.name=e),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(p,{span:9},{default:t(()=>[a(y,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(()=>[a(K,{modelValue:s.times,"onUpdate:modelValue":u[1]||(u[1]=e=>s.times=e),type:"daterange",editable:!1,format:"YYYY-MM-DD","value-format":"YYYY-MM-DD","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),a(p,{span:7},{default:t(()=>[a(y,{class:"btn"},{default:t(()=>[b("div",we,[a(I,{type:"primary",onClick:R},{default:t(()=>[T("\u67E5\u8BE2")]),_:1}),a(I,{onClick:Y},{default:t(()=>[T("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(M,{class:"w-full mt-8 tab-card"},{header:t(()=>[b("div",ye,[a(Q,{modelValue:d.value,"onUpdate:modelValue":u[2]||(u[2]=e=>d.value=e),onTabChange:J},{default:t(()=>[a(q,{label:"\u8BA1\u5212\u5217\u8868",name:"1"}),a(q,{label:"\u5BA1\u6838\u5217\u8868",name:"2"})]),_:1},8,["modelValue"]),b("div",null,[a(I,{type:"primary",size:"small",icon:"plus",onClick:A},{default:t(()=>[T("\u65B0\u5EFA\u8BA1\u5212")]),_:1})])])]),default:t(()=>[a(ae,{ref_key:"tableListRef",ref:k,column:d.value==="1"?$:v,data:w.value,total:m.value,onGetTableData:h},{seltTime:t(({scope:e})=>[T(" \u9879\u76EE\u7EC8\u9A8C"+N(e.row.startSelfDays)+"\u5929\u540E\u5F00\u59CB\u81EA\u8BC4\uFF0C\u5E76\u4E14\u5728"+N(e.row.completeSelfDays)+"\u5929\u5B8C\u6210\u81EA\u8BC4 ",1)]),auditStatusName:t(({scope:e})=>[e.row.auditStatus?(c(),_("div",be,[b("span",{class:F(`dot mr-4 ${e.row.auditStatus===1?"bg-warning":e.row.auditStatus===2?"bg-success":"bg-danger"}`)},null,2),b("span",{class:F(`${e.row.auditStatus===1?"text-warning":e.row.auditStatus===2?"text-success":"text-danger"}`)},N(e.row.auditStatusName),3),e.row.auditStatus===3?(c(),z(ee,{key:0,content:e.row.auditMessage,placement:"bottom",effect:"light"},{default:t(()=>[a(Z,{class:"ml-4"},{default:t(()=>[a(X)]),_:1})]),_:2},1032,["content"])):f("v-if",!0)])):(c(),_("span",ve,"-"))]),action:t(({scope:e})=>[f(" \u8BA1\u5212\u5217\u8868\u64CD\u4F5C\u6309\u94AE"),d.value==="1"?(c(),_(G,{key:0},[e.row.auditStatus===2||e.row.auditStatus===3?(c(),_("a",{key:0,onClick:C=>V(g).push({name:"addPlan",query:{id:d.value==="1"?e.row.id:e.row.appraisalId,auditId:d.value==="2"?e.row.id:""}})},N(e.row.auditStatus===2?"\u7F16\u8F91":"\u91CD\u65B0\u63D0\u4EA4"),9,ke)):f("v-if",!0),e.row.auditStatus===2?(c(),_("a",{key:1,onClick:C=>V(g).push({name:"projectGroup",query:{appraisalId:e.row.id}})},"\u9879\u76EE\u5206\u7EC4",8,he)):f("v-if",!0),d.value==="1"?(c(),_("a",{key:2,onClick:C=>V(g).push({name:"planDetail",query:{id:e.row.id}})},"\u8BE6\u60C5",8,Ce)):f("v-if",!0)],64)):(c(),_(G,{key:1},[f(" \u5BA1\u6838\u5217\u8868\u64CD\u4F5C\u6309\u94AE"),e.row.auditStatus===3?(c(),_("a",{key:0,onClick:C=>V(g).push({name:"addPlan",query:{id:d.value==="1"?e.row.id:e.row.appraisalId,auditId:d.value==="2"?e.row.id:""}})},"\u91CD\u65B0\u63D0\u4EA4",8,xe)):f("v-if",!0),b("a",{onClick:C=>o.$router.push({name:"planDetail",query:{id:e.row.appraisalId,auditId:e.row.id}})},"\u8BE6\u60C5",8,Se)],64)),f("v-if",!0)]),_:1},8,["column","data","total"])]),_:1})]),_:1})]),_:1})}}}),Oe=ie(Te,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/performanceEvaluation/evaluationPlan/index.vue"]]);export{Oe as default};