moreShopAdmin/build/admin/assets/index.0a226a6e.js

2 lines
4.8 KiB
JavaScript

import{m as B,aT as y,r as F,bt as z,aZ as H,a_ as J,bu as K,p,q as C,L as M,u as o,y as D,v as a,x as w,t as e,a2 as n,G as c,A as k,i as V,b6 as O,ae as Q,b7 as ee,b5 as te,aW as ae,aX as le,aY as oe,b0 as ne,b8 as se}from"./.pnpm.1b0299fb.js";import{_ as ue}from"./picker.0aa9b690.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.b077f234.js";import{u as re}from"./usePaging.00aa976d.js";import{u as de}from"./useDictOptions.e9843f63.js";import{r as g,t as me,f as _e}from"./index.689cfa31.js";import"./index.6c48d0ba.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.abac7546.js";import"./index.49d8d118.js";import"./index.05c22055.js";import"./@vueuse.72d44d91.js";import"./lodash.c3b66c05.js";import"./@vue.9d708d7c.js";function pe(d){return g.get({url:"/financial_transfers/financialtransfers/lists",params:d})}function fe(d){return g.post({url:"/financial_transfers/FinancialTransfers/send_transfers",params:d})}function ce(d){return g.post({url:"/financial_transfers/FinancialTransfers/success_send",params:d})}const be={key:0,class:"flex"},ve={key:1},Fe={class:"flex mt-4 justify-end"},Ce=B({name:"financialTransfersLists"}),he=B({...Ce,setup(d){const x=y({store_id:"",admin_id:"",uid:"",status:"",initiation_time:"",confirmation_time:"",mark:"",money:"",remark_time:""}),T=({row:s,rowIndex:t})=>(console.log(s.receivable),s.receivable?"":"warning-row"),A=F([]),I=s=>{A.value=s.map(({id:t})=>t)};de("");const{pager:f,getLists:b,resetParams:De,resetPage:ge}=re({fetchFun:pe,params:x}),N=async s=>{await _e.confirm("\u786E\u5B9A\u8981\u53D1\u9001\u5417\uFF1F"),await fe({id:s}),b()},m=F(!1),_=F(""),L=s=>{_.value=s,m.value=!0},u=y({id:"",transfer_picture:"",status:"",fail_msg:""}),U=async s=>{u.id=_.value.id,await ce({...u}),b(),m.value=!1};return b(),(s,t)=>{const i=O,v=Q,h=ee,P=ie,R=te,r=z,E=H,S=J,$=ue,q=ae,G=K,j=le,W=oe,X=ne,Y=se;return p(),C("div",null,[M((p(),D(R,{class:"!border-none",shadow:"never"},{default:a(()=>[w("div",null,[e(h,{data:o(f).lists,onSelectionChange:I,"row-class-name":T},{default:a(()=>[e(i,{label:"ID",prop:"id","min-width":"55"}),e(i,{label:"\u5E97\u94FAID",prop:"store_id","show-overflow-tooltip":""}),e(i,{label:"\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(i,{label:"\u6536\u6B3E\u65B9",prop:"store_name","show-overflow-tooltip":""}),e(i,{label:"\u7ED3\u7B97\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),e(i,{label:"\u7ED3\u7B97\u65B9\u5F0F",prop:"extract_type","show-overflow-tooltip":""}),e(i,{label:"\u786E\u8BA4\u65F6\u95F4",prop:"initiation_time","show-overflow-tooltip":""},{default:a(({row:l})=>[n(c(o(me)(l.initiation_time,"yyyy-mm-dd")),1)]),_:1}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[l.receivable?(p(),C("div",be,[l.status==0?(p(),D(v,{key:0,link:"",type:"primary",onClick:Z=>N(l.id)},{default:a(()=>t[6]||(t[6]=[n(" \u53D1\u9001 ")])),_:2},1032,["onClick"])):k("",!0),l.status==2?(p(),D(v,{key:1,link:"",type:"primary",onClick:Z=>L(l)},{default:a(()=>t[7]||(t[7]=[n(" \u786E\u8BA4 ")])),_:2},1032,["onClick"])):k("",!0)])):(p(),C("div",ve))]),_:1})]),_:1},8,["data"])]),w("div",Fe,[e(P,{modelValue:o(f),"onUpdate:modelValue":t[0]||(t[0]=l=>V(f)?f.value=l:null),onChange:o(b)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,o(f).loading]]),e(X,{modelValue:o(m),"onUpdate:modelValue":t[5]||(t[5]=l=>V(m)?m.value=l:null),title:"\u786E\u8BA4\u7ED3\u7B97",width:"680px"},{default:a(()=>[e(G,{column:1,border:""},{default:a(()=>[e(r,{label:"\u59D3\u540D"},{default:a(()=>[n(c(o(_).store_realName),1)]),_:1}),e(r,{label:"\u94F6\u884C\u5361\u53F7"},{default:a(()=>[n(c(o(_).store_bank_code),1)]),_:1}),e(r,{label:"\u94F6\u884C\u540D\u79F0"},{default:a(()=>[n(c(o(_).store_bank),1)]),_:1}),e(r,{label:"\u5F00\u6237\u5730\u5740"},{default:a(()=>[n(c(o(_).store_bank_address),1)]),_:1}),e(r,{label:"\u64CD\u4F5C"},{default:a(()=>[e(S,{modelValue:o(u).status,"onUpdate:modelValue":t[1]||(t[1]=l=>o(u).status=l)},{default:a(()=>[e(E,{label:"1"},{default:a(()=>t[8]||(t[8]=[n("\u901A\u8FC7")])),_:1}),e(E,{label:"0"},{default:a(()=>t[9]||(t[9]=[n("\u4E0D\u901A\u8FC7")])),_:1})]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u9644\u4EF6"},{default:a(()=>[e($,{modelValue:o(u).transfer_picture,"onUpdate:modelValue":t[2]||(t[2]=l=>o(u).transfer_picture=l)},null,8,["modelValue"])]),_:1}),e(r,{label:"\u5907\u6CE8"},{default:a(()=>[e(q,{class:"w-[280px]",modelValue:o(u).fail_msg,"onUpdate:modelValue":t[3]||(t[3]=l=>o(u).fail_msg=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1}),e(W,{class:"mt-4"},{default:a(()=>[e(j,null,{default:a(()=>[e(v,{type:"primary",onClick:U},{default:a(()=>t[10]||(t[10]=[n("\u786E\u5B9A")])),_:1}),e(v,{onClick:t[4]||(t[4]=l=>m.value=!1)},{default:a(()=>t[11]||(t[11]=[n("\u53D6\u6D88")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}});export{he as default};