From 437b924667fafecbf16df6a4e5024f07274d1327 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 9 Jun 2022 14:02:36 +0800 Subject: [PATCH] 0609danweimaterialcnumber --- hb_client/src/components/customForm/index.vue | 2 +- .../src/components/customForm/review.vue | 2 +- hb_client/src/views/inm/fifo.vue | 605 +++++++++--------- hb_client/src/views/mtm/material.vue | 21 +- hb_client/src/views/mtm/productList.vue | 21 +- hb_client/src/views/mtm/step.vue | 42 +- hb_client/src/views/mtm/wproductList.vue | 21 +- 7 files changed, 415 insertions(+), 299 deletions(-) diff --git a/hb_client/src/components/customForm/index.vue b/hb_client/src/components/customForm/index.vue index 8eadbca..2d4338d 100644 --- a/hb_client/src/components/customForm/index.vue +++ b/hb_client/src/components/customForm/index.vue @@ -3,7 +3,7 @@ diff --git a/hb_client/src/components/customForm/review.vue b/hb_client/src/components/customForm/review.vue index 5dc5417..b151cac 100644 --- a/hb_client/src/components/customForm/review.vue +++ b/hb_client/src/components/customForm/review.vue @@ -3,7 +3,7 @@ diff --git a/hb_client/src/views/inm/fifo.vue b/hb_client/src/views/inm/fifo.vue index 160e457..8331f0c 100644 --- a/hb_client/src/views/inm/fifo.vue +++ b/hb_client/src/views/inm/fifo.vue @@ -62,8 +62,8 @@ height="100" v-el-height-adaptive-table="{ bottomOffset: 42 }" > - - + + - + diff --git a/hb_client/src/views/mtm/material.vue b/hb_client/src/views/mtm/material.vue index 5abc29d..4cb2a7f 100644 --- a/hb_client/src/views/mtm/material.vue +++ b/hb_client/src/views/mtm/material.vue @@ -261,8 +261,7 @@ }, { value: '套', label: '套' - }, - { + }, { value: '个', label: '个' }, { @@ -271,6 +270,24 @@ }, { value: '瓶', label: '瓶' + }, { + value: 'g', + label: 'g' + }, { + value: 'kg', + label: 'kg' + }, { + value: '卷', + label: '卷' + }, { + value: '张', + label: '张' + }, { + value: '支', + label: '支' + }, { + value: '袋', + label: '袋' }, ], listQuery: { diff --git a/hb_client/src/views/mtm/productList.vue b/hb_client/src/views/mtm/productList.vue index f0dfaeb..7e7750e 100644 --- a/hb_client/src/views/mtm/productList.vue +++ b/hb_client/src/views/mtm/productList.vue @@ -216,8 +216,7 @@ }, { value: '套', label: '套' - }, - { + }, { value: '个', label: '个' }, { @@ -226,6 +225,24 @@ }, { value: '瓶', label: '瓶' + }, { + value: 'g', + label: 'g' + }, { + value: 'kg', + label: 'kg' + }, { + value: '卷', + label: '卷' + }, { + value: '张', + label: '张' + }, { + value: '支', + label: '支' + }, { + value: '袋', + label: '袋' }, ], listQuery: { diff --git a/hb_client/src/views/mtm/step.vue b/hb_client/src/views/mtm/step.vue index b12d695..fc91076 100644 --- a/hb_client/src/views/mtm/step.vue +++ b/hb_client/src/views/mtm/step.vue @@ -245,7 +245,8 @@ :model="tableForm" :close-on-click-modal="false" :visible.sync="dialogVisibleForm" - :title="tableForm.name"> + :title="tableForm.name" + > + + + + tupian + + + @@ -428,6 +436,20 @@ + + + + + + @@ -496,6 +518,7 @@ field_name: '', sort: '', field_choice: [""], + draw_template:'' }, field_choice: [''], options: [], @@ -585,6 +608,10 @@ { value: 'selects', label: '多选' + }, + { + value: 'draw', + label: '绘图模板' } ], formList:[], @@ -796,7 +823,18 @@ .catch(() => { }); } - + }, + handleAvatarSuccess(res, file) { + debugger; + console.log(res) + this.field.draw_template = res.data.path; + }, + beforeAvatarUpload(file) { + const isLt2M = file.size / 1024 / 1024 < 2; + if (!isLt2M) { + this.$message.error("上传头像图片大小不能超过 2MB!"); + } + return isLt2M; }, //新增字段 handlefieldCreate() { diff --git a/hb_client/src/views/mtm/wproductList.vue b/hb_client/src/views/mtm/wproductList.vue index b81c9ab..07dd963 100644 --- a/hb_client/src/views/mtm/wproductList.vue +++ b/hb_client/src/views/mtm/wproductList.vue @@ -190,8 +190,7 @@ }, { value: '套', label: '套' - }, - { + }, { value: '个', label: '个' }, { @@ -200,6 +199,24 @@ }, { value: '瓶', label: '瓶' + }, { + value: 'g', + label: 'g' + }, { + value: 'kg', + label: 'kg' + }, { + value: '卷', + label: '卷' + }, { + value: '张', + label: '张' + }, { + value: '支', + label: '支' + }, { + value: '袋', + label: '袋' }, ], listQuery: {