mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-07 18:25:45 +08:00
Switching from document type (#987)
* Switching from document type * minimal changes Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
parent
80b9e9e95b
commit
fe28675214
@ -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 => {
|
||||
|
@ -54,15 +54,15 @@
|
||||
</el-col>
|
||||
<el-col :span="5" :style="styleTab">
|
||||
<el-form-item>
|
||||
<br>
|
||||
<template slot="label" />
|
||||
<el-dropdown
|
||||
v-if="!isEmptyValue(currentWarehouse)"
|
||||
v-if="!isEmptyValue(currentDocumentType)"
|
||||
trigger="click"
|
||||
class="info-pos"
|
||||
style="padding-top: 10%;font-size: 15px;color: black;"
|
||||
@command="changeDocumentType"
|
||||
>
|
||||
<span>
|
||||
<svg-icon icon-class="tree" />
|
||||
<icon class="el-icon-document" />
|
||||
<b style="cursor: pointer"> {{ currentDocumentType.name }} </b>
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
@ -75,7 +75,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%;'">
|
||||
|
@ -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', {
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user