single.83bbc6.js 4.9 KB

123456789101112
  1. import{_ as j,d as U,w as d,b3 as M,x as G,r as s,aC as H,o as f,c as y,j as e,C as l,a as C,F as B,D as I,M as r,H as Z,l as E,G as $,L as m,bo as J,h as K,aZ as Q}from"./index.js";import{h as W}from"./index.d82aedb3.js";const X={class:"flex justify-between w-full mt-[10px]"},Y=U({__name:"single",props:{platformType:{type:String,required:!0},customerNo:{type:null,required:!0},companyNo:{type:String,required:!0}},emits:["list"],setup(F,{expose:D,emit:S}){const c=F,v=d(null),{run:x,data:N,loading:z}=M({isList:!0,success:i=>a.value.total=i.count}),g={page:1,size:15,total:0,status:[0]},p=d(1),w=d([]),a=d({...g});function A(){var i;if(w.value.length===0){Q.warning("\u8BF7\u9009\u62E9\u901A\u7528\u8BA2\u5355");return}S("list",w.value),(i=v.value)==null||i.clearSelection()}const n=()=>{x(W({...a.value,platform_type:c.platformType,customerNo:c.customerNo,companyNo:c.companyNo,status:Number(p.value)===-1?[-1,...a.value.status]:a.value.status}))},T=[{value:1,label:"\u5DF2\u56DE\u6B3E"},{value:-1,label:"\u65E0\u56DE\u6B3E\u9650\u5236"}];return G(()=>n()),D({search:()=>n()}),(i,u)=>{const k=s("ElOption"),q=s("ElSelect"),_=s("ElCol"),b=s("el-button"),P=s("ElRow"),o=s("ElTableColumn"),V=s("ElTag"),L=s("ElPagination"),O=s("ElButton"),R=H("loading");return f(),y(B,null,[e(P,{class:"mb-[10px]"},{default:l(()=>[C(` <ElCol :span="4" style="margin-right: 10px">\r
  2. <ElSelect style="width:100%" :modelValue="String(params.status[0])" size="small" disabled>\r
  3. <ElOption v-for="{ label, value } in tyStatusOptions" :label="label" :value="value" :key="value" />\r
  4. </ElSelect>\r
  5. </ElCol> `),e(_,{span:4,style:{width:"100%"}},{default:l(()=>[e(q,{modelValue:p.value,"onUpdate:modelValue":u[0]||(u[0]=t=>p.value=t),size:"small",placeholder:"\u5173\u8054\u5DF2\u56DE\u6B3E\u72B6\u6001"},{default:l(()=>[(f(),y(B,null,I(T,({label:t,value:h})=>e(k,{label:t,value:h,key:h},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e(_,{span:19,class:"fr"},{default:l(()=>[e(b,{style:{float:"right"},size:"small",type:"primary",onClick:u[1]||(u[1]=()=>{n()})},{default:l(()=>[r("\u641C\u7D22")]),_:1}),e(b,{style:{float:"right","margin-right":"10px"},size:"small",onClick:u[2]||(u[2]=()=>{a.value=g,p.value=1,n()})},{default:l(()=>[r("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1}),Z((f(),$(E(J),{ref_key:"tableRef",ref:v,border:"",size:"small",data:E(N),class:"mt-[10px]",onSelectionChange:u[3]||(u[3]=t=>w.value=t)},{default:l(()=>[e(o,{type:"selection",fixed:"left"}),e(o,{label:"\u901A\u7528\u8BA2\u5355\u7F16\u53F7","min-width":"160",prop:"tyCode","show-overflow-tooltip":""}),e(o,{label:"\u786E\u8BA4\u5355\u7F16\u53F7","min-width":"160",prop:"orderCode","show-overflow-tooltip":""}),e(o,{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7","min-width":"160",prop:"cxCode","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u7F16\u53F7","min-width":"160",prop:"goodNo","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u540D\u79F0","min-width":"160",prop:"goodName","show-overflow-tooltip":""}),e(o,{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:"100px","show-overflow-tooltip":""}),e(o,{label:"\u4E70\u5165\u65B9\u516C\u53F8","min-width":"160",prop:"customerName","show-overflow-tooltip":""}),e(o,{label:"\u5356\u51FA\u65B9\u516C\u53F8","min-width":"160",prop:"companyName","show-overflow-tooltip":""}),e(o,{label:"\u4E0B\u5355\u6570\u91CF",width:"80",prop:"goodNum","show-overflow-tooltip":""},{default:l(t=>[r(m(t.row.qrd?t.row.qrd.goodNum:""),1)]),_:1}),e(o,{label:"\u9500\u552E\u5355\u4EF7",width:"80",prop:"goodPrice","show-overflow-tooltip":""},{default:l(t=>[r(m(t.row.qrd?t.row.qrd.goodPrice:""),1)]),_:1}),e(o,{label:"\u5173\u8054\u5DF2\u56DE\u6B3E\u72B6\u6001",width:"110",prop:"pay_status","show-overflow-tooltip":""},{default:l(t=>[e(V,null,{default:l(()=>[r(m(String(t.row.status)==="-1"?"\u672A\u56DE\u6B3E":"\u5DF2\u56DE\u6B3E"),1)]),_:2},1024)]),_:1}),C(` <ElTableColumn label="\u5BF9\u8D26\u72B6\u6001" width="80" prop="status" show-overflow-tooltip>\r
  6. \r
  7. <template #default="scope">\r
  8. <ElTag>\r
  9. {{ tyStatusOptions.find(c => c.value == scope.row.status)?.label || '--' }}\r
  10. </ElTag>\r
  11. </template>\r
  12. </ElTableColumn> `),e(o,{label:"\u7A0E\u7387",width:"80",prop:"goodPrice","show-overflow-tooltip":""},{default:l(t=>[r(m(t.row.qrd?`${t.row.qrd.tax}%`:""),1)]),_:1}),e(o,{label:"\u4E0B\u5355\u65F6\u95F4",width:"100",prop:"addtime","show-overflow-tooltip":""})]),_:1},8,["data"])),[[R,E(z)]]),K("div",X,[e(L,{currentPage:a.value.page,"onUpdate:currentPage":u[4]||(u[4]=t=>a.value.page=t),pageSize:a.value.size,"onUpdate:pageSize":u[5]||(u[5]=t=>a.value.size=t),layout:"total,prev, pager, next, jumper",total:a.value.total,background:!0,small:!0,onSizeChange:n,onCurrentChange:n},null,8,["currentPage","pageSize","total"]),e(O,{type:"primary",size:"small",onClick:A},{default:l(()=>[r("\u6DFB\u52A0")]),_:1})])],64)}}});var oe=j(Y,[["__file","C:/Users/63107/Desktop/projects/settle-vue3/src/views/InvoiceSales/currentcyOrderRecord/components/single.vue"]]);export{oe as default};