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

Switching from document type

This commit is contained in:
elsiosanchez 2021-07-14 10:42:07 -04:00
parent 80b9e9e95b
commit 32ffd27f76
4 changed files with 20 additions and 21 deletions

View File

@ -27,7 +27,8 @@ export function getProductPrice({
name,
posUuid,
businessPartnerUuid,
validFrom
validFrom,
priceListUuid
}) {
return request({
url: `${config.priceChecking.endpoint}/product-price`,
@ -39,7 +40,8 @@ export function getProductPrice({
name,
pos_uuid: posUuid,
business_partner_uuid: businessPartnerUuid,
valid_from: validFrom
valid_from: validFrom,
price_list_uuid: priceListUuid
}
})
.then(productPriceResponse => {

View File

@ -54,15 +54,17 @@
</el-col>
<el-col :span="5" :style="styleTab">
<el-form-item>
<br>
<template slot="label">
<icon class="el-icon-document" /> Tipo de Documento
</template>
<el-dropdown
v-if="!isEmptyValue(currentWarehouse)"
trigger="click"
class="info-pos"
style="padding-top: 0px;font-size: 14px;color: black;"
@command="changeDocumentType"
>
<span>
<svg-icon icon-class="tree" />
<icon class="el-icon-connection" />
<b style="cursor: pointer"> {{ currentDocumentType.name }} </b>
</span>
<el-dropdown-menu slot="dropdown">
@ -75,7 +77,6 @@
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<br>
</el-form-item>
</el-col>
<el-col :span="isEmptyValue(currentOrder) ? 1 : 4" :style="isShowedPOSKeyLayout ? 'padding: 0px; margin-top: 3.%;' : 'padding: 0px; margin-top: 2.4%;'">

View File

@ -359,17 +359,6 @@ export default {
message: error.message,
showClose: true
})
this.$store.commit('updateValueOfField', {
containerUuid: 'Products-Price-List',
columnName: 'ProductValue',
value: `${searchProduct}`
})
this.$store.commit('showListProductPrice', {
attribute: 'isShowPopoverField',
isShowed: true
})
})
.finally(() => {
this.$store.commit('updateValuesOfContainer', {

View File

@ -37,13 +37,14 @@ export default {
createOrder({ commit, dispatch, rootGetters }, {
posUuid,
customerUuid,
documentTypeUuid
documentTypeUuid,
warehouseUuid
}) {
return createOrder({
posUuid,
customerUuid,
warehouseUuid: rootGetters.currentWarehouse.uuid,
documentTypeUuid
documentTypeUuid,
warehouseUuid
})
.then(order => {
commit('setOrder', order)
@ -115,7 +116,13 @@ export default {
}) {
createOrderLine({
orderUuid,
productUuid
warehouseUuid,
productUuid,
chargeUuid,
description,
quantity,
price,
discountRate
})
.then(orderLine => {
dispatch('updateOrderLines', orderLine)