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

2 lines
6.7 KiB
JavaScript

import{I as z,y as q,w as M,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{f as W,a as X}from"./index.ec401e3b.js";import{_ as Y}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as Z}from"./usePaging.f6660143.js";import{u as ee}from"./useDictOptions.c644f395.js";import{_ as oe,a as j,b as te,c as ae}from"./edit.vue_vue_type_script_setup_true_name_projectChangeVisaEdit_lang.e45d40b6.js";import"./lodash.1d82ee7c.js";import{d as V,s as le,r as D,a0 as ue,ai as re,o as p,c as ne,V as e,M as t,O as f,u,L as d,S as se,a as b,k as pe,T as _,n as k}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"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./cost_project.2762b876.js";const ie=_("\u67E5\u8BE2"),me=_("\u91CD\u7F6E"),ce=_(" \u65B0\u589E "),de=_(" \u5220\u9664 "),_e={class:"mt-4"},fe={style:{width:"95%",margin:"0 auto"}},we=_(" \u7F16\u8F91 "),ve=_(" \u5220\u9664 "),he={class:"flex justify-end mt-4"},Ee=V({name:"projectChangeVisaLists"}),mo=V({...Ee,setup(Fe){const w=le(),v=D(!1),r=ue({num:"",project:"",project_num:""}),F=D([]),y=n=>{F.value=n.map(({id:a})=>a)},{dictData:x}=ee(""),{pager:i,getLists:h,resetParams:A,resetPage:P}=Z({fetchFun:j,params:r}),$=async()=>{var n;v.value=!0,await k(),(n=w.value)==null||n.open("add")},L=async n=>{var m,s;let a=await te({id:n.id});v.value=!0,await k(),(m=w.value)==null||m.open("edit"),(s=w.value)==null||s.setFormData(a)},C=async n=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ae({id:n}),h()};return h(),(n,a)=>{const m=z,s=q,c=M,I=Y,N=O,g=G,S=X,o=H,B=J,T=Q,E=re("perms"),R=K;return p(),ne("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(N,{class:"mb-[-16px]",model:r,inline:""},{default:t(()=>[e(s,{label:"\u5355\u636E\u7F16\u53F7",prop:"num"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:r.num,"onUpdate:modelValue":a[0]||(a[0]=l=>r.num=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u9879\u76EE\u540D\u79F0",prop:"project"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:r.project,"onUpdate:modelValue":a[1]||(a[1]=l=>r.project=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u9879\u76EE\u7F16\u53F7",prop:"project_num"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:r.project_num,"onUpdate:modelValue":a[2]||(a[2]=l=>r.project_num=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(s,null,{default:t(()=>[e(c,{type:"primary",onClick:u(P)},{default:t(()=>[ie]),_:1},8,["onClick"]),e(c,{onClick:u(A)},{default:t(()=>[me]),_:1},8,["onClick"]),e(I,{class:"ml-2.5","fetch-fun":u(j),params:r,"page-size":u(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((p(),d(g,{class:"!border-none",shadow:"never"},{default:t(()=>[f((p(),d(c,{type:"primary",onClick:$},{icon:t(()=>[e(S,{name:"el-icon-Plus"})]),default:t(()=>[ce]),_:1})),[[E,["project_process_management.project_change_visa/add"]]]),f((p(),d(c,{disabled:!F.value.length,onClick:a[3]||(a[3]=l=>C(F.value))},{default:t(()=>[de]),_:1},8,["disabled"])),[[E,["project_process_management.project_change_visa/delete"]]]),b("div",_e,[e(B,{data:u(i).lists,onSelectionChange:y},{default:t(()=>[e(o,{type:"selection",width:"55"}),e(o,{type:"expand"},{default:t(l=>[b("div",fe,[e(B,{data:l.row.children,stripe:!0},{default:t(()=>[e(o,{label:"\u6240\u5728\u76EE\u5F55",prop:"directory","show-overflow-tooltip":""}),e(o,{label:"\u5355\u4F4D\u540D\u79F0",prop:"unit_name","show-overflow-tooltip":""}),e(o,{label:"\u65F6\u95F4",prop:"time","show-overflow-tooltip":""}),e(o,{label:"\u6240\u5C5E\u4E13\u4E1A",prop:"major","show-overflow-tooltip":""}),e(o,{label:"\u7C7B\u522B",prop:"category","show-overflow-tooltip":""}),e(o,{label:"\u5BA1\u6838\u5185\u5BB9",prop:"review_content","show-overflow-tooltip":""}),e(o,{label:"\u5BA1\u6838\u610F\u89C1",prop:"review_comments","show-overflow-tooltip":""}),e(o,{label:"\u5BA1\u6838\u4EBA",prop:"reviewer","show-overflow-tooltip":""}),e(o,{label:"\u65BD\u5DE5\u5355\u4F4D\u7533\u62A5\u503C",prop:"declared_value","show-overflow-tooltip":""}),e(o,{label:"\u54A8\u8BE2\u5355\u4F4D\u6D4B\u7B97\u503C",prop:"calculated_value","show-overflow-tooltip":""}),e(o,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""})]),_:2},1032,["data"])])]),_:1}),e(o,{label:"\u6807\u8BC6",prop:"dataid","show-overflow-tooltip":""}),e(o,{label:"\u5355\u636E\u7F16\u53F7",prop:"num","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u540D\u79F0",prop:"projectInfo.project_name","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u7F16\u53F7",prop:"projectInfo.project_num","show-overflow-tooltip":""}),e(o,{label:"\u767B\u8BB0\u4EBA",prop:"djr","show-overflow-tooltip":""}),e(o,{label:"\u767B\u8BB0\u65E5\u671F",prop:"djrq","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[f((p(),d(c,{type:"primary",link:"",onClick:U=>L(l)},{default:t(()=>[we]),_:2},1032,["onClick"])),[[E,["project_process_management.project_change_visa/edit"]]]),f((p(),d(c,{type:"danger",link:"",onClick:U=>C(l.id)},{default:t(()=>[ve]),_:2},1032,["onClick"])),[[E,["project_process_management.project_change_visa/delete"]]])]),_:1})]),_:1},8,["data"])]),b("div",he,[e(T,{modelValue:u(i),"onUpdate:modelValue":a[4]||(a[4]=l=>pe(i)?i.value=l:null),onChange:u(h)},null,8,["modelValue","onChange"])])]),_:1})),[[R,u(i).loading]]),v.value?(p(),d(oe,{key:0,ref_key:"editRef",ref:w,"dict-data":u(x),onSuccess:u(h),onClose:a[5]||(a[5]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{mo as default};