|
@@ -193,7 +193,14 @@
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ getDictLabel(scope.row.status, "registration_collection_status") }}
|
|
|
+ <el-tag
|
|
|
+ v-if="scope.row.statusStyle"
|
|
|
+ :type="scope.row.statusStyle.raw.listClass"
|
|
|
+ >{{ scope.row.statusStyle.label }}</el-tag
|
|
|
+ >
|
|
|
+ <span v-else>{{
|
|
|
+ getDictLabel(scope.row.status, "registration_collection_status")
|
|
|
+ }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -209,6 +216,7 @@
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item
|
|
|
><el-button
|
|
|
+ v-show="scope.row.status == 1 || scope.row.status == 3"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
@@ -219,6 +227,7 @@
|
|
|
>
|
|
|
<el-dropdown-item
|
|
|
><el-button
|
|
|
+ v-show="scope.row.status == 1 || scope.row.status == 3"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-circle-check"
|
|
@@ -229,6 +238,11 @@
|
|
|
>
|
|
|
<el-dropdown-item
|
|
|
><el-button
|
|
|
+ v-show="
|
|
|
+ scope.row.status == 1 ||
|
|
|
+ scope.row.status == 3 ||
|
|
|
+ !scope.row.status
|
|
|
+ "
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
@@ -718,7 +732,13 @@ export default {
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
listSaleRegistrationCollection(this.queryParams).then((response) => {
|
|
|
- this.SaleRegistrationCollectionList = response.rows;
|
|
|
+ this.SaleRegistrationCollectionList = response.rows.map((item) => {
|
|
|
+ item.statusStyle =
|
|
|
+ this.dict.type.registration_collection_status?.find(
|
|
|
+ (item1) => item1.value == item.status
|
|
|
+ );
|
|
|
+ return item;
|
|
|
+ });
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
});
|