From cc6914dff1a91dd00e3a86d5daae2c3dba2d6ba8 Mon Sep 17 00:00:00 2001
From: gaoluyang <gaoluyang@rengu.cc>
Date: 星期三, 24 七月 2024 16:28:00 +0800
Subject: [PATCH] 检测中心-班次时间配置功能

---
 src/components/do/b1-ins-order/add.vue |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue
index 160ebde..6d38eb9 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -849,6 +849,7 @@
         <el-button type="primary" @click="spliceData">淇濆瓨</el-button>
       </span>
     </el-dialog>
+    <!-- 鐢靛姏璇曢獙瀹�---娓╁崌璇曢獙/鐑惊鐜� -->
     <el-dialog :title="temperatureTitle" :visible.sync="temperatureShow" width="260px" :before-close="temperatureShowClose" :show-close="false">
       <div>
         <div v-if="isShowInput" style="margin-bottom: 6px">
@@ -1740,9 +1741,22 @@
           str: JSON.stringify({
             insOrder: this.addObj,
             list: JSON.stringify(sampleList.map(a => {
-              a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ?
-                '' : (
-                  '-' + a.modelNum))
+              if (this.PROJECT === '瑁呭鐢电紗') {
+                if (a.modelNum) {
+                  const index = a.modelNum.indexOf('脳')
+                  if (index === 0) {
+                    a.model = a.model + a.modelNum
+                  } else if (index === -1) {
+                    a.model = a.model + '-' + a.modelNum
+                  } else {
+                    a.model = a.modelNum + a.model
+                  }
+                } else {
+                  a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum))
+                }
+              } else {
+                a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum))
+              }
               a.insProduct = a.insProduct.filter(b=>b.state === 1)
               return a
             })),

--
Gitblit v1.9.3