1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

add buttom new record (#703)

Co-authored-by: Elsio Sanchez <elsiosanche@gmail.com>
This commit is contained in:
Elsio Sanchez 2021-03-30 17:37:16 -04:00 committed by GitHub
parent b4a3ec0b53
commit 8c47c95287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View File

@ -51,6 +51,7 @@
:field-value="recordDataFields"
/>
<preference
v-if="field.panelType !== 'form'"
:source-field="fieldAttributes"
:field-value="recordDataFields"
:panel-type="field.panelType"

View File

@ -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)"
@ -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>
@ -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
@ -664,6 +669,9 @@ export default {
.el-tag--medium {
height: 34px;
line-height: 32px;
width: 110%;
text-align: center;
}
.el-col {
border-radius: 4px;