This commit is contained in:
mash 2024-11-19 10:30:34 +08:00
parent df3caa27e1
commit cdda515e0b
194 changed files with 183 additions and 183 deletions

View File

@ -1 +1 @@
import{f as v,h as B,ag as n,o,c as p,d,T as r,a as l,U as L,Z as N,Y as y,F as D,a7 as R,a0 as U,S as b,X as V,W as u}from"./@vue-b2c9e7bc.js";import{h as k}from"./index-79018977.js";import{a as E}from"./hevue-img-preview-4a7ab001.js";import{E as M}from"./element-plus-4b5d5603.js";import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const A={class:"notification-detail"},F=["innerHTML"],j={class:"notification-detail-files"},H=["onClick"],O={key:0,class:"notification-footer-btn"},$={__name:"DetailDialog",props:{dialogVisible:{type:Boolean},dialogData:{},pageType:{type:Object,default:{type:"tz",isShowRead:!1,isShowPerson:!1}}},emits:["update:dialogVisible","init"],setup(e,{emit:g}){const f=e,c=v(!1),T=a=>{k.downloadFile("/api/alteration/download",{params:{fileName:a.name,path:a.path},responseType:"blob"}).then(t=>{const m=window.URL.createObjectURL(t),s=document.createElement("a");s.download=a.name,s.href=m,s.click()})},C=()=>{const a=f.dialogData.id;k.get(`/api/notice/read?id=${a}`).then(t=>{t.code==200&&(M.success(t.message||"阅读成功"),g("update:dialogVisible",!1),c.value=!1,g("init"))})},h=v(!1),S=()=>{h.value=!0},x=a=>{g("update:dialogVisible",!1),a()};return B(()=>f.dialogVisible,()=>{f.dialogVisible&&(c.value=!0)},{immediate:!0}),(a,t)=>{const m=n("el-button"),s=n("el-dialog"),w=n("el-table-column"),P=n("el-table"),_=n("el-drawer");return o(),p(D,null,[d(s,{modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=i=>c.value=i),title:"通知查看",width:"60%","before-close":x,top:"6vh"},{default:r(()=>[l("div",A,[L(l("div",{class:"notification-time"},y(e.dialogData.updatedAt),513),[[N,e.dialogData.updatedAt]]),l("h3",null,y(e.dialogData.title),1),l("div",{innerHTML:e.dialogData.content,class:"notification-detail-content"},null,8,F),l("div",j,[(o(!0),p(D,null,R(e.dialogData.files,(i,z)=>(o(),p("span",{class:"fileBox",key:z,onClick:U(I=>T(i),["stop"])},[l("span",null,y(i.name),1)],8,H))),128))]),e.pageType.type=="tz"?(o(),p("div",O,[e.pageType.isShowRead&&!e.dialogData.isRead?(o(),b(m,{key:0,type:"primary",size:"small",onClick:C},{default:r(()=>[V("已阅")]),_:1})):u("",!0),e.pageType.isShowPerson=="tzgl"||e.pageType.isShowPerson&&e.dialogData.isCreated?(o(),b(m,{key:1,onClick:S,type:"primary",size:"small"},{default:r(()=>[V("查看已读人员")]),_:1})):u("",!0)])):u("",!0)])]),_:1},8,["modelValue"]),e.pageType.isShowPerson=="tzgl"||e.pageType.isShowPerson&&e.dialogData.isCreated?(o(),b(_,{key:0,modelValue:h.value,"onUpdate:modelValue":t[1]||(t[1]=i=>h.value=i),title:"查看已读人员",class:"person-drawer"},{default:r(()=>[d(P,{data:e.dialogData.readUserList,stripe:"",border:"",style:{width:"100%"}},{default:r(()=>[d(w,{type:"index",width:"50"}),d(w,{prop:"userName",label:"已读人"}),d(w,{prop:"createdAt",label:"已读时间",width:"170"})]),_:1},8,["data"])]),_:1},8,["modelValue"])):u("",!0)],64)}}},fe=E($,[["__scopeId","data-v-e2764a32"]]);export{fe as default}; import{f as v,h as B,ag as n,o,c as p,d,T as r,a as l,U as L,Z as N,Y as y,F as D,a7 as R,a0 as U,S as b,X as V,W as u}from"./@vue-b2c9e7bc.js";import{h as k}from"./index-8aa77b06.js";import{a as E}from"./hevue-img-preview-4a7ab001.js";import{E as M}from"./element-plus-4b5d5603.js";import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const A={class:"notification-detail"},F=["innerHTML"],j={class:"notification-detail-files"},H=["onClick"],O={key:0,class:"notification-footer-btn"},$={__name:"DetailDialog",props:{dialogVisible:{type:Boolean},dialogData:{},pageType:{type:Object,default:{type:"tz",isShowRead:!1,isShowPerson:!1}}},emits:["update:dialogVisible","init"],setup(e,{emit:g}){const f=e,c=v(!1),T=a=>{k.downloadFile("/api/alteration/download",{params:{fileName:a.name,path:a.path},responseType:"blob"}).then(t=>{const m=window.URL.createObjectURL(t),s=document.createElement("a");s.download=a.name,s.href=m,s.click()})},C=()=>{const a=f.dialogData.id;k.get(`/api/notice/read?id=${a}`).then(t=>{t.code==200&&(M.success(t.message||"阅读成功"),g("update:dialogVisible",!1),c.value=!1,g("init"))})},h=v(!1),S=()=>{h.value=!0},x=a=>{g("update:dialogVisible",!1),a()};return B(()=>f.dialogVisible,()=>{f.dialogVisible&&(c.value=!0)},{immediate:!0}),(a,t)=>{const m=n("el-button"),s=n("el-dialog"),w=n("el-table-column"),P=n("el-table"),_=n("el-drawer");return o(),p(D,null,[d(s,{modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=i=>c.value=i),title:"通知查看",width:"60%","before-close":x,top:"6vh"},{default:r(()=>[l("div",A,[L(l("div",{class:"notification-time"},y(e.dialogData.updatedAt),513),[[N,e.dialogData.updatedAt]]),l("h3",null,y(e.dialogData.title),1),l("div",{innerHTML:e.dialogData.content,class:"notification-detail-content"},null,8,F),l("div",j,[(o(!0),p(D,null,R(e.dialogData.files,(i,z)=>(o(),p("span",{class:"fileBox",key:z,onClick:U(I=>T(i),["stop"])},[l("span",null,y(i.name),1)],8,H))),128))]),e.pageType.type=="tz"?(o(),p("div",O,[e.pageType.isShowRead&&!e.dialogData.isRead?(o(),b(m,{key:0,type:"primary",size:"small",onClick:C},{default:r(()=>[V("已阅")]),_:1})):u("",!0),e.pageType.isShowPerson=="tzgl"||e.pageType.isShowPerson&&e.dialogData.isCreated?(o(),b(m,{key:1,onClick:S,type:"primary",size:"small"},{default:r(()=>[V("查看已读人员")]),_:1})):u("",!0)])):u("",!0)])]),_:1},8,["modelValue"]),e.pageType.isShowPerson=="tzgl"||e.pageType.isShowPerson&&e.dialogData.isCreated?(o(),b(_,{key:0,modelValue:h.value,"onUpdate:modelValue":t[1]||(t[1]=i=>h.value=i),title:"查看已读人员",class:"person-drawer"},{default:r(()=>[d(P,{data:e.dialogData.readUserList,stripe:"",border:"",style:{width:"100%"}},{default:r(()=>[d(w,{type:"index",width:"50"}),d(w,{prop:"userName",label:"已读人"}),d(w,{prop:"createdAt",label:"已读时间",width:"170"})]),_:1},8,["data"])]),_:1},8,["modelValue"])):u("",!0)],64)}}},fe=E($,[["__scopeId","data-v-e2764a32"]]);export{fe as default};

View File

@ -1 +1 @@
System.register(["./@vue-legacy-98edf7e4.js","./index-legacy-e2149a5d.js","./hevue-img-preview-legacy-7b0f5670.js","./element-plus-legacy-be489926.js","./vue-router-legacy-014c426a.js","./tools-legacy-fa9cbc87.js","./pinia-legacy-ae5252ec.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./mitt-legacy-b7d2faf6.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-485cb7fd.js","./@element-plus-legacy-fc466b21.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-8181a174.js","./@imengyu-legacy-4fdfe515.js","./vue-legacy-74f9c847.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,l){"use strict";var a,t,i,s,o,n,d,u,c,g,p,r,y,m,j,h,f,v,w,b;return{setters:[e=>{a=e.f,t=e.h,i=e.ag,s=e.o,o=e.c,n=e.d,d=e.T,u=e.a,c=e.U,g=e.Z,p=e.Y,r=e.F,y=e.a7,m=e.a0,j=e.S,h=e.X,f=e.W},e=>{v=e.h},e=>{w=e.a},e=>{b=e.E},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"notification-detail"},D=["innerHTML"],V={class:"notification-detail-files"},k=["onClick"],T={key:0,class:"notification-footer-btn"},S={__name:"DetailDialog",props:{dialogVisible:{type:Boolean},dialogData:{},pageType:{type:Object,default:{type:"tz",isShowRead:!1,isShowPerson:!1}}},emits:["update:dialogVisible","init"],setup(e,{emit:w}){const S=e,_=a(!1),z=()=>{const e=S.dialogData.id;v.get(`/api/notice/read?id=${e}`).then((e=>{200==e.code&&(b.success(e.message||"阅读成功"),w("update:dialogVisible",!1),_.value=!1,w("init"))}))},C=a(!1),x=()=>{C.value=!0},L=e=>{w("update:dialogVisible",!1),e()};return t((()=>S.dialogVisible),(()=>{S.dialogVisible&&(_.value=!0)}),{immediate:!0}),(a,t)=>{const w=i("el-button"),b=i("el-dialog"),S=i("el-table-column"),U=i("el-table"),P=i("el-drawer");return s(),o(r,null,[n(b,{modelValue:_.value,"onUpdate:modelValue":t[0]||(t[0]=e=>_.value=e),title:"通知查看",width:"60%","before-close":L,top:"6vh"},{default:d((()=>[u("div",l,[c(u("div",{class:"notification-time"},p(e.dialogData.updatedAt),513),[[g,e.dialogData.updatedAt]]),u("h3",null,p(e.dialogData.title),1),u("div",{innerHTML:e.dialogData.content,class:"notification-detail-content"},null,8,D),u("div",V,[(s(!0),o(r,null,y(e.dialogData.files,((e,l)=>(s(),o("span",{class:"fileBox",key:l,onClick:m((l=>(e=>{v.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then((l=>{const a=window.URL.createObjectURL(l),t=document.createElement("a");t.download=e.name,t.href=a,t.click()}))})(e)),["stop"])},[u("span",null,p(e.name),1)],8,k)))),128))]),"tz"==e.pageType.type?(s(),o("div",T,[e.pageType.isShowRead&&!e.dialogData.isRead?(s(),j(w,{key:0,type:"primary",size:"small",onClick:z},{default:d((()=>[h("已阅")])),_:1})):f("",!0),"tzgl"==e.pageType.isShowPerson||e.pageType.isShowPerson&&e.dialogData.isCreated?(s(),j(w,{key:1,onClick:x,type:"primary",size:"small"},{default:d((()=>[h("查看已读人员")])),_:1})):f("",!0)])):f("",!0)])])),_:1},8,["modelValue"]),"tzgl"==e.pageType.isShowPerson||e.pageType.isShowPerson&&e.dialogData.isCreated?(s(),j(P,{key:0,modelValue:C.value,"onUpdate:modelValue":t[1]||(t[1]=e=>C.value=e),title:"查看已读人员",class:"person-drawer"},{default:d((()=>[n(U,{data:e.dialogData.readUserList,stripe:"",border:"",style:{width:"100%"}},{default:d((()=>[n(S,{type:"index",width:"50"}),n(S,{prop:"userName",label:"已读人"}),n(S,{prop:"createdAt",label:"已读时间",width:"170"})])),_:1},8,["data"])])),_:1},8,["modelValue"])):f("",!0)],64)}}};e("default",w(S,[["__scopeId","data-v-e2764a32"]]))}}})); System.register(["./@vue-legacy-98edf7e4.js","./index-legacy-83afd24b.js","./hevue-img-preview-legacy-7b0f5670.js","./element-plus-legacy-be489926.js","./vue-router-legacy-014c426a.js","./tools-legacy-fa9cbc87.js","./pinia-legacy-ae5252ec.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./mitt-legacy-b7d2faf6.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-485cb7fd.js","./@element-plus-legacy-fc466b21.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-8181a174.js","./@imengyu-legacy-4fdfe515.js","./vue-legacy-74f9c847.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,l){"use strict";var a,t,i,s,o,n,d,u,c,g,p,r,y,m,j,h,f,v,w,b;return{setters:[e=>{a=e.f,t=e.h,i=e.ag,s=e.o,o=e.c,n=e.d,d=e.T,u=e.a,c=e.U,g=e.Z,p=e.Y,r=e.F,y=e.a7,m=e.a0,j=e.S,h=e.X,f=e.W},e=>{v=e.h},e=>{w=e.a},e=>{b=e.E},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"notification-detail"},D=["innerHTML"],V={class:"notification-detail-files"},k=["onClick"],T={key:0,class:"notification-footer-btn"},S={__name:"DetailDialog",props:{dialogVisible:{type:Boolean},dialogData:{},pageType:{type:Object,default:{type:"tz",isShowRead:!1,isShowPerson:!1}}},emits:["update:dialogVisible","init"],setup(e,{emit:w}){const S=e,_=a(!1),z=()=>{const e=S.dialogData.id;v.get(`/api/notice/read?id=${e}`).then((e=>{200==e.code&&(b.success(e.message||"阅读成功"),w("update:dialogVisible",!1),_.value=!1,w("init"))}))},C=a(!1),x=()=>{C.value=!0},L=e=>{w("update:dialogVisible",!1),e()};return t((()=>S.dialogVisible),(()=>{S.dialogVisible&&(_.value=!0)}),{immediate:!0}),(a,t)=>{const w=i("el-button"),b=i("el-dialog"),S=i("el-table-column"),U=i("el-table"),P=i("el-drawer");return s(),o(r,null,[n(b,{modelValue:_.value,"onUpdate:modelValue":t[0]||(t[0]=e=>_.value=e),title:"通知查看",width:"60%","before-close":L,top:"6vh"},{default:d((()=>[u("div",l,[c(u("div",{class:"notification-time"},p(e.dialogData.updatedAt),513),[[g,e.dialogData.updatedAt]]),u("h3",null,p(e.dialogData.title),1),u("div",{innerHTML:e.dialogData.content,class:"notification-detail-content"},null,8,D),u("div",V,[(s(!0),o(r,null,y(e.dialogData.files,((e,l)=>(s(),o("span",{class:"fileBox",key:l,onClick:m((l=>(e=>{v.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then((l=>{const a=window.URL.createObjectURL(l),t=document.createElement("a");t.download=e.name,t.href=a,t.click()}))})(e)),["stop"])},[u("span",null,p(e.name),1)],8,k)))),128))]),"tz"==e.pageType.type?(s(),o("div",T,[e.pageType.isShowRead&&!e.dialogData.isRead?(s(),j(w,{key:0,type:"primary",size:"small",onClick:z},{default:d((()=>[h("已阅")])),_:1})):f("",!0),"tzgl"==e.pageType.isShowPerson||e.pageType.isShowPerson&&e.dialogData.isCreated?(s(),j(w,{key:1,onClick:x,type:"primary",size:"small"},{default:d((()=>[h("查看已读人员")])),_:1})):f("",!0)])):f("",!0)])])),_:1},8,["modelValue"]),"tzgl"==e.pageType.isShowPerson||e.pageType.isShowPerson&&e.dialogData.isCreated?(s(),j(P,{key:0,modelValue:C.value,"onUpdate:modelValue":t[1]||(t[1]=e=>C.value=e),title:"查看已读人员",class:"person-drawer"},{default:d((()=>[n(U,{data:e.dialogData.readUserList,stripe:"",border:"",style:{width:"100%"}},{default:d((()=>[n(S,{type:"index",width:"50"}),n(S,{prop:"userName",label:"已读人"}),n(S,{prop:"createdAt",label:"已读时间",width:"170"})])),_:1},8,["data"])])),_:1},8,["modelValue"])):f("",!0)],64)}}};e("default",w(S,[["__scopeId","data-v-e2764a32"]]))}}}));

View File

