2 lines
7.0 KiB
JavaScript
2 lines
7.0 KiB
JavaScript
import{I as J,y as K,G as Q,H as X,w as Y,D as Z,C as tt,L as et,M as ot,N as at}from"./element-plus.4ff6f47d.js";import{_ as lt}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{f as nt,a as it}from"./index.aaca920c.js";import{u as ut}from"./usePaging.f6660143.js";import{u as rt}from"./useDictOptions.c83e2497.js";import{d as st,a as x,e as pt}from"./contract_negotiation.549d2757.js";import"./lodash.8ea2174a.js";import{_ as ct}from"./edit.vue_vue_type_script_setup_true_name_contractNegotiationEdit_lang.d28689db.js";import dt from"./detail.551b85df.js";import{d as j,s as A,r as y,a0 as mt,ai as _t,o as u,c as N,V as t,M as a,O as _,u as s,L as c,S as $,W as ft,a8 as Dt,a as L,k as vt,T as m,n as k}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.ff7c6188.js";import"./index.vue_vue_type_script_setup_true_lang.8f930bd2.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./contract.36d7c861.js";import"./department.a7058b70.js";import"./organization.f9ce12f7.js";import"./custom.01004c04.js";const gt=m("\u67E5\u8BE2"),wt=m("\u91CD\u7F6E"),Ft=m(" \u65B0\u589E "),bt=m(" \u5220\u9664 "),Ct={class:"mt-4"},Et=m(" \u7F16\u8F91 "),ht=m(" \u5220\u9664 "),yt=m(" \u8BE6\u60C5 "),kt={class:"flex justify-end mt-4"},Bt=j({name:"contractNegotiationLists"}),be=j({...Bt,setup(Vt){const b=A(),v=A(),g=y(!1),C=y(!1),r=mt({project_name:"",negotiation_name:"",negotiation_no:"",negotiation_type:""}),E=y([]),P=n=>{E.value=n.map(({id:e})=>e)},{dictData:h}=rt("negotiation_type,contract_type,contract_pricing_method"),{pager:f,getLists:w,resetParams:R,resetPage:S}=ut({fetchFun:st,params:r}),T=async()=>{var n;g.value=!0,await k(),(n=v.value)==null||n.open("add")},U=async n=>{var p,i;let e=await x({id:n.id});g.value=!0,await k(),(p=v.value)==null||p.open("edit"),(i=v.value)==null||i.setFormData(e)},B=async n=>{await nt.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pt({id:n}),w()},I=async n=>{var p,i;let e=await x({id:n.id});C.value=!0,await k(),(p=b.value)==null||p.open(),(i=b.value)==null||i.setFormData(e)};return w(),(n,e)=>{const p=J,i=K,M=Q,O=X,d=Y,q=Z,V=tt,G=it,l=et,H=ot,W=lt,D=_t("perms"),z=at;return u(),N("div",null,[t(V,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(q,{class:"mb-[-16px]",model:r,inline:""},{default:a(()=>[t(i,{label:"\u6D3D\u5546\u7F16\u53F7",prop:"negotiation_no"},{default:a(()=>[t(p,{class:"w-[280px]",modelValue:r.negotiation_no,"onUpdate:modelValue":e[0]||(e[0]=o=>r.negotiation_no=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6D3D\u5546\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),t(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"},{default:a(()=>[t(p,{class:"w-[280px]",modelValue:r.project_name,"onUpdate:modelValue":e[1]||(e[1]=o=>r.project_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(i,{label:"\u6D3D\u5546\u5355\u540D\u79F0",prop:"negotiation_name"},{default:a(()=>[t(p,{class:"w-[280px]",modelValue:r.negotiation_name,"onUpdate:modelValue":e[2]||(e[2]=o=>r.negotiation_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6D3D\u5546\u5355\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(i,{label:"\u6D3D\u5546\u5355\u540D\u79F0",prop:"negotiation_type"},{default:a(()=>[t(O,{class:"w-[280px]",modelValue:r.negotiation_type,"onUpdate:modelValue":e[3]||(e[3]=o=>r.negotiation_type=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6D3D\u5546\u7C7B\u522B"},{default:a(()=>[(u(!0),N(ft,null,Dt(s(h).negotiation_type,(o,F)=>(u(),c(M,{key:F,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(i,null,{default:a(()=>[t(d,{type:"primary",onClick:s(S)},{default:a(()=>[gt]),_:1},8,["onClick"]),t(d,{onClick:s(R)},{default:a(()=>[wt]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((u(),c(V,{class:"!border-none",shadow:"never"},{default:a(()=>[_((u(),c(d,{type:"primary",onClick:T},{icon:a(()=>[t(G,{name:"el-icon-Plus"})]),default:a(()=>[Ft]),_:1})),[[D,["contract.contract_negotiation/add"]]]),_((u(),c(d,{disabled:!E.value.length,onClick:e[4]||(e[4]=o=>B(E.value))},{default:a(()=>[bt]),_:1},8,["disabled"])),[[D,["contract.contract_negotiation/delete"]]]),L("div",Ct,[t(H,{data:s(f).lists,onSelectionChange:P},{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})=>[_((u(),c(d,{type:"primary",link:"",onClick:F=>U(o)},{default:a(()=>[Et]),_:2},1032,["onClick"])),[[D,["contract.contract_negotiation/edit"]]]),_((u(),c(d,{type:"danger",link:"",onClick:F=>B(o.id)},{default:a(()=>[ht]),_:2},1032,["onClick"])),[[D,["contract.contract_negotiation/delete"]]]),_((u(),c(d,{link:"",onClick:F=>I(o)},{default:a(()=>[yt]),_:2},1032,["onClick"])),[[D,["contract.contract_negotiation/detail"]]])]),_:1})]),_:1},8,["data"])]),L("div",kt,[t(W,{modelValue:s(f),"onUpdate:modelValue":e[5]||(e[5]=o=>vt(f)?f.value=o:null),onChange:s(w)},null,8,["modelValue","onChange"])])]),_:1})),[[z,s(f).loading]]),C.value?(u(),c(dt,{key:0,ref_key:"detailRef",ref:b,"dict-data":s(h),onClose:e[6]||(e[6]=o=>C.value=!1)},null,8,["dict-data"])):$("",!0),g.value?(u(),c(ct,{key:1,ref_key:"editRef",ref:v,"dict-data":s(h),onSuccess:s(w),onClose:e[7]||(e[7]=o=>g.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0)])}}});export{be as default};
|