Преглед изворни кода

物资-入库限制包装规格只能输入除0外的正整数

huangguoce пре 6 дана
родитељ
комит
e5b1a81306
1 измењених фајлова са 9 додато и 0 уклоњено
  1. 9 0
      src/views/psiManagement/wareHouse/WareHouseUpdateForm.vue

+ 9 - 0
src/views/psiManagement/wareHouse/WareHouseUpdateForm.vue

@@ -347,6 +347,9 @@ export default {
 				],
 				tradeNumber: [
 					{ required: true, message: '商品数量不能为空' }
+				],
+				spec: [
+					{ required: true, message: '包装规格不能为空' }
 				]
 			},
 			title: '',
@@ -740,6 +743,12 @@ export default {
 							this.inputForm.functionFlag = ''
 							return
 						}
+						if (this.commonJS.isEmpty(this.inputForm.wareHouse[j].spec)) {
+							this.$message.error('入库详情第' + k + '行请填写包装规格')
+							this.loading = false
+							this.inputForm.functionFlag = ''
+							return
+						}
 					}
 					for (let j = 0; j < i; j++) {
 						for (let k = j + 1; k < i; k++) {