|
@@ -46,6 +46,7 @@
|
|
|
>
|
|
>
|
|
|
<el-table-column prop="id" label="ID" width="80" />
|
|
<el-table-column prop="id" label="ID" width="80" />
|
|
|
<el-table-column prop="order_no" label="订单编号" min-width="180" />
|
|
<el-table-column prop="order_no" label="订单编号" min-width="180" />
|
|
|
|
|
+ <el-table-column prop="effective_time" label="生效时间" width="180" />
|
|
|
<el-table-column prop="action_text" label="申请类型" width="100" />
|
|
<el-table-column prop="action_text" label="申请类型" width="100" />
|
|
|
<el-table-column prop="receiver_name" label="接收方名称" min-width="120" />
|
|
<el-table-column prop="receiver_name" label="接收方名称" min-width="120" />
|
|
|
<el-table-column prop="receiver_no" label="接收方编号" min-width="150" />
|
|
<el-table-column prop="receiver_no" label="接收方编号" min-width="150" />
|
|
@@ -97,12 +98,16 @@
|
|
|
<el-form-item label="订单编号:">
|
|
<el-form-item label="订单编号:">
|
|
|
<span>{{ detailData.order_no }}</span>
|
|
<span>{{ detailData.order_no }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="生效时间:">
|
|
|
|
|
+ <span>{{ detailData.effective_time }}</span>
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="分账接收方名称:">
|
|
<el-form-item label="分账接收方名称:">
|
|
|
<span>{{ detailData.receiver_name }}</span>
|
|
<span>{{ detailData.receiver_name }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="接收方编号:">
|
|
<el-form-item label="接收方编号:">
|
|
|
<span>{{ detailData.receiver_no }}</span>
|
|
<span>{{ detailData.receiver_no }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+
|
|
|
<el-form-item label="联系手机号:">
|
|
<el-form-item label="联系手机号:">
|
|
|
<span>{{ detailData.contact_mobile }}</span>
|
|
<span>{{ detailData.contact_mobile }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -152,7 +157,7 @@
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
<span class="dialog-footer">
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-if="detailData.status === 1 && detailData.action === 'ADD'"
|
|
|
|
|
|
|
+ v-if="detailData.status === 1 && detailData.action === 'add'"
|
|
|
type="success"
|
|
type="success"
|
|
|
@click="handleCreateApplication"
|
|
@click="handleCreateApplication"
|
|
|
:loading="applyLoading"
|
|
:loading="applyLoading"
|
|
@@ -160,7 +165,15 @@
|
|
|
分账接收方创建申请
|
|
分账接收方创建申请
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-if="detailData.status === 3 && detailData.action === 'ADD'"
|
|
|
|
|
|
|
+ v-if="detailData.status === 1 && detailData.action === 'update'"
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ @click="handleUpdateApplication"
|
|
|
|
|
+ :loading="applyLoading"
|
|
|
|
|
+ >
|
|
|
|
|
+ 分账接收方信息变更
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-if="detailData.status === 3 && detailData.action === 'add'"
|
|
|
type="success"
|
|
type="success"
|
|
|
@click="handleBindApplication"
|
|
@click="handleBindApplication"
|
|
|
:loading="applyLoading"
|
|
:loading="applyLoading"
|
|
@@ -385,6 +398,32 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ // 分账接收方信息变更申请
|
|
|
|
|
+ async handleUpdateApplication() {
|
|
|
|
|
+ if (!this.axiosInstance) {
|
|
|
|
|
+ this.$message.error('无法获取请求实例')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.applyLoading = true
|
|
|
|
|
+ try {
|
|
|
|
|
+ const res = await this.axiosInstance.put(`/lakala/profit_share_receiver/${this.detailData.id}/modify`)
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ this.$message.success('分账接收方信息变更申请已提交')
|
|
|
|
|
+ this.handleCloseDetailDialog()
|
|
|
|
|
+ // 重新加载列表数据以更新状态
|
|
|
|
|
+ await this.fetchData()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.msg || res.message || '申请提交失败')
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ console.error('分账接收方信息变更申请失败:', error)
|
|
|
|
|
+ this.$message.error('申请提交失败: ' + (error.message || '未知错误'))
|
|
|
|
|
+ } finally {
|
|
|
|
|
+ this.applyLoading = false
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
// 分页相关
|
|
// 分页相关
|
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
|
this.pagination.limit = val
|
|
this.pagination.limit = val
|