order-modal.9000ed.js 3.8 KB

1
  1. import{_ as z,d as D,aF as V,w as f,b5 as P,aC as k,o as p,G as c,C as u,j as t,l as e,aP as q,aO as L,bU as O,c as R,F as T,D as U,bV as j,H as M,bp as G,bT as l,M as d,L as v,aS as H,h as I,bW as J,aY as W,aq as Y,bJ as $,a$ as K}from"./index.js";import{t as b}from"./status.642bba24.js";import{h as Q}from"./index.ffe1b6f7.js";const X={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(Q({...s.value,platform_type:_.platform_type}));function S(){var r;if(m.value.length===0){K.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($),{modelValue:e(i),"onUpdate:modelValue":a[3]||(a[3]=o=>Y(i)?i.value=o:null),title:"\u901A\u7528\u8BA2\u5355\u5217\u8868",center:"",width:"1024px"},{default:u(()=>[t(e(q),{class:"mb-[10px]"},{default:u(()=>[t(e(L),{span:8},{default:u(()=>[t(e(O),{modelValue:String(s.value.status[0]),size:"small",disabled:""},{default:u(()=>[(p(!0),R(T,null,U(e(b),({label:o,value:n})=>(p(),c(e(j),{label:o,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]=o=>m.value=o)},{default:u(()=>[t(e(l),{type:"selection",fixed:"left"}),t(e(l),{label:"\u901A\u7528\u8BA2\u5355\u7F16\u53F7","min-width":"160",prop:"tyCode","show-overflow-tooltip":""}),t(e(l),{label:"\u786E\u8BA4\u5355\u7F16\u53F7","min-width":"160",prop:"orderCode","show-overflow-tooltip":""}),t(e(l),{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7","min-width":"160",prop:"cxCode","show-overflow-tooltip":""}),t(e(l),{label:"\u5546\u54C1\u7F16\u53F7","min-width":"160",prop:"goodNo","show-overflow-tooltip":""}),t(e(l),{label:"\u5546\u54C1\u540D\u79F0","min-width":"160",prop:"goodName","show-overflow-tooltip":""}),t(e(l),{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:"100px","show-overflow-tooltip":""}),t(e(l),{label:"\u4E70\u5165\u65B9\u516C\u53F8","min-width":"160",prop:"customerName","show-overflow-tooltip":""}),t(e(l),{label:"\u5356\u51FA\u65B9\u516C\u53F8","min-width":"160",prop:"companyName","show-overflow-tooltip":""}),t(e(l),{label:"\u4E0B\u5355\u6570\u91CF",width:"80",prop:"goodNum","show-overflow-tooltip":""},{default:u(o=>[d(v(o.row.qrd?o.row.qrd.goodNum:""),1)]),_:1}),t(e(l),{label:"\u9500\u552E\u5355\u4EF7",width:"80",prop:"goodPrice","show-overflow-tooltip":""},{default:u(o=>[d(v(o.row.qrd?o.row.qrd.goodPrice:""),1)]),_:1}),t(e(l),{label:"\u5BF9\u8D26\u72B6\u6001",width:"80",prop:"status","show-overflow-tooltip":""},{default:u(o=>[t(e(H),null,{default:u(()=>{var n;return[d(v(((n=e(b).find(N=>N.value==o.row.status))==null?void 0:n.label)||"--"),1)]}),_:2},1024)]),_:1}),t(e(l),{label:"\u4E0B\u5355\u65F6\u95F4",width:"100",prop:"addtime","show-overflow-tooltip":""})]),_:1},8,["data"])),[[A,e(x)]]),I("div",X,[t(e(J),{currentPage:s.value.page,"onUpdate:currentPage":a[1]||(a[1]=o=>s.value.page=o),pageSize:s.value.size,"onUpdate:pageSize":a[2]||(a[2]=o=>s.value.size=o),layout:"total,prev, pager, next, jumper",total:s.value.total,background:!0,small:!0,onSizeChange:w,onCurrentChange:w},null,8,["currentPage","pageSize","total"]),t(e(W),{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};