update
This commit is contained in:
parent
04178c4d38
commit
aa97d4fa65
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
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
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
|
@ -0,0 +1 @@
|
|||
import{f as g,h,ag as b,o as s,S as v,T as D,a as o,U as w,Z as _,Y as d,c as r,a7 as V,F as k,a0 as B}from"./@vue-5dd246aa.js";/* empty css */import{_ as x}from"./_plugin-vue_export-helper-c27b6911.js";const C={class:"notification-detail"},L=["innerHTML"],y={class:"notification-detail-files"},T=["onClick"],U={__name:"DetailDialog",props:{dialogVisible:{type:Boolean},dialogData:{}},emits:["update:dialogVisible"],setup(e,{emit:u}){const c=e,l=g(!1),f=t=>{http.downloadFile("/api/alteration/download",{params:{fileName:t.name,path:t.path},responseType:"blob"}).then(i=>{const n=window.URL.createObjectURL(i),a=document.createElement("a");a.download=t.name,a.href=n,a.click()})},m=t=>{u("update:dialogVisible",!1),t()};return h(()=>c.dialogVisible,()=>{c.dialogVisible&&(l.value=!0)},{immediate:!0}),(t,i)=>{const n=b("el-dialog");return s(),v(n,{modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=a=>l.value=a),title:"通知查看",width:"60%","before-close":m},{default:D(()=>[o("div",C,[w(o("div",{class:"notification-time"},d(e.dialogData.updatedAt),513),[[_,e.dialogData.updatedAt]]),o("h3",null,d(e.dialogData.title),1),o("div",{innerHTML:e.dialogData.content,class:"notification-detail-content"},null,8,L),o("div",y,[(s(!0),r(k,null,V(e.dialogData.files,(a,p)=>(s(),r("span",{class:"fileBox",key:p,onClick:B(F=>f(a),["stop"])},[o("span",null,d(a.name),1)],8,T))),128))])])]),_:1},8,["modelValue"])}}},E=x(U,[["__scopeId","data-v-b924e3bb"]]);export{E as default};
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
System.register(["./@vue-legacy-4de3d5b5.js","./DetailDialog.vue_vue_type_style_index_0_scoped_b924e3bb_lang-legacy-fc98f94b.js","./_plugin-vue_export-helper-legacy-762b7923.js"],(function(e,a){"use strict";var l,t,i,o,n,d,s,c,u,p,r,g,m,_,b;return{setters:[e=>{l=e.f,t=e.h,i=e.ag,o=e.o,n=e.S,d=e.T,s=e.a,c=e.U,u=e.Z,p=e.Y,r=e.c,g=e.a7,m=e.F,_=e.a0},null,e=>{b=e._}],execute:function(){const a={class:"notification-detail"},f=["innerHTML"],v={class:"notification-detail-files"},D=["onClick"],h={__name:"DetailDialog",props:{dialogVisible:{type:Boolean},dialogData:{}},emits:["update:dialogVisible"],setup(e,{emit:b}){const h=e,y=l(!1),V=e=>{b("update:dialogVisible",!1),e()};return t((()=>h.dialogVisible),(()=>{h.dialogVisible&&(y.value=!0)}),{immediate:!0}),(l,t)=>{const b=i("el-dialog");return o(),n(b,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=e=>y.value=e),title:"通知查看",width:"60%","before-close":V},{default:d((()=>[s("div",a,[c(s("div",{class:"notification-time"},p(e.dialogData.updatedAt),513),[[u,e.dialogData.updatedAt]]),s("h3",null,p(e.dialogData.title),1),s("div",{innerHTML:e.dialogData.content,class:"notification-detail-content"},null,8,f),s("div",v,[(o(!0),r(m,null,g(e.dialogData.files,((e,a)=>(o(),r("span",{class:"fileBox",key:a,onClick:_((a=>(e=>{http.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then((a=>{const l=window.URL.createObjectURL(a),t=document.createElement("a");t.download=e.name,t.href=l,t.click()}))})(e)),["stop"])},[s("span",null,p(e.name),1)],8,D)))),128))])])])),_:1},8,["modelValue"])}}};e("default",b(h,[["__scopeId","data-v-b924e3bb"]]))}}}));
|
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
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
|
@ -0,0 +1 @@
|
|||
import T from"./Upload-509db58e.js";import{h as _}from"./index-8fedfff0.js";import{c as $}from"./lodash.clonedeep-2f114c62.js";import{_ as I}from"./_plugin-vue_export-helper-c27b6911.js";import{E as f}from"./element-plus-a215fcb5.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-5dd246aa.js";/* empty css */import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.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";/* empty css */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"])}}},Ne=I(W,[["__scopeId","data-v-a8454a5e"]]);export{Ne as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{h as v}from"./index-8fedfff0.js";import{c as g}from"./lodash.clonedeep-2f114c62.js";import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import{f as r,h as I,k as L,ag as c,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-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.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";/* empty css */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:"工作状态"}),p=r(),m=r(!1),n=r([]),f=()=>{d.value=!1,x("update:dialogVisible",!1),n.value=g(l.value),p.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;p.value=t===l.value.length,m.value=t>0&&t<l.value.length};I(()=>C.dialogVisible,e=>{d.value=e,p.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=c("el-checkbox"),B=c("el-checkbox-group"),D=c("el-form"),h=c("el-button"),N=c("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:p.value,"onUpdate:modelValue":t[0]||(t[0]=o=>p.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"])])}}},ge=R(O,[["__scopeId","data-v-e0be88eb"]]);export{ge as default};
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{h as v}from"./index-8fedfff0.js";import{c as X}from"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as A}from"./_plugin-vue_export-helper-c27b6911.js";import{t as G}from"./tools-0351b48a.js";import{E as D}from"./element-plus-a215fcb5.js";import{l as y,f as i,a1 as H,k as J,ag as r,o as f,S as g,T as a,a as k,X as C,W as R,d as s,u,O as T,c as K,a7 as Q,F as Y}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";/* empty css */import"./core-js-c6c47c20.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.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:"tab-content"},ee={class:"dialog-footer"},te={__name:"FoodDialog",emits:["init"],setup(oe,{expose:B,emit:N}){const U=G.data.get("identity"),V=y(()=>!["create","edit","rk","ck"].includes(d.value));y(()=>d.value==="create");const _=y(()=>d.value==="ck"||d.value==="rk"),I=i();let F={deptId:void 0,foodTypeId:void 0,amount:0};const l=i({...F}),q=H({foodTypeId:[{required:!0,message:"请输入粮食类型",trigger:"blur"}],amount:[{required:!0,message:"请输入库存",trigger:"blur"}],deptId:[{required:!0,message:"请输入粮仓类型",trigger:"blur"}]}),n=i(!1),d=i(""),E=i(""),z=(t,e)=>{t==="create"?(n.value=!n.value,d.value="create",l.value=X(F)):(t==="rk"||t==="ck"||t==="check")&&v.get("/api/foodReserves/detail",{id:e}).then(p=>{n.value=!n.value,l.value={deptId:p.data.deptId,foodTypeId:p.data.foodTypeId,amount:t==="check"?p.data.amount:0},E.value=e,d.value=t})},L=async t=>{t&&await t.validate(async(e,p)=>{if(e){let m={...l.value},b={create:"add",rk:"warehousing",ck:"out_of_stock"};m.operationType=b[d.value];let c=await v.post("/api/foodReserves/operation",m);c.code==200?(D({message:c.message,type:"success"}),n.value=!1,N("init")):D.error(c.message)}})},h=i([]),M=()=>{v.get("/api/foodType/page",{size:999999,current:1}).then(t=>{t.code==200&&(h.value=t.data.records)})},w=i([]),P=()=>{v.get("/api/dept/tree").then(t=>{t.code==200&&(w.value=t.data.data)})};return J(()=>{M(),P()}),B({changeDialog:z}),(t,e)=>{const p=r("el-tree-select"),m=r("el-form-item"),b=r("el-option"),c=r("el-select"),S=r("el-input"),$=r("el-col"),j=r("el-row"),O=r("el-form"),x=r("el-button"),W=r("el-dialog");return f(),g(W,{modelValue:n.value,"onUpdate:modelValue":e[5]||(e[5]=o=>n.value=o),title:"粮食库存",width:"40%"},{footer:a(()=>[k("span",ee,[k("div",null,[d.value!="check"?(f(),g(x,{key:0,type:"primary",onClick:e[3]||(e[3]=o=>L(I.value))},{default:a(()=>[C("保存")]),_:1})):R("",!0),s(x,{onClick:e[4]||(e[4]=o=>n.value=!1)},{default:a(()=>[C("关闭")]),_:1})])])]),default:a(()=>[k("div",Z,[s(O,{ref_key:"ruleFormRef",ref:I,model:l.value,rules:q,"label-width":"180px",disabled:u(V),class:T(u(V)?"el-form-diabled":"")},{default:a(()=>[s(j,null,{default:a(()=>[s($,{span:24},{default:a(()=>[u(U).isLeader?(f(),g(m,{key:0,label:"粮仓类型:",prop:"deptId",class:T(u(_)?"form-item-diabled":"")},{default:a(()=>[s(p,{modelValue:l.value.deptId,"onUpdate:modelValue":e[0]||(e[0]=o=>l.value.deptId=o),data:w.value,clearable:"","check-strictly":"",placeholder:"请选择","render-after-expand":!1,disabled:u(_)},null,8,["modelValue","data","disabled"])]),_:1},8,["class"])):R("",!0),s(m,{label:"粮食类型:",prop:"foodTypeId",class:T(u(_)?"form-item-diabled":"")},{default:a(()=>[s(c,{modelValue:l.value.foodTypeId,"onUpdate:modelValue":e[1]||(e[1]=o=>l.value.foodTypeId=o),placeholder:"请选择",disabled:u(_)},{default:a(()=>[(f(!0),K(Y,null,Q(h.value,o=>(f(),g(b,{label:o.type,value:o.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","disabled"])]),_:1},8,["class"]),s(m,{label:d.value=="create"?"库存:":"变更库存:",prop:"amount"},{default:a(()=>[s(S,{modelValue:l.value.amount,"onUpdate:modelValue":e[2]||(e[2]=o=>l.value.amount=o),type:"number",oninput:"value=value.replace(/^0+(\\d)|[^\\d]+/g,'')",min:"0"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},Ne=A(te,[["__scopeId","data-v-9f2db06e"]]);export{Ne 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
|
@ -0,0 +1 @@
|
|||
import{h as f}from"./index-8fedfff0.js";import{c as M}from"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as S}from"./_plugin-vue_export-helper-c27b6911.js";import{E as c}from"./element-plus-a215fcb5.js";import{l as _,f as p,a1 as U,k as j,ag as s,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-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";/* empty css */import"./core-js-c6c47c20.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.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 r=await f.post("/api/foodType/save",d);r.code==200?(c({message:"新增成功",type:"success"}),t.value=!1,g("init")):c.error(r.message)}else{let r=await f.put(`/api/foodType/edit?id=${k.value}`,d);r.code==200?(c({message:"修改成功",type:"success"}),t.value=!1,g("init")):c.error(r.message)}}})};return j(()=>{}),h({changeDialog:N}),(o,e)=>{const m=s("el-input"),d=s("el-form-item"),r=s("el-col"),R=s("el-row"),$=s("el-form"),w=s("el-button"),I=s("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(r,{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"])}}},be=S(P,[["__scopeId","data-v-82a014d8"]]);export{be 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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{h as y}from"./index-8fedfff0.js";import"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as x}from"./_plugin-vue_export-helper-c27b6911.js";import{a as S}from"./vue-router-ab2ba79f.js";import{f as b,k,ag as _,o as s,c as u,S as v,W as L,F as w,a7 as B,T as o,d as i,a as t,Y as r,ax as I,ay as q}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.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";/* empty css */const p=e=>(I("data-v-16a0ab5c"),e=e(),q(),e),C={class:"tab-content"},N={class:"item-container"},T=p(()=>t("div",null,"处理人:",-1)),V={class:"item-container"},D=p(()=>t("div",null,"处理时间:",-1)),F={class:"item-container"},$=p(()=>t("div",null,"处理状态:",-1)),A={class:"item-container"},E=p(()=>t("div",null,"处理意见:",-1)),M={__name:"Log",setup(e){const d=S(),c=b([]),h=()=>{let m={edit:"personnel",change:"change",approve:"personnel",approve_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 k(()=>{h()}),(m,l)=>{const g=_("el-empty"),a=_("el-col"),f=_("el-row");return s(),u("div",C,[c.value.length===0?(s(),v(g,{key:0,description:"暂无"})):L("",!0),(s(!0),u(w,null,B(c.value,n=>(s(),v(f,null,{default:o(()=>[i(a,{span:8},{default:o(()=>[t("div",N,[T,t("div",null,r(n.approver),1)])]),_:2},1024),i(a,{span:8},{default:o(()=>[t("div",V,[D,t("div",null,r(n.createdAt),1)])]),_:2},1024),i(a,{span:8},{default:o(()=>[t("div",F,[$,t("div",null,r(n.auditState),1)])]),_:2},1024),i(a,{span:24},{default:o(()=>[t("div",A,[E,t("div",null,r(n.opinion),1)])]),_:2},1024)]),_:2},1024))),256))])}}},ut=x(M,[["__scopeId","data-v-16a0ab5c"]]);export{ut as default};
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{_}from"./TableBody-502f872d.js";import{h as c}from"./index-8fedfff0.js";import{u as D}from"./vue-router-ab2ba79f.js";import w from"./FoodDialog-b0cc34fc.js";import{t as x}from"./tools-0351b48a.js";import{E as m}from"./element-plus-a215fcb5.js";import{f as i,a1 as R,k as B,o as H,c as I,d as p,Q as L}from"./@vue-5dd246aa.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-ba666efa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";/* empty css */import"./lodash.clonedeep-2f114c62.js";import"./core-js-c6c47c20.js";/* empty css */import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.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={class:"example"},me={__name:"Manage",setup(N){const d=x.data.get("identity");D();const s=i(),u=i(),a=R({tableType:{selection:!0,tableLoading:!1,tableIndex:!1,changeHeight:302},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}}),g={current:a.pagination.current,size:a.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},o=i({...g}),n=()=>{a.tableType.tableLoading=!0,c.get("/api/foodReserves/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})},f=({type:e,data:t})=>{switch(e){case"create":T();break;case"check":h(t);break;case"customCK":r(t,"ck");break;case"customRK":r(t,"rk");break;case"sort":v(t);break;case"search":y(t);break;case"customDelete":k(t);break}},b=e=>{a.pagination.current=e,o.value.current=e,n()},h=e=>{const t=e[0].id;s.value.changeDialog("check",t)},k=e=>{let t={deptId:d.isLeader?e[0].deptId:void 0,foodTypeId:e[0].foodTypeId,operationType:"delete",amount:0};c.post("/api/foodReserves/operation",t).then(l=>{l.code==200?(m({message:"删除成功",type:"success"}),n()):m({message:l.message,type:"success"})})},y=e=>{o.value.value=e.value,n()},v=e=>{e.name===""?(o.value.orderBy=void 0,o.value.column=void 0):(o.value.orderBy=e.sortType,o.value.column=e.name),n()},T=()=>{s.value.changeDialog("create")},r=(e,t)=>{const l=e[0].id;s.value.changeDialog(t,l)};return B(()=>{n()}),(e,t)=>(H(),I("div",P,[p(_,L(a,{onHandleTableHeader:f,onHandleTablePagination:b,ref_key:"TableBodyRef",ref:u}),null,16),p(w,{ref_key:"formDialog",ref:s,onInit:n},null,512)]))}};export{me as default};
|
|
@ -0,0 +1 @@
|
|||
System.register(["./TableBody-legacy-5d4e6754.js","./index-legacy-3f7be535.js","./vue-router-legacy-1e8e1d15.js","./FoodDialog-legacy-e91d5ddc.js","./tools-legacy-fa9cbc87.js","./element-plus-legacy-efe0366d.js","./@vue-legacy-4de3d5b5.js","./_plugin-vue_export-helper-legacy-762b7923.js","./@element-plus-legacy-bb874362.js","./jspdf-legacy-62dde53b.js","./@babel-legacy-633f46ed.js","./fflate-legacy-e1443086.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./DetailDialog.vue_vue_type_style_index_0_scoped_b924e3bb_lang-legacy-fc98f94b.js","./lodash.clonedeep-legacy-81abd881.js","./core-js-legacy-b197ddf1.js","./Upload.vue_vue_type_style_index_0_scoped_f028b45f_lang-legacy-8434175c.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-c8e81244.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-b8c949e6.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,o,n,c,i,u,g,d,r,p,y;return{setters:[e=>{a=e._},e=>{s=e.h},e=>{t=e.u},e=>{o=e.default},e=>{n=e.t},e=>{c=e.E},e=>{i=e.f,u=e.a1,g=e.k,d=e.o,r=e.c,p=e.d,y=e.Q},null,null,null,null,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:"example"};e("default",{__name:"Manage",setup(e){const m=n.data.get("identity");t();const b=i(),j=i(),v=u({tableType:{selection:!0,tableLoading:!1,tableIndex:!1,changeHeight:302},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:v.pagination.current,size:v.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},f=i({...h}),k=()=>{v.tableType.tableLoading=!0,s.get("/api/foodReserves/page",f.value).then((e=>{200==e.code&&(v.tableData=e.data.records,v.tableType.tableLoading=!1,v.pagination.total=e.data.total)})).catch((()=>{v.tableType.tableLoading=!1}))},_=({type:e,data:l})=>{switch(e){case"create":L();break;case"check":D(l);break;case"customCK":B(l,"ck");break;case"customRK":B(l,"rk");break;case"sort":I(l);break;case"search":w(l);break;case"customDelete":T(l)}},x=e=>{console.log(e),v.pagination.current=e,f.value.current=e,k()},D=e=>{const l=e[0].id;b.value.changeDialog("check",l)},T=e=>{console.log(e[0]);let l={deptId:m.isLeader?e[0].deptId:void 0,foodTypeId:e[0].foodTypeId,operationType:"delete",amount:0};s.post("/api/foodReserves/operation",l).then((e=>{200==e.code?(c({message:"删除成功",type:"success"}),k()):c({message:e.message,type:"success"})}))},w=e=>{console.log(e.value),f.value.value=e.value,k()},I=e=>{""===e.name?(f.value.orderBy=void 0,f.value.column=void 0):(f.value.orderBy=e.sortType,f.value.column=e.name),k()},L=()=>{b.value.changeDialog("create")},B=(e,l)=>{const a=e[0].id;b.value.changeDialog(l,a)};return g((()=>{k()})),(e,s)=>(d(),r("div",l,[p(a,y(v,{onHandleTableHeader:_,onHandleTablePagination:x,ref_key:"TableBodyRef",ref:j}),null,16),p(o,{ref_key:"formDialog",ref:b,onInit:k},null,512)]))}})}}}));
|
|
@ -0,0 +1 @@
|
|||
import{a1 as x,aq as E,o as r,c as d,a as o,a0 as f,U as c,Z as b,d as m,u as i,O as N,Y as v,aj as S,S as u,F as $,a7 as q}from"./@vue-5dd246aa.js";import z from"./NodeType-51540b59.js";import{r as B,t as L}from"./optionConfig-cdce2392.js";import{a as D}from"./approver-8c13d8a1.js";import{C as M,E as V,P as W,a as j}from"./@icon-park-904b8974.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";const O={class:"y-flow-middle"},F={class:"y-flow-insert-wrapper"},P={class:"y-flow-insert"},T={key:0,class:"text"},U={class:"span"},R=o("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),Y={class:"person-list"},Z={class:"y-flow-line"},te={__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(y,{emit:a}){const e=y,l=D(),p=x({roleArray:B,typeArray:L,defaultRole:"未知",activeIndex:-1}),I=(s,t)=>{a("addApprover",e.nodeItem,t)},w=()=>{a("addCondition",e.nodeItem,"add")},k=()=>{a("removeApprover",e.nodeItem,e.parentNode)},h=(s,t)=>{s.titleEdit=t},_=(s,t)=>{s.title||(s.title="审批节点"),l.editTtitle(s.title),s.titleEdit=t},A=s=>{l.changeApprover(s),l.toggleApproverVisible(!0)};return(s,t)=>{const C=E("focus");return r(),d("div",O,[o("div",F,[o("div",P,[o("div",{class:"y-flow-node-wrapper",onMouseenter:t[4]||(t[4]=f(n=>p.activeIndex=e.nodeItem.nodeId,["self"])),onMouseleave:t[5]||(t[5]=f(n=>p.activeIndex=-1,["self"]))},[c(o("div",{class:"y-flow-node-del",onClick:k},[m(i(M),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[b,e.nodeItem.nodeId==p.activeIndex]]),o("div",{class:"y-flow-node",onClick:t[3]||(t[3]=n=>A(e.nodeItem))},[o("div",{class:N(["y-flow-node-head",[e.nodeItem.type==="approver"?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[o("div",{class:"y-flow-node-title",onClick:t[2]||(t[2]=f(n=>h(e.nodeItem,!0),["stop"]))},[e.nodeItem.titleEdit?c((r(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":t[0]||(t[0]=n=>e.nodeItem.title=n),onBlur:t[1]||(t[1]=n=>_(e.nodeItem,!1))},null,544)),[[S,e.nodeItem.title],[C]]):(r(),d("div",T,[o("span",U,v(e.nodeItem.title||e.nodeItem.name),1),m(i(V),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),e.nodeItem.type==="approver"?(r(),u(i(W),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(r(),u(i(j),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),R,o("div",Y,[(r(!0),d($,null,q(e.nodeItem.properties.persons,(n,g)=>(r(),d("div",{class:"person-add-item",key:g},v(n.realName),1))),128))])]),o("div",Z,[m(z,{branchItem:e.nodeItem,onAddApprover:I,onChangeCondition:w},null,8,["branchItem"])])],32)])])])}}};export{te as default};
|
|
@ -0,0 +1 @@
|
|||
System.register(["./@vue-legacy-4de3d5b5.js","./NodeType-legacy-a7b7be11.js","./optionConfig-legacy-708250f5.js","./approver-legacy-55837739.js","./@icon-park-legacy-d73df4b1.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js"],(function(e,t){"use strict";var o,l,n,a,d,i,s,r,p,c,f,u,v,m,y,I,k,g,w,h,j,A,C,b;return{setters:[e=>{o=e.a1,l=e.aq,n=e.o,a=e.c,d=e.a,i=e.a0,s=e.U,r=e.Z,p=e.d,c=e.u,f=e.O,u=e.Y,v=e.aj,m=e.S,y=e.F,I=e.a7},e=>{k=e.default},e=>{g=e.r,w=e.t},e=>{h=e.a},e=>{j=e.C,A=e.E,C=e.P,b=e.a},null,null],execute:function(){const t={class:"y-flow-middle"},x={class:"y-flow-insert-wrapper"},q={class:"y-flow-insert"},N={key:0,class:"text"},z={class:"span"},E=d("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),L={class:"person-list"},W={class:"y-flow-line"};e("default",{__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(e,{emit:O}){const _=e,B=h(),M=o({roleArray:g,typeArray:w,defaultRole:"未知",activeIndex:-1}),S=(e,t)=>{O("addApprover",_.nodeItem,t)},T=()=>{O("addCondition",_.nodeItem,"add")},U=()=>{O("removeApprover",_.nodeItem,_.parentNode)};return(e,o)=>{const g=l("focus");return n(),a("div",t,[d("div",x,[d("div",q,[d("div",{class:"y-flow-node-wrapper",onMouseenter:o[4]||(o[4]=i((e=>M.activeIndex=_.nodeItem.nodeId),["self"])),onMouseleave:o[5]||(o[5]=i((e=>M.activeIndex=-1),["self"]))},[s(d("div",{class:"y-flow-node-del",onClick:U},[p(c(j),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[r,_.nodeItem.nodeId==M.activeIndex]]),d("div",{class:"y-flow-node",onClick:o[3]||(o[3]=e=>{return t=_.nodeItem,B.changeApprover(t),void B.toggleApproverVisible(!0);var t})},[d("div",{class:f(["y-flow-node-head",["approver"===_.nodeItem.type?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[d("div",{class:"y-flow-node-title",onClick:o[2]||(o[2]=i((e=>{return t=_.nodeItem,o=!0,void(t.titleEdit=o);var t,o}),["stop"]))},[_.nodeItem.titleEdit?s((n(),a("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>_.nodeItem.title=e),onBlur:o[1]||(o[1]=e=>{return t=_.nodeItem,o=!1,t.title||(t.title="审批节点"),B.editTtitle(t.title),void(t.titleEdit=o);var t,o})},null,544)),[[v,_.nodeItem.title],[g]]):(n(),a("div",N,[d("span",z,u(_.nodeItem.title||_.nodeItem.name),1),p(c(A),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),"approver"===_.nodeItem.type?(n(),m(c(C),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(n(),m(c(b),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),E,d("div",L,[(n(!0),a(y,null,I(_.nodeItem.properties.persons,((e,t)=>(n(),a("div",{class:"person-add-item",key:t},u(e.realName),1)))),128))])]),d("div",W,[p(k,{branchItem:_.nodeItem,onAddApprover:S,onChangeCondition:T},null,8,["branchItem"])])],32)])])])}}})}}}));
|
|
@ -0,0 +1 @@
|
|||
import{b as h,c as v,d as u,B as k}from"./@icon-park-904b8974.js";import{f as l,ag as b,o as C,S as g,T as d,a as e,d as t,u as o}from"./@vue-5dd246aa.js";const w={class:"y-flow-select"},y={class:"item-icon"},B=e("p",{class:"item-des"},"审批节点",-1),q={class:"item-icon"},x=e("p",{class:"item-des"},"填写节点",-1),z={class:"item-icon"},L=e("p",{class:"item-des"},"条件分支",-1),N={class:"add-btn"},A={__name:"NodeType",props:{branchItem:{type:Object,default:{}}},emits:["addApprover","changeCondition"],setup(p,{emit:i}){const n=p;l(!1);const a=l(),r=c=>{a.value.hide(),i("addApprover",n.branchItem,c)},_=()=>{a.value.hide(),i("changeCondition",n.branchItem,"add")};return(c,s)=>{const f=b("el-popover");return C(),g(f,{placement:"top-start",width:250,trigger:"click",title:"标题",ref_key:"popoverRef",ref:a},{reference:d(()=>[e("span",N,[t(o(h),{theme:"filled",size:"16",fill:"#f5bc21",strokeWidth:3,strokeLinecap:"square"})])]),default:d(()=>[e("div",w,[e("div",{class:"item-wrapper",onClick:s[0]||(s[0]=m=>r("approver"))},[e("span",y,[t(o(v),{theme:"filled",size:"30",fill:"#3296fa",strokeWidth:3,strokeLinecap:"square"})]),B]),e("div",{class:"item-wrapper",onClick:s[1]||(s[1]=m=>r("fill"))},[e("span",q,[t(o(u),{theme:"filled",size:"30",fill:"#324963",strokeWidth:3,strokeLinecap:"square"})]),x]),e("div",{class:"item-wrapper",onClick:_},[e("span",z,[t(o(k),{theme:"filled",size:"30",fill:"#15bc83",strokeWidth:3,strokeLinecap:"square"})]),L])])]),_:1},512)}}};export{A as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{_ as D}from"./index-17ececf7.js";import O from"./Upload-509db58e.js";import{U as $}from"./index-2201e0ea.js";import h from"./DetailDialog-08a35719.js";import{u as B,a as J}from"./vue-router-ab2ba79f.js";import{h as g}from"./index-8fedfff0.js";import{_ as P}from"./_plugin-vue_export-helper-c27b6911.js";import{E as p}from"./element-plus-a215fcb5.js";import{l as y,f as n,k as R,ag as c,o as q,c as A,d as a,a as f,T as u,S as E,W as M,X as b,ax as T,ay as j}from"./@vue-5dd246aa.js";import"./@wangeditor-61a2cfac.js";import"./lodash.clonedeep-2f114c62.js";import"./core-js-c6c47c20.js";/* empty css */import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.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";/* empty css *//* empty css */const F=d=>(T("data-v-ec81ea01"),d=d(),j(),d),W={class:"card"},X=F(()=>f("div",{class:"line"},null,-1)),z={class:"page-content"},G=F(()=>f("p",{class:"page-content-title"},"通知新增",-1)),H={class:"bottom-item"},K={__name:"PageForm",setup(d){const w=B(),l=J();y(()=>!["create","edit"].includes(l.query.type)),y(()=>l.query.type==="create"),y(()=>l.query.type==="edit");const I=n(),t=n({userIds:[],content:"",files:[],title:""}),U=n({title:[{required:!0,message:"请输入",trigger:"blur"}],userIds:[{required:!0,message:"请输入选择人员",trigger:"blur"}]}),v=n(!1),V=n({}),N=()=>{v.value=!0,V.value={...t.value}},k=()=>{w.go(-1)},S=async i=>{i&&await i.validate(async(e,m)=>{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(l.query.type==="create"){let r=await g.post("/api/notice/save",o);r.code==200?(p({message:r.message,type:"success"}),k()):p.error(r.message)}else if(l.query.type==="edit"){let r=await g.put(`/api/notice/edit?id=${l.query.id}`,o);r.code==200?(p({message:r.message,type:"success"}),k()):p.error(r.message)}}})},_=n(!1),x=()=>{var i,e;if(((i=l.query)==null?void 0:i.type)==="check"||((e=l.query)==null?void 0:e.type)==="edit"){let m=l.query.id;g.get(`/api/notice/detail?id=${m}`).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},_.value=!0)})}else _.value=!0};return R(()=>{x()}),(i,e)=>{const m=c("el-input"),o=c("el-form-item"),r=c("el-button"),C=c("el-form");return q(),A("div",W,[a(D,{height:"60vh",value:t.value.content,"onUpdate:value":e[0]||(e[0]=s=>t.value.content=s)},null,8,["value"]),X,f("div",z,[G,a(C,{ref_key:"ruleFormRef",ref:I,"label-position":"top",model:t.value,rules:U.value,"label-width":"120px","status-icon":""},{default:u(()=>[a(o,{label:"标题",prop:"title"},{default:u(()=>[a(m,{modelValue:t.value.title,"onUpdate:modelValue":e[1]||(e[1]=s=>t.value.title=s)},null,8,["modelValue"])]),_:1}),a(o,{label:"接收人",prop:"userIds"},{default:u(()=>[_.value?(q(),E($,{key:0,userIds:t.value.userIds,"onUpdate:userIds":e[2]||(e[2]=s=>t.value.userIds=s)},null,8,["userIds"])):M("",!0)]),_:1}),a(o,{label:"附件",prop:"files"},{default:u(()=>[a(O,{modelValue:t.value.files,"onUpdate:modelValue":e[3]||(e[3]=s=>t.value.files=s),type:"create",disabled:!1},null,8,["modelValue"])]),_:1}),f("div",H,[a(r,{type:"primary",onClick:N},{default:u(()=>[b(" 预览内容 ")]),_:1}),a(r,{type:"primary",onClick:e[4]||(e[4]=s=>S(I.value))},{default:u(()=>[b(" 保存 ")]),_:1}),a(r,{onClick:e[5]||(e[5]=s=>i.$router.back())},{default:u(()=>[b(" 返回 ")]),_:1})])]),_:1},8,["model","rules"])]),a(h,{dialogVisible:v.value,"onUpdate:dialogVisible":e[6]||(e[6]=s=>v.value=s),dialogData:V.value},null,8,["dialogVisible","dialogData"])])}}},De=P(K,[["__scopeId","data-v-ec81ea01"]]);export{De as default};
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{_ as P}from"./index-17ececf7.js";import S from"./Upload-509db58e.js";import{u as U,a as I}from"./vue-router-ab2ba79f.js";import{h as g}from"./index-8fedfff0.js";/* empty css */import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import B from"./DetailDialog-08a35719.js";import{E as u}from"./element-plus-a215fcb5.js";import{l as y,f as p,k as A,ag as c,o as E,c as J,d as i,u as b,a as f,T as n,X as V,ax as M,ay as O}from"./@vue-5dd246aa.js";import"./@wangeditor-61a2cfac.js";import"./lodash.clonedeep-2f114c62.js";import"./core-js-c6c47c20.js";/* empty css */import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.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";/* empty css */const w=d=>(M("data-v-0e5e611e"),d=d(),O(),d),T={class:"card"},j=w(()=>f("div",{class:"line"},null,-1)),X={class:"page-content"},z=w(()=>f("p",{class:"page-content-title"},"制度新增",-1)),G={class:"bottom-item"},H={__name:"PageForm",setup(d){const x=U(),a=I(),_=y(()=>!["create","edit"].includes(a.query.type));y(()=>a.query.type==="create"),y(()=>a.query.type==="edit");const F=p(),t=p({content:"",files:[],title:""}),D=p({title:[{required:!0,message:"请输入",trigger:"blur"}]}),v=p(!1),q=p({}),h=()=>{v.value=!0,q.value={...t.value}},k=()=>{x.go(-1)},$=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(a.query.type==="create"){let l=await g.post("/api/institution/save",o);l.code==200?(u({message:l.message,type:"success"}),k()):u.error(l.message)}else if(a.query.type==="edit"){let l=await g.put(`/api/institution/edit?id=${a.query.id}`,o);l.code==200?(u({message:l.message,type:"success"}),k()):u.error(l.message)}}})},C=()=>{var r,e;if(((r=a.query)==null?void 0:r.type)==="check"||((e=a.query)==null?void 0:e.type)==="edit"){let m=a.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 A(()=>{C()}),(r,e)=>{const m=c("el-input"),o=c("el-form-item"),l=c("el-button"),N=c("el-form");return E(),J("div",T,[i(P,{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",X,[z,i(N,{ref_key:"ruleFormRef",ref:F,"label-position":"top",model:t.value,rules:D.value,"label-width":"120px",disabled:b(_),"status-icon":""},{default:n(()=>[i(o,{label:"标题",prop:"title"},{default:n(()=>[i(m,{modelValue:t.value.title,"onUpdate:modelValue":e[1]||(e[1]=s=>t.value.title=s)},null,8,["modelValue"])]),_:1}),i(o,{label:"附件",prop:"files"},{default:n(()=>[i(S,{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,[i(l,{type:"primary",onClick:h},{default:n(()=>[V(" 预览内容 ")]),_:1}),i(l,{type:"primary",onClick:e[3]||(e[3]=s=>$(F.value))},{default:n(()=>[V(" 保存 ")]),_:1}),i(l,{onClick:e[4]||(e[4]=s=>r.$router.back())},{default:n(()=>[V(" 返回 ")]),_:1})])]),_:1},8,["model","rules","disabled"])]),i(B,{dialogVisible:v.value,"onUpdate:dialogVisible":e[5]||(e[5]=s=>v.value=s),dialogData:q.value},null,8,["dialogVisible","dialogData"])])}}},$e=R(H,[["__scopeId","data-v-0e5e611e"]]);export{$e 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
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
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
|
@ -0,0 +1 @@
|
|||
import{_ as R}from"./TableBody-502f872d.js";import{h as m}from"./index-8fedfff0.js";import C from"./FoodDialog-b0cc34fc.js";import{t as D}from"./tools-0351b48a.js";import{f as r,a1 as N,k as I,ag as i,o as s,c as p,d,T as b,u as P,S as f,W as S,F as A,a7 as z,Q as F}from"./@vue-5dd246aa.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.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"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";/* empty css */import"./lodash.clonedeep-2f114c62.js";/* empty css */const q={class:"example"},_e={__name:"Record",setup(U){const g=D.data.get("identity"),u=r(),h=r(),o=N({tableType:{selection:!0,tableLoading:!1,tableIndex:!1,changeHeight:302},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}}),v={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({...v}),l=()=>{o.tableType.tableLoading=!0,m.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})},_=({type:e,data:t})=>{switch(e){case"check":k(t);break;case"sort":w(t);break;case"search":T(t);break}},y=e=>{o.pagination.current=e,a.value.current=e,l()},k=e=>{const t=e[0].id;u.value.changeDialog("check",t)},T=e=>{a.value.value=e.value,l()},w=e=>{e.name===""?(a.value.orderBy=void 0,a.value.column=void 0):(a.value.orderBy=e.sortType,a.value.column=e.name),l()},B=r([{name:"新增",value:"add"},{name:"删除",value:"delete"},{name:"入库",value:"warehousing"},{name:"出库",value:"out_of_stock"}]),c=r([]),L=()=>{m.get("/api/dept/tree").then(e=>{e.code==200&&(c.value=e.data.data)})};return I(()=>{l(),L()}),(e,t)=>{const V=i("el-tree-select"),x=i("el-option"),H=i("el-select");return s(),p("div",q,[d(R,F(o,{onHandleTableHeader:_,onHandleTablePagination:y,ref_key:"TableBodyRef",ref:h}),{TableHeaderRight:b(({selectData:E})=>[P(g).isLeader?(s(),f(V,{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"])):S("",!0),d(H,{modelValue:a.value.type,"onUpdate:modelValue":t[1]||(t[1]=n=>a.value.type=n),placeholder:"请选择操作类型",onChange:l,clearable:"",class:"status-select"},{default:b(()=>[(s(!0),p(A,null,z(B.value,n=>(s(),f(x,{key:n.value,label:n.name,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},16),d(C,{ref_key:"formDialog",ref:u,onInit:l},null,512)])}}};export{_e as default};
|
|
@ -0,0 +1 @@
|
|||
import{h as i}from"./index-8fedfff0.js";import{a as c}from"./vue-router-ab2ba79f.js";import{_ as m}from"./_plugin-vue_export-helper-c27b6911.js";import{f as s,ag as l,o as _,c as d,d as t,T as h}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.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";/* empty css */const u={class:"tab-content"},b={__name:"Record",setup(f){const o=c(),a=s([]);return(()=>{let r=o.query.id,p={edit:"personnel",change:"change",approve:"personnel",approve_change:"change"};i.get(`/api/alteration/alterationPage?id=${r}&personnelType=${p[o.query.type]}`).then(e=>{e.code==200&&(a.value=e.data)})})(),(r,p)=>{const e=l("el-table-column"),n=l("el-table");return _(),d("div",u,[t(n,{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"])])}}},M=m(b,[["__scopeId","data-v-cd583a47"]]);export{M 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
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
|
@ -0,0 +1 @@
|
|||
import{E as C}from"./jspdf-28a20e90.js";import{h as N}from"./@nidi-d5f71d77.js";import{f as y,h as R,ag as m,o as g,S as k,T as o,a as L,d as e,X as V,c as w,F as P,W as D,M as A,Y as v}from"./@vue-5dd246aa.js";function q(d,_,t){return new Promise(function(n,s){document.querySelector(`#${d}`).classList.add("derive"),N(document.querySelector(`#${d}`),{allowTaint:!1,taintTest:!1,logging:!1,useCORS:!0,dpi:window.devicePixelRatio*4,scale:4}).then(a=>{for(var p=new C(t,"mm","a4"),u=a.getContext("2d"),r=t=="p"?190:272,f=t=="p"?272:190,l=Math.floor(f*a.width/r),i=0;i<a.height;){var c=document.createElement("canvas");c.width=a.width,c.height=Math.min(l,a.height-i),c.getContext("2d").putImageData(u.getImageData(0,i,a.width,Math.min(l,a.height-i)),0,0),p.addImage(c.toDataURL("image/jpeg",1),"JPEG",10,10,r,Math.min(f,r*c.height/c.width)),i+=l,i<a.height&&p.addPage()}p.save(_+".pdf"),document.querySelector(`#${d}`).classList.remove("derive"),n()})})}const E={class:"dialog-footer"},F={__name:"ReportDialog",props:{ReportDialogData:{type:Object,default:()=>({title:"审批",type:"approve",data:{}})},modelValue:{}},emits:["update:modelValue","handleApprove"],setup(d,{emit:_}){const t=d,n=y(!1),s=y({}),a=()=>{n.value=!1,_("update:modelValue",!1)},p=()=>{_("handleApprove",s.value),a()};return R(()=>t.modelValue,u=>{t.modelValue&&(n.value=t.modelValue,t.ReportDialogData.type=="custom"?s.value=t.ReportDialogData.data:t.ReportDialogData.type=="approve"&&(s.value={status:"PASS"}))}),(u,r)=>{const f=m("el-input"),l=m("el-form-item"),i=m("el-radio"),c=m("el-radio-group"),S=m("el-form"),b=m("el-button"),x=m("el-dialog");return g(),k(x,{modelValue:n.value,"onUpdate:modelValue":r[2]||(r[2]=h=>n.value=h),title:"审批",width:"26%","before-close":a},{footer:o(()=>[L("span",E,[e(b,{onClick:a},{default:o(()=>[V("取消")]),_:1}),e(b,{type:"primary",onClick:p},{default:o(()=>[V(" 确认 ")]),_:1})])]),default:o(()=>[e(S,{model:s.value},{default:o(()=>[d.ReportDialogData.type=="approve"?(g(),w(P,{key:0},[e(l,{label:"审批意见"},{default:o(()=>[e(f,{modelValue:s.value.remarks,"onUpdate:modelValue":r[0]||(r[0]=h=>s.value.remarks=h),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),e(l,{label:"审批状态"},{default:o(()=>[e(c,{modelValue:s.value.status,"onUpdate:modelValue":r[1]||(r[1]=h=>s.value.status=h)},{default:o(()=>[e(i,{label:"PASS"},{default:o(()=>[V("同意")]),_:1}),e(i,{label:"REFUSE"},{default:o(()=>[V("拒绝")]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)):D("",!0),d.ReportDialogData.type=="custom"?A(u.$slots,"default",{key:1}):D("",!0)]),_:3},8,["model"])]),_:3},8,["modelValue"])}}};const U={key:0,style:{color:"#67c23a"}},$={key:1,style:{color:"#f56c6c"}},M={key:2},I={__name:"ReportLog",props:{ReportLogData:{type:Array,default:()=>[]},modelValue:{}},emits:["update:modelValue"],setup(d,{emit:_}){const t=d,n=y(!1),s=()=>{n.value=!1,_("update:modelValue",!1)};return R(()=>t.modelValue,a=>{t.modelValue&&(n.value=t.modelValue)}),(a,p)=>{const u=m("el-table-column"),r=m("el-table"),f=m("el-drawer");return g(),k(f,{modelValue:n.value,"onUpdate:modelValue":p[0]||(p[0]=l=>n.value=l),title:"日志","before-close":s,class:"report-drawer"},{default:o(()=>[e(r,{data:d.ReportLogData,stripe:"",border:"",style:{width:"100%"}},{default:o(()=>[e(u,{type:"index",width:"50"}),e(u,{prop:"createdName",label:"操作人"}),e(u,{prop:"createdAt",label:"时间"}),e(u,{label:"状态"},{default:o(l=>[l.row.statusName=="通过"?(g(),w("span",U,v(l.row.statusName),1)):l.row.statusName=="驳回"?(g(),w("span",$,v(l.row.statusName),1)):(g(),w("span",M,v(l.row.statusName),1))]),_:1}),e(u,{prop:"remarks",label:"建议"})]),_:1},8,["data"])]),_:1},8,["modelValue"])}}};export{F as _,I as a,q as h};
|
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
|
@ -0,0 +1 @@
|
|||
import"./index-8fedfff0.js";import"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as d}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import{l as _,o as s,c as n,a as i,F as u,a7 as m,M as p,P as v,u as f,O as b,Y as y}from"./@vue-5dd246aa.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=_(()=>e=>r.tabList.length-e);return(e,D)=>(s(),n("section",h,[i("nav",k,[(s(!0),n(u,null,m(t.tabList,(a,l)=>(s(),n("div",{style:v({zIndex:f(c)(l)}),class:b(["entDeclaration-nav-item",t.isActive===a?"active":""]),onClick:I=>o("clickItem",a)},y(a),15,g))),256))]),i("main",x,[p(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
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
|
@ -0,0 +1 @@
|
|||
import{f as _,h as L,ag as r,o as i,c as p,d as n,T as d,X as N,U as S,Z as A,a as h,F as z,a7 as T,W as v,a0 as b,Y as q,S as E}from"./@vue-5dd246aa.js";import{h as y}from"./index-8fedfff0.js";import{c as k}from"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as I}from"./_plugin-vue_export-helper-c27b6911.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.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";/* empty css */const R={class:"upload"},$={class:"empty"},j=["onClick"],M={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(w,{emit:c}){const a=w;_([]);const t=_([]),C=e=>!0,m=e=>k(e),g=e=>k(e);L(()=>a.modelValue,e=>{if(e===""||e===void 0||!e)return t.value=[];if(a.type==="edit"&&!Array.isArray(e)&&typeof e=="string")return t.value=[];t.value=g(a.modelValue)},{immediate:!0});const F=e=>{let s=e.file;const l=new FormData;l.append("file",s),y.post("/api/attachment/upload",l).then(o=>{o.code==200&&(t.value.push({name:o.data.name,path:o.data.path,size:s.size,suffix:o.data.suffix}),c("update:modelValue",m(t.value)))})},x=e=>{t.value.splice(e,1),c("update:modelValue",m(t.value))},B=e=>{y.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(s=>{const l=window.URL.createObjectURL(s),o=document.createElement("a");o.download=e.name,o.href=l,o.click()})};return(e,s)=>{const l=r("el-button"),o=r("el-upload"),U=r("CircleCloseFilled"),V=r("el-icon");return i(),p("div",R,[n(o,{multiple:"","show-file-list":!1,"before-upload":C,"http-request":F,disabled:a.disabled},{default:d(()=>[n(l,{type:"primary",plain:"",disabled:a.disabled},{default:d(()=>[N("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),S(h("span",$,"未选择任何文件",512),[[A,t.value.length===0]]),t.value.length>0?(i(!0),p(z,{key:0},T(t.value,(u,f)=>(i(),p("span",{class:"fileBox",key:f,onClick:b(D=>B(u),["stop"])},[h("span",null,q(u.name),1),a.disabled?v("",!0):(i(),E(V,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:b(D=>x(f),["stop"])},{default:d(()=>[n(U)]),_:2},1032,["onClick"]))],8,j))),128)):v("",!0)])}}},be=I(M,[["__scopeId","data-v-f028b45f"]]);export{be as default};
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
System.register(["./@vue-legacy-4de3d5b5.js","./index-legacy-3f7be535.js","./lodash.clonedeep-legacy-81abd881.js","./Upload.vue_vue_type_style_index_0_scoped_f028b45f_lang-legacy-8434175c.js","./_plugin-vue_export-helper-legacy-762b7923.js","./jspdf-legacy-62dde53b.js","./@babel-legacy-633f46ed.js","./fflate-legacy-e1443086.js","./vue-router-legacy-1e8e1d15.js","./tools-legacy-fa9cbc87.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./element-plus-legacy-efe0366d.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-c8e81244.js","./@element-plus-legacy-bb874362.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-b8c949e6.js","./core-js-legacy-b197ddf1.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","./js-cookie-legacy-c7672909.js","./DetailDialog.vue_vue_type_style_index_0_scoped_b924e3bb_lang-legacy-fc98f94b.js"],(function(e,l){"use strict";var a,s,t,n,o,u,c,d,i,p,y,r,g,m,j,f,v,_,b,h;return{setters:[e=>{a=e.f,s=e.h,t=e.ag,n=e.o,o=e.c,u=e.d,c=e.T,d=e.X,i=e.U,p=e.Z,y=e.a,r=e.F,g=e.a7,m=e.W,j=e.a0,f=e.Y,v=e.S},e=>{_=e.h},e=>{b=e.c},null,e=>{h=e._},null,null,null,null,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:"upload"},x={class:"empty"},k=["onClick"],w={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:h}){const w=e;a([]);const C=a([]),V=e=>!0,z=e=>b(e);s((()=>w.modelValue),(e=>{return""!==e&&void 0!==e&&e&&("edit"!==w.type||Array.isArray(e)||"string"!=typeof e)?void(C.value=(l=w.modelValue,b(l))):C.value=[];var l}),{immediate:!0});const F=e=>{let l=e.file;const a=new FormData;a.append("file",l),_.post("/api/attachment/upload",a).then((e=>{console.log(e,"res"),200==e.code&&(C.value.push({name:e.data.name,path:e.data.path,size:l.size,suffix:e.data.suffix}),h("update:modelValue",z(C.value)),console.log(w.modelValue,C.value))}))};return(e,a)=>{const s=t("el-button"),b=t("el-upload"),U=t("CircleCloseFilled"),B=t("el-icon");return n(),o("div",l,[u(b,{multiple:"","show-file-list":!1,"before-upload":V,"http-request":F,disabled:w.disabled},{default:c((()=>[u(s,{type:"primary",plain:"",disabled:w.disabled},{default:c((()=>[d("选择文件")])),_:1},8,["disabled"])])),_:1},8,["disabled"]),i(y("span",x,"未选择任何文件",512),[[p,0===C.value.length]]),C.value.length>0?(n(!0),o(r,{key:0},g(C.value,((e,l)=>(n(),o("span",{class:"fileBox",key:l,onClick:j((l=>(e=>{_.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"])},[y("span",null,f(e.name),1),w.disabled?m("",!0):(n(),v(B,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:j((e=>(e=>{C.value.splice(e,1),h("update:modelValue",z(C.value))})(l)),["stop"])},{default:c((()=>[u(U)])),_:2},1032,["onClick"]))],8,k)))),128)):m("",!0)])}}};e("default",h(w,[["__scopeId","data-v-f028b45f"]]))}}}));
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
System.register(["./pinia-legacy-99326f0e.js"],(function(e,t){"use strict";var r;return{setters:[e=>{r=e.d}],execute:function(){e("a",r("approver",{state:()=>({approverModalVisible:!1,approverItem:{properties:{}}}),actions:{editTtitle(e){this.approverItem.title=e,console.log(this.approverItem,"store标题")},toggleApproverVisible(e){this.$patch((t=>{t.approverModalVisible=e}))},changeApprover(e){this.$patch((t=>{t.approverItem=e}))},setNewApprover(e){this.$patch((t=>{console.log(e,"设置传入的值"),t.approverItem.title=e.title,t.approverItem.properties=e.properties,t.approverItem.authSettings=e.authSettings}))}}}))}}}));
|
|
@ -0,0 +1 @@
|
|||
import{u as b}from"./vue-router-ab2ba79f.js";import{h,a as k}from"./index-8fedfff0.js";import{t as x}from"./tools-0351b48a.js";import{E as c}from"./element-plus-a215fcb5.js";import{f as u,ag as t,o as C,S as y,T as s,a as F,d as r,X as g}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.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 se={__name:"change_password",setup(U){const m=b(),i=u(!0),p=u(null),P=u({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(d,e,a)=>{e!==o.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),o=u({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),_=()=>{p.value.validate(d=>{if(d)h.put("/api/auth/editPassword",{newPassword:o.value.newPassword,oldPassword:o.value.oldPassword}).then(e=>{e.code===200?(x.data.clear("user"),k("token"),c({message:e.message,type:"success"}),m.push("/grain/login")):c({message:e.message,type:"error"})});else return!1})},w=d=>{m.go(-1)};return(d,e)=>{const a=t("el-input"),n=t("el-form-item"),v=t("el-form"),f=t("el-button"),V=t("el-dialog");return C(),y(V,{modelValue:i.value,"onUpdate:modelValue":e[3]||(e[3]=l=>i.value=l),title:"修改密码",width:"350px","before-close":w},{footer:s(()=>[F("span",null,[r(f,{type:"primary",onClick:_},{default:s(()=>[g("保存")]),_:1}),r(f,{onClick:w},{default:s(()=>[g("关闭")]),_:1})])]),default:s(()=>[r(v,{ref_key:"ruleFormRef",ref:p,model:o.value,rules:P.value,"label-width":"100px"},{default:s(()=>[r(n,{label:"旧密码",prop:"oldPassword"},{default:s(()=>[r(a,{modelValue:o.value.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=l=>o.value.oldPassword=l),"show-password":""},null,8,["modelValue"])]),_:1}),r(n,{label:"新密码",prop:"newPassword"},{default:s(()=>[r(a,{modelValue:o.value.newPassword,"onUpdate:modelValue":e[1]||(e[1]=l=>o.value.newPassword=l),"show-password":""},null,8,["modelValue"])]),_:1}),r(n,{label:"新密码确认",prop:"confirmPassword"},{default:s(()=>[r(a,{modelValue:o.value.confirmPassword,"onUpdate:modelValue":e[2]||(e[2]=l=>o.value.confirmPassword=l),"show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}};export{se as default};
|
|
@ -0,0 +1 @@
|
|||
System.register(["./vue-router-legacy-1e8e1d15.js","./index-legacy-3f7be535.js","./tools-legacy-fa9cbc87.js","./element-plus-legacy-efe0366d.js","./@vue-legacy-4de3d5b5.js","./jspdf-legacy-62dde53b.js","./@babel-legacy-633f46ed.js","./fflate-legacy-e1443086.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./_plugin-vue_export-helper-legacy-762b7923.js","./DetailDialog.vue_vue_type_style_index_0_scoped_b924e3bb_lang-legacy-fc98f94b.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-c8e81244.js","./@element-plus-legacy-bb874362.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-b8c949e6.js","./core-js-legacy-b197ddf1.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,u,r,d,n,t,g,c,i,m,w;return{setters:[e=>{a=e.u},e=>{s=e.h,o=e.a},e=>{u=e.t},e=>{r=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,null,null,null],execute:function(){e("default",{__name:"change_password",setup(e){const l=a(),p=d(!0),y=d(null),j=d({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(e,l,a)=>{console.log(f.newPassword),console.log(l),l!==f.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),f=d({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),v=()=>{y.value.validate((e=>{if(!e)return console.log("error submit!"),!1;s.put("/api/auth/editPassword",{newPassword:f.value.newPassword,oldPassword:f.value.oldPassword}).then((e=>{200===e.code?(u.data.clear("user"),o("token"),r({message:e.message,type:"success"}),l.push("/grain/login")):r({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"),u=n("el-button"),r=n("el-dialog");return t(),g(r,{modelValue:p.value,"onUpdate:modelValue":l[3]||(l[3]=e=>p.value=e),title:"修改密码",width:"350px","before-close":P},{footer:c((()=>[i("span",null,[m(u,{type:"primary",onClick:v},{default:c((()=>[w("保存")])),_:1}),m(u,{onClick:P},{default:c((()=>[w("关闭")])),_:1})])])),default:c((()=>[m(o,{ref_key:"ruleFormRef",ref:y,model:f.value,rules:j.value,"label-width":"100px"},{default:c((()=>[m(s,{label:"旧密码",prop:"oldPassword"},{default:c((()=>[m(a,{modelValue:f.value.oldPassword,"onUpdate:modelValue":l[0]||(l[0]=e=>f.value.oldPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),m(s,{label:"新密码",prop:"newPassword"},{default:c((()=>[m(a,{modelValue:f.value.newPassword,"onUpdate:modelValue":l[1]||(l[1]=e=>f.value.newPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),m(s,{label:"新密码确认",prop:"confirmPassword"},{default:c((()=>[m(a,{modelValue:f.value.confirmPassword,"onUpdate:modelValue":l[2]||(l[2]=e=>f.value.confirmPassword=e),"show-password":""},null,8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["modelValue"])}}})}}}));
|
|
@ -0,0 +1 @@
|
|||
System.register(["./global-legacy-645676bb.js","./pinia-legacy-99326f0e.js"],(function(n,e){"use strict";var t,r;return{setters:[n=>{t=n.U},n=>{r=n.d}],execute:function(){n({a:function(n){if(!Array.isArray(n))return;let e=[];for(var t=0;t<n.length;t++){let c=n[t];for(var r=0;r<c.length;r++){let n={queAuth:2,queId:c[r].obj.name||c[r].obj.name};e.push(n)}}return e},b:function(n,e=[],r){for(let c=0;c<n;c++){let n={type:"condition",title:"条件名称",prevId:r,nodeId:"condition_"+t(),properties:{conditions:[[]]}};e.push(n)}return e},g:function(n,e){return{title:"审批节点",type:e,prevId:n,nodeId:"approver_"+t(),properties:{personJson:{},persons:[]}}},s:function(n,e,t){if(n instanceof Array){for(;e<0;)e+=n.length;for(;t<0;)t+=n.length;if(t>=n.length)for(var r=t-n.length+1;r--;)n.push(void 0);return n.splice(t,0,n.splice(e,1)[0]),n}console.log("arr must be Array!")}}),n("c",r("condition",{state:()=>({conditionModalVisible:!1,conditionAll:{},checkedCondition:[],branchInfo:{},currentBranch:{},currentBranchParent:{},currentBranchIndex:0}),actions:{addCondition(n){this.$patch((e=>{n&&delete e.conditionAll[n]}))},changeChecked(n){this.$patch((e=>{e.checkedCondition=n}))},changeBranch(n){this.$patch((e=>{e.branchInfo=n,e.currentBranch=n.branch,e.currentBranchIndex=n.index,e.currentBranchParent=n.parentBranch}))},changeBranchIndex(n){this.$patch((e=>{e.currentBranchIndex=n}))},setNewBranch({branch:n,index:e,conditions:t}){this.$patch((r=>{r.currentBranch.title=n.title,r.currentBranch.properties.conditions=t,r.currentBranchIndex=e}))},toggleVisible(n){this.$patch((e=>{e.conditionModalVisible=n}))}}}))}}}));
|
|
@ -0,0 +1 @@
|
|||
import{_ as x}from"./TableBody-502f872d.js";import{y as B}from"./yd_diaInput-b82b9572.js";import{h as d}from"./index-8fedfff0.js";import{E as n}from"./element-plus-a215fcb5.js";import{f as p,a1 as c,k as E,o as F,c as L,d as y,Q as A}from"./@vue-5dd246aa.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-ba666efa.js";import"./lodash.clonedeep-2f114c62.js";import"./core-js-c6c47c20.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";/* empty css */import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.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"},pe={__name:"department",setup(D){const u=p(!1),m=c({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:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),l=c({value:!1,changeValue:e=>{l.value=e}}),h=c([{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}]),b=p({code:"",name:"",pid:"",remarks:"",sortNo:0}),f=p({type:"create",name:"新增",id:""}),v=p({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),s=c({column:"sortNo",orderBy:"asc",value:void 0}),g=()=>{d.get("/api/dept/tree").then(e=>{e.code==200&&(h[0].options=e.data.data)})},i=()=>{m.tableType.tableLoading=!0,d.get("/api/dept/list",s).then(e=>{e.code==200&&(m.tableData=e.data,m.tableType.tableLoading=!1)}).catch(()=>{m.tableType.tableLoading=!1})},k=({type:e,data:t})=>{switch(e){case"create":w();break;case"edit":T(t);break;case"delete":N(t);break;case"sort":V(t);break;case"search":H(t);break}},N=e=>{const t=e.map(a=>a.id);d.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(n({message:"删除成功",type:"success"}),i(),g()):n({message:a.message,type:"error"})})},_=(e,t,a)=>{if(e==="create"){let o={...t};t.pid===""&&(o={...o,pid:0}),d.post("/api/dept/save",o).then(r=>{r.code==200?(n({message:r.message,type:"success"}),l.value=!1,i(),g()):n.error(r.message)})}else if(e==="edit"){let o={...t};t.pid===""&&(o={...o,pid:0}),d.put(`/api/dept/edit?id=${a}`,o).then(r=>{r.code==200?(n({message:r.message,type:"success"}),l.value=!1,i()):n.error(r.message)})}},w=()=>{l.value=!0,f.value={type:"create",name:"新增",id:""},u.value=!1,b.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},T=e=>{const t=e[0].id;u.value=!1,d.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},f.value={type:"edit",name:"编辑",id:t})})},H=e=>{s.value=e.value,i()},V=e=>{e.name===""?(s.orderBy=void 0,s.column=void 0):(s.orderBy=e.sortType,s.column=e.name),i()};return E(()=>{i(),g()}),(e,t)=>(F(),L("div",q,[y(x,A(m,{onHandleTableHeader:k}),null,16),y(B,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:u.value,buttonName:f.value,ruleForm:b.value,rules:v.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};export{pe as default};
|
|
@ -0,0 +1 @@
|
|||
System.register(["./TableBody-legacy-5d4e6754.js","./yd_diaInput-legacy-dbc46e62.js","./index-legacy-3f7be535.js","./element-plus-legacy-efe0366d.js","./@vue-legacy-4de3d5b5.js","./_plugin-vue_export-helper-legacy-762b7923.js","./@element-plus-legacy-bb874362.js","./lodash.clonedeep-legacy-81abd881.js","./core-js-legacy-b197ddf1.js","./jspdf-legacy-62dde53b.js","./@babel-legacy-633f46ed.js","./fflate-legacy-e1443086.js","./vue-router-legacy-1e8e1d15.js","./tools-legacy-fa9cbc87.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./DetailDialog.vue_vue_type_style_index_0_scoped_b924e3bb_lang-legacy-fc98f94b.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-c8e81244.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-b8c949e6.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,o,s,r,n,d,c,u,i,p;return{setters:[e=>{l=e._},e=>{t=e.y},e=>{o=e.h},e=>{s=e.E},e=>{r=e.f,n=e.a1,d=e.k,c=e.o,u=e.c,i=e.d,p=e.Q},null,null,null,null,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:"department",setup(e){const g=r(!1),m=n({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:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),y=n({value:!1,changeValue:e=>{y.value=e}}),b=n([{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}]),v=r({code:"",name:"",pid:"",remarks:"",sortNo:0}),j=r({type:"create",name:"新增",id:""}),h=r({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),k=n({column:"sortNo",orderBy:"asc",value:void 0}),_=()=>{o.get("/api/dept/tree").then((e=>{200==e.code&&(console.log("res",e),b[0].options=e.data.data)}))},w=()=>{m.tableType.tableLoading=!0,o.get("/api/dept/list",k).then((e=>{200==e.code&&(m.tableData=e.data,m.tableType.tableLoading=!1)})).catch((()=>{m.tableType.tableLoading=!1}))},N=({type:e,data:a})=>{switch(console.log(e,a),e){case"create":x();break;case"edit":console.log(e,a),H(a);break;case"delete":f(a);break;case"sort":B(a);break;case"search":L(a)}},f=e=>{const a=e.map((e=>e.id));console.log(a[0]),o.delete("/api/dept/remove",{params:{id:a[0]}}).then((e=>{200==e.code?(s({message:"删除成功",type:"success"}),w(),_()):s({message:e.message,type:"error"})}))},T=(e,a,l)=>{if(console.log(e,a,l),"create"===e){let e={...a};""===a.pid&&(e={...e,pid:0}),o.post("/api/dept/save",e).then((e=>{console.log(e),200==e.code?(s({message:e.message,type:"success"}),y.value=!1,w(),_()):s.error(e.message)}))}else if("edit"===e){let e={...a};""===a.pid&&(e={...e,pid:0}),o.put(`/api/dept/edit?id=${l}`,e).then((e=>{200==e.code?(s({message:e.message,type:"success"}),y.value=!1,w()):s.error(e.message)})),console.log(l)}},x=()=>{y.value=!0,j.value={type:"create",name:"新增",id:""},g.value=!1,v.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},H=e=>{const a=e[0].id;g.value=!1,o.get("/api/dept/detail",{id:a}).then((e=>{200===e.code&&(console.log(e),y.value=!0,v.value={paramKey:e.data.paramKey,paramValue:e.data.paramValue,remarks:e.data.remarks,sortNo:e.data.sortNo,code:e.data.data.code,name:e.data.data.name,pid:0==e.data.data.pid?"":e.data.data.pid,remarks:e.data.data.remarks,sortNo:e.data.data.sortNo},j.value={type:"edit",name:"编辑",id:a})}))},L=e=>{console.log(e.value),k.value=e.value,w()},B=e=>{""===e.name?(k.orderBy=void 0,k.column=void 0):(k.orderBy=e.sortType,k.column=e.name),w()};return d((()=>{w(),_()})),(e,o)=>(c(),u("div",a,[i(l,p(m,{onHandleTableHeader:N}),null,16),i(t,{inputArray:b,onHandleFrom:T,dialogVisible:y,control:g.value,buttonName:j.value,ruleForm:v.value,rules:h.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}})}}}));
|
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
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import N from"./Upload-509db58e.js";import{_ as P}from"./_plugin-vue_export-helper-c27b6911.js";import{f as o,a1 as g,n as R,ag as r,o as S,c as T,d as e,T as t,X as p,a as b}from"./@vue-5dd246aa.js";import"./index-8fedfff0.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.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";/* empty css */import"./lodash.clonedeep-2f114c62.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 s=r("el-table-column"),i=r("el-button"),q=r("el-table"),w=r("el-pagination"),F=r("el-form-item"),U=r("el-col"),$=r("el-row"),B=r("el-form"),E=r("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(s,{prop:"qiye",label:"附件名称",sortable:""}),e(s,{prop:"status",label:"文件类型",sortable:""}),e(s,{prop:"name",label:"上传人",sortable:""}),e(s,{prop:"lastname",label:"最后修改人",sortable:""}),e(s,{prop:"address",label:"最后修改日期",sortable:""}),e(s,{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"])])}}},ye=P(D,[["__scopeId","data-v-41b38f3f"]]);export{ye 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
Loading…
Reference in New Issue