Selaa lähdekoodia

fix:“优化设备列表页面操作”

soobin 1 vuosi sitten
vanhempi
commit
f1df029d11

+ 6 - 1
src/assets/language/en.json

@@ -327,6 +327,9 @@
     "equipmentNo": "Equipment No",
     "restart": "Reset machine",
     "restartFurnaceHead": "Restart furnace head",
+    "restartFurnaceHeadTips": "Are you sure you want to restart the furnace head?",
+    "openFurnaceHeadTips": "Are you sure you want to open the furnace head?",
+    "closeFurnaceHeadTips":"Are you sure you want to close the furnace head?",
     "sleep": "sleep",
     "openCloseFurnaceHead": "Open/close furnace head",
     "openFurnHead": "Open furnace head",
@@ -358,6 +361,8 @@
     "open": "open",
     "close": "close",
     "success": "success",
+    "clickRestart": "One click restart furnace head",
+    "restartHead": "Restart",
     "sysOffSuccess": "System offline successfully",
     "remoteDoorOpeningSucceeded": "Remote door opening succeeded",
     "enterAnyInformationToSearch": "Enter any information to search",
@@ -520,7 +525,7 @@
     "viewPositioning": "View positioning",
     "view": "view",
     "oneKeyFeed": "One key feeding",
-    "replenishment": "Replenishment",
+    "replenishment": "Replenish",
     "whiteSugar": "WhiteSugar",
     "redSugar": "RedSugar",
     "yellowSugar": "YellowSugar",

+ 5 - 0
src/assets/language/ja.json

@@ -327,6 +327,9 @@
         "equipmentNo": "デバイス番号",
         "restart": "リセット",
         "restartFurnaceHead": "釜の再起動",
+        "restartFurnaceHeadTips": "釜の再起動を確認しますか?",
+        "openFurnaceHeadTips": "釜のオンを確認しますか?",
+        "closeFurnaceHeadTips": "釜のオフを確認しますか?",
         "sleep": "スリープ",
         "openCloseFurnaceHead": "釜のオン/オフ",
         "openFurnHead": "釜オン",
@@ -358,6 +361,8 @@
         "sleepSuccessfully": "スリープ完了",
         "open": "OPEN",
         "close": "CLOSE",
+        "clickRestart": "炉頭を再稼働します",
+        "restartHead": "再起動します",
         "success": "完了",
         "sysOffSuccess": "システムオフライン完了",
         "remoteDoorOpeningSucceeded": "遠隔ドア開け完了",

+ 5 - 0
src/assets/language/zh.json

@@ -327,6 +327,11 @@
     "equipmentNo": "设备编号",
     "restart": "机器复位",
     "restartFurnaceHead": "重启炉头",
+    "restartFurnaceHeadTips": "是否重启炉头?",
+    "openFurnaceHeadTips": "是否开启炉头?",
+    "closeFurnaceHeadTips":"是否关闭炉头?",
+    "clickRestart": "一键重启炉头",
+    "restartHead": "重启",
     "sleep": "睡眠",
     "openCloseFurnaceHead": "开启/关闭炉头",
     "openFurnHead": "开启炉头",

+ 111 - 47
src/styles/device/index.less

@@ -210,20 +210,111 @@
             align-items: center;
           }
 
