From 392f9468875a8721c17c4e15c288333017cac4a1 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期六, 16 七月 2022 15:11:44 +0800
Subject: [PATCH] 1.修改bug2.工序检验实现部分3.缺陷定义实现部分

---
 src/views/scgl/scdd.vue |   39 ++++++++++++++++++++++++++++++++++-----
 1 files changed, 34 insertions(+), 5 deletions(-)

diff --git a/src/views/scgl/scdd.vue b/src/views/scgl/scdd.vue
index 30151be..a7bbee7 100644
--- a/src/views/scgl/scdd.vue
+++ b/src/views/scgl/scdd.vue
@@ -121,7 +121,7 @@
         <el-button
           type="primary"
           icon="el-icon-refresh-right"
-          @click="reset('update')"
+          @click="syncERP"
         >鍚屾ERP
         </el-button>
         <el-button
@@ -206,6 +206,12 @@
           <el-table-column
             prop="qty"
             label="璁㈠崟鏁伴噺"
+            width="150"
+            sortable="custom"
+          />
+          <el-table-column
+            prop="relse_qty"
+            label="宸蹭笅鍗曟暟閲�"
             width="150"
             sortable="custom"
           />
@@ -498,12 +504,33 @@
       this.form.prop = prop
       this.getErpOrderSearch()
     },
+    // 鍚屾ERP
+    async  syncERP() {
+      const loading = this.$loading({
+        lock: true,
+        text: '姝e湪鍚屾ERP锛岃绋嶇瓑...',
+        spinner: 'el-icon-loading',
+        customClass: 'osloading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      })
+      setTimeout(() => {
+        loading.close()
+      }, 2000)
+
+      // const res = await xxx()
+      // if (res.code==='200'){
+      setTimeout(() => {
+        loading.close()
+        this.getErpOrderSearch()
+      }, 2000)
+      // }
+    },
     // 鏌ヨ
     search() {
       this.getErpOrderSearch()
     },
     // 閲嶇疆
-    reset(val) {
+    reset() {
       this.form.erporderstus = ''
       this.form.erpordercode = ''
       this.form.partcode = ''
@@ -513,9 +540,6 @@
       this.form.creatuser = ''
       this.form.createdate = ''
       this.getErpOrderSearch()
-      if (val.length > 0) {
-        this.$message.success('ERP宸插悓姝ワ紒')
-      }
     },
     // 鍗曢�夋閫変腑鑾峰彇褰撳墠琛屼俊鎭�
     getCurrentRow(wo) {
@@ -820,3 +844,8 @@
 }
 
 </style>
+<style>
+.osloading{
+  font-size: 40px;
+}
+</style>

--
Gitblit v1.9.3