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.fc717898.js";import{useColumns as K}from"./columns.454d01cb.js";import{a as W}from"./index.a33a7ac5.js";import{D as y,a as J}from"./query.5b7e45db.js";import X from"./search-modal.1de30fc1.js";import"./index.fa27e25c.js";import"./purchase.a3e3655e.js";import"./types.3b168355.js";import"./purchase.0bac9345.js";import"./status.727086c1.js";import"./tootip.9f47ca0b.js";import"./basic-descriptions.de38befc.js";import"./context.bdf6d636.js";import"./index.c2b1bb99.js";import"./reconciliation.0d326c86.js";import"./reconciliation.8e55e7bb.js";import"./index.1ee0c9e5.js";import"./sale.e7877e66.js";import"./sale.ba3f0a02.js";import"./index.463c5018.js";import"./payment.4c4fd9bd.js";import"./index.3cf4625b.js";import"./ticket-return.43dea8b3.js";import"./index.a367f71e.js";import"./tradelog.4241b0f4.js";import"./tragelog.69a0438e.js";import"./index.68a5ce0b.js";import"./trade.95e12d67.js";import"./index.24dd06b6.js";import"./refund.c35f9cc2.js";import"./index.122a2fef.js";import"./inv-return.eb9349b7.js";import"./inv-return.6a590de9.js";import"./index.97a57674.js";import"./inv-open.2b7af8d2.js";import"./inv-open.fef2b4fc.js";import"./goods.26530953.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};
|