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" > - + - - - - - + - - - - - - - - - - - - + + + - + - + - - - +