1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7fba72ae"],{"0cd0":function(e,t,a){"use strict";a("a48d")},"2dae":function(e,t,a){},"2e9d":function(e,t,a){"use strict";var c=a("7a23");const l={class:"title"},o={class:"font"},n={class:"cnetr"},r={class:"right"};var i={__name:"PageTitle",props:{title:{type:String,default:""},marginBottom:{type:Number,default:0},backgroundColor:{type:String,default:"rgb(255, 255, 255, 0)"}},setup(e){return(t,a)=>(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",{class:"pageTitle",style:Object(c["normalizeStyle"])(`margin-bottom: ${e.marginBottom}px;background-color: ${e.backgroundColor}`)},[Object(c["createElementVNode"])("div",l,[Object(c["createElementVNode"])("div",o,Object(c["toDisplayString"])(e.title),1)]),Object(c["createElementVNode"])("div",n,[Object(c["renderSlot"])(t.$slots,"center")]),Object(c["createElementVNode"])("div",r,[Object(c["renderSlot"])(t.$slots,"default")])],4))}},s=(a("d634"),a("6b0d")),b=a.n(s);const d=b()(i,[["__scopeId","data-v-2e06abc9"]]);t["a"]=d},"604a":function(e,t,a){"use strict";a("2dae")},"7ab1":function(e,t,a){},a48d:function(e,t,a){},af8b:function(e,t,a){"use strict";a.r(t);var c=a("7a23"),l=(a("7902"),a("2e9d")),o=a("ad28"),n=a("1090"),r=(a("2d16"),a("8f43")),i=a("c9a1");const s={key:0,class:"dialog"},b={class:"head_box"},d={class:"title"},j=Object(c["createTextVNode"])("关闭"),O={class:"description pd20"},p={class:"flex align-center"},u={class:"ml10 flex"},m=Object(c["createTextVNode"])("("),g=Object(c["createTextVNode"])(")"),h={class:"ml10 mr10"},f={class:"flex align-center flex-warp"},v={class:"ml10 mr10"},y={key:0,class:"flex just-center"},C=Object(c["createTextVNode"])("通过"),k=Object(c["createTextVNode"])("不通过");var w={__name:"detail",props:{dic:{type:Object,default:{}}},emits:["updateDate"],setup(e,{expose:t,emit:a}){const{proxy:l}=Object(c["getCurrentInstance"])(),{D_QW_WC_LX:o,D_QW_KQ_SHZT:n}=l.$dict("D_QW_WC_LX","D_QW_KQ_SHZT"),w=Object(c["ref"])("新增"),N=(Object(c["ref"])(),Object(c["ref"])(!1)),x=Object(c["ref"])(!1),S=Object(c["reactive"])({detail:{}}),V=(e,t,a)=>{N.value=!0,S.detail=JSON.parse(JSON.stringify(a)),w.value="detail"==e?"详情":"审批"},_=(e,t)=>{let c={kqShzt:"no"==e?"03":"02",id:S.detail.kqShry.id};"no"==e&&(c.kqShyj=t),Object(r["c"])(c,"/mosty-qwzx/tbQwKqScry/audits").then(t=>{let c="no"==e?"驳回成功":"审核成功";l.$message({type:"success",message:c}),a("updateDate"),B()})},D=e=>{"no"==e?i["a"].prompt("请输入不通过原因","不通过原因",{confirmButtonText:"提交",cancelButtonText:"取消",inputPattern:/\S+/,inputPlaceholder:"请输入不通过原因",inputErrorMessage:"请输入不通过原因"}).then(t=>{let a=t.value;_(e,a)}).catch(()=>{}):_(e)},B=()=>{S.detail={},N.value=!1};return t({init:V}),(e,t)=>{const a=Object(c["resolveComponent"])("el-button"),l=Object(c["resolveComponent"])("el-descriptions-item"),r=Object(c["resolveComponent"])("dict-tag"),i=Object(c["resolveComponent"])("el-descriptions"),V=Object(c["resolveDirective"])("loading");return N.value?(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",s,[Object(c["createElementVNode"])("div",b,[Object(c["createElementVNode"])("span",d,Object(c["toDisplayString"])(w.value),1),Object(c["createElementVNode"])("div",null,[Object(c["createVNode"])(a,{size:"small",onClick:B},{default:Object(c["withCtx"])(()=>[j]),_:1})])]),Object(c["withDirectives"])((Object(c["openBlock"])(),Object(c["createElementBlock"])("div",O,[Object(c["createVNode"])(i,{column:4,border:""},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(l,{"class-name":"my-content","label-class-name":"my-label",span:2,label:"申请人"},{default:Object(c["withCtx"])(()=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(S.detail.sqrXm),1)]),_:1}),Object(c["createVNode"])(l,{"class-name":"my-content","label-class-name":"my-label",span:2,label:"外出类型"},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(r,{options:Object(c["unref"])(o),value:S.detail.wcLx,tag:!1},null,8,["options","value"])]),_:1}),Object(c["createVNode"])(l,{"class-name":"my-content","label-class-name":"my-label",span:2,label:"审核状态"},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(r,{options:Object(c["unref"])(n),value:S.detail.kqShzt,tag:!1},null,8,["options","value"])]),_:1}),Object(c["createVNode"])(l,{"class-name":"my-content","label-class-name":"my-label",span:2,label:"起止时间"},{default:Object(c["withCtx"])(()=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(S.detail.wcSjKssj+"时 — "+S.detail.wcSjJssj+"时"),1)]),_:1}),Object(c["createVNode"])(l,{"class-name":"my-content","label-class-name":"my-label",span:4,label:"外出原因"},{default:Object(c["withCtx"])(()=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(S.detail.wcYy),1)]),_:1}),Object(c["createVNode"])(l,{"class-name":"my-content","label-class-name":"my-label",span:4,label:"审批人"},{default:Object(c["withCtx"])(()=>[Object(c["createElementVNode"])("div",p,[(Object(c["openBlock"])(!0),Object(c["createElementBlock"])(c["Fragment"],null,Object(c["renderList"])(S.detail.kqShryList,(e,t)=>(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",{key:t,class:"flex align-center"},[Object(c["createElementVNode"])("span",null,Object(c["toDisplayString"])(e.scryXm),1),Object(c["createElementVNode"])("span",u,[m,Object(c["createVNode"])(r,{options:Object(c["unref"])(n),value:e.kqShzt,tag:!1},null,8,["options","value"]),g]),Object(c["withDirectives"])(Object(c["createElementVNode"])("span",{class:"ml10"}," 审核意见:("+Object(c["toDisplayString"])(e.kqShyj)+")",513),[[c["vShow"],e.kqShyj&&""!=e.kqShyj]]),Object(c["withDirectives"])(Object(c["createElementVNode"])("span",h,"|",512),[[c["vShow"],t<S.detail.kqShryList.length-1]])]))),128))])]),_:1}),Object(c["createVNode"])(l,{"class-name":"my-content","label-class-name":"my-label",span:4,label:"抄送人"},{default:Object(c["withCtx"])(()=>[Object(c["createElementVNode"])("div",f,[(Object(c["openBlock"])(!0),Object(c["createElementBlock"])(c["Fragment"],null,Object(c["renderList"])(S.detail.kqCsryList,(e,t)=>(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",{key:t,class:"flex align-center"},[Object(c["createElementVNode"])("span",null,Object(c["toDisplayString"])(e.scryXm),1),Object(c["withDirectives"])(Object(c["createElementVNode"])("span",v,"、",512),[[c["vShow"],t<S.detail.kqCsryList.length-1]])]))),128))])]),_:1})]),_:1})])),[[V,x.value]]),"审批"==w.value?(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",y,[Object(c["createVNode"])(a,{type:"primary",onClick:t[0]||(t[0]=e=>D("ok")),plain:""},{default:Object(c["withCtx"])(()=>[C]),_:1}),Object(c["createVNode"])(a,{type:"danger",onClick:t[1]||(t[1]=e=>D("no")),plain:""},{default:Object(c["withCtx"])(()=>[k]),_:1})])):Object(c["createCommentVNode"])("",!0)])):Object(c["createCommentVNode"])("",!0)}}},N=(a("0cd0"),a("6b0d")),x=a.n(N);const S=x()(w,[["__scopeId","data-v-5cce8b8a"]]);var V=S;const _={class:"titleBox"},D={class:"tabBox"},B=Object(c["createTextVNode"])("详情"),q=Object(c["createElementVNode"])("span",{class:"linkGapLine"},"|",-1),E=Object(c["createTextVNode"])("审批");var T={__name:"index",setup(e){const{proxy:t}=Object(c["getCurrentInstance"])(),{D_QW_WC_LX:a,D_BZ_SQRLX:i,D_QW_KQ_SHZT:s}=t.$dict("D_QW_WC_LX","D_BZ_SQRLX","D_QW_KQ_SHZT"),b=Object(c["ref"])(),d=(Object(c["ref"])([]),Object(c["ref"])());Object(c["ref"])({});Object(c["reactive"])([{showType:"daterange",prop:"daterangeKey",defaultVal:"",label:"起止时间"},{showType:"defaultSlot",prop:"sqbmdm",options:[],placeholder:"请选择单位",label:"归属单位"},{showType:"select",prop:"sqrlx",placeholder:"请选择请假人类型",label:"请假人类型",options:i},{showType:"input",prop:"sqrXm",placeholder:"请输入请假人姓名",label:"请假人姓名"}]),Object(c["ref"])({});const j=Object(c["reactive"])({tableData:[],keyCount:0,tableConfiger:{rowHieght:61,loading:!1},pageConfiger:{pageCurrent:1,pageSize:20,total:0},tableColumn:[{label:"申请人部门",prop:"sqrSsbm"},{label:"申请人类型",prop:"sqrLx",showSolt:!0},{label:"申请人姓名",prop:"sqrXm"},{label:"起止日期",prop:"wcSjKssj",showSolt:!0,width:"260"},{label:"外出类型",prop:"wcLx",showSolt:!0},{label:"申请时间",prop:"xtCjsj"},{label:"审核状态",prop:"kqShzt",showSolt:!0}]});Object(c["onMounted"])(()=>{O(),u(),t.mittBus.on("mittFn",e=>{j.keyCount=e})});const O=()=>{j.tableConfiger.loading=!0,Object(r["b"])(j.pageConfiger,"/mosty-qwzx/tbQwWc/selectAuditsWcPage").then(e=>{j.tableData=e.records||[],j.pageConfiger.total=e.total,j.tableConfiger.loading=!1})},p=(e,t,a)=>{b.value.init(e,t,a)},u=()=>{j.tableHeight=window.innerHeight-d.value.offsetHeight-244,window.onresize=function(){u()}};return(e,t)=>{const r=Object(c["resolveComponent"])("dict-tag"),u=Object(c["resolveComponent"])("el-link");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",null,[Object(c["createElementVNode"])("div",_,[Object(c["createVNode"])(l["a"],{title:"外出审批"})]),Object(c["createElementVNode"])("div",{ref_key:"searchBox",ref:d},null,512),Object(c["createElementVNode"])("div",D,[(Object(c["openBlock"])(),Object(c["createBlock"])(o["a"],{tableData:j.tableData,tableColumn:j.tableColumn,tableHeight:j.tableHeight,key:j.keyCount,tableConfiger:j.tableConfiger,controlsWidth:210},{sqrLx:Object(c["withCtx"])(({row:e})=>[Object(c["createVNode"])(r,{options:Object(c["unref"])(i),value:e.sqrLx,tag:!1},null,8,["options","value"])]),wcSjKssj:Object(c["withCtx"])(({row:e})=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.wcSjKssj+"时 — "+e.wcSjJssj+"时"),1)]),wcLx:Object(c["withCtx"])(({row:e})=>[Object(c["createVNode"])(r,{options:Object(c["unref"])(a),value:e.wcLx,tag:!1},null,8,["options","value"])]),kqShzt:Object(c["withCtx"])(({row:e})=>[Object(c["createVNode"])(r,{options:Object(c["unref"])(s),value:null===e||void 0===e?void 0:e.kqShzt,tag:!1},null,8,["options","value"])]),controls:Object(c["withCtx"])(({row:e})=>{var t;return[Object(c["createVNode"])(u,{type:"primary",onClick:t=>p("detail",e.id,e)},{default:Object(c["withCtx"])(()=>[B]),_:2},1032,["onClick"]),q,"01"==(null===e||void 0===e||null===(t=e.kqShry)||void 0===t?void 0:t.kqShzt)?(Object(c["openBlock"])(),Object(c["createBlock"])(u,{key:0,type:"primary",onClick:t=>p("sp",e.id,e)},{default:Object(c["withCtx"])(()=>[E]),_:2},1032,["onClick"])):Object(c["createCommentVNode"])("",!0)]}),_:1},8,["tableData","tableColumn","tableHeight","tableConfiger"])),Object(c["createVNode"])(n["a"],{onChangeNo:e.changeNo,onChangeSize:e.changeSize,tableHeight:j.tableHeight,pageConfiger:j.pageConfiger},null,8,["onChangeNo","onChangeSize","tableHeight","pageConfiger"])]),Object(c["createVNode"])(V,{ref_key:"detailDialog",ref:b,onUpdateDate:O},null,512)])}}};a("604a");const L=T;t["default"]=L},d634:function(e,t,a){"use strict";a("7ab1")}}]); |