diff --git a/src/views/canteen/canteenErpMaterial/index.vue b/src/views/canteen/canteenErpMaterial/index.vue index 85a9201..5b8ea6f 100644 --- a/src/views/canteen/canteenErpMaterial/index.vue +++ b/src/views/canteen/canteenErpMaterial/index.vue @@ -39,26 +39,38 @@ :cell-style="tableStyle.cellStyle" :header-cell-style="tableStyle.headerCellStyle" @selection-change="selectionChangHandle" - @sort-change="sortChangeHandle"> - - - - - - - - - - - - 编辑 - 删除 - - - - - + @sort-change="sortChangeHandle" + > + + + + + + {{ displayPrice(row.purchasePrice, "") }} + + + + + + + + + 编辑 + + + 删除 + + + + + + @@ -73,7 +85,6 @@ import { displayPrice } from "/@/utils/formatMoney" // 引入组件 const FormDialog = defineAsyncComponent(() => import("./form.vue")) -// 定义查询字典 // 定义变量内容 const formDialogRef = ref() diff --git a/src/views/canteen/canteenInventoryRecords/form.vue b/src/views/canteen/canteenInventoryRecords/form.vue index 45ee28b..69184d6 100644 --- a/src/views/canteen/canteenInventoryRecords/form.vue +++ b/src/views/canteen/canteenInventoryRecords/form.vue @@ -250,6 +250,7 @@ const tableFormItems = () => totalAmount: storePrice((Number(item.quantity || 0) * Number(item.realPrice || 0)).toFixed(2)), stock: item.stock, remark: item.remark, + orderType: baseForm.orderType, })) // 提交数据 成功返回 true 失败返回 false diff --git a/src/views/canteen/canteenInventoryRecords/index.vue b/src/views/canteen/canteenInventoryRecords/index.vue index 4bb325a..824693b 100644 --- a/src/views/canteen/canteenInventoryRecords/index.vue +++ b/src/views/canteen/canteenInventoryRecords/index.vue @@ -75,7 +75,9 @@ - + + {{ supplierSelect?.find((item: any) => item.supplierId == row.supplierId)?.supplierName }} + {{ displayPrice(row.totalAmount) }} @@ -116,6 +118,8 @@ import { BasicTableProps, useTable } from "/@/hooks/table" import { fetchList, delObjs } from "/@/api/canteen/canteenInventoryRecords" import { useMessage, useMessageBox } from "/@/hooks/message" import { displayPrice } from "/@/utils/formatMoney" +import { canteenSupplierSelect } from "/@/api/canteen/canteenSupplier" +import { getSimpleUserAll } from "/@/api/admin/user" const CtForm = defineAsyncComponent(() => import("./form.vue")) @@ -130,6 +134,8 @@ const state: BasicTableProps = reactive({ }, pageList: fetchList, }) +const supplierSelect = ref([]) +// const handleUserSelect = ref([]) const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = useTable(state) @@ -169,4 +175,21 @@ const handleDelete = async (ids: string[]) => { useMessage().error(err.msg) } } + +onMounted(async () => { + // 获取经办人 + try { + const { data } = await canteenSupplierSelect() + supplierSelect.value = data ? data : [] + } catch (error) { + supplierSelect.value = [] + } + // 获取货商 + // try { + // const { data } = await getSimpleUserAll() + // handleUserSelect.value = data ?? [] + // } catch (error) { + // handleUserSelect.value = [] + // } +}) diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue index 4f092ee..19f3fe0 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue @@ -389,6 +389,7 @@ const cgPlanSpuItems = computed(() => { totalAmount: Number(unit?.purchasePrice || 0) * item.quantity, remark: item.remark, unitId: item.unitId, + orderType: baseDataForm.orderType, } } else { return { @@ -399,6 +400,7 @@ const cgPlanSpuItems = computed(() => { totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0, remark: item.remark, unitId: item.unitId, + orderType: baseDataForm.orderType, } } }) diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgDd/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgDd/form.vue index ad4c040..f473aee 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgDd/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgDd/form.vue @@ -394,6 +394,7 @@ const cgPlanSpuItems = computed(() => { totalAmount: Number(unit?.purchasePrice || 0) * item.quantity, remark: item.remark, unitId: item.unitId, + orderType: baseDataForm.orderType, } } else { return { @@ -404,6 +405,7 @@ const cgPlanSpuItems = computed(() => { totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0, remark: item.remark, unitId: item.unitId, + orderType: baseDataForm.orderType, } } }) diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue index 4b1e110..325a250 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue @@ -420,6 +420,7 @@ const cgPlanSpuItems = computed(() => { totalAmount: storePrice(Number(unitObj?.realPrice || 0) * item.quantity), remark: item.remark, unitId: unitObj.id, + orderType: baseDataForm.orderType, } } else { return { @@ -431,6 +432,7 @@ const cgPlanSpuItems = computed(() => { totalAmount: item?.realPrice && item.quantity ? storePrice(Number(item.realPrice) * item.quantity) : 0, remark: item.remark, unitId: item.unitId, + orderType: baseDataForm.orderType, } } }) diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue index cb10af2..cee0aeb 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue @@ -314,6 +314,7 @@ const cgPlanSpuItems = computed(() => { totalAmount: Number(unit?.purchasePrice || 0) * item.quantity, remark: item.remark, unitId: item.unitId, + orderType: baseDataForm.orderType, } }) }) diff --git a/src/views/supermarketerp/retailManagement/smErpRetailBack/form.vue b/src/views/supermarketerp/retailManagement/smErpRetailBack/form.vue index 4b0b3a5..0f8577c 100644 --- a/src/views/supermarketerp/retailManagement/smErpRetailBack/form.vue +++ b/src/views/supermarketerp/retailManagement/smErpRetailBack/form.vue @@ -435,6 +435,7 @@ const cgPlanSpuItems = computed(() => { totalAmount: unit?.purchasePrice && item.quantity ? Number(unit.purchasePrice) * item.quantity : 0, remark: item.remark, unitId: item.unitId, + orderType: baseDataForm.orderType, } } else { return { @@ -445,6 +446,7 @@ const cgPlanSpuItems = computed(() => { totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0, remark: item.remark, unitId: item.unitId, + orderType: baseDataForm.orderType, } } }) diff --git a/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue b/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue index 7f008f1..364473f 100644 --- a/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue +++ b/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue @@ -427,6 +427,7 @@ const cgPlanSpuItems = computed(() => { totalAmount: unit?.purchasePrice && item.quantity ? Number(unit.purchasePrice) * item.quantity : 0, remark: item.remark, unitId: item.unitId, + orderType: baseDataForm.orderType, } } else { return { @@ -437,6 +438,7 @@ const cgPlanSpuItems = computed(() => { totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0, remark: item.remark, unitId: item.unitId, + orderType: baseDataForm.orderType, } } }) diff --git a/src/views/wallet/wallet-foreign/index.vue b/src/views/wallet/wallet-foreign/index.vue index c298913..0bb46ec 100644 --- a/src/views/wallet/wallet-foreign/index.vue +++ b/src/views/wallet/wallet-foreign/index.vue @@ -50,7 +50,7 @@ - + {{ row.applyStartTime }} - @@ -68,13 +68,17 @@ - 查看审批 - - 使用情况 - - - 删除 - + + + 开始处理 + + + 使用情况 + + + 删除 + + @@ -84,6 +88,8 @@ + + @@ -93,6 +99,8 @@ import { fetchList, pageJoin, delObjs } from "/@/api/wallet/wallet-foreign" import { useMessage, useMessageBox } from "/@/hooks/message" import { useDict } from "/@/hooks/dict" +import ProcessDrawer from "/@/components/processDrawer/index.vue" + // 引入组件 const FormDialog = defineAsyncComponent(() => import("./form.vue")) const CodeUseTable = defineAsyncComponent(() => import("../components/code-use-table.vue")) @@ -101,6 +109,7 @@ const { check_status } = useDict("check_status") // 定义变量内容 const formDialogRef = ref() const codeUseTableRef = ref() +const processDrawerRef = ref() // 搜索变量 const queryRef = ref() const showSearch = ref(true) @@ -142,6 +151,17 @@ const selectionChangHandle = (objs: { id: string }[]) => { multiple.value = !objs.length } +// 审批提交事件 +const taskSubmitEvent = () => { + getDataList() +} + +// 点击开始处理 +const deal = (row: any) => { + if (!row.processId) return useMessage().warning("流程id不存在") + processDrawerRef.value.openProcessDrawer(row) +} + // 删除操作 const handleDelete = async (ids: string[]) => { try { diff --git a/src/views/wallet/wallet-freeze/form.vue b/src/views/wallet/wallet-freeze/form.vue index 888a34d..bdee61f 100644 --- a/src/views/wallet/wallet-freeze/form.vue +++ b/src/views/wallet/wallet-freeze/form.vue @@ -1,116 +1,116 @@ - - - - - - - - + + + + + + + + - - - - - + + + + + - - - - - - - - - - - 取消 - 确认 - - - + + + + + + + + + + 取消 + 确认 + + + \ No newline at end of file + openDialog, +}) + diff --git a/src/views/wallet/wallet-freeze/index.vue b/src/views/wallet/wallet-freeze/index.vue index 5007182..9e724fd 100644 --- a/src/views/wallet/wallet-freeze/index.vue +++ b/src/views/wallet/wallet-freeze/index.vue @@ -69,7 +69,9 @@ - 查看审批 + + 开始处理 + 编辑 + 编辑 + 删除 @@ -88,6 +91,8 @@ + + @@ -96,6 +101,9 @@ import { BasicTableProps, useTable } from "/@/hooks/table" import { delObjs, pageJoin } from "/@/api/wallet/wallet-freeze" import { useMessage, useMessageBox } from "/@/hooks/message" import { useDict } from "/@/hooks/dict" + +import ProcessDrawer from "/@/components/processDrawer/index.vue" + const { push } = useRouter() // 引入组件 @@ -104,6 +112,7 @@ const FormDialog = defineAsyncComponent(() => import("./form.vue")) const { check_status, yes_no_type } = useDict("check_status", "yes_no_type") // 定义变量内容 const formDialogRef = ref() +const processDrawerRef = ref() // 搜索变量 const queryRef = ref() const showSearch = ref(true) @@ -143,6 +152,17 @@ const selectionChangHandle = (objs: { id: string }[]) => { multiple.value = !objs.length } +// 审批提交事件 +const taskSubmitEvent = () => { + getDataList() +} + +// 点击开始处理 +const deal = (row: any) => { + if (!row.processId) return useMessage().warning("流程id不存在") + processDrawerRef.value.openProcessDrawer(row) +} + // 删除操作 const handleDelete = async (ids: string[]) => { try { diff --git a/src/views/wallet/wallet-stride/index.vue b/src/views/wallet/wallet-stride/index.vue index 6c5e1df..6d407bf 100644 --- a/src/views/wallet/wallet-stride/index.vue +++ b/src/views/wallet/wallet-stride/index.vue @@ -61,31 +61,37 @@ - 编辑 - 删除 - 查看审批 - - 使用情况 - + + + 编辑 + + + 删除 + + + 开始处理 + + + 使用情况 + + - + + @@ -95,6 +101,8 @@ import { fetchList, delObjs, pageJoin } from "/@/api/wallet/wallet-stride" import { useMessage, useMessageBox } from "/@/hooks/message" import { useDict } from "/@/hooks/dict" +import ProcessDrawer from "/@/components/processDrawer/index.vue" + const { push } = useRouter() // 引入组件 @@ -105,6 +113,7 @@ const { check_status, yes_no_type } = useDict("check_status", "yes_no_type") // 定义变量内容 const formDialogRef = ref() const codeUseTableRef = ref() +const processDrawerRef = ref() // 搜索变量 const queryRef = ref() const showSearch = ref(true) @@ -144,6 +153,17 @@ const selectionChangHandle = (objs: { id: string }[]) => { multiple.value = !objs.length } +// 审批提交事件 +const taskSubmitEvent = () => { + getDataList() +} + +// 点击开始处理 +const deal = (row: any) => { + if (!row.processId) return useMessage().warning("流程id不存在") + processDrawerRef.value.openProcessDrawer(row) +} + // 删除操作 const handleDelete = async (ids: string[]) => { try {