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

3 lines
4.9 KiB
JavaScript

import{y as V,A as N,B as P,C as $,D as A}from"./element-plus.258bf9e7.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{P as S}from"./index.9492d03b.js";import{a as T}from"./custom.13e75d58.js";import{d as F,a0 as d,s as y,o as r,c,V as t,M as e,T as s,U as n,W as L,a8 as M,a as C}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as U}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"./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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const W={class:"detail-popup"},q={key:0},z={style:{"margin-left":"5px",display:"block"}},G=["href"],H=["onClick"],J={key:1},K=F({name:"customdetail"}),Q=F({...K,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(m,{expose:D,emit:h}){const _=d([]),v=y(),i=y();d({provinceOptions:[],cityOptions:[],areaOptions:[]});const a=d({}),f=async l=>{if(Object.assign(a,l),l.return_desc&&l.return_desc.length>0){const p=l.return_desc.map((o,u)=>({name:`\u6587\u4EF6${u+1}`,uri:o}));Object.assign(_,p)}},g=async l=>{const p=await T({id:l.id});f(p)},k=async()=>{var l;(l=i.value)==null||l.close()},x=()=>{var l;console.log("1111111"),(l=i.value)==null||l.open()},B=()=>{h("close")};return D({open:x,setFormData:f,getDetail:g}),(l,p)=>{const o=V,u=N,b=I,j=P,w=$,O=A;return r(),c("div",W,[t(S,{ref_key:"popupRef",ref:i,title:"\u627F\u5151\u6C47\u7968\u8BE6\u60C5",async:!0,width:"80%",onConfirm:k,onClose:B},{default:e(()=>[t(O,{ref_key:"formRef",ref:v,model:a,"label-width":"160px"},{default:e(()=>[t(w,{class:"mb-2"},{default:e(()=>[t(j,null,{default:e(()=>[t(u,{span:12},{default:e(()=>[t(o,{label:"\u5408\u540C\u7F16\u53F7"},{default:e(()=>[s(n(a.contract?a.contract.contract_code:"\u6682\u65E0\u6570\u636E"),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u9879\u76EE\u540D\u79F0"},{default:e(()=>[s(n(a.project?a.project.name:"\u6682\u65E0\u6570\u636E"),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u9879\u76EE\u7F16\u53F7"},{default:e(()=>[s(n(a.project?a.project.project_code:"\u6682\u65E0\u6570\u636E"),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u5408\u540C\u540D\u79F0"},{default:e(()=>[s(n(a.contract?a.contract.contract_name:"\u6682\u65E0\u6570\u636E"),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u5BA2\u6237\u540D\u79F0"},{default:e(()=>[s(n(a.custom.name),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u6536\u7968\u65E5\u671F"},{default:e(()=>[s(n(a.receipt_date),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u7968\u636E\u7F16\u53F7"},{default:e(()=>[s(n(a.bill_sn),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u6536\u7968\u94F6\u884C"},{default:e(()=>[s(n(a.acceptance_bank_no),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u5408\u540C\u7C7B\u578B"},{default:e(()=>[t(b,{options:m.dictData.contract_type,value:a.contract_type},null,8,["options","value"])]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u6C47\u7968\u7C7B\u578B"},{default:e(()=>[t(b,{options:m.dictData.bill_type,value:a.bill_type},null,8,["options","value"])]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u6536\u6B3E\u91D1\u989D"},{default:e(()=>[s(n(a.receipt_amount),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:`\u6536\u6B3E\u91D1\u989D\u5927\u5199\r
`},{default:e(()=>[s(n(a.receipt_amount_daxie),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u6C47\u7968\u627F\u5151\u94F6\u884C"},{default:e(()=>[s(n(a.draft_acceptance_bank),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u5907\u6CE8"},{default:e(()=>[s(n(a.remark),1)]),_:1})]),_:1}),t(u,{span:24},{default:e(()=>[t(o,{label:"\u9644\u4EF6"},{default:e(()=>[_.length>0?(r(),c("div",q,[(r(!0),c(L,null,M(_,(E,R)=>(r(),c("div",z,[C("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:E.uri,target:"_blank"},n(E.name),9,G),C("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:X=>l.delFileFn(R)},"x",8,H)]))),256))])):(r(),c("div",J," \u6682\u65E0\u6587\u4EF6 "))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});const Pt=U(Q,[["__scopeId","data-v-0b2dde4c"]]);export{Pt as default};