diff --git a/src/views/modules/partspare/partspare.vue b/src/views/modules/partspare/partspare.vue index 4969887..420ef5b 100644 --- a/src/views/modules/partspare/partspare.vue +++ b/src/views/modules/partspare/partspare.vue @@ -100,6 +100,7 @@ + - + @@ -128,73 +129,77 @@ - - - - - - + + + + + + - + - + - - + + + + + - - + + - + + + + - - + + - + - + - - - + + + 供应商编码 - + 仓库编码 - + - - 货位编码 货位编码 - + - - 确定 - 取消 - + + 确定 + 取消 + @@ -859,7 +864,7 @@ export default { trigger: ['blur','change'] } ], - groupId: [ + sCodeControlFlag: [ { required: true, message: ' ', @@ -978,7 +983,7 @@ export default { flag: '1', bu: this.userBuList[0].buNo, active: 'Y', - coreFlag: 'Y', + coreFlag: 'N', averagePrice: '', estUseQty: 0, locationId: '', @@ -986,7 +991,7 @@ export default { minStock: 0, partDescription: '', partNo: '', - sCodeControlFlag: '', + sCodeControlFlag: 'N', spec: '', supplierId: '', supplierName: '', @@ -1028,14 +1033,14 @@ export default { this.$message.warning('请选择BU!') return } - if (this.modalData.active === '' || this.modalData.active == null) { - this.$message.warning('请选择状态!') - return - } if (this.modalData.coreFlag === '' || this.modalData.coreFlag == null) { this.$message.warning('请选择是否核心备件!') return } + if (this.modalData.sCodeControlFlag === '' || this.modalData.sCodeControlFlag == null) { + this.$message.warning('请选择是否启用序列号管理!') + return + } if (this.modalData.partNo == null || this.modalData.partNo === '') { this.$message.warning("备品备件编码不能为空!") return @@ -1044,12 +1049,12 @@ export default { this.$message.warning("备品备件名称不能为空!") return } - if (this.modalData.spec == null || this.modalData.spec === '') { - this.$message.warning("规格型号不能为空!") + if (this.modalData.active === '' || this.modalData.active == null) { + this.$message.warning('请选择状态!') return } - if (this.modalData.groupId == null || this.modalData.groupId === '') { - this.$message.warning("产品组编码不能为空!") + if (this.modalData.spec == null || this.modalData.spec === '') { + this.$message.warning("规格型号不能为空!") return } if (this.modalData.averagePrice == null || this.modalData.averagePrice === '') {