|
@@ -33,7 +33,12 @@
|
|
<el-tag>{{ scope.row.settlementRatio * 100 }}%</el-tag>
|
|
<el-tag>{{ scope.row.settlementRatio * 100 }}%</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="createTime" label="报名时间" align="center" />
|
|
|
|
|
|
+ <el-table-column width="150" prop="createTime" label="报名时间" align="center" />
|
|
|
|
+ <el-table-column align="center" label="操作" width="130" fixed="right" class-name="small-padding fixed-width">
|
|
|
|
+ <template slot-scope="{ row }">
|
|
|
|
+ <el-button type="info" size="mini" @click="$refs.editProportionRrf && $refs.editProportionRrf.handleOpen(row)">修改结算比例</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
<div style="margin-top: 10px">
|
|
<div style="margin-top: 10px">
|
|
@@ -47,13 +52,17 @@
|
|
@current-change="(val) => (listQuery.page = val) && getList()"
|
|
@current-change="(val) => (listQuery.page = val) && getList()"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <EditProportion @update="handleRefreshBussnessInfo" ref="editProportionRrf"></EditProportion>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { getRegistrationShopsByIdApi } from '@/api/business'
|
|
import { getRegistrationShopsByIdApi } from '@/api/business'
|
|
|
|
+import EditProportion from './EditProportion.vue'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
+ components: { EditProportion },
|
|
props: {
|
|
props: {
|
|
cardId: { type: [Number, String], required: true }
|
|
cardId: { type: [Number, String], required: true }
|
|
},
|
|
},
|
|
@@ -66,7 +75,7 @@ export default {
|
|
listQuery: {
|
|
listQuery: {
|
|
allianceCardId: undefined,
|
|
allianceCardId: undefined,
|
|
page: 1,
|
|
page: 1,
|
|
- pageSize: 20,
|
|
|
|
|
|
+ pageSize: 20
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -98,12 +107,14 @@ export default {
|
|
handleSearch() {
|
|
handleSearch() {
|
|
this.listQuery.page = 1
|
|
this.listQuery.page = 1
|
|
this.getList()
|
|
this.getList()
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ handleRefreshBussnessInfo({ shopParticipationRecordId, settlementRatio }) {
|
|
|
|
+ const current = this.list.find((item) => item.id * 1 === shopParticipationRecordId * 1)
|
|
|
|
+ if (current) {
|
|
|
|
+ current.settlementRatio = settlementRatio
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
-
|
|
|
|
-<style lang="scss" scoped>
|
|
|
|
-.join-shop-list-container {
|
|
|
|
-}
|
|
|
|
-</style>
|
|
|