This commit is contained in:
lijiaqi 2023-12-08 13:30:51 +08:00
parent 43c94106b4
commit 59621925cf
385 changed files with 1 additions and 2390 deletions

View File

@ -7,6 +7,7 @@
<option value="$PROJECT_DIR$/pom.xml" /> <option value="$PROJECT_DIR$/pom.xml" />
</list> </list>
</option> </option>
<option name="workspaceImportForciblyTurnedOn" value="true" />
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" /> <output url="file://$PROJECT_DIR$/out" />

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as t}from"./_plugin-vue_export-helper-c27b6911.js";import{o as a,c as o,ax as c,ay as _,a as s}from"./@vue-5dd246aa.js";const n={name:"Page404",computed:{message(){return"The webmaster said that you can not enter this page..."}}},p=e=>(c("data-v-544e9625"),e=e(),_(),e),r={class:"wscn-http404-container"},d=p(()=>s("div",{class:"wscn-http404"},[s("div",{class:"bullshit"},[s("div",{class:"bullshit__oops"},"404! 找不到页面"),s("a",{href:"",class:"bullshit__return-home"},"回到首页")])],-1)),i=[d];function l(e,h,u,m,f,v){return a(),o("div",r,i)}const g=t(n,[["render",l],["__scopeId","data-v-544e9625"]]);export{g as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
function f(e){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(e)}function l(e,r,t,n,a,c,i){try{var u=e[c](i),o=u.value}catch(y){t(y);return}u.done?r(o):Promise.resolve(o).then(n,a)}function p(e){return function(){var r=this,t=arguments;return new Promise(function(n,a){var c=e.apply(r,t);function i(o){l(c,n,a,i,u,"next",o)}function u(o){l(c,n,a,i,u,"throw",o)}i(void 0)})}}function m(e,r){if(f(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(f(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function s(e){var r=m(e,"string");return f(r)==="symbol"?r:String(r)}function b(e,r,t){return r=s(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}export{p as _,b as a,f as b};

View File

@ -1 +0,0 @@
System.register([],(function(t,r){"use strict";return{execute:function(){function r(n){return t("b",r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}),r(n)}function n(t,r,n,e,o,i,u){try{var c=t[i](u),f=c.value}catch(l){return void n(l)}c.done?r(f):Promise.resolve(f).then(e,o)}function e(t){var n=function(t,n){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,n||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===r(n)?n:String(n)}t({_:function(t){return function(){var r=this,e=arguments;return new Promise((function(o,i){var u=t.apply(r,e);function c(t){n(u,o,i,c,f,"next",t)}function f(t){n(u,o,i,c,f,"throw",t)}c(void 0)}))}},a:function(t,r,n){return(r=e(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t},b:r})}}}));

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

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

View File

@ -1 +0,0 @@
import{f,h as C,ag as a,o as h,S as k,T as e,a as y,d as l,X as d}from"./@vue-5dd246aa.js";const A={class:"dialog-footer"},N={__name:"Approve",props:{},emits:["update:modelValue","handleApprove"],setup(c,{emit:p}){const s=c,u=f(!1),o=f({status:"2"}),m=()=>{u.value=!1,o.value={status:"2"},p("update:modelValue",!1)},V=()=>{p("handleApprove",o.value),m()};return C(()=>s.modelValue,v=>{s.modelValue&&(u.value=s.modelValue)}),(v,t)=>{const b=a("el-input"),r=a("el-form-item"),_=a("el-radio"),g=a("el-radio-group"),w=a("el-form"),i=a("el-button"),x=a("el-dialog");return h(),k(x,{modelValue:u.value,"onUpdate:modelValue":t[2]||(t[2]=n=>u.value=n),title:"审批",width:"26%","before-close":m},{footer:e(()=>[y("span",A,[l(i,{onClick:m},{default:e(()=>[d("取消")]),_:1}),l(i,{type:"primary",onClick:V},{default:e(()=>[d(" 确认 ")]),_:1})])]),default:e(()=>[l(w,{model:o.value},{default:e(()=>[l(r,{label:"审批意见"},{default:e(()=>[l(b,{modelValue:o.value.auditOpinion,"onUpdate:modelValue":t[0]||(t[0]=n=>o.value.auditOpinion=n),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),l(r,{label:"审批状态"},{default:e(()=>[l(g,{modelValue:o.value.status,"onUpdate:modelValue":t[1]||(t[1]=n=>o.value.status=n)},{default:e(()=>[l(_,{label:"2"},{default:e(()=>[d("同意")]),_:1}),l(_,{label:"3"},{default:e(()=>[d("拒绝")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}};export{N as default};

View File

@ -1 +0,0 @@
System.register(["./@vue-legacy-4de3d5b5.js"],(function(e,l){"use strict";var a,u,t,o,d,n,r,s,m;return{setters:[e=>{a=e.f,u=e.h,t=e.ag,o=e.o,d=e.S,n=e.T,r=e.a,s=e.d,m=e.X}],execute:function(){const l={class:"dialog-footer"};e("default",{__name:"Approve",props:{},emits:["update:modelValue","handleApprove"],setup(e,{emit:i}){const p=e,f=a(!1),v=a({status:"2"}),V=()=>{f.value=!1,v.value={status:"2"},i("update:modelValue",!1)},c=()=>{i("handleApprove",v.value),V()};return u((()=>p.modelValue),(e=>{console.log(e,"newValue"),p.modelValue&&(f.value=p.modelValue)})),(e,a)=>{const u=t("el-input"),i=t("el-form-item"),p=t("el-radio"),_=t("el-radio-group"),g=t("el-form"),b=t("el-button"),y=t("el-dialog");return o(),d(y,{modelValue:f.value,"onUpdate:modelValue":a[2]||(a[2]=e=>f.value=e),title:"审批",width:"26%","before-close":V},{footer:n((()=>[r("span",l,[s(b,{onClick:V},{default:n((()=>[m("取消")])),_:1}),s(b,{type:"primary",onClick:c},{default:n((()=>[m(" 确认 ")])),_:1})])])),default:n((()=>[s(g,{model:v.value},{default:n((()=>[s(i,{label:"审批意见"},{default:n((()=>[s(u,{modelValue:v.value.auditOpinion,"onUpdate:modelValue":a[0]||(a[0]=e=>v.value.auditOpinion=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),s(i,{label:"审批状态"},{default:n((()=>[s(_,{modelValue:v.value.status,"onUpdate:modelValue":a[1]||(a[1]=e=>v.value.status=e)},{default:n((()=>[s(p,{label:"2"},{default:n((()=>[m("同意")])),_:1}),s(p,{label:"3"},{default:n((()=>[m("拒绝")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"])])),_:1},8,["modelValue"])}}})}}}));

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

View File

@ -1 +0,0 @@
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,S as b,X as V,W as u,a0 as U}from"./@vue-5dd246aa.js";import{h as k}from"./index-f5f02620.js";import{_ as E}from"./_plugin-vue_export-helper-c27b6911.js";import{E as M}from"./element-plus-a215fcb5.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";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 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},_=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"),x=n("el-table"),P=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":_,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(P,{key:0,modelValue:h.value,"onUpdate:modelValue":t[1]||(t[1]=i=>h.value=i),title:"查看已读人员",class:"person-drawer"},{default:r(()=>[d(x,{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)}}},we=E($,[["__scopeId","data-v-e2764a32"]]);export{we as default};

View File

@ -1 +0,0 @@
System.register(["./@vue-legacy-4de3d5b5.js","./index-legacy-8dd0de08.js","./_plugin-vue_export-helper-legacy-762b7923.js","./element-plus-legacy-efe0366d.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","./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,t,i,s,o,n,d,u,c,p,g,r,y,m,j,f,h,v,b,w;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,p=e.Z,g=e.Y,r=e.F,y=e.a7,m=e.S,j=e.X,f=e.W,h=e.a0},e=>{v=e.h},e=>{b=e._},e=>{w=e.E},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:"notification-detail"},D=["innerHTML"],V={class:"notification-detail-files"},_=["onClick"],k={key:0,class:"notification-footer-btn"},T={__name:"DetailDialog",props:{dialogVisible:{type:Boolean},dialogData:{},pageType:{type:Object,default:{type:"tz",isShowRead:!1,isShowPerson:!1}}},emits:["update:dialogVisible","init"],setup(e,{emit:b}){const T=e,S=a(!1),z=()=>{const e=T.dialogData.id;v.get(`/api/notice/read?id=${e}`).then((e=>{200==e.code&&(w.success(e.message||"阅读成功"),b("update:dialogVisible",!1),S.value=!1,b("init"))}))},C=a(!1),x=()=>{C.value=!0},L=e=>{b("update:dialogVisible",!1),e()};return t((()=>T.dialogVisible),(()=>{T.dialogVisible&&(S.value=!0)}),{immediate:!0}),(a,t)=>{const b=i("el-button"),w=i("el-dialog"),T=i("el-table-column"),U=i("el-table"),P=i("el-drawer");return s(),o(r,null,[n(w,{modelValue:S.value,"onUpdate:modelValue":t[0]||(t[0]=e=>S.value=e),title:"通知查看",width:"60%","before-close":L,top:"6vh"},{default:d((()=>[u("div",l,[c(u("div",{class:"notification-time"},g(e.dialogData.updatedAt),513),[[p,e.dialogData.updatedAt]]),u("h3",null,g(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:h((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,g(e.name),1)],8,_)))),128))]),"tz"==e.pageType.type?(s(),o("div",k,[e.pageType.isShowRead&&!e.dialogData.isRead?(s(),m(b,{key:0,type:"primary",size:"small",onClick:z},{default:d((()=>[j("已阅")])),_:1})):f("",!0),"tzgl"==e.pageType.isShowPerson||e.pageType.isShowPerson&&e.dialogData.isCreated?(s(),m(b,{key:1,onClick:x,type:"primary",size:"small"},{default:d((()=>[j("查看已读人员")])),_:1})):f("",!0)])):f("",!0)])])),_:1},8,["modelValue"]),"tzgl"==e.pageType.isShowPerson||e.pageType.isShowPerson&&e.dialogData.isCreated?(s(),m(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(T,{type:"index",width:"50"}),n(T,{prop:"userName",label:"已读人"}),n(T,{prop:"createdAt",label:"已读时间",width:"170"})])),_:1},8,["data"])])),_:1},8,["modelValue"])):f("",!0)],64)}}};e("default",b(T,[["__scopeId","data-v-e2764a32"]]))}}}));

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

View File

@ -1 +0,0 @@
import T from"./Upload-169fb11c.js";import{h as _}from"./index-f5f02620.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";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"])}}},ke=I(W,[["__scopeId","data-v-d70ea42b"]]);export{ke as default};

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 +0,0 @@
import{h as v}from"./index-f5f02620.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 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-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";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"])])}}},ve=R(O,[["__scopeId","data-v-e0be88eb"]]);export{ve as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{h as v}from"./index-f5f02620.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";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"])}}},Be=A(te,[["__scopeId","data-v-9f2db06e"]]);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

View File

@ -1 +0,0 @@
import{h as f}from"./index-f5f02620.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";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"])}}},ye=S(P,[["__scopeId","data-v-82a014d8"]]);export{ye 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

View File

@ -1 +0,0 @@
import{f as v,h as y,ag as u,o,S as V,T as s,d as t,a as b,Y as r,P as g,c as d,W as N}from"./@vue-5dd246aa.js";const h={key:0,style:{color:"#67c23a"}},R={key:1,style:{color:"#f56c6c"}},k={key:2,style:{color:"#909399"}},x={__name:"ListDialog",props:{ReportLogData:{type:Array,default:()=>[]},modelValue:{}},emits:["update:modelValue"],setup(c,{emit:_}){const n=c,l=v(!1),p=()=>{l.value=!1,_("update:modelValue",!1)};return y(()=>n.modelValue,i=>{n.modelValue&&(l.value=n.modelValue)}),(i,m)=>{const a=u("el-table-column"),w=u("el-table"),f=u("el-drawer");return o(),V(f,{modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=e=>l.value=e),title:"决策列表","before-close":p,class:"report-drawer"},{default:s(()=>[t(w,{data:c.ReportLogData,stripe:"",border:"",style:{width:"100%"}},{default:s(()=>[t(a,{type:"index",width:"50"}),t(a,{prop:"userName",label:"参会人员姓名"}),t(a,{prop:"voteTime",label:"决策时间",width:"170"}),t(a,{label:"是否决策"},{default:s(e=>[b("span",{style:g({color:e.row.voteStatus?"#67c23a":"#f56c6c"})},r(e.row.voteStatus?"是":"否"),5)]),_:1}),t(a,{label:"决策状态"},{default:s(e=>[e.row.voteResultName=="赞同"?(o(),d("span",h,r(e.row.voteResultName),1)):e.row.voteResultName=="反对"?(o(),d("span",R,r(e.row.voteResultName),1)):e.row.voteResultName=="弃权"?(o(),d("span",k,r(e.row.voteResultName),1)):N("",!0)]),_:1}),t(a,{prop:"voteSuggest",label:"建议"})]),_:1},8,["data"])]),_:1},8,["modelValue"])}}};export{x 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 +0,0 @@
import{h as y}from"./index-f5f02620.js";import"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as k}from"./_plugin-vue_export-helper-c27b6911.js";import{a as x}from"./vue-router-ab2ba79f.js";import{f as S,k as b,ag as _,o as s,c as u,S as h,W as L,F as w,a7 as B,T as e,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";const p=o=>(I("data-v-706b4881"),o=o(),q(),o),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(o){const d=x(),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 b(()=>{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:e(()=>[i(n,{span:8},{default:e(()=>[t("div",N,[T,t("div",null,r(a.approver),1)])]),_:2},1024),i(n,{span:8},{default:e(()=>[t("div",V,[D,t("div",null,r(a.createdAt),1)])]),_:2},1024),i(n,{span:8},{default:e(()=>[t("div",F,[$,t("div",null,r(a.auditState),1)])]),_:2},1024),i(n,{span:24},{default:e(()=>[t("div",A,[E,t("div",null,r(a.opinion),1)])]),_:2},1024)]),_:2},1024))),256))])}}},mt=k(M,[["__scopeId","data-v-706b4881"]]);export{mt as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_}from"./TableBody-6182b74b.js";import{h as c}from"./index-f5f02620.js";import{u as D}from"./vue-router-ab2ba79f.js";import w from"./FoodDialog-6363fbd6.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";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"},ce={__name:"Manage",setup(N){const d=x.data.get("identity");D();const s=i(),u=i(),t=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:t.pagination.current,size:t.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},o=i({...g}),n=()=>{t.tableType.tableLoading=!0,c.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})},f=({type:e,data:a})=>{switch(e){case"create":T();break;case"check":h(a);break;case"customCK":r(a,"ck");break;case"customRK":r(a,"rk");break;case"sort":v(a);break;case"search":y(a);break;case"customDelete":k(a);break}},b=e=>{t.pagination.current=e,o.value.current=e,n()},h=e=>{const a=e[0].id;s.value.changeDialog("check",a)},k=e=>{let a={deptId:d.isLeader?e[0].deptId:void 0,foodTypeId:e[0].foodTypeId,operationType:"delete",amount:0};c.post("/api/foodReserves/operation",a).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,a)=>{const l=e[0].id;s.value.changeDialog(a,l)};return B(()=>{n()}),(e,a)=>(H(),I("div",P,[p(_,L(t,{onHandleTableHeader:f,onHandleTablePagination:b,ref_key:"TableBodyRef",ref:u}),null,16),p(w,{ref_key:"formDialog",ref:s,onInit:n},null,512)]))}};export{ce as default};

View File

@ -1 +0,0 @@
System.register(["./TableBody-legacy-7e2c1d77.js","./index-legacy-8dd0de08.js","./vue-router-legacy-1e8e1d15.js","./FoodDialog-legacy-78998013.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","./lodash.clonedeep-legacy-81abd881.js","./core-js-legacy-b197ddf1.js","./Upload.vue_vue_type_style_index_0_scoped_f028b45f_lang-legacy-8f32230c.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],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":w(l);break;case"customCK":B(l,"ck");break;case"customRK":B(l,"rk");break;case"sort":I(l);break;case"search":D(l);break;case"customDelete":x(l)}},T=e=>{console.log(e),v.pagination.current=e,f.value.current=e,k()},w=e=>{const l=e[0].id;b.value.changeDialog("check",l)},x=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"})}))},D=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:T,ref_key:"TableBodyRef",ref:j}),null,16),p(o,{ref_key:"formDialog",ref:b,onInit:k},null,512)]))}})}}}));

View File

@ -1 +0,0 @@
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-9eaac40d.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};

View File

@ -1 +0,0 @@
System.register(["./@vue-legacy-4de3d5b5.js","./NodeType-legacy-d825d152.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,d,a,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,d=e.c,a=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=a("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 B=e,M=h(),S=o({roleArray:g,typeArray:w,defaultRole:"未知",activeIndex:-1}),T=(e,t)=>{O("addApprover",B.nodeItem,t)},U=()=>{O("addCondition",B.nodeItem,"add")},V=()=>{O("removeApprover",B.nodeItem,B.parentNode)};return(e,o)=>{const g=l("focus");return n(),d("div",t,[a("div",x,[a("div",q,[a("div",{class:"y-flow-node-wrapper",onMouseenter:o[4]||(o[4]=i((e=>S.activeIndex=B.nodeItem.nodeId),["self"])),onMouseleave:o[5]||(o[5]=i((e=>S.activeIndex=-1),["self"]))},[s(a("div",{class:"y-flow-node-del",onClick:V},[p(c(j),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[r,B.nodeItem.nodeId==S.activeIndex]]),a("div",{class:"y-flow-node",onClick:o[3]||(o[3]=e=>{return t=B.nodeItem,M.changeApprover(t),void M.toggleApproverVisible(!0);var t})},[a("div",{class:f(["y-flow-node-head",["approver"===B.nodeItem.type?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[a("div",{class:"y-flow-node-title",onClick:o[2]||(o[2]=i((e=>{return t=B.nodeItem,o=!0,void(t.titleEdit=o);var t,o}),["stop"]))},[B.nodeItem.titleEdit?s((n(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>B.nodeItem.title=e),onBlur:o[1]||(o[1]=e=>{return t=B.nodeItem,o=!1,t.title||(t.title="审批节点"),M.editTtitle(t.title),void(t.titleEdit=o);var t,o})},null,544)),[[v,B.nodeItem.title],[g]]):(n(),d("div",N,[a("span",z,u(B.nodeItem.title||B.nodeItem.name),1),p(c(A),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),"approver"===B.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,a("div",L,[(n(!0),d(y,null,I(B.nodeItem.properties.persons,((e,t)=>(n(),d("div",{class:"person-add-item",key:t},u(e.realName),1)))),128))])]),a("div",W,[p(k,{branchItem:B.nodeItem,onAddApprover:T,onChangeCondition:U},null,8,["branchItem"])])],32)])])])}}})}}}));

View File

@ -1 +0,0 @@
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

View File

@ -1 +0,0 @@
import{_ as C}from"./index-5688348e.js";import N from"./Upload-169fb11c.js";import{u as R,a as U}from"./vue-router-ab2ba79f.js";import{h as g}from"./index-f5f02620.js";/* empty css */import{_ as I}from"./_plugin-vue_export-helper-c27b6911.js";import B from"./DetailDialog-84934d5d.js";import{E as u}from"./element-plus-a215fcb5.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,ax as J,ay as M}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";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:""}),x=d({title:[{required:!0,message:"请输入",trigger:"blur"}]}),v=d(!1),q=d({}),D=()=>{v.value=!0,q.value={...t.value}},w=()=>{h.go(-1)},S=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:x.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:D},{default:n(()=>[V(" 预览内容 ")]),_:1}),l(a,{type:"primary",onClick:e[3]||(e[3]=s=>S(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"])])}}},De=I(H,[["__scopeId","data-v-0d362498"]]);export{De as default};

View File

@ -1 +0,0 @@
import{_ as $}from"./index-5688348e.js";import h from"./Upload-169fb11c.js";import{U as P}from"./index-802f427a.js";import R from"./DetailDialog-84934d5d.js";import{u as B,a as J}from"./vue-router-ab2ba79f.js";import{h as b}from"./index-f5f02620.js";import{_ as T}from"./_plugin-vue_export-helper-c27b6911.js";import{E as p}from"./element-plus-a215fcb5.js";import{l as U,f as n,k as A,ag as d,o as q,c as E,d as l,a as _,T as r,X as m,S as M,W as j,ax as z,ay as W}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=f=>(z("data-v-d181fdd5"),f=f(),W(),f),X={class:"card"},G=w(()=>_("div",{class:"line"},null,-1)),H={class:"page-content"},K=w(()=>_("p",{class:"page-content-title"},"通知新增",-1)),L={class:"bottom-item"},Q={__name:"PageForm",setup(f){const F=B(),i=J();U(()=>!["create","edit"].includes(i.query.type)),U(()=>i.query.type==="create"),U(()=>i.query.type==="edit");const V=n(),t=n({userIds:[],content:"",files:[],title:"",isUrgent:!1}),S=n({title:[{required:!0,message:"请输入",trigger:"blur"}],isUrgent:[{required:!0,message:"请选择",trigger:"blur"}]}),g=n(!1),I=n({}),x=()=>{g.value=!0,I.value={...t.value}},k=()=>{F.go(-1)},N=async u=>{u&&await u.validate(async(e,c)=>{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 s=await b.post("/api/notice/save",o);s.code==200?(p({message:s.message,type:"success"}),k()):p.error(s.message)}else if(i.query.type==="edit"){let s=await b.put(`/api/notice/edit?id=${i.query.id}`,o);s.code==200?(p({message:s.message,type:"success"}),k()):p.error(s.message)}}})},v=n(!1),C=()=>{var u,e;if(((u=i.query)==null?void 0:u.type)==="check"||((e=i.query)==null?void 0:e.type)==="edit"){let c=i.query.id;b.get(`/api/notice/detail?id=${c}`).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},v.value=!0)})}else v.value=!0};return A(()=>{C()}),(u,e)=>{const c=d("el-input"),o=d("el-form-item"),s=d("el-radio"),D=d("el-radio-group"),y=d("el-button"),O=d("el-form");return q(),E("div",X,[l($,{height:"60vh",value:t.value.content,"onUpdate:value":e[0]||(e[0]=a=>t.value.content=a)},null,8,["value"]),G,_("div",H,[K,l(O,{ref_key:"ruleFormRef",ref:V,"label-position":"top",model:t.value,rules:S.value,"label-width":"120px","status-icon":""},{default:r(()=>[l(o,{label:"标题",prop:"title"},{default:r(()=>[l(c,{modelValue:t.value.title,"onUpdate:modelValue":e[1]||(e[1]=a=>t.value.title=a)},null,8,["modelValue"])]),_:1}),l(o,{label:"是否紧急",prop:"isUrgent"},{default:r(()=>[l(D,{modelValue:t.value.isUrgent,"onUpdate:modelValue":e[2]||(e[2]=a=>t.value.isUrgent=a)},{default:r(()=>[l(s,{label:!0},{default:r(()=>[m("是")]),_:1}),l(s,{label:!1,style:{"margin-left":"30px"}},{default:r(()=>[m("否")]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(o,{label:"接收人:不选默认全体",prop:"userIds"},{default:r(()=>[v.value?(q(),M(P,{key:0,userIds:t.value.userIds,"onUpdate:userIds":e[3]||(e[3]=a=>t.value.userIds=a)},null,8,["userIds"])):j("",!0)]),_:1}),l(o,{label:"附件",prop:"files"},{default:r(()=>[l(h,{modelValue:t.value.files,"onUpdate:modelValue":e[4]||(e[4]=a=>t.value.files=a),type:"create",disabled:!1},null,8,["modelValue"])]),_:1}),_("div",L,[l(y,{type:"primary",onClick:x},{default:r(()=>[m(" 预览内容 ")]),_:1}),l(y,{type:"primary",onClick:e[5]||(e[5]=a=>N(V.value))},{default:r(()=>[m(" 保存 ")]),_:1}),l(y,{onClick:e[6]||(e[6]=a=>u.$router.back())},{default:r(()=>[m(" 返回 ")]),_:1})])]),_:1},8,["model","rules"])]),l(R,{dialogVisible:g.value,"onUpdate:dialogVisible":e[7]||(e[7]=a=>g.value=a),dialogData:I.value,pageType:{type:"tz",isShowRead:!1,isShowPerson:!1}},null,8,["dialogVisible","dialogData"])])}}},Oe=T(Q,[["__scopeId","data-v-d181fdd5"]]);export{Oe 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

View File

@ -1 +0,0 @@
import{h as l}from"./index-f5f02620.js";import{a as i}from"./vue-router-ab2ba79f.js";import{_ as s}from"./_plugin-vue_export-helper-c27b6911.js";import{f as m,ag as n,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";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"])])}}},L=s(f,[["__scopeId","data-v-c5496df1"]]);export{L as default};

View File

@ -1 +0,0 @@
import{_ as R}from"./TableBody-6182b74b.js";import{h as m}from"./index-f5f02620.js";import C from"./FoodDialog-6363fbd6.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";import"./lodash.clonedeep-2f114c62.js";/* empty css */const q={class:"example"},ve={__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{ve 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

View File

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

View File

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

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{E as u}from"./jspdf-28a20e90.js";import{h as s}from"./@nidi-d5f71d77.js";function _(h,n,o){return new Promise(function(l,c){document.querySelector(`#${h}`).classList.add("derive"),s(document.querySelector(`#${h}`),{allowTaint:!1,taintTest:!1,logging:!1,useCORS:!0,dpi:window.devicePixelRatio*4,scale:4}).then(e=>{for(var r=new u(o,"mm","a4"),g=e.getContext("2d"),d=o=="p"?190:272,m=o=="p"?272:190,a=Math.floor(m*e.width/d),t=0;t<e.height;){var i=document.createElement("canvas");i.width=e.width,i.height=Math.min(a,e.height-t),i.getContext("2d").putImageData(g.getImageData(0,t,e.width,Math.min(a,e.height-t)),0,0),r.addImage(i.toDataURL("image/jpeg",1),"JPEG",10,10,d,Math.min(m,d*i.height/i.width)),t+=a,t<e.height&&r.addPage()}r.save(n+".pdf"),document.querySelector(`#${h}`).classList.remove("derive"),l()})})}export{_ as h};

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