แก้ค้นหาชื่อ
This commit is contained in:
parent
adc9ae1272
commit
b1c06233f6
2 changed files with 22 additions and 5 deletions
|
|
@ -1082,6 +1082,25 @@ export const useCounterMixin = defineStore("mixin", () => {
|
|||
return "";
|
||||
}
|
||||
}
|
||||
function findPosMasterNo(obj: any) {
|
||||
if (obj) {
|
||||
let shortName =
|
||||
(obj.child4ShortName != null
|
||||
? obj.child4ShortName
|
||||
: obj.child3ShortName != null
|
||||
? obj.child3ShortName
|
||||
: obj.child2ShortName != null
|
||||
? obj.child2ShortName
|
||||
: obj.child1ShortName != null
|
||||
? obj.child1ShortName
|
||||
: obj.rootShortName != null
|
||||
? obj.rootShortName
|
||||
: "") + (obj.posMasterNo != null ? obj.posMasterNo : "");
|
||||
return shortName == "" ? "-" : shortName;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
function findOrgNameOld(obj: any) {
|
||||
if (obj) {
|
||||
|
|
@ -1178,7 +1197,7 @@ export const useCounterMixin = defineStore("mixin", () => {
|
|||
findOrgName,
|
||||
findPosMasterNoOld,
|
||||
findOrgNameOld,
|
||||
|
||||
findPosMasterNo,
|
||||
onSearchDataTable
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue