2025-01-17 16:39:06 +08:00
|
|
|
import{a1 as Z,P as z,Q as J,a2 as O,G as W,w as X,H as Y,K as ee,C as te,D as oe,F as ae,L as le,I as ne}from"./element-plus.8e273e86.js";import{_ as ie}from"./picker.3db17748.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{u as se}from"./usePaging.f8c888e4.js";import{u as ue}from"./useDictOptions.4491fd81.js";import{r as g,t as me,f as pe}from"./index.a4e11202.js";import{d as B,Z as w,r as F,o as _,c as C,M as de,u as l,K as D,L as o,a as y,U as e,R as n,S as c,Q as k,j as V}from"./@vue.76ce7aa3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.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.6364d095.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./index.94e56ae1.js";import"./index.11bc934e.js";import"./vuedraggable.1d6c5910.js";import"./vue.6c4d4a7c.js";import"./sortablejs.a0474a26.js";import"./lodash.41b9567d.js";import"./axios.b4cbdbc9.js";import"./jspdf.75308076.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.f23177ae.js";import"./color.a6ad6672.js";import"./clone.954ba32c.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.8d65305c.js";function _e(m){return g.get({url:"/financial_transfers/financialtransfers/lists",params:m})}function fe(m){return g.post({url:"/financial_transfers/FinancialTransfers/send_transfers",params:m})}function ce(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"}),_t=B({...Ce,setup(m){const x=w({store_id:"",admin_id:"",uid:"",status:"",initiation_time:"",confirmation_time:"",mark:"",money:"",remark_time:""}),T=({row:i,rowIndex:t})=>(console.log(i.receivable),i.receivable?"":"warning-row"),A=F([]),I=i=>{A.value=i.map(({id:t})=>t)};ue("");const{pager:f,getLists:b,resetParams:De,resetPage:ge}=se({fetchFun:_e,params:x}),L=async i=>{await pe.confirm("\u786E\u5B9A\u8981\u53D1\u9001\u5417\uFF1F"),await fe({id:i}),b()},p=F(!1),d=F(""),N=i=>{d.value=i,p.value=!0},r=w({id:"",transfer_picture:"",status:"",fail_msg:""}),U=async i=>{r.id=d.value.id,await ce({...r}),b(),p.value=!1};return b(),(i,t)=>{const s=W,v=X,P=Y,R=re,S=ee,u=Z,E=z,h=J,$=ie,j=te,q=O,G=oe,K=ae,Q=le,H=ne;return _(),C("div",null,[de((_(),D(S,{class:"!border-none",shadow:"never"},{default:o(()=>[y("div",null,[e(P,{data:l(f).lists,onSelectionChange:I,"row-class-name":T},{default:o(()=>[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:o(({row:a})=>[n(c(l(me)(a.initiation_time,"yyyy-mm-dd")),1)]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:a})=>[a.receivable?(_(),C("div",be,[a.status==0?(_(),D(v,{key:0,link:"",type:"primary",onClick:M=>L(a.id)},{default:o(()=>t[6]||(t[6]=[n(" \u53D1\u9001 ")])),_:2},1032,["onClick"])):k("",!0),a.status==2?(_(),D(v,{key:1,link:"",type:"primary",onClick:M=>N(a)},{default:o(()=>t[7]||(t[7]=[n(" \u786E\u8BA4 ")])),_:2},1032,["onClick
|