mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 20:39:48 +08:00
Select a sales order (#1090)
Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
parent
ef92f37712
commit
68ae96bb0b
@ -17,9 +17,11 @@
|
|||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-popover
|
<el-popover
|
||||||
|
v-model="openPopover"
|
||||||
placement="bottom"
|
placement="bottom"
|
||||||
width="1010"
|
width="1010"
|
||||||
trigger="click"
|
trigger="click"
|
||||||
|
@hide="clear()"
|
||||||
>
|
>
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header style="height: 2%;">
|
<el-header style="height: 2%;">
|
||||||
@ -53,7 +55,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="documentNo"
|
prop="documentNo"
|
||||||
:label="$t('form.byInvoice.documentNo')"
|
:label="$t('form.byInvoice.documentNo')"
|
||||||
width="130"
|
width="135"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="Fecha de Orden"
|
label="Fecha de Orden"
|
||||||
@ -66,7 +68,7 @@
|
|||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('form.byInvoice.businessPartner')"
|
:label="$t('form.byInvoice.businessPartner')"
|
||||||
min-width="150"
|
min-width="120"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.businessPartner.name }}
|
{{ scope.row.businessPartner.name }}
|
||||||
@ -76,11 +78,11 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="salesRepresentative.name"
|
prop="salesRepresentative.name"
|
||||||
:label="$t('form.byInvoice.salesRepresentative')"
|
:label="$t('form.byInvoice.salesRepresentative')"
|
||||||
min-width="170"
|
min-width="100"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('table.status')"
|
:label="$t('table.ProcessActivity.Status')"
|
||||||
width="100"
|
width="100"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@ -95,10 +97,10 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('form.productInfo.grandTotal')"
|
:label="$t('form.productInfo.grandTotal')"
|
||||||
align="right"
|
align="right"
|
||||||
width="120"
|
width="150"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ formatQuantity(scope.row.grandTotal) }}
|
{{ formatPrice(scope.row.grandTotal) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -113,7 +115,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-footer>
|
</el-footer>
|
||||||
</el-container>
|
</el-container>
|
||||||
<el-button slot="reference" type="primary" plain style="margin-left: 5%;margin-top: 15%;font-size: 15px;" @click="openPopover = !openPopover">
|
<el-button slot="reference" type="primary" plain style="margin-left: 5%;margin-top: 15%;font-size: 15px;">
|
||||||
<svg-icon icon-class="tree-table" />
|
<svg-icon icon-class="tree-table" />
|
||||||
<b> {{ $t('form.byInvoice.label') }} </b>
|
<b> {{ $t('form.byInvoice.label') }} </b>
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -128,7 +130,7 @@ import {
|
|||||||
} from '@/utils/ADempiere/lookupFactory'
|
} from '@/utils/ADempiere/lookupFactory'
|
||||||
import {
|
import {
|
||||||
formatDate,
|
formatDate,
|
||||||
formatQuantity
|
formatPrice
|
||||||
} from '@/utils/ADempiere/valueFormat.js'
|
} from '@/utils/ADempiere/valueFormat.js'
|
||||||
import {
|
import {
|
||||||
listOrders
|
listOrders
|
||||||
@ -211,7 +213,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatDate,
|
formatDate,
|
||||||
formatQuantity,
|
formatPrice,
|
||||||
extractPagingToken,
|
extractPagingToken,
|
||||||
createFieldFromDictionary,
|
createFieldFromDictionary,
|
||||||
notSubmitForm(event) {
|
notSubmitForm(event) {
|
||||||
@ -240,6 +242,7 @@ export default {
|
|||||||
const orderUuid = this.$route.query.action
|
const orderUuid = this.$route.query.action
|
||||||
this.$store.dispatch('listPayments', { orderUuid })
|
this.$store.dispatch('listPayments', { orderUuid })
|
||||||
}
|
}
|
||||||
|
this.clear()
|
||||||
},
|
},
|
||||||
subscribeChanges() {
|
subscribeChanges() {
|
||||||
return this.$store.subscribe((mutation, state) => {
|
return this.$store.subscribe((mutation, state) => {
|
||||||
@ -311,6 +314,25 @@ export default {
|
|||||||
this.isloading = false
|
this.isloading = false
|
||||||
console.warn(`listOrdersFromServer: ${error.message}. Code: ${error.code}.`)
|
console.warn(`listOrdersFromServer: ${error.message}. Code: ${error.code}.`)
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
clear() {
|
||||||
|
this.openPopover = false
|
||||||
|
this.input = ''
|
||||||
|
this.$store.commit('updateValueOfField', {
|
||||||
|
containerUuid: 'Aisle-Vendor-List',
|
||||||
|
columnName: 'C_BPartner_ID',
|
||||||
|
value: undefined
|
||||||
|
})
|
||||||
|
this.$store.commit('updateValueOfField', {
|
||||||
|
containerUuid: 'Aisle-Vendor-List',
|
||||||
|
columnName: 'DisplayColumn_C_BPartner_ID',
|
||||||
|
value: undefined
|
||||||
|
})
|
||||||
|
this.$store.commit('updateValueOfField', {
|
||||||
|
containerUuid: 'Aisle-Vendor-List',
|
||||||
|
columnName: 'C_BPartner_ID_UUID',
|
||||||
|
value: undefined
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user