moreShopAdmin/build/admin/assets/index.b1f4ad37.js

2 lines
5.7 KiB
JavaScript

import{a0 as Q,G as Z,H as z,a1 as J,M as W,w as X,N as Y,L as ee,C as te,D as oe,F as ae,I as le,O as ne}from"./element-plus.7e347b00.js";import{_ as ie}from"./picker.5241a26d.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{u as se}from"./usePaging.6a6670f9.js";import{u as ue}from"./useDictOptions.14b113d2.js";import{r as g,t as me,f as pe}from"./index.5aa7d0e8.js";import{d as B,Z as w,r as F,o as d,c as C,M as _e,u as a,K as D,L as t,a as y,U as e,R as n,S as f,Q as k,j as V}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.a037a0fd.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.842c9957.js";import"./index.4a32058c.js";import"./vuedraggable.c5026861.js";import"./vue.1715f83d.js";import"./sortablejs.c62bcaf8.js";import"./lodash.4e6d2a38.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";function de(m){return g.get({url:"/financial_transfers/financialtransfers/lists",params:m})}function ce(m){return g.post({url:"/financial_transfers/FinancialTransfers/send_transfers",params:m})}function fe(m){return g.post({url:"/financial_transfers/FinancialTransfers/success_send",params:m})}const be={key:0,class:"flex"},ve={key:1},Fe={class:"flex mt-4 justify-end"},Ce=B({name:"financialTransfersLists"}),dt=B({...Ce,setup(m){const h=w({store_id:"",admin_id:"",uid:"",status:"",initiation_time:"",confirmation_time:"",mark:"",money:"",remark_time:""}),x=({row:i,rowIndex:l})=>(console.log(i.receivable),i.receivable?"":"warning-row"),T=F([]),A=i=>{T.value=i.map(({id:l})=>l)};ue("");const{pager:c,getLists:b,resetParams:De,resetPage:ge}=se({fetchFun:de,params:h}),I=async i=>{await pe.confirm("\u786E\u5B9A\u8981\u53D1\u9001\u5417\uFF1F"),await ce({id:i}),b()},p=F(!1),_=F(""),N=i=>{_.value=i,p.value=!0},r=w({id:"",transfer_picture:"",status:"",fail_msg:""}),L=async i=>{r.id=_.value.id,await fe({...r}),b(),p.value=!1};return b(),(i,l)=>{const s=W,v=X,U=Y,R=re,S=ee,u=Q,E=Z,P=z,$=ie,j=te,q=J,G=oe,M=ae,H=le,K=ne;return d(),C("div",null,[_e((d(),D(S,{class:"!border-none",shadow:"never"},{default:t(()=>[y("div",null,[e(U,{data:a(c).lists,onSelectionChange:A,"row-class-name":x},{default:t(()=>[e(s,{label:"ID",prop:"id","min-width":"55"}),e(s,{label:"\u5E97\u94FAID",prop:"store_id","show-overflow-tooltip":""}),e(s,{label:"\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(s,{label:"\u6536\u6B3E\u65B9",prop:"store_name","show-overflow-tooltip":""}),e(s,{label:"\u7ED3\u7B97\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),e(s,{label:"\u7ED3\u7B97\u65B9\u5F0F",prop:"extract_type","show-overflow-tooltip":""}),e(s,{label:"\u786E\u8BA4\u65F6\u95F4",prop:"initiation_time","show-overflow-tooltip":""},{default:t(({row:o})=>[n(f(a(me)(o.initiation_time,"yyyy-mm-dd")),1)]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:o})=>[o.receivable?(d(),C("div",be,[o.status==0?(d(),D(v,{key:0,link:"",type:"primary",onClick:O=>I(o.id)},{default:t(()=>[n(" \u53D1\u9001 ")]),_:2},1032,["onClick"])):k("",!0),o.status==2?(d(),D(v,{key:1,link:"",type:"primary",onClick:O=>N(o)},{default:t(()=>[n(" \u786E\u8BA4 ")]),_:2},1032,["onClick"])):k("",!0)])):(d(),C("div",ve))]),_:1})]),_:1},8,["data"])]),y("div",Fe,[e(R,{modelValue:a(c),"onUpdate:modelValue":l[0]||(l[0]=o=>V(c)?c.value=o:null),onChange:a(b)},null,8,["modelValue","onChange"])])]),_:1})),[[K,a(c).loading]]),e(H,{modelValue:a(p),"onUpdate:modelValue":l[5]||(l[5]=o=>V(p)?p.value=o:null),title:"\u786E\u8BA4\u7ED3\u7B97",width:"680px"},{default:t(()=>[e(q,{column:1,border:""},{default:t(()=>[e(u,{label:"\u59D3\u540D"},{default:t(()=>[n(f(a(_).store_realName),1)]),_:1}),e(u,{label:"\u94F6\u884C\u5361\u53F7"},{default:t(()=>[n(f(a(_).store_bank_code),1)]),_:1}),e(u,{label:"\u94F6\u884C\u540D\u79F0"},{default:t(()=>[n(f(a(_).store_bank),1)]),_:1}),e(u,{label:"\u5F00\u6237\u5730\u5740"},{default:t(()=>[n(f(a(_).store_bank_address),1)]),_:1}),e(u,{label:"\u64CD\u4F5C"},{default:t(()=>[e(P,{modelValue:a(r).status,"onUpdate:modelValue":l[1]||(l[1]=o=>a(r).status=o)},{default:t(()=>[e(E,{label:"1"},{default:t(()=>[n("\u901A\u8FC7")]),_:1}),e(E,{label:"0"},{default:t(()=>[n("\u4E0D\u901A\u8FC7")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u9644\u4EF6"},{default:t(()=>[e($,{modelValue:a(r).transfer_picture,"onUpdate:modelValue":l[2]||(l[2]=o=>a(r).transfer_picture=o)},null,8,["modelValue"])]),_:1}),e(u,{label:"\u5907\u6CE8"},{default:t(()=>[e(j,{class:"w-[280px]",modelValue:a(r).fail_msg,"onUpdate:modelValue":l[3]||(l[3]=o=>a(r).fail_msg=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1}),e(M,{class:"mt-4"},{default:t(()=>[e(G,null,{default:t(()=>[e(v,{type:"primary",onClick:L},{default:t(()=>[n("\u786E\u5B9A")]),_:1}),e(v,{onClick:l[4]||(l[4]=o=>p.value=!1)},{default:t(()=>[n("\u53D6\u6D88")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}});export{dt as default};