2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
|
import{b2 as e,bv as a,r as o,ag as t,b4 as l,dk as r,c as n,e as s,N as i,w as p,O as u,l as c,dm as m,an as d,t as g,bb as _,g as y,cb as h,aX as w,aO as v,a_ as f,ai as b,ds as D,dt as C}from"./index.1757051889208DRqHAyxg.js";import{_ as j}from"./index.1757051889208B27YTq0N.js";/* empty css */import{E as P}from"./el-text.1757051889208Dqvtkogw.js";import k from"./merge-list.1757051889208BPTz1K8M.js";import R from"./bind-aircraft.1757051889208C_U7XOqW.js";import F from"./add-reduce-prepayment.1757051889208CKO9TOpk.js";import S from"./prepayment-log.1757051889208CeeDRfhr.js";import B from"./deposit-channels-set.1757051889208C0P6QjFs.js";import{g as x,c as U,e as A,a as L}from"./payee-suppiler.1757051889208WcCyUo6Y.js";import{b as V}from"./payee-order.1757051889208CZYFISQg.js";/* empty css */import"./el-col.1757051889208m32Fovi8.js";import"./el-card.1757051889208DQ50vU5q.js";import"./settlement-log.1757051889208qDJ8qNrv.js";import"./payee-count.1757051889208Cxdg3wbb.js";import"./add-channel.1757051889208CV8HrmUQ.js";import"./channel-code.1757051889208G0S2DI6u.js";import"./single_fee.1757051889208CxiruYd_.js";import"./test_channel.1757051889208fLTS-ik_.js";import"./el-link.1757051889208D3Ew2ssK.js";import"./fee-risk.1757051889208tneT2_uB.js";import"./el-time-select.1757051889208z64V71Qf.js";import"./copy-channel.1757051889208Q-S8fXof.js";import"./sub-channel.1757051889208P5yILys0.js";import"./sub-channel-add.1757051889208DlZD_A6H.js";import"./sub-channel-fee.1757051889208Q-kbfo8o.js";import"./sub-channel-risk.1757051889208CBb-4zF8.js";import"./channel-fee.1757051889208DPr-2M_U.js";import"./channel-risk.1757051889208DCpiniWN.js";import"./staticData.17570518892088wZxkmL4.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 E=o("日切清账,关闭通道"),q=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"},{prop:"credit_money",label:"授信额度",align:"center"},{prop:"prepay",label:"预付",align:"center",sortable:"custom",slot:"sum_money_slot"},{prop:"pay_money",label:"跑量",align:"center",sortable:"custom"},{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_name",label:"供应商编号/名称",type:"select",options:[],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 x({saiType:"all"})).map(e=>({label:e.supplier_name,value:e.supplier_name}));G.sea
|