|
|
|
@ -195,7 +195,7 @@ |
|
|
|
|
|
|
|
|
|
type="text" |
|
|
|
|
size="small" |
|
|
|
|
@click="handleTimes(scope.row.mer_id)" |
|
|
|
|
@click="getMerchantDetails(scope.row.mer_id)" |
|
|
|
|
>详情</el-button> |
|
|
|
|
<!-- <el-button |
|
|
|
|
v-if="tableFrom.status === '1'" |
|
|
|
@ -218,17 +218,17 @@ |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
<el-dialog title="商户详情" :visible.sync="dialogVisible" width="80%"> |
|
|
|
|
<el-dialog title="商户详情" :visible.sync="dialogVisible" width="30%"> |
|
|
|
|
<el-tabs v-model="activeName"> |
|
|
|
|
<el-tab-pane label="基本信息" name="first"> |
|
|
|
|
<el-descriptions class="margin-top" :column="12" direction="vertical"> |
|
|
|
|
<el-descriptions-item label="商户名称">kooriookami</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户负责人手机号">18100000000</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户分类">苏州市</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户类别">苏州市</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户负责人姓名">苏州市</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户入驻时间">苏州市</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="是否开启商户"> |
|
|
|
|
<el-descriptions class="margin-top" :column="1"> |
|
|
|
|
<el-descriptions-item label="商户名称">{{merchantInfo.mer_name}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户负责人手机号">{{merchantInfo.mer_phone}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户分类">{{getLabel(merchantInfo.category_id,'fenlei')}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户类别">{{merchantInfo.type_id==1?'自营':'非自营'}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户负责人姓名">{{merchantInfo.real_name}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户入驻时间">{{merchantInfo.create_time}}</el-descriptions-item> |
|
|
|
|
<!-- <el-descriptions-item label="是否开启商户"> |
|
|
|
|
<div> |
|
|
|
|
<el-switch |
|
|
|
|
v-model="isUse" |
|
|
|
@ -237,17 +237,28 @@ |
|
|
|
|
</el-switch> |
|
|
|
|
<span>开启,店铺即可展示在移动端</span> |
|
|
|
|
</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
</el-descriptions-item> --> |
|
|
|
|
|
|
|
|
|
</el-descriptions> |
|
|
|
|
<!-- <el-button type="primary">提交</el-button> --> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
<el-tab-pane label="商家账户信息" name="second"> |
|
|
|
|
<el-descriptions class="margin-top" :column="1"> |
|
|
|
|
<el-descriptions-item label="商户总收入">{{assetsMerchant.total}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户当前余额">{{assetsMerchant.mer_money}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户当前冻结金额">{{assetsMerchant.frozen_money}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户当前冻结福利积分">{{assetsMerchant.welfare_frozen}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户当前可提现总金额">{{assetsMerchant.available_money}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户可提现福利积分部分">{{assetsMerchant.welfare}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="商户退款支出">{{assetsMerchant.refund_money}}</el-descriptions-item> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-descriptions> |
|
|
|
|
<el-button type="primary">提交</el-button> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
<el-tab-pane label="商家账户信息" name="second">配置管理</el-tab-pane> |
|
|
|
|
|
|
|
|
|
</el-tabs> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
|
<el-button type="primary" @click="dialogVisible = false">确 定</el-button> |
|
|
|
|
<el-button type="primary" @click="dialogVisible = false">关闭</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
</div> |
|
|
|
@ -274,7 +285,7 @@ import { |
|
|
|
|
merchantCountApi, |
|
|
|
|
merchantIsCloseApi, |
|
|
|
|
getstoreTypeApi, |
|
|
|
|
getMerCateApi, marginDeductionForm |
|
|
|
|
getMerCateApi, marginDeductionForm,getAssetMerchant |
|
|
|
|
} from "@/api/merchant"; |
|
|
|
|
|
|
|
|
|
import { fromList } from "@/libs/constants.js"; |
|
|
|
@ -322,6 +333,23 @@ export default { |
|
|
|
|
dialogVisible:false, |
|
|
|
|
activeName:'first', |
|
|
|
|
isUse:true, |
|
|
|
|
assetsMerchant:{ |
|
|
|
|
"total":0, // 总收入 |
|
|
|
|
"mer_money":0,// 当前余额 |
|
|
|
|
"frozen_money":0,// 冻结余额 |
|
|
|
|
"refund_money":0,// 退款金额 |
|
|
|
|
"available_money":0,// 当前可提现金额 |
|
|
|
|
"welfare":0, // 福利积分 |
|
|
|
|
"welfare_frozen":0// 冻结福利积分 |
|
|
|
|
}, |
|
|
|
|
merchantInfo:{ |
|
|
|
|
mer_name:'', |
|
|
|
|
mer_phone:'', |
|
|
|
|
category_id:null, |
|
|
|
|
type_id:null, |
|
|
|
|
real_name:null, |
|
|
|
|
create_time:'', |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
@ -331,6 +359,35 @@ export default { |
|
|
|
|
this.getList(""); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getLabel(val,name){ |
|
|
|
|
if(name=='fenlei'){ |
|
|
|
|
let arr = this.merCateList.filter(item=>{ |
|
|
|
|
return val==item.value |
|
|
|
|
}) |
|
|
|
|
if(arr.length>0){ |
|
|
|
|
return arr[0].label |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
getMerchantDetails(id){ |
|
|
|
|
console.log(id) |
|
|
|
|
getAssetMerchant({id:id}).then(res => { |
|
|
|
|
|
|
|
|
|
Object.keys(res.data.assets).forEach(item=>{ |
|
|
|
|
this.assetsMerchant[item] = res.data.assets[item] |
|
|
|
|
}) |
|
|
|
|
Object.keys(this.merchantInfo).forEach(i=>{ |
|
|
|
|
this.merchantInfo[i] = res.data[i] |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.dialogVisible = true; |
|
|
|
|
}) |
|
|
|
|
.catch(res => { |
|
|
|
|
this.$message.error(res.message); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
onLogo(id) { |
|
|
|
|
merchantLoginApi(id) |
|
|
|
|
.then(res => { |
|
|
|
|