2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{I as z,y as G,w as H,D as J,C as K,L as Q,M as W,N as X}from"./element-plus.517d4382.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as Z,a as ee}from"./index.8b1962e9.js";import{u as te}from"./usePaging.f6660143.js";import{u as oe}from"./useDictOptions.b5854a9e.js";import{c as ae,p as le,d as ne}from"./project_job_type.a34d9934.js";import"./lodash.1d82ee7c.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.44a7e609.js";import se from"./detail.e86a2e79.js";import{d as $,a0 as g,s as j,r as w,ai as re,o as i,c as pe,V as e,M as o,O as d,u as n,L as s,S as B,a as V,k as ue,T as u,n as x}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";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./custom.99349afc.js";const me=u("\u67E5\u8BE2"),ce=u("\u91CD\u7F6E"),de=u(" \u65B0\u589E "),_e=u(" \u5220\u9664 "),fe={class:"mt-4"},ve=u(" \u7F16\u8F91 "),ye=u(" \u5220\u9664 "),Ce={class:"flex justify-end mt-4"},De=$({name:"projectLists"}),pt=$({...De,setup(he){g([]);const L=j(),_=j(),f=w(!1),b=w(!1),v=g({type_name:""}),h=w([]),P=a=>{h.value=a.map(({id:t})=>t)},{dictData:k}=oe("follow_type"),{pager:m,getLists:y,resetParams:R,resetPage:N}=te({fetchFun:ae,params:v}),S=async()=>{var a;f.value=!0,await x(),(a=_.value)==null||a.open("add")},T=async a=>{var C,c;console.log(a.id);let t=await le({id:a.id});f.value=!0,await x(),(C=_.value)==null||C.open("edit"),(c=_.value)==null||c.setFormData(t)},E=async a=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:a}),y()};return y(),(a,t)=>{const C=z,c=G,r=H,I=J,F=K,A=ee,p=Q,M=W,U=Y,D=re("perms"),q=X;return i(),pe("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(I,{class:"mb-[-16px]",model:v,inline:""},{default:o(()=>[e(c,{label:"\u5DE5\u79CD\u540D\u79F0",prop:"type_name"},{default:o(()=>[e(C,{class:"w-[280px]",modelValue:v.type_name,"onUpdate:modelValue":t[0]||(t[0]=l=>v.type_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5DE5\u79CD\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(c,null,{default:o(()=>[e(r,{type:"primary",onClick:n(N)},{default:o(()=>[me]),_:1},8,["onClick"]),e(r,{onClick:n(R)},{default:o(()=>[ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((i(),s(F,{class:"!border-none",shadow:"never"},{default:o(()=>[d((i(),s(r,{type:"primary",onClick:S},{icon:o(()=>[e(A,{name:"el-icon-Plus"})]),default:o(()=>[de]),_:1})),[[D,["project.project/add"]]]),d((i(),s(r,{disabled:!h.value.length,onClick:t[1]||(t[1]=l=>E(h.value))},{default:o(()=>[_e]),_:1},8,["disabled"])),[[D,["project.project/delete"]]]),V("div",fe,[e(M,{data:n(m).lists,onSelectionChange:P},{default:o(()=>[e(p,{type:"selection",width:"55"}),e(p,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(p,{label:"\u5DE5\u79CD\u540D\u79F0",prop:"type_name","show-overflow-tooltip":""}),e(p,{label:"\u5DE5\u79CD\u5355\u4EF7",prop:"type_unit_price","show-overflow-tooltip":""}),e(p,{label:"\u6BCF\u65E5\u751F\u6D3B\u8D39",prop:"per_daily_living","show-overflow-tooltip":""}),e(p,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:o(({row:l})=>[d((i(),s(r,{type:"primary",link:"",onClick:O=>T(l)},{default:o(()=>[ve]),_:2},1032,["onClick"])),[[D,["project.project/edit"]]]),d((i(),s(r,{type:"danger",link:"",onClick:O=>E(l.id)},{default:o(()=>[ye]),_:2},1032,["onClick"])),[[D,["project.project/delete"]]])]),_:1})]),_:1},8,["data"])]),V("div",Ce,[e(U,{modelValue:n(m),"onUpdate:modelValue":t[2]||(t[2]=l=>ue(m)?m.value=l:null),onChange:n(y)},null,8,["modelValue","onChange"])])]),_:1})),[[q,n(m).loading]]),f.value?(i(),s(ie,{key:0,ref_key:"editRef",ref:_,"dict-data":n(k),onSuccess:n(y),onClose:t[3]||(t[3]=l=>f.value=!1)},null,8,["dict-data","onSuccess"])):B("",!0),b.value?(i(),s(se,{key:1,ref_key:"detailRef",ref:L,"dict-data":n(k),onClose:t[4]||(t[4]=l=>b.value=!1)},null,8,["dict-data"])):B("",!0)])}}});export{pt as default};
|