engineering/public/admin/assets/index.2f781eb6.js
2024-04-19 12:13:39 +08:00

2 lines
8.4 KiB
JavaScript

import{G as Q,B as z,w as H,L as J,C as K,O as W,P as X,Q as Z}from"./element-plus.c5968462.js";import{_ as ee}from"./index.e9056132.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.963b6450.js";import{f as ae,a as oe}from"./index.9aa949ed.js";import{u as le}from"./usePaging.5a1a0ff2.js";import{u as ie}from"./useDictOptions.65204acf.js";import{_ as ne,a as ue,b as V,c as re}from"./edit.vue_vue_type_script_setup_true_name_financialBidMarginEdit_lang.6c9ec062.js";import{a as se}from"./department.c67dc4f0.js";import{d as $,s as pe,r as b,a0 as me,ai 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.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.9bff6341.js";import"./dayjs.920ed704.js";import"./axios.fd7895df.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.4450cf90.js";import"./lodash.f060c5ce.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.89a2cd6d.js";import"./color.f7f12e1b.js";import"./clone.3f99ce25.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7ca60bdd.js";import"./ms.a9ae1d6d.js";import"./nprogress.2d805d1c.js";import"./vue-clipboard3.f9b015dd.js";import"./clipboard.84da4513.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./index.vue_vue_type_style_index_0_lang.cda5de72.js";import"./common.dbc22d71.js";import"./dialogTableConfig.39c0aff5.js";import"./supervision_project.6b1210a3.js";import"./manage_project.9d7ac6d8.js";import"./cost_approved_project.d1646aac.js";import"./task_type.c1bd483f.js";import"./consult_project.6aa0bc96.js";import"./subcontracting_contract.06fd0a4a.js";import"./suppler_list.7f44b8ca.js";import"./procurement_contract.20d7590f.js";import"./paymentplan.be0b26b3.js";import"./bank_account.3765577e.js";import"./financial_fee_application.4a308c0e.js";import"./financial_borrow_money.fdcba2cf.js";import"./marketing_custom_return_visit_template.4310bc92.js";import"./marketing_custom_return_visit.b564e531.js";import"./marketing_custom.7ccd0379.js";import"./project_attendance_record.93303a4a.js";import"./marketing_contract.20350977.js";import"./marketing_competitor.47f2b8b7.js";import"./index.vue_vue_type_script_setup_true_name_createUserLable_lang.412b36c1.js";import"./index.vue_vue_type_script_setup_true_lang.fb3c6a1b.js";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"}),St=$({...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}),S=async()=>{var o;w.value=!0,await h(),(o=F.value)==null||o.open("add")},T=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()},N=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=Q,n=z,m=H,j=J,B=K,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:S},{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=>T(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=>N(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{St as default};