|
@@ -50,31 +50,31 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="tjm_card_table">
|
|
<div class="tjm_card_table">
|
|
|
- <el-table v-loading="loading" row-key="id" header-cell-class-name="tjm_card_table_header" height="450" :data="tableData" border>
|
|
|
|
|
|
|
+ <el-table v-loading="loading" row-key="id" header-cell-class-name="tjm_card_table_header" height="400" :data="tableData" border>
|
|
|
<el-table-column type="index" width="50"></el-table-column>
|
|
<el-table-column type="index" width="50"></el-table-column>
|
|
|
<el-table-column label="政策编号" prop="businessNo" width="180"></el-table-column>
|
|
<el-table-column label="政策编号" prop="businessNo" width="180"></el-table-column>
|
|
|
- <el-table-column label="状态" width="180">
|
|
|
|
|
- <template #default="scope">{{ formatStatus(scope.row) }}</template>
|
|
|
|
|
|
|
+ <el-table-column label="状态" width="100">
|
|
|
|
|
+ <template #default="scope">{{ formatStatus(scope.row.status) }}</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="政策名称" prop="name" width="180"></el-table-column>
|
|
<el-table-column label="政策名称" prop="name" width="180"></el-table-column>
|
|
|
- <el-table-column label="政策等级" prop="zcLevel" width="180"></el-table-column>
|
|
|
|
|
- <el-table-column label="政策类别" prop="zcType" width="180"></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column label="政策等级" prop="zcLevel" width="100"></el-table-column>
|
|
|
|
|
+ <el-table-column label="政策类别" prop="zcType" width="100"></el-table-column>
|
|
|
<el-table-column label="政策文号" prop="docNo" width="180"></el-table-column>
|
|
<el-table-column label="政策文号" prop="docNo" width="180"></el-table-column>
|
|
|
<el-table-column label="填报人" prop="createName" width="180"></el-table-column>
|
|
<el-table-column label="填报人" prop="createName" width="180"></el-table-column>
|
|
|
<el-table-column label="填报单位" prop="companyName" width="180"></el-table-column>
|
|
<el-table-column label="填报单位" prop="companyName" width="180"></el-table-column>
|
|
|
<el-table-column label="填报时间" prop="createTime" width="180"></el-table-column>
|
|
<el-table-column label="填报时间" prop="createTime" width="180"></el-table-column>
|
|
|
<el-table-column label="联系方式" prop="contactPhone" width="180"></el-table-column>
|
|
<el-table-column label="联系方式" prop="contactPhone" width="180"></el-table-column>
|
|
|
- <el-table-column label="考核评分" prop="score" width="180"></el-table-column>
|
|
|
|
|
- <el-table-column label="是否入库" width="180">
|
|
|
|
|
|
|
+ <el-table-column label="考核评分" prop="score" width="100"></el-table-column>
|
|
|
|
|
+ <el-table-column label="是否入库" width="100">
|
|
|
<template #default="scope">{{ formatInWh(scope.row.isInWh) }}</template>
|
|
<template #default="scope">{{ formatInWh(scope.row.isInWh) }}</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="入库类别" prop="inWhType" width="180"></el-table-column>
|
|
|
|
|
- <el-table-column label="操作" fixed="right" width="260">
|
|
|
|
|
|
|
+ <el-table-column label="入库类别" prop="inWhType" width="100"></el-table-column>
|
|
|
|
|
+ <el-table-column label="操作" fixed="right" width="180">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<template v-if="scope.row.status == 'active' || scope.row.status == 'inactive'">
|
|
<template v-if="scope.row.status == 'active' || scope.row.status == 'inactive'">
|
|
|
- <el-button type="primary" icon="edit" link @click="table_edit(scope.row)">修改</el-button>
|
|
|
|
|
- <el-button type="primary" icon="edit" link @click="table_update(scope.row)">提交</el-button>
|
|
|
|
|
- <el-button type="primary" icon="delete" link @click="table_del(scope.row)">删除</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" link @click="table_edit(scope.row)">修改</el-button>
|
|
|
|
|
+ <el-button type="primary" link @click="table_update(scope.row)">提交</el-button>
|
|
|
|
|
+ <el-button type="primary" link @click="table_del(scope.row)">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<el-button v-if="scope.row.status == 'approve' || scope.row.status == 'done'" type="primary" link @click="table_edit(scope.row, 'detail')">详情</el-button>
|
|
<el-button v-if="scope.row.status == 'approve' || scope.row.status == 'done'" type="primary" link @click="table_edit(scope.row, 'detail')">详情</el-button>
|
|
|
<el-button v-if="scope.row.status == 'approve'" type="primary" link @click="table_update(scope.row, 'withdraw')">撤回</el-button>
|
|
<el-button v-if="scope.row.status == 'approve'" type="primary" link @click="table_update(scope.row, 'withdraw')">撤回</el-button>
|
|
@@ -87,7 +87,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
|
|
- <policy-detail v-if="dialog" ref="policyDetail" @success="reloadTable" @closed="dialog = false"></policy-detail>
|
|
|
|
|
|
|
+ <policy-detail v-if="dialog" ref="policyDetail" @success="reloadTable" @closed="closed"></policy-detail>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -124,9 +124,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
- formatStatus({ status, isInWh }) {
|
|
|
|
|
- if (status == "done" && isInWh == 1) return "审核入库"
|
|
|
|
|
- return statusDic[status] || "";
|
|
|
|
|
|
|
+ formatStatus(value) {
|
|
|
|
|
+ return statusDic[value] || "";
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
formatInWh (value) {
|
|
formatInWh (value) {
|
|
@@ -182,7 +181,7 @@ export default {
|
|
|
|
|
|
|
|
table_update(row, mode = "saveApprove") {
|
|
table_update(row, mode = "saveApprove") {
|
|
|
const msg = mode == "withdraw" && "撤回" || "提交";
|
|
const msg = mode == "withdraw" && "撤回" || "提交";
|
|
|
- ElMessageBox.confirm(`是否确认${msg}?`, `${msg}警告`, {
|
|
|
|
|
|
|
+ ElMessageBox.confirm(`是否确认${msg}?`, "提示", {
|
|
|
type: "warning",
|
|
type: "warning",
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消"
|
|
cancelButtonText: "取消"
|
|
@@ -194,10 +193,12 @@ export default {
|
|
|
} else ElMessage.error(res.msg);
|
|
} else ElMessage.error(res.msg);
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ closed(e) {
|
|
|
|
|
+ e && this.reloadTable();
|
|
|
|
|
+ this.dialog = false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-</script>
|
|
|
|
|
-
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
|
|
-</style>
|
|
|
|
|
|
|
+</script>
|