From b2429057ae17e9f5b357435b0bff5f6cc0040b69 Mon Sep 17 00:00:00 2001 From: 石广澎 <shiguangpeng@163.com> Date: 星期五, 05 一月 2024 10:09:22 +0800 Subject: [PATCH] 1、分页查询问题修复 2、库管员选择问题修复 --- admin-web/src/views/foundation/material/specs/specsAdd.vue | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/admin-web/src/views/foundation/material/specs/specsAdd.vue b/admin-web/src/views/foundation/material/specs/specsAdd.vue index 7f5fdec..1534454 100644 --- a/admin-web/src/views/foundation/material/specs/specsAdd.vue +++ b/admin-web/src/views/foundation/material/specs/specsAdd.vue @@ -44,6 +44,7 @@ return { loading: false, formData: { + goodsTemplatesId: '', modelName: '', unit: '', states: 1, @@ -71,17 +72,14 @@ this.$refs.ruleForm.validate((valid) => { if (valid) { const params = Object.assign({}, this.formData) + params.goodsTemplatesId = this.setting.goodsTemplatesId if (this.loading) return this.loading = true addSpecs(params).then(res => { this.loading = false - if (res) { - this.$message.success('淇濆瓨鎴愬姛锛�') - this.close() - this.$emit('search') - } else { - this.$message.error('淇濆瓨澶辫触') - } + this.$message.success('淇濆瓨鎴愬姛锛�') + this.close() + this.$emit('search') }).catch(() => { this.loading = false }); -- Gitblit v1.9.1