'123'
This commit is contained in:
parent
be70da84cb
commit
bc43f03800
|
@ -1,5 +1,14 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 金额计算
|
||||
export function toDecimal(x){
|
||||
let f = parseFloat(x);
|
||||
if (isNaN(f)) {
|
||||
return;
|
||||
}
|
||||
f = Math.round(x*100)/100;
|
||||
return f;
|
||||
}
|
||||
// 获取目录
|
||||
export function productList(query) {
|
||||
return request({
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
|
||||
</style>
|
||||
<script>
|
||||
import { productList,productRemarkList,productXinghList,judgeparent,productZlList,productYsxhListCheck,productYsxhList,productJmListCheck,productJmList,searchData} from "@/api/redBook/redBook";
|
||||
import {toDecimal, productList,productRemarkList,productXinghList,judgeparent,productZlList,productYsxhListCheck,productYsxhList,productJmListCheck,productJmList,searchData} from "@/api/redBook/redBook";
|
||||
|
||||
export default {
|
||||
name: "productSelect",
|
||||
|
@ -372,18 +372,10 @@
|
|||
row.percent2 = percent2;
|
||||
row.setPrice = price;
|
||||
row.count = count;
|
||||
const allPrice = this.toDecimal(count*price);
|
||||
const allPrice = toDecimal(count*price);
|
||||
row.allPrice = allPrice;
|
||||
this.selectedResultData.push(row)
|
||||
},
|
||||
toDecimal(x){
|
||||
var f = parseFloat(x);
|
||||
if (isNaN(f)) {
|
||||
return;
|
||||
}
|
||||
f = Math.round(x*100)/100;
|
||||
return f;
|
||||
},
|
||||
|
||||
//删除已选数据
|
||||
handleDeleteClick(index){
|
||||
|
|
Loading…
Reference in New Issue