2 lines
8.8 KiB
JavaScript
2 lines
8.8 KiB
JavaScript
import{I as R,y as I,w as M,D as q,C as O,L as z,M as G,N as H}from"./element-plus.517d4382.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as K,a as Q}from"./index.8b1962e9.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.b5854a9e.js";import{_ as Y,a as Z,b as ee}from"./edit.vue_vue_type_script_setup_true_name_projectChangeVisaContentEdit_lang.f756c623.js";import"./lodash.1d82ee7c.js";import{d as D,s as le,r as E,a0 as oe,ai as ae,o as p,c as ue,V as e,M as u,O as v,u as d,L as m,S as te,a as g,k as re,T as c,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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";const ne=c("\u67E5\u8BE2"),ie=c("\u91CD\u7F6E"),de=c(" \u65B0\u589E "),pe=c(" \u5220\u9664 "),se={class:"mt-4"},me=c(" \u7F16\u8F91 "),ce=c(" \u5220\u9664 "),_e={class:"flex mt-4 justify-end"},ve=D({name:"projectChangeVisaContentLists"}),ll=D({...ve,setup(fe){const f=le(),w=E(!1),a=oe({project_change_visa_dataid:"",directory:"",unit_name:"",time:"",major:"",category:"",review_content:"",review_comments:"",reviewer:"",reviewer_id:"",declared_value:"",calculated_value:"",remark:""}),b=E([]),A=i=>{b.value=i.map(({id:l})=>l)},{dictData:y}=X(""),{pager:_,getLists:B,resetParams:k,resetPage:j}=W({fetchFun:Z,params:a}),x=async()=>{var i;w.value=!0,await h(),(i=f.value)==null||i.open("add")},U=async i=>{var l,t;w.value=!0,await h(),(l=f.value)==null||l.open("edit"),(t=f.value)==null||t.setFormData(i)},C=async i=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:i}),B()};return B(),(i,l)=>{const t=R,n=I,s=M,P=q,V=O,$=Q,r=z,L=G,N=J,F=ae("perms"),S=H;return p(),ue("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[e(P,{class:"mb-[-16px]",model:a,inline:""},{default:u(()=>[e(n,{label:"\u4E3B\u8868\u6807\u8BC6",prop:"project_change_visa_dataid"},{default:u(()=>[e(t,{class:"w-[280px]",modelValue:a.project_change_visa_dataid,"onUpdate:modelValue":l[0]||(l[0]=o=>a.project_change_visa_dataid=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E3B\u8868\u6807\u8BC6"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u6240\u5728\u76EE\u5F55",prop:"directory"},{default:u(()=>[e(t,{class:"w-[280px]",modelValue:a.directory,"onUpdate:modelValue":l[1]||(l[1]=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:u(()=>[e(t,{class:"w-[280px]",modelValue:a.unit_name,"onUpdate:modelValue":l[2]||(l[2]=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:u(()=>[e(t,{class:"w-[280px]",modelValue:a.time,"onUpdate:modelValue":l[3]||(l[3]=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:u(()=>[e(t,{class:"w-[280px]",modelValue:a.major,"onUpdate:modelValue":l[4]||(l[4]=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:u(()=>[e(t,{class:"w-[280px]",modelValue:a.category,"onUpdate:modelValue":l[5]||(l[5]=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:u(()=>[e(t,{class:"w-[280px]",modelValue:a.review_content,"onUpdate:modelValue":l[6]||(l[6]=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:u(()=>[e(t,{class:"w-[280px]",modelValue:a.review_comments,"onUpdate:modelValue":l[7]||(l[7]=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:u(()=>[e(t,{class:"w-[280px]",modelValue:a.reviewer,"onUpdate:modelValue":l[8]||(l[8]=o=>a.reviewer=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6838\u4EBA"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5BA1\u6838\u4EBAid",prop:"reviewer_id"},{default:u(()=>[e(t,{class:"w-[280px]",modelValue:a.reviewer_id,"onUpdate:modelValue":l[9]||(l[9]=o=>a.reviewer_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6838\u4EBAid"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u65BD\u5DE5\u5355\u4F4D\u7533\u62A5\u503C",prop:"declared_value"},{default:u(()=>[e(t,{class:"w-[280px]",modelValue:a.declared_value,"onUpdate:modelValue":l[10]||(l[10]=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:u(()=>[e(t,{class:"w-[280px]",modelValue:a.calculated_value,"onUpdate:modelValue":l[11]||(l[11]=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:u(()=>[e(t,{class:"w-[280px]",modelValue:a.remark,"onUpdate:modelValue":l[12]||(l[12]=o=>a.remark=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"},null,8,["modelValue"])]),_:1}),e(n,null,{default:u(()=>[e(s,{type:"primary",onClick:d(j)},{default:u(()=>[ne]),_:1},8,["onClick"]),e(s,{onClick:d(k)},{default:u(()=>[ie]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((p(),m(V,{class:"!border-none",shadow:"never"},{default:u(()=>[v((p(),m(s,{type:"primary",onClick:x},{icon:u(()=>[e($,{name:"el-icon-Plus"})]),default:u(()=>[de]),_:1})),[[F,["project_process_management.project_change_visa_content/add"]]]),v((p(),m(s,{disabled:!b.value.length,onClick:l[13]||(l[13]=o=>C(b.value))},{default:u(()=>[pe]),_:1},8,["disabled"])),[[F,["project_process_management.project_change_visa_content/delete"]]]),g("div",se,[e(L,{data:d(_).lists,onSelectionChange:A},{default:u(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"\u4E3B\u8868\u6807\u8BC6",prop:"project_change_visa_dataid","show-overflow-tooltip":""}),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:"\u5BA1\u6838\u4EBAid",prop:"reviewer_id","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:u(({row:o})=>[v((p(),m(s,{type:"primary",link:"",onClick:T=>U(o)},{default:u(()=>[me]),_:2},1032,["onClick"])),[[F,["project_process_management.project_change_visa_content/edit"]]]),v((p(),m(s,{type:"danger",link:"",onClick:T=>C(o.id)},{default:u(()=>[ce]),_:2},1032,["onClick"])),[[F,["project_process_management.project_change_visa_content/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",_e,[e(N,{modelValue:d(_),"onUpdate:modelValue":l[14]||(l[14]=o=>re(_)?_.value=o:null),onChange:d(B)},null,8,["modelValue","onChange"])])]),_:1})),[[S,d(_).loading]]),w.value?(p(),m(Y,{key:0,ref_key:"editRef",ref:f,"dict-data":d(y),onSuccess:d(B),onClose:l[15]||(l[15]=o=>w.value=!1)},null,8,["dict-data","onSuccess"])):te("",!0)])}}});export{ll as default};
|