Skip to content

Commit

Permalink
add buttom new record (#703)
Browse files Browse the repository at this point in the history
Co-authored-by: Elsio Sanchez <elsiosanche@gmail.com>
  • Loading branch information
elsiosanchez and Elsio Sanchez authored Mar 30, 2021
1 parent b4a3ec0 commit 8c47c95
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/ADempiere/Field/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
:field-value="recordDataFields"
/>
<preference
v-if="field.panelType !== 'form'"
:source-field="fieldAttributes"
:field-value="recordDataFields"
:panel-type="field.panelType"
Expand Down
14 changes: 11 additions & 3 deletions src/components/ADempiere/Form/VPOS/Order/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
:is-disabled="isDisabled"
/>
</el-col>
<el-col :span="2" :style="styleTab">
<el-col :span="1" :style="styleTab">
<el-tag
v-if="!isEmptyValue(getOrder.documentStatus.value)"
:type="tagStatus(getOrder.documentStatus.value)"
Expand All @@ -43,6 +43,11 @@
</span>
</el-tag>
</el-col>
<el-col :span="1" :style="styleTab">
<el-button type="primary" plain :disabled="isEmptyValue(this.$route.query.action)" @click="newOrder">
{{ $t('form.pos.optionsPoinSales.salesOrder.newOrder') }}
</el-button>
</el-col>
</el-row>
</el-form>
</el-header>
Expand Down Expand Up @@ -322,9 +327,9 @@ export default {
styleTab() {
const isShowedPOSOptions = this.$store.getters.getIsShowPOSOptions
if (this.isShowedPOSKeyLayout || isShowedPOSOptions) {
return 'adding-left: 0px; padding-right: 0px; padding-top: 3.5%;'
return 'adding-left: 0px; padding-right: 0px; padding-top: 3.5%;margin-right: 1%;'
}
return 'padding-left: 30px; padding-right: 0px; padding-top: 2.2%;'
return 'padding-left: 0px; padding-right: 0px; padding-top: 2.2%;margin-right: 1%;'
},
namePointOfSales() {
const currentPOS = this.$store.getters.getCurrentPOS
Expand Down Expand Up @@ -664,6 +669,9 @@ export default {
.el-tag--medium {
height: 34px;
line-height: 32px;
width: 110%;
text-align: center;
}
.el-col {
border-radius: 4px;
Expand Down

0 comments on commit 8c47c95

Please sign in to comment.