engineering/public/admin/assets/detail.118e483b.js
2024-03-04 15:04:21 +08:00

2 lines
13 KiB
JavaScript

import{R as Ee,a2 as De,S as ve,a4 as ye,L as Ce,M as Fe,O as Be,a5 as he,D as ze}from"./element-plus.258bf9e7.js";import{_ as xe,a as we}from"./index.a91b9a2c.js";import{P as ke}from"./index.9492d03b.js";import{a as Ae}from"./custom.13e75d58.js";import{a as Le}from"./procurement_contract_detail.86c33f43.js";import{d as Se}from"./receiptrecord.fd1ec468.js";import{p as Ue}from"./paymentplan.26c1cb62.js";import{c as je}from"./paymentrequest.166f3439.js";import{d as Oe}from"./refundrecord.12b16dcd.js";import{w as $e,x as Pe}from"./flowSet.6e7dc427.js";import{d as H,r,a0 as b,s as W,o as E,c as C,V as e,M as l,T as i,U as s,W as Te,a8 as Ve,a as c,L as G,u as Re}from"./@vue.ab566ce7.js";import{_ as Ne}from"./index.ec401e3b.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.4bfa22cd.js";import"./flow.825559ec.js";import"./vue-router.87ebc608.js";import"./lodash.1d82ee7c.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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const Ie={class:"detail-popup"},Me={key:0},qe={style:{"margin-left":"5px",display:"block"}},We={key:1},Ge={style:{margin:"10px 0"}},He={style:{margin:"10px 0"}},Je={style:{margin:"10px 0"}},Ke={style:{margin:"10px 0"}},Qe={style:{margin:"10px 0"}},Xe=H({name:"customdetail"}),Ye=H({...Xe,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(Ze,{expose:J,emit:K}){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:1}),g=b({page_size:10,page_no:1,contract_id:"",contract_type:1}),_=b({page_size:10,page_no:1,contract_id:"",contract_type:1}),f=b({page_size:10,page_no:1,contract_id:"",contract_type:1}),U=r(0),j=r(0),O=r(0),$=r(0),P=r(0),Q=W(),F=W(),B=b([]);b({provinceOptions:[],cityOptions:[],areaOptions:[]});const T=r([]),V=r([]),R=r([]),N=r([]),I=r([]),X=(a,n)=>{console.log(a,n)},o=b({}),Y=a=>{m.page_size=a,h()},Z=a=>{d.page_size=a,z()},ee=a=>{g.page_size=a,x()},ae=a=>{_.page_size=a,w()},te=a=>{f.page_size=a,k()},le=a=>{console.log(`current page: ${a}`),m.page_no=a,h()},oe=a=>{console.log(`current page: ${a}`),d.page_no=a,z()},ne=a=>{g.page_no=a,console.log(`current page: ${a}`),x()},ue=a=>{_.page_no=a,console.log(`current page: ${a}`),w()},pe=a=>{f.page_no=a,console.log(`current page: ${a}`),k()},h=()=>{Le(m).then(a=>{T.value=a.lists,U.value=a.count})},z=()=>{Se(d).then(a=>{V.value=a.lists,j.value=a.count})},x=()=>{Ue(g).then(a=>{R.value=a.lists,O.value=a.count})},w=()=>{je(_).then(a=>{N.value=a.lists,$.value=a.count})},k=()=>{Oe(_).then(a=>{I.value=a.lists,P.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(B,n)}x(),h(),z(),w(),k(),ce()},ie=async a=>{const n=await Ae({id:a.id});M(n)},se=async()=>{var a;(a=F.value)==null||a.close()},re=()=>{var a;console.log("1111111"),(a=F.value)==null||a.open()},A=()=>{K("close")},q=r([]),ce=async()=>{if(o!=null&&o.approve_id)return;let a=await $e();q.value=a};return J({open:re,setFormData:M,getDetail:ie}),(a,n)=>{const p=Ee,L=De,_e=ve,D=ye,t=Ce,v=Fe,y=Be,me=he,de=xe,ge=we,be=ze;return E(),C("div",Ie,[e(ke,{ref_key:"popupRef",ref:F,title:"\u91C7\u8D2D\u5408\u540C\u8BE6\u60C5\u8BE6\u60C5",async:!0,width:"80%",onConfirm:se,onClose:A},{default:l(()=>[e(be,{ref_key:"formRef",ref:Q,model:o,"label-width":"120px"},{default:l(()=>[e(me,{modelValue:S.value,"onUpdate:modelValue":n[10]||(n[10]=u=>S.value=u),class:"demo-tabs",onTabClick:X},{default:l(()=>[e(D,{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(()=>[B.length>0?(E(),C("div",Me,[(E(!0),C(Te,null,Ve(B,(u,fe)=>(E(),C("div",qe,[e(L,{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:u.uri,target:"_blank"},{default:l(()=>[i("\u6587\u4EF6"+s(fe+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),256))])):(E(),C("div",We," \u6682\u65E0\u9644\u4EF6 "))]),_:1})]),_:1})]),_:1}),e(D,{label:"\u91C7\u8D2D\u660E\u7EC6",name:"demo-tabs-2"},{default:l(()=>[c("div",null,[e(v,{data:T.value,stripe:"",style:{width:"100%"}},{default:l(()=>[e(t,{label:"\u91C7\u8D2D\u7533\u8BF7\u5355\u53F7",prop:"material_purchase_request_code",width:"180"}),e(t,{label:"\u6750\u6599\u540D\u79F0",prop:"material_name",width:"180"}),e(t,{label:"\u6750\u6599\u7F16\u7801",prop:"material_code"}),e(t,{label:"\u89C4\u683C\u578B\u53F7",prop:"material_specs"}),e(t,{label:"\u54C1\u724C",prop:"material_brand"}),e(t,{label:"\u53C2\u6570\u8BF4\u660E",prop:"material_parameter_description",width:"280"}),e(t,{label:"\u5355\u4F4D",prop:"material_unit"}),e(t,{label:"\u6570\u91CF",prop:"num"}),e(t,{label:"\u5408\u7A0E\u5355\u4EF7",prop:"price"}),e(t,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D",prop:"amount_excluding_tax"}),e(t,{label:"\u542B\u7A0E\u91D1\u989D",prop:"amount_including_tax"}),e(t,{label:"\u5DF2\u5165\u5E93\u6570\u91CF",prop:"has_storage_num","show-overflow-tooltip":""}),e(t,{label:"\u672A\u5165\u5E93\u6570\u91CF",prop:"not_storage_num","show-overflow-tooltip":""})]),_:1},8,["data"])]),c("div",Ge,[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:U.value,onSizeChange:Y,onCurrentChange:le},null,8,["current-page","page-size","total"])])]),_:1}),e(D,{label:"\u6536\u7968\u8BB0\u5F55",name:"demo-tabs-3"},{default:l(()=>[c("div",null,[e(v,{data:V.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",He,[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:j.value,onSizeChange:Z,onCurrentChange:oe},null,8,["current-page","page-size","total"])])]),_:1}),e(D,{label:"\u4ED8\u6B3E\u8BA1\u5212",name:"demo-tabs-4"},{default:l(()=>[c("div",null,[e(v,{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",Je,[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:ee,onCurrentChange:ne},null,8,["current-page","page-size","total"])])]),_:1}),e(D,{label:"\u4ED8\u6B3E\u8BB0\u5F55",name:"demo-tabs-5"},{default:l(()=>[c("div",null,[e(v,{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",Ke,[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:ae,onCurrentChange:ue},null,8,["current-page","page-size","total"])])]),_:1}),e(D,{label:"\u9000\u6B3E\u8BB0\u5F55",name:"demo-tabs-6"},{default:l(()=>[c("div",null,[e(v,{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",Qe,[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:P.value,onSizeChange:te,onCurrentChange:pe},null,8,["current-page","page-size","total"])])]),_:1})]),_:1},8,["modelValue"]),!(o!=null&&o.approve_id)||o.approve_check_status==4?(E(),G(de,{key:0,flows:q.value,submitApi:Re(Pe),id:o==null?void 0:o.id,onOff:A},null,8,["flows","submitApi","id"])):(E(),G(ge,{key:1,approve_id:o==null?void 0:o.approve_id,onOff:A},null,8,["approve_id"]))]),_:1},8,["model"])]),_:1},512)])}}});const qa=Ne(Ye,[["__scopeId","data-v-d20b4d5d"]]);export{qa as default};