| 
														
															@@ -54,7 +54,7 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 </template> 
														 | 
														
														 | 
														
															 </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 <script> 
														 | 
														
														 | 
														
															 <script> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import Header from "@/components/Header"; 
														 | 
														
														 | 
														
															 import Header from "@/components/Header"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import { getContent } from "@/api/ajax"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import { LearnWebSI } from "@/api/ajax"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import { getToken } from '@/utils/auth' 
														 | 
														
														 | 
														
															 import { getToken } from '@/utils/auth' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 export default { 
														 | 
														
														 | 
														
															 export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     name: "courselist", 
														 | 
														
														 | 
														
															     name: "courselist", 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -100,12 +100,13 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         onSubmit () { 
														 | 
														
														 | 
														
															         onSubmit () { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if(this.discountNumber){ 
														 | 
														
														 | 
														
															             if(this.discountNumber){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 this.loading = true; 
														 | 
														
														 | 
														
															                 this.loading = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                let MethodName = 'book-book_manager-BatchCreateDiscountCodeForBook' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                let MethodName = 'order-discount_manager-BatchCreateDiscountCodeFoGoods' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 let data = { 
														 | 
														
														 | 
														
															                 let data = { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    book_id:this.bookId, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    goods_id:this.bookId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    goods_type:101, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     count:Number(this.discountNumber) 
														 | 
														
														 | 
														
															                     count:Number(this.discountNumber) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                getContent(MethodName, data) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                LearnWebSI(MethodName, data) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 .then((res) => { 
														 | 
														
														 | 
														
															                 .then((res) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     this.$message.success("操作成功"); 
														 | 
														
														 | 
														
															                     this.$message.success("操作成功"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     this.discountNumber = null 
														 | 
														
														 | 
														
															                     this.discountNumber = null 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -129,14 +130,15 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }, 
														 | 
														
														 | 
														
															         }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // 查询数据列表 
														 | 
														
														 | 
														
															         // 查询数据列表 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         getList () { 
														 | 
														
														 | 
														
															         getList () { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            let MethodName = "page_query-PageQueryBookDiscountCodeList"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            let MethodName = "page_query-PageQueryGoodsDiscountCodeList"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             let data = { 
														 | 
														
														 | 
														
															             let data = { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                book_id: this.bookId, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                goods_id: this.bookId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                goods_type: 101, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 page_capacity: this.page_capacity, 
														 | 
														
														 | 
														
															                 page_capacity: this.page_capacity, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 cur_page: this.currentPage, 
														 | 
														
														 | 
														
															                 cur_page: this.currentPage, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 use_status:-1 
														 | 
														
														 | 
														
															                 use_status:-1 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }; 
														 | 
														
														 | 
														
															             }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            getContent(MethodName, data).then( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            LearnWebSI(MethodName, data).then( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 (res) => { 
														 | 
														
														 | 
														
															                 (res) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     let _this = this; 
														 | 
														
														 | 
														
															                     let _this = this; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     _this.tableData = res.discount_code_list; 
														 | 
														
														 | 
														
															                     _this.tableData = res.discount_code_list; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -159,11 +161,13 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 type: "warning", 
														 | 
														
														 | 
														
															                 type: "warning", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }) 
														 | 
														
														 | 
														
															             }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 .then(() => { 
														 | 
														
														 | 
														
															                 .then(() => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    let MethodName = "book-book_manager-DeleteBookDiscountCode"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    let MethodName = "order-discount_manager-DeleteGoodsDiscountCode"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     let data = { 
														 | 
														
														 | 
														
															                     let data = { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                        id: row.id, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        goods_id:this.bookId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        goods_type:101, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        discount_code_id: row.id, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     }; 
														 | 
														
														 | 
														
															                     }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    getContent(MethodName, data).then( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    LearnWebSI(MethodName, data).then( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         (res) => { 
														 | 
														
														 | 
														
															                         (res) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             this.currentPage = 1; 
														 | 
														
														 | 
														
															                             this.currentPage = 1; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                             this.getList() 
														 | 
														
														 | 
														
															                             this.getList() 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -190,13 +194,14 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 UserType = user.user_type; 
														 | 
														
														 | 
														
															                 UserType = user.user_type; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 SessionID = user.session_id; 
														 | 
														
														 | 
														
															                 SessionID = user.session_id; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            let MethodName = "data_export-ExportBookDiscountCodeList" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            let MethodName = "data_export-ExportGoodsDiscountCodeList" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             let data = { 
														 | 
														
														 | 
														
															             let data = { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                book_id: this.bookId, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                goods_id: this.bookId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                goods_type: 101, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 use_status:this.exportRadio 
														 | 
														
														 | 
														
															                 use_status:this.exportRadio 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             window.open(process.env.VUE_APP_BASE_API + 
														 | 
														
														 | 
														
															             window.open(process.env.VUE_APP_BASE_API + 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    `/GCLSBookWebSI/ServiceInterface?MethodName=${MethodName}&UserCode=${UserCode}&UserType=${UserType}&SessionID=${SessionID}&Parameter=${encodeURIComponent(JSON.stringify(data))}`)  
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    `/GCLSLearnWebSI/ServiceInterface?MethodName=${MethodName}&UserCode=${UserCode}&UserType=${UserType}&SessionID=${SessionID}&Parameter=${encodeURIComponent(JSON.stringify(data))}`)  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.exportLoading = false 
														 | 
														
														 | 
														
															             this.exportLoading = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 |