From 313a31b8b5e5ad448967d765d793c8e20b490cc4 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 14 四月 2023 16:23:54 +0800
Subject: [PATCH] 1.排程多选逻辑编写中

---
 src/views/makeModel/meterPrice.vue |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/views/makeModel/meterPrice.vue b/src/views/makeModel/meterPrice.vue
index 29789fc..da32517 100644
--- a/src/views/makeModel/meterPrice.vue
+++ b/src/views/makeModel/meterPrice.vue
@@ -869,7 +869,11 @@
     radioChange(val) {
       this.isEqpTableEdit = true
 
+      this.eqpTable.page = 1
+      this.eqpTable.rows = 10
+
       this.radioChangeTempValue = val
+      console.log(val, 'val')
       // this.dialogForm.stepcode = this.stepDialogArr.find(item => item.name === val).code
       this.getEqpTable(val)
     },
@@ -886,12 +890,21 @@
       this.getEqpTable()
     },
     async getEqpTable(val) {
+      console.log(val)
+      console.log(typeof val)
       if (typeof val === 'string') {
         this.eqpTable.steptype = this.stepDialogArr.find(item => item.name === val).flag
         this.eqpTable.partcode = this.dialogForm.partcode
         this.eqpTable.routecode = this.dialogForm.routecode
         this.eqpTable.stepcode = this.stepDialogArr.find(item => item.name === val).code
         // } else if (typeof val === 'number') {
+      } else if (typeof val === 'object') {
+        const index = this.stepDialogArr.findIndex(i => i.name === this.radioChangeTempValue)
+        this.eqpTable.steptype = this.stepDialogArr[index].flag
+        this.eqpTable.partcode = this.dialogForm.partcode
+        this.eqpTable.routecode = this.dialogForm.routecode
+        this.eqpTable.stepcode = this.stepDialogArr[index].code
+        this.dialogForm.stepcode = this.stepDialogArr[index].name
       } else {
         this.eqpTable.steptype = this.stepDialogArr[0].flag
         this.eqpTable.partcode = this.dialogForm.partcode

--
Gitblit v1.9.3