diff --git a/src/api/mes/wm/stocktaking/task/index.ts b/src/api/mes/wm/stocktaking/task/index.ts index a33d38d8e..61bbb68bf 100644 --- a/src/api/mes/wm/stocktaking/task/index.ts +++ b/src/api/mes/wm/stocktaking/task/index.ts @@ -20,10 +20,6 @@ export interface StockTakingTaskVO { createTime?: string } -export interface StockTakingTaskActionReqVO { - id: number -} - export const StockTakingApi = { getStockTakingPage: async (params: any) => { return await request.get({ url: '/mes/wm/stocktaking-task/page', params }) @@ -45,12 +41,12 @@ export const StockTakingApi = { return await request.delete({ url: '/mes/wm/stocktaking-task/delete?id=' + id }) }, - submitStockTaking: async (data: StockTakingTaskActionReqVO) => { - return await request.put({ url: '/mes/wm/stocktaking-task/submit', data }) + submitStockTaking: async (id: number) => { + return await request.put({ url: '/mes/wm/stocktaking-task/submit', params: { id } }) }, - cancelStockTaking: async (data: StockTakingTaskActionReqVO) => { - return await request.put({ url: '/mes/wm/stocktaking-task/cancel', data }) + cancelStockTaking: async (id: number) => { + return await request.put({ url: '/mes/wm/stocktaking-task/cancel', params: { id } }) }, exportStockTaking: async (params: any) => { diff --git a/src/api/mes/wm/stocktaking/task/line/index.ts b/src/api/mes/wm/stocktaking/task/line/index.ts index e6b4eb4bc..9a0c8b8d0 100644 --- a/src/api/mes/wm/stocktaking/task/line/index.ts +++ b/src/api/mes/wm/stocktaking/task/line/index.ts @@ -29,6 +29,10 @@ export const StockTakingTaskLineApi = { return await request.get({ url: '/mes/wm/stocktaking-task-line/page', params }) }, + getStockTakingTaskLine: async (id: number) => { + return await request.get({ url: '/mes/wm/stocktaking-task-line/get', params: { id } }) + }, + createStockTakingTaskLine: async (data: StockTakingTaskLineVO) => { return await request.post({ url: '/mes/wm/stocktaking-task-line/create', data }) }, diff --git a/src/views/mes/wm/stocktaking/task/StockTakingTaskLineList.vue b/src/views/mes/wm/stocktaking/task/StockTakingTaskLineList.vue index 6bb0cf687..097217b1e 100644 --- a/src/views/mes/wm/stocktaking/task/StockTakingTaskLineList.vue +++ b/src/views/mes/wm/stocktaking/task/StockTakingTaskLineList.vue @@ -6,119 +6,123 @@ v-hasPermi="['mes:wm-stock-taking-task:update']" type="primary" plain - @click="handleAdd" + @click="openForm('create')" class="mb-10px" > 添加物料 - - - - - - - - - - + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +