From c860ca1d4ceaa4065ac5f0257d7b4181880acedd Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期六, 11 五月 2024 08:59:10 +0800
Subject: [PATCH] -接收工单

---
 jcdm-ui/src/views/main/om/productionOrde/index.vue |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/jcdm-ui/src/views/main/om/productionOrde/index.vue b/jcdm-ui/src/views/main/om/productionOrde/index.vue
index 70b91a2..ade8ab0 100644
--- a/jcdm-ui/src/views/main/om/productionOrde/index.vue
+++ b/jcdm-ui/src/views/main/om/productionOrde/index.vue
@@ -126,7 +126,7 @@
           plain
           icon="el-icon-download"
           size="mini"
-          @click="receivingWorkOrders"
+          @click="getWorkOrders"
         >鎺ユ敹</el-button>
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -273,7 +273,16 @@
 import { listProductBom } from "@/api/main/bs/ProductBom/ProductBom";
 import { listTechnologyRoute} from "@/api/main/bs/technologyRoute/technologyRoute";
 import ItemSelect  from "@/components/itemSelect/single.vue";
-import { importTemplate, upDownMove, listProductionOrde, getProductionOrde, delProductionOrde, addProductionOrde, updateProductionOrde } from "@/api/main/om/productionOrde/productionOrde";
+import {
+  importTemplate,
+  upDownMove,
+  listProductionOrde,
+  getProductionOrde,
+  delProductionOrde,
+  addProductionOrde,
+  updateProductionOrde,
+  receivingWorkOrders
+} from "@/api/main/om/productionOrde/productionOrde";
 
 export default {
   name: "ProductionOrde",
@@ -375,8 +384,11 @@
     this.initWorkshop();
   },
   methods: {
-    receivingWorkOrders(){
-
+    getWorkOrders(){
+      receivingWorkOrders().then(response => {
+        this.$modal.msgSuccess(response.msg);
+        this.getList()
+      });
     },
     /** 瀵煎叆鎸夐挳鎿嶄綔 */
     handleImport() {

--
Gitblit v1.9.3