1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 12:01:57 +08:00

Lock Order Complete (#1057)

Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
Elsio Sanchez 2021-08-13 23:58:50 -04:00 committed by GitHub
parent 901648a0b3
commit e98a111e37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,12 +53,16 @@
/> />
</el-col> </el-col>
<el-col :span="5" :style="styleTab"> <el-col :span="5" :style="styleTab">
<el-form-item> <el-form-item style="margin-top: 11%">
<template slot="label" /> <template slot="label" />
<el-button v-if="isDisabled" type="text" :disabled="isDisabled" style="color: gray;">
<el-icon class="el-icon-document" />
<b> {{ currentDocumentType.name }} </b>
</el-button>
<el-dropdown <el-dropdown
v-if="!isEmptyValue(currentDocumentType)" v-if="!isEmptyValue(currentDocumentType) && !isDisabled"
trigger="click" trigger="click"
style="padding-top: 10%;font-size: 15px;color: black;" style="font-size: 15px;color: black;"
@command="changeDocumentType" @command="changeDocumentType"
> >
<span> <span>
@ -199,9 +203,9 @@
:show-field="showFieldLine" :show-field="showFieldLine"
:current-line="currentLineOrder" :current-line="currentLineOrder"
/> />
<el-button slot="reference" type="success" icon="el-icon-edit" size="mini" style="margin-right: 3%;" @click="showEditLine(scope.row)" /> <el-button slot="reference" type="success" icon="el-icon-edit" :disabled="isDisabled" size="mini" style="margin-right: 3%;" @click="showEditLine(scope.row)" />
</el-popover> </el-popover>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="deleteOrderLine(scope.row)" /> <el-button type="danger" icon="el-icon-delete" size="mini" :disabled="isDisabled" @click="deleteOrderLine(scope.row)" />
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -748,8 +752,10 @@ export default {
this.createOrder({ withLine: false, newOrder: true }) this.createOrder({ withLine: false, newOrder: true })
}, },
changePos(pointOfSales) { changePos(pointOfSales) {
this.$store.dispatch('setCurrentPOS', pointOfSales) if (pointOfSales.uuid !== this.currentPointOfSales.uuid) {
this.clearOrder() this.$store.dispatch('setCurrentPOS', pointOfSales)
this.clearOrder()
}
}, },
changeWarehouse(warehouse) { changeWarehouse(warehouse) {
this.attributePin = { this.attributePin = {