2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
import{R as me,Z as de,S as ge,a1 as be,L as fe,M as Ee,O as De,a2 as Ce,D as ye}from"./element-plus.4ff6f47d.js";import{P as Fe}from"./index.ff7c6188.js";import{a as ve}from"./custom.01004c04.js";import{a as Be}from"./procurement_contract_detail.95c710fc.js";import{d as he}from"./receiptrecord.95d9433e.js";import{p as ze}from"./paymentplan.475e1263.js";import{c as xe}from"./paymentrequest.9f42c3ff.js";import{d as we}from"./refundrecord.8bc5c9e2.js";import{d as q,r,a0 as b,s as M,o as y,c as F,V as e,M as l,T as i,U as s,W as Ae,a8 as ke,a as c}from"./@vue.ab566ce7.js";import"./lodash.8ea2174a.js";import{_ as Le}from"./index.aaca920c.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const Se={class:"detail-popup"},Ue={key:0},je={style:{"margin-left":"5px",display:"block"}},Oe={key:1},Te={style:{margin:"10px 0"}},Ve={style:{margin:"10px 0"}},Pe={style:{margin:"10px 0"}},Re={style:{margin:"10px 0"}},$e={style:{margin:"10px 0"}},Ne=q({name:"customdetail"}),Ie=q({...Ne,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(Me,{expose:W,emit:Z}){const L=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}),S=r(0),U=r(0),j=r(0),O=r(0),T=r(0),G=M(),v=M(),B=b([]);b({provinceOptions:[],cityOptions:[],areaOptions:[]});const V=r([]),P=r([]),R=r([]),$=r([]),N=r([]),H=(a,o)=>{console.log(a,o)},p=b({}),J=a=>{m.page_size=a,h()},K=a=>{d.page_size=a,z()},Q=a=>{g.page_size=a,x()},X=a=>{_.page_size=a,w()},Y=a=>{f.page_size=a,A()},ee=a=>{console.log(`current page: ${a}`),m.page_no=a,h()},ae=a=>{console.log(`current page: ${a}`),d.page_no=a,z()},te=a=>{g.page_no=a,console.log(`current page: ${a}`),x()},le=a=>{_.page_no=a,console.log(`current page: ${a}`),w()},oe=a=>{f.page_no=a,console.log(`current page: ${a}`),A()},h=()=>{Be(m).then(a=>{V.value=a.lists,S.value=a.count})},z=()=>{he(d).then(a=>{P.value=a.lists,U.value=a.count})},x=()=>{ze(g).then(a=>{R.value=a.lists,j.value=a.count})},w=()=>{xe(_).then(a=>{$.value=a.lists,O.value=a.count})},A=()=>{we(_).then(a=>{N.value=a.lists,T.value=a.count})},I=async a=>{if(Object.assign(p,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 o=a.annex.map((u,k)=>({name:`\u6587\u4EF6${k+1}`,uri:u}));Object.assign(B,o)}x(),h(),z(),w(),A()},ne=async a=>{const o=await ve({id:a.id});I(o)},ue=async()=>{var a;(a=v.value)==null||a.close()},pe=()=>{var a;console.log("1111111"),(a=v.value)==null||a.open()},ie=()=>{Z("close")};return W({open:pe,setFormData:I,getDetail:ne}),(a,o)=>{const u=me,k=de,se=ge,E=be,t=fe,D=Ee,C=De,re=Ce,ce=ye;return y(),F("div",Se,[e(Fe,{ref_key:"popupRef",ref:v,title:"\u91C7\u8D2D\u5408\u540C\u8BE6\u60C5\u8BE6\u60C5",async:!0,width:"80%",onConfirm:ue,onClose:ie},{default:l(()=>[e(ce,{ref_key:"formRef",ref:G,model:p,"label-width":"120px"},{default:l(()=>[e(re,{modelValue:L.value,"onUpdate:modelValue":o[10]||(o[10]=n=>L.value=n),class:"demo-tabs",onTabClick:H},{default:l(()=>[e(E,{label:"\u57FA\u672C\u4FE1\u606F",name:"demo-tabs-1"},{default:l(()=>[e(se,{column:2,border:""},{default:l(()=>[e(u,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.project_name),1)]),_:1}),e(u,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.project_code),1)]),_:1}),e(u,{label:"\u5408\u540C\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.contract_name),1)]),_:1}),e(u,{label:"\u5408\u540C\u7F16\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.contract_no),1)]),_:1}),e(u,{label:"\u4F9B\u5E94\u5546\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.supplier_code),1)]),_:1}),e(u,{label:"\u4F9B\u5E94\u5546\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.supplier_name),1)]),_:1}),e(u,{label:"\u5408\u540C\u7C7B\u578B","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.contract_type_text),1)]),_:1}),e(u,{label:"\u7B7E\u8BA2\u65E5\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.signing_date),1)]),_:1}),e(u,{label:"\u4ED8\u6B3E\u65B9\u5F0F","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.pay_type_text),1)]),_:1}),e(u,{label:"\u8D26\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.account_period_text),1)]),_:1}),e(u,{label:"\u5408\u540C\u91D1\u989D","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.contract_amount),1)]),_:1}),e(u,{label:"\u7A0E\u7387","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.contract_type_text),1)]),_:1}),e(u,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.amount_excluding_tax),1)]),_:1}),e(u,{label:"\u8D28\u4FDD\u91D1\u6BD4\u4F8B(\uFF05)","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.retention_money_rate),1)]),_:1}),e(u,{label:"\u8D28\u4FDD\u91D1","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.retention_money),1)]),_:1}),e(u,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[i(s(p.remark),1)]),_:1}),e(u,{label:"\u5408\u540C\u9644\u4EF6","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[B.length>0?(y(),F("div",Ue,[(y(!0),F(Ae,null,ke(B,(n,_e)=>(y(),F("div",je,[e(k,{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:n.uri,target:"_blank"},{default:l(()=>[i("\u6587\u4EF6"+s(_e+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),256))])):(y(),F("div",Oe," \u6682\u65E0\u9644\u4EF6 "))]),_:1})]),_:1})]),_:1}),e(E,{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:"\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",Te,[e(C,{"current-page":m.page_no,"onUpdate:current-page":o[0]||(o[0]=n=>m.page_no=n),"page-size":m.page_size,"onUpdate:page-size":o[1]||(o[1]=n=>m.page_size=n),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:S.value,onSizeChange:J,onCurrentChange:ee},null,8,["current-page","page-size","total"])])]),_:1}),e(E,{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",Ve,[e(C,{"current-page":d.page_no,"onUpdate:current-page":o[2]||(o[2]=n=>d.page_no=n),"page-size":d.page_size,"onUpdate:page-size":o[3]||(o[3]=n=>d.page_size=n),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:U.value,onSizeChange:K,onCurrentChange:ae},null,8,["current-page","page-size","total"])])]),_:1}),e(E,{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",Pe,[e(C,{"current-page":g.page_no,"onUpdate:current-page":o[4]||(o[4]=n=>g.page_no=n),"page-size":g.page_size,"onUpdate:page-size":o[5]||(o[5]=n=>g.page_size=n),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:j.value,onSizeChange:Q,onCurrentChange:te},null,8,["current-page","page-size","total"])])]),_:1}),e(E,{label:"\u4ED8\u6B3E\u8BB0\u5F55",name:"demo-tabs-5"},{default:l(()=>[c("div",null,[e(D,{data:$.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",Re,[e(C,{"current-page":_.page_no,"onUpdate:current-page":o[6]||(o[6]=n=>_.page_no=n),"page-size":_.page_size,"onUpdate:page-size":o[7]||(o[7]=n=>_.page_size=n),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:O.value,onSizeChange:X,onCurrentChange:le},null,8,["current-page","page-size","total"])])]),_:1}),e(E,{label:"\u9000\u6B3E\u8BB0\u5F55",name:"demo-tabs-6"},{default:l(()=>[c("div",null,[e(D,{data:N.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",$e,[e(C,{"current-page":f.page_no,"onUpdate:current-page":o[8]||(o[8]=n=>f.page_no=n),"page-size":f.page_size,"onUpdate:page-size":o[9]||(o[9]=n=>f.page_size=n),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:T.value,onSizeChange:Y,onCurrentChange:oe},null,8,["current-page","page-size","total"])])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),_:1},512)])}}});const ka=Le(Ie,[["__scopeId","data-v-0648f2f9"]]);export{ka as default};
|