2 lines
6.6 KiB
JavaScript
2 lines
6.6 KiB
JavaScript
import{Z as K,$ as X,a0 as ee,x as le,y as te,F as ae,R as oe,S as ue,D as se,w as ne,G as re,J as ie,M as pe,b as de,N as _e,O as me}from"./element-plus.ab0703f2.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{_ as fe}from"./index.vue_vue_type_script_setup_true_lang.dbc6dd63.js";import{u as ve}from"./usePaging.fff444fa.js";import{e as Fe,f as be,a as Ee}from"./store_order.00264166.js";import"./index.5ab034a5.js";import{d as A,$ as he,r as n,o as u,c as r,W as e,Q as t,F as x,a9 as B,P as V,U as E,R as we,u as h,a as d,V as C,j as ye,T as ge,n as xe}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"./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 Be={class:"mt-4"},Ve={key:0},Ce={key:1,class:"flex items-center"},De={class:"w-[50px] h-[50px] mr-2"},ke={class:"w-[50px] h-[50px] mr-2"},Te={class:"esplise"},Pe={class:"flex mt-4 justify-end"},$e={key:0},Re=A({name:"manageProjectLists"}),El=A({...Re,setup(Le){const o=he({order_id:"",pay_type:"",start_time:"",end_time:"",status:"",staff_id:""}),v=n("all"),N=i=>{v.value=="all"?o.status="":o.status=v.value,y()},_=n([]),w=n(!1),{pager:m,getLists:y,resetParams:S,resetPage:O}=ve({fetchFun:Ee,params:o}),j=()=>{_.value.length&&(o.start_time=_.value[0],o.end_time=_.value[1]),O()},Y=()=>{_.value=[],S()},D=n(null),k=n({}),I=async i=>{let a=await Fe({id:i});console.log(a),k.value=a,w.value=!0,await xe(),D.value.open()},T=n([]),P=n([]),F=n({finish:"",wait_receive:"",wait_send:"",to_be_paid:""});return(async()=>{let i=await await be();T.value=i.pay_type,P.value=i.staff,F.value=i.order_status})(),y(),(i,a)=>{const M=K,c=ae,f=X,$=oe,R=ue,q=se,g=ne,G=ee,J=re,L=ie,b=le,Q=te,s=pe,U=de,W=_e,Z=ce,z=me;return u(),r("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(J,{class:"mb-[-16px]",model:o,"label-width":"80px"},{default:t(()=>[e(G,null,{default:t(()=>[e(f,{span:6},{default:t(()=>[e(c,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:t(()=>[e(M,{modelValue:_.value,"onUpdate:modelValue":a[0]||(a[0]=l=>_.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(f,{span:6},{default:t(()=>[e(c,{label:"\u5E97\u5458"},{default:t(()=>[e(R,{class:"flex-1",modelValue:o.staff_id,"onUpdate:modelValue":a[1]||(a[1]=l=>o.staff_id=l),placeholder:"\u8BF7\u9009\u62E9\u5E97\u5458"},{default:t(()=>[(u(!0),r(x,null,B(P.value,(l,p)=>(u(),V($,{label:l.staff_name,value:l.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(f,{span:6},{default:t(()=>[e(c,{label:"\u8BA2\u5355\u7F16\u53F7"},{default:t(()=>[e(q,{modelValue:o.order_id,"onUpdate:modelValue":a[2]||(a[2]=l=>o.order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:6},{default:t(()=>[e(c,{label:"\u652F\u4ED8\u65B9\u5F0F"},{default:t(()=>[e(R,{class:"flex-1",modelValue:o.pay_type,"onUpdate:modelValue":a[3]||(a[3]=l=>o.pay_type=l),placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F"},{default:t(()=>[(u(!0),r(x,null,B(T.value,(l,p)=>(u(),V($,{label:l,value:p},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(f,{span:6},{default:t(()=>[e(c,null,{default:t(()=>[e(g,{type:"primary",onClick:j},{default:t(()=>[E("\u67E5\u8BE2")]),_:1}),e(g,{onClick:Y},{default:t(()=>[E("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),we((u(),V(L,{class:"!border-none",shadow:"never"},{default:t(()=>[e(Q,{modelValue:v.value,"onUpdate:modelValue":a[4]||(a[4]=l=>v.value=l),class:"demo-tabs",onTabChange:N},{default:t(()=>[e(b,{label:"\u5168\u90E8",name:"all"}),e(b,{label:`\u5F85\u652F\u4ED8(${F.value.to_be_paid})`,name:"-1"},null,8,["label"]),e(b,{label:`\u5F85\u6838\u9500(${F.value.wait_receive})`,name:"1"},null,8,["label"]),e(b,{label:`\u5DF2\u5B8C\u6210(${F.value.finish})`,name:"2"},null,8,["label"])]),_:1},8,["modelValue"]),d("div",Be,[e(W,{data:h(m).lists},{default:t(()=>[e(s,{label:"\u8BA2\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),e(s,{label:"\u7528\u6237\u4FE1\u606F",prop:"build_area_text","show-overflow-tooltip":""},{default:t(({row:l})=>[l.uid==0?(u(),r("div",Ve,"\u6E38\u5BA2")):(u(),r("div",Ce,[d("div",De,[e(U,{style:{width:"50px",height:"50px"},src:l.avatar,class:"mr-2"},null,8,["src"])]),E(" "+C(l.nickname),1)]))]),_:1}),e(s,{label:"\u5546\u54C1\u4FE1\u606F",prop:"project_level_text","show-overflow-tooltip":""},{default:t(({row:l})=>[(u(!0),r(x,null,B(l.product_info,(p,H)=>(u(),r("div",{key:H,class:"flex items-center mt-2"},[d("div",ke,[e(U,{style:{width:"50px",height:"50px"},src:p.image},null,8,["src"])]),d("div",null,[d("p",Te,C(p.store_name),1),d("p",null,"\uFFE5"+C(p.price),1)])]))),128))]),_:1}),e(s,{label:"\u5B9E\u9645\u652F\u4ED8",prop:"pay_price","show-overflow-tooltip":""}),e(s,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type_name","show-overflow-tooltip":""}),e(s,{label:"\u6536\u94F6\u5E97\u5458",prop:"staff","show-overflow-tooltip":""}),e(s,{label:"\u4E0B\u5355\u65F6\u95F4",prop:"pay_time","show-overflow-tooltip":""}),e(s,{label:"\u8BA2\u5355\u72B6\u6001",prop:"status_name","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"170",fixed:"right",align:"center"},{default:t(({row:l})=>[e(g,{type:"primary",link:"",onClick:p=>I(l.id)},{default:t(()=>[E(" \u8BA2\u5355\u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),d("div",Pe,[e(Z,{modelValue:h(m),"onUpdate:modelValue":a[5]||(a[5]=l=>ye(m)?m.value=l:null),onChange:h(y)},null,8,["modelValue","onChange"])])]),_:1})),[[z,h(m).loading]]),w.value?(u(),r("div",$e,[e(fe,{ref_key:"detailRef",ref:D,detailData:k.value,onClose:a[6]||(a[6]=l=>w.value=!1)},null,8,["detailData"])])):ge("",!0)])}}});export{El as default};
|