refactor: add orderNumber

This commit is contained in:
Net 2024-08-05 13:39:29 +07:00
parent 5b1ea8804b
commit b3e08e67d9
3 changed files with 18 additions and 1 deletions

View file

@ -72,6 +72,7 @@ export default {
bankBook: 'Bank Book',
use: 'In Use',
notUse: 'Not Use',
orderNumber: 'Order Number',
...status,
...main,
...address,

View file

@ -75,6 +75,7 @@ export default {
bankBook: 'บัญชีธนาคาร',
use: 'ใช้งาน',
notUse: 'ไม่ใช้งาน',
orderNumber: 'ลําดับ',
...status,
...main,
...address,

View file

@ -43,6 +43,14 @@ const utilsStore = useUtilsStore();
const holdDialog = ref(false);
const columns = [
{
name: 'branchLabelNo',
align: 'center',
label: 'orderNumber',
field: 'branchNo',
sortable: true,
},
{
name: 'branchLabelName',
align: 'left',
@ -213,8 +221,10 @@ const fieldDisplay = ref<
| 'branchLabelAddress'
| 'branchLabelTel'
| 'branchLabelType'
| 'branchLabelNo'
)[]
>([
'branchLabelNo',
'branchLabelName',
'branchLabelTel',
'branchLabelAddress',
@ -222,6 +232,7 @@ const fieldDisplay = ref<
]);
const fieldSelected = ref<
(
| 'branchLabelNo'
| 'branchLabelName'
| 'branchLabelAddress'
| 'branchLabelTel'
@ -343,7 +354,7 @@ function clearData() {
accountName: '',
accountType: '',
currentlyUse: true,
}
},
];
}
@ -1032,6 +1043,10 @@ watch(currentHq, () => {
}
"
>
<q-td v-if="fieldSelected.includes('branchLabelNo')">
{{ props.rowIndex + 1 }}
</q-td>
<q-td v-if="fieldSelected.includes('branchLabelName')">
<div class="row items-center">
<div