sf_web_dist/js/supplier-info.1756198155920BDgfvEqX.js

2 lines
12 KiB
JavaScript
Raw Normal View History

2025-08-26 16:51:17 +08:00
import{b2 as e,bs as a,r as t,ag as o,b4 as l,d8 as r,c as n,e as s,N as i,w as p,O as u,l as c,d9 as m,an as d,t as g,bb as _,g as y,c8 as h,aX as w,aO as f,a_ as v,ai as D}from"./index.1756198155920D4y1WkNn.js";import{_ as b}from"./index.1756198155920Bvjry5MI.js";/* empty css */import{E as j}from"./el-text.1756198155920k0fOx2Mh.js";import C from"./merge-list.1756198155920BMzcmaX7.js";import P from"./bind-aircraft.1756198155920D3NLNySS.js";import k from"./add-reduce-prepayment.1756198155920BAGEZc0h.js";import R from"./prepayment-log.1756198155920C7b_utNg.js";import F from"./deposit-channels-set.1756198155920yRumOvnt.js";import{g as S,c as B,e as x,a as U}from"./payee-suppiler.1756198155920B2wKahxF.js";import{k as A,l as L}from"./payee-user.1756198155920RoAcB9v1.js";import{b as T}from"./payee-order.1756198155920CzZYNYeB.js";/* empty css */import"./el-col.1756198155920VXJKLzx9.js";import"./el-card.1756198155920C_xtw0QH.js";import"./settlement-log.1756198155920JMefFzZv.js";import"./payee-count.1756198155920D5zYZQ0A.js";import"./add-channel.1756198155920C1dvzcVo.js";import"./payee-channel.1756198155920Ct7gFzSV.js";import"./channel-code.1756198155920DuMCwt3w.js";import"./single_fee.1756198155920CgtPzKRM.js";import"./test_channel.1756198155920MdU4bU6Z.js";import"./el-link.1756198155920D27YFefO.js";import"./fee-risk.1756198155920LzrhyuPn.js";import"./el-time-select.1756198155920CoxOGjg2.js";import"./copy-channel.1756198155920BCtUzccc.js";import"./sub-channel.1756198155920RxxccTry.js";import"./sub-channel-add.1756198155920DoBbF9QY.js";import"./sub-channel-fee.1756198155920F7wahW02.js";import"./sub-channel-risk.1756198155920Bstx-LgM.js";import"./channel-fee.17561981559204vqtVZ7U.js";import"./channel-risk.1756198155920DVGsmAnF.js";import"./staticData.17561981559208wZxkmL4.js";const V={style:{"margin-bottom":"4px"}},M=e({__name:"supplier-info",setup(e){a({legacy:!0});let M=[],z=t("create_time"),I=t("DESC");const E=t("日切清账,关闭通道"),q=t("warning"),O=t("0"),G=o({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"},{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=""}),Z()};l(async()=>{Z(),Y(),te();let e=(await S({sa