2 lines
4.6 KiB
JavaScript
2 lines
4.6 KiB
JavaScript
|
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.6b125791.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.305bb481.js";import{u as W}from"./usePaging.fff444fa.js";import{d as Z}from"./store_order.b0c28662.js";import{_ as z}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.1f8956b3.js";import{a as K}from"./index.8eb121a3.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.6b964ca4.js";import"./axios.ebd1d4d0.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./index.7acb2098.js";import"./lodash.ab1d8f92.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.7a4c1284.js";import"./color.10b8b3bd.js";import"./clone.623e4e2d.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.518a19eb.js";import"./vue-clipboard3.c098b37d.js";import"./clipboard.a67a48a7.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:""}),F=_([]),g=l=>{F.value=l.map(({id:s})=>s)},D=()=>{var l;(l=r.value)!=null&&l.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 l=>{var s;(s=m.value)==null||s.open(l)},x=()=>{var l;(l=m.value)==null||l.close()};return h(),(l,s)=>{const V=U,v=A,w=Y,c=M,R=j,$=T,E=q,t=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:g},{default:o(()=>[e(t,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(t,{label:"\u95E8\u5E97",prop:"store_id","show-overflow-tooltip":""}),e(t,{label:"\u4EA4\u6613\u91D1\u989D",prop:"cash_price","show-overflow-tooltip":""}),e(t,{label:"\u5E94\u6536\u91D1\u989D",prop:"receivable","show-overflow-tooltip":""}),e(t,{label:"\u5B9E\u6536\u91D1\u989D",prop:"receipts","show-overflow-tooltip":""}),e(t,{label:"\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_id","show-overflow-tooltip":""}),e(t,{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(t,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(t,{label:"\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:o(({row:a})=>[a.status==0?(u()
|