From f3445bab3754296009d2400da91aac28c82c8c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Sat, 5 Nov 2022 23:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E4=B8=80=E6=AD=A5=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=A4=9Asku=E7=9A=84=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/material/modules/MaterialModal.vue | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/jshERP-web/src/views/material/modules/MaterialModal.vue b/jshERP-web/src/views/material/modules/MaterialModal.vue index 2dba6e73..df62da9f 100644 --- a/jshERP-web/src/views/material/modules/MaterialModal.vue +++ b/jshERP-web/src/views/material/modules/MaterialModal.vue @@ -121,9 +121,10 @@ - + + 需要先录入单位才能激活 + placeholder="请选择多属性(可多选)" @change="onManySkuChange" v-show="manySkuStatus"> {{ item.name }} @@ -301,6 +302,7 @@ unitStatus: false, manyUnitStatus: true, unitChecked: false, + manySkuStatus: false, switchDisabled: false, //开关的启用状态 barCodeSwitch: false, //生成条码开关 maxBarCodeInfo: '', //最大条码 @@ -430,8 +432,9 @@ this.activeKey = '1' this.manySkuSelected = 0 this.barCodeSwitch = false + this.manySkuStatus = false this.maxBarCodeInfo = '' - this.visible = true; + this.visible = true if(JSON.stringify(record) === '{}') { this.fileList = [] } else { @@ -1020,6 +1023,12 @@ } }, onlyUnitOnChange(e) { + if(e.target.value) { + //单位有填写了之后则显示多属性的文本框 + this.manySkuStatus = true + } else { + this.manySkuStatus = false + } this.$refs.editableMeTable.getValues((error, values) => { let mArr = values for (let i = 0; i < mArr.length; i++) { @@ -1111,4 +1120,13 @@ max-width: 100%; min-width: 1550px; } + .tag-info { + font-size:14px; + height:32px; + line-height:32px; + width:100%; + padding: 0px 11px; + color: #bbb; + background-color: #ffffff; + } \ No newline at end of file