diff --git a/src/views/modules/part/productGroupInformation.vue b/src/views/modules/part/productGroupInformation.vue index 29d49b1..43790de 100644 --- a/src/views/modules/part/productGroupInformation.vue +++ b/src/views/modules/part/productGroupInformation.vue @@ -105,7 +105,13 @@ - + + + + + + + @@ -176,7 +182,8 @@ export default { productGroupId: '', productGroupName: '', active: '', - type: '' + type: '', + showInQueryFlag: '' }, // ======== 数据列表 ======== dataList: [], @@ -252,6 +259,24 @@ export default { fixed: '', columnWidth: 100 }, + { + userId: this.$store.state.user.name, + functionId: 100007, + serialNumber: '100007Table1ShowInQueryFlag', + tableId: "100007Table1", + tableName: "商品组信息表", + columnProp: "showInQueryFlag", + headerAlign: "center", + align: "center", + columnLabel: '是否显示', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100 + }, { userId: this.$store.state.user.name, functionId: 100007, @@ -354,6 +379,13 @@ export default { trigger: 'change' } ], + showInQueryFlag:[ + { + required: true, + message: ' ', + trigger: 'change' + } + ], }, // ======== 模态框开关控制 ======== modalFlag: false, @@ -434,7 +466,8 @@ export default { productGroupId: '', productGroupName: '', active: 'Y', - type: '' + type: '', + showInQueryFlag: 'Y' } this.modalDisableFlag = false this.modalFlag = true @@ -452,6 +485,7 @@ export default { productGroupName: row.productGroupName, active: row.active, type: row.type, + showInQueryFlag: row.showInQueryFlag, updateBy: this.$store.state.user.name, } this.modalDisableFlag = true @@ -479,6 +513,10 @@ export default { this.$message.warning('请选择商品组!') return } + if (this.modalData.showInQueryFlag === '' || this.modalData.showInQueryFlag == null) { + this.$message.warning('请选择是否显示!') + return + } if (this.modalData.flag === '1') { productGroupInformationSave(this.modalData).then(({data}) => { if (data && data.code === 0) {