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

2 lines
7.4 KiB
JavaScript

import{I as Y,y as Z,G as tt,H as et,w as ot,D as at,C as lt,L as nt,M as it,N as ut}from"./element-plus.258bf9e7.js";import{_ as rt}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as st,a as pt}from"./index.ec401e3b.js";import{_ as ct}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as mt}from"./usePaging.f6660143.js";import{u as dt}from"./useDictOptions.c644f395.js";import{d as $,a as N,e as _t}from"./contract_negotiation.1907410e.js";import"./lodash.1d82ee7c.js";import{_ as ft}from"./edit.vue_vue_type_script_setup_true_name_contractNegotiationEdit_lang.2e316f90.js";import Dt from"./detail.6a0575e9.js";import{u as vt}from"./vue-router.87ebc608.js";import{d as S,s as L,r as y,a0 as gt,ai as wt,o as s,c as R,V as t,M as a,O as f,u as n,L as c,S as j,W as Ft,a8 as bt,a as P,k as ht,T as d,n as k}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"./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";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.fa76c14a.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./contract.4f8a540d.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";import"./index.a91b9a2c.js";import"./approve.4bfa22cd.js";import"./flow.825559ec.js";import"./custom.13e75d58.js";import"./flowSet.6e7dc427.js";const Ct=d("\u67E5\u8BE2"),Et=d("\u91CD\u7F6E"),yt=d(" \u65B0\u589E "),kt=d(" \u5220\u9664 "),Bt={class:"mt-4"},Vt=d(" \u7F16\u8F91 "),xt=d(" \u5220\u9664 "),At=d(" \u8BE6\u60C5 "),$t={class:"flex justify-end mt-4"},Nt=S({name:"contractNegotiationLists"}),$e=S({...Nt,setup(Lt){var x;const b=L(),v=L(),g=y(!1),h=y(!1),i=gt({project_name:"",negotiation_name:"",negotiation_no:"",negotiation_type:""}),C=y([]),I=u=>{C.value=u.map(({id:e})=>e)},{dictData:E}=dt("negotiation_type,contract_type,contract_pricing_method"),{pager:_,getLists:w,resetParams:T,resetPage:U}=mt({fetchFun:$,params:i}),q=async()=>{var u;g.value=!0,await k(),(u=v.value)==null||u.open("add")},z=async u=>{var p,r;let e=await N({id:u.id});g.value=!0,await k(),(p=v.value)==null||p.open("edit"),(r=v.value)==null||r.setFormData(e)},B=async u=>{await st.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _t({id:u}),w()},M=async u=>{var p,r;let e=await N({id:u.id});h.value=!0,await k(),(p=b.value)==null||p.open(),(r=b.value)==null||r.setFormData(e)},V=vt();return(x=V.query)!=null&&x.listId&&handledetail({id:V.query.listId}),w(),(u,e)=>{const p=Y,r=Z,O=tt,G=et,m=ot,H=ct,W=at,A=lt,J=pt,l=nt,K=it,Q=rt,D=wt("perms"),X=ut;return s(),R("div",null,[t(A,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(W,{class:"mb-[-16px]",model:i,inline:""},{default:a(()=>[t(r,{label:"\u6D3D\u5546\u7F16\u53F7",prop:"negotiation_no"},{default:a(()=>[t(p,{class:"w-[280px]",modelValue:i.negotiation_no,"onUpdate:modelValue":e[0]||(e[0]=o=>i.negotiation_no=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6D3D\u5546\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),t(r,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"},{default:a(()=>[t(p,{class:"w-[280px]",modelValue:i.project_name,"onUpdate:modelValue":e[1]||(e[1]=o=>i.project_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(r,{label:"\u6D3D\u5546\u5355\u540D\u79F0",prop:"negotiation_name"},{default:a(()=>[t(p,{class:"w-[280px]",modelValue:i.negotiation_name,"onUpdate:modelValue":e[2]||(e[2]=o=>i.negotiation_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6D3D\u5546\u5355\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(r,{label:"\u6D3D\u5546\u5355\u540D\u79F0",prop:"negotiation_type"},{default:a(()=>[t(G,{class:"w-[280px]",modelValue:i.negotiation_type,"onUpdate:modelValue":e[3]||(e[3]=o=>i.negotiation_type=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6D3D\u5546\u7C7B\u522B"},{default:a(()=>[(s(!0),R(Ft,null,bt(n(E).negotiation_type,(o,F)=>(s(),c(O,{key:F,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(r,null,{default:a(()=>[t(m,{type:"primary",onClick:n(U)},{default:a(()=>[Ct]),_:1},8,["onClick"]),t(m,{onClick:n(T)},{default:a(()=>[Et]),_:1},8,["onClick"]),t(H,{class:"ml-2.5","fetch-fun":n($),params:i,"page-size":n(_).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),c(A,{class:"!border-none",shadow:"never"},{default:a(()=>[f((s(),c(m,{type:"primary",onClick:q},{icon:a(()=>[t(J,{name:"el-icon-Plus"})]),default:a(()=>[yt]),_:1})),[[D,["contract.contract_negotiation/add"]]]),f((s(),c(m,{disabled:!C.value.length,onClick:e[4]||(e[4]=o=>B(C.value))},{default:a(()=>[kt]),_:1},8,["disabled"])),[[D,["contract.contract_negotiation/delete"]]]),P("div",Bt,[t(K,{data:n(_).lists,onSelectionChange:I},{default:a(()=>[t(l,{type:"selection",width:"55"}),t(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),t(l,{label:"\u6D3D\u5546\u7F16\u53F7",prop:"negotiation_no","show-overflow-tooltip":""}),t(l,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_code","show-overflow-tooltip":""}),t(l,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),t(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),t(l,{label:"\u6D3D\u5546\u62A5\u4EF7\u91D1\u989D",prop:"negotiation_amount","show-overflow-tooltip":""}),t(l,{label:"\u6D3D\u5546\u7C7B\u522B",prop:"negotiation_type","show-overflow-tooltip":""}),t(l,{label:"\u7B7E\u7EA6\u65E5\u671F",prop:"contract_date","show-overflow-tooltip":""}),t(l,{label:"\u4E1A\u52A1\u8D1F\u8D23\u4EBA",prop:"business_director","show-overflow-tooltip":""}),t(l,{label:"\u5229\u6DA6",prop:"profit","show-overflow-tooltip":""}),t(l,{label:"\u5229\u6DA6\u7387",prop:"profit_rate","show-overflow-tooltip":""}),t(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:o})=>[f((s(),c(m,{type:"primary",link:"",onClick:F=>z(o)},{default:a(()=>[Vt]),_:2},1032,["onClick"])),[[D,["contract.contract_negotiation/edit"]]]),f((s(),c(m,{type:"danger",link:"",onClick:F=>B(o.id)},{default:a(()=>[xt]),_:2},1032,["onClick"])),[[D,["contract.contract_negotiation/delete"]]]),f((s(),c(m,{link:"",onClick:F=>M(o)},{default:a(()=>[At]),_:2},1032,["onClick"])),[[D,["contract.contract_negotiation/detail"]]])]),_:1})]),_:1},8,["data"])]),P("div",$t,[t(Q,{modelValue:n(_),"onUpdate:modelValue":e[5]||(e[5]=o=>ht(_)?_.value=o:null),onChange:n(w)},null,8,["modelValue","onChange"])])]),_:1})),[[X,n(_).loading]]),h.value?(s(),c(Dt,{key:0,ref_key:"detailRef",ref:b,"dict-data":n(E),onClose:e[6]||(e[6]=o=>h.value=!1)},null,8,["dict-data"])):j("",!0),g.value?(s(),c(ft,{key:1,ref_key:"editRef",ref:v,"dict-data":n(E),onSuccess:n(w),onClose:e[7]||(e[7]=o=>g.value=!1)},null,8,["dict-data","onSuccess"])):j("",!0)])}}});export{$e as default};