engineering/public/admin/assets/index.d351bc0e.js
2024-03-04 15:04:21 +08:00

2 lines
6.7 KiB
JavaScript

import{I as W,y as M,w as U,D as O,C as G,L as H,M as J,N as K}from"./element-plus.258bf9e7.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as Y,a as Z}from"./index.ec401e3b.js";import{_ as ee}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as oe}from"./usePaging.f6660143.js";import{u as te}from"./useDictOptions.c644f395.js";import{_ as le,a as C,b as ae,c as ue}from"./edit.vue_vue_type_script_setup_true_name_applyWithSealEdit_lang.5394a331.js";import"./lodash.1d82ee7c.js";import{d as j,s as pe,r as D,a0 as se,ai as ie,o as s,c as ne,V as e,M as t,O as d,u as a,L as r,S as re,a as k,k as me,T as m,n as A}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_style_index_0_lang.0ff67de9.js";import"./common.c510575b.js";import"./index.vue_vue_type_script_setup_true_lang.c11935ba.js";import"./cost_project.2762b876.js";import"./index.a7758114.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";const _e=m("\u67E5\u8BE2"),ce=m("\u91CD\u7F6E"),de=m(" \u65B0\u589E "),fe=m(" \u5220\u9664 "),we={class:"mt-4"},he=m(" \u7F16\u8F91 "),ve=m(" \u5220\u9664 "),Ee={class:"flex justify-end mt-4"},Fe=j({name:"applyWithSealLists"}),wo=j({...Fe,setup(be){const f=pe(),w=D(!1),_=se({num:""}),b=D([]),V=p=>{b.value=p.map(({id:u})=>u)},{dictData:h}=te("apply_with_seal_type,apply_with_seal_file_type,isqfgz"),{pager:i,getLists:v,resetParams:x,resetPage:S}=oe({fetchFun:C,params:_}),$=async()=>{var p;w.value=!0,await A(),(p=f.value)==null||p.open("add")},L=async p=>{var E,c;let u=await ae({id:p.id});w.value=!0,await A(),(E=f.value)==null||E.open("edit"),(c=f.value)==null||c.setFormData(u)},B=async p=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ue({id:p}),v()};return v(),(p,u)=>{const E=W,c=M,n=U,z=ee,I=O,g=G,N=Z,o=H,y=X,P=J,T=Q,F=ie("perms"),q=K;return s(),ne("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(I,{class:"mb-[-16px]",model:_,inline:""},{default:t(()=>[e(c,{label:"\u7533\u8BF7\u7F16\u53F7",prop:"num"},{default:t(()=>[e(E,{class:"w-[280px]",modelValue:_.num,"onUpdate:modelValue":u[0]||(u[0]=l=>_.num=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7533\u8BF7\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(n,{type:"primary",onClick:a(S)},{default:t(()=>[_e]),_:1},8,["onClick"]),e(n,{onClick:a(x)},{default:t(()=>[ce]),_:1},8,["onClick"]),e(z,{class:"ml-2.5","fetch-fun":a(C),params:_,"page-size":a(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),d((s(),r(g,{class:"!border-none",shadow:"never"},{default:t(()=>[d((s(),r(n,{type:"primary",onClick:$},{icon:t(()=>[e(N,{name:"el-icon-Plus"})]),default:t(()=>[de]),_:1})),[[F,["project_process_management.apply_with_seal/add"]]]),d((s(),r(n,{disabled:!b.value.length,onClick:u[1]||(u[1]=l=>B(b.value))},{default:t(()=>[fe]),_:1},8,["disabled"])),[[F,["project_process_management.apply_with_seal/delete"]]]),k("div",we,[e(P,{data:a(i).lists,onSelectionChange:V},{default:t(()=>[e(o,{type:"selection",width:"55"}),e(o,{label:"\u7533\u8BF7\u7F16\u53F7",prop:"num","show-overflow-tooltip":""}),e(o,{label:"\u76D6\u7AE0\u7533\u8BF7\u7C7B\u578B",prop:"types"},{default:t(({row:l})=>[e(y,{options:a(h).apply_with_seal_type,value:l.types},null,8,["options","value"])]),_:1}),e(o,{label:"\u6587\u4EF6\u7C7B\u578B",prop:"filetype"},{default:t(({row:l})=>[e(y,{options:a(h).apply_with_seal_file_type,value:l.filetype},null,8,["options","value"])]),_:1}),e(o,{label:"\u9A91\u7F1D\u76D6\u7AE0",prop:"ridingseam"},{default:t(({row:l})=>[e(y,{options:a(h).isqfgz,value:l.ridingseam},null,8,["options","value"])]),_:1}),e(o,{label:"\u5370\u7AE0\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(o,{label:"\u76D6\u7AE0\u6B21\u6570",prop:"frequency","show-overflow-tooltip":""}),e(o,{label:"\u9650\u5236\u6B21\u6570",prop:"limit","show-overflow-tooltip":""}),e(o,{label:"\u7528\u5370\u90E8\u95E8",prop:"depar","show-overflow-tooltip":""}),e(o,{label:"\u76D6\u7AE0\u4EBA",prop:"stampman","show-overflow-tooltip":""}),e(o,{label:"\u5173\u8054\u9879\u76EE",prop:"projectInfo.project_name","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA",prop:"projectInfo.principal","show-overflow-tooltip":""}),e(o,{label:"\u76D6\u7AE0\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(o,{label:"\u5370\u7AE0\u662F\u5426\u5916\u501F",prop:"loan","show-overflow-tooltip":""}),e(o,{label:"\u5370\u7AE0\u501F\u7528\u65E5\u671F",prop:"borrow","show-overflow-tooltip":""}),e(o,{label:"\u7ED3\u675F\u501F\u7528\u65E5\u671F",prop:"returndate","show-overflow-tooltip":""}),e(o,{label:"\u5B9E\u9645\u501F\u7AE0\u65E5\u671F",prop:"sjborrow","show-overflow-tooltip":""}),e(o,{label:"\u5B9E\u9645\u501F\u7AE0\u4EBA",prop:"sjborrower","show-overflow-tooltip":""}),e(o,{label:"\u5B9E\u9645\u5F52\u8FD8\u65E5\u671F",prop:"sjreturn","show-overflow-tooltip":""}),e(o,{label:"\u5B9E\u9645\u5F52\u8FD8\u4EBA",prop:"returnee","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[d((s(),r(n,{type:"primary",link:"",onClick:R=>L(l)},{default:t(()=>[he]),_:2},1032,["onClick"])),[[F,["project_process_management.apply_with_seal/edit"]]]),d((s(),r(n,{type:"danger",link:"",onClick:R=>B(l.id)},{default:t(()=>[ve]),_:2},1032,["onClick"])),[[F,["project_process_management.apply_with_seal/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",Ee,[e(T,{modelValue:a(i),"onUpdate:modelValue":u[2]||(u[2]=l=>me(i)?i.value=l:null),onChange:a(v)},null,8,["modelValue","onChange"])])]),_:1})),[[q,a(i).loading]]),w.value?(s(),r(le,{key:0,ref_key:"editRef",ref:f,"dict-data":a(h),onSuccess:a(v),onClose:u[3]||(u[3]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0)])}}});export{wo as default};