|
@@ -129,34 +129,29 @@ export default class Shop extends Vue {
|
|
|
},
|
|
|
columns:[{
|
|
|
title:'店铺名称',
|
|
|
- field:'shopName',
|
|
|
+ field:'posName',
|
|
|
isDetail:true,
|
|
|
width:150
|
|
|
+ },{
|
|
|
+ title:'店铺code',
|
|
|
+ field:'posCode',
|
|
|
+ width:150
|
|
|
},{
|
|
|
title:'店铺类型',
|
|
|
- field:'shortName',
|
|
|
+ field:'posType',
|
|
|
+ width:150
|
|
|
+ },{
|
|
|
+ title:'店铺平台类型',
|
|
|
+ field:'posPlatform',
|
|
|
width:150
|
|
|
},
|
|
|
- // {
|
|
|
- // title:'店铺分组',
|
|
|
- // field:'shopGroup',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'店铺网址',
|
|
|
- // field:'shopUrl',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'店铺站点',
|
|
|
- // field:'shopSite',
|
|
|
- // width:150
|
|
|
- // },
|
|
|
{
|
|
|
- title:'类型',
|
|
|
- field:'companyCode',
|
|
|
+ title:'店铺子平台类型',
|
|
|
+ field:'posPlatformType',
|
|
|
width:150
|
|
|
},{
|
|
|
- title:'平台名称',
|
|
|
- field:'channelName',
|
|
|
+ title:'店铺状态',
|
|
|
+ field:'posStatus',
|
|
|
width:150
|
|
|
},{
|
|
|
title:'子平台名称',
|
|
@@ -183,153 +178,6 @@ export default class Shop extends Vue {
|
|
|
field:'authExpired',
|
|
|
width:150
|
|
|
},
|
|
|
- //{
|
|
|
- // title:'授权修改时间',
|
|
|
- // field:'authModified',
|
|
|
- // width:150
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title:'店铺状态',
|
|
|
- // field:'shopStatus',
|
|
|
- // width:150
|
|
|
- // }
|
|
|
- // ,{
|
|
|
- // title:'退款状态',
|
|
|
- // field:'refundStatus',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'身份证',
|
|
|
- // field:'sendIdCard',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'联系电话',
|
|
|
- // field:'sendPhone',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'发货店址',
|
|
|
- // field:'sendAddress',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'发货时效',
|
|
|
- // field:'sendTimeEffect',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'退货手机号',
|
|
|
- // field:'returnPhone',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'退货人',
|
|
|
- // field:'returnName',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'退货地址',
|
|
|
- // field:'returnAdress',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'同步发货',
|
|
|
- // field:'enableSyncSend',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'揽收轨迹同步发货',
|
|
|
- // field:'enableTrackSyncSend',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'拆分订单整单发货',
|
|
|
- // field:'enableSplitOrderFullSend',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'同步库存',
|
|
|
- // field:'enableSynvStore',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'订单下载',
|
|
|
- // field:'enableSyncOrder',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'天猫物流升级',
|
|
|
- // field:'enableTmallLogistics',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'下载截止时间',
|
|
|
- // field:'endPullTime',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'最晚截单时间',
|
|
|
- // field:'endInterceptTime',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'最晚出库时间',
|
|
|
- // field:'endDeliveryTime',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'淘宝消息通知',
|
|
|
- // field:'enableTaobaoMessageNotice',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'商品下载',
|
|
|
- // field:'enableSkuDownload',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'开启链接库存同步',
|
|
|
- // field:'enableLinkSync',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'是否虾皮SIP',
|
|
|
- // field:'shopeeSip',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'支付宝授权状态',
|
|
|
- // field:'alipayAuthStatus',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'京东授权状态',
|
|
|
- // field:'jdAuthStatus',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'东账号拒绝申请原因',
|
|
|
- // field:'jdRejectReason',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'启用分销',
|
|
|
- // field:'enableDistribution',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'菜鸟(青龙)电子面单',
|
|
|
- // field:'enableCainiaoElectronicBill',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'售后单下载',
|
|
|
- // field:'enableSyncAfterSale',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'开通AG',
|
|
|
- // field:'enableAg',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'确认收货自动退款',
|
|
|
- // field:'enableAutoRefund',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'开启跨境操作',
|
|
|
- // field:'enableCbec',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'创建来源',
|
|
|
- // field:'createSource',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'标签',
|
|
|
- // field:'labels',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'服务市场订购版本',
|
|
|
- // field:'subscriptionVersion',
|
|
|
- // width:150
|
|
|
- // },{
|
|
|
- // title:'创建时间',
|
|
|
- // field:'createTime',
|
|
|
- // width:150
|
|
|
- // },
|
|
|
{
|
|
|
title:'操作',
|
|
|
action:true,
|
|
@@ -355,369 +203,255 @@ export default class Shop extends Vue {
|
|
|
form:{
|
|
|
attr:{
|
|
|
size:'small',
|
|
|
+ width:'1200px',
|
|
|
labelWidth:'130px',
|
|
|
rules:{
|
|
|
- shopName:[
|
|
|
+ posName:[
|
|
|
{ required: true, message: '请输入店铺名称', trigger: 'blur' }
|
|
|
],
|
|
|
- shopId:[
|
|
|
+ posCode:[
|
|
|
{ required: true, message: '请输入店铺编号', trigger: 'blur' }
|
|
|
],
|
|
|
- channelName:[
|
|
|
- {required: true, message: '请输入所属平台', trigger: 'blur'}
|
|
|
+ posPlatform:[
|
|
|
+ {required: true, message: '请选择店铺平台类型', trigger: 'change'}
|
|
|
+ ],
|
|
|
+ posPlatformType:[
|
|
|
+ { required: true, message: '请选择店铺子平台类型', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ posType:[
|
|
|
+ { required: true, message: '请选择店铺类型', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ posStatus:[
|
|
|
+ { required: true, message: '请选择店铺状态', trigger: 'change' }
|
|
|
],
|
|
|
- channel:[
|
|
|
- { required: true, message: '请输入平台类型', trigger: 'blur' }
|
|
|
+ name:[
|
|
|
+ { required: true, message: '请输入联系人姓名', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ mobile:[
|
|
|
+ { required: true, message: '请输入联系人手机', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ province:[
|
|
|
+ { required: true, message: '请选择地址', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ address:[
|
|
|
+ { required: true, message: '请输入详细地址', trigger: 'blur' }
|
|
|
],
|
|
|
- authStatus:[
|
|
|
- { required: true, message: '请选择授权状态', trigger: 'change' }
|
|
|
- ]
|
|
|
}
|
|
|
},
|
|
|
columns:[
|
|
|
[{
|
|
|
label:'店铺编号',
|
|
|
- prop:'shopId',
|
|
|
+ prop:'posCode',
|
|
|
component:'by-input',
|
|
|
},{
|
|
|
label:'店铺名称',
|
|
|
- prop:'shopName',
|
|
|
- component:'by-input',
|
|
|
- },{
|
|
|
- label:'店铺简称',
|
|
|
- prop:'shortName',
|
|
|
- component:'by-input',
|
|
|
- },{
|
|
|
- label:'店铺分组',
|
|
|
- prop:'shopGroup',
|
|
|
+ prop:'posName',
|
|
|
component:'by-input',
|
|
|
}],
|
|
|
[{
|
|
|
- label:'店铺网址',
|
|
|
- prop:'shopUrl',
|
|
|
- component:'by-input',
|
|
|
- },{
|
|
|
- label:'店铺站点',
|
|
|
- prop:'shopSite',
|
|
|
- component:'by-input',
|
|
|
- },{
|
|
|
- label:'公司编号',
|
|
|
- prop:'companyCode',
|
|
|
- component:'by-input',
|
|
|
+ label:'店铺平台类型',
|
|
|
+ prop:'posPlatform',
|
|
|
+ component:'by-select',
|
|
|
+ compConfig:{
|
|
|
+ attr:{
|
|
|
+ clearable:true,
|
|
|
+ data:[{
|
|
|
+ value:'TB',
|
|
|
+ label:'淘宝'
|
|
|
+ },{
|
|
|
+ value:'JD',
|
|
|
+ label:'京东'
|
|
|
+ },{
|
|
|
+ value:'PDD',
|
|
|
+ label:'拼多多'
|
|
|
+ },{
|
|
|
+ value:'WPH',
|
|
|
+ label:'唯品会'
|
|
|
+ },{
|
|
|
+ value:'YZ',
|
|
|
+ label:'有赞'
|
|
|
+ },{
|
|
|
+ value:'DY',
|
|
|
+ label:'抖音'
|
|
|
+ },{
|
|
|
+ value:'KS',
|
|
|
+ label:'快手'
|
|
|
+ },{
|
|
|
+ value:'SN',
|
|
|
+ label:'苏宁'
|
|
|
+ },{
|
|
|
+ value:'ALI',
|
|
|
+ label:'阿里巴巴'
|
|
|
+ },{
|
|
|
+ value:'GM',
|
|
|
+ label:'国美'
|
|
|
+ },{
|
|
|
+ value:'MEITUAN',
|
|
|
+ label:'美团'
|
|
|
+ },{
|
|
|
+ value:'XIAOMI',
|
|
|
+ label:'小米'
|
|
|
+ },{
|
|
|
+ value:'ELE',
|
|
|
+ label:'饿了么'
|
|
|
+ },{
|
|
|
+ value:'WM',
|
|
|
+ label:'微盟'
|
|
|
+ },{
|
|
|
+ value:'HW',
|
|
|
+ label:'华为'
|
|
|
+ },{
|
|
|
+ value:'XHS',
|
|
|
+ label:'小红书'
|
|
|
+ },{
|
|
|
+ value:'WD',
|
|
|
+ label:'微店'
|
|
|
+ },{
|
|
|
+ value:'WX',
|
|
|
+ label:'微信'
|
|
|
+ },{
|
|
|
+ value:'SELF',
|
|
|
+ label:'自有'
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ }
|
|
|
},{
|
|
|
- label:'所属平台',
|
|
|
- prop:'channelName',
|
|
|
- component:'by-input',
|
|
|
+ label:'店铺子平台类型',
|
|
|
+ prop:'posPlatformType',
|
|
|
+ component:'by-select',
|
|
|
+ compConfig:{
|
|
|
+ attr:{
|
|
|
+ clearable:true,
|
|
|
+ data:[{
|
|
|
+ value:'TB',
|
|
|
+ label:'淘宝'
|
|
|
+ },{
|
|
|
+ value:'TMALL',
|
|
|
+ label:'天猫'
|
|
|
+ },{
|
|
|
+ value:'JD',
|
|
|
+ label:'京东pop店'
|
|
|
+ },{
|
|
|
+ value:'PDD',
|
|
|
+ label:'拼多多三方店'
|
|
|
+ },{
|
|
|
+ value:'MP',
|
|
|
+ label:'唯品会MP'
|
|
|
+ },{
|
|
|
+ value:'YZ',
|
|
|
+ label:'有赞'
|
|
|
+ },{
|
|
|
+ value:'DY',
|
|
|
+ label:'抖音小店'
|
|
|
+ },{
|
|
|
+ value:'KS',
|
|
|
+ label:'快手小店'
|
|
|
+ },{
|
|
|
+ value:'DPS',
|
|
|
+ label:'京东厂送'
|
|
|
+ },{
|
|
|
+ value:'KTT',
|
|
|
+ label:'拼多多快团团'
|
|
|
+ },{
|
|
|
+ value:'SN',
|
|
|
+ label:'苏宁厂送'
|
|
|
+ },{
|
|
|
+ value:'YOUPIN',
|
|
|
+ label:'小米有品'
|
|
|
+ },{
|
|
|
+ value:'WM',
|
|
|
+ label:'微盟微商城'
|
|
|
+ },{
|
|
|
+ value:'WM_ZHLS',
|
|
|
+ label:'微盟-智慧零售'
|
|
|
+ },{
|
|
|
+ value:'HW_MALL',
|
|
|
+ label:'华为商城'
|
|
|
+ },{
|
|
|
+ value:'XHS',
|
|
|
+ label:'小红书'
|
|
|
+ },{
|
|
|
+ value:'WD',
|
|
|
+ label:'微店'
|
|
|
+ },{
|
|
|
+ value:'SELF',
|
|
|
+ label:'自有'
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ }
|
|
|
}],
|
|
|
[{
|
|
|
- label:'平台类型',
|
|
|
- prop:'channel',
|
|
|
- component:'by-input'
|
|
|
- },{
|
|
|
- label:'平台店铺名称',
|
|
|
- prop:'channelShopName',
|
|
|
- component:'by-input'
|
|
|
- },{
|
|
|
- label:'授权账号',
|
|
|
- prop:'authAccount',
|
|
|
- component:'by-input'
|
|
|
+ label:'店铺类型',
|
|
|
+ prop:'posType',
|
|
|
+ component:'by-select',
|
|
|
+ compConfig:{
|
|
|
+ attr:{
|
|
|
+ clearable:true,
|
|
|
+ data:[{
|
|
|
+ value:'ONLINE_SALE',
|
|
|
+ label:'线上网销零售'
|
|
|
+ },{
|
|
|
+ value:'ONLINE_DISTRIBUTION',
|
|
|
+ label:'线上分销'
|
|
|
+ },{
|
|
|
+ value:'OFFLINE_WHOLESALE',
|
|
|
+ label:'线下批发'
|
|
|
+ },{
|
|
|
+ value:'OFFLINE_SALE',
|
|
|
+ label:'线下门店零售'
|
|
|
+ },{
|
|
|
+ value:'ONLINE_WHOLESALE',
|
|
|
+ label:'线上批发'
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ }
|
|
|
},{
|
|
|
- label:'授权状态',
|
|
|
- prop:'authStatus',
|
|
|
+ label:'店铺状态',
|
|
|
+ prop:'posStatus',
|
|
|
component:'by-select',
|
|
|
compConfig:{
|
|
|
attr:{
|
|
|
clearable:true,
|
|
|
data:[{
|
|
|
- value:'Authorized',
|
|
|
- label:'已授权'
|
|
|
+ value:'VALID',
|
|
|
+ label:'有效'
|
|
|
},{
|
|
|
- value:'Unauthorized',
|
|
|
- label:'未授权'
|
|
|
+ value:'INVALID',
|
|
|
+ label:'禁用'
|
|
|
},{
|
|
|
- value:'Expired',
|
|
|
- label:'已过期'
|
|
|
+ value:'DELETED',
|
|
|
+ label:'删除'
|
|
|
}]
|
|
|
}
|
|
|
}
|
|
|
}],
|
|
|
- // [{
|
|
|
- // label:'APP KEY',
|
|
|
- // prop:'appKey',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // label:'APP SECRET',
|
|
|
- // prop:'appSecret',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // label:'ACCESSTOKEN',
|
|
|
- // prop:'accessToken',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // label:'REFRESHTOKEN',
|
|
|
- // prop:'refreshToken',
|
|
|
- // component:'by-input'
|
|
|
- // }],
|
|
|
- // [{
|
|
|
- // label:'会话用户编号',
|
|
|
- // prop:'sessionUid',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // label:'授权开始时间',
|
|
|
- // prop:'authBegin',
|
|
|
- // component:'by-date-picker'
|
|
|
- // },{
|
|
|
- // label:'授权过期时间',
|
|
|
- // prop:'authExpired',
|
|
|
- // component:'by-date-picker'
|
|
|
- // },{
|
|
|
- // label:'授权修改时间',
|
|
|
- // prop:'authModified',
|
|
|
- // component:'by-date-picker'
|
|
|
- // }],
|
|
|
- // [{
|
|
|
- // label:'京东授权状态',
|
|
|
- // prop:'jdAuthStatus',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // label:'京东拒绝申请原因',
|
|
|
- // prop:'jdRejectReason',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // label:'身份证号',
|
|
|
- // prop:'sendIdCard',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // label:'联系电话',
|
|
|
- // prop:'sendPhone',
|
|
|
- // component:'by-input'
|
|
|
- // }],
|
|
|
- // [{
|
|
|
- // label:'发货地址',
|
|
|
- // prop:'sendTimeEffect',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // label:'标签',
|
|
|
- // prop:'labels',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // span:12,
|
|
|
- // label:'发货地址',
|
|
|
- // prop:'sendAddress',
|
|
|
- // component:'by-input'
|
|
|
- // }],
|
|
|
- // [{
|
|
|
- // label:'服务市场订购版本',
|
|
|
- // prop:'subscriptionVersion',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // label:'退货手机',
|
|
|
- // prop:'returnPhone',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // label:'退货人',
|
|
|
- // prop:'returnName',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // label:'退货邮编',
|
|
|
- // prop:'returnZip',
|
|
|
- // component:'by-input'
|
|
|
- // }],
|
|
|
- // [{
|
|
|
- // label:'支付宝授权状态',
|
|
|
- // prop:'alipayAuthStatus',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // label:'菜鸟电子面单',
|
|
|
- // prop:'enableCainiaoElectronicBill',
|
|
|
- // component:'by-input'
|
|
|
- // },{
|
|
|
- // span:12,
|
|
|
- // label:'退货地址',
|
|
|
- // prop:'returnAdress',
|
|
|
- // component:'by-input'
|
|
|
- // }],
|
|
|
- // [{
|
|
|
- // label:'下载截止时间',
|
|
|
- // prop:'endPullTime',
|
|
|
- // component:'by-date-picker'
|
|
|
- // },{
|
|
|
- // label:'最晚截单时间',
|
|
|
- // prop:'endInterceptTime',
|
|
|
- // component:'by-date-picker'
|
|
|
- // },{
|
|
|
- // label:'最晚出库时间',
|
|
|
- // prop:'endDeliveryTime',
|
|
|
- // component:'by-date-picker'
|
|
|
- // },{
|
|
|
- // label:'淘宝消息通知',
|
|
|
- // prop:'enableTaobaoMessageNotice',
|
|
|
- // component:'by-input'
|
|
|
- // }],
|
|
|
- // [{
|
|
|
- // label:'拆分订单整单发货',
|
|
|
- // prop:'enableSplitOrderFullSend',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },{
|
|
|
- // label:'同步库存',
|
|
|
- // prop:'enableSynvStore',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },{
|
|
|
- // label:'订单下载',
|
|
|
- // prop:'enableSyncOrder',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },{
|
|
|
- // label:'天猫物流升级',
|
|
|
- // prop:'enableTmallLogistics',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }],
|
|
|
- // [{
|
|
|
- // label:'商品下载',
|
|
|
- // prop:'enableSkuDownload',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },{
|
|
|
- // label:'开启链接库存同步',
|
|
|
- // prop:'enableLinkSync',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },{
|
|
|
- // label:'是否虾皮SIP',
|
|
|
- // prop:'shopeeSip',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },{
|
|
|
- // label:'同步发货',
|
|
|
- // prop:'enableSyncSend',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }],
|
|
|
- // [{
|
|
|
- // label:'店铺状态',
|
|
|
- // prop:'shopStatus',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },{
|
|
|
- // label:'退款状态',
|
|
|
- // prop:'refundStatus',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:'1',
|
|
|
- // inactiveValue:'0'
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },{
|
|
|
- // label:'启用分销',
|
|
|
- // prop:'enableDistribution',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },{
|
|
|
- // label:'揽收轨迹同步发货',
|
|
|
- // prop:'enableTrackSyncSend',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }],
|
|
|
- // [{
|
|
|
- // label:'售后单下载',
|
|
|
- // prop:'enableSyncAfterSale',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },{
|
|
|
- // label:'开通AG',
|
|
|
- // prop:'enableAg',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },{
|
|
|
- // label:'确认收货自动退款',
|
|
|
- // prop:'enableAutoRefund',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },{
|
|
|
- // label:'开启跨境操作',
|
|
|
- // prop:'enableCbec',
|
|
|
- // component:'by-switch',
|
|
|
- // compConfig:{
|
|
|
- // attr:{
|
|
|
- // activeValue:1,
|
|
|
- // inactiveValue:0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }]
|
|
|
+ [{
|
|
|
+ label:'联系人姓名',
|
|
|
+ prop:'name',
|
|
|
+ component:'by-input',
|
|
|
+ },{
|
|
|
+ label:'联系人手机',
|
|
|
+ prop:'mobile',
|
|
|
+ component:'by-input',
|
|
|
+ }],
|
|
|
+ [{
|
|
|
+ label:'地址',
|
|
|
+ prop:'province',
|
|
|
+ component:'by-area',
|
|
|
+ compConfig:{
|
|
|
+ attr:{
|
|
|
+ province:'province', //省
|
|
|
+ city:'city', //市
|
|
|
+ county:'district', //县/区
|
|
|
+ show:'county'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }],
|
|
|
+ [{
|
|
|
+ label:'详细地址',
|
|
|
+ prop:'address',
|
|
|
+ component:'by-input'
|
|
|
+ }]
|
|
|
]
|
|
|
}
|
|
|
}
|
|
@@ -795,7 +529,8 @@ export default class Shop extends Vue {
|
|
|
}
|
|
|
//修改店铺数据
|
|
|
onSave(){
|
|
|
- let data = (this.$refs.view as any).getFormValue();
|
|
|
+ let data:any = (this.$refs.view as any).getFormValue();
|
|
|
+
|
|
|
this.load = true;
|
|
|
update(data).then((res:any) => {
|
|
|
this.$message({
|
|
@@ -830,6 +565,22 @@ export default class Shop extends Vue {
|
|
|
//添加店铺
|
|
|
addShop(){
|
|
|
let value = (this.$refs.view as any).getFormValue();
|
|
|
+ value.contact={
|
|
|
+ name:value.name,
|
|
|
+ mobile:value.mobile,
|
|
|
+ phone:value.phone,
|
|
|
+ province:value.province,
|
|
|
+ city:value.city,
|
|
|
+ district:value.district,
|
|
|
+ address:value.address
|
|
|
+ }
|
|
|
+ delete value.name;
|
|
|
+ delete value.mobile;
|
|
|
+ delete value.phone;
|
|
|
+ delete value.province;
|
|
|
+ delete value.city;
|
|
|
+ delete value.district;
|
|
|
+ delete value.address;
|
|
|
if(value){
|
|
|
this.load = true;
|
|
|
save(value).then((res:any)=>{
|