Explorar el Código

商品同步、商品关联

ymy hace 2 años
padre
commit
c07578c58f
Se han modificado 1 ficheros con 19 adiciones y 3 borrados
  1. 19 3
      src/views/audit/productManagement/index.vue

+ 19 - 3
src/views/audit/productManagement/index.vue

@@ -97,6 +97,7 @@
 			</div>
 		</transition-group>
 		<import-product ref="importProduct" />
+		<synchronous-orderModal ref="synchronousOrderModal" @handleSuccess="handleSuccess" />
 	</div>
 </template>
 <script lang="ts">
@@ -105,7 +106,8 @@
 	import other from '@/api/other'
 	import ForTab from "@/components/ForTab/index.vue";
 	import ImportProduct from "./components/importProduct.vue";
-	@Component({ components: { ForTab, ImportProduct } })
+	import SynchronousOrderModal from "./components/synchronousOrderModal.vue";
+	@Component({ components: { ForTab, ImportProduct,SynchronousOrderModal } })
 	export default class productManagement extends Vue {
 		tagsData : any = [] // 标签值
 		isShow = 'home'
@@ -785,9 +787,16 @@
 					refresh: true
 				},
 				customTools: [
+				{
+						name: '商品同步', icon: 'el-icon-setting', event:{
+							click:()=>{
+								(this.$refs.synchronousOrderModal as any).setShow(true);
+							}
+						}
+					},
 					{
-						name: '商品同步', icon: 'el-icon-setting', event: {
-							click: () => {
+						name: '关联商品', icon: 'el-icon-setting', event:{
+							click:()=>{
 								(this.$refs.importProduct as any).setShow(true);
 							}
 						}
@@ -868,6 +877,13 @@
 				this.getDataList()
 			}, 500)
 		}
+		//商品同步成功
+		handleSuccess(){
+			let page = (this.$refs.moduleView as any).getPage();
+			page.pageNo = 1;
+			(this.$refs.moduleView as any).setPage(page);
+			this.getDataList()
+		}
 		// 监听单表格数据
 		getSingleValue(e : any) {
 			// console.log(e);