multiStoreAdmin/build/store/assets/index.5453fc8f.js

2 lines
4.4 KiB
JavaScript
Raw Normal View History

2024-07-02 18:16:49 +08:00
import{Y as S,_ as T,$,D as j,w as A,F as U,I as q,L as H,b as O,M as W,N as z}from"./element-plus.0a93cab1.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.3863431c.js";import{u as J}from"./usePaging.d25ebf19.js";import{d as K}from"./store_order.b370fc86.js";import{_ as Q}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.5f47a356.js";import{a as X}from"./index.8ccde2ce.js";import{d as C,r as _,a0 as Z,o as u,c as d,W as e,O as o,T as f,P as ee,u as p,M as oe,a as b,j as te}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.39ecea31.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.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.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.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"}),ze=C({...ne,setup(ie){const r=_(null),m=_(null),n=Z({store_id:X().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}=J({fetchFun:K,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=S,v=j,w=T,c=A,R=$,I=U,E=q,l=H,L=O,Y=W,M=G,N=z;return u(),d("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(I,{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(Y,{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(L,{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\u5B8C\u6210"))]),_:1}),e(l,{label:"\