|
@@ -80,7 +80,7 @@ import { saveAs } from "file-saver";
|
|
|
const { t } = useI18n();
|
|
|
const router = useRouter();
|
|
|
const globalStore = useGlobalStore();
|
|
|
-const { vxeTableRef, columns, initParams, dataCallback } = useHooks();
|
|
|
+const { vxeTableRef, columns, initParams, dataCallback, gotoErpapi } = useHooks();
|
|
|
const { toExcelQuote } = useHooksCpQuote();
|
|
|
const { CheckPower, CheckOption, buttonNew, buttonDefault } = useAuthButtons(t);
|
|
|
|
|
@@ -459,7 +459,9 @@ const action: detailAction[] = [
|
|
|
}
|
|
|
let _cur = $table.getCurrentRecord() ?? curRecords[curRecords.length - 1];
|
|
|
let type = 1;
|
|
|
- router.push(`/erpapi/mattressInterface/${type}/edit?id=${_cur.mattressid}&code=${_cur.mattresscode}&type=${type}`);
|
|
|
+ // router.push(`/erpapi/mattressInterface/${type}/edit?id=${_cur.mattressid}&code=${_cur.mattresscode}&type=${type}`);
|
|
|
+
|
|
|
+ gotoErpapi(_cur, type);
|
|
|
}
|
|
|
}),
|
|
|
buttonDefault({
|