|
@@ -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
|
|
|
+ });
|
|
|
+ }
|
|
|
})
|
|
|
];
|
|
|
|