engineering/public/admin/assets/index.d03a4a50.js
2024-06-13 14:42:52 +08:00

2 lines
8.5 KiB
JavaScript

import{G as z,B as H,w as J,L as K,C as Q,N as W,O as X,P as Z}from"./element-plus.6d2d2999.js";import{_ as ee}from"./index.d61f748c.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.09449d5c.js";import{f as ae,a as oe}from"./index.1eb21f43.js";import{u as le}from"./usePaging.d22bd5fb.js";import{u as ie}from"./useDictOptions.8d7e96ad.js";import{_ as ne,a as ue,b as V,c as re}from"./edit.vue_vue_type_script_setup_true_name_financialBidMarginEdit_lang.c2e38162.js";import{a as se}from"./department.6bffbe4a.js";import{d as $,s as pe,r as b,a0 as me,ak as de,o as u,c as ce,V as e,M as a,O as _,u as r,L as p,S as L,a as M,k as _e,T as d,n as h}from"./@vue.5673dc6e.js";import"./@vueuse.ae0833ee.js";import"./@element-plus.d30df31f.js";import"./lodash-es.5979d539.js";import"./dayjs.2ad434f4.js";import"./axios.36225696.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.7cbc136f.js";import"./lodash.a82e6f70.js";import"./vue-router.137bc04e.js";import"./pinia.dba679c5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5db10a28.js";import"./color.71c30cc1.js";import"./clone.2ee3e1bd.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.6e76bada.js";import"./ms.a9ae1d6d.js";import"./nprogress.6e60475c.js";import"./vue-clipboard3.532e155c.js";import"./clipboard.7774a268.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.00aeb742.js";import"./index.vue_vue_type_style_index_0_lang.9c6a9f68.js";import"./common.e82db683.js";import"./dialogTableConfig.99d453ed.js";import"./consult_project.df5dc4c1.js";import"./manage_project.a50e4cef.js";import"./cost_approved_project.8ed019c2.js";import"./cost_project.3978a15e.js";import"./task_type.9e678fb6.js";import"./subcontracting_contract.1c9251a4.js";import"./suppler_list.134a92fe.js";import"./procurement_contract.8e888b8d.js";import"./paymentplan.b72a6213.js";import"./bank_account.c7e7775a.js";import"./financial_fee_application.57296bfc.js";import"./financial_borrow_money.97dc92eb.js";import"./marketing_custom_return_visit_template.a41d54aa.js";import"./marketing_custom_return_visit.7759a1bf.js";import"./marketing_custom.2e527745.js";import"./project_attendance_record.39065364.js";import"./marketing_contract.d0034645.js";import"./marketing_competitor.2f01e111.js";import"./oa_flow_type.6a13c457.js";import"./oa_examine_temp_item.18ada1fd.js";import"./oaSelfExamine.5246e4c7.js";import"./index.vue_vue_type_script_setup_true_name_createUserLable_lang.d7979544.js";import"./index.1204a6e2.js";/* empty css */const fe={title:"\u8D22\u52A1\u7BA1\u7406--\u6295\u6807\u4FDD\u8BC1\u91D1\u7533\u8BF7",config:[{label:"\u5408\u540C\u540D\u79F0",value:"project_name"},{label:"\u7532\u65B9\u5355\u4F4D",value:"part_a_name"},{label:"\u6536\u6B3E\u5355\u4F4D",value:"collection_company"},{label:"\u6536\u6B3E\u8D26\u53F7",value:"collection_account"},{label:"\u5F00\u6237\u7701\u4EFD",value:"province_name"},{label:"\u5F00\u6237\u57CE\u5E02",value:"city_name"},{label:"\u6536\u6B3E\u94F6\u884C",value:"collection_bank"},{label:"\u6536\u6B3E\u5F00\u6237\u884C",value:"collection_open_bank"},{label:"\u7ECF\u529E\u4EBA",value:"agent_name"},{label:"\u8D1F\u8D23\u90E8\u95E8",value:"head_dept_name"},{label:"\u6295\u6807\u4FDD\u8BC1\u91D1",value:"bid_margin"},{label:"\u652F\u4ED8\u65B9\u5F0F",value:"pay_type_text"},{label:"\u7F34\u7EB3\u622A\u6B62\u65E5\u671F",value:"end_date"},{label:"\u9884\u8BA1\u5F52\u8FD8\u65E5\u671F",value:"expected_return_date"},{label:"\u7F34\u7EB3\u622A\u6B62\u65E5\u671F",value:"end_date"},{label:"\u5907\u6CE8",value:"remark",column:1},{label:"\u9644\u4EF6",value:"annex",column:1},{label:"\u7533\u8BF7\u4EBA",value:"create_user"},{label:"\u7533\u8BF7\u65F6\u95F4",value:"create_time"}]},ve=d("\u67E5\u8BE2"),be=d("\u91CD\u7F6E"),Fe=d(" \u65B0\u589E "),we=d(" \u5220\u9664 "),ge={class:"mt-4"},De=d(" \u7F16\u8F91 "),Ee=d(" \u5220\u9664 "),Ce=d(" \u8BE6\u60C5 "),he={class:"flex mt-4 justify-end"},ke=$({name:"financialBidMarginLists"}),Ut=$({...ke,setup(ye){const F=pe(),D=b(""),w=b(!1),E=b(!1),c=me({bid_info_id:"",business_opportunity_id:"",part_a:""}),C=b([]),A=o=>{C.value=o.map(({id:t})=>t)},{dictData:P}=ie("financial_pay_type"),{pager:f,getLists:g,resetParams:Y,resetPage:R}=le({fetchFun:ue,params:c}),N=async()=>{var o;w.value=!0,await h(),(o=F.value)==null||o.open("add")},S=async o=>{var s,n;let t=await V({id:o.id});w.value=!0,await h(),(s=F.value)==null||s.open("edit"),(n=F.value)==null||n.setFormData(t)},k=async o=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:o}),g()},T=async o=>{var s,n;let t=await V({id:o});E.value=!0,await h(),(s=D.value)==null||s.open(),(n=D.value)==null||n.setFormData(t)},y=b([]);return(async()=>{let o=await se();y.value=o.lists})(),g(),(o,t)=>{const s=z,n=H,m=J,j=K,B=Q,U=oe,l=W,O=X,q=te,G=ee,v=de("perms"),I=Z;return u(),ce("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(j,{class:"mb-[-16px]",model:c,inline:""},{default:a(()=>[e(n,{label:"\u7F34\u7EB3\u622A\u6B62\u65E5\u671F",prop:"end_date"},{default:a(()=>[e(s,{class:"flex-1 !flex",modelValue:c.end_date,"onUpdate:modelValue":t[0]||(t[0]=i=>c.end_date=i),clearable:"","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u7F34\u7EB3\u622A\u6B62\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u9884\u8BA1\u5F52\u8FD8\u65E5\u671F",prop:"expected_return_date"},{default:a(()=>[e(s,{class:"flex-1 !flex",modelValue:c.expected_return_date,"onUpdate:modelValue":t[1]||(t[1]=i=>c.expected_return_date=i),clearable:"","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u9884\u8BA1\u5F52\u8FD8\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(n,null,{default:a(()=>[e(m,{type:"primary",onClick:r(R)},{default:a(()=>[ve]),_:1},8,["onClick"]),e(m,{onClick:r(Y)},{default:a(()=>[be]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((u(),p(B,{class:"!border-none",shadow:"never"},{default:a(()=>[_((u(),p(m,{type:"primary",onClick:N},{icon:a(()=>[e(U,{name:"el-icon-Plus"})]),default:a(()=>[Fe]),_:1})),[[v,["financial.financial_bid_margin/add"]]]),_((u(),p(m,{disabled:!C.value.length,onClick:t[2]||(t[2]=i=>k(C.value))},{default:a(()=>[we]),_:1},8,["disabled"])),[[v,["financial.financial_bid_margin/delete"]]]),M("div",ge,[e(O,{data:r(f).lists,onSelectionChange:A},{default:a(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u7532\u65B9\u5355\u4F4D",prop:"part_a_name","show-overflow-tooltip":""}),e(l,{label:"\u6536\u6B3E\u5355\u4F4D",prop:"collection_company","show-overflow-tooltip":""}),e(l,{label:"\u6536\u6B3E\u8D26\u53F7",prop:"collection_account","show-overflow-tooltip":""}),e(l,{label:"\u6295\u6807\u4FDD\u8BC1\u91D1",prop:"bid_margin","show-overflow-tooltip":""}),e(l,{label:"\u5F00\u6237\u7701\u4EFD",prop:"province_name","show-overflow-tooltip":""}),e(l,{label:"\u5F00\u6237\u57CE\u5E02",prop:"city_name","show-overflow-tooltip":""}),e(l,{label:"\u6295\u6807\u4FDD\u8BC1\u91D1",prop:"bid_margin","show-overflow-tooltip":""}),e(l,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type_text","show-overflow-tooltip":""}),e(l,{label:"\u7F34\u7EB3\u622A\u6B62\u65E5\u671F",prop:"end_date","show-overflow-tooltip":""}),e(l,{label:"\u9884\u8BA1\u5F52\u8FD8\u65E5\u671F",prop:"expected_return_date","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:a(({row:i})=>[_((u(),p(m,{type:"primary",link:"",onClick:x=>S(i)},{default:a(()=>[De]),_:2},1032,["onClick"])),[[v,["financial.financial_bid_margin/edit"]]]),_((u(),p(m,{type:"danger",link:"",onClick:x=>k(i.id)},{default:a(()=>[Ee]),_:2},1032,["onClick"])),[[v,["financial.financial_bid_margin/delete"]]]),_((u(),p(m,{link:"",onClick:x=>T(i.id)},{default:a(()=>[Ce]),_:2},1032,["onClick"])),[[v,["financial.financial_bid_margin/detail"]]])]),_:1})]),_:1},8,["data"])]),M("div",he,[e(q,{modelValue:r(f),"onUpdate:modelValue":t[3]||(t[3]=i=>_e(f)?f.value=i:null),onChange:r(g)},null,8,["modelValue","onChange"])])]),_:1})),[[I,r(f).loading]]),w.value?(u(),p(ne,{key:0,deptList:y.value,ref_key:"editRef",ref:F,"dict-data":r(P),onSuccess:r(g),onClose:t[4]||(t[4]=i=>w.value=!1)},null,8,["deptList","dict-data","onSuccess"])):L("",!0),E.value?(u(),p(G,{key:1,ref_key:"detailRef",ref:D,onClose:t[5]||(t[5]=i=>E.value=!1),detailConfig:r(fe)},null,8,["detailConfig"])):L("",!0)])}}});export{Ut as default};