1 |
- import{_ as T,d as M,A as z,aI as U,au as H,E as p,a7 as N,c3 as Q,F as I,ag as O,x as h,o as g,c as V,y as r,K as l,u,bk as Y,R as k,N as q,a as G,bw as K,W as C}from"./index.743f0c80.js";import{useColumns as W}from"./columns.17c94c07.js";import{a as j}from"./index.5e8ef3e3.js";import{D as y,a as J}from"./query.001446ea.js";import X from"./search-modal.f96f124a.js";import"./index.7ffca38c.js";import"./purchase.6ae9f282.js";import"./types.fdd8c385.js";import"./purchase.7131464f.js";import"./status.868e86c0.js";import"./tootip.48acd346.js";import"./basic-descriptions.e56bd542.js";import"./context.bdf6d636.js";import"./index.88e5dbb1.js";import"./reconciliation.7f32557d.js";import"./reconciliation.d0aed753.js";import"./index.a62d29d8.js";import"./sale.2fc90eb9.js";import"./sale.fe3b5968.js";import"./index.17b89a60.js";import"./payment.aaf4320e.js";import"./index.cb28f7dd.js";import"./ticket-return.a4b0e7cf.js";import"./index.374ff017.js";import"./tradelog.65c331c2.js";import"./tragelog.16ac9d74.js";import"./index.52029f71.js";import"./trade.a8193eaa.js";import"./index.3e0ba0b3.js";import"./refund.68781f67.js";import"./index.5ec0a88b.js";import"./inv-return.56a67d14.js";import"./inv-return.5f9f9423.js";import"./index.8212cab4.js";import"./inv-open.4519c208.js";import"./inv-open.a0819b58.js";import"./goods.85727ad9.js";const Z={class:"main"},$=C(" \u6DFB\u52A0\u641C\u7D22\u6761\u4EF6 "),ee=C("\u91CD\u7F6E\u67E5\u8BE2\u6761\u4EF6"),ae={name:"standBook"},oe=M({...ae,setup(te){const{push:w}=z(),{columns:b}=W(),E=U(),{setSearchParams:D,searchParams:m}=H(),_=p(null),d=p(!1),f=p([]),v=p([]),a=p(m.basic?{...m.basic}:{...y}),c=N(m.pagination?{...m.pagination}:{...J});async function B(e){a.value.page=e,await s()}async function R(e){a.value.size=e,a.value.page=1,await s()}async function x(e){a.value={...u(a),...e},await s()}async function P(){a.value={...y},_.value.onClear(),await s()}function S(e){w({path:"/search/standBookDetail",query:{id:e}})}Q(({path:e})=>{const o=e.indexOf("Detail")>=0,n=o?a.value:null;D(n,o?c:null)});async function s(){if(d.value)return;d.value=!0;const{code:e,data:o,message:n}=await j(u(a));E({code:e,message:n,handler:()=>{const{list:i,count:t}=o;f.value=i!=null?i:[],c.total=t!=null?t:0,c.pageSize=a.value.size,c.currentPage=a.value.page}}),d.value=!1}return I(()=>{const e=O().getMenuActions("standBook");v.value=e,e.some(o=>o==="001")&&s()}),(e,o)=>{const n=h("el-button"),i=h("PureTable");return g(),V("div",Z,[r(K,{"is-show":v.value.some(t=>t==="001")},{default:l(()=>[r(u(Y),{title:"\u6570\u636E\u6E90",loading:d.value,dataList:f.value,onRefresh:s},{buttons:l(()=>[r(n,{type:"primary",icon:u(k)("add"),onClick:o[0]||(o[0]=()=>_.value.onDisplay())},{default:l(()=>[$]),_:1},8,["icon"]),r(n,{onClick:P},{default:l(()=>[ee]),_:1})]),default:l(({size:t,checkList:F})=>[r(i,{border:"",align:"left",showOverflowTooltip:"","table-layout":"auto",size:t,data:f.value,columns:u(b),checkList:F,pagination:c,paginationSmall:t==="small","header-cell-style":{background:"#fafafa",color:"#606266"},onSizeChange:R,onCurrentChange:B},{operation:l(({row:L})=>[v.value.some(A=>A==="007")?(g(),q(n,{key:0,class:"reset-margin",link:"",type:"primary",size:t,onClick:()=>S(L.id),icon:u(k)("eye-view")},null,8,["size","onClick","icon"])):G("v-if",!0)]),_:2},1032,["size","data","columns","checkList","pagination","paginationSmall"])]),_:1},8,["loading","dataList"])]),_:1},8,["is-show"]),r(X,{ref_key:"searchModalRef",ref:_,onConfirmBtnClick:x},null,512)])}}});var Ie=T(oe,[["__scopeId","data-v-72e9dd56"],["__file","D:/work/accout-vue3-ui/src/views/search/standBook/index.vue"]]);export{Ie as default};
|