|
@@ -14,6 +14,7 @@
|
|
|
v-model="params.formWidgetMetadataViewList"
|
|
|
type="CLOUD_MARK_SOP_FLOW"
|
|
|
@change="metadataChange"
|
|
|
+ :originColumns="originColumns"
|
|
|
></select-metadata>
|
|
|
<t-button variant="outline" @click="handleRefresh">
|
|
|
<template #icon><svg-icon name="refresh" color="#262626" /></template>
|
|
@@ -87,7 +88,7 @@
|
|
|
@action="editSopFlowHandle(row, 'view')"
|
|
|
></more-content>
|
|
|
</template>
|
|
|
- <template #beginTime="{ col, row }">
|
|
|
+ <!-- <template #beginTime="{ col, row }">
|
|
|
{{ timestampFilter(row[col.colKey]) }}
|
|
|
</template>
|
|
|
<template #examStartTime="{ col, row }">
|
|
@@ -101,7 +102,7 @@
|
|
|
</template>
|
|
|
<template #flowUpdateTime="{ col, row }">
|
|
|
{{ timestampFilter(row[col.colKey]) }}
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
<template
|
|
|
v-for="field in formWidgetMetadataViewList"
|
|
|
#[field.fieldId]="{ col, row }"
|
|
@@ -228,6 +229,7 @@ import MetadataContent from '../../components/metadata-content.vue';
|
|
|
import { useAppStore } from '@/store';
|
|
|
import usePermission from '@/hooks/usePermission';
|
|
|
import SopSortPanel from '../../components/sop-sort-panel/index.vue';
|
|
|
+import { cloneDeep } from 'lodash';
|
|
|
const { perm } = usePermission();
|
|
|
|
|
|
const appStore = useAppStore();
|
|
@@ -236,6 +238,45 @@ const selectedRowKeys = ref([]);
|
|
|
const selectChange = (value) => {
|
|
|
selectedRowKeys.value = value;
|
|
|
};
|
|
|
+const originColumns = [
|
|
|
+ { fieldId: 'crmNo', fieldTitle: '项目单号', width: 200 },
|
|
|
+ { fieldId: 'beginTime', fieldTitle: '派单时间', width: 180, code: 'DATE' },
|
|
|
+ { fieldId: 'customManagerName', fieldTitle: '客户经理', width: 140 },
|
|
|
+ { fieldId: 'customManagerTypeStr', fieldTitle: '客户类型', width: 120 },
|
|
|
+ { fieldId: 'customName', fieldTitle: '客户名称', width: 140 },
|
|
|
+ { fieldId: 'crmName', fieldTitle: '项目名称', minWidth: 160 },
|
|
|
+ { fieldId: 'productName', fieldTitle: '实施产品', width: 120 },
|
|
|
+ {
|
|
|
+ fieldId: 'examStartTime',
|
|
|
+ fieldTitle: '考试开始时间',
|
|
|
+ width: 180,
|
|
|
+ code: 'DATE',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ fieldId: 'examEndTime',
|
|
|
+ fieldTitle: '考试结束时间',
|
|
|
+ width: 180,
|
|
|
+ code: 'DATE',
|
|
|
+ },
|
|
|
+ { fieldId: 'flowCreateName', fieldTitle: '提交人', width: 140 },
|
|
|
+ {
|
|
|
+ fieldId: 'flowCreateTime',
|
|
|
+ fieldTitle: '提交时间',
|
|
|
+ width: 180,
|
|
|
+ code: 'DATE',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ fieldId: 'flowUpdateTime',
|
|
|
+ fieldTitle: '更新时间',
|
|
|
+ width: 180,
|
|
|
+ code: 'DATE',
|
|
|
+ },
|
|
|
+ { fieldId: 'statusStr', fieldTitle: '流程状态', width: 120 },
|
|
|
+ { fieldId: 'taskName', fieldTitle: '流程节点', width: 160 },
|
|
|
+ { fieldId: 'pendApproveName', fieldTitle: '当前节点负责人', width: 140 },
|
|
|
+];
|
|
|
+const originFieldIds = originColumns.map((item) => item.fieldId);
|
|
|
+
|
|
|
const columns = computed(() => {
|
|
|
const defaultColumns = [
|
|
|
{
|
|
@@ -246,21 +287,21 @@ const columns = computed(() => {
|
|
|
},
|
|
|
{ colKey: 'serviceName', title: '服务单元', width: 160 },
|
|
|
{ colKey: 'sopNo', title: 'SOP流水号', width: 200 },
|
|
|
- { colKey: 'crmNo', title: '项目单号', width: 200 },
|
|
|
- { colKey: 'beginTime', title: '派单时间', width: 180 },
|
|
|
- { colKey: 'customManagerName', title: '客户经理', width: 140 },
|
|
|
- { colKey: 'customManagerTypeStr', title: '客户类型', width: 120 },
|
|
|
- { colKey: 'customName', title: '客户名称', width: 140 },
|
|
|
- { colKey: 'crmName', title: '项目名称', minWidth: 160 },
|
|
|
- { colKey: 'productName', title: '实施产品', width: 120 },
|
|
|
- { colKey: 'examStartTime', title: '考试开始时间', width: 180 },
|
|
|
- { colKey: 'examEndTime', title: '考试结束时间', width: 180 },
|
|
|
- { colKey: 'flowCreateName', title: '提交人', width: 140 },
|
|
|
- { colKey: 'flowCreateTime', title: '提交时间', width: 180 },
|
|
|
- { colKey: 'flowUpdateTime', title: '更新时间', width: 180 },
|
|
|
- { colKey: 'statusStr', title: '流程状态', width: 120 },
|
|
|
- { colKey: 'taskName', title: '流程节点', width: 160 },
|
|
|
- { colKey: 'pendApproveName', title: '当前节点负责人', width: 140 },
|
|
|
+ // { colKey: 'crmNo', title: '项目单号', width: 200 },
|
|
|
+ // { colKey: 'beginTime', title: '派单时间', width: 180 },
|
|
|
+ // { colKey: 'customManagerName', title: '客户经理', width: 140 },
|
|
|
+ // { colKey: 'customManagerTypeStr', title: '客户类型', width: 120 },
|
|
|
+ // { colKey: 'customName', title: '客户名称', width: 140 },
|
|
|
+ // { colKey: 'crmName', title: '项目名称', minWidth: 160 },
|
|
|
+ // { colKey: 'productName', title: '实施产品', width: 120 },
|
|
|
+ // { colKey: 'examStartTime', title: '考试开始时间', width: 180 },
|
|
|
+ // { colKey: 'examEndTime', title: '考试结束时间', width: 180 },
|
|
|
+ // { colKey: 'flowCreateName', title: '提交人', width: 140 },
|
|
|
+ // { colKey: 'flowCreateTime', title: '提交时间', width: 180 },
|
|
|
+ // { colKey: 'flowUpdateTime', title: '更新时间', width: 180 },
|
|
|
+ // { colKey: 'statusStr', title: '流程状态', width: 120 },
|
|
|
+ // { colKey: 'taskName', title: '流程节点', width: 160 },
|
|
|
+ // { colKey: 'pendApproveName', title: '当前节点负责人', width: 140 },
|
|
|
{
|
|
|
title: '管理',
|
|
|
colKey: 'operate',
|
|
@@ -276,7 +317,8 @@ const columns = computed(() => {
|
|
|
title: item.fieldTitle,
|
|
|
colOptions: item.options,
|
|
|
colKeyCode: item.code,
|
|
|
- minWidth: 170,
|
|
|
+ width: item.width,
|
|
|
+ minWidth: item.minWidth || 170,
|
|
|
};
|
|
|
});
|
|
|
return [
|
|
@@ -306,13 +348,16 @@ const fields = ref([
|
|
|
]);
|
|
|
const params = reactive({
|
|
|
serviceId: '',
|
|
|
- formWidgetMetadataViewList: [],
|
|
|
+ formWidgetMetadataViewList: cloneDeep(originColumns),
|
|
|
formWidgetMetadataConditionList: [],
|
|
|
formWidgetMetadataOrderList: [],
|
|
|
formWidgetMetadataOperation: 'AND',
|
|
|
});
|
|
|
const transParams = computed(() => {
|
|
|
- return { ...params, type: 'CLOUD_MARK_SOP_FLOW' };
|
|
|
+ let formWidgetMetadataViewList = params.formWidgetMetadataViewList.filter(
|
|
|
+ (item) => !originFieldIds.includes(item.fieldId)
|
|
|
+ );
|
|
|
+ return { ...params, formWidgetMetadataViewList, type: 'CLOUD_MARK_SOP_FLOW' };
|
|
|
});
|
|
|
const {
|
|
|
loading: tableLoading,
|
|
@@ -328,7 +373,7 @@ const {
|
|
|
},
|
|
|
});
|
|
|
|
|
|
-const formWidgetMetadataViewList = ref([]);
|
|
|
+const formWidgetMetadataViewList = ref(cloneDeep(originColumns));
|
|
|
const metadataChange = (vals) => {
|
|
|
formWidgetMetadataViewList.value = vals;
|
|
|
};
|