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(() => {