fix(wms): 修复调拨单二次调整按钮显示及仓库选择保存问题
修复调拨单列表中二次调整按钮的显示条件,从原审批状态为2或3改为仅状态为3时显示 移除执行全部按钮的注释状态 为仓库选择添加change事件自动保存功能 调整重新提交审批的提示信息和成功消息
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="warehouseIdAfter" label="调拨后库区" width="200">
|
||||
<template slot-scope="scope">
|
||||
<el-select v-if="!scope.row.isConfirmed && canEdit" v-model="scope.row.warehouseIdAfter" placeholder="请选择">
|
||||
<el-select v-if="!scope.row.isConfirmed && canEdit" v-model="scope.row.warehouseIdAfter" @change="handleWarehouseChange(scope.row)" placeholder="请选择">
|
||||
<el-option v-for="item in warehouseList" :disabled="!item.isEnabled" :key="item.warehouseId"
|
||||
:label="item.warehouseName" :value="item.warehouseId" />
|
||||
</el-select>
|
||||
@@ -62,14 +62,14 @@
|
||||
<el-table-column type="action" label="操作" width="180">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="orderStatus == 0">
|
||||
<el-button icon="el-icon-check" size="mini" v-if="!scope.row.isConfirmed" @click="handleUpdate(scope.row)"
|
||||
:loading="buttonLoading">保存</el-button>
|
||||
<!-- <el-button icon="el-icon-check" size="mini" v-if="!scope.row.isConfirmed" @click="handleUpdate(scope.row)"
|
||||
:loading="buttonLoading">保存</el-button> -->
|
||||
<el-button icon="el-icon-close" size="mini" @click="handleCancel(scope.row)"
|
||||
:loading="buttonLoading">删除</el-button>
|
||||
</div>
|
||||
<div v-else>
|
||||
<el-button icon="el-icon-check" size="mini" v-if="!scope.row.isConfirmed" @click="handleConfirm(scope.row)"
|
||||
:loading="buttonLoading" :disabled="orderStatus != '2'">执行</el-button>
|
||||
<!-- <el-button icon="el-icon-check" size="mini" v-if="!scope.row.isConfirmed" @click="handleConfirm(scope.row)"
|
||||
:loading="buttonLoading" :disabled="orderStatus != '2'">执行</el-button> -->
|
||||
<!-- <el-button icon="el-icon-close" size="mini" @click="handleCancel(scope.row)"
|
||||
:loading="buttonLoading" :disabled="orderStatus !== '2'">取消</el-button> -->
|
||||
</div>
|
||||
@@ -278,10 +278,14 @@ export default {
|
||||
itemId: row.itemIdAfter
|
||||
}).then(res => {
|
||||
row.itemIdAfter = res.data
|
||||
updateTransferOrderItem(row)
|
||||
this.materialLoading = false
|
||||
}).catch(() => {
|
||||
this.materialLoading = false
|
||||
})
|
||||
},
|
||||
handleWarehouseChange(row) {
|
||||
updateTransferOrderItem(row)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user