1 |
- import{_ as T,d as M,A as U,aC as z,au as H,E as p,a7 as N,c3 as Q,F as O,ag as V,x as h,o as g,c as I,y as r,K as l,u,bE as Y,R as C,N as j,a as q,b0 as G,W as k}from"./index.1417328f.js";import{useColumns as K}from"./columns.e690d697.js";import{a as W}from"./index.660351ab.js";import{D as y,a as J}from"./query.6b40206b.js";import X from"./search-modal.7692d989.js";import"./index.31e03583.js";import"./purchase.27cd4bc2.js";import"./types.99de89d9.js";import"./purchase.3d919a80.js";import"./status.727086c1.js";import"./tootip.8c37fa8a.js";import"./basic-descriptions.cadaf928.js";import"./context.bdf6d636.js";import"./index.08fe6875.js";import"./reconciliation.d59d5519.js";import"./reconciliation.53461462.js";import"./index.1bf16971.js";import"./sale.94cadd4f.js";import"./sale.c2f2872d.js";import"./index.514aa846.js";import"./payment.75a978b4.js";import"./index.28d5e629.js";import"./ticket-return.29a26c43.js";import"./index.0a3f5015.js";import"./tradelog.17b5ddc4.js";import"./tragelog.5720fe1a.js";import"./index.644f3a37.js";import"./trade.1987dd99.js";import"./index.da2264ed.js";import"./refund.cce1eae1.js";import"./index.658c28c0.js";import"./inv-return.f0e33de1.js";import"./inv-return.a56c9e92.js";import"./index.cc00443d.js";import"./inv-open.981206d3.js";import"./inv-open.516190c3.js";import"./goods.9218c3a4.js";const Z={class:"main"},$=k(" \u6DFB\u52A0\u641C\u7D22\u6761\u4EF6 "),ee=k("\u91CD\u7F6E\u67E5\u8BE2\u6761\u4EF6"),ae={name:"standBook"},oe=M({...ae,setup(te){const{push:E}=U(),{columns:b}=K(),w=z(),{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){E({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 W(u(a));w({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 O(()=>{const e=V().getMenuActions("standBook");v.value=e,e.some(o=>o==="001")&&s()}),(e,o)=>{const n=h("el-button"),i=h("PureTable");return g(),I("div",Z,[r(G,{"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(C)("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(),j(n,{key:0,class:"reset-margin",link:"",type:"primary",size:t,onClick:()=>S(L.id),icon:u(C)("eye-view")},null,8,["size","onClick","icon"])):q("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 Oe=T(oe,[["__scopeId","data-v-72e9dd56"],["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/search/standBook/index.vue"]]);export{Oe as default};
|