123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915 |
- import { useCountryInfoStore } from '/@/stores/countryInfo';
- import { useResponse } from '/@/utils/useResponse';
- import * as api from '/@/views/shop-information/api';
- const countryInfoStore = useCountryInfoStore();
- export const companySelect: Ref<any[]> = ref([]);
- // const ret = await useResponse({}, api.getCompanySelect);
- // companySelect.value = ret.data;
- async function main() {
- const result = await api.getCompanySelect();
- companySelect.value = result.data;
- }
- main();
- export const platformColumns = [
- { type: 'seq', title: '序 号', width: 60, align: 'center', fixed: 'left' },
- {
- field: 'operatorName', title: '运 营', minWidth: 'auto', align: 'center', fixed: 'left',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.operatorName ? row.operatorName : '--' }</span>;
- }
- }
- },
- {
- field: 'platformNumber', title: '店铺编号', minWidth: 'auto', align: 'center', slots: { default: 'platformNumber' }
- },
- {
- field: 'platformName', title: '店铺名称', minWidth: 'auto', align: 'center', slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }
- style={ { color: '#303133' } }>{ row.platformName ? row.platformName : '--' }</span>;
- }
- }
- },
- {
- field: 'country', title: '国 家', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- const country = countryInfoStore.countries.find(c => c.name === row.country);
- const color = country ? country.color : '#3875F6';
- return <el-tag effect="plain" round
- style={ { color: color, borderColor: color } }>{ row.country ? row.country : '--' }</el-tag>;
- }
- }
- },
- {
- field: 'brandName', title: '品牌名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.brandName ? row.brandName : '--' }</span>;
- }
- }
- },
- {
- field: 'currencyCode', title: '货币代码', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.currencyCode ? row.currencyCode : '--' }</span>;
- }
- }
- },
- {
- field: 'status', title: '状 态', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return (
- <el-tag
- class="font-medium"
- type={ row.status === 1 ? 'success' : 'danger' } // 动态绑定 type
- >
- { row.status === 1 ? '启用' : '暂停' }
- </el-tag>
- );
- }
- }
- },
- {
- field: 'platform', title: '平 台', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.platform ? row.platform : '--' }</span>;
- }
- }
- },
- {
- field: 'line', title: '线 路', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.line ? row.line : '--' }</span>;
- }
- }
- },
- {
- field: 'ipaddress', title: 'IP地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.ipaddress ? row.ipaddress : '--' }</span>;
- }
- }
- },
- {
- field: 'company', title: '公司名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.company ? row.company : '--' }</span>;
- }
- }
- },
- {
- field: 'companyEnglishName', title: '公司英文名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.companyEnglishName ? row.companyEnglishName : '--' }</span>;
- }
- }
- },
- {
- field: 'address', title: '公司地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.address ? row.address : '--' }</span>;
- }
- }
- },
- {
- field: 'juridicalPerson', title: '法人', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.juridicalPerson ? row.juridicalPerson : '--' }</span>;
- }
- }
- },
- {
- field: 'juridicalPersonCreditCard', title: '法人信用卡', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span
- class={ 'font-medium' }>{ row.juridicalPersonCreditCard ? row.juridicalPersonCreditCard : '--' }</span>;
- }
- }
- },
- {
- field: 'juridicalPersonCreditCardAddress', title: '法人信用卡地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span
- class={ 'font-medium' }>{ row.juridicalPersonCreditCardAddress ? row.juridicalPersonCreditCardAddress : '--' }</span>;
- }
- }
- },
- {
- field: 'receivablesAccount', title: '收款账户', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.receivablesAccount ? row.receivablesAccount : '--' }</span>;
- }
- }
- },
- {
- field: 'receivablesAccountCompany', title: '收款账户公司', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span
- class={ 'font-medium' }>{ row.receivablesAccountCompany ? row.receivablesAccountCompany : '--' }</span>;
- }
- }
- },
- {
- field: 'vatNumber', title: 'VAT税号', minWidth: 200, align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.vatNumber ? row.vatNumber : '--' }</span>;
- }
- }
- },
- {
- field: 'vatCompany', title: 'VAT公司', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.vatCompany ? row.vatCompany : '--' }</span>;
- }
- }
- },
- {
- field: 'shopPhoneEmail', title: '店铺电话与邮箱', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.shopPhoneEmail ? row.shopPhoneEmail : '--' }</span>;
- }
- }
- }
- ];
- export const shopCurrentColumns = [
- { type: 'seq', title: '序 号', width: 60, align: 'center', fixed: 'left' },
- {
- field: 'operatorName', title: '运 营', minWidth: 'auto', align: 'center', fixed: 'left',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.operatorName ? row.operatorName : '--' }</span>;
- }
- }
- },
- {
- field: 'platformNumber', title: '店铺编号', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.platformNumber ? row.platformNumber : '--' }</span>;
- }
- }
- },
- {
- field: 'platformName', title: '店铺名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.platformName ? row.platformName : '--' }</span>;
- }
- }
- },
- {
- field: 'country', title: '国 家', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- const country = countryInfoStore.countries.find(c => c.name === row.country);
- const color = country ? country.color : '#3875F6';
- return <el-tag effect="plain" round
- style={ { color: color, borderColor: color } }>{ row.country ? row.country : '--' }</el-tag>;
- }
- }
- },
- {
- field: 'brandName', title: '品牌名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.brandName ? row.brandName : '--' }</span>;
- }
- }
- },
- {
- field: 'currencyCode', title: '货币代码', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.currencyCode ? row.currencyCode : '--' }</span>;
- }
- }
- },
- {
- field: 'status', title: '状 态', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return (
- <el-tag
- class="font-medium"
- type={ row.status === 1 ? 'success' : 'danger' } // 动态绑定 type
- >
- { row.status === 1 ? '启用' : '暂停' }
- </el-tag>
- );
- }
- }
- },
- {
- field: 'platform', title: '平 台', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.platform ? row.platform : '--' }</span>;
- }
- }
- },
- {
- field: 'line', title: '线 路', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.line ? row.line : '--' }</span>;
- }
- }
- },
- {
- field: 'ipaddress', title: 'IP地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.ipaddress ? row.ipaddress : '--' }</span>;
- }
- }
- },
- {
- field: 'belongsCompany', title: '关联公司', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- const company = companySelect.value.find(c => c.id === row.belongsCompany);
- return <span class="font-medium">{ company ? company.company : '--' }</span>;
- }
- }
- },
- {
- field: 'company', title: '公司名称', width: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.company ? row.company : '--' }</span>;
- }
- }
- },
- {
- field: 'companyEnglishName', title: '公司英文名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.companyEnglishName ? row.companyEnglishName : '--' }</span>;
- }
- }
- },
- {
- field: 'address', title: '公司地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.address ? row.address : '--' }</span>;
- }
- }
- },
- {
- field: 'juridicalPerson', title: '法 人', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.juridicalPerson ? row.juridicalPerson : '--' }</span>;
- }
- }
- },
- {
- field: 'juridicalPersonCreditCard', title: '法人信用卡', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span
- class={ 'font-medium' }>{ row.juridicalPersonCreditCard ? row.juridicalPersonCreditCard : '--' }</span>;
- }
- }
- },
- {
- field: 'juridicalPersonCreditCardAddress', title: '法人信用卡地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span
- class={ 'font-medium' }>{ row.juridicalPersonCreditCardAddress ? row.juridicalPersonCreditCardAddress : '--' }</span>;
- }
- }
- },
- {
- field: 'receivablesAccount', title: '收款账户', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.receivablesAccount ? row.receivablesAccount : '--' }</span>;
- }
- }
- },
- {
- field: 'receivablesAccountCompany', title: '收款账户公司', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span
- class={ 'font-medium' }>{ row.receivablesAccountCompany ? row.receivablesAccountCompany : '--' }</span>;
- }
- }
- },
- {
- field: 'vatNumber', title: 'VAT税号', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.vatNumber ? row.vatNumber : '--' }</span>;
- }
- }
- },
- {
- field: 'vatCompany', title: 'VAT公司', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.vatCompany ? row.vatCompany : '--' }</span>;
- }
- }
- },
- {
- field: 'shopPhoneAndName', title: '主账户电话', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.shopPhoneAndName !== null ? row.shopPhoneAndName : '--' }</span>;
- }
- }
- },
- {
- field: 'shopEmail', title: '主账户邮箱', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.shopEmail ? row.shopEmail : '--' }</span>;
- }
- }
- },
- {
- field: 'subShopPhoneAndName', title: '子账户电话', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.subShopPhoneAndName ? row.subShopPhoneAndName : '--' }</span>;
- }
- }
- },
- {
- field: 'subShopEmail', title: '子账户邮箱', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.subShopEmail ? row.subShopEmail : '--' }</span>;
- }
- }
- }
- ];
- export const historyColumns: any = [
- { type: 'seq', title: '序 号', width: 60, align: 'center', fixed: 'left' },
- {
- field: 'operatorName', title: '运 营', minWidth: 'auto', align: 'center', fixed: 'left',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.operatorName ? row.operatorName : '--' }</span>;
- }
- }
- },
- {
- field: 'platformNumber', title: '店铺编号', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.platformNumber ? row.platformNumber : '--' }</span>;
- }
- }
- },
- {
- field: 'platformName', title: '店铺名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.platformName ? row.platformName : '--' }</span>;
- }
- }
- },
- {
- field: 'country', title: '国 家', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- const country = countryInfoStore.countries.find(c => c.name === row.country);
- const color = country ? country.color : '#3875F6';
- return <el-tag effect="plain" round
- style={ { color: color, borderColor: color } }>{ row.country ? row.country : '--' }</el-tag>;
- }
- }
- },
- {
- field: 'brandName', title: '品牌名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.brandName ? row.brandName : '--' }</span>;
- }
- }
- },
- {
- field: 'currencyCode', title: '货币代码', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.currencyCode ? row.currencyCode : '--' }</span>;
- }
- }
- },
- {
- field: 'status', title: '状 态', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return (
- <el-tag
- class="font-medium"
- type={ row.status === 1 ? 'success' : 'danger' } // 动态绑定 type
- >
- { row.status === 1 ? '启用' : '暂停' }
- </el-tag>
- );
- }
- }
- },
- {
- field: 'platform', title: '平 台', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.platform ? row.platform : '--' }</span>;
- }
- }
- },
- {
- field: 'line', title: '线 路', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.line ? row.line : '--' }</span>;
- }
- }
- },
- {
- field: 'ipaddress', title: 'IP地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.ipaddress ? row.ipaddress : '--' }</span>;
- }
- }
- },
- {
- field: 'company', title: '公司名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.company ? row.company : '--' }</span>;
- }
- }
- },
- {
- field: 'companyEnglishName', title: '公司英文名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.companyEnglishName ? row.companyEnglishName : '--' }</span>;
- }
- }
- },
- {
- field: 'address', title: '公司地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.address ? row.address : '--' }</span>;
- }
- }
- },
- {
- field: 'juridicalPerson', title: '法 人', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.juridicalPerson ? row.juridicalPerson : '--' }</span>;
- }
- }
- },
- {
- field: 'juridicalPersonCreditCard', title: '法人信用卡', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span
- class={ 'font-medium' }>{ row.juridicalPersonCreditCard ? row.juridicalPersonCreditCard : '--' }</span>;
- }
- }
- },
- {
- field: 'juridicalPersonCreditCardAddress', title: '法人信用卡地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span
- class={ 'font-medium' }>{ row.juridicalPersonCreditCardAddress ? row.juridicalPersonCreditCardAddress : '--' }</span>;
- }
- }
- },
- {
- field: 'receivablesAccount', title: '收款账户', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.receivablesAccount ? row.receivablesAccount : '--' }</span>;
- }
- }
- },
- {
- field: 'receivablesAccountCompany', title: '收款账户公司', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span
- class={ 'font-medium' }>{ row.receivablesAccountCompany ? row.receivablesAccountCompany : '--' }</span>;
- }
- }
- },
- {
- field: 'vatNumber', title: 'VAT税号', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.vatNumber ? row.vatNumber : '--' }</span>;
- }
- }
- },
- {
- field: 'vatCompany', title: 'VAT公司', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.vatCompany ? row.vatCompany : '--' }</span>;
- }
- }
- },
- {
- field: 'create_datetime', title: '创建时间', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.create_datetime ? row.create_datetime : '--' }</span>;
- }
- }
- },
- {
- field: 'approveNum', title: '审批单号', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.approveNum ? row.approveNum : '--' }</span>;
- }
- }
- },
- {
- field: 'shopPhoneAndName', title: '主账户电话', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.shopPhoneAndName !== null ? row.shopPhoneAndName : '--' }</span>;
- }
- }
- },
- {
- field: 'shopEmail', title: '主账户邮箱', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.shopEmail ? row.shopEmail : '--' }</span>;
- }
- }
- },
- {
- field: 'subShopPhoneAndName', title: '子账户电话', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.subShopPhoneAndName ? row.subShopPhoneAndName : '--' }</span>;
- }
- }
- },
- {
- field: 'subShopEmail', title: '子账户邮箱', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.subShopEmail ? row.subShopEmail : '--' }</span>;
- }
- }
- }
- ];
- export const computerColumns: any = [
- { type: 'seq', title: '序 号', width: 60, align: 'center', fixed: 'left' },
- {
- field: 'operatorName', title: '使用人', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.operatorName ? row.operatorName : '--' }</span>;
- }
- }
- },
- {
- field: 'computerNumber', title: '电脑编号', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.computerNumber ? row.computerNumber : '--' }</span>;
- }
- }
- },
- {
- field: 'computerType', title: '计算机类型', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.computerType ? row.computerType : '--' }</span>;
- }
- }
- },
- {
- field: 'station', title: '位 置', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.station ? row.station : '--' }</span>;
- }
- }
- },
- {
- field: 'ipaddress', title: 'IP地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.ipaddress ? row.ipaddress : '--' }</span>;
- }
- }
- },
- {
- field: 'macaddress', title: 'MAC地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.macaddress ? row.macaddress : '--' }</span>;
- }
- }
- }
- ];
- export const shopInfoColumns = [
- { type: 'seq', title: '序 号', width: 65, align: 'center', fixed: 'left' },
- {
- field: 'operatorName', title: '运 营', minWidth: 'auto', align: 'center', fixed: 'left',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.operatorName ? row.operatorName : '--' }</span>;
- }
- }
- },
- {
- field: 'platformNumber', title: '店铺编号', minWidth: 'auto', align: 'center',
- slots: { default: 'platformNumber' }
- },
- {
- field: 'platformName', title: '店铺名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.platformName ? row.platformName : '--' }</span>;
- }
- }
- },
- {
- field: 'countComputer', title: '电脑数量', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.countComputer ? row.countComputer : '--' }</span>;
- }
- }
- },
- {
- field: 'country', title: '国 家', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- const country = countryInfoStore.countries.find(c => c.name === row.country);
- const color = country ? country.color : '#3875F6';
- return <el-tag effect="plain" round
- style={ { color: color, borderColor: color } }>{ row.country ? row.country : '--' }</el-tag>;
- }
- }
- },
- {
- field: 'brandName', title: '品牌名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.brandName ? row.brandName : '--' }</span>;
- }
- }
- },
- {
- field: 'currencyCode', title: '货币代码', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.currencyCode ? row.currencyCode : '--' }</span>;
- }
- }
- },
- {
- field: 'status', title: '状 态', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return (
- <el-tag
- class="font-medium"
- type={ row.status === 1 ? 'success' : 'danger' } // 动态绑定 type
- >
- { row.status === 1 ? '启用' : '暂停' }
- </el-tag>
- );
- }
- }
- },
- {
- field: 'platform', title: '平 台', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.platform ? row.platform : '--' }</span>;
- }
- }
- },
- {
- field: 'line', title: '线 路', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.line ? row.line : '--' }</span>;
- }
- }
- },
- {
- field: 'ipaddress', title: 'IP地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.ipaddress ? row.ipaddress : '--' }</span>;
- }
- }
- },
- {
- field: 'belongsCompany', title: '关联公司', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- const company = companySelect.value.find(c => c.id === row.belongsCompany);
- return <span class="font-medium">{ company ? company.company : '--' }</span>;
- }
- }
- },
- {
- field: 'company', title: '公司名称', width: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.company ? row.company : '--' }</span>;
- }
- }
- },
- {
- field: 'companyEnglishName', title: '公司英文名称', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.companyEnglishName ? row.companyEnglishName : '--' }</span>;
- }
- }
- },
- {
- field: 'address', title: '公司地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.address ? row.address : '--' }</span>;
- }
- }
- },
- {
- field: 'juridicalPerson', title: '法 人', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.juridicalPerson ? row.juridicalPerson : '--' }</span>;
- }
- }
- },
- {
- field: 'juridicalPersonCreditCard', title: '法人信用卡', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span
- class={ 'font-medium' }>{ row.juridicalPersonCreditCard ? row.juridicalPersonCreditCard : '--' }</span>;
- }
- }
- },
- {
- field: 'juridicalPersonCreditCardAddress', title: '法人信用卡地址', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span
- class={ 'font-medium' }>{ row.juridicalPersonCreditCardAddress ? row.juridicalPersonCreditCardAddress : '--' }</span>;
- }
- }
- },
- {
- field: 'receivablesAccount', title: '收款账户', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.receivablesAccount ? row.receivablesAccount : '--' }</span>;
- }
- }
- },
- {
- field: 'receivablesAccountCompany', title: '收款账户公司', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span
- class={ 'font-medium' }>{ row.receivablesAccountCompany ? row.receivablesAccountCompany : '--' }</span>;
- }
- }
- },
- {
- field: 'vatNumber', title: 'VAT税号', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.vatNumber ? row.vatNumber : '--' }</span>;
- }
- }
- },
- {
- field: 'vatCompany', title: 'VAT公司', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.vatCompany ? row.vatCompany : '--' }</span>;
- }
- }
- },
- {
- field: 'shopPhoneAndName', title: '主账户电话', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.shopPhoneAndName !== null ? row.shopPhoneAndName : '--' }</span>;
- }
- }
- },
- {
- field: 'shopEmail', title: '主账户邮箱', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.shopEmail ? row.shopEmail : '--' }</span>;
- }
- }
- },
- {
- field: 'subShopPhoneAndName', title: '子账户电话', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.subShopPhoneAndName ? row.subShopPhoneAndName : '--' }</span>;
- }
- }
- },
- {
- field: 'subShopEmail', title: '子账户邮箱', minWidth: 'auto', align: 'center',
- slots: {
- default({ row }: any) {
- return <span class={ 'font-medium' }>{ row.subShopEmail ? row.subShopEmail : '--' }</span>;
- }
- }
- }
- ]
|