2 lines
8.0 KiB
JavaScript
2 lines
8.0 KiB
JavaScript
import{I as X,y as Y,G as Z,H as tt,w as ot,D as et,C as at,L as lt,M as nt,N as ut}from"./element-plus.517d4382.js";import{_ as rt}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{_ as it}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as st,a as pt}from"./index.8b1962e9.js";import{_ as ct}from"./index.vue_vue_type_style_index_0_lang.9f4b6930.js";import{u as mt}from"./usePaging.f6660143.js";import{u as _t}from"./useDictOptions.b5854a9e.js";import{a as A,b as L,e as dt}from"./contract.2d0c2079.js";import"./lodash.1d82ee7c.js";import{_ as ft}from"./edit.vue_vue_type_script_setup_true_name_contractEdit_lang.0f265e0e.js";import vt from"./detail.f205b00e.js";import{d as T,s as P,r as k,a0 as wt,ai as Ct,o as r,c as R,V as t,M as a,O as v,u as n,L as s,S,W as ht,a8 as bt,a as N,k as Dt,T as _,n as E}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.51f10eaa.js";import"./custom.99349afc.js";import"./index.vue_vue_type_script_setup_true_lang.f7ad6d96.js";import"./bid_buy_bidding_document.4f5b0fae.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./index.vue_vue_type_style_index_0_lang.c7aef442.js";import"./common.9d529cba.js";import"./remittance.aceb913b.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./flowSet.6da79e1c.js";const Et=_("\u67E5\u8BE2"),Ft=_("\u91CD\u7F6E"),yt=_(" \u65B0\u589E "),gt=_(" \u5220\u9664 "),Bt={class:"mt-4"},kt=_(" \u7F16\u8F91 "),Vt=_(" \u5220\u9664 "),xt=_(" \u8BE6\u60C5 "),$t={class:"flex justify-end mt-4"},At=T({name:"contractLists"}),To=T({...At,setup(Lt){const F=P(),C=P(),h=k(!1),y=k(!1),p=wt({contract_name:"",contract_type:""}),g=k([]),j=u=>{g.value=u.map(({id:l})=>l)},{dictData:d}=_t("contract_type,contract_pricing_method,contract_status,pay_period"),{pager:f,getLists:b,resetParams:z,resetPage:I}=mt({fetchFun:A,params:p}),U=async()=>{var u;h.value=!0,await E(),(u=C.value)==null||u.open("add")},M=async u=>{var c,i;let l=await L({id:u.id});h.value=!0,await E(),(c=C.value)==null||c.open("edit"),(i=C.value)==null||i.setFormData(l)},V=async u=>{console.log(u,"id"),await st.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await dt({id:u}),b()},O=async u=>{var c,i;let l=await L({id:u.id});y.value=!0,await E(),(c=F.value)==null||c.setFormData(l),await E(),(i=F.value)==null||i.open()};return b(),(u,l)=>{const c=X,i=Y,x=Z,q=tt,m=ot,G=ct,H=et,$=at,W=pt,o=lt,B=it,J=nt,K=rt,w=Ct("perms"),Q=ut;return r(),R("div",null,[t($,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(H,{class:"mb-[-16px]",model:p,inline:""},{default:a(()=>[t(i,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name"},{default:a(()=>[t(c,{class:"w-[280px]",modelValue:p.contract_name,"onUpdate:modelValue":l[0]||(l[0]=e=>p.contract_name=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(i,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type"},{default:a(()=>[t(q,{class:"w-[280px]",modelValue:p.contract_type,"onUpdate:modelValue":l[1]||(l[1]=e=>p.contract_type=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u7C7B\u578B"},{default:a(()=>[t(x,{label:"\u5168\u90E8",value:""}),(r(!0),R(ht,null,bt(n(d).contract_type,(e,D)=>(r(),s(x,{key:D,label:e.name,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(i,null,{default:a(()=>[t(m,{type:"primary",onClick:n(I)},{default:a(()=>[Et]),_:1},8,["onClick"]),t(m,{onClick:n(z)},{default:a(()=>[Ft]),_:1},8,["onClick"]),t(G,{class:"ml-2.5","fetch-fun":n(A),params:p,"page-size":n(f).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),v((r(),s($,{class:"!border-none",shadow:"never"},{default:a(()=>[v((r(),s(m,{type:"primary",onClick:U},{icon:a(()=>[t(W,{name:"el-icon-Plus"})]),default:a(()=>[yt]),_:1})),[[w,["contract.contract/add"]]]),v((r(),s(m,{disabled:!g.value.length,onClick:l[2]||(l[2]=e=>V(g.value))},{default:a(()=>[gt]),_:1},8,["disabled"])),[[w,["contract.contract/delete"]]]),N("div",Bt,[t(J,{data:n(f).lists,onSelectionChange:j},{default:a(()=>[t(o,{type:"selection",width:"55"}),t(o,{label:"\u5E8F\u53F7",type:"index",width:"55"}),t(o,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_code","show-overflow-tooltip":""}),t(o,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),t(o,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),t(o,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),t(o,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type"},{default:a(({row:e})=>[t(B,{options:n(d).contract_type,value:e.contract_type},null,8,["options","value"])]),_:1}),t(o,{label:"\u5408\u540C\u8BA1\u4EF7\u65B9\u5F0F",prop:"contract_pricing_method"},{default:a(({row:e})=>[t(B,{options:n(d).contract_pricing_method,value:e.contract_pricing_method},null,8,["options","value"])]),_:1}),t(o,{label:"\u4E1A\u52A1\u8D1F\u8D23\u4EBA",prop:"business_director_name","show-overflow-tooltip":""}),t(o,{label:"\u5408\u540C\u72B6\u6001",prop:"contract_status","show-overflow-tooltip":""},{default:a(({row:e})=>[t(B,{options:n(d).contract_status,value:e.contract_status},null,8,["options","value"])]),_:1}),t(o,{label:"\u5408\u540C\u6709\u6548\u671F",prop:"expire","show-overflow-tooltip":""}),t(o,{label:"\u7B7E\u7EA6\u65E5\u671F",prop:"contract_date","show-overflow-tooltip":""}),t(o,{label:"\u5408\u540C\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),t(o,{label:"\u6D3D\u5546\u91D1\u989D",prop:"negotiation_amount","show-overflow-tooltip":""}),t(o,{label:"\u5B9E\u9645\u5408\u540C\u91D1\u989D",prop:"reality_contract_amount","show-overflow-tooltip":""}),t(o,{label:"\u5DF2\u56DE\u6B3E",prop:"returned_amount","show-overflow-tooltip":""}),t(o,{label:"\u672A\u56DE\u6B3E",prop:"not_returned_amount","show-overflow-tooltip":""}),t(o,{label:"\u5DF2\u5F00\u7968",prop:"invoicing_amount","show-overflow-tooltip":""}),t(o,{label:"\u672A\u5F00\u7968",prop:"not_invoicing_amount","show-overflow-tooltip":""}),t(o,{label:"\u5DF2\u9000\u6B3E\u91D1\u989D",prop:"refund_amount","show-overflow-tooltip":""}),t(o,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:e})=>[v((r(),s(m,{type:"primary",link:"",onClick:D=>M(e)},{default:a(()=>[kt]),_:2},1032,["onClick"])),[[w,["contract.contract/edit"]]]),v((r(),s(m,{type:"danger",link:"",onClick:D=>V(e.id)},{default:a(()=>[Vt]),_:2},1032,["onClick"])),[[w,["contract.contract/delete"]]]),v((r(),s(m,{link:"",onClick:D=>O(e)},{default:a(()=>[xt]),_:2},1032,["onClick"])),[[w,["contract.contract/detail"]]])]),_:1})]),_:1},8,["data"])]),N("div",$t,[t(K,{modelValue:n(f),"onUpdate:modelValue":l[3]||(l[3]=e=>Dt(f)?f.value=e:null),onChange:n(b)},null,8,["modelValue","onChange"])])]),_:1})),[[Q,n(f).loading]]),y.value?(r(),s(vt,{key:0,ref_key:"detailRef",ref:F,"dict-data":n(d),onClose:l[4]||(l[4]=e=>y.value=!1)},null,8,["dict-data"])):S("",!0),h.value?(r(),s(ft,{key:1,ref_key:"editRef",ref:C,"dict-data":n(d),onSuccess:n(b),onClose:l[5]||(l[5]=e=>h.value=!1)},null,8,["dict-data","onSuccess"])):S("",!0)])}}});export{To as default};
|