|
|
|
@ -24,7 +24,7 @@ |
|
|
|
刷新</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item class="customer-button"> |
|
|
|
<el-button class="customer-bun-min" type="primary" @click="finishRollBun" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
<el-button class="customer-bun-min" :disabled="buttonTags.finishRollFlag" type="primary" @click="finishRollBun" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
结束卷</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item class="customer-button"> |
|
|
|
@ -517,6 +517,7 @@ export default { |
|
|
|
], |
|
|
|
buttonTags:{ |
|
|
|
selectShiftFlag: true, |
|
|
|
finishRollFlag: true, |
|
|
|
}, |
|
|
|
dataListLoading: false, |
|
|
|
} |
|
|
|
@ -589,6 +590,8 @@ export default { |
|
|
|
|
|
|
|
/*刷新当前的页面参数*/ |
|
|
|
async refreshPageData(){ |
|
|
|
//首先关闭报工按钮 |
|
|
|
this.buttonTags.finishRollFlag = true; |
|
|
|
//1.刷新当前卷的报工数据 |
|
|
|
await getCurrentRollReportedQty(this.scheduleData).then(({data}) => { |
|
|
|
this.pageData.approvedQty = data.row.approvedQty; |
|
|
|
@ -673,6 +676,10 @@ export default { |
|
|
|
//刷新当前卷的时间数据 |
|
|
|
await getSfdcMaterialByRollNo(this.scheduleData).then(({data}) => { |
|
|
|
this.sfdcMaterialList = data.rows; |
|
|
|
//只有数据全部刷新后 才可以报工 |
|
|
|
setTimeout(()=>{ |
|
|
|
this.buttonTags.finishRollFlag = false; |
|
|
|
}, 1000); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
|