소스 검색

商品条码加上69码

hcf 1 년 전
부모
커밋
8282d73828
2개의 변경된 파일16개의 추가작업 그리고 16개의 파일을 삭제
  1. 10 10
      src/views/audit/productManagement/index.vue
  2. 6 6
      src/views/audit/sku/index.vue

+ 10 - 10
src/views/audit/productManagement/index.vue

@@ -279,7 +279,7 @@
 						{ required: true, message: '请输入物料编码'}
 					],
 					barCode: [
-						{ required: true, message: '请输入商品条码'}
+						{ required: true, message: '请输入69码-商品条码'}
 					]
 				}
 			},
@@ -321,11 +321,11 @@
 					}
 				},
 				{
-					// width: '110px',
+					width: '110px',
 					title: '69码-商品条码(必填项)',
 					field: 'barCode',
 					component: 'by-input',
-					width:110,
+					// width:110,
 					compConfig: {
 						attr: {
 							size: 'mini',
@@ -498,7 +498,7 @@
 						{ required: true, message: '请输入物料编码'}
 					],
 					barCode: [
-						{ required: true, message: '请输入商品条码'}
+						{ required: true, message: '请输入69码-商品条码'}
 					]
 				}
 			},
@@ -540,8 +540,8 @@
 					}
 				},
 				{
-					width: '150px',
-					title: '商品条码(必填项)',
+					width: '110px',
+					title: '69码-商品条码(必填项)',
 					field: 'barCode',
 					component: 'by-input',
 					compConfig: {
@@ -1260,9 +1260,9 @@
 						(this.$refs.table as any).validate();
 						if (!v.skuTitle) return this.$message.warning('物料标题必填');
 						if (!v.skuCode) return this.$message.warning('物料编码必填');
-						if (!v.barCode) return this.$message.warning('物料属性的商品条码需必填');
+						if (!v.barCode) return this.$message.warning('物料属性的69码-商品条码需必填');
 						if (!/^\d{1,32}$/.test(v.barCode)){
-							return this.$message.warning('商品条码为数字,最大32位');
+							return this.$message.warning('69码-商品条码为数字,最大32位');
 						}
 						// if(v.weight&&v.weight!=0){
 						// 	v.weight = v.weight/1000
@@ -1313,9 +1313,9 @@
 						(this.$refs.singeTable as any).validate();
 						if (!v.skuTitle) return this.$message.warning('物料属性的标题需必填');
 						if (!v.skuCode) return this.$message.warning('物料属性的物料编码需必填');
-						if (!v.barCode) return this.$message.warning('物料属性的商品条码需必填');
+						if (!v.barCode) return this.$message.warning('物料属性的69码-商品条码需必填');
 						if (!/^\d{1,32}$/.test(v.barCode)){
-							return this.$message.warning('商品条码为数字,最大32位');
+							return this.$message.warning('69码-商品条码为数字,最大32位');
 						}
 						
 						// if(v.weight&&v.weight!=0){

+ 6 - 6
src/views/audit/sku/index.vue

@@ -53,7 +53,7 @@
 						{ required: true, message: '请输入物料编码'}
 					],
 					barCode: [
-						{ required: true, message: '请输入商品条码'}
+						{ required: true, message: '请输入69码-商品条码'}
 					]
 				}
 			},
@@ -98,8 +98,8 @@
 
 				},
 				{
-					width: '140px',
-					title: '商品条码(必填项)',
+					width: '110px',
+					title: '69码-商品条码(必填项)',
 					field: 'barCode',
 					component: 'by-input',
 					compConfig: {
@@ -315,7 +315,7 @@
 					},
 					{
 						width: '140px',
-						title: '商品条码',
+						title: '69码-商品条码',
 						field: 'barCode',
 					},
 					{
@@ -455,9 +455,9 @@
 			(this.$refs.addFormId as any).validate();
 			if (!data[0].skuTitle) return this.$message.warning('物料标题不能为空');
 			if (!data[0].skuCode) return this.$message.warning('物料编号不能为空');
-			if (!data[0].barCode) return this.$message.warning('物料属性的商品条码需必填');
+			if (!data[0].barCode) return this.$message.warning('物料属性的69码-商品条码需必填');
 			if (!/^\d{1,32}$/.test(data[0].barCode)){
-				return this.$message.warning('商品条码为数字,最大32位');
+				return this.$message.warning('69码-商品条码为数字,最大32位');
 			}
 			api.updateList(data[0], 'maindataMaterialSku').then((res : any) => {
 				if (res.code === 200) {