|
@@ -103,7 +103,7 @@
|
|
|
<el-row class="my-row">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="单价" prop="price">
|
|
|
- <el-input-number v-model="item.price" :disabled="display" :precision="1" :min="0.0" :step="0.1"></el-input-number>
|
|
|
+ <el-input-number v-model="item.price" :disabled="display" :precision="2" :min="0.00" :step="0.10"></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8" style="padding-left: 20px">
|
|
@@ -113,7 +113,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8" style="padding-left: 20px">
|
|
|
<el-form-item label="金额" prop="amount">
|
|
|
- <span>{{ item.price * item.cnt }}</span>
|
|
|
+ <span>{{ Number(item.price * item.cnt) }}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -226,9 +226,11 @@
|
|
|
addOne (item) {
|
|
|
this.dataList.push({...item,
|
|
|
buttonType: item ? (item.buttonType ? '1' : '0') : '0',
|
|
|
+ price: (item && item.price) ? item.price : 0,
|
|
|
+ cnt: (item && item.cnt) ? item.cnt : 0,
|
|
|
amount: item ? item.amount : 0,
|
|
|
state: item ? item.state : 0,
|
|
|
- sourceCategory: item ? item.sourceCategory : '2',
|
|
|
+ sourceCategory: (item && item.sourceCategory) ? item.sourceCategory : '2',
|
|
|
expirationTime: item ? (item.expirationTime ? item.expirationTime : '2099-01-01 00:00:00') : '2099-01-01 00:00:00'
|
|
|
})
|
|
|
},
|