1 |
- import{d as Q,a6 as W,r as m,a4 as X,b as C,p as Z,c as d,e as R,f as N,g,h as t,i as n,u as p,a1 as ee,C as B,t as te,A as ae,F as ne,m as r,E as I,N as oe,_ as ue}from"./index.0308b213.js";import{a as le}from"./index.50bf8544.js";import ie from"./redeem-box.fb626651.js";import re from"./keep-box.55d6095c.js";import{B as se,x as pe,w as de,u as _e}from"./pawning.d84bbb72.js";import"./pawnRequest.956aeb8a.js";import"./index.4e38854e.js";import"./redeemGoodsForm.afafa5d8.js";import"./index.vue_vue_type_script_setup_true_lang.e7796e9d.js";import"./drawer-payment.57177b82.js";import"./index.dfdc0704.js";import"./index.vue_vue_type_style_index_0_scoped_f00ed21d_lang.2c48f49b.js";import"./vuedraggable.umd.405b1bec.js";import"./index.35b8c9ab.js";import"./index.9e8820cd.js";import"./sort_out.2008c10d.js";import"./authForm.54a9b894.js";import"./copy-dialog.e87f9c47.js";import"./product-detail.d1671ec8.js";import"./record-table.37ac3c70.js";import"./redeemInfoForm.8d061ce7.js";import"./redeemUserForm.9eb74fd2.js";import"./system.638e3ebc.js";import"./keepGoodsForm.007b8b2b.js";import"./keepInfoForm.626d5724.js";import"./keepUserForm.c5cd9e23.js";const ce={class:"filter-form"},me={style:{display:"flex",gap:"10px"}},Fe=r("\u4E0D\u9650"),ge=r("\u4ECA\u65E5"),we=r("\u6628\u65E5"),ye=r("\u8FD17\u5929"),he=r("\u8FD130\u5929"),fe=r("\u7B5B\u9009"),ve={class:"data"},Ee={class:"operation-btn"},be=r("\u65B0\u589E\u7EED\u5F53"),ke=r("\u5BFC\u51FA\u5F53\u524D\u9875"),De=r("\u5BFC\u51FA\u5168\u90E8\u9875"),xe={class:"table"},Be={key:0},Ce=r("\u5165\u5E93"),Ie=r("\u8D4E\u5F53"),Se=r("\u7EED\u5F53"),Ae={class:"pagination"},Le=Q({setup(Te){W(),m();const k=m(),w=m();m(),X(),C({okText:"\u786E\u5B9A",hiddenSide:!0});const l=C({start_date:void 0,end_date:void 0,day:"all",page:1,limit:10,keywords:""}),y=m(""),D=()=>{y.value&&y.value.length===2?(l.start_date=y.value[0],l.end_date=y.value[1]):(l.start_date=void 0,l.end_date=void 0),F(),v()},x=C({list:[],count:2}),h=m("\u65B0\u589E\u5B58\u5F53"),f=m("\u65B0\u589E\u5B58\u5F53"),P=e=>{k.value.eventData=e,h.value="\u65B0\u589E\u8D4E\u5F53",f.value=["goods","auth","record"],k.value.visible=!0},S=e=>{w.value.eventData=e,h.value="\u65B0\u589E\u7EED\u5F53",f.value=["goods","auth","record"],w.value.visible=!0},K=e=>{w.value.eventData=e,h.value="\u7EED\u5F53\u8BB0\u5F55",f.value=["goods","auth","record"],w.value.visible=!0},A=m(),v=()=>{le().then(e=>{A.value=e})};v();const F=()=>{se(l).then(e=>{x.list=e.list,x.count=e.count})};F();const L=(e,a,i)=>{if(!i)return"-";const s=new Date(i*1e3),_=s.getFullYear(),E=String(s.getMonth()+1).padStart(2,"0"),b=String(s.getDate()).padStart(2,"0");return`${_}-${E}-${b}`},Y=(e,a,i)=>A.value[i].text,z={expire:"\u7F13\u5B58\u671F",normal:"\u6B63\u5E38",cancel:"\u4F5C\u5E9F"},U=(e,a,i)=>z[i]||"\u672A\u77E5\u72B6\u6001",T=e=>{const a=new Date(e*1e3),i=a.getFullYear(),s=String(a.getMonth()+1).padStart(2,"0"),_=String(a.getDate()).padStart(2,"0"),E=String(a.getHours()).padStart(2,"0"),b=String(a.getMinutes()).padStart(2,"0"),c=String(a.getSeconds()).padStart(2,"0");return`${i}-${s}-${_} ${E}:${b}:${c}`},$=e=>{const a=new Date(e.pawnInfoForm.start_time);e.pawnInfoForm.start_time=Math.floor(a.getTime()/1e3);const i=new Date(e.pawnInfoForm.end_time);e.pawnInfoForm.end_time=Math.floor(i.getTime()/1e3)},M=e=>{e.pawnInfoForm.start_time=T(e.pawnInfoForm.start_time),e.pawnInfoForm.end_time=T(e.pawnInfoForm.end_time)},O=e=>{$(e),pe({ticket_id:e.pawnInfoForm.id,other_fee:e.pawnInfoForm.other_fee,pickup_type:e.pawnInfoForm.pickup_type,business_path:e.pawnInfoForm.business_path,partner:e.pawnInfoForm.partner,handler:e.pawnInfoForm.handler,payee:e.pawnInfoForm.payee,remark:e.remark,pay_type:e.youLike.pay_type,actual_pay:Number(e.youLike.actual_pay),pay_info_remark:e.youLike.pay_info_remark,pay_info_image:e.youLike.pay_info_image}).then(a=>{k.value.visible=!1,F(),v(),I({message:"\u8D4E\u5F53\u6210\u529F",type:"success"})}).catch(()=>{M(e)})},j=e=>{$(e),de({id:e.pawnInfoForm.id,period_value:e.pawnInfoForm.period_value,start_time:e.pawnInfoForm.start_time,end_time:e.pawnInfoForm.end_time,partner:e.pawnInfoForm.partner,handler:e.pawnInfoForm.handler,payee:e.pawnInfoForm.payee,partner_id:e.pawnInfoForm.partner_id,handler_id:e.pawnInfoForm.handler_id,payee_id:e.pawnInfoForm.payee_id,commission:e.pawnInfoForm.commission,other_fee:e.pawnInfoForm.other_fee,late_fee:e.pawnInfoForm.late_fee,otherFees:e.pawnInfoForm.otherFees,remark:e.remark,pay_info_remark:e.youLike.pay_info_remark,pay_info_image:e.youLike.pay_info_image,pay_info_text:e.youLike.pay_info_text,actual_pay:Number(e.youLike.actual_pay),pay_type:e.youLike.pay_type}).then(a=>{w.value.visible=!1,F(),v(),I({message:"\u7EED\u5F53\u6210\u529F",type:"success"})}).catch(()=>{M(e)})},q=e=>{oe.alert("\u786E\u8BA4\u628A\u8BE5\u5F53\u7968\u7684\u6240\u6709\u5546\u54C1\u6539\u4E3A\u5165\u5E93\u72B6\u6001","\u63D0\u793A",{confirmButtonText:"\u786E\u8BA4",showCancelButton:!0,cancelButtonText:"\u53D6\u6D88"}).then(()=>{_e({id:e,change_pawn_status:"in_stock"}).then(a=>{I({message:"\u5165\u5E93\u6210\u529F",type:"success"}),F(),v()})}).catch(()=>{})};return Z(()=>[l.page,l.limit],()=>{D()}),(e,a)=>{const i=d("el-date-picker"),s=d("el-form-item"),_=d("el-radio-button"),E=d("el-radio-group"),b=d("el-input"),c=d("el-button"),H=d("el-form"),o=d("el-table-column"),G=d("el-table"),J=d("el-pagination");return R(),N(ne,null,[g("div",ce,[t(H,{model:p(l),"label-width":"0",onSubmit:a[3]||(a[3]=B(()=>{},["prevent"]))},{default:n(()=>[t(s,{class:"tn-el-form-item",style:{width:"300px"}},{default:n(()=>[t(i,{class:"tn-el-form-item--item",type:"daterange",modelValue:y.value,"onUpdate:modelValue":a[0]||(a[0]=u=>y.value=u),"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4","value-format":"YYYY-MM-DD",clearable:""},null,8,["modelValue"])]),_:1}),g("div",me,[t(s,null,{default:n(()=>[t(E,{modelValue:p(l).day,"onUpdate:modelValue":a[1]||(a[1]=u=>p(l).day=u),onChange:D},{default:n(()=>[t(_,{label:"all"},{default:n(()=>[Fe]),_:1}),t(_,{label:"0"},{default:n(()=>[ge]),_:1}),t(_,{label:"1"},{default:n(()=>[we]),_:1}),t(_,{label:"7"},{default:n(()=>[ye]),_:1}),t(_,{label:"30"},{default:n(()=>[he]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(s,null,{default:n(()=>[t(b,{style:{width:"300px"},modelValue:p(l).keywords,"onUpdate:modelValue":a[2]||(a[2]=u=>p(l).keywords=u),placeholder:"\u624B\u673A\u53F7/\u8BA2\u5355\u53F7/\u5730\u5740/\u59D3\u540D",onKeydown:ee(D,["enter"])},null,8,["modelValue","onKeydown"])]),_:1}),t(s,null,{default:n(()=>[t(c,{type:"primary",onClick:D},{default:n(()=>[fe]),_:1})]),_:1})])]),_:1},8,["model"])]),g("div",ve,[g("div",Ee,[t(c,{type:"primary",style:{"margin-right":"auto"},class:"btn",onClick:a[4]||(a[4]=u=>S(""))},{default:n(()=>[be]),_:1}),t(c,{class:"btn tn-button tn-button--blue--light",onClick:a[5]||(a[5]=()=>{})},{default:n(()=>[ke]),_:1}),t(c,{class:"btn tn-button tn-button--blue--light",onClick:a[6]||(a[6]=()=>{})},{default:n(()=>[De]),_:1})]),g("div",xe,[t(G,{data:p(x).list,stripe:"",border:!0,onRowClick:K},{default:n(()=>[t(o,{align:"center",width:"200px",label:"\u7EED\u5F53\u7F16\u53F7",prop:"renew_no"}),t(o,{align:"center",width:"200px",label:"\u5F53\u7968\u7F16\u53F7",prop:"ticketInfo.ticket_no"}),t(o,{align:"center",width:"120px",label:"\u95E8\u5E97",prop:"store_name"}),t(o,{align:"center",width:"100px",label:"\u5F53\u888B\u53F7",prop:"ticketInfo.pocket_no"}),t(o,{align:"center",width:"100px",label:"\u5468\u671F\u7C7B\u578B",prop:"ticketInfo.period_type",formatter:Y}),t(o,{align:"center",width:"80px",label:"\u7EED\u5F53\u5468\u671F",prop:"period_value"}),t(o,{align:"center",width:"80px",label:"\u7EED\u5F53\u8D39\u7528",prop:"commission"}),t(o,{align:"center",width:"80px",label:"\u5176\u4ED6\u8D39\u7528",prop:"other_fee"}),t(o,{align:"center",width:"80px",label:"\u6EDE\u7EB3\u91D1",prop:"late_fee"}),t(o,{align:"center",width:"80px",label:"\u7EFC\u5408\u8D39\u7528",prop:"final_fee"}),t(o,{align:"center",width:"120px",label:"\u5F00\u59CB\u65F6\u95F4",prop:"start_time",formatter:L}),t(o,{align:"center",width:"120px",label:"\u7ED3\u675F\u65F6\u95F4",prop:"end_time",formatter:L}),t(o,{align:"center",width:"100px",label:"\u64CD\u4F5C\u5458",prop:"nickname"}),t(o,{align:"center",width:"100px",label:"\u5F53\u7968\u72B6\u6001",prop:"status",formatter:U}),t(o,{align:"center",width:"100px",label:"\u4ED8\u6B3E\u72B6\u6001"},{default:n(u=>[g("div",null,te(u.row.is_pay==1?"\u5DF2\u4ED8\u6B3E":"\u672A\u4ED8\u6B3E"),1)]),_:1}),t(o,{align:"center",width:"200px",label:"\u5907\u6CE8",prop:"remark"}),t(o,{align:"center",width:"300px",label:"\u64CD\u4F5C"},{default:n(u=>[u.row.show_btn?(R(),N("div",Be,[t(c,{type:"primary",plain:"",onClick:B(V=>q(u.row.ticket_id),["stop"])},{default:n(()=>[Ce]),_:2},1032,["onClick"]),t(c,{type:"primary",onClick:B(V=>P(u.row),["stop"])},{default:n(()=>[Ie]),_:2},1032,["onClick"]),t(c,{type:"primary",onClick:B(V=>S(u.row),["stop"])},{default:n(()=>[Se]),_:2},1032,["onClick"])])):ae("",!0)]),_:1})]),_:1},8,["data"])])]),g("div",Ae,[t(J,{"current-page":p(l).page,"onUpdate:current-page":a[7]||(a[7]=u=>p(l).page=u),"page-size":p(l).limit,"onUpdate:page-size":a[8]||(a[8]=u=>p(l).limit=u),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:p(x).count},null,8,["current-page","page-size","total"])]),t(ie,{onConfirm:O,ref_key:"redeemForm",ref:k,mode:f.value,title:h.value,onPawningList:F},null,8,["mode","title"]),t(re,{onConfirm:j,ref_key:"keepForm",ref:w,mode:f.value,title:h.value,onPawningList:F},null,8,["mode","title"])],64)}}});const lt=ue(Le,[["__scopeId","data-v-e5ac999a"]]);export{lt as default};
|