From 7d1bb40fd0c3b2ac9904adcab5358825f4448913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAPTOP-S9HJSOEB=5C=E6=98=8A=E5=A4=A9?= Date: Tue, 11 Nov 2025 14:48:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=93=81=E8=A7=84=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/http/http-api.js | 5 ++ src/router/index.js | 9 ++++ src/views/productSpecManage/index.vue | 39 ++++++++------- src/views/productSpecManage/model.vue | 68 +++++++++++++++++++++++++++ 4 files changed, 104 insertions(+), 17 deletions(-) diff --git a/src/api/http/http-api.js b/src/api/http/http-api.js index 0121a94..9d54bda 100644 --- a/src/api/http/http-api.js +++ b/src/api/http/http-api.js @@ -177,6 +177,11 @@ export default { name: '复核页面的核对信息', method: 'POST' }, + fatherList: { + url: '/category/fatherList', + name: '品规信息', + method: 'GET' + }, getCategoryList: { url: '/stock/getCategoryList', name: '品规信息', diff --git a/src/router/index.js b/src/router/index.js index 76d3bf3..241001a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -164,6 +164,15 @@ const routes = [{ }, component: () => import('@/views/cameraManage/model') }, + { + path: 'productSpecManage', + name: 'productSpecManage', + meta: { + icon: 'pushpin', + name: '品规管理' + }, + component: () => import('@/views/productSpecManage/index') + }, // { // path: 'productSpecManage', // name: 'productSpecManage', diff --git a/src/views/productSpecManage/index.vue b/src/views/productSpecManage/index.vue index 0942633..822c73a 100644 --- a/src/views/productSpecManage/index.vue +++ b/src/views/productSpecManage/index.vue @@ -4,23 +4,7 @@ 新增 - - - 导入 - - - - 模板下载 - + { }); + }, categoryExportModel() { this.$api.httpApi.categoryExportModel({ diff --git a/src/views/productSpecManage/model.vue b/src/views/productSpecManage/model.vue index bfd9dc2..59c6b55 100644 --- a/src/views/productSpecManage/model.vue +++ b/src/views/productSpecManage/model.vue @@ -32,6 +32,56 @@ v-decorator="['code', { rules: [{ required: true, message: '请输入条码!' }] }]" /> + + + + + + + + + + + + + + + + + {{ item }} + + + @@ -68,6 +118,11 @@ export default { this.form.setFieldsValue({ //setFieldsValue 表示对form表单重新设置值 name:newVal.name, code:newVal.code, + count:newVal.count, + father:newVal.father, + degree:newVal.degree, + milliliter:newVal.milliliter, + number:newVal.number, ip:newVal.ip, rtsp:newVal.rtsp }) @@ -79,6 +134,7 @@ export default { }, data() { return { + fathers:[], isShow:false, type:'', title:'', @@ -93,8 +149,20 @@ export default { }, mounted() { console.log('mounted执行了') + this.request() + }, methods: { + request(){ + this.$api.httpApi.fatherList({ + + }).then(res => { + this.fathers = res.data + }).catch(err => { + + }); + }, + handleOk() { this.confirmLoading = true; setTimeout(() => {