diff --git a/src/api/supermarketerp/stockTaking.ts b/src/api/supermarketerp/stockTaking.ts
index b208261..d1830f4 100644
--- a/src/api/supermarketerp/stockTaking.ts
+++ b/src/api/supermarketerp/stockTaking.ts
@@ -12,8 +12,8 @@ export function addObj(data?: object) {
// 库存盘点修改
export function putObj(data?: object) {
return request({
- url: "/supermarket/smErpInventoryRecords/savePD",
- method: "post",
+ url: "/supermarket/smErpInventoryRecords/updatePD",
+ method: "put",
data,
})
}
diff --git a/src/hooks/smProcessTableAction.ts b/src/hooks/smProcessTableAction.ts
deleted file mode 100644
index f78c496..0000000
--- a/src/hooks/smProcessTableAction.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-import { useMessage } from "./message"
-
-export type tableRow = { id: string | undefined; checkStatus: number | string | undefined; processInstanceId: string | undefined | null }
-type ICreate = () => void
-type IEdit = (row: tableRow) => void
-type IClose = () => void
-
-// 采购流程(补货申请、采购订单、采购入库、采购退货、零售出库、零售退货) 表格操作列行为hook
-export function useSmProcessTableAction(processFormState: { formId: string | undefined; formDisabled: boolean; showForm: boolean }): {
- create: ICreate
- edit: IEdit
- close: IClose
-} {
- // 点击新增
- const create: ICreate = () => {
- processFormState.formDisabled = false
- processFormState.showForm = true
- }
- // 点击编辑
- const edit: IEdit = (row: tableRow) => {
- row.id ? (processFormState.formId = row.id) : useMessage().warning("清单id不存在")
- row.checkStatus == 2 ? (processFormState.formDisabled = true) : (processFormState.formDisabled = false)
- processFormState.showForm = true
- }
- // 表单关闭
- const close: IClose = () => {
- processFormState.showForm = false
- processFormState.formId = undefined
- processFormState.formDisabled = true
- }
-
- return {
- create,
- edit,
- close,
- }
-}
diff --git a/src/views/hard/hard-door-flow/index.vue b/src/views/hard/hard-door-flow/index.vue
index 7836071..5226c39 100644
--- a/src/views/hard/hard-door-flow/index.vue
+++ b/src/views/hard/hard-door-flow/index.vue
@@ -11,34 +11,25 @@