Browse Source

商品管理优化

hcf 1 năm trước cách đây
mục cha
commit
f19d54ddc9
1 tập tin đã thay đổi với 10 bổ sung6 xóa
  1. 10 6
      src/views/audit/productManagement/index.vue

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

@@ -276,7 +276,7 @@
 			columns: [
 				{
 					// width: '150px',
-					title: '标题',
+					title: '标题(必填项)',
 					field: 'skuTitle',
 					component: 'by-input',
 					compConfig: {
@@ -300,7 +300,7 @@
 				},
 				{
 					// width: '150px',
-					title: '物料编码',
+					title: '物料编码(必填项)',
 					field: 'skuCode',
 					component: 'by-input',
 					compConfig: {
@@ -471,7 +471,7 @@
 			columns: [
 				{
 					width: '160px',
-					title: '标题',
+					title: '标题(必填项)',
 					field: 'skuTitle',
 					component: 'by-input',
 					compConfig: {
@@ -495,7 +495,7 @@
 				},
 				{
 					width: '140px',
-					title: '物料编码',
+					title: '物料编码(必填项)',
 					field: 'skuCode',
 					component: 'by-input',
 					compConfig: {
@@ -1107,7 +1107,7 @@
 			this.tableSearchForm.stime = '2020-01-01';
 			this.tableSearchForm.etime = y+'-'+m+'-'+d;
 			this.etime = y+'-'+m+'-'+d;
-			// this.getFinancialCode()
+			this.getFinancialCode()
 			this.getTreeList();
 		}
 		getTreeList(){
@@ -1216,6 +1216,8 @@
 						// if (parseInt(v.width) <= 0) return this.$message.warning('物料属性宽度不能小于1');
 						// if (!v.height) return this.$message.warning('物料属性高度必填');
 						// if (parseInt(v.height) <= 0) return this.$message.warning('物料属性高度不能小于1');
+						if (!v.skuTitle) return this.$message.warning('物料标题必填');
+						if (!v.skuCode) return this.$message.warning('物料编码必填');
 						if(v.weight&&v.weight!=0){
 							v.weight = v.weight/1000
 						}
@@ -1260,6 +1262,8 @@
 						// if (parseInt(v.width) <= 0) return this.$message.warning('物料宽不能小于1');
 						// if (!v.height) return this.$message.warning('物料高必填');
 						// if (parseInt(v.height) <= 0) return this.$message.warning('物料高不能小于1');
+						if (!v.skuTitle) return this.$message.warning('物料标题必填');
+						if (!v.skuCode) return this.$message.warning('物料编码必填');
 						
 						if(v.weight&&v.weight!=0){
 							v.weight = v.weight/1000
@@ -1655,7 +1659,7 @@
 		// 获取关联金蝶财务系统物料列表
 		getFinancialCode(){
 			this.tableloading = true;
-			api.syncMaterialByKingdeeToOms(this.tableSearchForm).then((res : any) => {
+			api.getFinancialCode(this.tableSearchForm).then((res : any) => {
 				if(res.code==200){
 					this.tableloading = false;
 					this.tableData = res.data