From 03ec2223aa2db0dbd3adb20c3019172a3b6343fc Mon Sep 17 00:00:00 2001 From: ljx <15723110242@139.com> Date: Fri, 5 Sep 2025 22:17:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/materials/materialOutbound/index.ts | 27 +++ src/api/materials/materialsUseRecord/types.ts | 15 +- .../materialOutbound/component/outbound.vue | 90 ++++++++ .../materials/materialOutbound/index.vue | 148 +++++++++++++ .../materials/materialsUseRecord/index.vue | 207 +++++++++++------- 6 files changed, 398 insertions(+), 93 deletions(-) create mode 100644 src/api/materials/materialOutbound/index.ts create mode 100644 src/views/materials/materialOutbound/component/outbound.vue create mode 100644 src/views/materials/materialOutbound/index.vue diff --git a/.env.development b/.env.development index 9419bae..4a809a3 100644 --- a/.env.development +++ b/.env.development @@ -6,13 +6,13 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -# VITE_APP_BASE_API = 'http://192.168.110.209:8899' +VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 # VITE_APP_BASE_API = 'http://192.168.110.188:8899' # 朱银 -VITE_APP_BASE_API = 'http://192.168.110.180:8899' +# VITE_APP_BASE_API = 'http://192.168.110.180:8899' #曾涛 # VITE_APP_BASE_API = 'http://192.168.110.171:8899' diff --git a/src/api/materials/materialOutbound/index.ts b/src/api/materials/materialOutbound/index.ts new file mode 100644 index 0000000..ca53c82 --- /dev/null +++ b/src/api/materials/materialOutbound/index.ts @@ -0,0 +1,27 @@ +import request from '@/utils/request'; + +//获取出库材料得列表 +export const outboundMaterials = (query?: any) => { + return request({ + url: '/materials/materials/listRelevancy', + method: 'get', + params: query + }); +}; +//新增出库 +export const addOutbound = (data?: any) => { + return request({ + url: '/materials/materialsInventory', + method: 'post', + data + }); +}; + +//获取材料列表 +export const getMaterialsList = (query?: any) => { + return request({ + url: '/materials/materials/list', + method: 'get', + params: query + }); +}; diff --git a/src/api/materials/materialsUseRecord/types.ts b/src/api/materials/materialsUseRecord/types.ts index 697f347..19df92b 100644 --- a/src/api/materials/materialsUseRecord/types.ts +++ b/src/api/materials/materialsUseRecord/types.ts @@ -33,7 +33,6 @@ export interface MaterialsUseRecordVO { * 备注 */ remark: string; - } export interface MaterialsUseRecordForm extends BaseEntity { @@ -71,11 +70,9 @@ export interface MaterialsUseRecordForm extends BaseEntity { * 备注 */ remark?: string; - } export interface MaterialsUseRecordQuery extends PageQuery { - /** * 项目ID */ @@ -101,11 +98,9 @@ export interface MaterialsUseRecordQuery extends PageQuery { */ residueNumber?: string | number; - /** - * 日期范围参数 - */ - params?: any; + /** + * 日期范围参数 + */ + params?: any; + materialsId?: string | number; } - - - diff --git a/src/views/materials/materialOutbound/component/outbound.vue b/src/views/materials/materialOutbound/component/outbound.vue new file mode 100644 index 0000000..c182cee --- /dev/null +++ b/src/views/materials/materialOutbound/component/outbound.vue @@ -0,0 +1,90 @@ + + + diff --git a/src/views/materials/materialOutbound/index.vue b/src/views/materials/materialOutbound/index.vue new file mode 100644 index 0000000..91a54e3 --- /dev/null +++ b/src/views/materials/materialOutbound/index.vue @@ -0,0 +1,148 @@ + + + + + diff --git a/src/views/materials/materialsUseRecord/index.vue b/src/views/materials/materialsUseRecord/index.vue index 494f0a7..a8da5f4 100644 --- a/src/views/materials/materialsUseRecord/index.vue +++ b/src/views/materials/materialsUseRecord/index.vue @@ -1,84 +1,101 @@