|
|
|
@ -114,7 +114,6 @@
|
|
|
|
|
<el-input size="small" v-model="scope.row.count"
|
|
|
|
|
placeholder="请输入数量" style="width: 80%"
|
|
|
|
|
type='number'
|
|
|
|
|
@change="tableCountChange(scope.row)"
|
|
|
|
|
:disabled="scope.row.index !== selectedIndex"
|
|
|
|
|
oninput="value=value.replace(/[^\d]/g,'')"></el-input>
|
|
|
|
|
</template>
|
|
|
|
@ -127,6 +126,9 @@
|
|
|
|
|
<el-button type="text" size="small" :disabled="scope.row.index === selectedIndex" @click.stop="true"
|
|
|
|
|
@click.native="rowChange(scope.row)">编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" size="small" :disabled="scope.row.index !== selectedIndex" @click.stop="true"
|
|
|
|
|
@click.native="tableCountChange(scope.row)">保存
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" size="small" @click.stop="true"
|
|
|
|
|
@click.native="deleteCodeArray(scope.$index, scope.row)">删除
|
|
|
|
|
</el-button>
|
|
|
|
@ -397,6 +399,7 @@ export default {
|
|
|
|
|
tableCountChange(row) {
|
|
|
|
|
if (this.$isNotBlank(row)) {
|
|
|
|
|
updateDetail(this.currentRow);
|
|
|
|
|
this.selectedIndex=""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tableRowClassName({row, rowIndex}) {
|
|
|
|
|