소스 검색

2022-02-21 19:15

王克恕 3 년 전
부모
커밋
149f849648

+ 3 - 1
imcs-ui/src/views/zuihou/runManageCenter/orderMgr/components/finishedOrder/index.vue

@@ -210,6 +210,8 @@
   import craftCards from "@/views/zuihou/runManageCenter/orderMgr/components/finishedOrder/components/craftCards/index"
 	// 【订单管理】-API
 	import orderMgrApi from "@/api/runManageCenter/orderMgr"
+	// 【计划管理】-API
+	import planMgrApi from "@/api/runManageCenter/planMgr"
 	import elDragDialog from '@/directive/el-drag-dialog'
 	import { initQueryParams } from '@/utils/commons'
 	export default {
@@ -467,7 +469,7 @@
 	      // 查询必须参数-已完成:orderstatus  = 3(当生产状态等于已完成的时候,同时设置订单状态已完成)
 	      // this.queryParams.model.orderStatus = '3'
 	      this.queryParams.model.planStatus = '3'
-	      orderMgrApi.page(this.queryParams).then(response => {
+	      planMgrApi.page(this.queryParams).then(response => {
 	        const res = response.data
 	        if (res.isSuccess) {
 	          this.tableData = res.data

+ 2 - 0
imcs-ui/src/views/zuihou/runManageCenter/orderMgr/components/runningOrder/components/PprogOrder.vue

@@ -254,6 +254,8 @@ export default {
 	    setTenant (val) {
 	    	if(val){
 	    		this.tenant = { ...val }
+	    		// 加载列表数据
+	    		this.fetch();
 	    	}
 	    },
     	

+ 12 - 0
imcs-ui/src/views/zuihou/runManageCenter/orderMgr/components/runningOrder/components/ProductionProgramme.vue

@@ -168,6 +168,16 @@ export default {
   		if(e.index == '0'){
   			this.$refs.resource.setEcharts()
   		}
+  		/*// 订单
+  		if(e.index == '1'){
+  			// 加载列表数据
+  			this.$refs.order.fetch()
+  		}
+  		// 任务
+  		if(e.index == '2'){
+  			// 加载列表数据
+  			this.$refs.task.getPageList()
+  		}*/
   	},
     initWidth () {
       this.screenWidth = document.body.clientWidth
@@ -185,6 +195,8 @@ export default {
     		// 查询【按任务查询】数据
     		this.$nextTick(() => {
     			this.$refs.task.setTenant(val)
+    			// 加载列表数据-订单数据
+  				this.$refs.order.getPageList()
     		})
     	}
     },