@ -1 +1 @@
import T from"./Upload-364e96ef.js";import{h as _}from"./index-79018977.js";import{c as $}from"./lodash.clonedeep-7c3da1fa.js";import{a as I}from"./hevue-img-preview-4a7ab001.js";import{E as f}from"./element-plus-4b5d5603.js";import{l as v,f as p,a1 as J,k as M,ag as d,o as x,S as D,T as o,a as g,X as C,W as j,d as t,u as b,O as z}from"./@vue-b2c9e7bc.js";/* empty css */import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const E={class:"tab-content"},P={class:"dialog-footer"},W={__name:"DocumentDialog",emits:["init"],setup(X,{expose:U,emit:V}){const c=v(()=>!["create","edit"].includes(u.value));v(()=>u==="create"),v(()=>u==="edit");const k=p();let N={files:[],remarks:void 0,serialNumber:"",title:""};const l=p({...N}),F=J({title:[{required:!0,message:"请输入标题",trigger:"blur"}],serialNumber:[{required:!0,message:"请输入文号",trigger:"blur"}],files:[{required:!0,message:"请上传文件",trigger:"blur"}]}),r=p(!1),u=p(""),y=p(""),S=(i,e)=>{i==="create"?(r.value=!r.value,u.value="create",l.value=$(N)):(i==="edit"||i==="check")&&_.get("/api/document/detail",{id:e}).then(s=>{r.value=!r.value,l.value={files:JSON.parse(s.data.files),remarks:s.data.remarks,serialNumber:s.data.serialNumber,title:s.data.title},y.value=e,u.value=i})},q=async i=>{i&&await i.validate(async(e,s)=>{if(e){let m={...l.value,files:JSON.stringify(l.value.files)};if(u.value==="create"){let n=await _.post("/api/document/save",m);n.code==200?(f({message:"新增成功",type:"success"}),r.value=!1,V("init")):f.error(n.message)}else{let n=await _.put(`/api/document/edit?id=${y.value}`,m);n.code==200?(f({message:"修改成功",type:"success"}),r.value=!1,V("init")):f.error(n.message)}}})};return M(()=>{}),U({changeDialog:S}),(i,e)=>{const s=d("el-input"),m=d("el-form-item"),n=d("el-col"),B=d("el-row"),O=d("el-form"),w=d("el-button"),R=d("el-dialog");return x(),D(R,{modelValue:r.value,"onUpdate:modelValue":e[6]||(e[6]=a=>r.value=a),title:"文件管理",width:"60%"},{footer:o(()=>[g("span",P,[g("div",null,[u.value!="check"?(x(),D(w,{key:0,type:"primary",onClick:e[4]||(e[4]=a=>q(k.value))},{default:o(()=>[C("保存")]),_:1})):j("",!0),t(w,{onClick:e[5]||(e[5]=a=>r.value=!1)},{default:o(()=>[C("关闭")]),_:1})])])]),default:o(()=>[g("div",E,[t(O,{ref_key:"ruleFormRef",ref:k,model:l.value,rules:F,"label-width":"180px",disabled:b(c),class:z(b(c)?"el-form-diabled":"")},{default:o(()=>[t(B,null,{default:o(()=>[t(n,{span:24},{default:o(()=>[t(m,{label:"标题:",prop:"title"},{default:o(()=>[t(s,{modelValue:l.value.title,"onUpdate:modelValue":e[0]||(e[0]=a=>l.value.title=a)},null,8,["modelValue"])]),_:1}),t(m,{label:"文号:",prop:"serialNumber"},{default:o(()=>[t(s,{modelValue:l.value.serialNumber,"onUpdate:modelValue":e[1]||(e[1]=a=>l.value.serialNumber=a)},null,8,["modelValue"])]),_:1}),t(m,{label:"备注:",prop:"remarks"},{default:o(()=>[t(s,{modelValue:l.value.remarks,"onUpdate:modelValue":e[2]||(e[2]=a=>l.value.remarks=a)},null,8,["modelValue"])]),_:1}),t(m,{label:"相关附件:",class:"form-item-upload",prop:"files"},{default:o(()=>[t(T,{modelValue:l.value.files,"onUpdate:modelValue":e[3]||(e[3]=a=>l.value.files=a),disabled:b(c)},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},be=I(W,[["__scopeId","data-v-d70ea42b"]]);export{be as default}; import T from"./Upload-bb95f209.js";import{h as _}from"./index-8aa77b06.js";import{c as $}from"./lodash.clonedeep-7c3da1fa.js";import{a as I}from"./hevue-img-preview-4a7ab001.js";import{E as f}from"./element-plus-4b5d5603.js";import{l as v,f as p,a1 as J,k as M,ag as d,o as x,S as D,T as o,a as g,X as C,W as j,d as t,u as b,O as z}from"./@vue-b2c9e7bc.js";/* empty css */import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const E={class:"tab-content"},P={class:"dialog-footer"},W={__name:"DocumentDialog",emits:["init"],setup(X,{expose:U,emit:V}){const c=v(()=>!["create","edit"].includes(u.value));v(()=>u==="create"),v(()=>u==="edit");const k=p();let N={files:[],remarks:void 0,serialNumber:"",title:""};const l=p({...N}),F=J({title:[{required:!0,message:"请输入标题",trigger:"blur"}],serialNumber:[{required:!0,message:"请输入文号",trigger:"blur"}],files:[{required:!0,message:"请上传文件",trigger:"blur"}]}),r=p(!1),u=p(""),y=p(""),S=(i,e)=>{i==="create"?(r.value=!r.value,u.value="create",l.value=$(N)):(i==="edit"||i==="check")&&_.get("/api/document/detail",{id:e}).then(s=>{r.value=!r.value,l.value={files:JSON.parse(s.data.files),remarks:s.data.remarks,serialNumber:s.data.serialNumber,title:s.data.title},y.value=e,u.value=i})},q=async i=>{i&&await i.validate(async(e,s)=>{if(e){let m={...l.value,files:JSON.stringify(l.value.files)};if(u.value==="create"){let n=await _.post("/api/document/save",m);n.code==200?(f({message:"新增成功",type:"success"}),r.value=!1,V("init")):f.error(n.message)}else{let n=await _.put(`/api/document/edit?id=${y.value}`,m);n.code==200?(f({message:"修改成功",type:"success"}),r.value=!1,V("init")):f.error(n.message)}}})};return M(()=>{}),U({changeDialog:S}),(i,e)=>{const s=d("el-input"),m=d("el-form-item"),n=d("el-col"),B=d("el-row"),O=d("el-form"),w=d("el-button"),R=d("el-dialog");return x(),D(R,{modelValue:r.value,"onUpdate:modelValue":e[6]||(e[6]=a=>r.value=a),title:"文件管理",width:"60%"},{footer:o(()=>[g("span",P,[g("div",null,[u.value!="check"?(x(),D(w,{key:0,type:"primary",onClick:e[4]||(e[4]=a=>q(k.value))},{default:o(()=>[C("保存")]),_:1})):j("",!0),t(w,{onClick:e[5]||(e[5]=a=>r.value=!1)},{default:o(()=>[C("关闭")]),_:1})])])]),default:o(()=>[g("div",E,[t(O,{ref_key:"ruleFormRef",ref:k,model:l.value,rules:F,"label-width":"180px",disabled:b(c),class:z(b(c)?"el-form-diabled":"")},{default:o(()=>[t(B,null,{default:o(()=>[t(n,{span:24},{default:o(()=>[t(m,{label:"标题:",prop:"title"},{default:o(()=>[t(s,{modelValue:l.value.title,"onUpdate:modelValue":e[0]||(e[0]=a=>l.value.title=a)},null,8,["modelValue"])]),_:1}),t(m,{label:"文号:",prop:"serialNumber"},{default:o(()=>[t(s,{modelValue:l.value.serialNumber,"onUpdate:modelValue":e[1]||(e[1]=a=>l.value.serialNumber=a)},null,8,["modelValue"])]),_:1}),t(m,{label:"备注:",prop:"remarks"},{default:o(()=>[t(s,{modelValue:l.value.remarks,"onUpdate:modelValue":e[2]||(e[2]=a=>l.value.remarks=a)},null,8,["modelValue"])]),_:1}),t(m,{label:"相关附件:",class:"form-item-upload",prop:"files"},{default:o(()=>[t(T,{modelValue:l.value.files,"onUpdate:modelValue":e[3]||(e[3]=a=>l.value.files=a),disabled:b(c)},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},be=I(W,[["__scopeId","data-v-d70ea42b"]]);export{be as default};

View File

@ -1 +1 @@
import{h as v}from"./index-79018977.js";import{c as g}from"./lodash.clonedeep-7c3da1fa.js";import{a as R}from"./hevue-img-preview-4a7ab001.js";import{f as r,h as I,k as L,ag as p,o as u,c as b,d as s,T as a,a as j,X as _,F as A,a7 as F,S as M,Y as q}from"./@vue-b2c9e7bc.js";import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";const z={class:"export"},G={class:"dialog-footer"},O={__name:"Export",props:{dialogVisible:[Boolean]},emits:["update:dialogVisible"],setup(k,{emit:x}){const C=k,d=r(!1),l=r([]),V=r({academy:"毕业院校",alterationSign:"变更标志",annualSalary:"年薪",birthday:"出生日期",companyName:"企业名称",contractModality:"合同形式",education:"学历",finalTrialRemark:"终审意见",firstTrialRemark:"初审意见",freshGraduate:"是否应届毕业生",gender:"性别",hireDate:"入职时间",hireType:"录用方式",jobTitle:"专业技术职称",nation:"民族",numberId:"身份证号",personnelCharacter:"人员性质",personnelType:"人员类型",politicsStatus:"政治面貌",position:"岗位职务",presentDept:"所在部门",qualification:"执业资格证书",receipts:"单据状态",recruitNumber:"人员招聘单号",remark:"备注",resignationTime:"离职时间",retirementTime:"退休时间",socialCreditCode:"统一社会信用代码",specialty:"专业",txfpEndTime:"退休返聘结束时间",txfpStartTime:"退休返聘开始时间",userName:"姓名",workState:"工作状态"}),c=r(),m=r(!1),n=r([]),f=()=>{d.value=!1,x("update:dialogVisible",!1),n.value=g(l.value),c.value=!1,m.value=!1},y=e=>{f(),e()},T=()=>{v.export("/api/person/export",{ids:n.value}).then(e=>{const t=window.URL.createObjectURL(e.data),i=document.createElement("a");i.download=decodeURIComponent(e.headers["content-disposition"].split(";")[1].split("=")[1]),i.href=t,i.click()})},w=e=>{n.value=e?l.value:[],m.value=!1},S=e=>{const t=e.length;c.value=t===l.value.length,m.value=t>0&&t<l.value.length};I(()=>C.dialogVisible,e=>{d.value=e,c.value=!0});const E=()=>{v.get("/api/person/getEntityParam").then(e=>{e.code===200&&(l.value=e.data,n.value=g(e.data))})};return L(()=>{E()}),(e,t)=>{const i=p("el-checkbox"),B=p("el-checkbox-group"),D=p("el-form"),h=p("el-button"),N=p("el-dialog");return u(),b("div",z,[s(N,{modelValue:d.value,"onUpdate:modelValue":t[2]||(t[2]=o=>d.value=o),title:"导出选项",width:"36%","before-close":y},{footer:a(()=>[j("span",G,[s(h,{onClick:T},{default:a(()=>[_("导出")]),_:1}),s(h,{onClick:f,type:"primary"},{default:a(()=>[_("关闭")]),_:1})])]),default:a(()=>[s(D,null,{default:a(()=>[s(i,{modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=o=>c.value=o),label:"全选",class:"is-checked-all",size:"large",indeterminate:m.value,onChange:w},null,8,["modelValue","indeterminate"]),s(B,{modelValue:n.value,"onUpdate:modelValue":t[1]||(t[1]=o=>n.value=o),onChange:S},{default:a(()=>[(u(!0),b(A,null,F(l.value,(o,U)=>(u(),M(i,{class:"el-checkbox-width",label:o,key:U},{default:a(()=>[_(q(V.value[o]),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])}}},fe=R(O,[["__scopeId","data-v-e0be88eb"]]);export{fe as default}; import{h as v}from"./index-8aa77b06.js";import{c as g}from"./lodash.clonedeep-7c3da1fa.js";import{a as R}from"./hevue-img-preview-4a7ab001.js";import{f as r,h as I,k as L,ag as p,o as u,c as b,d as s,T as a,a as j,X as _,F as A,a7 as F,S as M,Y as q}from"./@vue-b2c9e7bc.js";import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";const z={class:"export"},G={class:"dialog-footer"},O={__name:"Export",props:{dialogVisible:[Boolean]},emits:["update:dialogVisible"],setup(k,{emit:x}){const C=k,d=r(!1),l=r([]),V=r({academy:"毕业院校",alterationSign:"变更标志",annualSalary:"年薪",birthday:"出生日期",companyName:"企业名称",contractModality:"合同形式",education:"学历",finalTrialRemark:"终审意见",firstTrialRemark:"初审意见",freshGraduate:"是否应届毕业生",gender:"性别",hireDate:"入职时间",hireType:"录用方式",jobTitle:"专业技术职称",nation:"民族",numberId:"身份证号",personnelCharacter:"人员性质",personnelType:"人员类型",politicsStatus:"政治面貌",position:"岗位职务",presentDept:"所在部门",qualification:"执业资格证书",receipts:"单据状态",recruitNumber:"人员招聘单号",remark:"备注",resignationTime:"离职时间",retirementTime:"退休时间",socialCreditCode:"统一社会信用代码",specialty:"专业",txfpEndTime:"退休返聘结束时间",txfpStartTime:"退休返聘开始时间",userName:"姓名",workState:"工作状态"}),c=r(),m=r(!1),n=r([]),f=()=>{d.value=!1,x("update:dialogVisible",!1),n.value=g(l.value),c.value=!1,m.value=!1},y=e=>{f(),e()},T=()=>{v.export("/api/person/export",{ids:n.value}).then(e=>{const t=window.URL.createObjectURL(e.data),i=document.createElement("a");i.download=decodeURIComponent(e.headers["content-disposition"].split(";")[1].split("=")[1]),i.href=t,i.click()})},w=e=>{n.value=e?l.value:[],m.value=!1},S=e=>{const t=e.length;c.value=t===l.value.length,m.value=t>0&&t<l.value.length};I(()=>C.dialogVisible,e=>{d.value=e,c.value=!0});const E=()=>{v.get("/api/person/getEntityParam").then(e=>{e.code===200&&(l.value=e.data,n.value=g(e.data))})};return L(()=>{E()}),(e,t)=>{const i=p("el-checkbox"),B=p("el-checkbox-group"),D=p("el-form"),h=p("el-button"),N=p("el-dialog");return u(),b("div",z,[s(N,{modelValue:d.value,"onUpdate:modelValue":t[2]||(t[2]=o=>d.value=o),title:"导出选项",width:"36%","before-close":y},{footer:a(()=>[j("span",G,[s(h,{onClick:T},{default:a(()=>[_("导出")]),_:1}),s(h,{onClick:f,type:"primary"},{default:a(()=>[_("关闭")]),_:1})])]),default:a(()=>[s(D,null,{default:a(()=>[s(i,{modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=o=>c.value=o),label:"全选",class:"is-checked-all",size:"large",indeterminate:m.value,onChange:w},null,8,["modelValue","indeterminate"]),s(B,{modelValue:n.value,"onUpdate:modelValue":t[1]||(t[1]=o=>n.value=o),onChange:S},{default:a(()=>[(u(!0),b(A,null,F(l.value,(o,U)=>(u(),M(i,{class:"el-checkbox-width",label:o,key:U},{default:a(()=>[_(q(V.value[o]),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])}}},fe=R(O,[["__scopeId","data-v-e0be88eb"]]);export{fe as default};

View File

@ -1 +1 @@
import{h as g}from"./index-79018977.js";import{c as A}from"./lodash.clonedeep-7c3da1fa.js";/* empty css */import{a as G}from"./hevue-img-preview-4a7ab001.js";import{t as H}from"./tools-0351b48a.js";import{E as R}from"./element-plus-4b5d5603.js";import{l as k,f as u,a1 as J,k as K,ag as l,o as _,S as b,T as o,a as T,X as V,W as B,d as s,u as i,O as I,c as Q,a7 as Y,F as Z}from"./@vue-b2c9e7bc.js";import"./vue-router-3598b468.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const ee={class:"tab-content"},te={class:"dialog-footer"},oe={__name:"FoodDialog",emits:["init"],setup(ae,{expose:N,emit:U}){const q=H.data.get("user"),F=k(()=>!["create","edit","rk","ck"].includes(r.value));k(()=>r.value==="create");const v=k(()=>r.value==="ck"||r.value==="rk"),h=u();let w={deptId:void 0,foodTypeId:void 0,amount:0};const a=u({...w}),E=J({foodTypeId:[{required:!0,message:"请输入粮食类型",trigger:"blur"}],amount:[{required:!0,message:"请输入库存",trigger:"blur"}],deptId:[{required:!0,message:"请输入粮仓",trigger:"blur"}]}),d=u(!1),r=u(""),z=u(""),M=(t,e)=>{t==="create"?(d.value=!d.value,r.value="create",a.value=A(w)):(t==="rk"||t==="ck"||t==="check")&&g.get("/api/foodReserves/detail",{id:e}).then(p=>{d.value=!d.value,a.value={deptId:p.data.deptId,foodTypeId:p.data.foodTypeId,amount:t==="check"?p.data.amount:0},z.value=e,r.value=t})},P=async t=>{t&&await t.validate(async(e,p)=>{if(e){let m={...a.value},y={create:"add",rk:"warehousing",ck:"out_of_stock"};m.operationType=y[r.value];let f=await g.post("/api/foodReserves/operation",m);f.code==200?(R({message:f.message,type:"success"}),d.value=!1,U("init")):R.error(f.message)}})},x=u([]),S=()=>{g.get("/api/foodType/page",{size:999999,current:1}).then(t=>{t.code==200&&(x.value=t.data.records)})},D=u([]),$=()=>{g.get("/api/dept/tree").then(t=>{t.code==200&&(D.value=t.data.data)})};return K(()=>{S(),$()}),N({changeDialog:M}),(t,e)=>{const p=l("el-tree-select"),m=l("el-form-item"),y=l("el-option"),f=l("el-select"),j=l("el-input"),L=l("el-col"),O=l("el-row"),W=l("el-form"),C=l("el-button"),X=l("el-dialog");return _(),b(X,{modelValue:d.value,"onUpdate:modelValue":e[5]||(e[5]=c=>d.value=c),title:"粮食库存",width:"40%"},{footer:o(()=>[T("span",te,[T("div",null,[r.value!="check"?(_(),b(C,{key:0,type:"primary",onClick:e[3]||(e[3]=c=>P(h.value))},{default:o(()=>[V("保存")]),_:1})):B("",!0),s(C,{onClick:e[4]||(e[4]=c=>d.value=!1)},{default:o(()=>[V("关闭")]),_:1})])])]),default:o(()=>[T("div",ee,[s(W,{ref_key:"ruleFormRef",ref:h,model:a.value,rules:E,"label-width":"180px",disabled:i(F),class:I(i(F)?"el-form-diabled":"")},{default:o(()=>[s(O,null,{default:o(()=>[s(L,{span:24},{default:o(()=>{var c;return[((c=i(q))==null?void 0:c.permissions)=="all"?(_(),b(m,{key:0,label:"粮仓:",prop:"deptId",class:I(i(v)?"form-item-diabled":"")},{default:o(()=>[s(p,{modelValue:a.value.deptId,"onUpdate:modelValue":e[0]||(e[0]=n=>a.value.deptId=n),data:D.value,clearable:"","check-strictly":"",placeholder:"请选择","render-after-expand":!1,disabled:i(v)},null,8,["modelValue","data","disabled"])]),_:1},8,["class"])):B("",!0),s(m,{label:"粮食类型:",prop:"foodTypeId",class:I(i(v)?"form-item-diabled":"")},{default:o(()=>[s(f,{modelValue:a.value.foodTypeId,"onUpdate:modelValue":e[1]||(e[1]=n=>a.value.foodTypeId=n),placeholder:"请选择",disabled:i(v)},{default:o(()=>[(_(!0),Q(Z,null,Y(x.value,n=>(_(),b(y,{label:n.type,value:n.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","disabled"])]),_:1},8,["class"]),s(m,{label:r.value=="create"?"库存:":"变更库存:",prop:"amount"},{default:o(()=>[s(j,{modelValue:a.value.amount,"onUpdate:modelValue":e[2]||(e[2]=n=>a.value.amount=n),type:"number",oninput:"value=value.replace(/^0+(\\d)|[^\\d]+/g,'')",min:"0"},{append:o(()=>[V("公斤")]),_:1},8,["modelValue"])]),_:1},8,["label"])]}),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},Re=G(oe,[["__scopeId","data-v-e226ed5b"]]);export{Re as default}; import{h as g}from"./index-8aa77b06.js";import{c as A}from"./lodash.clonedeep-7c3da1fa.js";/* empty css */import{a as G}from"./hevue-img-preview-4a7ab001.js";import{t as H}from"./tools-0351b48a.js";import{E as R}from"./element-plus-4b5d5603.js";import{l as k,f as u,a1 as J,k as K,ag as l,o as _,S as b,T as o,a as T,X as V,W as B,d as s,u as i,O as I,c as Q,a7 as Y,F as Z}from"./@vue-b2c9e7bc.js";import"./vue-router-3598b468.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const ee={class:"tab-content"},te={class:"dialog-footer"},oe={__name:"FoodDialog",emits:["init"],setup(ae,{expose:N,emit:U}){const q=H.data.get("user"),F=k(()=>!["create","edit","rk","ck"].includes(r.value));k(()=>r.value==="create");const v=k(()=>r.value==="ck"||r.value==="rk"),h=u();let w={deptId:void 0,foodTypeId:void 0,amount:0};const a=u({...w}),E=J({foodTypeId:[{required:!0,message:"请输入粮食类型",trigger:"blur"}],amount:[{required:!0,message:"请输入库存",trigger:"blur"}],deptId:[{required:!0,message:"请输入粮仓",trigger:"blur"}]}),d=u(!1),r=u(""),z=u(""),M=(t,e)=>{t==="create"?(d.value=!d.value,r.value="create",a.value=A(w)):(t==="rk"||t==="ck"||t==="check")&&g.get("/api/foodReserves/detail",{id:e}).then(p=>{d.value=!d.value,a.value={deptId:p.data.deptId,foodTypeId:p.data.foodTypeId,amount:t==="check"?p.data.amount:0},z.value=e,r.value=t})},P=async t=>{t&&await t.validate(async(e,p)=>{if(e){let m={...a.value},y={create:"add",rk:"warehousing",ck:"out_of_stock"};m.operationType=y[r.value];let f=await g.post("/api/foodReserves/operation",m);f.code==200?(R({message:f.message,type:"success"}),d.value=!1,U("init")):R.error(f.message)}})},x=u([]),S=()=>{g.get("/api/foodType/page",{size:999999,current:1}).then(t=>{t.code==200&&(x.value=t.data.records)})},D=u([]),$=()=>{g.get("/api/dept/tree").then(t=>{t.code==200&&(D.value=t.data.data)})};return K(()=>{S(),$()}),N({changeDialog:M}),(t,e)=>{const p=l("el-tree-select"),m=l("el-form-item"),y=l("el-option"),f=l("el-select"),j=l("el-input"),L=l("el-col"),O=l("el-row"),W=l("el-form"),C=l("el-button"),X=l("el-dialog");return _(),b(X,{modelValue:d.value,"onUpdate:modelValue":e[5]||(e[5]=c=>d.value=c),title:"粮食库存",width:"40%"},{footer:o(()=>[T("span",te,[T("div",null,[r.value!="check"?(_(),b(C,{key:0,type:"primary",onClick:e[3]||(e[3]=c=>P(h.value))},{default:o(()=>[V("保存")]),_:1})):B("",!0),s(C,{onClick:e[4]||(e[4]=c=>d.value=!1)},{default:o(()=>[V("关闭")]),_:1})])])]),default:o(()=>[T("div",ee,[s(W,{ref_key:"ruleFormRef",ref:h,model:a.value,rules:E,"label-width":"180px",disabled:i(F),class:I(i(F)?"el-form-diabled":"")},{default:o(()=>[s(O,null,{default:o(()=>[s(L,{span:24},{default:o(()=>{var c;return[((c=i(q))==null?void 0:c.permissions)=="all"?(_(),b(m,{key:0,label:"粮仓:",prop:"deptId",class:I(i(v)?"form-item-diabled":"")},{default:o(()=>[s(p,{modelValue:a.value.deptId,"onUpdate:modelValue":e[0]||(e[0]=n=>a.value.deptId=n),data:D.value,clearable:"","check-strictly":"",placeholder:"请选择","render-after-expand":!1,disabled:i(v)},null,8,["modelValue","data","disabled"])]),_:1},8,["class"])):B("",!0),s(m,{label:"粮食类型:",prop:"foodTypeId",class:I(i(v)?"form-item-diabled":"")},{default:o(()=>[s(f,{modelValue:a.value.foodTypeId,"onUpdate:modelValue":e[1]||(e[1]=n=>a.value.foodTypeId=n),placeholder:"请选择",disabled:i(v)},{default:o(()=>[(_(!0),Q(Z,null,Y(x.value,n=>(_(),b(y,{label:n.type,value:n.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","disabled"])]),_:1},8,["class"]),s(m,{label:r.value=="create"?"库存:":"变更库存:",prop:"amount"},{default:o(()=>[s(j,{modelValue:a.value.amount,"onUpdate:modelValue":e[2]||(e[2]=n=>a.value.amount=n),type:"number",oninput:"value=value.replace(/^0+(\\d)|[^\\d]+/g,'')",min:"0"},{append:o(()=>[V("公斤")]),_:1},8,["modelValue"])]),_:1},8,["label"])]}),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},Re=G(oe,[["__scopeId","data-v-e226ed5b"]]);export{Re as default};

View File

@ -1 +1 @@
import{h as f}from"./index-79018977.js";import{c as M}from"./lodash.clonedeep-7c3da1fa.js";/* empty css */import{a as S}from"./hevue-img-preview-4a7ab001.js";import{E as c}from"./element-plus-4b5d5603.js";import{l as _,f as p,a1 as U,k as j,ag as r,o as T,S as x,T as l,a as v,X as F,W as q,d as n,u as C,O as z}from"./@vue-b2c9e7bc.js";import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const E={class:"tab-content"},O={class:"dialog-footer"},P={__name:"FoodTypeDialog",emits:["init"],setup(W,{expose:h,emit:g}){const y=_(()=>!["create","edit"].includes(a.value));_(()=>a.value==="create"),_(()=>a.value==="edit");const b=p();let V={type:""};const i=p({...V}),D=U({type:[{required:!0,message:"请输入粮食类型",trigger:"blur"}]}),t=p(!1),a=p(""),k=p(""),N=(o,e)=>{o==="create"?(t.value=!t.value,a.value="create",i.value=M(V)):(o==="edit"||o==="check")&&f.get("/api/foodType/detail",{id:e}).then(m=>{t.value=!t.value,i.value={type:m.data.type},k.value=e,a.value=o})},B=async o=>{o&&await o.validate(async(e,m)=>{if(e){let d={...i.value};if(a.value==="create"){let s=await f.post("/api/foodType/save",d);s.code==200?(c({message:"新增成功",type:"success"}),t.value=!1,g("init")):c.error(s.message)}else{let s=await f.put(`/api/foodType/edit?id=${k.value}`,d);s.code==200?(c({message:"修改成功",type:"success"}),t.value=!1,g("init")):c.error(s.message)}}})};return j(()=>{}),h({changeDialog:N}),(o,e)=>{const m=r("el-input"),d=r("el-form-item"),s=r("el-col"),R=r("el-row"),$=r("el-form"),w=r("el-button"),I=r("el-dialog");return T(),x(I,{modelValue:t.value,"onUpdate:modelValue":e[3]||(e[3]=u=>t.value=u),title:"粮食类型",width:"40%"},{footer:l(()=>[v("span",O,[v("div",null,[a.value!="check"?(T(),x(w,{key:0,type:"primary",onClick:e[1]||(e[1]=u=>B(b.value))},{default:l(()=>[F("保存")]),_:1})):q("",!0),n(w,{onClick:e[2]||(e[2]=u=>t.value=!1)},{default:l(()=>[F("关闭")]),_:1})])])]),default:l(()=>[v("div",E,[n($,{ref_key:"ruleFormRef",ref:b,model:i.value,rules:D,"label-width":"180px",disabled:C(y),class:z(C(y)?"el-form-diabled":"")},{default:l(()=>[n(R,null,{default:l(()=>[n(s,{span:24},{default:l(()=>[n(d,{label:"粮食类型:",prop:"type"},{default:l(()=>[n(m,{modelValue:i.value.type,"onUpdate:modelValue":e[0]||(e[0]=u=>i.value.type=u)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},ve=S(P,[["__scopeId","data-v-82a014d8"]]);export{ve as default}; import{h as f}from"./index-8aa77b06.js";import{c as M}from"./lodash.clonedeep-7c3da1fa.js";/* empty css */import{a as S}from"./hevue-img-preview-4a7ab001.js";import{E as c}from"./element-plus-4b5d5603.js";import{l as _,f as p,a1 as U,k as j,ag as r,o as T,S as x,T as l,a as v,X as F,W as q,d as n,u as C,O as z}from"./@vue-b2c9e7bc.js";import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const E={class:"tab-content"},O={class:"dialog-footer"},P={__name:"FoodTypeDialog",emits:["init"],setup(W,{expose:h,emit:g}){const y=_(()=>!["create","edit"].includes(a.value));_(()=>a.value==="create"),_(()=>a.value==="edit");const b=p();let V={type:""};const i=p({...V}),D=U({type:[{required:!0,message:"请输入粮食类型",trigger:"blur"}]}),t=p(!1),a=p(""),k=p(""),N=(o,e)=>{o==="create"?(t.value=!t.value,a.value="create",i.value=M(V)):(o==="edit"||o==="check")&&f.get("/api/foodType/detail",{id:e}).then(m=>{t.value=!t.value,i.value={type:m.data.type},k.value=e,a.value=o})},B=async o=>{o&&await o.validate(async(e,m)=>{if(e){let d={...i.value};if(a.value==="create"){let s=await f.post("/api/foodType/save",d);s.code==200?(c({message:"新增成功",type:"success"}),t.value=!1,g("init")):c.error(s.message)}else{let s=await f.put(`/api/foodType/edit?id=${k.value}`,d);s.code==200?(c({message:"修改成功",type:"success"}),t.value=!1,g("init")):c.error(s.message)}}})};return j(()=>{}),h({changeDialog:N}),(o,e)=>{const m=r("el-input"),d=r("el-form-item"),s=r("el-col"),R=r("el-row"),$=r("el-form"),w=r("el-button"),I=r("el-dialog");return T(),x(I,{modelValue:t.value,"onUpdate:modelValue":e[3]||(e[3]=u=>t.value=u),title:"粮食类型",width:"40%"},{footer:l(()=>[v("span",O,[v("div",null,[a.value!="check"?(T(),x(w,{key:0,type:"primary",onClick:e[1]||(e[1]=u=>B(b.value))},{default:l(()=>[F("保存")]),_:1})):q("",!0),n(w,{onClick:e[2]||(e[2]=u=>t.value=!1)},{default:l(()=>[F("关闭")]),_:1})])])]),default:l(()=>[v("div",E,[n($,{ref_key:"ruleFormRef",ref:b,model:i.value,rules:D,"label-width":"180px",disabled:C(y),class:z(C(y)?"el-form-diabled":"")},{default:l(()=>[n(R,null,{default:l(()=>[n(s,{span:24},{default:l(()=>[n(d,{label:"粮食类型:",prop:"type"},{default:l(()=>[n(m,{modelValue:i.value.type,"onUpdate:modelValue":e[0]||(e[0]=u=>i.value.type=u)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},ve=S(P,[["__scopeId","data-v-82a014d8"]]);export{ve as default};

View File

@ -1 +1 @@
import{h as y}from"./index-79018977.js";import"./lodash.clonedeep-7c3da1fa.js";/* empty css */import{a as b}from"./hevue-img-preview-4a7ab001.js";import{a as k}from"./vue-router-3598b468.js";import{f as S,k as x,ag as _,o as s,c as u,S as h,W as L,F as w,a7 as B,T as t,d as i,a as e,Y as r,ba as I,b8 as q}from"./@vue-b2c9e7bc.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";const p=o=>(I("data-v-706b4881"),o=o(),q(),o),C={class:"tab-content"},N={class:"item-container"},T=p(()=>e("div",null,"处理人:",-1)),V={class:"item-container"},D=p(()=>e("div",null,"处理时间:",-1)),F={class:"item-container"},$=p(()=>e("div",null,"处理状态:",-1)),A={class:"item-container"},E=p(()=>e("div",null,"处理意见:",-1)),M={__name:"Log",setup(o){const d=k(),c=S([]),v=()=>{let m={edit:"personnel",change:"change",approve:"personnel",approve_change:"change",check:"personnel",check_change:"change"};y.get(`/api/alteration/audtiLog?id=${d.query.id}&personnelType=${m[d.query.type]}`).then(l=>{l.code===200&&(c.value=l.data)})};return x(()=>{v()}),(m,l)=>{const g=_("el-empty"),n=_("el-col"),f=_("el-row");return s(),u("div",C,[c.value.length===0?(s(),h(g,{key:0,description:"暂无"})):L("",!0),(s(!0),u(w,null,B(c.value,a=>(s(),h(f,null,{default:t(()=>[i(n,{span:8},{default:t(()=>[e("div",N,[T,e("div",null,r(a.approver),1)])]),_:2},1024),i(n,{span:8},{default:t(()=>[e("div",V,[D,e("div",null,r(a.createdAt),1)])]),_:2},1024),i(n,{span:8},{default:t(()=>[e("div",F,[$,e("div",null,r(a.auditState),1)])]),_:2},1024),i(n,{span:24},{default:t(()=>[e("div",A,[E,e("div",null,r(a.opinion),1)])]),_:2},1024)]),_:2},1024))),256))])}}},_e=b(M,[["__scopeId","data-v-706b4881"]]);export{_e as default}; import{h as y}from"./index-8aa77b06.js";import"./lodash.clonedeep-7c3da1fa.js";/* empty css */import{a as b}from"./hevue-img-preview-4a7ab001.js";import{a as k}from"./vue-router-3598b468.js";import{f as S,k as x,ag as _,o as s,c as u,S as h,W as L,F as w,a7 as B,T as t,d as i,a as e,Y as r,ba as I,b8 as q}from"./@vue-b2c9e7bc.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";const p=o=>(I("data-v-706b4881"),o=o(),q(),o),C={class:"tab-content"},N={class:"item-container"},T=p(()=>e("div",null,"处理人:",-1)),V={class:"item-container"},D=p(()=>e("div",null,"处理时间:",-1)),F={class:"item-container"},$=p(()=>e("div",null,"处理状态:",-1)),A={class:"item-container"},E=p(()=>e("div",null,"处理意见:",-1)),M={__name:"Log",setup(o){const d=k(),c=S([]),v=()=>{let m={edit:"personnel",change:"change",approve:"personnel",approve_change:"change",check:"personnel",check_change:"change"};y.get(`/api/alteration/audtiLog?id=${d.query.id}&personnelType=${m[d.query.type]}`).then(l=>{l.code===200&&(c.value=l.data)})};return x(()=>{v()}),(m,l)=>{const g=_("el-empty"),n=_("el-col"),f=_("el-row");return s(),u("div",C,[c.value.length===0?(s(),h(g,{key:0,description:"暂无"})):L("",!0),(s(!0),u(w,null,B(c.value,a=>(s(),h(f,null,{default:t(()=>[i(n,{span:8},{default:t(()=>[e("div",N,[T,e("div",null,r(a.approver),1)])]),_:2},1024),i(n,{span:8},{default:t(()=>[e("div",V,[D,e("div",null,r(a.createdAt),1)])]),_:2},1024),i(n,{span:8},{default:t(()=>[e("div",F,[$,e("div",null,r(a.auditState),1)])]),_:2},1024),i(n,{span:24},{default:t(()=>[e("div",A,[E,e("div",null,r(a.opinion),1)])]),_:2},1024)]),_:2},1024))),256))])}}},_e=b(M,[["__scopeId","data-v-706b4881"]]);export{_e as default};

View File

@ -1 +1 @@
import{_ as R}from"./TableBody-814242b2.js";import{h as i}from"./index-79018977.js";import{u as B}from"./vue-router-3598b468.js";import C from"./FoodDialog-16e2701b.js";import{t as H}from"./tools-0351b48a.js";import{E as u}from"./element-plus-4b5d5603.js";import{f as r,a1 as N,k as P,ag as V,o as g,c as L,d as f,T as O,u as S,S as A,W as E,Q as K}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./@element-plus-a1a6045a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash.clonedeep-7c3da1fa.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";/* empty css */import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const z={class:"example"},he={__name:"Manage",setup(M){const c=H.data.get("user");B();const s=r(),b=r(),t=N({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,changeHeight:312},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增",icon:"Plus",isOpen:"custom",disabled:!1,permission:"gxcc:lskcgl:create"},{type:"custom",name:"customCK",title:"出库",icon:"Upload",isOpen:"single",permission:"gxcc:lskcgl:ck"},{type:"custom",name:"customRK",title:"入库",icon:"Download",isOpen:"single",permission:"gxcc:lskcgl:rk"},{type:"custom",name:"check",title:"查看",icon:"View",isOpen:"single",permission:"gxcc:lskcgl:check"},{type:"popconfirm",name:"customDelete",title:"删除",icon:"Delete",isOpen:"single",permission:"gxcc:lskcgl:delete"}]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"deptName",label:"粮仓",show:!0},{name:"foodTypeName",label:"粮食类型",show:!0},{name:"amount",label:"库存(公斤)",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),h={current:t.pagination.current,size:t.pagination.pageSize,deptId:void 0,column:void 0,orderBy:void 0,value:void 0},o=r({...h}),l=()=>{t.tableType.tableLoading=!0,i.get("/api/foodReserves/page",o.value).then(e=>{e.code==200&&(t.tableData=e.data.records,t.tableType.tableLoading=!1,t.pagination.total=e.data.total)}).catch(()=>{t.tableType.tableLoading=!1})},k=({type:e,data:a})=>{switch(e){case"create":w();break;case"check":v(a);break;case"customCK":d(a,"ck");break;case"customRK":d(a,"rk");break;case"sort":D(a);break;case"search":_(a);break;case"customDelete":T(a);break}},y=e=>{t.pagination.current=e,o.value.current=e,l()},v=e=>{const a=e[0].id;s.value.changeDialog("check",a)},T=e=>{let a={deptId:c.permissions=="all"?e[0].deptId:void 0,foodTypeId:e[0].foodTypeId,operationType:"delete",amount:0};i.post("/api/foodReserves/operation",a).then(n=>{n.code==200?(u({message:"删除成功",type:"success"}),l()):u({message:n.message,type:"error"})})},_=e=>{o.value.value=e.value,l()},D=e=>{e.name===""?(o.value.orderBy=void 0,o.value.column=void 0):(o.value.orderBy=e.sortType,o.value.column=e.name),l()},w=()=>{s.value.changeDialog("create")},d=(e,a)=>{const n=e[0].id;s.value.changeDialog(a,n)};P(()=>{l(),x()});const m=r([]),x=()=>{i.get("/api/dept/tree").then(e=>{e.code==200&&(m.value=e.data.data)})};return(e,a)=>{const n=V("el-tree-select");return g(),L("div",z,[f(R,K(t,{onHandleTableHeader:k,onHandleTablePagination:y,ref_key:"TableBodyRef",ref:b}),{TableHeaderRight:O(({selectData:q})=>{var p;return[((p=S(c))==null?void 0:p.permissions)=="all"?(g(),A(n,{key:0,style:{width:"220px"},modelValue:o.value.deptId,"onUpdate:modelValue":a[0]||(a[0]=I=>o.value.deptId=I),data:m.value,clearable:"","check-strictly":"",placeholder:"请选择粮仓","render-after-expand":!1,class:"status-select",onChange:l},null,8,["modelValue","data"])):E("",!0)]}),_:1},16),f(C,{ref_key:"formDialog",ref:s,onInit:l},null,512)])}}};export{he as default}; import{_ as R}from"./TableBody-8917f0e2.js";import{h as i}from"./index-8aa77b06.js";import{u as B}from"./vue-router-3598b468.js";import C from"./FoodDialog-586581cf.js";import{t as H}from"./tools-0351b48a.js";import{E as u}from"./element-plus-4b5d5603.js";import{f as r,a1 as N,k as P,ag as V,o as g,c as L,d as f,T as O,u as S,S as A,W as E,Q as K}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./@element-plus-a1a6045a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash.clonedeep-7c3da1fa.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";/* empty css */import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const z={class:"example"},he={__name:"Manage",setup(M){const c=H.data.get("user");B();const s=r(),b=r(),t=N({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,changeHeight:312},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增",icon:"Plus",isOpen:"custom",disabled:!1,permission:"gxcc:lskcgl:create"},{type:"custom",name:"customCK",title:"出库",icon:"Upload",isOpen:"single",permission:"gxcc:lskcgl:ck"},{type:"custom",name:"customRK",title:"入库",icon:"Download",isOpen:"single",permission:"gxcc:lskcgl:rk"},{type:"custom",name:"check",title:"查看",icon:"View",isOpen:"single",permission:"gxcc:lskcgl:check"},{type:"popconfirm",name:"customDelete",title:"删除",icon:"Delete",isOpen:"single",permission:"gxcc:lskcgl:delete"}]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"deptName",label:"粮仓",show:!0},{name:"foodTypeName",label:"粮食类型",show:!0},{name:"amount",label:"库存(公斤)",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),h={current:t.pagination.current,size:t.pagination.pageSize,deptId:void 0,column:void 0,orderBy:void 0,value:void 0},o=r({...h}),l=()=>{t.tableType.tableLoading=!0,i.get("/api/foodReserves/page",o.value).then(e=>{e.code==200&&(t.tableData=e.data.records,t.tableType.tableLoading=!1,t.pagination.total=e.data.total)}).catch(()=>{t.tableType.tableLoading=!1})},k=({type:e,data:a})=>{switch(e){case"create":w();break;case"check":v(a);break;case"customCK":d(a,"ck");break;case"customRK":d(a,"rk");break;case"sort":D(a);break;case"search":_(a);break;case"customDelete":T(a);break}},y=e=>{t.pagination.current=e,o.value.current=e,l()},v=e=>{const a=e[0].id;s.value.changeDialog("check",a)},T=e=>{let a={deptId:c.permissions=="all"?e[0].deptId:void 0,foodTypeId:e[0].foodTypeId,operationType:"delete",amount:0};i.post("/api/foodReserves/operation",a).then(n=>{n.code==200?(u({message:"删除成功",type:"success"}),l()):u({message:n.message,type:"error"})})},_=e=>{o.value.value=e.value,l()},D=e=>{e.name===""?(o.value.orderBy=void 0,o.value.column=void 0):(o.value.orderBy=e.sortType,o.value.column=e.name),l()},w=()=>{s.value.changeDialog("create")},d=(e,a)=>{const n=e[0].id;s.value.changeDialog(a,n)};P(()=>{l(),x()});const m=r([]),x=()=>{i.get("/api/dept/tree").then(e=>{e.code==200&&(m.value=e.data.data)})};return(e,a)=>{const n=V("el-tree-select");return g(),L("div",z,[f(R,K(t,{onHandleTableHeader:k,onHandleTablePagination:y,ref_key:"TableBodyRef",ref:b}),{TableHeaderRight:O(({selectData:q})=>{var p;return[((p=S(c))==null?void 0:p.permissions)=="all"?(g(),A(n,{key:0,style:{width:"220px"},modelValue:o.value.deptId,"onUpdate:modelValue":a[0]||(a[0]=I=>o.value.deptId=I),data:m.value,clearable:"","check-strictly":"",placeholder:"请选择粮仓","render-after-expand":!1,class:"status-select",onChange:l},null,8,["modelValue","data"])):E("",!0)]}),_:1},16),f(C,{ref_key:"formDialog",ref:s,onInit:l},null,512)])}}};export{he as default};

View File

@ -1 +1 @@
System.register(["./TableBody-legacy-eafa0254.js","./index-legacy-e2149a5d.js","./vue-router-legacy-014c426a.js","./FoodDialog-legacy-4e863189.js","./tools-legacy-fa9cbc87.js","./element-plus-legacy-be489926.js","./@vue-legacy-98edf7e4.js","./hevue-img-preview-legacy-7b0f5670.js","./@element-plus-legacy-fc466b21.js","./pinia-legacy-ae5252ec.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./mitt-legacy-b7d2faf6.js","./lodash.clonedeep-legacy-7f67fce1.js","./@imengyu-legacy-4fdfe515.js","./vue-legacy-74f9c847.js","./Upload.vue_vue_type_style_index_0_scoped_3e0822f6_lang-legacy-689b99a2.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-485cb7fd.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-8181a174.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,a){"use strict";var l,t,s,o,n,c,i,u,d,r,g,p,m,y,v,b,h,j;return{setters:[e=>{l=e._},e=>{t=e.h},e=>{s=e.u},e=>{o=e.default},e=>{n=e.t},e=>{c=e.E},e=>{i=e.f,u=e.a1,d=e.k,r=e.ag,g=e.o,p=e.c,m=e.d,y=e.T,v=e.u,b=e.S,h=e.W,j=e.Q},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const a={class:"example"};e("default",{__name:"Manage",setup(e){const k=n.data.get("user");s();const f=i(),T=i(),w=u({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,changeHeight:312},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增",icon:"Plus",isOpen:"custom",disabled:!1,permission:"gxcc:lskcgl:create"},{type:"custom",name:"customCK",title:"出库",icon:"Upload",isOpen:"single",permission:"gxcc:lskcgl:ck"},{type:"custom",name:"customRK",title:"入库",icon:"Download",isOpen:"single",permission:"gxcc:lskcgl:rk"},{type:"custom",name:"check",title:"查看",icon:"View",isOpen:"single",permission:"gxcc:lskcgl:check"},{type:"popconfirm",name:"customDelete",title:"删除",icon:"Delete",isOpen:"single",permission:"gxcc:lskcgl:delete"}]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"deptName",label:"粮仓",show:!0},{name:"foodTypeName",label:"粮食类型",show:!0},{name:"amount",label:"库存(公斤)",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),x={current:w.pagination.current,size:w.pagination.pageSize,deptId:void 0,column:void 0,orderBy:void 0,value:void 0},_=i({...x}),D=()=>{w.tableType.tableLoading=!0,t.get("/api/foodReserves/page",_.value).then((e=>{200==e.code&&(w.tableData=e.data.records,w.tableType.tableLoading=!1,w.pagination.total=e.data.total)})).catch((()=>{w.tableType.tableLoading=!1}))},I=({type:e,data:a})=>{switch(e){case"create":A();break;case"check":L(a);break;case"customCK":B(a,"ck");break;case"customRK":B(a,"rk");break;case"sort":z(a);break;case"search":R(a);break;case"customDelete":O(a)}},H=e=>{console.log(e),w.pagination.current=e,_.value.current=e,D()},L=e=>{const a=e[0].id;f.value.changeDialog("check",a)},O=e=>{let a={deptId:"all"==k.permissions?e[0].deptId:void 0,foodTypeId:e[0].foodTypeId,operationType:"delete",amount:0};t.post("/api/foodReserves/operation",a).then((e=>{200==e.code?(c({message:"删除成功",type:"success"}),D()):c({message:e.message,type:"error"})}))},R=e=>{console.log(e.value),_.value.value=e.value,D()},z=e=>{""===e.name?(_.value.orderBy=void 0,_.value.column=void 0):(_.value.orderBy=e.sortType,_.value.column=e.name),D()},A=()=>{f.value.changeDialog("create")},B=(e,a)=>{const l=e[0].id;f.value.changeDialog(a,l)};d((()=>{D(),K()}));const C=i([]),K=()=>{t.get("/api/dept/tree").then((e=>{200==e.code&&(C.value=e.data.data)}))};return(e,t)=>{const s=r("el-tree-select");return g(),p("div",a,[m(l,j(w,{onHandleTableHeader:I,onHandleTablePagination:H,ref_key:"TableBodyRef",ref:T}),{TableHeaderRight:y((({selectData:e})=>["all"==v(k)?.permissions?(g(),b(s,{key:0,style:{width:"220px"},modelValue:_.value.deptId,"onUpdate:modelValue":t[0]||(t[0]=e=>_.value.deptId=e),data:C.value,clearable:"","check-strictly":"",placeholder:"请选择粮仓","render-after-expand":!1,class:"status-select",onChange:D},null,8,["modelValue","data"])):h("",!0)])),_:1},16),m(o,{ref_key:"formDialog",ref:f,onInit:D},null,512)])}}})}}})); System.register(["./TableBody-legacy-c5f27ee1.js","./index-legacy-83afd24b.js","./vue-router-legacy-014c426a.js","./FoodDialog-legacy-04ee50cc.js","./tools-legacy-fa9cbc87.js","./element-plus-legacy-be489926.js","./@vue-legacy-98edf7e4.js","./hevue-img-preview-legacy-7b0f5670.js","./@element-plus-legacy-fc466b21.js","./pinia-legacy-ae5252ec.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./mitt-legacy-b7d2faf6.js","./lodash.clonedeep-legacy-7f67fce1.js","./@imengyu-legacy-4fdfe515.js","./vue-legacy-74f9c847.js","./Upload.vue_vue_type_style_index_0_scoped_3e0822f6_lang-legacy-689b99a2.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-485cb7fd.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-8181a174.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,a){"use strict";var l,t,s,o,n,c,i,u,d,r,g,p,m,y,v,b,h,j;return{setters:[e=>{l=e._},e=>{t=e.h},e=>{s=e.u},e=>{o=e.default},e=>{n=e.t},e=>{c=e.E},e=>{i=e.f,u=e.a1,d=e.k,r=e.ag,g=e.o,p=e.c,m=e.d,y=e.T,v=e.u,b=e.S,h=e.W,j=e.Q},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const a={class:"example"};e("default",{__name:"Manage",setup(e){const k=n.data.get("user");s();const f=i(),T=i(),w=u({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,changeHeight:312},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增",icon:"Plus",isOpen:"custom",disabled:!1,permission:"gxcc:lskcgl:create"},{type:"custom",name:"customCK",title:"出库",icon:"Upload",isOpen:"single",permission:"gxcc:lskcgl:ck"},{type:"custom",name:"customRK",title:"入库",icon:"Download",isOpen:"single",permission:"gxcc:lskcgl:rk"},{type:"custom",name:"check",title:"查看",icon:"View",isOpen:"single",permission:"gxcc:lskcgl:check"},{type:"popconfirm",name:"customDelete",title:"删除",icon:"Delete",isOpen:"single",permission:"gxcc:lskcgl:delete"}]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"deptName",label:"粮仓",show:!0},{name:"foodTypeName",label:"粮食类型",show:!0},{name:"amount",label:"库存(公斤)",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),x={current:w.pagination.current,size:w.pagination.pageSize,deptId:void 0,column:void 0,orderBy:void 0,value:void 0},_=i({...x}),D=()=>{w.tableType.tableLoading=!0,t.get("/api/foodReserves/page",_.value).then((e=>{200==e.code&&(w.tableData=e.data.records,w.tableType.tableLoading=!1,w.pagination.total=e.data.total)})).catch((()=>{w.tableType.tableLoading=!1}))},I=({type:e,data:a})=>{switch(e){case"create":A();break;case"check":L(a);break;case"customCK":B(a,"ck");break;case"customRK":B(a,"rk");break;case"sort":z(a);break;case"search":R(a);break;case"customDelete":O(a)}},H=e=>{console.log(e),w.pagination.current=e,_.value.current=e,D()},L=e=>{const a=e[0].id;f.value.changeDialog("check",a)},O=e=>{let a={deptId:"all"==k.permissions?e[0].deptId:void 0,foodTypeId:e[0].foodTypeId,operationType:"delete",amount:0};t.post("/api/foodReserves/operation",a).then((e=>{200==e.code?(c({message:"删除成功",type:"success"}),D()):c({message:e.message,type:"error"})}))},R=e=>{console.log(e.value),_.value.value=e.value,D()},z=e=>{""===e.name?(_.value.orderBy=void 0,_.value.column=void 0):(_.value.orderBy=e.sortType,_.value.column=e.name),D()},A=()=>{f.value.changeDialog("create")},B=(e,a)=>{const l=e[0].id;f.value.changeDialog(a,l)};d((()=>{D(),K()}));const C=i([]),K=()=>{t.get("/api/dept/tree").then((e=>{200==e.code&&(C.value=e.data.data)}))};return(e,t)=>{const s=r("el-tree-select");return g(),p("div",a,[m(l,j(w,{onHandleTableHeader:I,onHandleTablePagination:H,ref_key:"TableBodyRef",ref:T}),{TableHeaderRight:y((({selectData:e})=>["all"==v(k)?.permissions?(g(),b(s,{key:0,style:{width:"220px"},modelValue:_.value.deptId,"onUpdate:modelValue":t[0]||(t[0]=e=>_.value.deptId=e),data:C.value,clearable:"","check-strictly":"",placeholder:"请选择粮仓","render-after-expand":!1,class:"status-select",onChange:D},null,8,["modelValue","data"])):h("",!0)])),_:1},16),m(o,{ref_key:"formDialog",ref:f,onInit:D},null,512)])}}})}}}));

View File

@ -1 +1 @@
import{_ as C}from"./index-3462c63b.js";import N from"./Upload-364e96ef.js";import{u as R,a as U}from"./vue-router-3598b468.js";import{h as g}from"./index-79018977.js";/* empty css */import{a as I}from"./hevue-img-preview-4a7ab001.js";import B from"./DetailDialog-88dc92b5.js";import{E as u}from"./element-plus-4b5d5603.js";import{l as y,f as d,k as T,ag as c,o as A,c as E,d as l,u as b,a as f,T as n,X as V,ba as J,b8 as M}from"./@vue-b2c9e7bc.js";import"./@wangeditor-21276f11.js";import"./lodash.clonedeep-7c3da1fa.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";/* empty css */import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const k=p=>(J("data-v-0d362498"),p=p(),M(),p),O={class:"card"},j=k(()=>f("div",{class:"line"},null,-1)),z={class:"page-content"},X=k(()=>f("p",{class:"page-content-title"},"制度新增",-1)),G={class:"bottom-item"},H={__name:"PageForm",setup(p){const h=R(),i=U(),_=y(()=>!["create","edit"].includes(i.query.type));y(()=>i.query.type==="create"),y(()=>i.query.type==="edit");const F=d(),t=d({content:"",files:[],title:""}),D=d({title:[{required:!0,message:"请输入",trigger:"blur"}]}),v=d(!1),q=d({}),S=()=>{v.value=!0,q.value={...t.value}},w=()=>{h.go(-1)},x=async r=>{r&&await r.validate(async(e,m)=>{if(e){if(!t.value.content)return u.warning("请填写内容");let o={...t.value,files:JSON.stringify(t.value.files)};if(i.query.type==="create"){let a=await g.post("/api/institution/save",o);a.code==200?(u({message:a.message,type:"success"}),w()):u.error(a.message)}else if(i.query.type==="edit"){let a=await g.put(`/api/institution/edit?id=${i.query.id}`,o);a.code==200?(u({message:a.message,type:"success"}),w()):u.error(a.message)}}})},P=()=>{var r,e;if(((r=i.query)==null?void 0:r.type)==="check"||((e=i.query)==null?void 0:e.type)==="edit"){let m=i.query.id;g.get(`/api/institution/detail?id=${m}`).then(o=>{o.code==200&&(t.value={content:o.data.content,files:JSON.parse(o.data.files),title:o.data.title,updatedAt:o.data.updatedAt})})}};return T(()=>{P()}),(r,e)=>{const m=c("el-input"),o=c("el-form-item"),a=c("el-button"),$=c("el-form");return A(),E("div",O,[l(C,{height:"60vh",value:t.value.content,"onUpdate:value":e[0]||(e[0]=s=>t.value.content=s),disabled:b(_)},null,8,["value","disabled"]),j,f("div",z,[X,l($,{ref_key:"ruleFormRef",ref:F,"label-position":"top",model:t.value,rules:D.value,"label-width":"120px",disabled:b(_),"status-icon":""},{default:n(()=>[l(o,{label:"标题",prop:"title"},{default:n(()=>[l(m,{modelValue:t.value.title,"onUpdate:modelValue":e[1]||(e[1]=s=>t.value.title=s)},null,8,["modelValue"])]),_:1}),l(o,{label:"附件",prop:"files"},{default:n(()=>[l(N,{modelValue:t.value.files,"onUpdate:modelValue":e[2]||(e[2]=s=>t.value.files=s),type:"create",disabled:b(_)},null,8,["modelValue","disabled"])]),_:1}),f("div",G,[l(a,{type:"primary",onClick:S},{default:n(()=>[V(" 预览内容 ")]),_:1}),l(a,{type:"primary",onClick:e[3]||(e[3]=s=>x(F.value))},{default:n(()=>[V(" 保存 ")]),_:1}),l(a,{onClick:e[4]||(e[4]=s=>r.$router.back())},{default:n(()=>[V(" 返回 ")]),_:1})])]),_:1},8,["model","rules","disabled"])]),l(B,{dialogVisible:v.value,"onUpdate:dialogVisible":e[5]||(e[5]=s=>v.value=s),dialogData:q.value,pageType:{type:"zd",isShowRead:!1,isShowPerson:!1}},null,8,["dialogVisible","dialogData"])])}}},he=I(H,[["__scopeId","data-v-0d362498"]]);export{he as default}; import{_ as C}from"./index-719e5650.js";import N from"./Upload-bb95f209.js";import{u as R,a as U}from"./vue-router-3598b468.js";import{h as g}from"./index-8aa77b06.js";/* empty css */import{a as I}from"./hevue-img-preview-4a7ab001.js";import B from"./DetailDialog-5cd1f262.js";import{E as u}from"./element-plus-4b5d5603.js";import{l as y,f as d,k as T,ag as c,o as A,c as E,d as l,u as b,a as f,T as n,X as V,ba as J,b8 as M}from"./@vue-b2c9e7bc.js";import"./@wangeditor-21276f11.js";import"./lodash.clonedeep-7c3da1fa.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";/* empty css */import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const k=p=>(J("data-v-0d362498"),p=p(),M(),p),O={class:"card"},j=k(()=>f("div",{class:"line"},null,-1)),z={class:"page-content"},X=k(()=>f("p",{class:"page-content-title"},"制度新增",-1)),G={class:"bottom-item"},H={__name:"PageForm",setup(p){const h=R(),i=U(),_=y(()=>!["create","edit"].includes(i.query.type));y(()=>i.query.type==="create"),y(()=>i.query.type==="edit");const F=d(),t=d({content:"",files:[],title:""}),D=d({title:[{required:!0,message:"请输入",trigger:"blur"}]}),v=d(!1),q=d({}),S=()=>{v.value=!0,q.value={...t.value}},w=()=>{h.go(-1)},x=async r=>{r&&await r.validate(async(e,m)=>{if(e){if(!t.value.content)return u.warning("请填写内容");let o={...t.value,files:JSON.stringify(t.value.files)};if(i.query.type==="create"){let a=await g.post("/api/institution/save",o);a.code==200?(u({message:a.message,type:"success"}),w()):u.error(a.message)}else if(i.query.type==="edit"){let a=await g.put(`/api/institution/edit?id=${i.query.id}`,o);a.code==200?(u({message:a.message,type:"success"}),w()):u.error(a.message)}}})},P=()=>{var r,e;if(((r=i.query)==null?void 0:r.type)==="check"||((e=i.query)==null?void 0:e.type)==="edit"){let m=i.query.id;g.get(`/api/institution/detail?id=${m}`).then(o=>{o.code==200&&(t.value={content:o.data.content,files:JSON.parse(o.data.files),title:o.data.title,updatedAt:o.data.updatedAt})})}};return T(()=>{P()}),(r,e)=>{const m=c("el-input"),o=c("el-form-item"),a=c("el-button"),$=c("el-form");return A(),E("div",O,[l(C,{height:"60vh",value:t.value.content,"onUpdate:value":e[0]||(e[0]=s=>t.value.content=s),disabled:b(_)},null,8,["value","disabled"]),j,f("div",z,[X,l($,{ref_key:"ruleFormRef",ref:F,"label-position":"top",model:t.value,rules:D.value,"label-width":"120px",disabled:b(_),"status-icon":""},{default:n(()=>[l(o,{label:"标题",prop:"title"},{default:n(()=>[l(m,{modelValue:t.value.title,"onUpdate:modelValue":e[1]||(e[1]=s=>t.value.title=s)},null,8,["modelValue"])]),_:1}),l(o,{label:"附件",prop:"files"},{default:n(()=>[l(N,{modelValue:t.value.files,"onUpdate:modelValue":e[2]||(e[2]=s=>t.value.files=s),type:"create",disabled:b(_)},null,8,["modelValue","disabled"])]),_:1}),f("div",G,[l(a,{type:"primary",onClick:S},{default:n(()=>[V(" 预览内容 ")]),_:1}),l(a,{type:"primary",onClick:e[3]||(e[3]=s=>x(F.value))},{default:n(()=>[V(" 保存 ")]),_:1}),l(a,{onClick:e[4]||(e[4]=s=>r.$router.back())},{default:n(()=>[V(" 返回 ")]),_:1})])]),_:1},8,["model","rules","disabled"])]),l(B,{dialogVisible:v.value,"onUpdate:dialogVisible":e[5]||(e[5]=s=>v.value=s),dialogData:q.value,pageType:{type:"zd",isShowRead:!1,isShowPerson:!1}},null,8,["dialogVisible","dialogData"])])}}},he=I(H,[["__scopeId","data-v-0d362498"]]);export{he as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{_ as J}from"./index-3462c63b.js";import P from"./Upload-364e96ef.js";import{U as R}from"./index-4d91ad8c.js";import h from"./DetailDialog-88dc92b5.js";import{u as B,a as T}from"./vue-router-3598b468.js";import{h as U}from"./index-79018977.js";import{a as A}from"./hevue-img-preview-4a7ab001.js";import{E as p}from"./element-plus-4b5d5603.js";import{l as V,f as n,k as E,ag as d,o as w,c as M,d as s,a as f,T as a,X as m,S as j,W as z,ba as L,b8 as W}from"./@vue-b2c9e7bc.js";import"./@wangeditor-21276f11.js";import"./lodash.clonedeep-7c3da1fa.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";/* empty css */import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";/* empty css */const F=c=>(L("data-v-67ec0485"),c=c(),W(),c),X={class:"card"},G=F(()=>f("div",{class:"line"},null,-1)),H={class:"page-content"},K=F(()=>f("p",{class:"page-content-title"},"通知新增",-1)),Q={class:"roll-container"},Y={class:"bottom-item"},Z={__name:"PageForm",setup(c){const S=B(),i=T();V(()=>!["create","edit"].includes(i.query.type)),V(()=>i.query.type==="create"),V(()=>i.query.type==="edit");const I=n(),t=n({userIds:[],content:"",files:[],title:"",isUrgent:!1}),N=n({title:[{required:!0,message:"请输入",trigger:"blur"}],isUrgent:[{required:!0,message:"请选择",trigger:"blur"}]}),_=n(!1),k=n({}),x=()=>{_.value=!0,k.value={...t.value}},q=()=>{S.go(-1)},O=async u=>{u&&await u.validate(async(e,v)=>{if(e){if(!t.value.content)return p.warning("请填写通知内容");let o={...t.value,files:JSON.stringify(t.value.files),userIds:JSON.stringify(t.value.userIds)};if(i.query.type==="create"){let r=await U.post("/api/notice/save",o);r.code==200?(p({message:r.message,type:"success"}),q()):p.error(r.message)}else if(i.query.type==="edit"){let r=await U.put(`/api/notice/edit?id=${i.query.id}`,o);r.code==200?(p({message:r.message,type:"success"}),q()):p.error(r.message)}}})},g=n(!1),y=n([]),C=()=>{var u,e;if(((u=i.query)==null?void 0:u.type)==="check"||((e=i.query)==null?void 0:e.type)==="edit"){let v=i.query.id;U.get(`/api/notice/detail?id=${v}`).then(o=>{o.code==200&&(t.value={userIds:JSON.parse(o.data.userIds),content:o.data.content,files:JSON.parse(o.data.files),title:o.data.title,updatedAt:o.data.updatedAt,isUrgent:o.data.isUrgent},y.value=JSON.parse(o.data.userList),g.value=!0)})}else g.value=!0};return E(()=>{C()}),(u,e)=>{const v=d("el-input"),o=d("el-form-item"),r=d("el-radio"),D=d("el-radio-group"),b=d("el-button"),$=d("el-form");return w(),M("div",X,[s(J,{height:"60vh",value:t.value.content,"onUpdate:value":e[0]||(e[0]=l=>t.value.content=l)},null,8,["value"]),G,f("div",H,[K,s($,{ref_key:"ruleFormRef",ref:I,"label-position":"top",model:t.value,rules:N.value,"label-width":"120px","status-icon":""},{default:a(()=>[s(o,{label:"标题",prop:"title"},{default:a(()=>[s(v,{modelValue:t.value.title,"onUpdate:modelValue":e[1]||(e[1]=l=>t.value.title=l)},null,8,["modelValue"])]),_:1}),s(o,{label:"是否紧急",prop:"isUrgent"},{default:a(()=>[s(D,{modelValue:t.value.isUrgent,"onUpdate:modelValue":e[2]||(e[2]=l=>t.value.isUrgent=l)},{default:a(()=>[s(r,{label:!0},{default:a(()=>[m("是")]),_:1}),s(r,{label:!1,style:{"margin-left":"30px"}},{default:a(()=>[m("否")]),_:1})]),_:1},8,["modelValue"])]),_:1}),f("div",Q,[s(o,{label:"接收人:不选默认全体",prop:"userIds"},{default:a(()=>[g.value?(w(),j(R,{key:0,userIds:t.value.userIds,"onUpdate:userIds":e[3]||(e[3]=l=>t.value.userIds=l),users:y.value,"onUpdate:users":e[4]||(e[4]=l=>y.value=l)},null,8,["userIds","users"])):z("",!0)]),_:1})]),s(o,{label:"附件",prop:"files"},{default:a(()=>[s(P,{modelValue:t.value.files,"onUpdate:modelValue":e[5]||(e[5]=l=>t.value.files=l),type:"create",disabled:!1},null,8,["modelValue"])]),_:1}),f("div",Y,[s(b,{type:"primary",onClick:x},{default:a(()=>[m(" 预览内容 ")]),_:1}),s(b,{type:"primary",onClick:e[6]||(e[6]=l=>O(I.value))},{default:a(()=>[m(" 保存 ")]),_:1}),s(b,{onClick:e[7]||(e[7]=l=>u.$router.back())},{default:a(()=>[m(" 返回 ")]),_:1})])]),_:1},8,["model","rules"])]),s(h,{dialogVisible:_.value,"onUpdate:dialogVisible":e[8]||(e[8]=l=>_.value=l),dialogData:k.value,pageType:{type:"tz",isShowRead:!1,isShowPerson:!1}},null,8,["dialogVisible","dialogData"])])}}},De=A(Z,[["__scopeId","data-v-67ec0485"]]);export{De as default}; import{_ as J}from"./index-719e5650.js";import P from"./Upload-bb95f209.js";import{U as R}from"./index-409728e2.js";import h from"./DetailDialog-5cd1f262.js";import{u as B,a as T}from"./vue-router-3598b468.js";import{h as U}from"./index-8aa77b06.js";import{a as A}from"./hevue-img-preview-4a7ab001.js";import{E as p}from"./element-plus-4b5d5603.js";import{l as V,f as n,k as E,ag as d,o as w,c as M,d as s,a as f,T as a,X as m,S as j,W as z,ba as L,b8 as W}from"./@vue-b2c9e7bc.js";import"./@wangeditor-21276f11.js";import"./lodash.clonedeep-7c3da1fa.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";/* empty css */import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";/* empty css */const F=c=>(L("data-v-17e02d71"),c=c(),W(),c),X={class:"card"},G=F(()=>f("div",{class:"line"},null,-1)),H={class:"page-content"},K=F(()=>f("p",{class:"page-content-title"},"通知新增",-1)),Q={class:"roll-container"},Y={class:"bottom-item"},Z={__name:"PageForm",setup(c){const S=B(),i=T();V(()=>!["create","edit"].includes(i.query.type)),V(()=>i.query.type==="create"),V(()=>i.query.type==="edit");const I=n(),t=n({userIds:[],content:"",files:[],title:"",isUrgent:!1}),N=n({title:[{required:!0,message:"请输入",trigger:"blur"}],isUrgent:[{required:!0,message:"请选择",trigger:"blur"}]}),_=n(!1),k=n({}),x=()=>{_.value=!0,k.value={...t.value}},q=()=>{S.go(-1)},O=async u=>{u&&await u.validate(async(e,v)=>{if(e){if(!t.value.content)return p.warning("请填写通知内容");let o={...t.value,files:JSON.stringify(t.value.files),userIds:JSON.stringify(t.value.userIds)};if(i.query.type==="create"){let r=await U.post("/api/notice/save",o);r.code==200?(p({message:r.message,type:"success"}),q()):p.error(r.message)}else if(i.query.type==="edit"){let r=await U.put(`/api/notice/edit?id=${i.query.id}`,o);r.code==200?(p({message:r.message,type:"success"}),q()):p.error(r.message)}}})},g=n(!1),y=n([]),C=()=>{var u,e;if(((u=i.query)==null?void 0:u.type)==="check"||((e=i.query)==null?void 0:e.type)==="edit"){let v=i.query.id;U.get(`/api/notice/detail?id=${v}`).then(o=>{o.code==200&&(t.value={userIds:JSON.parse(o.data.userIds),content:o.data.content,files:JSON.parse(o.data.files),title:o.data.title,updatedAt:o.data.updatedAt,isUrgent:o.data.isUrgent},y.value=JSON.parse(o.data.userList),g.value=!0)})}else g.value=!0};return E(()=>{C()}),(u,e)=>{const v=d("el-input"),o=d("el-form-item"),r=d("el-radio"),D=d("el-radio-group"),b=d("el-button"),$=d("el-form");return w(),M("div",X,[s(J,{height:"60vh",value:t.value.content,"onUpdate:value":e[0]||(e[0]=l=>t.value.content=l)},null,8,["value"]),G,f("div",H,[K,s($,{ref_key:"ruleFormRef",ref:I,"label-position":"top",model:t.value,rules:N.value,"label-width":"120px","status-icon":""},{default:a(()=>[s(o,{label:"标题",prop:"title"},{default:a(()=>[s(v,{modelValue:t.value.title,"onUpdate:modelValue":e[1]||(e[1]=l=>t.value.title=l)},null,8,["modelValue"])]),_:1}),s(o,{label:"是否紧急",prop:"isUrgent"},{default:a(()=>[s(D,{modelValue:t.value.isUrgent,"onUpdate:modelValue":e[2]||(e[2]=l=>t.value.isUrgent=l)},{default:a(()=>[s(r,{label:!0},{default:a(()=>[m("是")]),_:1}),s(r,{label:!1,style:{"margin-left":"30px"}},{default:a(()=>[m("否")]),_:1})]),_:1},8,["modelValue"])]),_:1}),f("div",Q,[s(o,{label:"接收人:不选默认全体",prop:"userIds"},{default:a(()=>[g.value?(w(),j(R,{key:0,userIds:t.value.userIds,"onUpdate:userIds":e[3]||(e[3]=l=>t.value.userIds=l),users:y.value,"onUpdate:users":e[4]||(e[4]=l=>y.value=l)},null,8,["userIds","users"])):z("",!0)]),_:1})]),s(o,{label:"附件",prop:"files"},{default:a(()=>[s(P,{modelValue:t.value.files,"onUpdate:modelValue":e[5]||(e[5]=l=>t.value.files=l),type:"create",disabled:!1},null,8,["modelValue"])]),_:1}),f("div",Y,[s(b,{type:"primary",onClick:x},{default:a(()=>[m(" 预览内容 ")]),_:1}),s(b,{type:"primary",onClick:e[6]||(e[6]=l=>O(I.value))},{default:a(()=>[m(" 保存 ")]),_:1}),s(b,{onClick:e[7]||(e[7]=l=>u.$router.back())},{default:a(()=>[m(" 返回 ")]),_:1})])]),_:1},8,["model","rules"])]),s(h,{dialogVisible:_.value,"onUpdate:dialogVisible":e[8]||(e[8]=l=>_.value=l),dialogData:k.value,pageType:{type:"tz",isShowRead:!1,isShowPerson:!1}},null,8,["dialogVisible","dialogData"])])}}},De=A(Z,[["__scopeId","data-v-17e02d71"]]);export{De as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{_ as C}from"./TableBody-814242b2.js";import{h as p}from"./index-79018977.js";import D from"./FoodDialog-16e2701b.js";import{t as N}from"./tools-0351b48a.js";import{f as r,a1 as I,k as P,ag as d,o as s,c as b,d as i,T as f,u as S,S as g,W as A,F as z,a7 as F,Q as q}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./vue-router-3598b468.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash.clonedeep-7c3da1fa.js";/* empty css */const U={class:"example"},he={__name:"Record",setup(E){const h=N.data.get("user"),u=r(),v=r(),o=I({tableType:{selection:!0,tableLoading:!1,tableIndex:!1,changeHeight:312},tableHeader:[{buttons:[]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"deptName",label:"粮仓",show:!0},{name:"foodTypeName",label:"粮食类型",show:!0},{name:"type",label:"操作",show:!0},{name:"amount",label:"变更库存",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),_={current:o.pagination.current,size:o.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0,type:void 0,deptId:void 0},a=r({..._}),l=()=>{o.tableType.tableLoading=!0,p.get("/api/foodReservesLog/page",a.value).then(e=>{e.code==200&&(o.tableData=e.data.records,o.tableType.tableLoading=!1,o.pagination.total=e.data.total)}).catch(()=>{o.tableType.tableLoading=!1})},y=({type:e,data:t})=>{switch(e){case"check":T(t);break;case"sort":B(t);break;case"search":w(t);break}},k=e=>{o.pagination.current=e,a.value.current=e,l()},T=e=>{const t=e[0].id;u.value.changeDialog("check",t)},w=e=>{a.value.value=e.value,l()},B=e=>{e.name===""?(a.value.orderBy=void 0,a.value.column=void 0):(a.value.orderBy=e.sortType,a.value.column=e.name),l()},V=r([{name:"新增",value:"add"},{name:"删除",value:"delete"},{name:"入库",value:"warehousing"},{name:"出库",value:"out_of_stock"}]),c=r([]),x=()=>{p.get("/api/dept/tree").then(e=>{e.code==200&&(c.value=e.data.data)})};return P(()=>{l(),x()}),(e,t)=>{const H=d("el-tree-select"),L=d("el-option"),R=d("el-select");return s(),b("div",U,[i(C,q(o,{onHandleTableHeader:y,onHandleTablePagination:k,ref_key:"TableBodyRef",ref:v}),{TableHeaderRight:f(({selectData:M})=>{var m;return[((m=S(h))==null?void 0:m.permissions)=="all"?(s(),g(H,{key:0,modelValue:a.value.deptId,"onUpdate:modelValue":t[0]||(t[0]=n=>a.value.deptId=n),data:c.value,clearable:"","check-strictly":"",placeholder:"请选择粮仓","render-after-expand":!1,class:"status-select",onChange:l},null,8,["modelValue","data"])):A("",!0),i(R,{modelValue:a.value.type,"onUpdate:modelValue":t[1]||(t[1]=n=>a.value.type=n),placeholder:"请选择操作类型",onChange:l,clearable:"",class:"status-select"},{default:f(()=>[(s(!0),b(z,null,F(V.value,n=>(s(),g(L,{key:n.value,label:n.name,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]}),_:1},16),i(D,{ref_key:"formDialog",ref:u,onInit:l},null,512)])}}};export{he as default}; import{_ as C}from"./TableBody-8917f0e2.js";import{h as p}from"./index-8aa77b06.js";import D from"./FoodDialog-586581cf.js";import{t as N}from"./tools-0351b48a.js";import{f as r,a1 as I,k as P,ag as d,o as s,c as b,d as i,T as f,u as S,S as g,W as A,F as z,a7 as F,Q as q}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./vue-router-3598b468.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash.clonedeep-7c3da1fa.js";/* empty css */const U={class:"example"},he={__name:"Record",setup(E){const h=N.data.get("user"),u=r(),v=r(),o=I({tableType:{selection:!0,tableLoading:!1,tableIndex:!1,changeHeight:312},tableHeader:[{buttons:[]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"deptName",label:"粮仓",show:!0},{name:"foodTypeName",label:"粮食类型",show:!0},{name:"type",label:"操作",show:!0},{name:"amount",label:"变更库存",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),_={current:o.pagination.current,size:o.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0,type:void 0,deptId:void 0},a=r({..._}),l=()=>{o.tableType.tableLoading=!0,p.get("/api/foodReservesLog/page",a.value).then(e=>{e.code==200&&(o.tableData=e.data.records,o.tableType.tableLoading=!1,o.pagination.total=e.data.total)}).catch(()=>{o.tableType.tableLoading=!1})},y=({type:e,data:t})=>{switch(e){case"check":T(t);break;case"sort":B(t);break;case"search":w(t);break}},k=e=>{o.pagination.current=e,a.value.current=e,l()},T=e=>{const t=e[0].id;u.value.changeDialog("check",t)},w=e=>{a.value.value=e.value,l()},B=e=>{e.name===""?(a.value.orderBy=void 0,a.value.column=void 0):(a.value.orderBy=e.sortType,a.value.column=e.name),l()},V=r([{name:"新增",value:"add"},{name:"删除",value:"delete"},{name:"入库",value:"warehousing"},{name:"出库",value:"out_of_stock"}]),c=r([]),x=()=>{p.get("/api/dept/tree").then(e=>{e.code==200&&(c.value=e.data.data)})};return P(()=>{l(),x()}),(e,t)=>{const H=d("el-tree-select"),L=d("el-option"),R=d("el-select");return s(),b("div",U,[i(C,q(o,{onHandleTableHeader:y,onHandleTablePagination:k,ref_key:"TableBodyRef",ref:v}),{TableHeaderRight:f(({selectData:M})=>{var m;return[((m=S(h))==null?void 0:m.permissions)=="all"?(s(),g(H,{key:0,modelValue:a.value.deptId,"onUpdate:modelValue":t[0]||(t[0]=n=>a.value.deptId=n),data:c.value,clearable:"","check-strictly":"",placeholder:"请选择粮仓","render-after-expand":!1,class:"status-select",onChange:l},null,8,["modelValue","data"])):A("",!0),i(R,{modelValue:a.value.type,"onUpdate:modelValue":t[1]||(t[1]=n=>a.value.type=n),placeholder:"请选择操作类型",onChange:l,clearable:"",class:"status-select"},{default:f(()=>[(s(!0),b(z,null,F(V.value,n=>(s(),g(L,{key:n.value,label:n.name,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]}),_:1},16),i(D,{ref_key:"formDialog",ref:u,onInit:l},null,512)])}}};export{he as default};

View File

@ -1 +1 @@
import{h as l}from"./index-79018977.js";import{a as i}from"./vue-router-3598b468.js";import{a as s}from"./hevue-img-preview-4a7ab001.js";import{f as m,ag as n,o as _,c as d,d as t,T as h}from"./@vue-b2c9e7bc.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";const u={class:"tab-content"},f={__name:"Record",setup(g){const o=i(),a=m([]);return(()=>{let r=o.query.id,p={edit:"personnel",change:"change",approve:"personnel",approve_change:"change",check:"personnel",check_change:"change"};l.get(`/api/alteration/alterationPage?id=${r}&personnelType=${p[o.query.type]}`).then(e=>{e.code==200&&(a.value=e.data)})})(),(r,p)=>{const e=n("el-table-column"),c=n("el-table");return _(),d("div",u,[t(c,{data:a.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:h(()=>[t(e,{type:"index",width:"80",align:"center",label:"序号"}),t(e,{prop:"details",label:"变更内容"}),t(e,{prop:"beforeChange",label:"变更前"}),t(e,{prop:"afterChange",label:"变更后"}),t(e,{prop:"createdName",label:"变更人"}),t(e,{prop:"createdAt",label:"变更时间"})]),_:1},8,["data"])])}}},J=s(f,[["__scopeId","data-v-c5496df1"]]);export{J as default}; import{h as l}from"./index-8aa77b06.js";import{a as i}from"./vue-router-3598b468.js";import{a as s}from"./hevue-img-preview-4a7ab001.js";import{f as m,ag as n,o as _,c as d,d as t,T as h}from"./@vue-b2c9e7bc.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";const u={class:"tab-content"},f={__name:"Record",setup(g){const o=i(),a=m([]);return(()=>{let r=o.query.id,p={edit:"personnel",change:"change",approve:"personnel",approve_change:"change",check:"personnel",check_change:"change"};l.get(`/api/alteration/alterationPage?id=${r}&personnelType=${p[o.query.type]}`).then(e=>{e.code==200&&(a.value=e.data)})})(),(r,p)=>{const e=n("el-table-column"),c=n("el-table");return _(),d("div",u,[t(c,{data:a.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:h(()=>[t(e,{type:"index",width:"80",align:"center",label:"序号"}),t(e,{prop:"details",label:"变更内容"}),t(e,{prop:"beforeChange",label:"变更前"}),t(e,{prop:"afterChange",label:"变更后"}),t(e,{prop:"createdName",label:"变更人"}),t(e,{prop:"createdAt",label:"变更时间"})]),_:1},8,["data"])])}}},J=s(f,[["__scopeId","data-v-c5496df1"]]);export{J as default};

View File

@ -1 +1 @@
import{u as x}from"./useDictData-f2997b25.js";import{f as R,h as C,ag as d,o as m,S as U,T as e,a as F,d as l,X as s,c as v,F as _,W as V,a7 as P,u as A,Y as B,M as N}from"./@vue-b2c9e7bc.js";const O={class:"dialog-footer"},L={__name:"ReportDialog",props:{ReportDialogData:{type:Object,default:()=>({title:"审批",type:"approve",data:{}})},modelValue:{}},emits:["update:modelValue","handleApprove"],setup(r,{emit:y}){const u=r,f=R(!1),a=R({}),g=()=>{f.value=!1,y("update:modelValue",!1)},k=()=>{y("handleApprove",a.value),g()};let c=R({});return C(()=>u.modelValue,b=>{u.modelValue&&(f.value=u.modelValue,u.ReportDialogData.type=="custom"?a.value=u.ReportDialogData.data:u.ReportDialogData.type=="approve"?a.value={status:"PASS"}:u.ReportDialogData.type=="reject"?a.value={status:"REFUSE_SUPERIOR"}:u.ReportDialogData.type=="decide"&&x(["t_dict_vote_result"]).then(p=>{c.value=p,a.value={voteResult:c.value.t_dict_vote_result[0].value}}))}),(b,o)=>{const p=d("el-input"),n=d("el-form-item"),i=d("el-radio"),D=d("el-radio-group"),E=d("el-form"),S=d("el-button"),w=d("el-dialog");return m(),U(w,{modelValue:f.value,"onUpdate:modelValue":o[6]||(o[6]=t=>f.value=t),title:r.ReportDialogData.title,width:"26%","before-close":g},{footer:e(()=>[F("span",O,[l(S,{onClick:g},{default:e(()=>[s("取消")]),_:1}),l(S,{type:"primary",onClick:k},{default:e(()=>[s(" 确认 ")]),_:1})])]),default:e(()=>[l(E,{model:a.value},{default:e(()=>[r.ReportDialogData.type=="approve"?(m(),v(_,{key:0},[l(n,{label:"审批意见"},{default:e(()=>[l(p,{modelValue:a.value.remarks,"onUpdate:modelValue":o[0]||(o[0]=t=>a.value.remarks=t),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),l(n,{label:"审批状态"},{default:e(()=>[l(D,{modelValue:a.value.status,"onUpdate:modelValue":o[1]||(o[1]=t=>a.value.status=t)},{default:e(()=>[l(i,{label:"PASS"},{default:e(()=>[s("同意")]),_:1}),l(i,{label:"REFUSE"},{default:e(()=>[s("拒绝")]),_:1}),l(i,{label:"REFUSE_SUPERIOR"},{default:e(()=>[s("驳回上一级")]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)):V("",!0),r.ReportDialogData.type=="decide"?(m(),v(_,{key:1},[l(n,{label:"决策意见"},{default:e(()=>[l(p,{modelValue:a.value.voteSuggest,"onUpdate:modelValue":o[2]||(o[2]=t=>a.value.voteSuggest=t),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),l(n,{label:"决策结果"},{default:e(()=>[l(D,{modelValue:a.value.voteResult,"onUpdate:modelValue":o[3]||(o[3]=t=>a.value.voteResult=t)},{default:e(()=>[(m(!0),v(_,null,P(A(c).t_dict_vote_result,(t,T)=>(m(),U(i,{label:t.value},{default:e(()=>[s(B(t.label),1)]),_:2},1032,["label"]))),256))]),_:1},8,["modelValue"])]),_:1})],64)):V("",!0),r.ReportDialogData.type=="reject"?(m(),v(_,{key:2},[l(n,{label:"驳回意见"},{default:e(()=>[l(p,{modelValue:a.value.remarks,"onUpdate:modelValue":o[4]||(o[4]=t=>a.value.remarks=t),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),l(n,{label:"驳回状态"},{default:e(()=>[l(D,{modelValue:a.value.status,"onUpdate:modelValue":o[5]||(o[5]=t=>a.value.status=t)},{default:e(()=>[l(i,{label:"REFUSE_SUPERIOR"},{default:e(()=>[s("驳回上一级")]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)):V("",!0),r.ReportDialogData.type=="custom"?N(b.$slots,"default",{key:3}):V("",!0)]),_:3},8,["model"])]),_:3},8,["modelValue","title"])}}};export{L as _}; import{u as x}from"./useDictData-647bd3d0.js";import{f as R,h as C,ag as d,o as m,S as U,T as e,a as F,d as l,X as s,c as v,F as _,W as V,a7 as P,u as A,Y as B,M as N}from"./@vue-b2c9e7bc.js";const O={class:"dialog-footer"},L={__name:"ReportDialog",props:{ReportDialogData:{type:Object,default:()=>({title:"审批",type:"approve",data:{}})},modelValue:{}},emits:["update:modelValue","handleApprove"],setup(r,{emit:y}){const u=r,f=R(!1),a=R({}),g=()=>{f.value=!1,y("update:modelValue",!1)},k=()=>{y("handleApprove",a.value),g()};let c=R({});return C(()=>u.modelValue,b=>{u.modelValue&&(f.value=u.modelValue,u.ReportDialogData.type=="custom"?a.value=u.ReportDialogData.data:u.ReportDialogData.type=="approve"?a.value={status:"PASS"}:u.ReportDialogData.type=="reject"?a.value={status:"REFUSE_SUPERIOR"}:u.ReportDialogData.type=="decide"&&x(["t_dict_vote_result"]).then(p=>{c.value=p,a.value={voteResult:c.value.t_dict_vote_result[0].value}}))}),(b,o)=>{const p=d("el-input"),n=d("el-form-item"),i=d("el-radio"),D=d("el-radio-group"),E=d("el-form"),S=d("el-button"),w=d("el-dialog");return m(),U(w,{modelValue:f.value,"onUpdate:modelValue":o[6]||(o[6]=t=>f.value=t),title:r.ReportDialogData.title,width:"26%","before-close":g},{footer:e(()=>[F("span",O,[l(S,{onClick:g},{default:e(()=>[s("取消")]),_:1}),l(S,{type:"primary",onClick:k},{default:e(()=>[s(" 确认 ")]),_:1})])]),default:e(()=>[l(E,{model:a.value},{default:e(()=>[r.ReportDialogData.type=="approve"?(m(),v(_,{key:0},[l(n,{label:"审批意见"},{default:e(()=>[l(p,{modelValue:a.value.remarks,"onUpdate:modelValue":o[0]||(o[0]=t=>a.value.remarks=t),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),l(n,{label:"审批状态"},{default:e(()=>[l(D,{modelValue:a.value.status,"onUpdate:modelValue":o[1]||(o[1]=t=>a.value.status=t)},{default:e(()=>[l(i,{label:"PASS"},{default:e(()=>[s("同意")]),_:1}),l(i,{label:"REFUSE"},{default:e(()=>[s("拒绝")]),_:1}),l(i,{label:"REFUSE_SUPERIOR"},{default:e(()=>[s("驳回上一级")]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)):V("",!0),r.ReportDialogData.type=="decide"?(m(),v(_,{key:1},[l(n,{label:"决策意见"},{default:e(()=>[l(p,{modelValue:a.value.voteSuggest,"onUpdate:modelValue":o[2]||(o[2]=t=>a.value.voteSuggest=t),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),l(n,{label:"决策结果"},{default:e(()=>[l(D,{modelValue:a.value.voteResult,"onUpdate:modelValue":o[3]||(o[3]=t=>a.value.voteResult=t)},{default:e(()=>[(m(!0),v(_,null,P(A(c).t_dict_vote_result,(t,T)=>(m(),U(i,{label:t.value},{default:e(()=>[s(B(t.label),1)]),_:2},1032,["label"]))),256))]),_:1},8,["modelValue"])]),_:1})],64)):V("",!0),r.ReportDialogData.type=="reject"?(m(),v(_,{key:2},[l(n,{label:"驳回意见"},{default:e(()=>[l(p,{modelValue:a.value.remarks,"onUpdate:modelValue":o[4]||(o[4]=t=>a.value.remarks=t),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),l(n,{label:"驳回状态"},{default:e(()=>[l(D,{modelValue:a.value.status,"onUpdate:modelValue":o[5]||(o[5]=t=>a.value.status=t)},{default:e(()=>[l(i,{label:"REFUSE_SUPERIOR"},{default:e(()=>[s("驳回上一级")]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)):V("",!0),r.ReportDialogData.type=="custom"?N(b.$slots,"default",{key:3}):V("",!0)]),_:3},8,["model"])]),_:3},8,["modelValue","title"])}}};export{L as _};

View File

@ -1 +1 @@
System.register(["./useDictData-legacy-32bde584.js","./@vue-legacy-98edf7e4.js"],(function(e,l){"use strict";var a,t,o,u,d,r,s,p,m,v,i,n,_,c,f,V,g;return{setters:[e=>{a=e.u},e=>{t=e.f,o=e.h,u=e.ag,d=e.o,r=e.S,s=e.T,p=e.a,m=e.d,v=e.X,i=e.c,n=e.F,_=e.W,c=e.a7,f=e.u,V=e.Y,g=e.M}],execute:function(){const l={class:"dialog-footer"};e("_",{__name:"ReportDialog",props:{ReportDialogData:{type:Object,default:()=>({title:"审批",type:"approve",data:{}})},modelValue:{}},emits:["update:modelValue","handleApprove"],setup(e,{emit:D}){const R=e,y=t(!1),b=t({}),S=()=>{y.value=!1,D("update:modelValue",!1)},U=()=>{D("handleApprove",b.value),S()};let E=t({});return o((()=>R.modelValue),(e=>{console.log(e,"newValue"),R.modelValue&&(y.value=R.modelValue,"custom"==R.ReportDialogData.type?b.value=R.ReportDialogData.data:"approve"==R.ReportDialogData.type?(console.log(124),b.value={status:"PASS"}):"reject"==R.ReportDialogData.type?(console.log(124),b.value={status:"REFUSE_SUPERIOR"}):"decide"==R.ReportDialogData.type&&a(["t_dict_vote_result"]).then((e=>{E.value=e,console.log(E.value),b.value={voteResult:E.value.t_dict_vote_result[0].value}})))})),(a,t)=>{const o=u("el-input"),D=u("el-form-item"),R=u("el-radio"),k=u("el-radio-group"),h=u("el-form"),j=u("el-button"),w=u("el-dialog");return d(),r(w,{modelValue:y.value,"onUpdate:modelValue":t[6]||(t[6]=e=>y.value=e),title:e.ReportDialogData.title,width:"26%","before-close":S},{footer:s((()=>[p("span",l,[m(j,{onClick:S},{default:s((()=>[v("取消")])),_:1}),m(j,{type:"primary",onClick:U},{default:s((()=>[v(" 确认 ")])),_:1})])])),default:s((()=>[m(h,{model:b.value},{default:s((()=>["approve"==e.ReportDialogData.type?(d(),i(n,{key:0},[m(D,{label:"审批意见"},{default:s((()=>[m(o,{modelValue:b.value.remarks,"onUpdate:modelValue":t[0]||(t[0]=e=>b.value.remarks=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),m(D,{label:"审批状态"},{default:s((()=>[m(k,{modelValue:b.value.status,"onUpdate:modelValue":t[1]||(t[1]=e=>b.value.status=e)},{default:s((()=>[m(R,{label:"PASS"},{default:s((()=>[v("同意")])),_:1}),m(R,{label:"REFUSE"},{default:s((()=>[v("拒绝")])),_:1}),m(R,{label:"REFUSE_SUPERIOR"},{default:s((()=>[v("驳回上一级")])),_:1})])),_:1},8,["modelValue"])])),_:1})],64)):_("",!0),"decide"==e.ReportDialogData.type?(d(),i(n,{key:1},[m(D,{label:"决策意见"},{default:s((()=>[m(o,{modelValue:b.value.voteSuggest,"onUpdate:modelValue":t[2]||(t[2]=e=>b.value.voteSuggest=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),m(D,{label:"决策结果"},{default:s((()=>[m(k,{modelValue:b.value.voteResult,"onUpdate:modelValue":t[3]||(t[3]=e=>b.value.voteResult=e)},{default:s((()=>[(d(!0),i(n,null,c(f(E).t_dict_vote_result,((e,l)=>(d(),r(R,{label:e.value},{default:s((()=>[v(V(e.label),1)])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue"])])),_:1})],64)):_("",!0),"reject"==e.ReportDialogData.type?(d(),i(n,{key:2},[m(D,{label:"驳回意见"},{default:s((()=>[m(o,{modelValue:b.value.remarks,"onUpdate:modelValue":t[4]||(t[4]=e=>b.value.remarks=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),m(D,{label:"驳回状态"},{default:s((()=>[m(k,{modelValue:b.value.status,"onUpdate:modelValue":t[5]||(t[5]=e=>b.value.status=e)},{default:s((()=>[m(R,{label:"REFUSE_SUPERIOR"},{default:s((()=>[v("驳回上一级")])),_:1})])),_:1},8,["modelValue"])])),_:1})],64)):_("",!0),"custom"==e.ReportDialogData.type?g(a.$slots,"default",{key:3}):_("",!0)])),_:3},8,["model"])])),_:3},8,["modelValue","title"])}}})}}})); System.register(["./useDictData-legacy-2651b4dc.js","./@vue-legacy-98edf7e4.js"],(function(e,l){"use strict";var a,t,o,u,d,r,s,p,m,v,i,n,_,c,f,V,g;return{setters:[e=>{a=e.u},e=>{t=e.f,o=e.h,u=e.ag,d=e.o,r=e.S,s=e.T,p=e.a,m=e.d,v=e.X,i=e.c,n=e.F,_=e.W,c=e.a7,f=e.u,V=e.Y,g=e.M}],execute:function(){const l={class:"dialog-footer"};e("_",{__name:"ReportDialog",props:{ReportDialogData:{type:Object,default:()=>({title:"审批",type:"approve",data:{}})},modelValue:{}},emits:["update:modelValue","handleApprove"],setup(e,{emit:D}){const R=e,y=t(!1),b=t({}),S=()=>{y.value=!1,D("update:modelValue",!1)},U=()=>{D("handleApprove",b.value),S()};let E=t({});return o((()=>R.modelValue),(e=>{console.log(e,"newValue"),R.modelValue&&(y.value=R.modelValue,"custom"==R.ReportDialogData.type?b.value=R.ReportDialogData.data:"approve"==R.ReportDialogData.type?(console.log(124),b.value={status:"PASS"}):"reject"==R.ReportDialogData.type?(console.log(124),b.value={status:"REFUSE_SUPERIOR"}):"decide"==R.ReportDialogData.type&&a(["t_dict_vote_result"]).then((e=>{E.value=e,console.log(E.value),b.value={voteResult:E.value.t_dict_vote_result[0].value}})))})),(a,t)=>{const o=u("el-input"),D=u("el-form-item"),R=u("el-radio"),k=u("el-radio-group"),h=u("el-form"),j=u("el-button"),w=u("el-dialog");return d(),r(w,{modelValue:y.value,"onUpdate:modelValue":t[6]||(t[6]=e=>y.value=e),title:e.ReportDialogData.title,width:"26%","before-close":S},{footer:s((()=>[p("span",l,[m(j,{onClick:S},{default:s((()=>[v("取消")])),_:1}),m(j,{type:"primary",onClick:U},{default:s((()=>[v(" 确认 ")])),_:1})])])),default:s((()=>[m(h,{model:b.value},{default:s((()=>["approve"==e.ReportDialogData.type?(d(),i(n,{key:0},[m(D,{label:"审批意见"},{default:s((()=>[m(o,{modelValue:b.value.remarks,"onUpdate:modelValue":t[0]||(t[0]=e=>b.value.remarks=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),m(D,{label:"审批状态"},{default:s((()=>[m(k,{modelValue:b.value.status,"onUpdate:modelValue":t[1]||(t[1]=e=>b.value.status=e)},{default:s((()=>[m(R,{label:"PASS"},{default:s((()=>[v("同意")])),_:1}),m(R,{label:"REFUSE"},{default:s((()=>[v("拒绝")])),_:1}),m(R,{label:"REFUSE_SUPERIOR"},{default:s((()=>[v("驳回上一级")])),_:1})])),_:1},8,["modelValue"])])),_:1})],64)):_("",!0),"decide"==e.ReportDialogData.type?(d(),i(n,{key:1},[m(D,{label:"决策意见"},{default:s((()=>[m(o,{modelValue:b.value.voteSuggest,"onUpdate:modelValue":t[2]||(t[2]=e=>b.value.voteSuggest=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),m(D,{label:"决策结果"},{default:s((()=>[m(k,{modelValue:b.value.voteResult,"onUpdate:modelValue":t[3]||(t[3]=e=>b.value.voteResult=e)},{default:s((()=>[(d(!0),i(n,null,c(f(E).t_dict_vote_result,((e,l)=>(d(),r(R,{label:e.value},{default:s((()=>[v(V(e.label),1)])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue"])])),_:1})],64)):_("",!0),"reject"==e.ReportDialogData.type?(d(),i(n,{key:2},[m(D,{label:"驳回意见"},{default:s((()=>[m(o,{modelValue:b.value.remarks,"onUpdate:modelValue":t[4]||(t[4]=e=>b.value.remarks=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),m(D,{label:"驳回状态"},{default:s((()=>[m(k,{modelValue:b.value.status,"onUpdate:modelValue":t[5]||(t[5]=e=>b.value.status=e)},{default:s((()=>[m(R,{label:"REFUSE_SUPERIOR"},{default:s((()=>[v("驳回上一级")])),_:1})])),_:1},8,["modelValue"])])),_:1})],64)):_("",!0),"custom"==e.ReportDialogData.type?g(a.$slots,"default",{key:3}):_("",!0)])),_:3},8,["model"])])),_:3},8,["modelValue","title"])}}})}}}));

View File

@ -1 +1 @@
import"./index-79018977.js";import"./lodash.clonedeep-7c3da1fa.js";/* empty css */import{a as d}from"./hevue-img-preview-4a7ab001.js";/* empty css */import{l as u,o as s,c as n,a as i,F as _,a7 as m,P as p,u as v,O as f,Y as b,M as y}from"./@vue-b2c9e7bc.js";const h={class:"entDeclaration"},k={class:"entDeclaration-nav"},g=["onClick"],x={class:"entDeclaration-main"},A={__name:"Tab",props:{tabList:{type:Array,required:!0,default:()=>[]},isActive:{type:String,default:""}},emits:["clickItem"],setup(t,{emit:o}){const r=t,c=u(()=>e=>r.tabList.length-e);return(e,D)=>(s(),n("section",h,[i("nav",k,[(s(!0),n(_,null,m(t.tabList,(a,l)=>(s(),n("div",{style:p({zIndex:v(c)(l)}),class:f(["entDeclaration-nav-item",t.isActive===a?"active":""]),onClick:I=>o("clickItem",a)},b(a),15,g))),256))]),i("main",x,[y(e.$slots,"default",{isActive:t.isActive},void 0,!0)])]))}},F=d(A,[["__scopeId","data-v-02b21280"]]);export{F as T}; import"./index-8aa77b06.js";import"./lodash.clonedeep-7c3da1fa.js";/* empty css */import{a as d}from"./hevue-img-preview-4a7ab001.js";/* empty css */import{l as u,o as s,c as n,a as i,F as _,a7 as m,P as p,u as v,O as f,Y as b,M as y}from"./@vue-b2c9e7bc.js";const h={class:"entDeclaration"},k={class:"entDeclaration-nav"},g=["onClick"],x={class:"entDeclaration-main"},A={__name:"Tab",props:{tabList:{type:Array,required:!0,default:()=>[]},isActive:{type:String,default:""}},emits:["clickItem"],setup(t,{emit:o}){const r=t,c=u(()=>e=>r.tabList.length-e);return(e,D)=>(s(),n("section",h,[i("nav",k,[(s(!0),n(_,null,m(t.tabList,(a,l)=>(s(),n("div",{style:p({zIndex:v(c)(l)}),class:f(["entDeclaration-nav-item",t.isActive===a?"active":""]),onClick:I=>o("clickItem",a)},b(a),15,g))),256))]),i("main",x,[y(e.$slots,"default",{isActive:t.isActive},void 0,!0)])]))}},F=d(A,[["__scopeId","data-v-02b21280"]]);export{F as T};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{f as b,h as V,ag as n,o as d,c as _,d as c,T as m,X as I,U as N,Z as z,a as v,F as A,a7 as E,a0 as h,Y as j,S as q,W as x,ba as R,b8 as T}from"./@vue-b2c9e7bc.js";import{r as $,h as k}from"./index-79018977.js";import{c as C}from"./lodash.clonedeep-7c3da1fa.js";import{E as M}from"./element-plus-4b5d5603.js";/* empty css */import{a as O}from"./hevue-img-preview-4a7ab001.js";import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const P=""+new URL("download-4f8d3c0e.svg",import.meta.url).href;function W(l){let i=l,o=l.slice(l.lastIndexOf(".")+1).toLowerCase(),t=["png","jpg","jpeg","gif","svg","swf","tiff"],u=["xlsx","docx","pdf"];if(t.includes(o)||u.includes(o)){const{href:p}=$.resolve({path:"/preview",query:{type:t.includes(o)?"image":o,url:i}});window.open(p,"_blank")}else M.error("只支持图片、 pdf、docx、xlsx 文件预览")}const J=l=>(R("data-v-3e0822f6"),l=l(),T(),l),X={class:"upload"},Y={class:"empty"},Z=["onClick"],G=J(()=>v("img",{src:P,alt:""},null,-1)),H={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(l,{emit:i}){const o=l;b([]);const t=b([]),u=e=>!0,p=e=>C(e),F=e=>C(e);V(()=>o.modelValue,e=>{if(e===""||e===void 0||!e)return t.value=[];if(o.type==="edit"&&!Array.isArray(e)&&typeof e=="string")return t.value=[];t.value=F(o.modelValue)},{immediate:!0});const D=e=>{let r=e.file;const s=new FormData;s.append("file",r),k.post("/api/attachment/upload",s).then(a=>{a.code==200&&(t.value.push({name:a.data.name,path:a.data.path,size:r.size,suffix:a.data.suffix}),i("update:modelValue",p(t.value)))})},U=e=>{t.value.splice(e,1),i("update:modelValue",p(t.value))},B=e=>{W(e.path)},S=e=>{k.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(r=>{const s=window.URL.createObjectURL(r),a=document.createElement("a");a.download=e.name,a.href=s,a.click()})};return(e,r)=>{const s=n("el-button"),a=n("el-upload"),w=n("el-icon"),L=n("CircleCloseFilled");return d(),_("div",X,[c(a,{multiple:"","show-file-list":!1,"before-upload":u,"http-request":D,disabled:o.disabled},{default:m(()=>[c(s,{type:"primary",plain:"",disabled:o.disabled},{default:m(()=>[I("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),N(v("span",Y,"未选择任何文件",512),[[z,t.value.length===0]]),t.value.length>0?(d(!0),_(A,{key:0},E(t.value,(f,g)=>(d(),_("span",{class:"fileBox",key:g,onClick:h(y=>B(f),["stop"])},[v("span",null,j(f.name),1),c(w,{class:"fileBoxDel",style:{margin:"0 5px"},size:16,color:"#396DF3",onClick:h(y=>S(f),["stop"])},{default:m(()=>[G]),_:2},1032,["onClick"]),o.disabled?x("",!0):(d(),q(w,{key:0,class:"fileBoxDel",size:16,color:"#396DF3",onClick:h(y=>U(g),["stop"])},{default:m(()=>[c(L)]),_:2},1032,["onClick"]))],8,Z))),128)):x("",!0)])}}},Ce=O(H,[["__scopeId","data-v-3e0822f6"]]);export{Ce as default}; import{f as b,h as V,ag as n,o as d,c as _,d as c,T as m,X as I,U as N,Z as z,a as v,F as A,a7 as E,a0 as h,Y as j,S as q,W as x,ba as R,b8 as T}from"./@vue-b2c9e7bc.js";import{r as $,h as k}from"./index-8aa77b06.js";import{c as C}from"./lodash.clonedeep-7c3da1fa.js";import{E as M}from"./element-plus-4b5d5603.js";/* empty css */import{a as O}from"./hevue-img-preview-4a7ab001.js";import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const P=""+new URL("download-4f8d3c0e.svg",import.meta.url).href;function W(l){let i=l,o=l.slice(l.lastIndexOf(".")+1).toLowerCase(),t=["png","jpg","jpeg","gif","svg","swf","tiff"],u=["xlsx","docx","pdf"];if(t.includes(o)||u.includes(o)){const{href:p}=$.resolve({path:"/preview",query:{type:t.includes(o)?"image":o,url:i}});window.open(p,"_blank")}else M.error("只支持图片、 pdf、docx、xlsx 文件预览")}const J=l=>(R("data-v-3e0822f6"),l=l(),T(),l),X={class:"upload"},Y={class:"empty"},Z=["onClick"],G=J(()=>v("img",{src:P,alt:""},null,-1)),H={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(l,{emit:i}){const o=l;b([]);const t=b([]),u=e=>!0,p=e=>C(e),F=e=>C(e);V(()=>o.modelValue,e=>{if(e===""||e===void 0||!e)return t.value=[];if(o.type==="edit"&&!Array.isArray(e)&&typeof e=="string")return t.value=[];t.value=F(o.modelValue)},{immediate:!0});const D=e=>{let r=e.file;const s=new FormData;s.append("file",r),k.post("/api/attachment/upload",s).then(a=>{a.code==200&&(t.value.push({name:a.data.name,path:a.data.path,size:r.size,suffix:a.data.suffix}),i("update:modelValue",p(t.value)))})},U=e=>{t.value.splice(e,1),i("update:modelValue",p(t.value))},B=e=>{W(e.path)},S=e=>{k.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(r=>{const s=window.URL.createObjectURL(r),a=document.createElement("a");a.download=e.name,a.href=s,a.click()})};return(e,r)=>{const s=n("el-button"),a=n("el-upload"),w=n("el-icon"),L=n("CircleCloseFilled");return d(),_("div",X,[c(a,{multiple:"","show-file-list":!1,"before-upload":u,"http-request":D,disabled:o.disabled},{default:m(()=>[c(s,{type:"primary",plain:"",disabled:o.disabled},{default:m(()=>[I("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),N(v("span",Y,"未选择任何文件",512),[[z,t.value.length===0]]),t.value.length>0?(d(!0),_(A,{key:0},E(t.value,(f,g)=>(d(),_("span",{class:"fileBox",key:g,onClick:h(y=>B(f),["stop"])},[v("span",null,j(f.name),1),c(w,{class:"fileBoxDel",style:{margin:"0 5px"},size:16,color:"#396DF3",onClick:h(y=>S(f),["stop"])},{default:m(()=>[G]),_:2},1032,["onClick"]),o.disabled?x("",!0):(d(),q(w,{key:0,class:"fileBoxDel",size:16,color:"#396DF3",onClick:h(y=>U(g),["stop"])},{default:m(()=>[c(L)]),_:2},1032,["onClick"]))],8,Z))),128)):x("",!0)])}}},Ce=O(H,[["__scopeId","data-v-3e0822f6"]]);export{Ce as default};

View File

@ -1 +1 @@
System.register(["./@vue-legacy-98edf7e4.js","./index-legacy-e2149a5d.js","./lodash.clonedeep-legacy-7f67fce1.js","./element-plus-legacy-be489926.js","./Upload.vue_vue_type_style_index_0_scoped_3e0822f6_lang-legacy-689b99a2.js","./hevue-img-preview-legacy-7b0f5670.js","./vue-router-legacy-014c426a.js","./tools-legacy-fa9cbc87.js","./pinia-legacy-ae5252ec.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./mitt-legacy-b7d2faf6.js","./@imengyu-legacy-4fdfe515.js","./vue-legacy-74f9c847.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-485cb7fd.js","./@element-plus-legacy-fc466b21.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-8181a174.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,l){"use strict";var a,s,t,n,o,u,i,c,d,p,r,y,g,f,m,j,v,h,x,b,w,_,k,C;return{setters:[e=>{a=e.f,s=e.h,t=e.ag,n=e.o,o=e.c,u=e.d,i=e.T,c=e.X,d=e.U,p=e.Z,r=e.a,y=e.F,g=e.a7,f=e.a0,m=e.Y,j=e.S,v=e.W,h=e.ba,x=e.b8},e=>{b=e.r,w=e.h},e=>{_=e.c},e=>{k=e.E},null,e=>{C=e.a},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const V=""+new URL("download-4f8d3c0e.svg",l.meta.url).href,z={class:"upload"},F={class:"empty"},U=["onClick"],D=(e=>(h("data-v-3e0822f6"),e=e(),x(),e))((()=>r("img",{src:V,alt:""},null,-1))),L={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:l}){const h=e;a([]);const x=a([]),C=e=>!0,V=e=>_(e);s((()=>h.modelValue),(e=>{return""!==e&&void 0!==e&&e&&("edit"!==h.type||Array.isArray(e)||"string"!=typeof e)?void(x.value=(l=h.modelValue,_(l))):x.value=[];var l}),{immediate:!0});const L=e=>{let a=e.file;const s=new FormData;s.append("file",a),w.post("/api/attachment/upload",s).then((e=>{console.log(e,"res"),200==e.code&&(x.value.push({name:e.data.name,path:e.data.path,size:a.size,suffix:e.data.suffix}),l("update:modelValue",V(x.value)),console.log(h.modelValue,x.value))}))},B=e=>{!function(e){let l=e,a=e.slice(e.lastIndexOf(".")+1).toLowerCase(),s=["png","jpg","jpeg","gif","svg","swf","tiff"];if(s.includes(a)||["xlsx","docx","pdf"].includes(a)){const{href:e}=b.resolve({path:"/preview",query:{type:s.includes(a)?"image":a,url:l}});window.open(e,"_blank")}else k.error("只支持图片、 pdf、docx、xlsx 文件预览")}(e.path)};return(e,a)=>{const s=t("el-button"),b=t("el-upload"),_=t("el-icon"),k=t("CircleCloseFilled");return n(),o("div",z,[u(b,{multiple:"","show-file-list":!1,"before-upload":C,"http-request":L,disabled:h.disabled},{default:i((()=>[u(s,{type:"primary",plain:"",disabled:h.disabled},{default:i((()=>[c("选择文件")])),_:1},8,["disabled"])])),_:1},8,["disabled"]),d(r("span",F,"未选择任何文件",512),[[p,0===x.value.length]]),x.value.length>0?(n(!0),o(y,{key:0},g(x.value,((e,a)=>(n(),o("span",{class:"fileBox",key:a,onClick:f((l=>B(e)),["stop"])},[r("span",null,m(e.name),1),u(_,{class:"fileBoxDel",style:{margin:"0 5px"},size:16,color:"#396DF3",onClick:f((l=>(e=>{w.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then((l=>{const a=window.URL.createObjectURL(l),s=document.createElement("a");s.download=e.name,s.href=a,s.click()}))})(e)),["stop"])},{default:i((()=>[D])),_:2},1032,["onClick"]),h.disabled?v("",!0):(n(),j(_,{key:0,class:"fileBoxDel",size:16,color:"#396DF3",onClick:f((e=>(e=>{x.value.splice(e,1),l("update:modelValue",V(x.value))})(a)),["stop"])},{default:i((()=>[u(k)])),_:2},1032,["onClick"]))],8,U)))),128)):v("",!0)])}}};e("default",C(L,[["__scopeId","data-v-3e0822f6"]]))}}})); System.register(["./@vue-legacy-98edf7e4.js","./index-legacy-83afd24b.js","./lodash.clonedeep-legacy-7f67fce1.js","./element-plus-legacy-be489926.js","./Upload.vue_vue_type_style_index_0_scoped_3e0822f6_lang-legacy-689b99a2.js","./hevue-img-preview-legacy-7b0f5670.js","./vue-router-legacy-014c426a.js","./tools-legacy-fa9cbc87.js","./pinia-legacy-ae5252ec.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./mitt-legacy-b7d2faf6.js","./@imengyu-legacy-4fdfe515.js","./vue-legacy-74f9c847.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-485cb7fd.js","./@element-plus-legacy-fc466b21.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-8181a174.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,l){"use strict";var a,s,t,n,o,u,i,c,d,p,r,y,g,f,m,j,v,h,x,b,w,_,k,C;return{setters:[e=>{a=e.f,s=e.h,t=e.ag,n=e.o,o=e.c,u=e.d,i=e.T,c=e.X,d=e.U,p=e.Z,r=e.a,y=e.F,g=e.a7,f=e.a0,m=e.Y,j=e.S,v=e.W,h=e.ba,x=e.b8},e=>{b=e.r,w=e.h},e=>{_=e.c},e=>{k=e.E},null,e=>{C=e.a},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const V=""+new URL("download-4f8d3c0e.svg",l.meta.url).href,z={class:"upload"},F={class:"empty"},U=["onClick"],D=(e=>(h("data-v-3e0822f6"),e=e(),x(),e))((()=>r("img",{src:V,alt:""},null,-1))),L={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:l}){const h=e;a([]);const x=a([]),C=e=>!0,V=e=>_(e);s((()=>h.modelValue),(e=>{return""!==e&&void 0!==e&&e&&("edit"!==h.type||Array.isArray(e)||"string"!=typeof e)?void(x.value=(l=h.modelValue,_(l))):x.value=[];var l}),{immediate:!0});const L=e=>{let a=e.file;const s=new FormData;s.append("file",a),w.post("/api/attachment/upload",s).then((e=>{console.log(e,"res"),200==e.code&&(x.value.push({name:e.data.name,path:e.data.path,size:a.size,suffix:e.data.suffix}),l("update:modelValue",V(x.value)),console.log(h.modelValue,x.value))}))},B=e=>{!function(e){let l=e,a=e.slice(e.lastIndexOf(".")+1).toLowerCase(),s=["png","jpg","jpeg","gif","svg","swf","tiff"];if(s.includes(a)||["xlsx","docx","pdf"].includes(a)){const{href:e}=b.resolve({path:"/preview",query:{type:s.includes(a)?"image":a,url:l}});window.open(e,"_blank")}else k.error("只支持图片、 pdf、docx、xlsx 文件预览")}(e.path)};return(e,a)=>{const s=t("el-button"),b=t("el-upload"),_=t("el-icon"),k=t("CircleCloseFilled");return n(),o("div",z,[u(b,{multiple:"","show-file-list":!1,"before-upload":C,"http-request":L,disabled:h.disabled},{default:i((()=>[u(s,{type:"primary",plain:"",disabled:h.disabled},{default:i((()=>[c("选择文件")])),_:1},8,["disabled"])])),_:1},8,["disabled"]),d(r("span",F,"未选择任何文件",512),[[p,0===x.value.length]]),x.value.length>0?(n(!0),o(y,{key:0},g(x.value,((e,a)=>(n(),o("span",{class:"fileBox",key:a,onClick:f((l=>B(e)),["stop"])},[r("span",null,m(e.name),1),u(_,{class:"fileBoxDel",style:{margin:"0 5px"},size:16,color:"#396DF3",onClick:f((l=>(e=>{w.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then((l=>{const a=window.URL.createObjectURL(l),s=document.createElement("a");s.download=e.name,s.href=a,s.click()}))})(e)),["stop"])},{default:i((()=>[D])),_:2},1032,["onClick"]),h.disabled?v("",!0):(n(),j(_,{key:0,class:"fileBoxDel",size:16,color:"#396DF3",onClick:f((e=>(e=>{x.value.splice(e,1),l("update:modelValue",V(x.value))})(a)),["stop"])},{default:i((()=>[u(k)])),_:2},1032,["onClick"]))],8,U)))),128)):v("",!0)])}}};e("default",C(L,[["__scopeId","data-v-3e0822f6"]]))}}}));

View File

@ -1 +1 @@
import{u as b}from"./vue-router-3598b468.js";import{h,b as k}from"./index-79018977.js";import{t as x}from"./tools-0351b48a.js";import{E as g}from"./element-plus-4b5d5603.js";import{f as u,ag as d,o as C,S as y,T as l,a as N,d as s,X as c}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const oe={__name:"change_password",setup(E){const m=b(),i=u(!0),p=u(null),P=u({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"},{validator:(t,e,r)=>{/^(?=.*[A-Za-z])(?=.*\d)(?=.*[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~`]).{8,}$/.test(e)?r():r(new Error("密码必须是8位及以上、必须含有字母、数字、特殊符号"))},trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(t,e,r)=>{e!==o.value.newPassword?r(new Error("密码不一致")):r()},trigger:"blur"}]}),o=u({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),_=()=>{p.value.validate(t=>{if(t)h.put("/ api / auth / editPassword",{newPassword:o.value.newPassword,oldPassword:o.value.oldPassword}).then(e=>{e.code===200?(x.data.clear("user"),k("token"),g({message:e.message,type:"success"}),m.push("/grain/login")):g({message:e.message,type:"error"})});else return!1})},w=t=>{m.go(-1)};return(t,e)=>{const r=d("el-input"),n=d("el-form-item"),v=d("el-form"),f=d("el-button"),V=d("el-dialog");return C(),y(V,{modelValue:i.value,"onUpdate:modelValue":e[3]||(e[3]=a=>i.value=a),title:"修改密码",width:"540px","before-close":w,"close-on-click-modal":!1},{footer:l(()=>[N("span",null,[s(f,{type:"primary",onClick:_},{default:l(()=>[c("保存")]),_:1}),s(f,{onClick:w},{default:l(()=>[c("关闭")]),_:1})])]),default:l(()=>[s(v,{ref_key:"ruleFormRef",ref:p,model:o.value,rules:P.value,"label-width":"100px"},{default:l(()=>[s(n,{label:"旧密码",prop:"oldPassword"},{default:l(()=>[s(r,{modelValue:o.value.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=a=>o.value.oldPassword=a),"show-password":""},null,8,["modelValue"])]),_:1}),s(n,{label:"新密码",prop:"newPassword"},{default:l(()=>[s(r,{modelValue:o.value.newPassword,"onUpdate:modelValue":e[1]||(e[1]=a=>o.value.newPassword=a),"show-password":"",placeholder:"密码必须是8位及以上、必须含有字母、数字、特殊符号"},null,8,["modelValue"])]),_:1}),s(n,{label:"新密码确认",prop:"confirmPassword"},{default:l(()=>[s(r,{modelValue:o.value.confirmPassword,"onUpdate:modelValue":e[2]||(e[2]=a=>o.value.confirmPassword=a),"show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}};export{oe as default}; import{u as b}from"./vue-router-3598b468.js";import{h,b as k}from"./index-8aa77b06.js";import{t as x}from"./tools-0351b48a.js";import{E as g}from"./element-plus-4b5d5603.js";import{f as u,ag as d,o as C,S as y,T as l,a as N,d as s,X as c}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const oe={__name:"change_password",setup(E){const m=b(),i=u(!0),p=u(null),P=u({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"},{validator:(t,e,r)=>{/^(?=.*[A-Za-z])(?=.*\d)(?=.*[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~`]).{8,}$/.test(e)?r():r(new Error("密码必须是8位及以上、必须含有字母、数字、特殊符号"))},trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(t,e,r)=>{e!==o.value.newPassword?r(new Error("密码不一致")):r()},trigger:"blur"}]}),o=u({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),_=()=>{p.value.validate(t=>{if(t)h.put("/ api / auth / editPassword",{newPassword:o.value.newPassword,oldPassword:o.value.oldPassword}).then(e=>{e.code===200?(x.data.clear("user"),k("token"),g({message:e.message,type:"success"}),m.push("/grain/login")):g({message:e.message,type:"error"})});else return!1})},w=t=>{m.go(-1)};return(t,e)=>{const r=d("el-input"),n=d("el-form-item"),v=d("el-form"),f=d("el-button"),V=d("el-dialog");return C(),y(V,{modelValue:i.value,"onUpdate:modelValue":e[3]||(e[3]=a=>i.value=a),title:"修改密码",width:"540px","before-close":w,"close-on-click-modal":!1},{footer:l(()=>[N("span",null,[s(f,{type:"primary",onClick:_},{default:l(()=>[c("保存")]),_:1}),s(f,{onClick:w},{default:l(()=>[c("关闭")]),_:1})])]),default:l(()=>[s(v,{ref_key:"ruleFormRef",ref:p,model:o.value,rules:P.value,"label-width":"100px"},{default:l(()=>[s(n,{label:"旧密码",prop:"oldPassword"},{default:l(()=>[s(r,{modelValue:o.value.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=a=>o.value.oldPassword=a),"show-password":""},null,8,["modelValue"])]),_:1}),s(n,{label:"新密码",prop:"newPassword"},{default:l(()=>[s(r,{modelValue:o.value.newPassword,"onUpdate:modelValue":e[1]||(e[1]=a=>o.value.newPassword=a),"show-password":"",placeholder:"密码必须是8位及以上、必须含有字母、数字、特殊符号"},null,8,["modelValue"])]),_:1}),s(n,{label:"新密码确认",prop:"confirmPassword"},{default:l(()=>[s(r,{modelValue:o.value.confirmPassword,"onUpdate:modelValue":e[2]||(e[2]=a=>o.value.confirmPassword=a),"show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}};export{oe as default};

View File

@ -1 +1 @@
System.register(["./vue-router-legacy-014c426a.js","./index-legacy-e2149a5d.js","./tools-legacy-fa9cbc87.js","./element-plus-legacy-be489926.js","./@vue-legacy-98edf7e4.js","./hevue-img-preview-legacy-7b0f5670.js","./pinia-legacy-ae5252ec.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./mitt-legacy-b7d2faf6.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-485cb7fd.js","./@element-plus-legacy-fc466b21.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-8181a174.js","./@imengyu-legacy-4fdfe515.js","./vue-legacy-74f9c847.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,l){"use strict";var a,s,o,r,u,d,n,t,g,c,i,m,w;return{setters:[e=>{a=e.u},e=>{s=e.h,o=e.b},e=>{r=e.t},e=>{u=e.E},e=>{d=e.f,n=e.ag,t=e.o,g=e.S,c=e.T,i=e.a,m=e.d,w=e.X},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",{__name:"change_password",setup(e){const l=a(),p=d(!0),y=d(null),v=d({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"},{validator:(e,l,a)=>{/^(?=.*[A-Za-z])(?=.*\d)(?=.*[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~`]).{8,}$/.test(l)?a():a(new Error("密码必须是8位及以上、必须含有字母、数字、特殊符号"))},trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(e,l,a)=>{console.log(j.newPassword),console.log(l),l!==j.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),j=d({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),f=()=>{y.value.validate((e=>{if(!e)return console.log("error submit!"),!1;s.put("/ api / auth / editPassword",{newPassword:j.value.newPassword,oldPassword:j.value.oldPassword}).then((e=>{200===e.code?(r.data.clear("user"),o("token"),u({message:e.message,type:"success"}),l.push("/grain/login")):u({message:e.message,type:"error"})}))}))},P=e=>{l.go(-1)};return(e,l)=>{const a=n("el-input"),s=n("el-form-item"),o=n("el-form"),r=n("el-button"),u=n("el-dialog");return t(),g(u,{modelValue:p.value,"onUpdate:modelValue":l[3]||(l[3]=e=>p.value=e),title:"修改密码",width:"540px","before-close":P,"close-on-click-modal":!1},{footer:c((()=>[i("span",null,[m(r,{type:"primary",onClick:f},{default:c((()=>[w("保存")])),_:1}),m(r,{onClick:P},{default:c((()=>[w("关闭")])),_:1})])])),default:c((()=>[m(o,{ref_key:"ruleFormRef",ref:y,model:j.value,rules:v.value,"label-width":"100px"},{default:c((()=>[m(s,{label:"旧密码",prop:"oldPassword"},{default:c((()=>[m(a,{modelValue:j.value.oldPassword,"onUpdate:modelValue":l[0]||(l[0]=e=>j.value.oldPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),m(s,{label:"新密码",prop:"newPassword"},{default:c((()=>[m(a,{modelValue:j.value.newPassword,"onUpdate:modelValue":l[1]||(l[1]=e=>j.value.newPassword=e),"show-password":"",placeholder:"密码必须是8位及以上、必须含有字母、数字、特殊符号"},null,8,["modelValue"])])),_:1}),m(s,{label:"新密码确认",prop:"confirmPassword"},{default:c((()=>[m(a,{modelValue:j.value.confirmPassword,"onUpdate:modelValue":l[2]||(l[2]=e=>j.value.confirmPassword=e),"show-password":""},null,8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["modelValue"])}}})}}})); System.register(["./vue-router-legacy-014c426a.js","./index-legacy-83afd24b.js","./tools-legacy-fa9cbc87.js","./element-plus-legacy-be489926.js","./@vue-legacy-98edf7e4.js","./hevue-img-preview-legacy-7b0f5670.js","./pinia-legacy-ae5252ec.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./mitt-legacy-b7d2faf6.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-485cb7fd.js","./@element-plus-legacy-fc466b21.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-8181a174.js","./@imengyu-legacy-4fdfe515.js","./vue-legacy-74f9c847.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,l){"use strict";var a,s,o,r,u,d,n,t,g,c,i,m,w;return{setters:[e=>{a=e.u},e=>{s=e.h,o=e.b},e=>{r=e.t},e=>{u=e.E},e=>{d=e.f,n=e.ag,t=e.o,g=e.S,c=e.T,i=e.a,m=e.d,w=e.X},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",{__name:"change_password",setup(e){const l=a(),p=d(!0),y=d(null),v=d({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"},{validator:(e,l,a)=>{/^(?=.*[A-Za-z])(?=.*\d)(?=.*[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~`]).{8,}$/.test(l)?a():a(new Error("密码必须是8位及以上、必须含有字母、数字、特殊符号"))},trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(e,l,a)=>{console.log(j.newPassword),console.log(l),l!==j.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),j=d({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),f=()=>{y.value.validate((e=>{if(!e)return console.log("error submit!"),!1;s.put("/ api / auth / editPassword",{newPassword:j.value.newPassword,oldPassword:j.value.oldPassword}).then((e=>{200===e.code?(r.data.clear("user"),o("token"),u({message:e.message,type:"success"}),l.push("/grain/login")):u({message:e.message,type:"error"})}))}))},P=e=>{l.go(-1)};return(e,l)=>{const a=n("el-input"),s=n("el-form-item"),o=n("el-form"),r=n("el-button"),u=n("el-dialog");return t(),g(u,{modelValue:p.value,"onUpdate:modelValue":l[3]||(l[3]=e=>p.value=e),title:"修改密码",width:"540px","before-close":P,"close-on-click-modal":!1},{footer:c((()=>[i("span",null,[m(r,{type:"primary",onClick:f},{default:c((()=>[w("保存")])),_:1}),m(r,{onClick:P},{default:c((()=>[w("关闭")])),_:1})])])),default:c((()=>[m(o,{ref_key:"ruleFormRef",ref:y,model:j.value,rules:v.value,"label-width":"100px"},{default:c((()=>[m(s,{label:"旧密码",prop:"oldPassword"},{default:c((()=>[m(a,{modelValue:j.value.oldPassword,"onUpdate:modelValue":l[0]||(l[0]=e=>j.value.oldPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),m(s,{label:"新密码",prop:"newPassword"},{default:c((()=>[m(a,{modelValue:j.value.newPassword,"onUpdate:modelValue":l[1]||(l[1]=e=>j.value.newPassword=e),"show-password":"",placeholder:"密码必须是8位及以上、必须含有字母、数字、特殊符号"},null,8,["modelValue"])])),_:1}),m(s,{label:"新密码确认",prop:"confirmPassword"},{default:c((()=>[m(a,{modelValue:j.value.confirmPassword,"onUpdate:modelValue":l[2]||(l[2]=e=>j.value.confirmPassword=e),"show-password":""},null,8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["modelValue"])}}})}}}));

View File

@ -1 +1 @@
import{_ as V}from"./TableBody-814242b2.js";import{y as x}from"./yd_diaInput-158f8feb.js";import{h as i}from"./index-79018977.js";import{E as n}from"./element-plus-4b5d5603.js";import{f as p,a1 as u,k as B,o as E,c as F,d as y,Q as L}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./@element-plus-a1a6045a.js";import"./lodash.clonedeep-7c3da1fa.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./index-4701b43a.js";/* empty css */import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const q={class:"example"},me={__name:"department",setup(A){const c=p(!1),m=u({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isExpand:!0,isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"userName",label:"部门负责人",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),l=u({value:!1,changeValue:e=>{l.value=e}}),h=u([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24},{type:"userRadioOption",title:"部门负责人",control:!1,placeholder:"请选择部门负责人",model:"userId",userName:"userName",row:24}]),b=p({code:"",name:"",pid:"",remarks:"",sortNo:0,userId:"",userName:""}),f=p({type:"create",name:"新增",id:""}),N=p({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}],userId:[{required:!0,message:"请输入部门负责人"}]}),s=u({column:"sortNo",orderBy:"asc",value:void 0}),g=()=>{i.get("/api/dept/tree").then(e=>{e.code==200&&(h[0].options=e.data.data)})},d=()=>{m.tableType.tableLoading=!0,i.get("/api/dept/list",s).then(e=>{e.code==200&&(m.tableData=e.data,m.tableType.tableLoading=!1)}).catch(()=>{m.tableType.tableLoading=!1})},v=({type:e,data:t})=>{switch(e){case"create":w();break;case"edit":T(t);break;case"delete":k(t);break;case"sort":H(t);break;case"search":I(t);break}},k=e=>{const t=e.map(a=>a.id);i.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(n({message:"删除成功",type:"success"}),d(),g()):n({message:a.message,type:"error"})})},_=(e,t,a)=>{if(e==="create"){let o={...t,userName:void 0};t.pid===""&&(o={...o,pid:0}),i.post("/api/dept/save",o).then(r=>{r.code==200?(n({message:r.message,type:"success"}),l.value=!1,d(),g()):n.error(r.message)})}else if(e==="edit"){let o={...t,userName:void 0};t.pid===""&&(o={...o,pid:0}),i.put(`/api/dept/edit?id=${a}`,o).then(r=>{r.code==200?(n({message:r.message,type:"success"}),l.value=!1,d()):n.error(r.message)})}},w=()=>{l.value=!0,f.value={type:"create",name:"新增",id:""},c.value=!1,b.value={code:"",name:"",pid:"",remarks:"",sortNo:0,userId:"",userName:""}},T=e=>{const t=e[0].id;c.value=!1,i.get("/api/dept/detail",{id:t}).then(a=>{a.code===200&&(l.value=!0,b.value={paramKey:a.data.paramKey,paramValue:a.data.paramValue,remarks:a.data.remarks,sortNo:a.data.sortNo,code:a.data.data.code,name:a.data.data.name,pid:a.data.data.pid==0?"":a.data.data.pid,remarks:a.data.data.remarks,sortNo:a.data.data.sortNo,userId:a.data.data.userId,userName:a.data.data.userName},f.value={type:"edit",name:"保存",id:t})})},I=e=>{s.value=e.value,d()},H=e=>{e.name===""?(s.orderBy=void 0,s.column=void 0):(s.orderBy=e.sortType,s.column=e.name),d()};return B(()=>{d(),g()}),(e,t)=>(E(),F("div",q,[y(V,L(m,{onHandleTableHeader:v}),null,16),y(x,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:c.value,buttonName:f.value,ruleForm:b.value,rules:N.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};export{me as default}; import{_ as V}from"./TableBody-8917f0e2.js";import{y as x}from"./yd_diaInput-6ca3c004.js";import{h as i}from"./index-8aa77b06.js";import{E as n}from"./element-plus-4b5d5603.js";import{f as p,a1 as u,k as B,o as E,c as F,d as y,Q as L}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./@element-plus-a1a6045a.js";import"./lodash.clonedeep-7c3da1fa.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./index-e943e99b.js";/* empty css */import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const q={class:"example"},me={__name:"department",setup(A){const c=p(!1),m=u({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isExpand:!0,isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"userName",label:"部门负责人",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),l=u({value:!1,changeValue:e=>{l.value=e}}),h=u([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24},{type:"userRadioOption",title:"部门负责人",control:!1,placeholder:"请选择部门负责人",model:"userId",userName:"userName",row:24}]),b=p({code:"",name:"",pid:"",remarks:"",sortNo:0,userId:"",userName:""}),f=p({type:"create",name:"新增",id:""}),N=p({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}],userId:[{required:!0,message:"请输入部门负责人"}]}),s=u({column:"sortNo",orderBy:"asc",value:void 0}),g=()=>{i.get("/api/dept/tree").then(e=>{e.code==200&&(h[0].options=e.data.data)})},d=()=>{m.tableType.tableLoading=!0,i.get("/api/dept/list",s).then(e=>{e.code==200&&(m.tableData=e.data,m.tableType.tableLoading=!1)}).catch(()=>{m.tableType.tableLoading=!1})},v=({type:e,data:t})=>{switch(e){case"create":w();break;case"edit":T(t);break;case"delete":k(t);break;case"sort":H(t);break;case"search":I(t);break}},k=e=>{const t=e.map(a=>a.id);i.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(n({message:"删除成功",type:"success"}),d(),g()):n({message:a.message,type:"error"})})},_=(e,t,a)=>{if(e==="create"){let o={...t,userName:void 0};t.pid===""&&(o={...o,pid:0}),i.post("/api/dept/save",o).then(r=>{r.code==200?(n({message:r.message,type:"success"}),l.value=!1,d(),g()):n.error(r.message)})}else if(e==="edit"){let o={...t,userName:void 0};t.pid===""&&(o={...o,pid:0}),i.put(`/api/dept/edit?id=${a}`,o).then(r=>{r.code==200?(n({message:r.message,type:"success"}),l.value=!1,d()):n.error(r.message)})}},w=()=>{l.value=!0,f.value={type:"create",name:"新增",id:""},c.value=!1,b.value={code:"",name:"",pid:"",remarks:"",sortNo:0,userId:"",userName:""}},T=e=>{const t=e[0].id;c.value=!1,i.get("/api/dept/detail",{id:t}).then(a=>{a.code===200&&(l.value=!0,b.value={paramKey:a.data.paramKey,paramValue:a.data.paramValue,remarks:a.data.remarks,sortNo:a.data.sortNo,code:a.data.data.code,name:a.data.data.name,pid:a.data.data.pid==0?"":a.data.data.pid,remarks:a.data.data.remarks,sortNo:a.data.data.sortNo,userId:a.data.data.userId,userName:a.data.data.userName},f.value={type:"edit",name:"保存",id:t})})},I=e=>{s.value=e.value,d()},H=e=>{e.name===""?(s.orderBy=void 0,s.column=void 0):(s.orderBy=e.sortType,s.column=e.name),d()};return B(()=>{d(),g()}),(e,t)=>(E(),F("div",q,[y(V,L(m,{onHandleTableHeader:v}),null,16),y(x,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:c.value,buttonName:f.value,ruleForm:b.value,rules:N.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};export{me as default};

View File

@ -1 +1 @@
import N from"./Upload-364e96ef.js";import{a as P}from"./hevue-img-preview-4a7ab001.js";import{f as o,a1 as g,n as R,ag as s,o as S,c as T,d as e,T as t,X as p,a as b}from"./@vue-b2c9e7bc.js";import"./index-79018977.js";import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash.clonedeep-7c3da1fa.js";/* empty css */const H={class:"ParMain"},j={class:"tab-content"},A={class:"dialog-footer"},D={__name:"details",setup(I){const _=o(4),c=o(100),v=o(!1),y=o(!1),k=o(!1),f=o(0);o("");const h=o(),m=g({name:""}),C=g({name:[{required:!0,message:"Please input Activity name",trigger:"blur"}]}),n=o(!1),x=[{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件一号"},{name:"池武丹",lastname:"李四",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件二号"},{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件三号"}],u=()=>{n.value=!0},V=d=>{},z=d=>{};return R(()=>{f.value=window.innerHeight-320}),(d,a)=>{const r=s("el-table-column"),i=s("el-button"),q=s("el-table"),w=s("el-pagination"),F=s("el-form-item"),U=s("el-col"),$=s("el-row"),B=s("el-form"),E=s("el-dialog");return S(),T("div",H,[e(q,{data:x,"default-sort":{prop:"date",order:"descending"},height:f.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:t(()=>[e(r,{prop:"qiye",label:"附件名称",sortable:""}),e(r,{prop:"status",label:"文件类型",sortable:""}),e(r,{prop:"name",label:"上传人",sortable:""}),e(r,{prop:"lastname",label:"最后修改人",sortable:""}),e(r,{prop:"address",label:"最后修改日期",sortable:""}),e(r,{fixed:"right",label:"操作"},{default:t(()=>[e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("修改")]),_:1}),e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("删除")]),_:1}),e(i,{link:"",type:"primary",size:"large",onClick:u},{default:t(()=>[p("附件")]),_:1})]),_:1})]),_:1},8,["height"]),e(w,{style:{"margin-top":"100px"},"current-page":_.value,"onUpdate:current-page":a[0]||(a[0]=l=>_.value=l),"page-size":c.value,"onUpdate:page-size":a[1]||(a[1]=l=>c.value=l),"page-sizes":[100,200,300,400],small:v.value,disabled:k.value,background:y.value,layout:"->,total, prev, pager, next, jumper",total:400,onSizeChange:V,onCurrentChange:z},null,8,["current-page","page-size","small","disabled","background"]),e(E,{modelValue:n.value,"onUpdate:modelValue":a[5]||(a[5]=l=>n.value=l),title:"人员选调",width:"60%"},{footer:t(()=>[b("span",A,[e(i,{type:"primary",onClick:a[3]||(a[3]=l=>n.value=!1)},{default:t(()=>[p("保存")]),_:1}),e(i,{onClick:a[4]||(a[4]=l=>n.value=!1)},{default:t(()=>[p("关闭")]),_:1})])]),default:t(()=>[b("div",j,[e(B,{ref_key:"ruleFormRef",ref:h,model:m,rules:C,"label-width":"180px",disabled:d.disabledVal,"hide-required-asterisk":d.hideRequired},{default:t(()=>[e($,null,{default:t(()=>[e(U,{span:12},{default:t(()=>[e(F,{label:"相关附件:",class:"form-item-upload"},{default:t(()=>[e(N,{modelValue:m.name,"onUpdate:modelValue":a[2]||(a[2]=l=>m.name=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","hide-required-asterisk"])])]),_:1},8,["modelValue"])])}}},ge=P(D,[["__scopeId","data-v-41b38f3f"]]);export{ge as default}; import N from"./Upload-bb95f209.js";import{a as P}from"./hevue-img-preview-4a7ab001.js";import{f as o,a1 as g,n as R,ag as s,o as S,c as T,d as e,T as t,X as p,a as b}from"./@vue-b2c9e7bc.js";import"./index-8aa77b06.js";import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash.clonedeep-7c3da1fa.js";/* empty css */const H={class:"ParMain"},j={class:"tab-content"},A={class:"dialog-footer"},D={__name:"details",setup(I){const _=o(4),c=o(100),v=o(!1),y=o(!1),k=o(!1),f=o(0);o("");const h=o(),m=g({name:""}),C=g({name:[{required:!0,message:"Please input Activity name",trigger:"blur"}]}),n=o(!1),x=[{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件一号"},{name:"池武丹",lastname:"李四",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件二号"},{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件三号"}],u=()=>{n.value=!0},V=d=>{},z=d=>{};return R(()=>{f.value=window.innerHeight-320}),(d,a)=>{const r=s("el-table-column"),i=s("el-button"),q=s("el-table"),w=s("el-pagination"),F=s("el-form-item"),U=s("el-col"),$=s("el-row"),B=s("el-form"),E=s("el-dialog");return S(),T("div",H,[e(q,{data:x,"default-sort":{prop:"date",order:"descending"},height:f.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:t(()=>[e(r,{prop:"qiye",label:"附件名称",sortable:""}),e(r,{prop:"status",label:"文件类型",sortable:""}),e(r,{prop:"name",label:"上传人",sortable:""}),e(r,{prop:"lastname",label:"最后修改人",sortable:""}),e(r,{prop:"address",label:"最后修改日期",sortable:""}),e(r,{fixed:"right",label:"操作"},{default:t(()=>[e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("修改")]),_:1}),e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("删除")]),_:1}),e(i,{link:"",type:"primary",size:"large",onClick:u},{default:t(()=>[p("附件")]),_:1})]),_:1})]),_:1},8,["height"]),e(w,{style:{"margin-top":"100px"},"current-page":_.value,"onUpdate:current-page":a[0]||(a[0]=l=>_.value=l),"page-size":c.value,"onUpdate:page-size":a[1]||(a[1]=l=>c.value=l),"page-sizes":[100,200,300,400],small:v.value,disabled:k.value,background:y.value,layout:"->,total, prev, pager, next, jumper",total:400,onSizeChange:V,onCurrentChange:z},null,8,["current-page","page-size","small","disabled","background"]),e(E,{modelValue:n.value,"onUpdate:modelValue":a[5]||(a[5]=l=>n.value=l),title:"人员选调",width:"60%"},{footer:t(()=>[b("span",A,[e(i,{type:"primary",onClick:a[3]||(a[3]=l=>n.value=!1)},{default:t(()=>[p("保存")]),_:1}),e(i,{onClick:a[4]||(a[4]=l=>n.value=!1)},{default:t(()=>[p("关闭")]),_:1})])]),default:t(()=>[b("div",j,[e(B,{ref_key:"ruleFormRef",ref:h,model:m,rules:C,"label-width":"180px",disabled:d.disabledVal,"hide-required-asterisk":d.hideRequired},{default:t(()=>[e($,null,{default:t(()=>[e(U,{span:12},{default:t(()=>[e(F,{label:"相关附件:",class:"form-item-upload"},{default:t(()=>[e(N,{modelValue:m.name,"onUpdate:modelValue":a[2]||(a[2]=l=>m.name=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","hide-required-asterisk"])])]),_:1},8,["modelValue"])])}}},ge=P(D,[["__scopeId","data-v-41b38f3f"]]);export{ge as default};

View File

@ -1 +1 @@
import{a as T,u as j}from"./vue-router-3598b468.js";import{h as x}from"./index-79018977.js";import{a as U}from"./hevue-img-preview-4a7ab001.js";import{E as B}from"./element-plus-4b5d5603.js";import{f as p,a1 as D,n as F,ag as u,aq as N,o as C,c as R,U as S,S as V,T as l,d as o,a as _,Y as g,u as A,X as k}from"./@vue-b2c9e7bc.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const H={class:"ParMain"},M={__name:"detailsIndex",setup(O){const f=T();p(f.query.type),j();const L=p(!1),h=p(0),c=p(!1),v=p([]),r=D({current:1,size:12,id:f.query.id}),y=p(0),m=()=>{c.value=!0,r.type=f.query.type,x.get("/api/alteration/selectOrganizationFileList",r).then(n=>{n.code==200&&(v.value=n.data.records,y.value=n.data.total,c.value=!1)}).catch(()=>{c.value=!1})};m();let z={audit:"审批资料附件",card:"身份证附件",education:"学历证书附件",engage:"聘任证书附件",jobTitle:"职称证书附件",directors:"directors"};const b=(n,e)=>{if(n==="download")x.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(a=>{const i=window.URL.createObjectURL(a),s=document.createElement("a");s.download=e.name,s.href=i,s.click()});else if(n==="preview"){const a=e.suffix.toLowerCase()==="jpeg".toLowerCase(),i=e.suffix.toLowerCase()==="pdf".toLowerCase(),s=e.suffix.toLowerCase()==="png".toLowerCase(),w=e.suffix.toLowerCase()==="jpg".toLowerCase();if(a||i||s||w){const d=document.createElement("a");d.href=e.path,d.click(),window.open(e.path)}else B({message:"该文件类型暂不支持预览",type:"warning"})}},q=n=>{r.current=n,m()},E=n=>{r.current=n,m()};return F(()=>{h.value=window.innerHeight-320}),(n,e)=>{const a=u("el-table-column"),i=u("el-button"),s=u("el-table"),w=u("el-pagination"),d=N("loading");return C(),R("div",H,[S((C(),V(s,{data:v.value,"default-sort":{prop:"date",order:"descending"},height:h.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:l(()=>[o(a,{label:"序号",type:"index",width:"100",align:"center"}),o(a,{prop:"name",label:"附件名称"}),o(a,{label:"附件类型"},{default:l(t=>[_("span",null,g(A(z)[t.row.targetType]),1)]),_:1}),o(a,{label:"文件类型"},{default:l(t=>[_("span",null,g(t.row.suffix),1)]),_:1}),o(a,{prop:"createdId",label:"上传人"}),o(a,{label:"上传时间"},{default:l(t=>[_("span",null,g(t.row.createdAt.split(" ")[0]),1)]),_:1}),o(a,{prop:"updatedId",label:"最后修改人"}),o(a,{label:"最后修改日期"},{default:l(t=>[_("span",null,g(t.row.updatedAt.split(" ")[0]),1)]),_:1}),o(a,{fixed:"right",label:"操作",width:"120"},{default:l(t=>[o(i,{link:"",type:"primary",size:"large",onClick:I=>b("preview",t.row)},{default:l(()=>[k("预览")]),_:2},1032,["onClick"]),o(i,{link:"",type:"primary",size:"large",onClick:I=>b("download",t.row)},{default:l(()=>[k("下载")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","height"])),[[d,c.value]]),o(w,{style:{"margin-top":"100px"},"current-page":r.current,"onUpdate:current-page":e[0]||(e[0]=t=>r.current=t),"page-size":r.size,"onUpdate:page-size":e[1]||(e[1]=t=>r.size=t),background:L.value,layout:"->,total, prev, pager, next, jumper",total:y.value,onSizeChange:q,onCurrentChange:E},null,8,["current-page","page-size","background","total"])])}}},ge=U(M,[["__scopeId","data-v-56ff1069"]]);export{ge as default}; import{a as T,u as j}from"./vue-router-3598b468.js";import{h as x}from"./index-8aa77b06.js";import{a as U}from"./hevue-img-preview-4a7ab001.js";import{E as B}from"./element-plus-4b5d5603.js";import{f as p,a1 as D,n as F,ag as u,aq as N,o as C,c as R,U as S,S as V,T as l,d as o,a as _,Y as g,u as A,X as k}from"./@vue-b2c9e7bc.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const H={class:"ParMain"},M={__name:"detailsIndex",setup(O){const f=T();p(f.query.type),j();const L=p(!1),h=p(0),c=p(!1),v=p([]),r=D({current:1,size:12,id:f.query.id}),y=p(0),m=()=>{c.value=!0,r.type=f.query.type,x.get("/api/alteration/selectOrganizationFileList",r).then(n=>{n.code==200&&(v.value=n.data.records,y.value=n.data.total,c.value=!1)}).catch(()=>{c.value=!1})};m();let z={audit:"审批资料附件",card:"身份证附件",education:"学历证书附件",engage:"聘任证书附件",jobTitle:"职称证书附件",directors:"directors"};const b=(n,e)=>{if(n==="download")x.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(a=>{const i=window.URL.createObjectURL(a),s=document.createElement("a");s.download=e.name,s.href=i,s.click()});else if(n==="preview"){const a=e.suffix.toLowerCase()==="jpeg".toLowerCase(),i=e.suffix.toLowerCase()==="pdf".toLowerCase(),s=e.suffix.toLowerCase()==="png".toLowerCase(),w=e.suffix.toLowerCase()==="jpg".toLowerCase();if(a||i||s||w){const d=document.createElement("a");d.href=e.path,d.click(),window.open(e.path)}else B({message:"该文件类型暂不支持预览",type:"warning"})}},q=n=>{r.current=n,m()},E=n=>{r.current=n,m()};return F(()=>{h.value=window.innerHeight-320}),(n,e)=>{const a=u("el-table-column"),i=u("el-button"),s=u("el-table"),w=u("el-pagination"),d=N("loading");return C(),R("div",H,[S((C(),V(s,{data:v.value,"default-sort":{prop:"date",order:"descending"},height:h.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:l(()=>[o(a,{label:"序号",type:"index",width:"100",align:"center"}),o(a,{prop:"name",label:"附件名称"}),o(a,{label:"附件类型"},{default:l(t=>[_("span",null,g(A(z)[t.row.targetType]),1)]),_:1}),o(a,{label:"文件类型"},{default:l(t=>[_("span",null,g(t.row.suffix),1)]),_:1}),o(a,{prop:"createdId",label:"上传人"}),o(a,{label:"上传时间"},{default:l(t=>[_("span",null,g(t.row.createdAt.split(" ")[0]),1)]),_:1}),o(a,{prop:"updatedId",label:"最后修改人"}),o(a,{label:"最后修改日期"},{default:l(t=>[_("span",null,g(t.row.updatedAt.split(" ")[0]),1)]),_:1}),o(a,{fixed:"right",label:"操作",width:"120"},{default:l(t=>[o(i,{link:"",type:"primary",size:"large",onClick:I=>b("preview",t.row)},{default:l(()=>[k("预览")]),_:2},1032,["onClick"]),o(i,{link:"",type:"primary",size:"large",onClick:I=>b("download",t.row)},{default:l(()=>[k("下载")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","height"])),[[d,c.value]]),o(w,{style:{"margin-top":"100px"},"current-page":r.current,"onUpdate:current-page":e[0]||(e[0]=t=>r.current=t),"page-size":r.size,"onUpdate:page-size":e[1]||(e[1]=t=>r.size=t),background:L.value,layout:"->,total, prev, pager, next, jumper",total:y.value,onSizeChange:q,onCurrentChange:E},null,8,["current-page","page-size","background","total"])])}}},ge=U(M,[["__scopeId","data-v-56ff1069"]]);export{ge as default};

View File

@ -0,0 +1 @@
import{_ as L}from"./TableBody-8917f0e2.js";import{f as d,a1 as k,ag as r,o as S,c as V,d as t,T as a,Q as D,X as m,a as _,Y as H}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const z={class:"example"},x={style:{color:"#729880"}},B={class:"dialog-footer"},Z={__name:"example",setup(G){const v=d(),h=k({tableHeader:[{buttons:["create","edit","delete",{type:"custom",name:"customButton",title:"自定义",icon:"Message",isOpen:"custom",disabled:o=>{var e;return((e=o[0])==null?void 0:e.id)!==3},permission:void 0}]},{buttons:["search","advanced","refresh","filter","bulkDelete",{name:"mixInput",options:[{label:1,value:1},{label:1,value:1}]},{name:"sort",options:[{label:"按企业名称",value:1},{label:"按姓名",value:2}]},{type:"custom",name:"customButton",title:"自定义",icon:"Message",isOpen:"custom",disabled:!1}]},{create:void 0,edit:!1,delete:!1,search:!1,advanced:!1,refresh:!1,bulkDelete:!1,filter:!1}],tableType:{selection:!1,tableLoading:!1,tableIndex:!0,tableTree:!0,tableTreeName:"children",isExpand:!0,isHiddenPagination:!1,changeHeight:!1,rowStyle:({row:o,rowIndex:e})=>e===0?{background:"var(--el-color-success-light-8)"}:e===1?{background:"var(--el-color-info-light-8)"}:e===2?{background:"var(--el-color-danger-light-8)"}:{}},tableList:[{type:"slot",name:"slotName",label:"插槽",show:!0,sortable:!0,sortableMethod:(o,e)=>new Date(o.date).getTime()-new Date(e.date).getTime(),width:100,showOverflowTooltip:!1},{name:"date",label:"时间",show:!0,sortable:"custom"},{name:"name",label:"姓名",show:!0},{name:"state",label:"状态",show:!0},{name:"city",label:"城市",show:!0},{name:"address",label:"地址",show:!0},{name:"zip",label:"邮编",show:!0}],tableData:[{id:1,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽",children:[{id:2,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:3,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"}]},{id:4,date:"2016-05-02",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:5,date:"2016-05-03",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:6,date:"2016-05-04",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:7,date:"2016-05-05",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"}],pagination:{pageSize:10,current:1,total:0}}),C=({type:o,data:e})=>{switch(o){case"create":break;case"edit":break;case"advanced":A();break}},T=o=>{},y=(o,e,n)=>{},u=o=>{},p=d(120),s=d({name:""}),i=d(!1),f=()=>{i.value=!1},A=()=>{i.value=!0};return(o,e)=>{const n=r("el-button"),b=r("el-input"),g=r("el-form-item"),N=r("el-form"),w=r("el-dialog");return S(),V("div",z,[t(L,D(h,{onHandleTableHeader:C,onHandleTablePagination:T,onHandleTableSort:y,ref_key:"TableBodyRef",ref:v}),{TableHeaderLeft:a(({selectData:l})=>[t(n,{onClick:c=>u(l)},{default:a(()=>[m("插槽")]),_:2},1032,["onClick"])]),TableHeaderRight:a(({selectData:l})=>[t(n,{onClick:c=>u(l)},{default:a(()=>[m("插槽")]),_:2},1032,["onClick"])]),slotName:a(({currentCol:l,currentData:c})=>[_("span",x,H(c),1)]),_:1},16),t(w,{modelValue:i.value,"onUpdate:modelValue":e[2]||(e[2]=l=>i.value=l),title:"搜索更多"},{footer:a(()=>[_("span",B,[t(n,{onClick:f},{default:a(()=>[m("取消")]),_:1}),t(n,{type:"primary",onClick:f},{default:a(()=>[m(" 搜索 ")]),_:1})])]),default:a(()=>[t(N,{model:s.value},{default:a(()=>[t(g,{label:"企业名称","label-width":p.value},{default:a(()=>[t(b,{modelValue:s.value.name,"onUpdate:modelValue":e[0]||(e[0]=l=>s.value.name=l),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),t(g,{label:"公司地址","label-width":p.value},{default:a(()=>[t(b,{modelValue:s.value.name,"onUpdate:modelValue":e[1]||(e[1]=l=>s.value.name=l),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}};export{Z as default};

View File

@ -1 +0,0 @@
import{_ as L}from"./TableBody-814242b2.js";import{f as d,a1 as k,ag as i,o as S,c as V,d as t,T as a,Q as D,X as m,a as _,Y as H}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const x={class:"example"},z={style:{color:"#729880"}},B={class:"dialog-footer"},Z={__name:"example",setup(G){const v=d(),h=k({tableHeader:[{buttons:["create","edit","delete",{type:"custom",name:"customButton",title:"自定义",icon:"Message",isOpen:"custom",disabled:l=>{var e;return((e=l[0])==null?void 0:e.id)!==3},permission:void 0}]},{buttons:["search","advanced","refresh","filter","bulkDelete",{name:"mixInput",options:[{label:1,value:1},{label:1,value:1}]},{name:"sort",options:[{label:"按企业名称",value:1},{label:"按姓名",value:2}]},{type:"custom",name:"customButton",title:"自定义",icon:"Message",isOpen:"custom",disabled:!1}]},{create:void 0,edit:!1,delete:!1,search:!1,advanced:!1,refresh:!1,bulkDelete:!1,filter:!1}],tableType:{selection:!1,tableLoading:!1,tableIndex:!0,tableTree:!0,tableTreeName:"children",isExpand:!0,isHiddenPagination:!1,changeHeight:!1},tableList:[{type:"slot",name:"slotName",label:"插槽",show:!0,sortable:!0,sortableMethod:(l,e)=>new Date(l.date).getTime()-new Date(e.date).getTime(),width:100,showOverflowTooltip:!1},{name:"date",label:"时间",show:!0,sortable:"custom"},{name:"name",label:"姓名",show:!0},{name:"state",label:"状态",show:!0},{name:"city",label:"城市",show:!0},{name:"address",label:"地址",show:!0},{name:"zip",label:"邮编",show:!0}],tableData:[{id:1,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽",children:[{id:2,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:3,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"}]},{id:4,date:"2016-05-02",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:5,date:"2016-05-03",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:6,date:"2016-05-04",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:7,date:"2016-05-05",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"}],pagination:{pageSize:10,current:1,total:0}}),C=({type:l,data:e})=>{switch(l){case"create":break;case"edit":break;case"advanced":A();break}},T=l=>{},y=(l,e,n)=>{},u=l=>{},p=d(120),s=d({name:""}),r=d(!1),f=()=>{r.value=!1},A=()=>{r.value=!0};return(l,e)=>{const n=i("el-button"),b=i("el-input"),g=i("el-form-item"),N=i("el-form"),w=i("el-dialog");return S(),V("div",x,[t(L,D(h,{onHandleTableHeader:C,onHandleTablePagination:T,onHandleTableSort:y,ref_key:"TableBodyRef",ref:v}),{TableHeaderLeft:a(({selectData:o})=>[t(n,{onClick:c=>u(o)},{default:a(()=>[m("插槽")]),_:2},1032,["onClick"])]),TableHeaderRight:a(({selectData:o})=>[t(n,{onClick:c=>u(o)},{default:a(()=>[m("插槽")]),_:2},1032,["onClick"])]),slotName:a(({currentCol:o,currentData:c})=>[_("span",z,H(c),1)]),_:1},16),t(w,{modelValue:r.value,"onUpdate:modelValue":e[2]||(e[2]=o=>r.value=o),title:"搜索更多"},{footer:a(()=>[_("span",B,[t(n,{onClick:f},{default:a(()=>[m("取消")]),_:1}),t(n,{type:"primary",onClick:f},{default:a(()=>[m(" 搜索 ")]),_:1})])]),default:a(()=>[t(N,{model:s.value},{default:a(()=>[t(g,{label:"企业名称","label-width":p.value},{default:a(()=>[t(b,{modelValue:s.value.name,"onUpdate:modelValue":e[0]||(e[0]=o=>s.value.name=o),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),t(g,{label:"公司地址","label-width":p.value},{default:a(()=>[t(b,{modelValue:s.value.name,"onUpdate:modelValue":e[1]||(e[1]=o=>s.value.name=o),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}};export{Z as default};

View File

@ -1 +0,0 @@
System.register(["./TableBody-legacy-eafa0254.js","./@vue-legacy-98edf7e4.js","./hevue-img-preview-legacy-7b0f5670.js","./element-plus-legacy-be489926.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-485cb7fd.js","./@element-plus-legacy-fc466b21.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-8181a174.js","./@imengyu-legacy-4fdfe515.js","./vue-legacy-74f9c847.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,l){"use strict";var a,t,o,s,n,i,d,u,c,m,r,g;return{setters:[e=>{a=e._},e=>{t=e.f,o=e.a1,s=e.ag,n=e.o,i=e.c,d=e.d,u=e.T,c=e.Q,m=e.X,r=e.a,g=e.Y},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"example"},b={style:{color:"#729880"}},p={class:"dialog-footer"};e("default",{__name:"example",setup(e){const y=t(),f=o({tableHeader:[{buttons:["create","edit","delete",{type:"custom",name:"customButton",title:"自定义",icon:"Message",isOpen:"custom",disabled:e=>(console.log(e,"selectData121341"),3!==e[0]?.id),permission:void 0}]},{buttons:["search","advanced","refresh","filter","bulkDelete",{name:"mixInput",options:[{label:1,value:1},{label:1,value:1}]},{name:"sort",options:[{label:"按企业名称",value:1},{label:"按姓名",value:2}]},{type:"custom",name:"customButton",title:"自定义",icon:"Message",isOpen:"custom",disabled:!1}]},{create:void 0,edit:!1,delete:!1,search:!1,advanced:!1,refresh:!1,bulkDelete:!1,filter:!1}],tableType:{selection:!1,tableLoading:!1,tableIndex:!0,tableTree:!0,tableTreeName:"children",isExpand:!0,isHiddenPagination:!1,changeHeight:!1},tableList:[{type:"slot",name:"slotName",label:"插槽",show:!0,sortable:!0,sortableMethod:(e,l)=>(console.log(e.date),new Date(e.date).getTime()-new Date(l.date).getTime()),width:100,showOverflowTooltip:!1},{name:"date",label:"时间",show:!0,sortable:"custom"},{name:"name",label:"姓名",show:!0},{name:"state",label:"状态",show:!0},{name:"city",label:"城市",show:!0},{name:"address",label:"地址",show:!0},{name:"zip",label:"邮编",show:!0}],tableData:[{id:1,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽",children:[{id:2,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:3,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"}]},{id:4,date:"2016-05-02",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:5,date:"2016-05-03",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:6,date:"2016-05-04",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:7,date:"2016-05-05",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"}],pagination:{pageSize:10,current:1,total:0}}),v=({type:e,data:l})=>{switch(console.log(e,l),e){case"create":case"edit":console.log(e,l);break;case"advanced":N()}},h=e=>{console.log(e)},A=(e,l,a)=>{console.log(e,l,a)},C=e=>{console.log(e)},T=t(120),w=t({name:""}),j=t(!1),L=()=>{j.value=!1},N=()=>{j.value=!0};return(e,t)=>{const o=s("el-button"),N=s("el-input"),_=s("el-form-item"),z=s("el-form"),k=s("el-dialog");return n(),i("div",l,[d(a,c(f,{onHandleTableHeader:v,onHandleTablePagination:h,onHandleTableSort:A,ref_key:"TableBodyRef",ref:y}),{TableHeaderLeft:u((({selectData:e})=>[d(o,{onClick:l=>C(e)},{default:u((()=>[m("插槽")])),_:2},1032,["onClick"])])),TableHeaderRight:u((({selectData:e})=>[d(o,{onClick:l=>C(e)},{default:u((()=>[m("插槽")])),_:2},1032,["onClick"])])),slotName:u((({currentCol:e,currentData:l})=>[r("span",b,g(l),1)])),_:1},16),d(k,{modelValue:j.value,"onUpdate:modelValue":t[2]||(t[2]=e=>j.value=e),title:"搜索更多"},{footer:u((()=>[r("span",p,[d(o,{onClick:L},{default:u((()=>[m("取消")])),_:1}),d(o,{type:"primary",onClick:L},{default:u((()=>[m(" 搜索 ")])),_:1})])])),default:u((()=>[d(z,{model:w.value},{default:u((()=>[d(_,{label:"企业名称","label-width":T.value},{default:u((()=>[d(N,{modelValue:w.value.name,"onUpdate:modelValue":t[0]||(t[0]=e=>w.value.name=e),autocomplete:"off"},null,8,["modelValue"])])),_:1},8,["label-width"]),d(_,{label:"公司地址","label-width":T.value},{default:u((()=>[d(N,{modelValue:w.value.name,"onUpdate:modelValue":t[1]||(t[1]=e=>w.value.name=e),autocomplete:"off"},null,8,["modelValue"])])),_:1},8,["label-width"])])),_:1},8,["model"])])),_:1},8,["modelValue"])])}}})}}}));

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{h as q}from"./index-79018977.js";import"./lodash.clonedeep-7c3da1fa.js";/* empty css */import{a as Q}from"./hevue-img-preview-4a7ab001.js";import{u as W,a as Z}from"./vue-router-3598b468.js";/* empty css */import{l as g,f as y,a1 as U,k as ee,ag as r,o as p,c as v,d as a,T as n,O as $,u as b,F as I,a7 as S,S as te,a as o,X as _,Y as oe,ba as ae,b8 as le}from"./@vue-b2c9e7bc.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";const B=f=>(ae("data-v-752facd1"),f=f(),le(),f),ne={class:"tab-content"},se=B(()=>o("div",{class:"contents"},null,-1)),re={class:"table-buttons"},me={class:"recruit-add-table-container"},ce=B(()=>o("thead",null,[o("tr",null,[o("th",{class:"ratc-ind"}),o("th",{class:"ratc-ind"},"序号"),o("th",{class:"ratc-content"},"姓名"),o("th",{class:"ratc-content",style:{width:"42%"}},"职务")])],-1)),ie={class:"ratc-ind"},de={class:"ratc-ind"},ue={class:"fixed-form-item"},pe={__name:"fromtwo",setup(f){const P=W(),i=Z(),V=g(()=>!["create","edit"].includes(i.query.type));g(()=>i.query.type==="create");const k=g(()=>i.query.type==="edit"),h=y(),l=U({mechments:[],attachments:[]}),R=U({creditCode:[{required:!0,message:"请输入统一社会信用代码",trigger:"blur"}],companyName:[{required:!0,message:"请输入企业名称",trigger:"blur"}]}),C=y(""),x=async e=>{e&&await e.validate(async(t,F)=>{})},L=e=>{e&&(e.resetFields(),l.mechments=[],l.attachments=[],c.value=[],C.value="")},T=()=>{P.go(-1)},c=y({}),z=e=>{},M=()=>{l.mechments.push({mechanismName:"",mechanismFunction:"",responsiblePerson:"",remark:""})},O=()=>{for(let e in c.value)c.value[e]&&l.mechments.splice(e,1);c.value=[]},N=y([]),X=()=>{q.get("/api/company/companyList").then(e=>{e.code==200&&(N.value=e.data)})},Y=e=>{C.value=e,q.get(`/api/company/companyName?id=${e}`).then(t=>{t.code==200&&(l.creditCode=t.data.creditCode)})},j=()=>{var e;((e=i.query)==null?void 0:e.type)==="edit"&&i.query.id};return ee(()=>{X(),j()}),(e,t)=>{const F=r("el-option"),A=r("el-select"),E=r("el-form-item"),D=r("el-col"),d=r("el-button"),G=r("el-popconfirm"),H=r("el-checkbox"),w=r("el-input"),J=r("el-row"),K=r("el-form");return p(),v("div",ne,[a(K,{ref_key:"ruleFormRef",ref:h,model:l,rules:R,"label-width":"208px",disabled:b(V),class:$(b(V)?"el-form-diabled":"")},{default:n(()=>[a(J,null,{default:n(()=>[a(D,{span:24},{default:n(()=>[a(E,{label:"党组织书记:",prop:"companyName",class:$(b(k)?"form-item-diabled":"")},{default:n(()=>[a(A,{modelValue:l.companyName,"onUpdate:modelValue":t[0]||(t[0]=s=>l.companyName=s),placeholder:"请选择",onChange:Y,disabled:b(k)},{default:n(()=>[(p(!0),v(I,null,S(N.value,s=>(p(),te(F,{label:s.companyName,value:s.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","disabled"])]),_:1},8,["class"])]),_:1}),se,a(D,{span:24},{default:n(()=>[o("div",re,[a(d,{type:"primary",onClick:t[1]||(t[1]=s=>M()),icon:"Plus"},{default:n(()=>[_(" 新增明细 ")]),_:1}),a(G,{title:"是否要删除吗?"},{reference:n(()=>[a(d,{type:"primary",onClick:t[2]||(t[2]=s=>O()),icon:"Delete"},{default:n(()=>[_(" 删除明细 ")]),_:1})]),_:1})]),o("div",me,[o("table",null,[ce,o("tbody",null,[(p(!0),v(I,null,S(l.mechments,(s,m)=>(p(),v("tr",null,[o("td",ie,[a(H,{modelValue:c.value[m],"onUpdate:modelValue":u=>c.value[m]=u,onChange:z},null,8,["modelValue","onUpdate:modelValue"])]),o("td",de,oe(m+1),1),o("td",null,[a(w,{modelValue:l.mechments[m].mechanismName,"onUpdate:modelValue":u=>l.mechments[m].mechanismName=u},null,8,["modelValue","onUpdate:modelValue"])]),o("td",null,[a(w,{modelValue:l.mechments[m].mechanismFunction,"onUpdate:modelValue":u=>l.mechments[m].mechanismFunction=u},null,8,["modelValue","onUpdate:modelValue"])])]))),256))])])])]),_:1})]),_:1}),o("div",ue,[a(d,{type:"primary",onClick:t[3]||(t[3]=s=>x(h.value))},{default:n(()=>[_(" 保存 ")]),_:1}),a(d,{type:"primary",onClick:t[4]||(t[4]=s=>T(h.value))},{default:n(()=>[_(" 关闭 ")]),_:1}),a(d,{onClick:t[5]||(t[5]=s=>L(h.value))},{default:n(()=>[_("重置")]),_:1})])]),_:1},8,["model","rules","disabled","class"])])}}},Oe=Q(pe,[["__scopeId","data-v-752facd1"]]);export{Oe as default}; import{h as q}from"./index-8aa77b06.js";import"./lodash.clonedeep-7c3da1fa.js";/* empty css */import{a as Q}from"./hevue-img-preview-4a7ab001.js";import{u as W,a as Z}from"./vue-router-3598b468.js";/* empty css */import{l as g,f as y,a1 as U,k as ee,ag as r,o as p,c as v,d as a,T as n,O as $,u as b,F as I,a7 as S,S as te,a as o,X as _,Y as oe,ba as ae,b8 as le}from"./@vue-b2c9e7bc.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";const B=f=>(ae("data-v-752facd1"),f=f(),le(),f),ne={class:"tab-content"},se=B(()=>o("div",{class:"contents"},null,-1)),re={class:"table-buttons"},me={class:"recruit-add-table-container"},ce=B(()=>o("thead",null,[o("tr",null,[o("th",{class:"ratc-ind"}),o("th",{class:"ratc-ind"},"序号"),o("th",{class:"ratc-content"},"姓名"),o("th",{class:"ratc-content",style:{width:"42%"}},"职务")])],-1)),ie={class:"ratc-ind"},de={class:"ratc-ind"},ue={class:"fixed-form-item"},pe={__name:"fromtwo",setup(f){const P=W(),i=Z(),V=g(()=>!["create","edit"].includes(i.query.type));g(()=>i.query.type==="create");const k=g(()=>i.query.type==="edit"),h=y(),l=U({mechments:[],attachments:[]}),R=U({creditCode:[{required:!0,message:"请输入统一社会信用代码",trigger:"blur"}],companyName:[{required:!0,message:"请输入企业名称",trigger:"blur"}]}),C=y(""),x=async e=>{e&&await e.validate(async(t,F)=>{})},L=e=>{e&&(e.resetFields(),l.mechments=[],l.attachments=[],c.value=[],C.value="")},T=()=>{P.go(-1)},c=y({}),z=e=>{},M=()=>{l.mechments.push({mechanismName:"",mechanismFunction:"",responsiblePerson:"",remark:""})},O=()=>{for(let e in c.value)c.value[e]&&l.mechments.splice(e,1);c.value=[]},N=y([]),X=()=>{q.get("/api/company/companyList").then(e=>{e.code==200&&(N.value=e.data)})},Y=e=>{C.value=e,q.get(`/api/company/companyName?id=${e}`).then(t=>{t.code==200&&(l.creditCode=t.data.creditCode)})},j=()=>{var e;((e=i.query)==null?void 0:e.type)==="edit"&&i.query.id};return ee(()=>{X(),j()}),(e,t)=>{const F=r("el-option"),A=r("el-select"),E=r("el-form-item"),D=r("el-col"),d=r("el-button"),G=r("el-popconfirm"),H=r("el-checkbox"),w=r("el-input"),J=r("el-row"),K=r("el-form");return p(),v("div",ne,[a(K,{ref_key:"ruleFormRef",ref:h,model:l,rules:R,"label-width":"208px",disabled:b(V),class:$(b(V)?"el-form-diabled":"")},{default:n(()=>[a(J,null,{default:n(()=>[a(D,{span:24},{default:n(()=>[a(E,{label:"党组织书记:",prop:"companyName",class:$(b(k)?"form-item-diabled":"")},{default:n(()=>[a(A,{modelValue:l.companyName,"onUpdate:modelValue":t[0]||(t[0]=s=>l.companyName=s),placeholder:"请选择",onChange:Y,disabled:b(k)},{default:n(()=>[(p(!0),v(I,null,S(N.value,s=>(p(),te(F,{label:s.companyName,value:s.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","disabled"])]),_:1},8,["class"])]),_:1}),se,a(D,{span:24},{default:n(()=>[o("div",re,[a(d,{type:"primary",onClick:t[1]||(t[1]=s=>M()),icon:"Plus"},{default:n(()=>[_(" 新增明细 ")]),_:1}),a(G,{title:"是否要删除吗?"},{reference:n(()=>[a(d,{type:"primary",onClick:t[2]||(t[2]=s=>O()),icon:"Delete"},{default:n(()=>[_(" 删除明细 ")]),_:1})]),_:1})]),o("div",me,[o("table",null,[ce,o("tbody",null,[(p(!0),v(I,null,S(l.mechments,(s,m)=>(p(),v("tr",null,[o("td",ie,[a(H,{modelValue:c.value[m],"onUpdate:modelValue":u=>c.value[m]=u,onChange:z},null,8,["modelValue","onUpdate:modelValue"])]),o("td",de,oe(m+1),1),o("td",null,[a(w,{modelValue:l.mechments[m].mechanismName,"onUpdate:modelValue":u=>l.mechments[m].mechanismName=u},null,8,["modelValue","onUpdate:modelValue"])]),o("td",null,[a(w,{modelValue:l.mechments[m].mechanismFunction,"onUpdate:modelValue":u=>l.mechments[m].mechanismFunction=u},null,8,["modelValue","onUpdate:modelValue"])])]))),256))])])])]),_:1})]),_:1}),o("div",ue,[a(d,{type:"primary",onClick:t[3]||(t[3]=s=>x(h.value))},{default:n(()=>[_(" 保存 ")]),_:1}),a(d,{type:"primary",onClick:t[4]||(t[4]=s=>T(h.value))},{default:n(()=>[_(" 关闭 ")]),_:1}),a(d,{onClick:t[5]||(t[5]=s=>L(h.value))},{default:n(()=>[_("重置")]),_:1})])]),_:1},8,["model","rules","disabled","class"])])}}},Oe=Q(pe,[["__scopeId","data-v-752facd1"]]);export{Oe as default};

View File

@ -1 +1 @@
import{d as a}from"./pinia-fd2dfb87.js";import{h as r}from"./index-79018977.js";const o=a("generalData",{state:()=>({PersonData:"",departmentTree:[]}),getters:{getPersonList:e=>{}},actions:{getDepartmentTreeselect:function(){let e=this;r.get("/api/system/dept/treeselect").then(t=>{e.departmentTree=t.data})}}});export{o as g}; import{d as a}from"./pinia-fd2dfb87.js";import{h as r}from"./index-8aa77b06.js";const o=a("generalData",{state:()=>({PersonData:"",departmentTree:[]}),getters:{getPersonList:e=>{}},actions:{getDepartmentTreeselect:function(){let e=this;r.get("/api/system/dept/treeselect").then(t=>{e.departmentTree=t.data})}}});export{o as g};

View File

@ -1 +1 @@
System.register(["./pinia-legacy-ae5252ec.js","./index-legacy-e2149a5d.js"],(function(e,t){"use strict";var s,r;return{setters:[e=>{s=e.d},e=>{r=e.h}],execute:function(){e("g",s("generalData",{state:()=>({PersonData:"",departmentTree:[]}),getters:{getPersonList:e=>{}},actions:{getDepartmentTreeselect:function(){let e=this;r.get("/api/system/dept/treeselect").then((t=>{e.departmentTree=t.data}))}}}))}}})); System.register(["./pinia-legacy-ae5252ec.js","./index-legacy-83afd24b.js"],(function(e,t){"use strict";var s,r;return{setters:[e=>{s=e.d},e=>{r=e.h}],execute:function(){e("g",s("generalData",{state:()=>({PersonData:"",departmentTree:[]}),getters:{getPersonList:e=>{}},actions:{getDepartmentTreeselect:function(){let e=this;r.get("/api/system/dept/treeselect").then((t=>{e.departmentTree=t.data}))}}}))}}}));

View File

@ -1 +1 @@
import{d as p}from"./pinia-fd2dfb87.js";import{g as S}from"./generalData-8e6852b5.js";import{u as N,a as C}from"./vue-router-3598b468.js";import"./index-79018977.js";import{a1 as x,ag as d,o,c as s,a,Y as _,u as V,F as B,a7 as D,d as r,T as n,X as i}from"./@vue-b2c9e7bc.js";const T=p("mian",{state:()=>({configName:" ",configValue:""}),actions:{reviseConfigName(t){this.$patch(e=>{e.configName=t})},reviseConfigValue(t){this.$patch(e=>{e.configName=t})}}}),$=p("designForm",{state:()=>({formDetail:{title:"",intro:"",files:[],forms:[]}}),actions:{}});const j={class:"design-header"},w={class:"nav"},M={class:"oper"},O={__name:"header",emits:["submitForm"],setup(t,{emit:e}){const{getDepartmentTreeselect:g}=S(),f=T();$(),g();const c=N(),l=C(),h=x({routers:[{title:"表单设计",path:`/design/designForm/${l.params.id}`},{title:"流程设计",path:`/design/designFlow/${l.params.id}`}]}),v=()=>{c.push("/")},y=()=>{e("submitForm")},b=()=>{c.push("/auditSetting")};return(R,z)=>{const k=d("router-link"),m=d("el-button");return o(),s("div",j,[a("h2",{class:"title",onClick:v},_(V(f).configName),1),a("div",w,[(o(!0),s(B,null,D(h.routers,(u,F)=>(o(),s("div",{class:"nav-box",key:F},[r(k,{to:{path:u.path},"active-class":"on"},{default:n(()=>[i(_(u.title),1)]),_:2},1032,["to"])]))),128))]),a("div",M,[r(m,{type:"primary",onClick:y},{default:n(()=>[i("保存")]),_:1}),r(m,{type:"primary",onClick:b},{default:n(()=>[i("返回")]),_:1})])])}}},Y=Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"}));export{O as _,$ as d,Y as h}; import{d as p}from"./pinia-fd2dfb87.js";import{g as S}from"./generalData-fbdcc22e.js";import{u as N,a as C}from"./vue-router-3598b468.js";import"./index-8aa77b06.js";import{a1 as x,ag as d,o,c as s,a,Y as _,u as V,F as B,a7 as D,d as r,T as n,X as i}from"./@vue-b2c9e7bc.js";const T=p("mian",{state:()=>({configName:" ",configValue:""}),actions:{reviseConfigName(t){this.$patch(e=>{e.configName=t})},reviseConfigValue(t){this.$patch(e=>{e.configName=t})}}}),$=p("designForm",{state:()=>({formDetail:{title:"",intro:"",files:[],forms:[]}}),actions:{}});const j={class:"design-header"},w={class:"nav"},M={class:"oper"},O={__name:"header",emits:["submitForm"],setup(t,{emit:e}){const{getDepartmentTreeselect:g}=S(),f=T();$(),g();const c=N(),l=C(),h=x({routers:[{title:"表单设计",path:`/design/designForm/${l.params.id}`},{title:"流程设计",path:`/design/designFlow/${l.params.id}`}]}),v=()=>{c.push("/")},y=()=>{e("submitForm")},b=()=>{c.push("/auditSetting")};return(R,z)=>{const k=d("router-link"),m=d("el-button");return o(),s("div",j,[a("h2",{class:"title",onClick:v},_(V(f).configName),1),a("div",w,[(o(!0),s(B,null,D(h.routers,(u,F)=>(o(),s("div",{class:"nav-box",key:F},[r(k,{to:{path:u.path},"active-class":"on"},{default:n(()=>[i(_(u.title),1)]),_:2},1032,["to"])]))),128))]),a("div",M,[r(m,{type:"primary",onClick:y},{default:n(()=>[i("保存")]),_:1}),r(m,{type:"primary",onClick:b},{default:n(()=>[i("返回")]),_:1})])])}}},Y=Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"}));export{O as _,$ as d,Y as h};

View File

@ -1 +1 @@
import{a1 as K,f as _,ag as n,o as S,c as B,a as m,d as t,T as i,a0 as L,a8 as P,ba as E,b8 as z}from"./@vue-b2c9e7bc.js";import{e as x,_ as M}from"./index-a79f3b22.js";import{u as q,a as D}from"./vue-router-3598b468.js";import{t as f}from"./tools-0351b48a.js";import{b as g,h,s as y}from"./index-79018977.js";import{u as T}from"./perms-598d9a86.js";import{a as $}from"./hevue-img-preview-4a7ab001.js";import{E as v}from"./element-plus-4b5d5603.js";import"./jsencrypt-e972e013.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const j=""+new URL("login-bg-new-c4bce267.png",import.meta.url).href;const u=d=>(E("data-v-abefca11"),d=d(),z(),d),A={class:"app-login"},F=u(()=>m("img",{src:M,alt:"",class:"app-login-logo"},null,-1)),G=u(()=>m("img",{src:j,alt:"",class:"app-login-bg"},null,-1)),H={class:"app-login-form"},J=u(()=>m("h2",{class:"app-login-form-title"},"账号登录",-1)),O=u(()=>m("span",{class:"alfs-span"},"登录",-1)),Q={__name:"index copy",setup(d){const I=q(),C=D(),N=T(),a=K({user:"",password:"",captchaId:"",captcha:""}),c=_(!1),w=_();C.query.type==="logout"&&(f.data.clear("user"),g("token"),g("username"),g("deptName"));const k=_(""),V=()=>{h.get("/api/auth/image").then(p=>{p.code==200?(k.value=p.data.value,a.captchaId=p.data.key):v.error(p.message)})};V();const b=async()=>{w.value.validate(async p=>{if(p){c.value=!0;var o={userName:x(a.user),password:x(a.password),captchaId:a.captchaId,captcha:a.captcha};h.post("/api/auth/login",o).then(e=>{if(e.code==200){var s={token:e.data.tokenValue,name:e.data.name,menus:e.data.menus,perms:e.data.perms,need_init_password:e.data.need_init_password,deptName:e.data.deptName,userImage:e.data.image,sign:e.data.electronicSignature,deptId:e.data.deptId,permissions:e.data.permissions};f.data.set("user",s),y("token",s.token),y("username",s.name),y("deptName",s.deptName),N.changePerms(e.data.perms),v.success("登录成功"),c.value=!1,h.get("/api/config/getConfigByParamKey",{paramKey:"sys.user.leadership"}).then(l=>{l.code==200&&f.data.set("identity",{account:a.user,leader:l.data.paramValue,isLeader:l.data.paramValue==a.user})}),I.push("/organizational")}else v.error(e.message),c.value=!1})}})};return(p,o)=>{const e=n("el-input"),s=n("el-form-item"),l=n("el-image"),R=n("el-button"),U=n("el-form");return S(),B("div",A,[F,G,m("div",H,[J,t(U,{model:a,size:"large",ref_key:"formRef",ref:w,onKeyup:P(b,["enter","native"])},{default:i(()=>[t(s,{prop:"user"},{default:i(()=>[t(e,{modelValue:a.user,"onUpdate:modelValue":o[0]||(o[0]=r=>a.user=r),style:{width:"100%"},placeholder:"请输入登录账号","prefix-icon":"User"},null,8,["modelValue"])]),_:1}),t(s,{prop:"password"},{default:i(()=>[t(e,{modelValue:a.password,"onUpdate:modelValue":o[1]||(o[1]=r=>a.password=r),style:{width:"100%"},type:"password",placeholder:"请输入登录密码","prefix-icon":"Lock","show-password":""},null,8,["modelValue"])]),_:1}),t(s,{class:"form-item-flex",prop:"captcha"},{default:i(()=>[t(e,{modelValue:a.captcha,"onUpdate:modelValue":o[2]||(o[2]=r=>a.captcha=r),placeholder:"请输入图片验证码","prefix-icon":"Lock"},null,8,["modelValue"]),t(l,{src:k.value,onClick:L(V,["stop"])},null,8,["src","onClick"])]),_:1}),t(R,{class:"app-login-form-submit",type:"primary",round:"",onClick:o[3]||(o[3]=r=>b()),loading:c.value},{default:i(()=>[O]),_:1},8,["loading"])]),_:1},8,["model","onKeyup"])])])}}},be=$(Q,[["__scopeId","data-v-abefca11"]]);export{be as default}; import{a1 as K,f as _,ag as n,o as S,c as B,a as m,d as t,T as i,a0 as L,a8 as P,ba as E,b8 as z}from"./@vue-b2c9e7bc.js";import{e as x,_ as M}from"./index-a79f3b22.js";import{u as q,a as D}from"./vue-router-3598b468.js";import{t as f}from"./tools-0351b48a.js";import{b as g,h,s as y}from"./index-8aa77b06.js";import{u as T}from"./perms-598d9a86.js";import{a as $}from"./hevue-img-preview-4a7ab001.js";import{E as v}from"./element-plus-4b5d5603.js";import"./jsencrypt-e972e013.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const j=""+new URL("login-bg-new-c4bce267.png",import.meta.url).href;const u=d=>(E("data-v-abefca11"),d=d(),z(),d),A={class:"app-login"},F=u(()=>m("img",{src:M,alt:"",class:"app-login-logo"},null,-1)),G=u(()=>m("img",{src:j,alt:"",class:"app-login-bg"},null,-1)),H={class:"app-login-form"},J=u(()=>m("h2",{class:"app-login-form-title"},"账号登录",-1)),O=u(()=>m("span",{class:"alfs-span"},"登录",-1)),Q={__name:"index copy",setup(d){const I=q(),C=D(),N=T(),a=K({user:"",password:"",captchaId:"",captcha:""}),c=_(!1),w=_();C.query.type==="logout"&&(f.data.clear("user"),g("token"),g("username"),g("deptName"));const k=_(""),V=()=>{h.get("/api/auth/image").then(p=>{p.code==200?(k.value=p.data.value,a.captchaId=p.data.key):v.error(p.message)})};V();const b=async()=>{w.value.validate(async p=>{if(p){c.value=!0;var o={userName:x(a.user),password:x(a.password),captchaId:a.captchaId,captcha:a.captcha};h.post("/api/auth/login",o).then(e=>{if(e.code==200){var s={token:e.data.tokenValue,name:e.data.name,menus:e.data.menus,perms:e.data.perms,need_init_password:e.data.need_init_password,deptName:e.data.deptName,userImage:e.data.image,sign:e.data.electronicSignature,deptId:e.data.deptId,permissions:e.data.permissions};f.data.set("user",s),y("token",s.token),y("username",s.name),y("deptName",s.deptName),N.changePerms(e.data.perms),v.success("登录成功"),c.value=!1,h.get("/api/config/getConfigByParamKey",{paramKey:"sys.user.leadership"}).then(l=>{l.code==200&&f.data.set("identity",{account:a.user,leader:l.data.paramValue,isLeader:l.data.paramValue==a.user})}),I.push("/organizational")}else v.error(e.message),c.value=!1})}})};return(p,o)=>{const e=n("el-input"),s=n("el-form-item"),l=n("el-image"),R=n("el-button"),U=n("el-form");return S(),B("div",A,[F,G,m("div",H,[J,t(U,{model:a,size:"large",ref_key:"formRef",ref:w,onKeyup:P(b,["enter","native"])},{default:i(()=>[t(s,{prop:"user"},{default:i(()=>[t(e,{modelValue:a.user,"onUpdate:modelValue":o[0]||(o[0]=r=>a.user=r),style:{width:"100%"},placeholder:"请输入登录账号","prefix-icon":"User"},null,8,["modelValue"])]),_:1}),t(s,{prop:"password"},{default:i(()=>[t(e,{modelValue:a.password,"onUpdate:modelValue":o[1]||(o[1]=r=>a.password=r),style:{width:"100%"},type:"password",placeholder:"请输入登录密码","prefix-icon":"Lock","show-password":""},null,8,["modelValue"])]),_:1}),t(s,{class:"form-item-flex",prop:"captcha"},{default:i(()=>[t(e,{modelValue:a.captcha,"onUpdate:modelValue":o[2]||(o[2]=r=>a.captcha=r),placeholder:"请输入图片验证码","prefix-icon":"Lock"},null,8,["modelValue"]),t(l,{src:k.value,onClick:L(V,["stop"])},null,8,["src","onClick"])]),_:1}),t(R,{class:"app-login-form-submit",type:"primary",round:"",onClick:o[3]||(o[3]=r=>b()),loading:c.value},{default:i(()=>[O]),_:1},8,["loading"])]),_:1},8,["model","onKeyup"])])])}}},be=$(Q,[["__scopeId","data-v-abefca11"]]);export{be as default};

View File

@ -1 +1 @@
import{_ as T}from"./TableBody-814242b2.js";import{h as d}from"./index-79018977.js";import{u as w}from"./vue-router-3598b468.js";import D from"./DetailDialog-88dc92b5.js";import{E as B}from"./element-plus-4b5d5603.js";import{f as s,a1 as S,k as P,o as V,c as x,d as m,T as A,a as E,Y as H,P as L,Q as N}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./@element-plus-a1a6045a.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const O={class:"example"},pe={__name:"index",setup(R){const r=w(),u=s(),a=S({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增通知",icon:"Plus",isOpen:"custom",disabled:!1,permission:"zhgl:tzgl:create"},{type:"custom",name:"edit",title:"修改",icon:"Edit",isOpen:"single",permission:"zhgl:tzgl:edit"},{type:"custom",name:"check",title:"查看",icon:"View",isOpen:"single",permission:"zhgl:tzgl:check"},{type:"popconfirm",name:"customDelete",title:"批量删除",icon:"Delete",isOpen:"Arbitrary",permission:"zhgl:tzgl:delete"}]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"title",label:"标题",show:!0},{name:"isUrgent",type:"slot",label:"是否紧急",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),g={type:"dept",current:a.pagination.current,size:a.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},o=s({...g}),i=()=>{a.tableType.tableLoading=!0,d.get("/api/notice/page",o.value).then(e=>{e.code==200&&(a.tableData=e.data.records,a.tableType.tableLoading=!1,a.pagination.total=e.data.total)}).catch(()=>{a.tableType.tableLoading=!1})},b=({type:e,data:t})=>{switch(e){case"create":k();break;case"edit":_(t);break;case"check":f(t);break;case"sort":z(t);break;case"search":v(t);break;case"customDelete":y(t);break}},h=e=>{a.pagination.current=e,o.value.current=e,i()},n=s(!1),c=s({}),f=e=>{n.value=!0,c.value={...e[0],files:JSON.parse(e[0].files)}},y=e=>{const t=e.map(l=>l.id);d.put("/api/notice/removeBatch",{ids:t}).then(l=>{l.code==200&&(B({message:"删除成功",type:"success"}),i())})},v=e=>{o.value.value=e.value,i()},z=e=>{e.name===""?(o.value.orderBy=void 0,o.value.column=void 0):(o.value.orderBy=e.sortType,o.value.column=e.name),i()},k=()=>{r.push("/zhgl/tzgl/operate?type=create")},_=e=>{const t=e[0].id;r.push(`/zhgl/tzgl/operate?type=edit&id=${t}`)};return P(()=>{i()}),(e,t)=>(V(),x("div",O,[m(T,N(a,{onHandleTableHeader:b,onHandleTablePagination:h,ref_key:"TableBodyRef",ref:u}),{isUrgent:A(({currentCol:l,currentData:p})=>[E("span",{style:L({color:p?"red":""})},H(p?"是":"否"),5)]),_:1},16),m(D,{dialogVisible:n.value,"onUpdate:dialogVisible":t[0]||(t[0]=l=>n.value=l),dialogData:c.value,pageType:{type:"tz",isShowRead:!1,isShowPerson:"tzgl"}},null,8,["dialogVisible","dialogData"])]))}};export{pe as default}; import{_ as T}from"./TableBody-8917f0e2.js";import{h as d}from"./index-8aa77b06.js";import{u as w}from"./vue-router-3598b468.js";import D from"./DetailDialog-5cd1f262.js";import{E as B}from"./element-plus-4b5d5603.js";import{f as s,a1 as S,k as P,o as V,c as x,d as m,T as A,a as E,Y as H,P as L,Q as N}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./@element-plus-a1a6045a.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const O={class:"example"},pe={__name:"index",setup(R){const r=w(),u=s(),a=S({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增通知",icon:"Plus",isOpen:"custom",disabled:!1,permission:"zhgl:tzgl:create"},{type:"custom",name:"edit",title:"修改",icon:"Edit",isOpen:"single",permission:"zhgl:tzgl:edit"},{type:"custom",name:"check",title:"查看",icon:"View",isOpen:"single",permission:"zhgl:tzgl:check"},{type:"popconfirm",name:"customDelete",title:"批量删除",icon:"Delete",isOpen:"Arbitrary",permission:"zhgl:tzgl:delete"}]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"title",label:"标题",show:!0},{name:"isUrgent",type:"slot",label:"是否紧急",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),g={type:"dept",current:a.pagination.current,size:a.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},o=s({...g}),i=()=>{a.tableType.tableLoading=!0,d.get("/api/notice/page",o.value).then(e=>{e.code==200&&(a.tableData=e.data.records,a.tableType.tableLoading=!1,a.pagination.total=e.data.total)}).catch(()=>{a.tableType.tableLoading=!1})},b=({type:e,data:t})=>{switch(e){case"create":k();break;case"edit":_(t);break;case"check":f(t);break;case"sort":z(t);break;case"search":v(t);break;case"customDelete":y(t);break}},h=e=>{a.pagination.current=e,o.value.current=e,i()},n=s(!1),c=s({}),f=e=>{n.value=!0,c.value={...e[0],files:JSON.parse(e[0].files)}},y=e=>{const t=e.map(l=>l.id);d.put("/api/notice/removeBatch",{ids:t}).then(l=>{l.code==200&&(B({message:"删除成功",type:"success"}),i())})},v=e=>{o.value.value=e.value,i()},z=e=>{e.name===""?(o.value.orderBy=void 0,o.value.column=void 0):(o.value.orderBy=e.sortType,o.value.column=e.name),i()},k=()=>{r.push("/zhgl/tzgl/operate?type=create")},_=e=>{const t=e[0].id;r.push(`/zhgl/tzgl/operate?type=edit&id=${t}`)};return P(()=>{i()}),(e,t)=>(V(),x("div",O,[m(T,N(a,{onHandleTableHeader:b,onHandleTablePagination:h,ref_key:"TableBodyRef",ref:u}),{isUrgent:A(({currentCol:l,currentData:p})=>[E("span",{style:L({color:p?"red":""})},H(p?"是":"否"),5)]),_:1},16),m(D,{dialogVisible:n.value,"onUpdate:dialogVisible":t[0]||(t[0]=l=>n.value=l),dialogData:c.value,pageType:{type:"tz",isShowRead:!1,isShowPerson:"tzgl"}},null,8,["dialogVisible","dialogData"])]))}};export{pe as default};

View File

@ -1 +1 @@
import{_ as k}from"./TableBody-814242b2.js";import{h as s}from"./index-79018977.js";import{u as _}from"./vue-router-3598b468.js";import x from"./FoodTypeDialog-2a28849b.js";import{E as T}from"./element-plus-4b5d5603.js";import{f as r,a1 as D,k as B,o as w,c as P,d as c,Q as A}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./@element-plus-a1a6045a.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash.clonedeep-7c3da1fa.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";/* empty css */import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const E={class:"example"},ie={__name:"index",setup(H){_();const i=r(),m=r(),t=D({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增",icon:"Plus",isOpen:"custom",disabled:!1,permission:"gxcc:lslxgl:create"},{type:"custom",name:"edit",title:"修改",icon:"Edit",isOpen:"single",permission:"gxcc:lslxgl:edit"},{type:"custom",name:"check",title:"查看",icon:"View",isOpen:"single",permission:"gxcc:lslxgl:check"},{type:"popconfirm",name:"customDelete",title:"批量删除",icon:"Delete",isOpen:"Arbitrary",permission:"gxcc:lslxgl:delete"}]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"type",label:"粮食类型",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),p={current:t.pagination.current,size:t.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},o=r({...p}),n=()=>{t.tableType.tableLoading=!0,s.get("/api/foodType/page",o.value).then(e=>{e.code==200&&(t.tableData=e.data.records,t.tableType.tableLoading=!1,t.pagination.total=e.data.total)}).catch(()=>{t.tableType.tableLoading=!1})},d=({type:e,data:a})=>{switch(e){case"create":y();break;case"edit":v(a);break;case"check":g(a);break;case"sort":h(a);break;case"search":f(a);break;case"customDelete":b(a);break}},u=e=>{t.pagination.current=e,o.value.current=e,n()},g=e=>{const a=e[0].id;i.value.changeDialog("check",a)},b=e=>{const a=e.map(l=>l.id);s.put("/api/foodType/removeBatch",{ids:a}).then(l=>{l.code==200&&(T({message:"删除成功",type:"success"}),n())})},f=e=>{o.value.value=e.value,n()},h=e=>{e.name===""?(o.value.orderBy=void 0,o.value.column=void 0):(o.value.orderBy=e.sortType,o.value.column=e.name),n()},y=()=>{i.value.changeDialog("create")},v=e=>{const a=e[0].id;i.value.changeDialog("edit",a)};return B(()=>{n()}),(e,a)=>(w(),P("div",E,[c(k,A(t,{onHandleTableHeader:d,onHandleTablePagination:u,ref_key:"TableBodyRef",ref:m}),null,16),c(x,{ref_key:"formDialog",ref:i,onInit:n},null,512)]))}};export{ie as default}; import{_ as k}from"./TableBody-8917f0e2.js";import{h as s}from"./index-8aa77b06.js";import{u as _}from"./vue-router-3598b468.js";import x from"./FoodTypeDialog-b2b53b95.js";import{E as T}from"./element-plus-4b5d5603.js";import{f as r,a1 as D,k as B,o as w,c as P,d as c,Q as A}from"./@vue-b2c9e7bc.js";import"./hevue-img-preview-4a7ab001.js";import"./@element-plus-a1a6045a.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./lodash.clonedeep-7c3da1fa.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";/* empty css */import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const E={class:"example"},ie={__name:"index",setup(H){_();const i=r(),m=r(),t=D({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增",icon:"Plus",isOpen:"custom",disabled:!1,permission:"gxcc:lslxgl:create"},{type:"custom",name:"edit",title:"修改",icon:"Edit",isOpen:"single",permission:"gxcc:lslxgl:edit"},{type:"custom",name:"check",title:"查看",icon:"View",isOpen:"single",permission:"gxcc:lslxgl:check"},{type:"popconfirm",name:"customDelete",title:"批量删除",icon:"Delete",isOpen:"Arbitrary",permission:"gxcc:lslxgl:delete"}]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"type",label:"粮食类型",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),p={current:t.pagination.current,size:t.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},o=r({...p}),n=()=>{t.tableType.tableLoading=!0,s.get("/api/foodType/page",o.value).then(e=>{e.code==200&&(t.tableData=e.data.records,t.tableType.tableLoading=!1,t.pagination.total=e.data.total)}).catch(()=>{t.tableType.tableLoading=!1})},d=({type:e,data:a})=>{switch(e){case"create":y();break;case"edit":v(a);break;case"check":g(a);break;case"sort":h(a);break;case"search":f(a);break;case"customDelete":b(a);break}},u=e=>{t.pagination.current=e,o.value.current=e,n()},g=e=>{const a=e[0].id;i.value.changeDialog("check",a)},b=e=>{const a=e.map(l=>l.id);s.put("/api/foodType/removeBatch",{ids:a}).then(l=>{l.code==200&&(T({message:"删除成功",type:"success"}),n())})},f=e=>{o.value.value=e.value,n()},h=e=>{e.name===""?(o.value.orderBy=void 0,o.value.column=void 0):(o.value.orderBy=e.sortType,o.value.column=e.name),n()},y=()=>{i.value.changeDialog("create")},v=e=>{const a=e[0].id;i.value.changeDialog("edit",a)};return B(()=>{n()}),(e,a)=>(w(),P("div",E,[c(k,A(t,{onHandleTableHeader:d,onHandleTablePagination:u,ref_key:"TableBodyRef",ref:m}),null,16),c(x,{ref_key:"formDialog",ref:i,onInit:n},null,512)]))}};export{ie as default};

View File

@ -1 +1 @@
import d from"./Manage-e3dd2b34.js";import f from"./Record-cd3686f0.js";import{a as u}from"./hevue-img-preview-4a7ab001.js";import{f as p,k as b,ag as s,o as n,c as v,d as o,T as e,S as x,W as k}from"./@vue-b2c9e7bc.js";import"./TableBody-814242b2.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./index-79018977.js";import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./FoodDialog-16e2701b.js";import"./lodash.clonedeep-7c3da1fa.js";/* empty css */const C={class:"food"},V={__name:"index",setup(g){const t=p("first"),a=p(!1),l=m=>{m=="second"&&(a.value=!0)};return b(()=>{}),(m,r)=>{const i=s("el-tab-pane"),_=s("el-tabs");return n(),v("div",C,[o(_,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=c=>t.value=c),class:"demo-tabs",onTabChange:l},{default:e(()=>[o(i,{label:"库存管理",name:"first"},{default:e(()=>[o(d)]),_:1}),o(i,{label:"变更记录",name:"second"},{default:e(()=>[a.value?(n(),x(f,{key:0})):k("",!0)]),_:1})]),_:1},8,["modelValue"])])}}},Z=u(V,[["__scopeId","data-v-3c9bd6d3"]]);export{Z as default}; import d from"./Manage-78c11dbb.js";import f from"./Record-82b9e452.js";import{a as u}from"./hevue-img-preview-4a7ab001.js";import{f as p,k as b,ag as s,o as n,c as v,d as o,T as e,S as x,W as k}from"./@vue-b2c9e7bc.js";import"./TableBody-8917f0e2.js";import"./element-plus-4b5d5603.js";import"./lodash-es-b9271f86.js";import"./@vueuse-9c157bcb.js";import"./@element-plus-a1a6045a.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-83dd9e59.js";import"./@imengyu-76f76aa5.js";import"./vue-2bd35934.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./index-8aa77b06.js";import"./vue-router-3598b468.js";import"./tools-0351b48a.js";import"./pinia-fd2dfb87.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./mitt-f7ef348c.js";import"./FoodDialog-586581cf.js";import"./lodash.clonedeep-7c3da1fa.js";/* empty css */const C={class:"food"},V={__name:"index",setup(g){const t=p("first"),a=p(!1),l=m=>{m=="second"&&(a.value=!0)};return b(()=>{}),(m,r)=>{const i=s("el-tab-pane"),_=s("el-tabs");return n(),v("div",C,[o(_,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=c=>t.value=c),class:"demo-tabs",onTabChange:l},{default:e(()=>[o(i,{label:"库存管理",name:"first"},{default:e(()=>[o(d)]),_:1}),o(i,{label:"变更记录",name:"second"},{default:e(()=>[a.value?(n(),x(f,{key:0})):k("",!0)]),_:1})]),_:1},8,["modelValue"])])}}},Z=u(V,[["__scopeId","data-v-3c9bd6d3"]]);export{Z as default};

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More