Bläddra i källkod

1、新增业务补充功能按钮

MY 1 månad sedan
förälder
incheckning
102cf18bb3

+ 1 - 0
JLHWEB/src/languages/modules/zh-cn/common.json

@@ -207,6 +207,7 @@
   "exportQuoteList": "导出报价清单",
   "dataTransmission": "数据发送",
   "businessSupplement": "业务补充",
+  "viewBusinessSupplement": "查看业务补充",
   "recalculateERPCost": "重算报价",
   "pairingL1product": "配对L1成品",
   "businessAudit": "业务审核",

+ 24 - 0
JLHWEB/src/views/quote/mattressQuote/index.vue

@@ -718,6 +718,30 @@ const action: detailAction[] = [
           });
         });
     }
+  }),
+  buttonDefault({
+    label: t("common.viewBusinessSupplement"),
+    power: 72,
+    clickFunc: item => {
+      const { $table, curRecords } = getCurrentRecords(vxeTableRef.value);
+
+      if (!curRecords.length) {
+        ElMessage.warning(t("business.tips.mattress.records"));
+        return;
+      }
+      let _cur = $table.getCurrentRecord() ?? curRecords[curRecords.length - 1];
+
+      router.push({
+        name: "mattressInterfaceDetail",
+        params: {
+          id: _cur.mattressid
+        },
+        query: {
+          code: _cur.mattresscode
+        },
+        replace: true
+      });
+    }
   })
 ];