1 |
- import{al as c,aS as f,_ as S,d as z,bv as P,ag as m,z as j,r as p,aC as O,H as V,u as o,o as _,c as y,l,C as v,M as B,a as h,G as H,L as E}from"./index.56c69f5a.js";import{B as G}from"./basic-descriptions.5f176484.js";import{c as w}from"./tootip.fe6ea468.js";import{p as L,i as M}from"./orderRecord.9d7001b8.js";import{a as R}from"./calc.850c7422.js";import{h as D}from"./index.5ce46a74.js";const U=[{value:"1",label:"\u4E70\u65B9\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{value:"2",label:"\u5BA1\u6838\u6210\u529F"},{value:"3",label:"\u4E70\u5BB6\u9A73\u56DE"},{value:"4",label:"\u5DF2\u64A4\u9500\u5BF9\u8D26"}],A=[{field:"payNo",label:"\u5BF9\u8D26\u5355\u53F7",span:6},{field:"status",label:"\u5BF9\u8D26\u72B6\u6001",render(e){return c(f,null,{default:()=>{var u;return(u=U.find(i=>i.value===String(e)))==null?void 0:u.label}})}},{field:"apply_name",label:"\u7533\u8BF7\u4EBA",span:6},{field:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",span:6},{field:"supplierName",label:"\u7269\u6D41\u4F9B\u5E94\u5546",span:12,render:(e,{supplierNo:u})=>w(e,"\u7269\u6D41\u4F9B\u5E94\u5546\u7F16\u7801 : "+u,270)},{field:"companyName",label:"\u4E1A\u52A1\u516C\u53F8",span:12,render:(e,{companyNo:u})=>w(e,"\u4E1A\u52A1\u516C\u53F8\u7F16\u7801 : "+u,270)},{field:"pay_status",label:"\u4ED8\u6B3E\u72B6\u6001",render(e){return c(f,null,{default:()=>{var u;return(u=L.find(i=>i.value===String(e)))==null?void 0:u.label}})}},{field:"apay_fee",label:"\u5DF2\u4ED8\u6B3E"},{field:"pay_fee",label:"\u4ED8\u6B3E\u4E2D"},{field:"wpay_fee",label:"\u672A\u4ED8\u6B3E"},{field:"inv_status",label:"\u5F00\u7968\u72B6\u6001",render(e){return c(f,null,{default:()=>{var u;return(u=M.find(i=>i.value===String(e)))==null?void 0:u.label}})}},{field:"ainv_fee",label:"\u5DF2\u5F00\u7968"},{field:"inv_fee",label:"\u5F00\u7968\u4E2D"},{field:"winv_fee",label:"\u672A\u5F00\u7968"},{field:"total_fee",label:"\u5BF9\u8D26\u603B\u989D"},{field:"pay_type",label:"\u4F9B\u5E94\u5546\u652F\u4ED8\u65B9\u5F0F"},{field:"remark",span:12,label:"\u5907\u6CE8"}],$={style:{width:"100%"}},I={key:0,class:"flex justify-end"},J=z({__name:"index",props:{payNo:{type:String,required:!0},request:{type:Boolean,required:!0},readonly:{type:Boolean,required:!0},data:{type:Object,required:!0},showTicketColumn:{type:Boolean,required:!1},isPurchPay:{type:Boolean,required:!1},choose:{type:Boolean,required:!0}},emits:["choose"],setup(e,{expose:u,emit:i}){const a=e,x=["inv_tag_fee","inv_status","ainv_fee","winv_fee","inv_fee","remark"],{run:b,data:F,loading:C}=P({initalData:{}}),r=m(()=>(a.request?F.value:a.data)||{}),g=m(()=>!a.isPurchPay||a.showTicketColumn?A:A.filter(s=>!x.includes(s.field))),N=m(()=>{if(!r.value.cgdlist)return"0.00";const s=r.value.cgdlist.reduce((n,d)=>Number(R(n,d.post_fee)).toFixed(2),0);return s===NaN?0:s});return j(()=>a.payNo,()=>{if(!a.payNo){F.value={};return}b(D({payNo:a.payNo}))},{immediate:!0}),u({refresh:()=>b(D({payNo:a.payNo}))}),(s,n)=>{const d=p("el-button"),k=p("el-tag"),t=p("ElTableColumn"),T=p("ElTable"),q=O("loading");return V((_(),y("div",$,[!e.readonly||e.choose?(_(),y("div",I,[l(d,{text:"",size:"small",type:"primary",onClick:n[0]||(n[0]=K=>i("choose"))},{default:v(()=>[B("\u9009\u62E9")]),_:1})])):h("v-if",!0),e.readonly?(_(),H(o(G),{key:1,data:o(r),columns:o(g)},null,8,["data","columns"])):h("v-if",!0),l(k,{class:"mt-[5px] mb-[5px]",type:"warning",size:"small"},{default:v(()=>[B(" \u5171\u8BA1 "+E(o(r).cgdlist?o(r).cgdlist.length:0)+" \u4E2A\u8BA2\u5355, \u5171\u8BA1 "+E(o(N))+" \u5143 ",1)]),_:1}),l(T,{size:"small",border:"",data:o(r).cgdlist,"max-height":"450px"},{default:v(()=>[l(t,{type:"index",label:"\u5E8F\u53F7","min-width":"55","show-overflow-tooltip":""}),l(t,{prop:"TrackCode",label:"\u53D1\u8D27\u8FD0\u5355\u7F16\u53F7","min-width":"150px","show-overflow-tooltip":""}),l(t,{prop:"outChildCode",label:"\u53D1\u8D27\u5DE5\u5355\u7F16\u53F7","min-width":"160px","show-overflow-tooltip":""}),l(t,{prop:"orderCode",label:"\u9500\u552E\u8BA2\u5355\u7F16\u53F7","min-width":"150px","show-overflow-tooltip":""}),l(t,{prop:"companyName",label:"\u4E1A\u52A1\u516C\u53F8","min-width":"180px","show-overflow-tooltip":""}),l(t,{prop:"supplierName",label:"\u7269\u6D41\u4F9B\u5E94\u5546","min-width":"180px","show-overflow-tooltip":""}),l(t,{label:"\u7269\u6D41\u8D39\u7528","min-width":"100px",prop:"post_fee","show-overflow-tooltip":""}),l(t,{label:"\u521B\u5EFA\u4EBA",prop:"apply_name","min-width":"120px","show-overflow-tooltip":""}),l(t,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"140px","show-overflow-tooltip":""})]),_:1},8,["data"])])),[[q,o(C)]])}}});var ue=S(J,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supplierOrder/descriptions/index.vue"]]);export{ue as default};
|