|
@@ -0,0 +1,143 @@
|
|
|
|
+<template>
|
|
|
|
+ <div class="office-sop flex flex-col">
|
|
|
|
+ <SearchForm :fields="fields" :params="params"></SearchForm>
|
|
|
|
+
|
|
|
|
+ <div class="flex-1 page-wrap">
|
|
|
|
+ <div class="btn-group">
|
|
|
|
+ <t-button theme="success">新增</t-button>
|
|
|
|
+ <t-button theme="success">作废</t-button>
|
|
|
|
+ </div>
|
|
|
|
+ <t-table
|
|
|
|
+ size="small"
|
|
|
|
+ row-key="id"
|
|
|
|
+ :columns="columns"
|
|
|
|
+ :data="tableData"
|
|
|
|
+ bordered
|
|
|
|
+ :pagination="{
|
|
|
|
+ defaultCurrent: 1,
|
|
|
|
+ defaultPageSize: 10,
|
|
|
|
+ onChange,
|
|
|
|
+ total: pagination.total,
|
|
|
|
+ }"
|
|
|
|
+ :selected-row-keys="selectedRowKeys"
|
|
|
|
+ select-on-row-click
|
|
|
|
+ @select-change="selectChange"
|
|
|
|
+ >
|
|
|
|
+ </t-table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script setup lang="jsx" name="ProjectChangeReport">
|
|
|
|
+import { ref, reactive } from 'vue';
|
|
|
|
+import { getTableData } from '@/api/test';
|
|
|
|
+import useFetchTable from '@/hooks/useFetchTable';
|
|
|
|
+const selectedRowKeys = ref([]);
|
|
|
|
+const selectChange = (value, { selectedRowData }) => {
|
|
|
|
+ selectedRowKeys.value = value;
|
|
|
|
+};
|
|
|
|
+const columns = [
|
|
|
|
+ {
|
|
|
|
+ colKey: 'row-select',
|
|
|
|
+ type: 'multiple',
|
|
|
|
+ width: 50,
|
|
|
|
+ fixed: 'left',
|
|
|
|
+ },
|
|
|
|
+ { colKey: 'a', title: '变更申请编号' },
|
|
|
|
+ { colKey: 'b', title: '服务单元' },
|
|
|
|
+ { colKey: 'c', title: '客户类型' },
|
|
|
|
+ { colKey: 'd', title: '客户名称' },
|
|
|
|
+ { colKey: 'e', title: '项目单号' },
|
|
|
|
+ { colKey: 'f', title: '项目名称' },
|
|
|
|
+ { colKey: 'g', title: '变更原因' },
|
|
|
|
+ { colKey: 'h', title: '变更类型' },
|
|
|
|
+ { colKey: 'i', title: '变更字段(多行)' },
|
|
|
|
+ { colKey: 'j', title: '变更后内容(多行)' },
|
|
|
|
+ { colKey: 'k', title: '提交人' },
|
|
|
|
+ { colKey: 'l', title: '提交时间' },
|
|
|
|
+ { colKey: 'm', title: '流程状态' },
|
|
|
|
+ { colKey: 'n', title: '当前节点' },
|
|
|
|
+ { colKey: 'o', title: '节点负责人' },
|
|
|
|
+];
|
|
|
|
+const fields = ref([
|
|
|
|
+ {
|
|
|
|
+ prop: 'a',
|
|
|
|
+ label: '服务单元',
|
|
|
|
+ type: 'select',
|
|
|
|
+ labelWidth: '100px',
|
|
|
|
+ colSpan: 4,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ prop: 'b',
|
|
|
|
+ label: '提交人',
|
|
|
|
+ type: 'select',
|
|
|
|
+ labelWidth: '100px',
|
|
|
|
+ colSpan: 4,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ prop: 'c',
|
|
|
|
+ label: '变更类型',
|
|
|
|
+ type: 'select',
|
|
|
|
+ labelWidth: '100px',
|
|
|
|
+ colSpan: 4,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ prop: 'd',
|
|
|
|
+ label: '客户类型',
|
|
|
|
+ type: 'select',
|
|
|
|
+ labelWidth: '100px',
|
|
|
|
+ colSpan: 4,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ prop: 'e',
|
|
|
|
+ label: '流程状态',
|
|
|
|
+ type: 'select',
|
|
|
|
+ labelWidth: '100px',
|
|
|
|
+ colSpan: 4,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ type: 'buttons',
|
|
|
|
+ colSpan: 2,
|
|
|
|
+ children: [{ type: 'button', text: '查询' }],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ prop: 'f',
|
|
|
|
+ label: '客户名称',
|
|
|
|
+ labelWidth: '100px',
|
|
|
|
+ colSpan: 4,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ prop: 'g',
|
|
|
|
+ label: '变更申请编号',
|
|
|
|
+ labelWidth: '100px',
|
|
|
|
+ colSpan: 4,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ prop: 'h',
|
|
|
|
+ label: '提交时间',
|
|
|
|
+ type: 'daterange',
|
|
|
|
+ labelWidth: '100px',
|
|
|
|
+ colSpan: 8,
|
|
|
|
+ },
|
|
|
|
+]);
|
|
|
|
+const params = reactive({
|
|
|
|
+ a: '',
|
|
|
|
+ b: '',
|
|
|
|
+ c: '',
|
|
|
|
+ d: '',
|
|
|
|
+ e: '',
|
|
|
|
+ f: '',
|
|
|
|
+ g: '',
|
|
|
|
+ h: [],
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+const {
|
|
|
|
+ loading: tableLoading,
|
|
|
|
+ pagination,
|
|
|
|
+ tableData,
|
|
|
|
+ fetchData,
|
|
|
|
+ onChange,
|
|
|
|
+} = useFetchTable(getTableData);
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style></style>
|