From d55fef9c7205b412cadc99c2bb2dea9329b7a2c9 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期三, 31 七月 2024 09:39:19 +0800
Subject: [PATCH] 1、公司级与分厂级看板调整OEE图表样式 2、各看板中的饼图图表增加随分辨率变化而改变自身半径功能,从而更清晰的展示内容标题指示箭头 3、OEE综合效率分析页面新增车间字段

---
 src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue b/src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue
index 2af4bf8..90927e1 100644
--- a/src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue
+++ b/src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue
@@ -426,18 +426,8 @@
   },
   created() {
     this.initOptions()
-    this.initNum()
   },
   methods: {
-    initNum() {
-      getAction(this.url.getNum, { type: 'SparePart', length: '4' }).then((res) => {
-        if (res.success) {
-          this.model.num = res.message
-
-          /* this.model.setFieldsValue({ num: res.message }); */
-        }
-      })
-    },
     initOptions() {
       getAction(this.url.loadOptions).then(res => {
         if (res.success) {
@@ -525,6 +515,12 @@
       if (this.model.id) {
         let params = { id: this.model.id }
         this.requestSubTableData(this.url.sparesScrapDetail.list, params, this.sparesScrapDetailTable)
+      }else{
+        getAction(this.url.getNum, { type: 'SparePartScrap', length: '4' }).then((res) => {
+        if (res.success) {
+          this.model.num = res.message
+        }
+      })
       }
     },
     //鏍¢獙鎵�鏈変竴瀵逛竴瀛愯〃琛ㄥ崟

--
Gitblit v1.9.3