sf_web_dist/js/supplier-info.Dsffhf2I.js

2 lines
10 KiB
JavaScript
Raw Normal View History

2025-08-18 17:00:02 +08:00
import{b2 as e,bs as a,r as t,ag as l,b4 as o,c as r,e as s,N as n,w as i,O as p,l as u,d8 as c,an as d,t as m,bb as g,g as h,c8 as _,aX as w,aO as y,a_ as f,ai as D}from"./index.DNrFju0h.js";import{_ as b}from"./index.7JO3h-dO.js";/* empty css */import{E as v}from"./el-text.C9DLAcTQ.js";import j from"./merge-list.Ci9X6REn.js";import C from"./bind-aircraft.CJZ2LOLe.js";import P from"./add-reduce-prepayment.C-0toYXb.js";import k from"./prepayment-log.C-fkkw97.js";import R from"./deposit-channels-set.rUUWGgQA.js";import{g as F,c as S,e as U,a as x}from"./payee-suppiler.Cs52WNra.js";import{j as B,k as A}from"./payee-user.B1AmFvHG.js";/* empty css */import"./el-col.B3Ww1uBR.js";import"./payee-order.DrcTg17M.js";import"./el-card.2OZAnCJ4.js";import"./settlement-log.COFOqhTw.js";import"./payee-count.Z_USfjgE.js";import"./add-channel.BtVYgcx8.js";import"./payee-channel.DvW89Qpo.js";import"./channel-code.BpMUOqx_.js";import"./single_fee.BxX3g91Z.js";import"./test_channel.3wgilPz0.js";import"./el-link.CDXjRTfY.js";import"./fee-risk.DCvtQEqj.js";import"./el-time-select.Lt-H2ggU.js";import"./copy-channel.wCuKKLmF.js";import"./sub-channel.DJaHexPU.js";import"./sub-channel-add.0r_ZwINS.js";import"./sub-channel-fee.CyOuLhFs.js";import"./sub-channel-risk.DnnwELPP.js";import"./channel-fee.BM0ylxR1.js";import"./channel-risk.BXE_wl1H.js";import"./staticData.8wZxkmL4.js";const L={style:{"margin-bottom":"4px"}},V=e({__name:"supplier-info",setup(e){a({legacy:!0});let V=[];const M=t("日切清账,关闭通道"),z=t("warning"),T=t("0"),I=l({columns:[{prop:"id",label:"ID",align:"center",width:"80"},{prop:"shop_id",label:"供应商编号",align:"center",width:"100"},{prop:"supplier_name",label:"供应商名称",align:"center"},{prop:"telegram_group",label:"飞机群ID",align:"center"},{prop:"warn_money",label:"预警金额",align:"center"},{prop:"credit_money",label:"授信额度",align:"center"},{prop:"prepay",label:"预付",align:"center",sortable:!0},{prop:"pay_money",label:"跑量",align:"center",sortable:!0},{prop:"prepay_money",label:"剩余预付",align:"center",slot:"prepay_money_slot",sortable:!0},{prop:"notify_time",label:"应下发",align:"center",sortable:!0},{prop:"status",label:"状态",align:"center",slot:"status_slot",width:"80"},{prop:"create_time",label:"注册时间",align:"center"},{prop:"ca",label:"操作",align:"center",slot:"operate_slot",width:"240px"}],tableData:[],searchFields:[{prop:"supplier_name",label:"供应商编号/名称",type:"input",value:""}],total:0,page:1,per_page:10,loading:!1,showAddSupplierDialog:!1,addForm:{title:"添加供应商",fields:[{label:"供应商名称",type:"input",prop:"supplier_name",value:""},{label:"预警金额",type:"input_num",prop:"warn_money",value:""},{label:"授信额度",type:"number",prop:"credit_money",value:""}],rules:{status:[{required:!0,message:"请选择设置",trigger:"blur"}]},values:{supplier_name:"",warn_money:"",credit_money:"",id:""}},showMergeSupplierDialog:!1,mergeForm:{title:"合并供应商",fields:[{label:"供应商从",type:"select",prop:"status",options:V,value:[]},{label:"合并到",type:"select",prop:"status",options:V,value:[]}],rules:{status:[{required:!0,message:"请选择设置",trigger:"blur"}]},values:{status:""}},showMergeListDialog:!1,showBindAircraftDialog:!1,currentRow:{},showPrePaymentDialog:!1,showPrePaymentLogDialog:!1,dialogShowChannelVisible:!1}),O=()=>{I.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),q()};o(()=>{q()});const q=()=>{let e={limit:I.per_page,page:I.page},a=function(e){const a={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(a[e.prop]=e.value)}),a}(I.searchFields);F(Object.assign(e,a)).then(e=>{I.tableData=e.data,I.total=e.total,clearInterval(J.value),T.value=e.system_clear_status,1==e.system_clear_status&&(z.value="danger",M.value="日切清账中,所有支付通道已关闭",initLoad||(Q(),initLoad=!0)),2==e.system_clear_status&&(z.value="success",M.value="日切清账完成,请手动点击开启所有通道")}).catch(()=>{I.loading=!1})},E=()=>{