零件分配按钮禁用
This commit is contained in:
@@ -198,15 +198,15 @@
|
||||
placeholder="选择交货期"/>
|
||||
<span style="font-weight: bold">制造:</span>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="将零件选择到采购单" placement="top">
|
||||
<el-button type="primary" size="small" icon="el-icon-s-shop" plain style="margin-top: 3px; margin-left: 5px" @click="purchaseRequisition()">制造部采购</el-button>
|
||||
<el-button :loading="purchaseRequisition_loading" type="primary" size="small" icon="el-icon-s-shop" plain style="margin-top: 3px; margin-left: 5px" @click="purchaseRequisition()">制造部采购</el-button>
|
||||
</el-tooltip>
|
||||
<span style="margin-left: 40px;font-weight: bold">金工:</span>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="所选零件分配为自家生产" placement="top">
|
||||
<el-button type="danger" size="small" icon="el-icon-star-off" plain style="margin-top: 3px; margin-left: 5px" @click="Production()">车间生产</el-button>
|
||||
<el-button :loading="Production_loading" type="danger" size="small" icon="el-icon-star-off" plain style="margin-top: 3px; margin-left: 5px" @click="Production()">车间生产</el-button>
|
||||
</el-tooltip>
|
||||
<span style="margin-left: 40px;font-weight: bold">采购:</span>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="所选零件分配到采购部" placement="top">
|
||||
<el-button type="success" size="small" icon="el-icon-shopping-cart-full" plain style="margin-top: 3px; margin-left: 5px" @click="PurchasingDepartment()">采购部门采购</el-button>
|
||||
<el-button :loading="PurchasingDepartment_loading" type="success" size="small" icon="el-icon-shopping-cart-full" plain style="margin-top: 3px; margin-left: 5px" @click="PurchasingDepartment()">采购部门采购</el-button>
|
||||
</el-tooltip>
|
||||
</el-card>
|
||||
<el-card style="padding: 3px;">
|
||||
@@ -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('请选择基本件')
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user