From f281afc3ae596f649340bfc592b746917e28d701 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期四, 12 三月 2026 17:06:30 +0800
Subject: [PATCH] Merge branch 'dev_银川_中盛建材' of http://114.132.189.42:9002/r/product-inventory-management into dev_银川_中盛建材
---
src/api/basicData/newProduct.js | 126 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 126 insertions(+), 0 deletions(-)
diff --git a/src/api/basicData/newProduct.js b/src/api/basicData/newProduct.js
new file mode 100644
index 0000000..186f343
--- /dev/null
+++ b/src/api/basicData/newProduct.js
@@ -0,0 +1,126 @@
+// 浜у搧缁存姢椤甸潰鎺ュ彛
+import request from '@/utils/request'
+
+// 浜у搧鏍戞煡璇�
+export function productTreeList(query) {
+ return request({
+ url: '/productMaterial/list',
+ method: 'get',
+ params: query
+ })
+}
+// 浜у搧瀛愮被鏂板
+export function addOrEditProduct(query) {
+ return request({
+ url: '/productMaterial/add',
+ method: 'post',
+ data: query
+ })
+}
+// 浜у搧瀛愮被淇敼
+export function updateOrEditProduct(query) {
+ return request({
+ url: '/productMaterial/update',
+ method: 'put',
+ data: query
+ })
+}
+// 瑙勬牸鍨嬪彿鏂板
+export function addOrEditProductModel(query) {
+ return request({
+ url: '/productMaterialSku/add',
+ method: 'post',
+ data: query
+ })
+}
+// 瑙勬牸鍨嬪彿淇敼
+export function updateOrEditProductModel(query) {
+ return request({
+ url: '/productMaterialSku/update',
+ method: 'put',
+ data: query
+ })
+}
+// 浜у搧瀛愮被鍒犻櫎
+export function delProduct(query) {
+ return request({
+ url: '/productMaterial/delete',
+ method: 'delete',
+ data: query
+ })
+}
+// 瑙勬牸鍨嬪彿鍒犻櫎
+export function delProductModel(query) {
+ return request({
+ url: '/productMaterialSku/delete',
+ method: 'delete',
+ data: query
+ })
+}
+// 瑙勬牸鍨嬪彿鏌ヨ
+export function modelList(query) {
+ return request({
+ url: '/basic/product/modelList',
+ method: 'get',
+ params: query
+ })
+}
+export function modelListPage(query) {
+ return request({
+ url: '/productMaterialSku/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 涓嬭浇浜у搧瀵煎叆妯℃澘
+export function downloadProductModelImportTemplate() {
+ return request({
+ url: '/productMaterialSku/downloadTemplate',
+ method: 'post',
+ responseType: 'blob'
+ })
+}
+
+// 浜у搧澶х被鏂板
+export function addOrEditProductConfig(query) {
+ return request({
+ url: '/productMaterial/config/add',
+ method: 'post',
+ data: query
+ })
+}
+// 浜у搧澶х被淇敼
+export function updateOrEditProductConfig(query) {
+ return request({
+ url: '/productMaterial/config/update',
+ method: 'put',
+ data: query
+ })
+}
+
+// 浜у搧澶х被鍒犻櫎
+export function delProductConfig(query) {
+ return request({
+ url: '/productMaterial/config/delete',
+ method: 'delete',
+ data: query
+ })
+}
+
+// 浜у搧鐗╂枡淇℃伅-瀛樿揣绫诲埆鏁版嵁闆嗗悎
+export function getinventoryCategoryList(query) {
+ return request({
+ url: '/productMaterial/inventoryCategoryList',
+ method: 'get',
+ params: query
+ })
+}
+// 浜у搧鐗╂枡淇℃伅-鐗╂枡绫诲瀷鏁版嵁闆嗗悎
+export function getmaterialTypeList(query) {
+ return request({
+ url: '/productMaterial/materialTypeList',
+ method: 'get',
+ params: query
+ })
+}
\ No newline at end of file
--
Gitblit v1.9.3