1 |
- import{am as c,aR as f,aT as h,_ as S,d as P,bG as j,ah as m,b4 as z,A as O,r as p,aD as V,H as G,m as o,o as b,c as y,l,D as _,M as w,a as B,G as H,aN as R,L as E}from"./index.js";import{p as L,i as M}from"./orderRecord.4d98a397.js";import{h as D}from"./index.46b8bf10.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})=>h(e,"\u7269\u6D41\u4F9B\u5E94\u5546\u7F16\u7801 : "+u,270)},{field:"companyName",label:"\u4E1A\u52A1\u516C\u53F8",span:12,render:(e,{companyNo:u})=>h(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=P({__name:"index",props:{showTicketColumn:{type:Boolean,required:!1},data:{type:Object,required:!0},isPurchPay:{type:Boolean,required:!1},readonly:{type:Boolean,required:!0},request:{type:Boolean,required:!0},choose:{type:Boolean,required:!0},payNo:{type:String,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:v,loading:C,data:F}=j({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(z(n,d.post_fee)).toFixed(2),0);return Number.isNaN(s)?0:s});return O(()=>a.payNo,()=>{if(!a.payNo)return F.value={};v(D({payNo:a.payNo}))},{immediate:!0}),u({refresh:()=>v(D({payNo:a.payNo}))}),(s,n)=>{const d=p("el-button"),k=p("el-tag"),t=p("ElTableColumn"),T=p("ElTable"),q=V("loading");return G((b(),y("div",$,[!e.readonly||e.choose?(b(),y("div",I,[l(d,{text:"",size:"small",type:"primary",onClick:n[0]||(n[0]=K=>i("choose"))},{default:_(()=>[w("\u9009\u62E9")]),_:1})])):B("v-if",!0),e.readonly?(b(),H(o(R),{key:1,data:o(r),columns:o(g)},null,8,["data","columns"])):B("v-if",!0),l(k,{class:"mt-[5px] mb-[5px]",type:"warning",size:"small"},{default:_(()=>[w(" \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:_(()=>[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,{prop:"post_fee","min-width":"100px",label:"\u7269\u6D41\u8D39\u7528","show-overflow-tooltip":""}),l(t,{prop:"remark",label:"\u5907\u6CE8","min-width":"120px","show-overflow-tooltip":""}),l(t,{prop:"apply_name",label:"\u521B\u5EFA\u4EBA","min-width":"120px","show-overflow-tooltip":""}),l(t,{prop:"create_time",label:"\u521B\u5EFA\u65F6\u95F4","min-width":"140px","show-overflow-tooltip":""})]),_:1},8,["data"])])),[[q,o(C)]])}}});var Y=S(J,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supplierOrder/descriptions/index.vue"]]);export{Y as default};
|