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', bankBook: 'Bank Book',
use: 'In Use', use: 'In Use',
notUse: 'Not Use', notUse: 'Not Use',
orderNumber: 'Order Number',
...status, ...status,
...main, ...main,
...address, ...address,

View file

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

View file

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