|
@@ -119,11 +119,11 @@
|
|
|
</span>
|
|
|
<!-- 明细 -->
|
|
|
<span slot="detailedNum" slot-scope="text, record, index">
|
|
|
- <a-input placeholder="请输入" v-model="record.detailedNum" @change="handleChangePrice(record)"/>
|
|
|
+ <a-input placeholder="请输入" v-model="record.detailedNum" @blur="handleChangePrice(record)"/>
|
|
|
</span>
|
|
|
<!-- 衣架/吨数 -->
|
|
|
<span slot="coatHanger" slot-scope="text, record, index">
|
|
|
- <a-input placeholder="请输入" v-model="record.coatHanger" @change="handleChangePrice(record)"/>
|
|
|
+ <a-input placeholder="请输入" v-model="record.coatHanger" @blur="handleChangePrice(record)"/>
|
|
|
</span>
|
|
|
<!-- 集装箱号 -->
|
|
|
<span slot="containerNo" slot-scope="text, record, index">
|
|
@@ -135,7 +135,7 @@
|
|
|
</span>
|
|
|
<!-- 价格 -->
|
|
|
<span slot="price" slot-scope="text, record, index">
|
|
|
- <a-input placeholder="请输入" v-model="record.price" @change="handleChangePrice(record)"/>
|
|
|
+ <a-input placeholder="请输入" v-model="record.price" @blur="handleChangePrice(record)"/>
|
|
|
</span>
|
|
|
<!-- 总价 -->
|
|
|
<span slot="totalPrice" slot-scope="text, record, index">
|
|
@@ -621,13 +621,19 @@
|
|
|
}
|
|
|
var Hj = 0
|
|
|
this.syCarryBTable.dataSource.map(item=>{
|
|
|
- if(item.price=='8'&&item.totalPrice>500){
|
|
|
- item.coatHanger = ''
|
|
|
- item.detailedNum = ''
|
|
|
- item.price = ''
|
|
|
- item.totalPrice = ''
|
|
|
- this.$message.error('单价为8的行总价不能超过500,请重新输入单价,衣架/吨数,明细!!');
|
|
|
- }
|
|
|
+ item.coatHanger = Number(item.coatHanger).toFixed(4)
|
|
|
+ item.totalPrice = Number(item.totalPrice).toFixed(2)
|
|
|
+ item.price = Number(item.price).toFixed(2)
|
|
|
+ item.allNum = Number(item.allNum).toFixed(0)
|
|
|
+ item.cabinets = Number(item.cabinets).toFixed(0)
|
|
|
+ item.detailedNum = Number(item.detailedNum).toFixed(0)
|
|
|
+ // if(item.price=='8'&&item.totalPrice>500){
|
|
|
+ // item.coatHanger = ''
|
|
|
+ // item.detailedNum = ''
|
|
|
+ // item.price = ''
|
|
|
+ // item.totalPrice = ''
|
|
|
+ // this.$message.error('单价为8的行总价不能超过500,请重新输入单价,衣架/吨数,明细!!');
|
|
|
+ // }
|
|
|
Hj+= Number(item.totalPrice)
|
|
|
})
|
|
|
this.formState.totalNum = Hj.toFixed(2)
|