From 957429b52fcb50ce7db71993bbae7b6d2a191418 Mon Sep 17 00:00:00 2001 From: chenshuichuan <1154693969@qq.com> Date: Fri, 9 Aug 2024 19:08:12 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=A4=87=E4=BB=B6=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/erp/product/product/index.ts | 4 ++ src/views/erp/component/in/StockInForm.vue | 2 + .../in/components/StockInItemForm.vue | 22 +++--- src/views/erp/component/in/index.vue | 68 +++++-------------- src/views/erp/component/out/StockOutForm.vue | 32 ++------- .../out/components/StockOutItemForm.vue | 22 +++--- src/views/erp/component/out/index.vue | 68 ++++--------------- .../erp/component/product/ProductForm.vue | 58 +++------------- src/views/erp/component/product/index.vue | 12 ++-- src/views/erp/component/record/index.vue | 65 +++--------------- src/views/erp/component/stock/index.vue | 44 ++---------- src/views/erp/product/product/ProductForm.vue | 3 +- .../stock/in/components/StockInItemForm.vue | 6 +- .../stock/out/components/StockOutItemForm.vue | 6 +- .../mes/bom/components/BomDetailForm.vue | 8 ++- 15 files changed, 107 insertions(+), 313 deletions(-) diff --git a/src/api/erp/product/product/index.ts b/src/api/erp/product/product/index.ts index 7a29c6bd..b2fbf6e5 100644 --- a/src/api/erp/product/product/index.ts +++ b/src/api/erp/product/product/index.ts @@ -41,6 +41,10 @@ export const ProductApi = { getMesProductSimpleList: async () => { return await request.get({ url: `/erp/product/simple-list-product` }) }, + // 查询备件精简列表 + getComponentSimpleList: async () => { + return await request.get({ url: `/erp/product/simple-list-component` }) + }, // 查询产品详情 getProduct: async (id: number) => { diff --git a/src/views/erp/component/in/StockInForm.vue b/src/views/erp/component/in/StockInForm.vue index 8bb35a0f..207bb34b 100644 --- a/src/views/erp/component/in/StockInForm.vue +++ b/src/views/erp/component/in/StockInForm.vue @@ -17,6 +17,7 @@ { formLoading.value = false } } + formData.value.inType = "备件入库" // 加载供应商列表 supplierList.value = await SupplierApi.getSupplierSimpleList() } diff --git a/src/views/erp/component/in/components/StockInItemForm.vue b/src/views/erp/component/in/components/StockInItemForm.vue index 53a2fd2d..1dbac30c 100644 --- a/src/views/erp/component/in/components/StockInItemForm.vue +++ b/src/views/erp/component/in/components/StockInItemForm.vue @@ -34,7 +34,7 @@ - + - + - + - + diff --git a/src/views/erp/component/out/StockOutForm.vue b/src/views/erp/component/out/StockOutForm.vue index ddea4f43..c1e66d1a 100644 --- a/src/views/erp/component/out/StockOutForm.vue +++ b/src/views/erp/component/out/StockOutForm.vue @@ -14,24 +14,7 @@ - - - - - - - + - - - - - - - + @@ -129,7 +107,6 @@ const formRules = reactive({ }) const disabled = computed(() => formType.value === 'detail') const formRef = ref() // 表单 Ref -const customerList = ref([]) // 客户列表 const options = [ { value: '其他出库', @@ -174,8 +151,7 @@ const open = async (type: string, id?: number) => { formLoading.value = false } } - // 加载客户列表 - customerList.value = await CustomerApi.getCustomerSimpleList() + formData.value.outType = "备件出库" } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 diff --git a/src/views/erp/component/out/components/StockOutItemForm.vue b/src/views/erp/component/out/components/StockOutItemForm.vue index b09a5695..c43289e0 100644 --- a/src/views/erp/component/out/components/StockOutItemForm.vue +++ b/src/views/erp/component/out/components/StockOutItemForm.vue @@ -34,7 +34,7 @@ - + - + - + - + diff --git a/src/views/erp/component/product/ProductForm.vue b/src/views/erp/component/product/ProductForm.vue index e013f828..610d5876 100644 --- a/src/views/erp/component/product/ProductForm.vue +++ b/src/views/erp/component/product/ProductForm.vue @@ -10,28 +10,16 @@ > - + - - - - - - - + + + @@ -73,16 +61,6 @@ /> - - - - - - - - - - - + diff --git a/src/views/erp/component/record/index.vue b/src/views/erp/component/record/index.vue index 7814859c..d52ac691 100644 --- a/src/views/erp/component/record/index.vue +++ b/src/views/erp/component/record/index.vue @@ -10,12 +10,12 @@ :inline="true" label-width="68px" > - + - - - - - + - - - - - - - - - - - - + + + - + - + - - - +