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

2 lines
10 KiB
JavaScript

import{w as X,I as Y,y as Z,G as ee,H as oe,D as le,C as te,L as ue,M as ae,a4 as ne,a5 as se,N as ie}from"./element-plus.258bf9e7.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as re,a as de}from"./index.ec401e3b.js";import{u as ce}from"./usePaging.f6660143.js";import{u as _e}from"./useDictOptions.c644f395.js";import{b as fe,a as ve,e as be}from"./custom.13e75d58.js";import"./lodash.1d82ee7c.js";import Ee from"./edit.602a27b4.js";import{d as J,r as g,s as Ce,a0 as q,ai as we,o as n,c as x,a as h,O as d,L as p,M as o,V as e,u as a,S as he,n as G,W as H,a8 as W,k as z,T as m}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";const Be=m(" \u65B0\u589E "),Fe=m("\u67E5\u8BE2"),De=m("\u91CD\u7F6E"),ye=m(" \u65B0\u589E "),ke=m(" \u5220\u9664 "),Ae={class:"mt-4"},Ve=m(" \u7F16\u8F91 "),ge=m(" \u5220\u9664 "),xe={class:"flex justify-end mt-4"},$e=m("\u67E5\u8BE2"),Ue=m("\u91CD\u7F6E"),Pe=m(" \u65B0\u589E "),Te=m(" \u5220\u9664 "),Le={class:"mt-4"},Se=m(" \u7F16\u8F91 "),Ne=m(" \u5220\u9664 "),Re={class:"flex justify-end mt-4"},Ie=J({name:"customLists"}),Ao=J({...Ie,setup(je){const $=g("first"),K=(r,t)=>{console.log(r,t)},B=Ce(),F=g(!1);q([{name:"\u5168\u90E8\u5BA2\u6237",count:1e3},{name:"\u516C\u6D77\u5BA2\u6237",count:1e3},{name:"\u79C1\u6709\u5BA2\u6237",count:1e3},{name:"\u4ECA\u65E5\u65B0\u589E",count:1e3},{name:"\u4ECA\u65E5\u5206\u914D\u516C\u6D77\u5BA2\u6237",count:1e3},{name:"\u4ECA\u65E5\u5E94\u8054\u7CFB",count:1e3},{name:"\u4ECA\u65E5\u672A\u8054\u7CFB",count:1e3},{name:"\u4ECA\u65E5\u5DF2\u8054\u7CFB",count:1e3}]);const i=q({name:"",custom_type:"",phone:"",credit_rating:"",province:"",city:"",status:""}),E=g([]),U=r=>{E.value=r.map(({id:t})=>t)},{dictData:C}=_e("custom_type,credit_rating"),{pager:c,getLists:w,resetParams:P,resetPage:T}=ce({fetchFun:fe,params:i}),V=async()=>{var r;F.value=!0,await G(),(r=B.value)==null||r.open("add")},L=async r=>{var b,s;let t=await ve({id:r.id});F.value=!0,await G(),(b=B.value)==null||b.open("edit"),(s=B.value)==null||s.setFormData(t)},D=async r=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await be({id:r}),w()};return w(),(r,t)=>{const b=de,s=X,y=Y,f=Z,k=ee,S=oe,N=le,A=te,u=ue,R=me,I=ae,j=pe,M=ne,Q=se,_=we("perms"),O=ie;return n(),x("div",null,[h("div",null,[d((n(),p(s,{type:"primary",onClick:V},{icon:o(()=>[e(b,{name:"el-icon-Plus"})]),default:o(()=>[Be]),_:1})),[[_,["custom_service.custom_service/add"]]])]),e(Q,{modelValue:$.value,"onUpdate:modelValue":t[10]||(t[10]=l=>$.value=l),class:"demo-tabs",onTabClick:K},{default:o(()=>[e(M,{label:"\u6211\u53C2\u4E0E\u7684\u9879\u76EE",name:"first"},{default:o(()=>[e(A,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(N,{class:"mb-[-16px]",model:i,inline:""},{default:o(()=>[e(f,{label:"\u5BA2\u6237\u540D\u79F0",prop:"name"},{default:o(()=>[e(y,{class:"w-[280px]",modelValue:i.name,"onUpdate:modelValue":t[0]||(t[0]=l=>i.name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u5BA2\u6237\u5C5E\u6027",prop:"custom_type"},{default:o(()=>[e(S,{class:"w-[280px]",modelValue:i.custom_type,"onUpdate:modelValue":t[1]||(t[1]=l=>i.custom_type=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237\u5C5E\u6027"},{default:o(()=>[e(k,{label:"\u5168\u90E8",value:""}),(n(!0),x(H,null,W(a(C).custom_type,(l,v)=>(n(),p(k,{key:v,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u7535\u8BDD",prop:"phone"},{default:o(()=>[e(y,{class:"w-[280px]",modelValue:i.phone,"onUpdate:modelValue":t[2]||(t[2]=l=>i.phone=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(f,null,{default:o(()=>[e(s,{type:"primary",onClick:a(T)},{default:o(()=>[Fe]),_:1},8,["onClick"]),e(s,{onClick:a(P)},{default:o(()=>[De]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((n(),p(A,{class:"!border-none",shadow:"never"},{default:o(()=>[d((n(),p(s,{type:"primary",onClick:V},{icon:o(()=>[e(b,{name:"el-icon-Plus"})]),default:o(()=>[ye]),_:1})),[[_,["custom.custom/add"]]]),d((n(),p(s,{disabled:!E.value.length,onClick:t[3]||(t[3]=l=>D(E.value))},{default:o(()=>[ke]),_:1},8,["disabled"])),[[_,["custom.custom/delete"]]]),h("div",Ae,[e(I,{data:a(c).lists,onSelectionChange:U},{default:o(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(u,{label:"\u5BA2\u6237\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(u,{label:"\u5BA2\u6237\u5C5E\u6027",prop:"custom_type"},{default:o(({row:l})=>[e(R,{options:a(C).custom_type,value:l.custom_type},null,8,["options","value"])]),_:1}),e(u,{label:"\u7701",prop:"province_name","show-overflow-tooltip":""}),e(u,{label:"\u804C\u52A1",prop:"master_position","show-overflow-tooltip":""}),e(u,{label:"\u7535\u8BDD",prop:"master_telephone","show-overflow-tooltip":""}),e(u,{label:"\u624B\u673A",prop:"master_phone","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"master_notes","show-overflow-tooltip":""}),e(u,{label:"\u8D1F\u8D23\u4EBA","show-overflow-tooltip":""}),e(u,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(u,{label:"\u6700\u540E\u8DDF\u8FDB","show-overflow-tooltip":""}),e(u,{label:"\u4E0B\u6B21\u56DE\u8BBF\u65E5\u671F","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:l})=>[d((n(),p(s,{type:"primary",link:"",onClick:v=>L(l)},{default:o(()=>[Ve]),_:2},1032,["onClick"])),[[_,["custom.custom/edit"]]]),d((n(),p(s,{type:"danger",link:"",onClick:v=>D(l.id)},{default:o(()=>[ge]),_:2},1032,["onClick"])),[[_,["custom.custom/delete"]]])]),_:1})]),_:1},8,["data"])]),h("div",xe,[e(j,{modelValue:a(c),"onUpdate:modelValue":t[4]||(t[4]=l=>z(c)?c.value=l:null),onChange:a(w)},null,8,["modelValue","onChange"])])]),_:1})),[[O,a(c).loading]])]),_:1}),e(M,{label:"\u6211\u521B\u5EFA\u7684\u9879\u76EE",name:"second"},{default:o(()=>[e(A,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(N,{class:"mb-[-16px]",model:i,inline:""},{default:o(()=>[e(f,{label:"\u5BA2\u6237\u540D\u79F0",prop:"name"},{default:o(()=>[e(y,{class:"w-[280px]",modelValue:i.name,"onUpdate:modelValue":t[5]||(t[5]=l=>i.name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u5BA2\u6237\u5C5E\u6027",prop:"custom_type"},{default:o(()=>[e(S,{class:"w-[280px]",modelValue:i.custom_type,"onUpdate:modelValue":t[6]||(t[6]=l=>i.custom_type=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237\u5C5E\u6027"},{default:o(()=>[e(k,{label:"\u5168\u90E8",value:""}),(n(!0),x(H,null,W(a(C).custom_type,(l,v)=>(n(),p(k,{key:v,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u7535\u8BDD",prop:"phone"},{default:o(()=>[e(y,{class:"w-[280px]",modelValue:i.phone,"onUpdate:modelValue":t[7]||(t[7]=l=>i.phone=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(f,null,{default:o(()=>[e(s,{type:"primary",onClick:a(T)},{default:o(()=>[$e]),_:1},8,["onClick"]),e(s,{onClick:a(P)},{default:o(()=>[Ue]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((n(),p(A,{class:"!border-none",shadow:"never"},{default:o(()=>[d((n(),p(s,{type:"primary",onClick:V},{icon:o(()=>[e(b,{name:"el-icon-Plus"})]),default:o(()=>[Pe]),_:1})),[[_,["custom.custom/add"]]]),d((n(),p(s,{disabled:!E.value.length,onClick:t[8]||(t[8]=l=>D(E.value))},{default:o(()=>[Te]),_:1},8,["disabled"])),[[_,["custom.custom/delete"]]]),h("div",Le,[e(I,{data:a(c).lists,onSelectionChange:U},{default:o(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(u,{label:"\u5BA2\u6237\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(u,{label:"\u5BA2\u6237\u5C5E\u6027",prop:"custom_type"},{default:o(({row:l})=>[e(R,{options:a(C).custom_type,value:l.custom_type},null,8,["options","value"])]),_:1}),e(u,{label:"\u7701",prop:"province_name","show-overflow-tooltip":""}),e(u,{label:"\u804C\u52A1",prop:"master_position","show-overflow-tooltip":""}),e(u,{label:"\u7535\u8BDD",prop:"master_telephone","show-overflow-tooltip":""}),e(u,{label:"\u624B\u673A",prop:"master_phone","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"master_notes","show-overflow-tooltip":""}),e(u,{label:"\u8D1F\u8D23\u4EBA","show-overflow-tooltip":""}),e(u,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(u,{label:"\u6700\u540E\u8DDF\u8FDB","show-overflow-tooltip":""}),e(u,{label:"\u4E0B\u6B21\u56DE\u8BBF\u65E5\u671F","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:l})=>[d((n(),p(s,{type:"primary",link:"",onClick:v=>L(l)},{default:o(()=>[Se]),_:2},1032,["onClick"])),[[_,["custom.custom/edit"]]]),d((n(),p(s,{type:"danger",link:"",onClick:v=>D(l.id)},{default:o(()=>[Ne]),_:2},1032,["onClick"])),[[_,["custom.custom/delete"]]])]),_:1})]),_:1},8,["data"])]),h("div",Re,[e(j,{modelValue:a(c),"onUpdate:modelValue":t[9]||(t[9]=l=>z(c)?c.value=l:null),onChange:a(w)},null,8,["modelValue","onChange"])])]),_:1})),[[O,a(c).loading]])]),_:1})]),_:1},8,["modelValue"]),F.value?(n(),p(Ee,{key:0,ref_key:"editRef",ref:B,"dict-data":a(C),onSuccess:a(w),onClose:t[11]||(t[11]=l=>F.value=!1)},null,8,["dict-data","onSuccess"])):he("",!0)])}}});export{Ao as default};