From f79bcbfbb1a5538b9f36133450fc08241c12d259 Mon Sep 17 00:00:00 2001 From: taozi <1362265981@qq.com> Date: Thu, 18 Dec 2025 08:58:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/firstOrder/inbound.js | 15 +++ src/api/materials/list.js | 42 +++++++ src/api/purchaseOrders/index.js | 15 +++ src/views/firstOrder/inbound.vue | 168 ++++++++++++++++++---------- src/views/firstOrder/list.vue | 2 +- src/views/materials/index.vue | 174 ++++++++++++++++++----------- src/views/purchaseOrders/index.vue | 102 +++++++++-------- 7 files changed, 346 insertions(+), 172 deletions(-) create mode 100644 src/api/firstOrder/inbound.js create mode 100644 src/api/materials/list.js create mode 100644 src/api/purchaseOrders/index.js diff --git a/src/api/firstOrder/inbound.js b/src/api/firstOrder/inbound.js new file mode 100644 index 0000000..84f3845 --- /dev/null +++ b/src/api/firstOrder/inbound.js @@ -0,0 +1,15 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/smartpark/onePutStorage/list', + method: 'get', + params: { + ...params, + pageSize:size, + pageNum:current, + }, + cryptoToken: false, + cryptoData: false + }) +} \ No newline at end of file diff --git a/src/api/materials/list.js b/src/api/materials/list.js new file mode 100644 index 0000000..4612ae4 --- /dev/null +++ b/src/api/materials/list.js @@ -0,0 +1,42 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/smartpark/material/list', + method: 'get', + params: { + ...params, + pageSize: size, + pageNum: current, + }, + cryptoToken: false, + cryptoData: false + }) +} +export const add = (row) => { + return request({ + url: '/smartpark/material/submit', + method: 'post', + data: row, + cryptoToken: false, + cryptoData: false + }) +} +export const update = (row) => { + return request({ + url: '/smartpark/material/submit', + method: 'post', + data: row, + cryptoToken: false, + cryptoData: false + }) +} +export const remove = (ids) => { + return request({ + url: '/smartpark/material/remove', + method: 'post', + params: { ids }, // 使用params而不是data,将参数放在URL查询参数中 + cryptoToken: false, + cryptoData: false + }) +} diff --git a/src/api/purchaseOrders/index.js b/src/api/purchaseOrders/index.js new file mode 100644 index 0000000..38878ee --- /dev/null +++ b/src/api/purchaseOrders/index.js @@ -0,0 +1,15 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/smartpark/purchaseEnd/list', + method: 'get', + params: { + ...params, + pageSize: size, + pageNum: current, + }, + cryptoToken: false, + cryptoData: false + }) +} \ No newline at end of file diff --git a/src/views/firstOrder/inbound.vue b/src/views/firstOrder/inbound.vue index 7726aca..9941060 100644 --- a/src/views/firstOrder/inbound.vue +++ b/src/views/firstOrder/inbound.vue @@ -3,7 +3,7 @@ + @refresh-change="refreshChange" @on-load="onLoad"> @@ -26,12 +27,13 @@ - +