diff --git a/src/views/ManufacturingCenter/PartAssignment/index.vue b/src/views/ManufacturingCenter/PartAssignment/index.vue index 6d8f65b5..40f15cbf 100644 --- a/src/views/ManufacturingCenter/PartAssignment/index.vue +++ b/src/views/ManufacturingCenter/PartAssignment/index.vue @@ -198,15 +198,15 @@ placeholder="选择交货期"/> 制造: - 制造部采购 + 制造部采购 金工: - 车间生产 + 车间生产 采购: - 采购部门采购 + 采购部门采购 @@ -559,6 +559,9 @@ export default { inject: ['reload'], data() { return { + purchaseRequisition_loading: false, + Production_loading: false, + PurchasingDepartment_loading: false, handleAdd_disable: false, dateRange: '', partNumber: '', @@ -1250,6 +1253,11 @@ export default { this.multipleSelection11 = val }, purchaseRequisition() { + this.purchaseRequisition_loading = true + var that = this + setTimeout(function() { + that.purchaseRequisition_loading = false + }, 5000) if (this.RequisitionList !== '') { if (this.time !== '' && this.time !== null) { if (this.multipleSelection.length !== 0) { @@ -1395,16 +1403,24 @@ export default { } } } else { + this.purchaseRequisition_loading = false this.$message.warning('请选择零件或物料') } } else { + this.purchaseRequisition_loading = false this.$message.warning('请选择交货期') } } else { + this.purchaseRequisition_loading = false this.$message.warning('请先选择请购单') } }, PurchasingDepartment() { + this.PurchasingDepartment_loading = true + var that = this + setTimeout(function() { + that.PurchasingDepartment_loading = false + }, 5000) if (this.time !== '' && this.time !== null) { if (this.multipleSelection.length !== 0) { if (this.PartType === '基本件') { @@ -1470,13 +1486,20 @@ export default { }) } } else { + this.PurchasingDepartment_loading = false this.$message.warning('请选择零件或物料') } } else { + this.PurchasingDepartment_loading = false this.$message.warning('请选择交货期') } }, Production() { + this.Production_loading = true + var that = this + setTimeout(function() { + that.Production_loading = false + }, 5000) if (this.PartType === '基本件' && this.multipleSelection.length !== 0) { this.MaterialNum = [] this.BasicPartsNumber = [] @@ -1504,6 +1527,7 @@ export default { } }) } else { + this.Production_loading = false this.$message.warning('请选择基本件') } },