refactor(PosmasterNo): replace formatPosmasterNo
This commit is contained in:
parent
6b2d1781b0
commit
34f33e57ac
25 changed files with 152 additions and 58 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue