diff --git a/src/components/Select/SelectDept.vue b/src/components/Select/SelectDept.vue index 1609d75..9cfb397 100644 --- a/src/components/Select/SelectDept.vue +++ b/src/components/Select/SelectDept.vue @@ -1,84 +1,56 @@ e && getOptions()" + v-model="selectId" + :data="deptOptions" :props="{ value: 'id', label: 'name', children: 'children' }" + class="w100" + filterable clearable check-strictly :render-after-expand="false" - :placeholder="props.placeholder" + :placeholder="placeholder" + @change="handleChange" /> - diff --git a/src/hooks/smProcessTableAction.ts b/src/hooks/smProcessTableAction.ts index 1ba8b60..4f3fe9f 100644 --- a/src/hooks/smProcessTableAction.ts +++ b/src/hooks/smProcessTableAction.ts @@ -1,15 +1,24 @@ +import { Ref } from "vue" import { useMessage } from "./message" -type tableRow = { id: string | undefined; checkStatus: number | string | undefined } +type tableRow = { id: string | undefined; checkStatus: number | string | undefined; processInstanceId: string | undefined | null } type ICreate = () => void type IEdit = (row: tableRow) => void type IFormClose = () => void +type IDeal = (row: tableRow) => void +type ITaskSubmitEvent = () => void // 采购流程(补货申请、采购订单、采购入库、采购退货、零售出库、零售退货) 表格操作列行为hook -export function useSmProcessTableAction(processFormState: { formId: string | undefined; formDisabled: boolean; showForm: boolean }): { +export function useSmProcessTableAction( + processFormState: { formId: string | undefined; formDisabled: boolean; showForm: boolean }, + processDrawerRef: Ref, + fetchList: () => void, +): { create: ICreate edit: IEdit formClose: IFormClose + deal: IDeal + taskSubmitEvent: ITaskSubmitEvent } { // 点击新增 const create: ICreate = () => { @@ -22,17 +31,27 @@ export function useSmProcessTableAction(processFormState: { formId: string | und row.checkStatus == 2 ? (processFormState.formDisabled = true) : (processFormState.formDisabled = false) processFormState.showForm = true } - // 表单关闭 const formClose: IFormClose = () => { processFormState.showForm = false processFormState.formId = undefined processFormState.formDisabled = true } + // 点击开始处理 + const deal = (row: tableRow) => { + if (!row.processInstanceId) return useMessage().warning("流程id不存在") + processDrawerRef.value.openProcessDrawer(row) + } + // 审批提交事件 + const taskSubmitEvent = () => { + fetchList() + } return { create, edit, formClose, + deal, + taskSubmitEvent, } } diff --git a/src/views/admin/system/user/form.vue b/src/views/admin/system/user/form.vue index e8231be..c60f6de 100644 --- a/src/views/admin/system/user/form.vue +++ b/src/views/admin/system/user/form.vue @@ -47,6 +47,7 @@ - - - - - - - - - - - - - - - - - - - {{ item.label }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 取消 - 确认 - - - - - - diff --git a/src/views/canteen/merchantInfo/index.vue b/src/views/canteen/merchantInfo/index.vue deleted file mode 100644 index 782e253..0000000 --- a/src/views/canteen/merchantInfo/index.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - 新 增 - - - 删除 - - - - - - - - - - - - - - - - - - - - - - - - - - - 编辑 - - - 删除 - - - - - - - - - - - - - diff --git a/src/views/mch/mch-dept-user/index.vue b/src/views/mch/mch-dept-user/index.vue index ff51b6e..622b7d8 100644 --- a/src/views/mch/mch-dept-user/index.vue +++ b/src/views/mch/mch-dept-user/index.vue @@ -1,6 +1,22 @@ + + + + + + + + + + + {{ $t("common.queryBtn") }} + + {{ $t("common.resetBtn") }} + + + 同步全部 @@ -37,42 +53,15 @@ @sort-change="sortChangeHandle" > - - - - - 商户id - 1111 - - - 商户名 - 1111 - - + + + + - - - - 用户id - 1111 - - - 用户名 - 1111 - - - - - - 用户部门id - 1111 - - - 用户部门 - 1111 - - + + + + @@ -103,6 +92,7 @@ import { BasicTableProps, useTable } from "/@/hooks/table" import * as mchDeptUserApi from "/@/api/wallet/mch-dept-user" import { useMessage, useMessageBox } from "/@/hooks/message" import { useDict } from "/@/hooks/dict" +import { ro } from "element-plus/es/locale" // 引入组件 const FormDialog = defineAsyncComponent(() => import("./form.vue")) @@ -128,7 +118,7 @@ const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, do // 同步全部 const syncAll = async () => { try { - await useMessageBox().confirm("是否同步全部") + await useMessageBox().confirm("是否同步全部,会先删除") } catch { return } @@ -172,3 +162,29 @@ const handleDelete = async (ids: string[]) => { } } + + diff --git a/src/views/wallet/mch-manage/form.vue b/src/views/wallet/mch-manage/form.vue new file mode 100644 index 0000000..16fa8e7 --- /dev/null +++ b/src/views/wallet/mch-manage/form.vue @@ -0,0 +1,308 @@ + + + + + + + + + + + + + + + + + + + {{ item.label }} + + + + + + + + form.merchantBranch = value"> + 总店 + 分店 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 排序 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 确认 + + + + + diff --git a/src/views/wallet/mch-manage/index.vue b/src/views/wallet/mch-manage/index.vue new file mode 100644 index 0000000..86e4799 --- /dev/null +++ b/src/views/wallet/mch-manage/index.vue @@ -0,0 +1,274 @@ + + + + + + + + + + + + + + + + + + + + {{ $t("common.queryBtn") }} + + {{ $t("common.resetBtn") }} + + + + + + + 新 增 + + + 删 除 + + + + + + + + + + + + + + + + + + 下载 + + + + + + + + + + + + + + + + {{ row.walletTypeName }} + + + + + + + + + + + {{ row.sort }} + + + + + {{ row.mchCount || 0 }} + + + + + {{ row.jobTime?.split(",")[0] ? "早上:" + row.jobTime?.split(",")[0] : "" }} + {{ row.jobTime?.split(",")[1] ? "中午:" + row.jobTime?.split(",")[1] : "" }} + {{ row.jobTime?.split(",")[2] ? "晚上:" + row.jobTime?.split(",")[2] : "" }} + + + + + + + + + + + + + + + + + + 刷新二维码 + + + 配置 + + + 编辑 + + 删除 + + + + + + + + + + + + + + +