engineering/public/admin/assets/index.64b4ada3.js
2024-05-04 13:52:54 +08:00

2 lines
8.2 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.76ad22d1.js";import{_ as ee}from"./index.2456a665.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.53484866.js";import{f as te,a as oe}from"./index.7dbdd523.js";import{u as le}from"./usePaging.5a1a0ff2.js";import{u as ie}from"./useDictOptions.19212006.js";import{_ as ne,a as ue,b as V,c as re}from"./edit.vue_vue_type_script_setup_true_name_financialBidMarginEdit_lang.958847e9.js";import{a as se}from"./department.5dc3a172.js";import{d as $,s as pe,r as b,a0 as de,ai as ce,o as u,c as me,V as e,M as t,O as _,u as r,L as p,S as L,a as M,k as _e,T as c,n as h}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.9bff6341.js";import"./dayjs.4e54c873.js";import"./axios.c27a9cd7.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.c145206a.js";import"./lodash.12303e67.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ce2b95b7.js";import"./color.0b62cf11.js";import"./clone.b8d2a027.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./nprogress.026d6bda.js";import"./vue-clipboard3.1a74f940.js";import"./clipboard.80ee0599.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.0905047a.js";import"./common.4a628220.js";import"./dialogTableConfig.1168ddc2.js";import"./cost_approved_project.87772dc0.js";import"./task_type.523a1d31.js";import"./subcontracting_contract.2ea27f74.js";import"./suppler_list.39e50042.js";import"./procurement_contract.d97ecdd9.js";import"./paymentplan.8cb97641.js";import"./bank_account.7dd11955.js";import"./financial_fee_application.30ee7cf5.js";import"./financial_borrow_money.768bab5d.js";import"./marketing_custom_return_visit_template.5fb4f637.js";import"./marketing_custom_return_visit.4572b4d1.js";import"./marketing_custom.c254a56a.js";import"./project_attendance_record.39160317.js";import"./marketing_contract.aacda360.js";import"./marketing_competitor.a5e5d9a6.js";import"./index.vue_vue_type_script_setup_true_name_createUserLable_lang.63b156a6.js";import"./index.vue_vue_type_script_setup_true_lang.3b0be00d.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=c("\u67E5\u8BE2"),be=c("\u91CD\u7F6E"),Fe=c(" \u65B0\u589E "),we=c(" \u5220\u9664 "),ge={class:"mt-4"},De=c(" \u7F16\u8F91 "),Ee=c(" \u5220\u9664 "),Ce=c(" \u8BE6\u60C5 "),he={class:"flex mt-4 justify-end"},ke=$({name:"financialBidMarginLists"}),$a=$({...ke,setup(ye){const F=pe(),D=b(""),w=b(!1),E=b(!1),m=de({bid_info_id:"",business_opportunity_id:"",part_a:""}),C=b([]),A=o=>{C.value=o.map(({id:a})=>a)},{dictData:P}=ie("financial_pay_type"),{pager:f,getLists:g,resetParams:Y,resetPage:R}=le({fetchFun:ue,params:m}),S=async()=>{var o;w.value=!0,await h(),(o=F.value)==null||o.open("add")},T=async o=>{var s,n;let a=await V({id:o.id});w.value=!0,await h(),(s=F.value)==null||s.open("edit"),(n=F.value)==null||n.setFormData(a)},k=async o=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:o}),g()},N=async o=>{var s,n;let a=await V({id:o});E.value=!0,await h(),(s=D.value)==null||s.open(),(n=D.value)==null||n.setFormData(a)},y=b([]);return(async()=>{let o=await se();y.value=o.lists})(),g(),(o,a)=>{const s=Q,n=z,d=H,j=J,B=K,U=oe,l=W,O=X,q=ae,G=ee,v=ce("perms"),I=Z;return u(),me("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(j,{class:"mb-[-16px]",model:m,inline:""},{default:t(()=>[e(n,{label:"\u7F34\u7EB3\u622A\u6B62\u65E5\u671F",prop:"end_date"},{default:t(()=>[e(s,{class:"flex-1 !flex",modelValue:m.end_date,"onUpdate:modelValue":a[0]||(a[0]=i=>m.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:t(()=>[e(s,{class:"flex-1 !flex",modelValue:m.expected_return_date,"onUpdate:modelValue":a[1]||(a[1]=i=>m.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:t(()=>[e(d,{type:"primary",onClick:r(R)},{default:t(()=>[ve]),_:1},8,["onClick"]),e(d,{onClick:r(Y)},{default:t(()=>[be]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((u(),p(B,{class:"!border-none",shadow:"never"},{default:t(()=>[_((u(),p(d,{type:"primary",onClick:S},{icon:t(()=>[e(U,{name:"el-icon-Plus"})]),default:t(()=>[Fe]),_:1})),[[v,["financial.financial_bid_margin/add"]]]),_((u(),p(d,{disabled:!C.value.length,onClick:a[2]||(a[2]=i=>k(C.value))},{default:t(()=>[we]),_:1},8,["disabled"])),[[v,["financial.financial_bid_margin/delete"]]]),M("div",ge,[e(O,{data:r(f).lists,onSelectionChange:A},{default:t(()=>[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:t(({row:i})=>[_((u(),p(d,{type:"primary",link:"",onClick:x=>T(i)},{default:t(()=>[De]),_:2},1032,["onClick"])),[[v,["financial.financial_bid_margin/edit"]]]),_((u(),p(d,{type:"danger",link:"",onClick:x=>k(i.id)},{default:t(()=>[Ee]),_:2},1032,["onClick"])),[[v,["financial.financial_bid_margin/delete"]]]),_((u(),p(d,{link:"",onClick:x=>N(i.id)},{default:t(()=>[Ce]),_:2},1032,["onClick"])),[[v,["financial.financial_bid_margin/detail"]]])]),_:1})]),_:1},8,["data"])]),M("div",he,[e(q,{modelValue:r(f),"onUpdate:modelValue":a[3]||(a[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:a[4]||(a[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:a[5]||(a[5]=i=>E.value=!1),detailConfig:r(fe)},null,8,["detailConfig"])):L("",!0)])}}});export{$a as default};