multiStoreAdmin/dist/store/assets/index.1d73b6f0.js

2 lines
4.5 KiB
JavaScript
Raw Normal View History

2024-08-04 17:55:30 +08:00
import{Z as U,$ as Y,a0 as j,F as A,w as M,G as T,J as q,M as G,b as H,N as J,O}from"./element-plus.ab0703f2.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{u as W}from"./usePaging.fff444fa.js";import{d as Z}from"./store_order.86cc2ce0.js";import{_ as z}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.74826ca5.js";import{a as K}from"./index.ae42b2c0.js";import{d as C,r as _,$ as X,o as u,c as d,W as e,Q as o,U as f,R as ee,u as p,P as oe,a as b,j as te}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./index.2a3b95e2.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";const le={class:"mt-4"},ae={key:0,style:{color:"#FEE082"}},se={key:1,style:{color:"#78E23F"}},re={class:"flex mt-4 justify-end"},ne=C({name:"manageProjectLists"}),Qe=C({...ne,setup(ie){const r=_(null),m=_(null),n=X({store_id:K().userInfo.store_id,start_time:"",end_time:""}),g=_([]),F=t=>{g.value=t.map(({id:s})=>s)},D=()=>{var t;(t=r.value)!=null&&t.length?(n.start_time=r.value[0]+" 00:00:00",n.end_time=r.value[1]+" 23:59:59"):(n.start_time="",n.end_time=""),y()},B=()=>{r.value=[],k()},{pager:i,getLists:h,resetParams:k,resetPage:y}=W({fetchFun:Z,params:n}),P=async t=>{var s;(s=m.value)==null||s.open(t)},x=()=>{var t;(t=m.value)==null||t.close()};return h(),(t,s)=>{const V=U,v=A,w=Y,c=M,R=j,$=T,E=q,l=G,I=H,L=J,N=Q,S=O;return u(),d("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e($,{class:"mb-[-16px]",model:n,"label-width":"80px"},{default:o(()=>[e(R,null,{default:o(()=>[e(w,{span:6},{default:o(()=>[e(v,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:o(()=>[e(V,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4","value-format":"YYYY-MM-DD",clearable:!1},null,8,["modelValue"])]),_:1})]),_:1}),e(w,{span:6},{default:o(()=>[e(v,null,{default:o(()=>[e(c,{type:"primary",onClick:D},{default:o(()=>[f("\u67E5\u8BE2")]),_:1}),e(c,{onClick:B},{default:o(()=>[f("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),ee((u(),oe(E,{class:"!border-none",shadow:"never"},{default:o(()=>[b("div",le,[e(L,{data:p(i).lists,onSelectionChange:F},{default:o(()=>[e(l,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(l,{label:"\u95E8\u5E97",prop:"store_id","show-overflow-tooltip":""}),e(l,{label:"\u4EA4\u6613\u91D1\u989D",prop:"cash_price","show-overflow-tooltip":""}),e(l,{label:"\u5E94\u6536\u91D1\u989D",prop:"receivable","show-overflow-tooltip":""}),e(l,{label:"\u5B9E\u6536\u91D1\u989D",prop:"receipts","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_id","show-overflow-tooltip":""}),e(l,{label:"\u56FE\u7247",prop:"file"},{default:o(({row:a})=>[e(I,{style:{width:"50px",height:"50px"},src:a.file,"preview-src-list":[a.file]},null,8,["src","preview-src-list"])]),_:1}),e(l,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(l,{label:"\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:o(({row:a})=>[a.status==0?(u(),d("span",ae,"\u672A\u5B8C\u6210\u6536\u7F34")):(u(),d("span",se,"\u5DF2\u