refactor(PosmasterNo): replace formatPosmasterNo

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-06-05 10:57:37 +07:00
parent 6b2d1781b0
commit 34f33e57ac
25 changed files with 152 additions and 58 deletions

View file

@ -5,6 +5,7 @@ import { useQuasar } from "quasar";
import { useRoute } from "vue-router";
import { useCounterMixin } from "@/stores/mixin";
import { useStructureTree } from "@/stores/structureTree";
import { formatPosmasterNo } from "@/utils/function";
import http from "@/plugins/http";
import config from "@/app.config";
@ -74,7 +75,12 @@ const columns = ref<QTableProps["columns"]>([
sortable: true,
field: "posMasterNo",
format(val, row) {
return `${row.orgShortname} ${row.posMasterNo}`;
return formatPosmasterNo(
row.orgShortname,
row.posMasterNoPrefix,
row.posMasterNo.toString(),
row.posMasterNoSuffix
);
},
headerStyle: "font-size: 14px",
style: "font-size: 14px",