import{n as e}from"./index-Bg7bo8aA.js";import{t}from"./ListFieldCell-DGVaDsHy.js";var n=e(),r={deviceImei:`device.imei1`,devicePurchase:`device.purchase_amount`,simPhone:`sim.phone_number`,simRealName:`sim.real_name_holder`,simMonthlyFee:`sim.monthly_fee`,accountSimPhone:`account.sim_phone_number`};function i(e){return(0,n.jsx)(`span`,{className:`cp-mono`,children:e})}function a(e){return{title:`IMEI`,dataIndex:`imei1`,render:(a,o)=>{let s=(0,n.jsx)(t,{row:o,entity:`device`,resourceId:o.id,fieldKey:r.deviceImei,apiName:`imei1`,label:`IMEI`});return e?.mono?i(s):s}}}function o(e=`采购价`){return{title:e,dataIndex:`purchaseAmount`,render:(i,a)=>(0,n.jsx)(t,{row:a,entity:`device`,resourceId:a.id,fieldKey:r.devicePurchase,apiName:`purchaseAmount`,label:e,format:e=>e?`¥${Number(e).toLocaleString()}`:`—`})}}function s(e){return{title:`手机号`,dataIndex:`phoneNumber`,render:(a,o)=>{let s=(0,n.jsx)(t,{row:o,entity:`sim`,resourceId:o.id,fieldKey:r.simPhone,apiName:`phoneNumber`,label:`手机号`});return e?.mono?i(s):s}}}function c(e=`实名人`){return{title:e,dataIndex:`realNameHolder`,render:(i,a)=>(0,n.jsx)(t,{row:a,entity:`sim`,resourceId:a.id,fieldKey:r.simRealName,apiName:`realNameHolder`,label:e})}}function l(){return{title:`套餐月资费`,dataIndex:`monthlyFee`,render:(e,i)=>(0,n.jsx)(t,{row:i,entity:`sim`,resourceId:i.id,fieldKey:r.simMonthlyFee,apiName:`monthlyFee`,label:`套餐月资费`,format:e=>e?`¥${e}`:`—`})}}function u(e=`联系电话`){return{title:e,dataIndex:`mobile`,render:(r,i)=>(0,n.jsx)(t,{row:i,entity:`real_name`,resourceId:i.id,fieldKey:`real_name.mobile`,apiName:`mobile`,label:e})}}function d(e=`身份证`){return{title:e,dataIndex:`idCardNumber`,render:(r,i)=>(0,n.jsx)(t,{row:i,entity:`real_name`,resourceId:i.id,fieldKey:`real_name.id_card_number`,apiName:`idCardNumber`,label:e})}}function f(e=`月折旧`){return{title:e,dataIndex:`monthlyDepreciation`,render:(r,i)=>(0,n.jsx)(t,{row:i,entity:`device`,resourceId:i.id,fieldKey:`device.monthly_depreciation`,apiName:`monthlyDepreciation`,label:e,format:e=>e?`¥${Number(e).toFixed(2)}`:`—`})}}function p(e=`残值`){return{title:e,dataIndex:`residualValue`,render:(r,i)=>(0,n.jsx)(t,{row:i,entity:`device`,resourceId:i.id,fieldKey:`device.residual_value`,apiName:`residualValue`,label:e,format:e=>e?`¥${Number(e).toLocaleString()}`:`—`})}}export{d as a,s as c,p as i,c as l,f as n,u as o,o as r,l as s,a as t};