优化页面字段问题
This commit is contained in:
parent
bd1004541d
commit
0b7b53fe06
|
|
@ -152,6 +152,7 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
v-if="isAdd || isEdit"
|
v-if="isAdd || isEdit"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
|
:loading="submitLoading"
|
||||||
>
|
>
|
||||||
保存
|
保存
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
@ -497,6 +498,7 @@ export default {
|
||||||
selDeviceTypeChangeValue: '',
|
selDeviceTypeChangeValue: '',
|
||||||
deviceTypeTreeNew: [],
|
deviceTypeTreeNew: [],
|
||||||
completeSetList: [],
|
completeSetList: [],
|
||||||
|
submitLoading: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -769,7 +771,7 @@ export default {
|
||||||
if (this.rejectTaskStatus == 100) {
|
if (this.rejectTaskStatus == 100) {
|
||||||
this.queryParams.souceByRefuse = 1
|
this.queryParams.souceByRefuse = 1
|
||||||
}
|
}
|
||||||
|
this.submitLoading = true
|
||||||
const params = {
|
const params = {
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
taskId: this.taskId,
|
taskId: this.taskId,
|
||||||
|
|
@ -786,6 +788,8 @@ export default {
|
||||||
this.$message.error('机具类型库存量为零无法领料')
|
this.$message.error('机具类型库存量为零无法领料')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.submitLoading = true
|
||||||
res = await submitLeaseApply(this.queryParams)
|
res = await submitLeaseApply(this.queryParams)
|
||||||
}
|
}
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
|
@ -793,11 +797,13 @@ export default {
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
})
|
})
|
||||||
|
this.submitLoading = false
|
||||||
// this.$tab.closeOpenPage({
|
// this.$tab.closeOpenPage({
|
||||||
// path: '/claimAndRefund/receive/receiveApply',
|
// path: '/claimAndRefund/receive/receiveApply',
|
||||||
// })
|
// })
|
||||||
|
|
||||||
this.$emit('goBackPage')
|
this.$emit('goBackPage')
|
||||||
|
} else {
|
||||||
|
this.submitLoading = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,7 @@
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
|
:loading="submitLoading"
|
||||||
>保存</el-button
|
>保存</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -488,6 +489,7 @@ export default {
|
||||||
rowId: '',
|
rowId: '',
|
||||||
selDeviceTypeChangeValue: '',
|
selDeviceTypeChangeValue: '',
|
||||||
deviceTypeTreeNew: [],
|
deviceTypeTreeNew: [],
|
||||||
|
submitLoading: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -762,6 +764,7 @@ export default {
|
||||||
backApplyDetails:
|
backApplyDetails:
|
||||||
this.queryParams.leaseApplyDetails,
|
this.queryParams.leaseApplyDetails,
|
||||||
}
|
}
|
||||||
|
this.submitLoading = true
|
||||||
const res = await submitRefuseBackApply(params)
|
const res = await submitRefuseBackApply(params)
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({ type: 'success', message: res.msg })
|
this.$message({ type: 'success', message: res.msg })
|
||||||
|
|
@ -773,6 +776,8 @@ export default {
|
||||||
// })
|
// })
|
||||||
// }, 1000)
|
// }, 1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.submitLoading = false
|
||||||
} else {
|
} else {
|
||||||
let params = {
|
let params = {
|
||||||
companyId: this.companyId,
|
companyId: this.companyId,
|
||||||
|
|
@ -783,6 +788,7 @@ export default {
|
||||||
backApplyDetails:
|
backApplyDetails:
|
||||||
this.queryParams.leaseApplyDetails,
|
this.queryParams.leaseApplyDetails,
|
||||||
}
|
}
|
||||||
|
this.submitLoading = true
|
||||||
const res = await submitBackApplyApi(params)
|
const res = await submitBackApplyApi(params)
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({ type: 'success', message: res.msg })
|
this.$message({ type: 'success', message: res.msg })
|
||||||
|
|
@ -793,6 +799,7 @@ export default {
|
||||||
// })
|
// })
|
||||||
// }, 1000)
|
// }, 1000)
|
||||||
}
|
}
|
||||||
|
this.submitLoading = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue