hcf 1 жил өмнө
parent
commit
323848aee8

+ 3 - 1
src/views/audit/distributor/index.vue

@@ -388,8 +388,10 @@
 		//点击树获取数据
 		//点击树获取数据
 		onChangeTree(e : any) {
 		onChangeTree(e : any) {
 			this.categoryIds = e.id;
 			this.categoryIds = e.id;
+			var ids:any = e.id;
+			if(e.id[0]==0) ids = 0;
 			let loading = this.$loading({ target: '.main-container' });
 			let loading = this.$loading({ target: '.main-container' });
-			api.byCategoryPage({ categoryId: e.id, type: 2 }, 'maindataOrganizationCategory').then((res : any) => {
+			api.byCategoryPage({ categoryId: ids, type: 2 }, 'maindataOrganizationCategory').then((res : any) => {
 				if (res.code === 200) {
 				if (res.code === 200) {
 					(this.$refs.moduleView as any).setTableValue(res.data.records);
 					(this.$refs.moduleView as any).setTableValue(res.data.records);
 					let page = {
 					let page = {

+ 3 - 1
src/views/audit/manufacturer/index.vue

@@ -392,8 +392,10 @@
 		//点击树获取数据
 		//点击树获取数据
 		onChangeTree(e : any) {
 		onChangeTree(e : any) {
 			this.categoryIds = e.id;
 			this.categoryIds = e.id;
+			var ids:any = e.id;
+			if(e.id[0]==0) ids = 0;
 			let loading = this.$loading({ target: '.main-container' });
 			let loading = this.$loading({ target: '.main-container' });
-			api.byCategoryPage({ categoryId: e.id, type: 3 }, 'maindataOrganizationCategory').then((res : any) => {
+			api.byCategoryPage({ categoryId: ids, type: 3 }, 'maindataOrganizationCategory').then((res : any) => {
 				if (res.code === 200) {
 				if (res.code === 200) {
 					(this.$refs.moduleView as any).setTableValue(res.data.records);
 					(this.$refs.moduleView as any).setTableValue(res.data.records);
 					let page = {
 					let page = {

+ 3 - 1
src/views/audit/supplier/index.vue

@@ -386,8 +386,10 @@
 		//点击树获取数据
 		//点击树获取数据
 		onChangeTree(e : any) {
 		onChangeTree(e : any) {
 			this.categoryIds = e.id;
 			this.categoryIds = e.id;
+			var ids:any = e.id;
+			if(e.id[0]==0) ids = 0;
 			let loading = this.$loading({ target: '.main-container' });
 			let loading = this.$loading({ target: '.main-container' });
-			api.byCategoryPage({ categoryId: e.id, type: 1 }, 'maindataOrganizationCategory').then((res : any) => {
+			api.byCategoryPage({ categoryId: ids, type: 1 }, 'maindataOrganizationCategory').then((res : any) => {
 				if (res.code === 200) {
 				if (res.code === 200) {
 					(this.$refs.moduleView as any).setTableValue(res.data.records);
 					(this.$refs.moduleView as any).setTableValue(res.data.records);
 					let page = {
 					let page = {