'123'
This commit is contained in:
parent
be70da84cb
commit
bc43f03800
|
@ -1,5 +1,14 @@
|
||||||
import request from '@/utils/request'
|
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) {
|
export function productList(query) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<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 {
|
export default {
|
||||||
name: "productSelect",
|
name: "productSelect",
|
||||||
|
@ -372,18 +372,10 @@
|
||||||
row.percent2 = percent2;
|
row.percent2 = percent2;
|
||||||
row.setPrice = price;
|
row.setPrice = price;
|
||||||
row.count = count;
|
row.count = count;
|
||||||
const allPrice = this.toDecimal(count*price);
|
const allPrice = toDecimal(count*price);
|
||||||
row.allPrice = allPrice;
|
row.allPrice = allPrice;
|
||||||
this.selectedResultData.push(row)
|
this.selectedResultData.push(row)
|
||||||
},
|
},
|
||||||
toDecimal(x){
|
|
||||||
var f = parseFloat(x);
|
|
||||||
if (isNaN(f)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
f = Math.round(x*100)/100;
|
|
||||||
return f;
|
|
||||||
},
|
|
||||||
|
|
||||||
//删除已选数据
|
//删除已选数据
|
||||||
handleDeleteClick(index){
|
handleDeleteClick(index){
|
||||||
|
|
Loading…
Reference in New Issue