|
@@ -127,13 +127,7 @@
|
|
|
<div class="reject-reason-item">
|
|
<div class="reject-reason-item">
|
|
|
<div class="reject-reason-label">拒绝原因:</div>
|
|
<div class="reject-reason-label">拒绝原因:</div>
|
|
|
<div class="reject-reason-value reject-reason-text">
|
|
<div class="reject-reason-value reject-reason-text">
|
|
|
- {{
|
|
|
|
|
- rejectReasonData.rejectReason ||
|
|
|
|
|
- rejectReasonData.rejectionReason ||
|
|
|
|
|
- rejectReasonData.refuseReason ||
|
|
|
|
|
- rejectReasonData.auditReason ||
|
|
|
|
|
- "暂无拒绝原因"
|
|
|
|
|
- }}
|
|
|
|
|
|
|
+ {{ rejectReasonData.approvalComments || "暂无拒绝原因" }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -154,7 +148,8 @@ import { ElMessage } from "element-plus";
|
|
|
import ProTable from "@/components/ProTable/index.vue";
|
|
import ProTable from "@/components/ProTable/index.vue";
|
|
|
import { ColumnProps, ProTableInstance } from "@/components/ProTable/interface";
|
|
import { ColumnProps, ProTableInstance } from "@/components/ProTable/interface";
|
|
|
import { Plus } from "@element-plus/icons-vue";
|
|
import { Plus } from "@element-plus/icons-vue";
|
|
|
-import { deleteThali, getThaliList, sjxj, updateNum } from "@/api/modules/groupPackageManagement";
|
|
|
|
|
|
|
+import { delThaliById, getThaliList, sjxj, updateNum } from "@/api/modules/groupPackageManagement";
|
|
|
|
|
+import { localGet } from "@/utils";
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
const dialogFormVisible = ref(false);
|
|
const dialogFormVisible = ref(false);
|
|
@@ -171,10 +166,7 @@ const rejectReasonDialogVisible = ref(false);
|
|
|
const rejectReasonData = ref<any>({
|
|
const rejectReasonData = ref<any>({
|
|
|
groupName: "",
|
|
groupName: "",
|
|
|
groupNo: "",
|
|
groupNo: "",
|
|
|
- rejectReason: "",
|
|
|
|
|
- rejectionReason: "",
|
|
|
|
|
- refuseReason: "",
|
|
|
|
|
- auditReason: ""
|
|
|
|
|
|
|
+ approvalComments: ""
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// 定义表单类型
|
|
// 定义表单类型
|
|
@@ -367,11 +359,10 @@ watch(
|
|
|
);
|
|
);
|
|
|
// 如果表格需要初始化请求参数,直接定义传给 ProTable (之后每次请求都会自动带上该参数,此参数更改之后也会一直带上,改变此参数会自动刷新表格数据)
|
|
// 如果表格需要初始化请求参数,直接定义传给 ProTable (之后每次请求都会自动带上该参数,此参数更改之后也会一直带上,改变此参数会自动刷新表格数据)
|
|
|
const initParam = reactive({
|
|
const initParam = reactive({
|
|
|
- storeId: "104",
|
|
|
|
|
- groupType: "1",
|
|
|
|
|
|
|
+ storeId: localGet("createdId") || "104",
|
|
|
|
|
+ groupType: localGet("businessSection") || "1",
|
|
|
status: activeName
|
|
status: activeName
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
// 页面加载时触发查询
|
|
// 页面加载时触发查询
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
proTable.value?.getTableList();
|
|
proTable.value?.getTableList();
|
|
@@ -410,17 +401,20 @@ const editRow = row => {
|
|
|
};
|
|
};
|
|
|
const deleteRow = row => {
|
|
const deleteRow = row => {
|
|
|
ElMessageBox.confirm("确定要删除吗?", "提示", {
|
|
ElMessageBox.confirm("确定要删除吗?", "提示", {
|
|
|
- confirmButtonText: "OK",
|
|
|
|
|
- cancelButtonText: "Cancel",
|
|
|
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
- deleteThali(row.id).then(() => {
|
|
|
|
|
|
|
+ const params = {
|
|
|
|
|
+ id: row.id,
|
|
|
|
|
+ groupType: localGet("businessSection") || "1"
|
|
|
|
|
+ };
|
|
|
|
|
+ delThaliById(params).then(() => {
|
|
|
ElMessage.success("删除成功");
|
|
ElMessage.success("删除成功");
|
|
|
proTable.value?.getTableList();
|
|
proTable.value?.getTableList();
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
-
|
|
|
|
|
const handleClick = () => {};
|
|
const handleClick = () => {};
|
|
|
const changeTypes = async (row: any, status: string) => {
|
|
const changeTypes = async (row: any, status: string) => {
|
|
|
rowData.value = row;
|
|
rowData.value = row;
|
|
@@ -464,12 +458,9 @@ const closeDialog = () => {
|
|
|
// 查看拒绝原因
|
|
// 查看拒绝原因
|
|
|
const viewRejectReason = (row: any) => {
|
|
const viewRejectReason = (row: any) => {
|
|
|
rejectReasonData.value = {
|
|
rejectReasonData.value = {
|
|
|
- groupName: row.groupName || "",
|
|
|
|
|
- groupNo: row.groupNo || "",
|
|
|
|
|
- rejectReason: row.rejectReason || "",
|
|
|
|
|
- rejectionReason: row.rejectionReason || "",
|
|
|
|
|
- refuseReason: row.refuseReason || "",
|
|
|
|
|
- auditReason: row.auditReason || ""
|
|
|
|
|
|
|
+ groupName: row.groupName || "--",
|
|
|
|
|
+ groupNo: row.groupNo || "--",
|
|
|
|
|
+ approvalComments: row.approvalComments || "--"
|
|
|
};
|
|
};
|
|
|
rejectReasonDialogVisible.value = true;
|
|
rejectReasonDialogVisible.value = true;
|
|
|
};
|
|
};
|