2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{Y as q,$ as z,a0 as J,D as Q,C as W,Q as G,R as H,w as K,F as X,I as Z,L as ee,M as oe,J as le,N as te}from"./element-plus.9175fe58.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.0fb3ad1e.js";import{u as ue}from"./usePaging.d25ebf19.js";import{c as ne,d as re}from"./store_finance_flow.d17a97e3.js";import{h as se}from"./goodsList.8db28082.js";import{a as ie}from"./index.026c5631.js";import{d as h,a0 as pe,r as _,o as v,c as k,a as E,W as e,O as o,V as B,a7 as me,M as V,T as f,P as de,u as w,j as _e}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.1f51da93.js";import"./axios.13991fdc.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"./lodash.6c5d06b3.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.23ed6179.js";import"./color.9c368256.js";import"./clone.e9277309.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.212df0f4.js";import"./vue-clipboard3.f310ddad.js";import"./clipboard.141ef824.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";const fe={class:"mt-4"},ce={class:"flex mt-4 justify-end"},ve=h({name:"manageProjectLists"}),oo=h({...ve,setup(we){const y=ie().userInfo,a=pe({keyword:"",start_time:"",end_time:"",order:"",staff_id:"",store_id:y.store_id}),r=_(null),{pager:i,getLists:F,resetParams:D,resetPage:x}=ue({fetchFun:re,params:a}),p=_(!1);_("");const m=_({}),A=async()=>{await ne({id:m.value.id,remark:m.value.remark}),p.value=!1},L=()=>{var n;(n=r.value)!=null&&n.length?(a.start_time=r.value[0]+" 00:00:00",a.end_time=r.value[1]+" 23:59:59"):(a.start_time="",a.end_time=""),x()},P=n=>{m.value=n,p.value=!0},R=()=>{r.value=[],D()},b=_([]);return(async()=>{let n=await se({page_no:1,page_size:100});b.value=n.lists})(),F(),(n,t)=>{const S=q,s=Q,c=z,g=W,U=G,I=H,d=K,Y=J,M=X,C=Z,u=ee,N=oe,T=ae,$=le,j=te;return v(),k(B,null,[E("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(M,{class:"mb-[-16px]",model:a,"label-width":"80px"},{default:o(()=>[e(Y,null,{default:o(()=>[e(c,{span:6},{default:o(()=>[e(s,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:o(()=>[e(S,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=l=>r.value=l),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(c,{span:6},{default:o(()=>[e(s,{label:"\u8BA2\u5355\u641C\u7D22"},{default:o(()=>[e(g,{modelValue:a.keyword,"onUpdate:modelValue":t[1]||(t[1]=l=>a.keyword=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA4\u6613\u5355\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:6},{default:o(()=>[e(s,{label:"\u5E97\u5458"},{default:o(()=>[e(I,{class:"flex-1",modelValue:a.staff_id,"onUpdate:modelValue":t[2]||(t[2]=l=>a.staff_id=l),placeholder:"\u8BF7\u9009\u62E9\u5E97\u5458"},{default:o(()=>[(v(!0),k(B,null,me(b.value,(l,O)=>(v(),V(U,{label:l.staff_name,value:l.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(c,{span:6},{default:o(()=>[e(s,null,{default:o(()=>[e(d,{type:"primary",onClick:L},{default:o(()=>[f("\u67E5\u8BE2")]),_:1}),e(d,{onClick:R},{default:o(()=>[f("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),de((v(),V(C,{class:"!border-none",shadow:"never"},{default:o(()=>[E("div",fe,[e(N,{data:w(i).lists},{default:o(()=>[e(u,{label:"\u4EA4\u6613\u5355\u53F7",prop:"financial_record_sn","show-overflow-tooltip":""}),e(u,{label:"\u5173\u8054\u8BA2\u5355",prop:"order_sn","show-overflow-tooltip":""}),e(u,{label:"\u4EA4\u6613\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(u,{label:"\u4EA4\u6613\u91D1\u989D",prop:"number","show-overflow-tooltip":""}),e(u,{label:"\u4EA4\u6613\u4EBA",prop:"nickname","show-overflow-tooltip":""}),e(u,{label:"\u5173\u8054\u5E97\u5458",prop:"staff_name","show-overflow-tooltip":""}),e(u,{label:"\u4EA4\u6613\u7C7B\u578B",prop:"financial_type_name","show-overflow-tooltip":""}),e(u,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type_name","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:o(({row:l})=>[e(d,{onClick:O=>P(l),link:"",type:"primary"},{default:o(()=>[f("\u5907\u6CE8")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),E("div",ce,[e(T,{modelValue:w(i),"onUpdate:modelValue":t[3]||(t[3]=l=>_e(i)?i.value=l:null),onChange:w(F)},null,8,["modelValue","onChange"])])]),_:1})),[[j,w(i).loading]])]),e($,{title:"\u6DFB\u52A0\u5907\u6CE8",modelValue:p.value,"onUpdate:modelValue":t[6]||(t[6]=l=>p.value=l),width:"550px"},{default:o(()=>[e(s,null,{default:o(()=>[e(g,{modelValue:m.value.remark,"onUpdate:modelValue":t[4]||(t[4]=l=>m.value.remark=l),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u5185\u5BB9"},null,8,["modelValue"])]),_:1}),e(s,null,{default:o(()=>[e(d,{type:"primary",onClick:A},{default:o(()=>[f("\u786E\u5B9A")]),_:1}),e(d,{onClick:t[5]||(t[5]=l=>p.value=!1)},{default:o(()=>[f("\u53D6\u6D88")]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}}});export{oo as default};
|