|
|
|
@ -43,11 +43,18 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleUpdateQuoteDetailCalculation(){ |
|
|
|
this.$alert('确认删除该条报价明细吗?', '提示', { |
|
|
|
this.$alert('确认应用2020Rate吗?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(()=>{ |
|
|
|
// 校验 |
|
|
|
for (let i = 0; i < Object.keys(this.calculation).length; i++) { |
|
|
|
if (!this.calculation[Object.keys(this.calculation)[i]]) { |
|
|
|
this.$message.warning("请填写完整信息") |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
let params = { |
|
|
|
...this.calculation, |
|
|
|
} |
|
|
|
@ -56,7 +63,7 @@ export default { |
|
|
|
this.$message.success(data.msg) |
|
|
|
this.handleQueryQuoteDetailCalculation() |
|
|
|
}else { |
|
|
|
this.$message.error(data.msg) |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error) |
|
|
|
@ -158,6 +165,14 @@ export default { |
|
|
|
<el-input-number style="width: 100%" :controls="false" :min="0" v-model="calculation.machFrontRate"></el-input-number> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="10"> |
|
|
|
<el-col :span="4"> |
|
|
|
Converting工时损耗 |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-input-number style="width: 100%" :controls="false" :min="0" v-model="calculation.convertingRate"></el-input-number> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
</template> |
|
|
|
|
|
|
|
|