确定禁用

This commit is contained in:
Vergil
2020-04-02 15:48:49 +08:00
parent 0be0836675
commit a05b31d2fb

View File

@@ -224,7 +224,7 @@
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible3=false">取消</el-button> <el-button @click="dialogFormVisible3=false">取消</el-button>
<el-button type="primary" @click="pickConfirm1()"> </el-button> <el-button :disabled="dialogFormVisible3" type="primary" @click="pickConfirm1()"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
@@ -268,6 +268,7 @@ export default {
name: 'MaterialOut', name: 'MaterialOut',
data() { data() {
return { return {
buttonDisable: false,
dateRange: '', dateRange: '',
multipleSelection1: [], multipleSelection1: [],
multipleSelection: [], multipleSelection: [],
@@ -447,7 +448,6 @@ export default {
// 提交归还 // 提交归还
submitSendBack() { submitSendBack() {
sendBack(this.form4.货位流水号, this.物料流水号, this.form4.归还数量, this.id, this.基本件流水号, this.标准件和外购件流水号, this.请购单明细流水号, this.form4.仓库流水号, this.领料单流水号).then(res => { sendBack(this.form4.货位流水号, this.物料流水号, this.form4.归还数量, this.id, this.基本件流水号, this.标准件和外购件流水号, this.请购单明细流水号, this.form4.仓库流水号, this.领料单流水号).then(res => {
console.log(res)
if (res.data[0].result === '1') { if (res.data[0].result === '1') {
this.$message.success('操作成功') this.$message.success('操作成功')
this.dialogFormVisible4 = false this.dialogFormVisible4 = false
@@ -493,10 +493,10 @@ export default {
this.form3.password = '' this.form3.password = ''
this.selectDepartment() this.selectDepartment()
this.departments = [] this.departments = []
this.buttonDisable = false
this.dialogFormVisible3 = true this.dialogFormVisible3 = true
}, },
selectable(row, index) { // 控制某行是否可选 selectable(row, index) { // 控制某行是否可选
console.log(row)
return ((Number(row.总数量) <= Number(row.出库数量1))) === false return ((Number(row.总数量) <= Number(row.出库数量1))) === false
}, },
// 初始化数据 // 初始化数据
@@ -608,6 +608,7 @@ export default {
}, },
// 提交领料确认 // 提交领料确认
pickConfirm1() { pickConfirm1() {
this.buttonDisable = true
for (let i = 0; i < this.pickListTable2.length; i++) { for (let i = 0; i < this.pickListTable2.length; i++) {
if (this.pickListTable2[i].出库数量 !== 0) { if (this.pickListTable2[i].出库数量 !== 0) {
this.multipleSelection.push(this.pickListTable2[i].领料单明细流水号) this.multipleSelection.push(this.pickListTable2[i].领料单明细流水号)