2 lines
7.7 KiB
JavaScript
2 lines
7.7 KiB
JavaScript
import{I as K,y as Q,G as X,H as Y,w as Z,D as tt,C as ot,L as et,M as at,N as lt}from"./element-plus.4ff6f47d.js";import{_ as nt}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{_ as ut}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as rt,a as it}from"./index.aaca920c.js";import{u as st}from"./usePaging.f6660143.js";import{u as ct}from"./useDictOptions.c83e2497.js";import{a as pt,b as $,e as mt}from"./contract.36d7c861.js";import"./lodash.8ea2174a.js";import{_ as _t}from"./edit.vue_vue_type_script_setup_true_name_contractEdit_lang.3f96a59c.js";import dt from"./detail.4d6c8100.js";import{d as N,s as L,r as g,a0 as ft,ai as vt,o as r,c as P,V as t,M as a,O as f,u as n,L as s,S as R,W as wt,a8 as Ct,a as S,k as ht,T as m,n as E}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.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.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.4845895e.js";import"./custom.01004c04.js";import"./index.ff7c6188.js";import"./index.vue_vue_type_script_setup_true_lang.8ab3987f.js";import"./bid_buy_bidding_document.4b6d70d3.js";import"./index.vue_vue_type_script_setup_true_lang.c07aa9ab.js";import"./project.86812b1a.js";import"./index.vue_vue_type_style_index_0_lang.0c71951f.js";import"./common.3ce42f04.js";import"./remittance.062ce581.js";import"./department.a7058b70.js";import"./organization.f9ce12f7.js";const bt=m("\u67E5\u8BE2"),Dt=m("\u91CD\u7F6E"),Et=m(" \u65B0\u589E "),Ft=m(" \u5220\u9664 "),yt={class:"mt-4"},Bt=m(" \u7F16\u8F91 "),kt=m(" \u5220\u9664 "),gt=m(" \u8BE6\u60C5 "),Vt={class:"flex justify-end mt-4"},xt=N({name:"contractLists"}),Ao=N({...xt,setup(At){const F=L(),C=L(),h=g(!1),y=g(!1),_=ft({contract_name:"",contract_type:""}),B=g([]),T=u=>{B.value=u.map(({id:l})=>l)},{dictData:d}=ct("contract_type,contract_pricing_method,contract_status,pay_period"),{pager:v,getLists:b,resetParams:j,resetPage:I}=st({fetchFun:pt,params:_}),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 $({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=>{await rt.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await mt({id:u}),b()},O=async u=>{var c,i;let l=await $({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=K,i=Q,x=X,q=Y,p=Z,G=tt,A=ot,H=it,o=et,k=ut,W=at,z=nt,w=vt("perms"),J=lt;return r(),P("div",null,[t(A,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(G,{class:"mb-[-16px]",model:_,inline:""},{default:a(()=>[t(i,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name"},{default:a(()=>[t(c,{class:"w-[280px]",modelValue:_.contract_name,"onUpdate:modelValue":l[0]||(l[0]=e=>_.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:_.contract_type,"onUpdate:modelValue":l[1]||(l[1]=e=>_.contract_type=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u7C7B\u578B"},{default:a(()=>[t(x,{label:"\u5168\u90E8",value:""}),(r(!0),P(wt,null,Ct(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(p,{type:"primary",onClick:n(I)},{default:a(()=>[bt]),_:1},8,["onClick"]),t(p,{onClick:n(j)},{default:a(()=>[Dt]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((r(),s(A,{class:"!border-none",shadow:"never"},{default:a(()=>[f((r(),s(p,{type:"primary",onClick:U},{icon:a(()=>[t(H,{name:"el-icon-Plus"})]),default:a(()=>[Et]),_:1})),[[w,["contract.contract/add"]]]),f((r(),s(p,{disabled:!B.value.length,onClick:l[2]||(l[2]=e=>V(B.value))},{default:a(()=>[Ft]),_:1},8,["disabled"])),[[w,["contract.contract/delete"]]]),S("div",yt,[t(W,{data:n(v).lists,onSelectionChange:T},{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(k,{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(k,{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(k,{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})=>[f((r(),s(p,{type:"primary",link:"",onClick:D=>M(e)},{default:a(()=>[Bt]),_:2},1032,["onClick"])),[[w,["contract.contract/edit"]]]),f((r(),s(p,{type:"danger",link:"",onClick:D=>V(e.approve_id)},{default:a(()=>[kt]),_:2},1032,["onClick"])),[[w,["contract.contract/delete"]]]),f((r(),s(p,{link:"",onClick:D=>O(e)},{default:a(()=>[gt]),_:2},1032,["onClick"])),[[w,["contract.contract/detail"]]])]),_:1})]),_:1},8,["data"])]),S("div",Vt,[t(z,{modelValue:n(v),"onUpdate:modelValue":l[3]||(l[3]=e=>ht(v)?v.value=e:null),onChange:n(b)},null,8,["modelValue","onChange"])])]),_:1})),[[J,n(v).loading]]),y.value?(r(),s(dt,{key:0,ref_key:"detailRef",ref:F,"dict-data":n(d),onClose:l[4]||(l[4]=e=>y.value=!1)},null,8,["dict-data"])):R("",!0),h.value?(r(),s(_t,{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"])):R("",!0)])}}});export{Ao as default};
|