|
@@ -154,10 +154,16 @@
|
|
|
@blur="priceinputfun($event, row)"></el-input>
|
|
|
<span v-else>{{ row.price }}</span>
|
|
|
</template>
|
|
|
- <template slot="quantity" slot-scope="{ row }">
|
|
|
+ <!-- <template slot="quantity" slot-scope="{ row }">
|
|
|
<el-input v-if="row.edit" type="number" v-model="row.quantity" size="small" :min="1"
|
|
|
placeholder="请输入" @blur="quantityinputfun(row)"></el-input>
|
|
|
<span v-else>{{ row.quantity }}</span>
|
|
|
+ </template> -->
|
|
|
+ <template slot="quantity" slot-scope="{ row }">
|
|
|
+ <el-input-number v-if="row.edit" type="number" v-model="row.quantity" size="small" :min="1"
|
|
|
+ :controls="false" :precision="3" placeholder="请输入" style="width: 100%;"
|
|
|
+ @blur="quantityinputfun(row)"></el-input-number>
|
|
|
+ <span v-else>{{ row.quantity }}</span>
|
|
|
</template>
|
|
|
<template slot="remarks" slot-scope="{ row }">
|
|
|
<el-input v-if="row.edit" v-model="row.remarks" size="small" placeholder="请输入"></el-input>
|
|
@@ -297,10 +303,16 @@
|
|
|
@blur="priceinputfun($event, row)"></el-input>
|
|
|
<span v-else>{{ row.price }}</span>
|
|
|
</template>
|
|
|
- <template slot="quantity" slot-scope="{ row }">
|
|
|
+ <!-- <template slot="quantity" slot-scope="{ row }">
|
|
|
<el-input v-if="row.edit" type="number" v-model="row.quantity" size="small" :min="1"
|
|
|
placeholder="请输入" @blur="quantityinputfun(row)"></el-input>
|
|
|
<span v-else>{{ row.quantity }}</span>
|
|
|
+ </template> -->
|
|
|
+ <template slot="quantity" slot-scope="{ row }">
|
|
|
+ <el-input-number v-if="row.edit" type="number" v-model="row.quantity" size="small" :min="1"
|
|
|
+ :controls="false" :precision="3" placeholder="请输入" style="width: 100%;"
|
|
|
+ @blur="quantityinputfun(row)"></el-input-number>
|
|
|
+ <span v-else>{{ row.quantity }}</span>
|
|
|
</template>
|
|
|
<template slot="remarks" slot-scope="{ row }">
|
|
|
<el-input v-if="row.edit" v-model="row.remarks" size="small" placeholder="请输入"></el-input>
|