|
|
|
@ -294,6 +294,7 @@ export default { |
|
|
|
}, |
|
|
|
quoteDetailBom:{}, |
|
|
|
quoteDetailBomVisible:false, |
|
|
|
preValue:undefined, |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
@ -486,10 +487,16 @@ export default { |
|
|
|
this.quoteDetailBom = { |
|
|
|
...row, |
|
|
|
} |
|
|
|
this.preValue = row.attritionRate; |
|
|
|
this.quoteDetailBomVisible = true; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
handleBlur(row){ |
|
|
|
if (row.attritionRate === this.preValue) { |
|
|
|
this.quoteDetailBomVisible = false; |
|
|
|
this.preValue = undefined |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
if (this.quoteDetail && this.quoteDetail.id) { |
|
|
|
@ -550,7 +557,7 @@ export default { |
|
|
|
<el-link @click="handleJumpToBom(scope.row)">{{ scope.row[item.columnProp] }}</el-link> |
|
|
|
</template> |
|
|
|
<template v-else-if="item.columnProp === 'attritionRate' && quoteDetailBomVisible && scope.row.id === quoteDetailBom.id"> |
|
|
|
<el-input-number v-model="scope.row.attritionRate" @change="handleUpdateQuoteDetailBom(scope.row)" style="width: 100%" :controls="false" :min="0"></el-input-number> |
|
|
|
<el-input-number v-model="scope.row.attritionRate" @blur="handleBlur(scope.row)" @change="handleUpdateQuoteDetailBom(scope.row)" style="width: 100%" :controls="false" :min="0"></el-input-number> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span> |
|
|
|
|