engineering/public/admin/assets/detail.9dcbd945.js
2024-02-20 17:15:05 +08:00

2 lines
13 KiB
JavaScript

import{R as ve,a0 as De,S as ye,a4 as Fe,L as Ce,M as he,O as Be,a5 as we,D as ze}from"./element-plus.b3353ca6.js";import{_ as xe,a as ke}from"./index.cf38292c.js";import{_ as Ae}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{P as Le}from"./index.771e5a41.js";import{a as Se}from"./custom.735a8774.js";import{a8 as je,a9 as Ue}from"./flowSet.0350f9c8.js";import{d as Oe}from"./receiptrecord.7f70cc23.js";import{p as $e}from"./paymentplan.b9780dd5.js";import{c as Te}from"./paymentrequest.01756056.js";import{d as Ve}from"./refundrecord.ceb381cb.js";import{d as H,r,a0 as b,s as q,o as E,c as F,V as e,M as l,T as i,U as s,W as Pe,a8 as Re,a as c,L as G,u as Ne}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{a as Ie}from"./subcontracting_contract_detail.bfc61146.js";import{_ as Me}from"./index.892155dd.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./approve.cdf281c2.js";import"./flow.ec77bb69.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const We={class:"detail-popup"},qe={key:0},Ge={style:{"margin-left":"5px",display:"block"}},He={key:1},Je={style:{margin:"10px 0"}},Ke={style:{margin:"10px 0"}},Qe={style:{margin:"10px 0"}},Xe={style:{margin:"10px 0"}},Ye={style:{margin:"10px 0"}},Ze=H({name:"customdetail"}),ea=H({...Ze,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(J,{expose:K,emit:Q}){const S=r("demo-tabs-1"),m=b({page_size:10,page_no:1,contract_id:""}),d=b({page_size:10,page_no:1,contract_id:"",contract_type:2}),g=b({page_size:10,page_no:1,contract_id:"",contract_type:2}),_=b({page_size:10,page_no:1,contract_id:"",contract_type:2}),f=b({page_size:10,page_no:1,contract_id:"",contract_type:2}),j=r(0),U=r(0),O=r(0),$=r(0),T=r(0),X=q(),C=q(),h=b([]);b({provinceOptions:[],cityOptions:[],areaOptions:[]});const V=r([]),P=r([]),R=r([]),N=r([]),I=r([]),Y=(a,n)=>{console.log(a,n)},o=b({}),Z=a=>{m.page_size=a,B()},ee=a=>{d.page_size=a,w()},ae=a=>{g.page_size=a,z()},te=a=>{_.page_size=a,x()},le=a=>{f.page_size=a,k()},oe=a=>{console.log(`current page: ${a}`),m.page_no=a,B()},ne=a=>{console.log(`current page: ${a}`),d.page_no=a,w()},ue=a=>{g.page_no=a,console.log(`current page: ${a}`),z()},pe=a=>{_.page_no=a,console.log(`current page: ${a}`),x()},ie=a=>{f.page_no=a,console.log(`current page: ${a}`),k()},B=()=>{Ie(m).then(a=>{V.value=a.lists,j.value=a.count})},w=()=>{Oe(d).then(a=>{P.value=a.lists,U.value=a.count})},z=()=>{$e(g).then(a=>{R.value=a.lists,O.value=a.count})},x=()=>{Te(_).then(a=>{N.value=a.lists,$.value=a.count})},k=()=>{Ve(_).then(a=>{I.value=a.lists,T.value=a.count})},M=async a=>{if(Object.assign(o,a),m.contract_id=a.id,d.contract_id=a.id,g.contract_id=a.id,_.contract_id=a.id,f.contract_id=a.id,a.annex&&a.annex.length>0){const n=a.annex.map((p,L)=>({name:`\u6587\u4EF6${L+1}`,uri:p}));Object.assign(h,n)}z(),B(),w(),x(),k()},se=async a=>{const n=await Se({id:a.id});M(n)},re=async()=>{var a;(a=C.value)==null||a.close()},ce=()=>{var a;console.log("1111111"),(a=C.value)==null||a.open()},A=()=>{Q("close")},W=r([]);return(async()=>{if(o!=null&&o.approve_id)return;let a=await je();W.value=a})(),K({open:ce,setFormData:M,getDetail:se}),(a,n)=>{const p=ve,L=De,_e=ye,v=Fe,t=Ce,me=Ae,D=he,y=Be,de=we,ge=xe,be=ke,fe=ze;return E(),F("div",We,[e(Le,{ref_key:"popupRef",ref:C,title:"\u5206\u5305\u5408\u540C\u8BE6\u60C5",async:!0,width:"80%",onConfirm:re,onClose:A},{default:l(()=>[e(fe,{ref_key:"formRef",ref:X,model:o,"label-width":"120px"},{default:l(()=>[e(de,{modelValue:S.value,"onUpdate:modelValue":n[10]||(n[10]=u=>S.value=u),class:"demo-tabs",onTabClick:Y},{default:l(()=>[e(v,{label:"\u57FA\u672C\u4FE1\u606F",name:"demo-tabs-1"},{default:l(()=>[e(_e,{column:2,border:""},{default:l(()=>[e(p,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.project_name),1)]),_:1}),e(p,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.project_code),1)]),_:1}),e(p,{label:"\u5408\u540C\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.contract_name),1)]),_:1}),e(p,{label:"\u5408\u540C\u7F16\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.contract_no),1)]),_:1}),e(p,{label:"\u4F9B\u5E94\u5546\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.supplier_code),1)]),_:1}),e(p,{label:"\u4F9B\u5E94\u5546\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.supplier_name),1)]),_:1}),e(p,{label:"\u5408\u540C\u7C7B\u578B","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.contract_type_text),1)]),_:1}),e(p,{label:"\u7B7E\u8BA2\u65E5\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.signing_date),1)]),_:1}),e(p,{label:"\u4ED8\u6B3E\u65B9\u5F0F","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.pay_type_text),1)]),_:1}),e(p,{label:"\u8D26\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.account_period_text),1)]),_:1}),e(p,{label:"\u5408\u540C\u91D1\u989D","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.contract_amount),1)]),_:1}),e(p,{label:"\u7A0E\u7387","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.contract_type_text),1)]),_:1}),e(p,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.amount_excluding_tax),1)]),_:1}),e(p,{label:"\u8D28\u4FDD\u91D1\u6BD4\u4F8B(\uFF05)","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.retention_money_rate),1)]),_:1}),e(p,{label:"\u8D28\u4FDD\u91D1","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.retention_money),1)]),_:1}),e(p,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(o.remark),1)]),_:1}),e(p,{label:"\u5408\u540C\u9644\u4EF6","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[h.length>0?(E(),F("div",qe,[(E(!0),F(Pe,null,Re(h,(u,Ee)=>(E(),F("div",Ge,[e(L,{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:u.uri,target:"_blank"},{default:l(()=>[i("\u6587\u4EF6"+s(Ee+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),256))])):(E(),F("div",He," \u6682\u65E0\u9644\u4EF6 "))]),_:1})]),_:1})]),_:1}),e(v,{label:"\u91C7\u8D2D\u660E\u7EC6",name:"demo-tabs-2"},{default:l(()=>[c("div",null,[e(D,{data:V.value,stripe:"",style:{width:"100%"}},{default:l(()=>[e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(t,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(t,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type","show-overflow-tooltip":""}),e(t,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(t,{label:"\u5DE5\u4F5C\u7C7B\u578B",prop:"work_type","show-overflow-tooltip":""}),e(t,{label:"\u5DE5\u4F5C\u5185\u5BB9",prop:"work_content","show-overflow-tooltip":""}),e(t,{label:"\u9879\u76EE\u7279\u5F81",prop:"project_features","show-overflow-tooltip":""}),e(t,{label:"\u5355\u4F4D",prop:"unit","show-overflow-tooltip":""}),e(t,{label:"\u7A0E\u7387(%)",prop:"tax_rate"},{default:l(({row:u})=>[e(me,{options:J.dictData.tax_rate,value:u.tax_rate},null,8,["options","value"])]),_:1}),e(t,{label:"\u5DE5\u4F5C\u91CF",prop:"num","show-overflow-tooltip":""}),e(t,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D",prop:"amount_excluding_tax","show-overflow-tooltip":""}),e(t,{label:"\u542B\u7A0E\u91D1\u989D",prop:"amount_including_tax","show-overflow-tooltip":""}),e(t,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""})]),_:1},8,["data"])]),c("div",Je,[e(y,{"current-page":m.page_no,"onUpdate:current-page":n[0]||(n[0]=u=>m.page_no=u),"page-size":m.page_size,"onUpdate:page-size":n[1]||(n[1]=u=>m.page_size=u),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:j.value,onSizeChange:Z,onCurrentChange:oe},null,8,["current-page","page-size","total"])])]),_:1}),e(v,{label:"\u6536\u7968\u8BB0\u5F55",name:"demo-tabs-3"},{default:l(()=>[c("div",null,[e(D,{data:P.value,stripe:"",style:{width:"100%"}},{default:l(()=>[e(t,{label:"\u5F00\u7968\u65E5\u671F",prop:"invoicing_date",width:"180"}),e(t,{label:"\u63D0\u4EA4\u4EBA",prop:"commitor",width:"180"}),e(t,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_type"}),e(t,{label:"\u53D1\u7968\u7F16\u53F7",prop:"invoice_no",width:"180"}),e(t,{label:"\u53D1\u7968\u7A0E\u7387(%)",prop:"invoice_tax_rate",width:"180"}),e(t,{label:"\u53D1\u7968\u91D1\u989D",prop:"invoice_amount"}),e(t,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D",prop:"amount_excluding_tax"}),e(t,{label:"\u7A0E\u989D",prop:"tax"})]),_:1},8,["data"])]),c("div",Ke,[e(y,{"current-page":d.page_no,"onUpdate:current-page":n[2]||(n[2]=u=>d.page_no=u),"page-size":d.page_size,"onUpdate:page-size":n[3]||(n[3]=u=>d.page_size=u),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:U.value,onSizeChange:ee,onCurrentChange:ne},null,8,["current-page","page-size","total"])])]),_:1}),e(v,{label:"\u4ED8\u6B3E\u8BA1\u5212",name:"demo-tabs-4"},{default:l(()=>[c("div",null,[e(D,{data:R.value,stripe:"",style:{width:"100%"}},{default:l(()=>[e(t,{label:"\u8BA1\u5212\u4ED8\u6B3E\u65E5\u671F",prop:"pay_date",width:"180"}),e(t,{label:"\u671F\u6B21",prop:"period",width:"180"}),e(t,{label:"\u72B6\u6001",prop:"status"}),e(t,{label:"\u91D1\u989D",prop:"amount"}),e(t,{label:"\u5DF2\u4ED8\u6B3E",prop:"competitor_advantages"}),e(t,{label:"\u672A\u4ED8\u6B3E",prop:"competitor_disadvantages"}),e(t,{label:"\u5907\u6CE8",prop:"remark"})]),_:1},8,["data"])]),c("div",Qe,[e(y,{"current-page":g.page_no,"onUpdate:current-page":n[4]||(n[4]=u=>g.page_no=u),"page-size":g.page_size,"onUpdate:page-size":n[5]||(n[5]=u=>g.page_size=u),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:O.value,onSizeChange:ae,onCurrentChange:ue},null,8,["current-page","page-size","total"])])]),_:1}),e(v,{label:"\u4ED8\u6B3E\u8BB0\u5F55",name:"demo-tabs-5"},{default:l(()=>[c("div",null,[e(D,{data:N.value,stripe:"",style:{width:"100%"}},{default:l(()=>[e(t,{label:"\u4ED8\u6B3E\u5355\u53F7",prop:"competitor_name",width:"180"}),e(t,{label:"\u671F\u6B21",prop:"competitor_contacts",width:"180"}),e(t,{label:"\u4ED8\u6B3E\u65E5\u671F",prop:"competitor_contacts_phone"}),e(t,{label:"\u7533\u8BF7\u4EBA",prop:"competitive_power"}),e(t,{label:"\u5F00\u7968\u72B6\u6001",prop:"competitor_advantages"}),e(t,{label:"\u6B3E\u9879\u8BF4\u660E",prop:"competitor_disadvantages"}),e(t,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"competitor_disadvantages"}),e(t,{label:"\u4ED8\u6B3E\u6027\u8D28",prop:"competitor_disadvantages"}),e(t,{label:"\u4ED8\u6B3E\u91D1\u989D",prop:"competitor_disadvantages"}),e(t,{label:"\u5907\u6CE8",prop:"remark"})]),_:1},8,["data"])]),c("div",Xe,[e(y,{"current-page":_.page_no,"onUpdate:current-page":n[6]||(n[6]=u=>_.page_no=u),"page-size":_.page_size,"onUpdate:page-size":n[7]||(n[7]=u=>_.page_size=u),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:$.value,onSizeChange:te,onCurrentChange:pe},null,8,["current-page","page-size","total"])])]),_:1}),e(v,{label:"\u9000\u6B3E\u8BB0\u5F55",name:"demo-tabs-6"},{default:l(()=>[c("div",null,[e(D,{data:I.value,stripe:"",style:{width:"100%"}},{default:l(()=>[e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"competitor_name",width:"180"}),e(t,{label:"\u9000\u6B3E\u65E5\u671F",prop:"competitor_contacts",width:"180"}),e(t,{label:"\u9000\u6B3E\u539F\u56E0",prop:"competitor_contacts_phone"}),e(t,{label:"\u9000\u6B3E\u65B9\u5F0F",prop:"competitive_power"}),e(t,{label:"\u9000\u6B3E\u91D1\u989D",prop:"competitor_advantages"}),e(t,{label:"\u5907\u6CE8",prop:"remark"})]),_:1},8,["data"])]),c("div",Ye,[e(y,{"current-page":f.page_no,"onUpdate:current-page":n[8]||(n[8]=u=>f.page_no=u),"page-size":f.page_size,"onUpdate:page-size":n[9]||(n[9]=u=>f.page_size=u),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:T.value,onSizeChange:le,onCurrentChange:ie},null,8,["current-page","page-size","total"])])]),_:1})]),_:1},8,["modelValue"]),!(o!=null&&o.approve_id)||o.approve_check_status==4?(E(),G(ge,{key:0,flows:W.value,submitApi:Ne(Ue),id:o==null?void 0:o.id,onOff:A},null,8,["flows","submitApi","id"])):(E(),G(be,{key:1,approve_id:o==null?void 0:o.approve_id,onOff:A},null,8,["approve_id"]))]),_:1},8,["model"])]),_:1},512)])}}});const Ha=Me(ea,[["__scopeId","data-v-6b7b5d98"]]);export{Ha as default};