engineering/public/admin/assets/index.a3e5e9d8.js
2024-03-21 17:05:40 +08:00

2 lines
7.5 KiB
JavaScript

import{B as Z,D as tt,y as ot,A as et,w as at,L as nt,C as lt,S as it,T as rt,U as ut}from"./element-plus.0c562719.js";import{_ as st}from"./index.vue_vue_type_script_setup_true_lang.1ae1e14d.js";import{f as pt,a as ct}from"./index.a53ef25c.js";import{_ as mt}from"./index.vue_vue_type_style_index_0_lang.338f8415.js";import{_ as dt}from"./index.vue_vue_type_script_setup_true_lang.45b69313.js";import{u as _t}from"./usePaging.f6660143.js";import{u as ft}from"./useDictOptions.0fa8a4dd.js";import{d as $,a as S,e as vt}from"./contract_negotiation.bf5ad5b5.js";import{b as Dt}from"./contract.18d1455a.js";import{a as gt}from"./project.ee22fa03.js";import{c as ht}from"./custom.21b2ce65.js";import{_ as wt}from"./edit.vue_vue_type_script_setup_true_name_contractNegotiationEdit_lang.8f294fe1.js";import Ct from"./detail.c8d61feb.js";import{u as bt}from"./vue-router.87ebc608.js";import{d as j,s as N,r as E,a0 as Ft,ai as yt,o as u,c as R,V as t,M as o,O as f,u as n,L as c,S as L,W as Et,a8 as kt,a as P,k as Bt,T as d,n as k}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.9bff6341.js";import"./dayjs.b71ea374.js";import"./axios.a47df6c5.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.cf6c933b.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.7fa42df6.js";import"./color.33bf1982.js";import"./clone.a41dca03.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.2a4540f4.js";import"./ms.a9ae1d6d.js";import"./nprogress.efca4817.js";import"./vue-clipboard3.24161810.js";import"./clipboard.c8fd8745.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./index.79ed28eb.js";import"./index.vue_vue_type_script_setup_true_lang.4961e887.js";import"./index.vue_vue_type_script_setup_true_lang.73095406.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./index.a861c1cf.js";import"./approve.3f1b6377.js";import"./flow.78e76b61.js";import"./flowSet.93e960f0.js";const Vt=d("\u67E5\u8BE2"),xt=d("\u91CD\u7F6E"),At=d(" \u65B0\u589E "),$t=d(" \u5220\u9664 "),St={class:"mt-4"},Nt=d(" \u7F16\u8F91 "),Rt=d(" \u5220\u9664 "),Lt=d(" \u8BE6\u60C5 "),Pt={class:"flex justify-end mt-4"},jt=j({name:"contractNegotiationLists"}),To=j({...jt,setup(Tt){var x;const C=N(),D=N(),g=E(!1),b=E(!1),s=Ft({contract_id:"",project_id:"",custom_id:"",negotiation_no:"",negotiation_type:""}),F=E([]),T=r=>{F.value=r.map(({id:e})=>e)},{dictData:y}=ft("negotiation_type,contract_type,contract_pricing_method"),{pager:_,getLists:h,resetParams:I,resetPage:U}=_t({fetchFun:$,params:s}),q=async()=>{var r;g.value=!0,await k(),(r=D.value)==null||r.open("add")},z=async r=>{var p,i;let e=await S({id:r.id});g.value=!0,await k(),(p=D.value)==null||p.open("edit"),(i=D.value)==null||i.setFormData(e)},B=async r=>{await pt.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await vt({id:r}),h()},O=async r=>{var p,i;let e=await S({id:r.id});b.value=!0,await k(),(p=C.value)==null||p.open(),(i=C.value)==null||i.setFormData(e)},V=bt();return(x=V.query)!=null&&x.listId&&handledetail({id:V.query.listId}),h(),(r,e)=>{const p=dt,i=Z,M=tt,W=ot,G=et,m=at,H=mt,J=nt,A=lt,K=ct,l=it,Q=rt,X=st,v=yt("perms"),Y=ut;return u(),R("div",null,[t(A,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(J,{class:"mb-[-16px]",model:s,inline:""},{default:o(()=>[t(i,{label:"\u5173\u8054\u5408\u540C",prop:"contract_id"},{default:o(()=>[t(p,{formData:s,model:"contract_id",api:n(Dt)},null,8,["formData","api"])]),_:1}),t(i,{label:"\u6240\u5C5E\u9879\u76EE",prop:"project_id"},{default:o(()=>[t(p,{formData:s,model:"project_id",api:n(gt)},null,8,["formData","api"])]),_:1}),t(i,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_id"},{default:o(()=>[t(p,{formData:s,model:"custom_id",api:n(ht)},null,8,["formData","api"])]),_:1}),t(i,{label:"\u6D3D\u5546\u7F16\u53F7",prop:"negotiation_no"},{default:o(()=>[t(M,{class:"w-[280px]",modelValue:s.negotiation_no,"onUpdate:modelValue":e[0]||(e[0]=a=>s.negotiation_no=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6D3D\u5546\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),t(i,{label:"\u6D3D\u5546\u7C7B\u522B",prop:"negotiation_type"},{default:o(()=>[t(G,{class:"w-[280px]",modelValue:s.negotiation_type,"onUpdate:modelValue":e[1]||(e[1]=a=>s.negotiation_type=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6D3D\u5546\u7C7B\u522B"},{default:o(()=>[(u(!0),R(Et,null,kt(n(y).negotiation_type,(a,w)=>(u(),c(W,{key:w,label:a.name,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(i,null,{default:o(()=>[t(m,{type:"primary",onClick:n(U)},{default:o(()=>[Vt]),_:1},8,["onClick"]),t(m,{onClick:n(I)},{default:o(()=>[xt]),_:1},8,["onClick"]),t(H,{class:"ml-2.5","fetch-fun":n($),params:s,"page-size":n(_).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((u(),c(A,{class:"!border-none",shadow:"never"},{default:o(()=>[f((u(),c(m,{type:"primary",onClick:q},{icon:o(()=>[t(K,{name:"el-icon-Plus"})]),default:o(()=>[At]),_:1})),[[v,["contract.contract_negotiation/add"]]]),f((u(),c(m,{disabled:!F.value.length,onClick:e[2]||(e[2]=a=>B(F.value))},{default:o(()=>[$t]),_:1},8,["disabled"])),[[v,["contract.contract_negotiation/delete"]]]),P("div",St,[t(Q,{data:n(_).lists,onSelectionChange:T},{default:o(()=>[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:"\u5408\u540C\u540D\u79F0",prop:"contract_name","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:o(({row:a})=>[f((u(),c(m,{type:"primary",link:"",onClick:w=>z(a)},{default:o(()=>[Nt]),_:2},1032,["onClick"])),[[v,["contract.contract_negotiation/edit"]]]),f((u(),c(m,{type:"danger",link:"",onClick:w=>B(a.id)},{default:o(()=>[Rt]),_:2},1032,["onClick"])),[[v,["contract.contract_negotiation/delete"]]]),f((u(),c(m,{link:"",onClick:w=>O(a)},{default:o(()=>[Lt]),_:2},1032,["onClick"])),[[v,["contract.contract_negotiation/detail"]]])]),_:1})]),_:1},8,["data"])]),P("div",Pt,[t(X,{modelValue:n(_),"onUpdate:modelValue":e[3]||(e[3]=a=>Bt(_)?_.value=a:null),onChange:n(h)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,n(_).loading]]),b.value?(u(),c(Ct,{key:0,ref_key:"detailRef",ref:C,"dict-data":n(y),onClose:e[4]||(e[4]=a=>b.value=!1)},null,8,["dict-data"])):L("",!0),g.value?(u(),c(wt,{key:1,ref_key:"editRef",ref:D,"dict-data":n(y),onSuccess:n(h),onClose:e[5]||(e[5]=a=>g.value=!1)},null,8,["dict-data","onSuccess"])):L("",!0)])}}});export{To as default};