1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-07 18:25:45 +08:00

Error loading Tender Type fields (#877)

* add Documente activity

* add traslate

* add traslation zh

* Error loading Tender Type fields

* delete changes

* minimal changes

* minimal changes

Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
Elsio Sanchez 2021-05-27 13:38:18 -04:00 committed by GitHub
parent 348ae22dc4
commit d9568e84b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 3 deletions

View File

@ -53,6 +53,7 @@ export default [
columnName: 'TenderType',
isFromDictionary: true,
overwriteDefinition: {
defaultValue: 'X',
handleActionKeyPerformed: true,
handleContentSelection: true,
handleActionPerformed: true,

View File

@ -480,6 +480,9 @@ export default {
return currency
}
})
},
fieldsPaymentType() {
return this.fieldsList[2]
}
},
watch: {
@ -534,6 +537,15 @@ export default {
value: this.pending
})
}
},
fieldsPaymentType(value) {
const displayPaymentType = this.$store.getters.getValueOfField({
containerUuid: 'Collection',
columnName: 'DisplayColumn_PaymentType'
})
if (!this.isEmptyValue(value.reference) && this.isEmptyValue(displayPaymentType)) {
value.reference.directQuery = value.reference.query
}
}
},
created() {

View File

@ -451,11 +451,10 @@ export default {
formatPrice,
formatQuantity,
openCollectionPanel() {
this.isShowedPOSKeyLayout = !this.isShowedPOSKeyLayout
this.isShowedPOSKeyLayout = true
this.$store.commit('setShowPOSCollection', true)
const orderUuid = this.$route.query.action
this.$store.dispatch('listPayments', { orderUuid })
this.isShowedPOSKeyLaout = !this.isShowedPOSKeyLaout
this.$store.commit('setShowPOSOptions', false)
},
open() {

View File

@ -54,7 +54,9 @@ const lookup = {
isBooleanToString: true
}).value
}
if (parsedDirectQuery.includes('?')) {
parsedDirectQuery = directQuery.replace('?', value)
}
return requestLookup({
tableName,
directQuery: parsedDirectQuery,