2025-09-10 18:59:32 +08:00
|
|
|
import{b2 as e,bt as a,r as o,ag as t,b4 as l,di as r,c as n,e as s,N as i,w as p,l as u,dk as c,an as m,O as d,t as g,bb as _,g as y,c9 as h,aX as w,aO as f,a_ as v,ai as D,dq as b,dr as C}from"./index.1757501868566CZ1XL-xQ.js";import{_ as j}from"./index.1757501868566Cz1_J9j4.js";/* empty css */import P from"./merge-list.1757501868566D5Sg3ASf.js";import k from"./bind-aircraft.1757501868566CGPyJ1A-.js";import R from"./add-reduce-prepayment.1757501868566cYNrR5Wd.js";import F from"./prepayment-log.1757501868566uW5ovXRb.js";import S from"./deposit-channels-set.1757501868566OfaiBgcn.js";import{g as B,c as x,e as U,a as A}from"./payee-suppiler.1757501868566DYrjx0Bl.js";import{b as L}from"./payee-order.1757501868566BU3lQqnj.js";import{p as V}from"./common.1757501868566CCwWzMi9.js";/* empty css */import"./el-col.1757501868566kq3Lwm1P.js";import"./el-text.1757501868566BjVFwwZn.js";import"./el-card.1757501868566BwPLz89A.js";import"./settlement-log.1757501868566CLRjlbVH.js";import"./payee-count.1757501868566BPDUxo_b.js";import"./add-channel.1757501868566CJ7myB34.js";import"./channel-code.1757501868566DW8EdebW.js";import"./single_fee.1757501868566C-ojVFyD.js";import"./test_channel.1757501868566Ta_xDUBq.js";import"./el-link.1757501868566Cf6-Z-fW.js";import"./fee-risk.1757501868566DaLy6mTo.js";import"./el-time-select.1757501868566BleqPyAg.js";import"./copy-channel.1757501868566ByMNYYvN.js";import"./sub-channel.1757501868566C0hUJRbm.js";import"./sub-channel-add.1757501868566CD1N6hN4.js";import"./sub-channel-fee.1757501868566DWoZrFn8.js";import"./sub-channel-risk.1757501868566Cq3her1A.js";import"./channel-fee.1757501868566BwVO7OZb.js";import"./channel-risk.1757501868566NN9xTm4o.js";import"./staticData.17575018685668wZxkmL4.js";const T={style:{"margin-bottom":"4px"}},M=e({__name:"supplier-info",setup(e){a({legacy:!0});let M=[],z=o("create_time"),I=o("DESC");const q=o("日切清账,关闭通道"),E=o("warning"),O=o("0"),G=t({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",formatter:V},{prop:"credit_money",label:"授信额度",align:"center",formatter:V},{prop:"prepay",label:"预付",align:"center",sortable:"custom",slot:"sum_money_slot"},{prop:"money",label:"跑量",align:"center",sortable:"custom",formatter:V},{prop:"prepay_money",label:"剩余预付",align:"center",slot:"prepay_money_slot",sortable:!0},{prop:"count_money",label:"应下发",align:"center",slot:"count_money_slot",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_query",label:"供应商编号/名称",type:"input",value:""}],total:0,page:1,per_page:50,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:M,value:[]},{label:"合并到",type:"select",prop:"status",options:M,value:[]}],rules:{status:[{required:!0,message:"请选择设置",trigger:"blur"}]},values:{status:""}},showMergeListDialog:!1,showBindAircraftDialog:!1,currentRow:{},showPrePaymentDialog:!1,showPrePaymentLogDialog:!1,dialogShowChannelVisible:!1}),N=()=>{G.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),H()};l(async()=>{H(),$(),oe();let e=(await B({saiType:"all"})
|