+          .pic1 {
+            width: 100%;
+            height: 2px;
+            // margin-top: 19px;
+          }
+
           .contentBottomCon {
+            background-color: #e7e7e7;
+            border-radius: 15px;
+            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 阴影效果 */
+            padding: 5px 5px;
+
+            .contentWord {
+              width: 100%;
+              padding: 10px 10px;
+              // overflow-wrap: break-word;
+              color: rgba(64, 77, 116, 1);
+              font-size: 14px;
+              text-align: left;
+              flex-wrap: wrap; 
+              // white-space: nowrap;
+              // text-overflow: ellipsis;
+              line-height: 14px;
+              display: flex;
+              align-items: center;
+              // justify-content: space-between;
+
+              .word10 {
+                width: 65%
+                // display: block;
+              }
+
+              .word2 {
+                width: 75%;
+                padding: 0 0;
+
+                .van-cell--center {
+                  background-color: #e7e7e7;
+                }
+
+                .van-field__control {
+                  border: 0.5px solid #ccc;
+                  background-color: #fff;
+                  padding: 2px 5px;
+                  border-radius: 3px;
+                  // width: 40%;
+                  /* 添加边框 */
+                }
+
+                .van-field__body {
+                  background-color: #e7e7e7;
+                }
+              }
+
+              .word3 {
+                width: 50%;
+                padding: 0 0;
+                margin-right: 10px;
+              }
+
+              .editIcon {
+                color: #4d6add;
+                // padding: 0 0 0 5px;
+              }
+              
+              .btn {
+                justify-content: flex-end;
+              }
+
+              .clickable-link {
+                text-decoration: underline;
+                cursor: pointer;
+                font-size: 14px;
+                width: 75%;
+              }
+
+            }
+
+            .word11 {
+              width: 95%;
+              padding: 10px 10px;
+              // overflow-wrap: break-word;
+              color: rgba(64, 77, 116, 1);
+              font-size: 14px;
+              text-align: left;
+              // white-space: nowrap;
+              // text-overflow: ellipsis;
+              line-height: 14px;
+              display: flex;
+              align-items: center;
+              // justify-content: space-between;
+
+              .word12 {
+                width: 65%;
+              }
+            }
+
+
             .van-button--primary {
               background-color: #4d6add;
-              width: 50px;
-              padding: 0 0;
-              margin: 0 8px 0 0;
+              padding: 0 5px;
+              margin: 0 5px 0 0;
               height: 30px !important;
             }
 
-            .pic1 {
-              width: 100%;
-              height: 2px;
-              margin-top: 19px;
-            }
 
             .layer2 {
               width: 100%;
@@ -240,15 +331,15 @@
                 font-size: 14px;
               }
 
-              .word2 {
-                width: 100%;
-                padding: 0 0;
+              // .word2 {
+              //   width: 100%;
+              //   padding: 0 0;
 
-                .van-field__control {
-                  border: 0.5px solid #ccc;
-                  /* 添加边框 */
-                }
-              }
+              //   .van-field__control {
+              //     border: 0.5px solid #ccc;
+              //     /* 添加边框 */
+              //   }
+              // }
 
               .word3 {
                 color: rgba(64, 77, 116, 1);
@@ -261,32 +352,10 @@
               }
             }
 
-            .word4 {
-              width: 100%;
-              overflow-wrap: break-word;
-              color: rgba(64, 77, 116, 1);
-              font-size: 14px;
-              text-align: left;
-              white-space: nowrap;
-              line-height: 14px;
-            }
-
-            .clickable-link {
-              text-decoration: underline;
-              cursor: pointer;
-              font-size: 14px;
-              width: 85%;
-            }
-
             // .clickable-link:active {
             //   color: rgb(26, 49, 117);
             // }
-            .replenishment {
-              text-decoration: underline;
-              cursor: pointer;
-              font-size: 14px;
-              color: #4d6add;
-            }
+            
 
             .layer5 {
               width: 100%;
@@ -299,15 +368,9 @@
                 text-align: left;
                 line-height: 13px;
                 display: block;
+                padding: 10px 10px;
               }
 
