1 |
- import{_ as z,d as D,aF as V,w as f,b4 as P,aC as k,o as p,G as c,C as u,j as o,l as e,aP as q,aO as L,bT as O,c as R,F as T,D as U,bU as j,H as M,bo as G,bS as l,M as d,L as v,aX as H,h as I,bV as J,a$ as X,aq as $,bJ as K,aS as Q}from"./index.js";import{t as b}from"./status.642bba24.js";import{h as W}from"./index.4ef9e56d.js";const Y={class:"flex justify-between w-full mt-[10px]"},Z=D({__name:"order-modal",props:{platform_type:{type:String,required:!0}},emits:["list"],setup(h,{expose:F,emit:E}){const _=h,i=V(!1),y=f(null),{run:B,data:C,loading:x}=P({isList:!0,success:r=>s.value.total=r.count}),g={page:1,size:15,total:0,pay_status:"1",status:[1],companyNo:"",customerNo:""},m=f([]),s=f({...g}),w=()=>B(W({...s.value,platform_type:_.platform_type}));function S(){var r;if(m.value.length===0){Q.warning("\u8BF7\u9009\u62E9\u901A\u7528\u8BA2\u5355");return}E("list",m.value),i.value=!1,(r=y.value)==null||r.clearSelection()}return F({onDisplay:(r,a)=>{i.value=!0,s.value={...g,companyNo:a,customerNo:r},w()}}),(r,a)=>{const A=k("loading");return p(),c(e(K),{modelValue:e(i),"onUpdate:modelValue":a[3]||(a[3]=t=>$(i)?i.value=t:null),title:"\u901A\u7528\u8BA2\u5355\u5217\u8868",center:"",width:"1024px"},{default:u(()=>[o(e(q),{class:"mb-[10px]"},{default:u(()=>[o(e(L),{span:8},{default:u(()=>[o(e(O),{modelValue:String(s.value.status[0]),size:"small",disabled:""},{default:u(()=>[(p(!0),R(T,null,U(e(b),({label:t,value:n})=>(p(),c(e(j),{label:t,value:n,key:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),M((p(),c(e(G),{border:"",size:"small",data:e(C),class:"mt-[10px]",onSelectionChange:a[0]||(a[0]=t=>m.value=t)},{default:u(()=>[o(e(l),{type:"selection",fixed:"left"}),o(e(l),{label:"\u901A\u7528\u8BA2\u5355\u7F16\u53F7","min-width":"160",prop:"tyCode","show-overflow-tooltip":""}),o(e(l),{label:"\u786E\u8BA4\u5355\u7F16\u53F7","min-width":"160",prop:"orderCode","show-overflow-tooltip":""}),o(e(l),{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7","min-width":"160",prop:"cxCode","show-overflow-tooltip":""}),o(e(l),{label:"\u5546\u54C1\u7F16\u53F7","min-width":"160",prop:"goodNo","show-overflow-tooltip":""}),o(e(l),{label:"\u5546\u54C1\u540D\u79F0","min-width":"160",prop:"goodName","show-overflow-tooltip":""}),o(e(l),{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:"100px","show-overflow-tooltip":""}),o(e(l),{label:"\u4E70\u5165\u65B9\u516C\u53F8","min-width":"160",prop:"customerName","show-overflow-tooltip":""}),o(e(l),{label:"\u5356\u51FA\u65B9\u516C\u53F8","min-width":"160",prop:"companyName","show-overflow-tooltip":""}),o(e(l),{label:"\u4E0B\u5355\u6570\u91CF",width:"80",prop:"goodNum","show-overflow-tooltip":""},{default:u(t=>[d(v(t.row.qrd?t.row.qrd.goodNum:""),1)]),_:1}),o(e(l),{label:"\u9500\u552E\u5355\u4EF7",width:"80",prop:"goodPrice","show-overflow-tooltip":""},{default:u(t=>[d(v(t.row.qrd?t.row.qrd.goodPrice:""),1)]),_:1}),o(e(l),{label:"\u5BF9\u8D26\u72B6\u6001",width:"80",prop:"status","show-overflow-tooltip":""},{default:u(t=>[o(e(H),null,{default:u(()=>{var n;return[d(v(((n=e(b).find(N=>N.value==t.row.status))==null?void 0:n.label)||"--"),1)]}),_:2},1024)]),_:1}),o(e(l),{label:"\u4E0B\u5355\u65F6\u95F4",width:"100",prop:"addtime","show-overflow-tooltip":""})]),_:1},8,["data"])),[[A,e(x)]]),I("div",Y,[o(e(J),{currentPage:s.value.page,"onUpdate:currentPage":a[1]||(a[1]=t=>s.value.page=t),pageSize:s.value.size,"onUpdate:pageSize":a[2]||(a[2]=t=>s.value.size=t),layout:"total,prev, pager, next, jumper",total:s.value.total,background:!0,small:!0,onSizeChange:w,onCurrentChange:w},null,8,["currentPage","pageSize","total"]),o(e(X),{type:"primary",size:"small",onClick:S},{default:u(()=>[d("\u6DFB\u52A0")]),_:1})])]),_:1},8,["modelValue"])}}});var le=z(Z,[["__file","C:/Users/63107/Desktop/projects/settle-vue3/src/views/InvoiceSales/currentcyOrderRecord copy/components/order-modal.vue"]]);export{le as default};
|