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