-              // @media (max-width: 767px) {
-              //   .word5 {
-              //     width: 100%;
-              //     margin-bottom: 16px;
-              //   }
-              // }
-
               .word6 {
                 // width: 33.33%;
                 overflow-wrap: break-word;
@@ -543,7 +606,8 @@
           .sugarTxt {
             color: rgba(64, 77, 116, 1);
             font-size: 14px;
-            line-height: 13px;
+            line-height: 14px;
+            padding: 10px 10px;
           }
 
           .bd6 {

+ 139 - 55
src/views/device/index.vue

@@ -92,17 +92,19 @@
                 <span v-if="user.type < 1" class="txt1 o-mt-10 kBordBott">{{ $t("device.lockCondition") }}:{{
                   item.isBlocked ? $t("device.lockState") : $t("device.unLockState")
                 }}</span>
+                <img v-if="item.checkType" class="pic1" referrerpolicy="no-referrer" src="../../assets/home/line.png" />
                 <div class="contentBottomCon" v-if="item.checkType">
-                  <img class="pic1" referrerpolicy="no-referrer" src="../../assets/home/line.png" />
                   <!-- 睡眠状态 -->
-                  <div class="word4 flex-row justify-between o-ptb-4 kBordBott">
-                    <span class="info1 o-ptb-5 kBordBott">{{ $t("device.sleepState") }}:{{
+                  <div class="contentWord kBordBott">
+                    <span class="">{{ $t("device.sleepState") }}:{{
                       item.isSleep
                       ? $t("device.sleeping")
                       : $t("device.notSleeping")
                     }}</span>
+                    <!-- <van-switch v-model="checked" disabled /> -->
+
                   </div>
-                  <div v-if="item.isSleep" class="layer3 o-ptb-7">
+                  <!-- <div v-if="item.isSleep" class="layer3 o-ptb-7">
                     <span class="word1">
                       <div v-if="!sleepDescBoxShow">
                         <van-field colon center class="word2" v-model="item.sleepDesc"
@@ -115,7 +117,6 @@
                             }}</van-button>
                           </template>
                         </van-field>
-                        <!-- </span> -->
                       </div>
                       <div v-else>
                         <span class="word3 o-pr-10">{{ $t("device.sleepDesc") }}:</span>
@@ -124,21 +125,50 @@
                         <van-icon name="edit" size="18" class="editIcon" @click="editSleepDesc()" />
                       </div>
                     </span>
+                  </div> -->
+                  <div v-if="item.isSleep" class="contentWord kBordBott">
+                      <span class="">{{ $t("device.sleepDesc") }}:</span>
+                      <!-- <div v-if="!sleepDescBoxShow" class="container l-flex-RC"> -->
+                        <van-field colon center class="word2" v-model="item.sleepDesc" v-if="!sleepDescBoxShow"
+                          :placeholder="$t('device.sleepDescPlace')" label-width="auto">
+                          <template #button class="button_1">
+                            <van-button type="primary" @click="sleepDescChg(item.sleepDesc, item.id)">{{
+                                  $t("device.confirm") }}
+                            </van-button>
+                            <van-button type="primary" @click="editSleepDesc()">{{ $t("device.cancel")
+                            }}</van-button>
+                          </template>
+                        </van-field>
+                        <!-- <div class="l-flex-RC">
+                        </div> -->
+                        <!-- </span> -->
+                      <!-- </div> -->
+                      <!-- <div v-else class="container l-flex-RC"> -->
+                        <span class="word10 l-flex-RC" v-if="sleepDescBoxShow">{{ item.sleepDesc == null ? $t("device.SuspendBusiness") :
+                          item.sleepDesc }}
+                        <van-icon name="edit" size="18" class="editIcon o-pl-5" @click="editSleepDesc()" />
+                          </span>
+                      <!-- </div> -->
                   </div>
-                  <!-- <span class="txt5 o-ptb-10 kBordBott l-flex-RC"><span>一键重启炉头:</span>
-                    <van-button type="primary">重启</van-button>
-                  </span> -->
+                  <span v-if="item.machineType == null || item.machineType == '0'" class="contentWord kBordBott l-flex-RC">
+                    <span>{{$t("device.clickRestart")}}:</span>
+                    <van-button @click="restartHead(item.id)" type="primary">{{$t("device.restartHead")}}</van-button>
+                  </span>
                   <!-- 炉头状态 -->
-                  <div class="word4 o-ptb-8">
-                    <span class="word3 o-pr-5" v-if="item.machineType == '0' || item.machineType == null">{{
-                      $t("device.furnHeadStatus") }}: </span>
-                    <span class="word3 o-pr-5" v-else>{{ $t("device.deviceStatus") }}: </span>
-                    <span>{{ item.eqeStatus === 1 ? $t("device.opened") : $t("device.closed") }}
-                    </span>
-                    <!-- <div class="l-flex-RC">
-                      <van-button type="primary">开启</van-button>
-                      <van-button type="primary">关闭</van-button>
-                    </div> -->
+                  <div class="contentWord kBordBott" v-if="item.machineType == null || item.machineType == '0'">
+                    <!-- <div> -->
+                      <!-- <span class="word3 o-pr-5" v-if="item.machineType == '0' || item.machineType == null">{{
+                        $t("device.furnHeadStatus") }}: </span>
+                      <span class="word3 o-pr-5" v-else>{{ $t("device.deviceStatus") }}: </span> -->
+                      <span>{{ (item.machineType == '0' || item.machineType == null) ? $t("device.furnHeadStatus") : $t("device.deviceStatus")}}:
+                        {{ item.eqeStatus === 1 ? $t("device.opened") : $t("device.closed") }}</span>
+                      <!-- <span>{{ item.eqeStatus === 1 ? $t("device.opened") : $t("device.closed") }} -->
+                      <!-- </span> -->
+                    <!-- </div> -->
+                    <div class="o-ml-10">
+                      <van-button @click="openCloseHead(item.id, 1)" type="primary">{{$t("device.open")}}</van-button>
+                      <van-button @click="openCloseHead(item.id, 0)" type="primary">{{$t("device.close")}}</van-button>
+                    </div>
                   </div>
                   <!-- <span class="txt5 o-ptb-10 kBordBott l-flex-RC"><span>远程开门:</span>
                     <van-button type="primary">开门</van-button>
@@ -158,38 +188,36 @@
                   </div> -->
 
                   <!-- 定位: -->
-                  <div>
-                    <span v-if="item.latitude" class="txt5 o-ptb-3 kBordBott l-flex-RC">
-                      <span class="info1">{{ $t("device.position") }}:</span>
-                      <a class="clickable-link o-ptb-7" @click="viewPosiClk(item)">{{ item.fullName }}</a>
+                    <span v-if="item.latitude" class="contentWord kBordBott l-flex-RC">
+                      <span>{{ $t("device.position") }}:</span>
+                      <a class="clickable-link" @click="viewPosiClk(item)">{{ item.fullName }}</a>
                     </span>
-                  </div>
                   <!-- 机器参数 -->
-                  <van-row class="layer5 o-pt-7 kBordBott" justify="space-between"
+                  <van-row class="layer5 kBordBott" justify="space-between"
                     v-if="(item.machineType == '0' || item.machineType == null) && item.equimentType != 'P30'">
-                    <van-col class="word5" style="margin-bottom: 12px;">{{ $t("device.furnaceHeadTemperature") }}:{{
+                    <van-col class="word5" style="">{{ $t("device.furnaceHeadTemperature") }}:{{
                       item.furnaceTm
                     }}{{ $t("device.degree") }}</van-col>
-                    <van-col class="word5" style="margin-bottom: 12px;">{{ $t("device.temperatureInCabinet") }}:{{
+                    <van-col class="word5" style="">{{ $t("device.temperatureInCabinet") }}:{{
                       item.cabinetTm
                     }}{{ $t("device.degree") }}</van-col>
-                    <van-col class="word5" style="margin-bottom: 12px;">{{ $t("device.humidityInCabinet") }}:{{
+                    <van-col class="word5" style="">{{ $t("device.humidityInCabinet") }}:{{
                       item.cabinetHd
                     }}{{ $t("device.humidity") }}</van-col>
                   </van-row>
-                  <van-row class="layer5 o-pt-7 kBordBott" justify="space-between" v-if="item.machineType == '1'">
-                    <van-col class="word5" style="margin-bottom: 12px;">{{ $t("device.stirringTemperature") }}:{{
+                  <van-row class="layer5 kBordBott" justify="space-between" v-if="item.machineType == '1'">
+                    <van-col class="word5" style="">{{ $t("device.stirringTemperature") }}:{{
                       item.stirTm
                     }}{{ $t("device.degree") }}</van-col>
-                    <van-col class="word5" style="margin-bottom: 12px;">{{ $t("device.cornGeneratorTemperature") }}:{{
+                    <van-col class="word5" style="">{{ $t("device.cornGeneratorTemperature") }}:{{
                       item.cornGeneratorTm
                     }}{{ $t("device.degree") }}</van-col>
-                    <van-col class="word5" style="margin-bottom: 12px;">{{ $t("device.cupQuantity") }}:{{ item.cupQuantity
+                    <van-col class="word5" style="">{{ $t("device.cupQuantity") }}:{{ item.cupQuantity
                     }}</van-col>
                   </van-row>
                   <template v-if="item.isMaterialUse === '1' && (item.machineType == '0' || item.machineType == null)">
-                    <van-row justify="space-between" class="sugarTxt o-pt-7 kBordBott">
-                      <van-col style="margin-bottom: 12px;">
+                    <van-row justify="space-between" class="sugarTxt kBordBott">
+                      <van-col style="">
                         {{ $t("device.whiteSugar") }}:{{ Format_calcuDecial(item.whiteSugar) }}%
                       </van-col>
                       <van-col>
@@ -198,16 +226,16 @@
                       <van-col>
                         {{ $t("device.yellowSugar") }}:{{ Format_calcuDecial(item.yellowSugar) }}%
                       </van-col>
-                      <van-col style="margin-bottom: 8px;">
+                      <van-col style="">
                         {{ $t("device.blueSugar") }}:{{ Format_calcuDecial(item.blueSugar) }}%
                       </van-col>
                     </van-row>
-                    <div class="info1 o-ptb-5 kBordBott">
+                    <div class="sugarTxt kBordBott">
                       <span>{{ $t("device.stick") }}:{{
                         Format_calcuDecial(item.stick)
                       }}%</span>
                     </div>
-                    <van-row gutter="50" class="sugarTxt o-ptb-7 kBordBott">
+                    <van-row gutter="20" class="sugarTxt kBordBott">
                       <van-col>
                         {{ $t("device.water") }}:{{ Format_calcuDecial(item.water) }}%
                       </van-col>
@@ -216,33 +244,35 @@
                       </van-col>
                     </van-row>
                     <!-- 一键补料 -->
-                    <span class="info1 o-ptb-5 kBordBott l-flex-RC"><span>{{ $t("device.oneKeyFeed") }}:</span>
-                      <!-- <van-button @click="replenishmentClk(item)" type="primary">{{ $t("device.replenishment") }}
-                      </van-button> -->
-                      <a class="replenishment o-ptb-7" @click="replenishmentClk(item)">{{ $t("device.replenishment")
-                      }}</a>
+                    <span class="contentWord kBordBott">
+                      <span class="l-flex-RC">{{ $t("device.oneKeyFeed") }}:
+                        <van-button class="replenishment" @click="replenishmentClk(item)" type="primary">{{ $t("device.replenishment") }}
+                        </van-button>
+                      </span>
+                      <!-- <a class="replenishment" @click="replenishmentClk(item)">{{ $t("device.replenishment")
+                      }}</a> -->
                     </span>
                   </template>
                   <!-- 最近刷新时间 -->
-                  <span class="info1 o-ptb-7 kBordBott">{{ $t("device.lastRefreshTime") }}:{{
+                  <span class="contentWord kBordBott">{{ $t("device.lastRefreshTime") }}:{{
                     showDateTime(item.lastUpdateTime)
                   }}</span>
                   <!-- 音量 -->
-                  <span v-if="item.machineType != '2'" class="info2 o-ptb-7 kBordBott">{{ $t("device.volume") }}:{{
+                  <span v-if="item.machineType != '2'" class="contentWord kBordBott">{{ $t("device.volume") }}:{{
                     item.volume }}</span>
                   <!-- 报警内容 -->
-                  <div class="l-flex-RC o-ptb-7">
-                    <span class="info3 kBordBott">{{ $t("device.alarmContent") }}:</span>
-                    <div class="info4 l-flex-RC">
-                      <span class="info5 o-pr-10 kBordBott">{{
-                        item.alarmList && item.alarmList[0]
-                        ? item.alarmList[0].alarmContent
+                  <div  class="contentWord kBordBott l-flex-RC">
+                    <span>{{ $t("device.alarmContent") }}:</span>
+                    <!-- <div class="l-flex-RC"> -->
+                    <span class="word3">{{
+                        item.alarmList && item.alarmList[0] && item.alarmList[0].alarmContent
+                        ? showDateTime(item.alarmList[0].occurrenceTime) +" "+ item.alarmList[0].alarmContent
                         : $t("device.alarmContentNoData")
                       }}
-                      </span>
-                      <van-button v-if="item.alarmList && item.alarmList[0]" type="primary" size="small" color="#07c160"
+                    </span>
+                    <van-button v-if="item.alarmList && item.alarmList[0] && item.alarmList[0].alarmContent" type="primary" color="#07c160"
                         :text="$t('device.eliminateAlarm')" @click="clearAlarm(item.alarmList[0])"></van-button>
-                    </div>
+                    <!-- </div> -->
                   </div>
                   <div class="editDeviceBtnCon l-flex-center o-mt-10">
                     <div class="l-flex-RC" @click="deviceSet(item)">
@@ -258,6 +288,7 @@
                       <div class="box2 flex-col"></div>
                     </div>
                   </div>
+                  <div style="height: 10px;"></div>
                 </div>
                 <div class="bd6 l-flex-center o-ptb-7" @click="item.checkType = !item.checkType">
                   <div class="l-flex-RC">
@@ -288,7 +319,7 @@ import {
   Api_postMachineNum,
 } from "../../service/home";
 import { onMounted, reactive, toRefs, ref, onActivated } from "vue";
-import { showFailToast, showSuccessToast, showToast, showDialog } from "vant";
+import { showFailToast, showSuccessToast, showToast, showDialog, showConfirmDialog } from "vant";
 // import navBar from "../../components/NavBar";
 import sHeader from "../../components/SimpleHeader";
 import { getLoginUser, Format_calcuDecial, styleUrl } from "../../common/js/utils";
@@ -297,6 +328,7 @@ import {
   eliminate,
   Api_getReplenishment,
   changeSleepDesc,
+  setFurnace,
 } from "../../service/device/index";
 import deviceSearch from "./deviceSearch";
 import deviceOper from "./deviceOper";
@@ -488,7 +520,10 @@ export default {
       const { data } = await eliminate(Object.assign({}, params));
       if (data.code) {
         showSuccessToast(t("device.successfullyEliminatedTheAlarm"));
-        e.alarmList = [];
+        setTimeout(() => {
+          e.alarmContent = "";
+        }, 1000);
+        console.log("e", e);
       } else {
         showFailToast(data.message);
       }
@@ -607,6 +642,53 @@ export default {
         router.push("/labelManAdd");
       }
     }
+
+    // 重启炉头
+    const restartHead = (id) => {
+      showConfirmDialog({
+        title: t('user.tips'),
+        message: t('device.restartFurnaceHeadTips'),
+      }).then(async() => {
+        const { data } = await setFurnace({
+          equipmentId: id,
+          eqeStatus: 1,
+        });
+        if (data.code) {
+          showSuccessToast(t("device.restartSucceeded"));
+          setTimeout(() => {
+            router.go(0);
+          }, 1000);
+        } else {
+          showFailToast(data.message);
+        }
+      }).catch(() => {
+        return;
+      })
+    };
+    // 开启/关闭炉头
+    const openCloseHead = (id, status) => {
+      console.log("id", id);
+      console.log("status", status);
+      showConfirmDialog({
+        title: t('user.tips'),
+        message: (status == 1 ? t("device.openFurnaceHeadTips") : t("device.closeFurnaceHeadTips")),
+      }).then(async() => {
+        const { data } = await setFurnace({
+          equipmentId: id,
+          eqeStatus: status,
+        });
+        if (data.code) {
+          showSuccessToast((status == 1 ? t("device.open") : t("device.close"))+t("device.success"));
+          setTimeout(() => {
+            router.go(0);
+          }, 1000);
+        } else {
+          showFailToast(data.message);
+        }
+      }).catch(() => {
+        return;
+      })
+    };
     return {
       ...toRefs(searchParams),
       list,
@@ -639,7 +721,9 @@ export default {
       active,
       actions,
       showPopover,
-      selectLabel
+      selectLabel,
+      restartHead,
+      openCloseHead,
     };
   },
 };

+ 5 - 3
src/views/orderCenter/index.vue

@@ -202,8 +202,8 @@
               v-if="(refundObject.status != 0 && refundObject.status != 2) && orderType == '3'">
               <span class="word6 o-mr-40">是否开发票</span>
               <van-radio-group v-model="isInvoice" direction="horizontal">
-                <van-radio name="1">是</van-radio>
-                <van-radio name="0">否</van-radio>
+                <van-radio :name="1">是</van-radio>
+                <van-radio :name="0">否</van-radio>
               </van-radio-group>
               <van-button color="#4d6add" type="primary" size="small" class="o-p-20"
                 @click="updateInvoice(refundObject.id)" style="padding: 10px; margin-left: 20px;">更新</van-button>
@@ -302,7 +302,7 @@ export default {
     // 订单类型
     const orderType = ref('');
     // 是否开发票
-    const isInvoice = ref("0");
+    const isInvoice = ref(0);
     // 更新是否开发票
     const updateInvoice = async (id) => {
       const params = {
@@ -752,6 +752,7 @@ export default {
       //查询商户余额,要用admin的type去区分 TODO
       refundObject.value = item;
       orderType.value = item.payPlatform;
+      isInvoice.value = item.isInvoice;
       refundType.value = true;
     };
     const accountDetail = ref({});
@@ -835,6 +836,7 @@ export default {
       { text: t('orderCenter.weChatScanning'), values: "WEIXIN_NATIVE" },
       { text: t('orderCenter.antiScanningOfAlipay'), values: "ALIPAY_CARD" },
       { text: t('orderCenter.weChatBackScanning'), values: "WEIXIN_CARD" },
+      { text: t('orderCenter.weChatBackScanning'), values: "WEIXIN_PAYCODE" },
     ];
     // 弹窗支付上述
     const showPayType = (item) => {