This commit is contained in:
Vergil
2020-04-08 15:16:36 +08:00
parent 980a555608
commit 8eaf768150
2 changed files with 10 additions and 5 deletions

View File

@@ -118,7 +118,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible=false">取消</el-button>
<el-button type="primary" @click="CHUKU()"> </el-button>
<el-button :disabled="wareHousing_disable" type="primary" @click="CHUKU()"> </el-button>
</div>
</el-dialog>
</div>
@@ -131,6 +131,7 @@ import { initProject, searchmachine, searchgroup, searchdata, warehousing, selec
export default {
data() {
return {
wareHousing_disable: false,
entryNameValue: '', // 项目名称
entryName: [],
machineToolValue: '', // 机床号
@@ -253,13 +254,13 @@ export default {
}
}, // 入库
wareHousing() {
console.log(this.shuzu, 121212)
if (this.shuzu.length === 0) {
this.$message.warning('请勾选出库物料')
} else {
this.selectDepartment()
this.dialogFormVisible = true
this.form.leader = ''
this.wareHousing_disable = false
this.dialogFormVisible = true
}
}, // 多选
handleSelectionChange(val) {
@@ -286,6 +287,7 @@ export default {
if (this.form.name === '') {
this.$message.error('请选择领料人')
} else {
this.wareHousing_disable = true
warehousing(this.multipleSelection, this.outgoingQuantity, this.form.name, this.remarks).then(response => {
if (response.data[0].result === '1') {
this.$message.success('出库成功')