import { t as e } from "./request-B-Pg79ns.mjs";
import { t } from "./enum-Dkr8RUaO.mjs";
import { t as n } from "./_plugin-vue_export-helper-C_T2la-V.mjs";
import { Fragment as r, createCommentVNode as i, createElementBlock as a, createTextVNode as o, createVNode as s, defineComponent as c, openBlock as l, renderList as u, toDisplayString as d, unref as f, withCtx as p, withModifiers as m } from "vue";
import { ProTable as h } from "@pubinfo/pro-components";
import { useRouter as g } from "vue-router";
import './copy.css';//#region src/api/modules/bpmTask/bpMliuchengshilichaosongbiaokongzhiqi.ts
function _(t, n) {
	return e.Post("/bpm/process-instance/copy/page", t, {
		headers: { "Content-Type": "application/json" },
		...n || {}
	});
}
//#endregion
//#region src/pages/approve-center/copy.vue?vue&type=script&setup=true&lang.tsx
var v = {
	"py-10px": "",
	"px-10px": "",
	"w-full": "",
	"h-full": ""
}, y = {
	key: 0,
	class: "flex flex-col"
}, b = ["onClick"], x = /* @__PURE__ */ n(/* @__PURE__ */ c({
	name: "CopyList",
	__name: "copy",
	setup(e) {
		async function n(e) {
			let { current: t, pageSize: n, ...r } = e, i = await _({
				currentPage: t,
				pageSize: n,
				doSearchTotal: !0,
				...r
			});
			return {
				success: i.success,
				data: i.data?.records ?? [],
				total: i.data?.total ?? 0
			};
		}
		let c = [
			{
				valueType: "a-input",
				bind: "value",
				title: "流程名称",
				dataIndex: "processInstanceName",
				fieldProps: {
					placeholder: "请输入流程名称",
					allowClear: !0
				}
			},
			{
				hideInSearch: !0,
				title: "摘要",
				dataIndex: "summary",
				ellipsis: !0
			},
			{
				hideInSearch: !0,
				title: "流程发起人",
				dataIndex: "startUser",
				ellipsis: !0
			},
			{
				hideInSearch: !0,
				title: "流程发起时间",
				dataIndex: "processInstanceStartTime",
				ellipsis: !0
			},
			{
				hideInSearch: !0,
				title: "抄送节点",
				dataIndex: "activityName",
				ellipsis: !0
			},
			{
				hideInSearch: !0,
				title: "抄送人",
				dataIndex: "createUser",
				ellipsis: !0
			},
			{
				hideInSearch: !0,
				title: "抄送意见",
				dataIndex: "reason",
				ellipsis: !0
			},
			{
				hideInSearch: !0,
				title: "抄送时间",
				dataIndex: "createTime",
				ellipsis: !0
			},
			{
				hideInSearch: !0,
				width: 80,
				title: "操作",
				dataIndex: "action",
				fixed: "right"
			}
		], x = g();
		function S(e, n) {
			switch (e) {
				case t.DETAIL:
					x.push({
						name: "copyProcessDetail",
						params: { processInstanceId: n.processInstanceId },
						query: { taskId: n.id }
					});
					break;
				default: break;
			}
		}
		return (e, g) => (l(), a("div", v, [s(f(h), {
			"row-key": "id",
			request: n,
			columns: c,
			"auto-height": "",
			scroll: { x: 1200 }
		}, {
			bodyCell: p(({ column: e, record: n }) => [
				e.dataIndex === "summary" ? (l(), a(r, { key: 0 }, [n.processInstance?.summary && n.processInstance.summary?.length > 0 ? (l(), a("div", y, [(l(!0), a(r, null, u(n.processInstance?.summary, (e, t) => (l(), a("div", { key: t }, d(e.key) + " : " + d(e.value), 1))), 128))])) : i("", !0)], 64)) : i("", !0),
				e.dataIndex === "startUser" ? (l(), a(r, { key: 1 }, [o(d(n.startUser?.nickname || "-"), 1)], 64)) : i("", !0),
				e.dataIndex === "processInstanceStartTime" ? (l(), a(r, { key: 2 }, [o(d(n.processInstanceStartTime || "-"), 1)], 64)) : i("", !0),
				e.dataIndex === "createUser" ? (l(), a(r, { key: 3 }, [o(d(n.createUser?.nickname || "-"), 1)], 64)) : i("", !0),
				e.dataIndex === "reason" ? (l(), a(r, { key: 4 }, [o(d(n.reason || "-"), 1)], 64)) : i("", !0),
				e.dataIndex === "createTime" ? (l(), a(r, { key: 5 }, [o(d(n.createTime || "-"), 1)], 64)) : i("", !0),
				e.dataIndex === "action" ? (l(), a("a", {
					key: 6,
					onClick: m((e) => S(f(t).DETAIL, n), ["prevent"])
				}, d(f(t).DETAIL), 9, b)) : i("", !0)
			]),
			_: 1
		})]));
	}
}), [["__scopeId", "data-v-c4f78cd0"]]);
//#endregion
export { x as default };
