|
|
@@ -137,21 +137,12 @@ export function parseReceivePush(quotationData: any) {
|
|
|
//
|
|
|
// 处理 报价小数位
|
|
|
const handleDeimalplace = (key: string) => {
|
|
|
- // if (key === 'totalturnover' && decimalplace === 2) {
|
|
|
- // console.log('decimalplace', decimalplace, goodsQuoteTik[key], fn(goodsQuoteTik[key]), itemQuote[key])
|
|
|
- // 1130500000000
|
|
|
- // 11305000000
|
|
|
- // 1003800000000
|
|
|
- // 11305000000
|
|
|
- // 1130500000000
|
|
|
- // 11305000000
|
|
|
- // 11305000000
|
|
|
- // }
|
|
|
- return goodsQuoteTik[key] ? fn(goodsQuoteTik[key]) : itemQuote[key]
|
|
|
+ return Reflect.has(goodsQuoteTik, key) ? fn(goodsQuoteTik[key]) : itemQuote[key]
|
|
|
}
|
|
|
// 处理 如果有值则更新值,没有的话,则取上次的值
|
|
|
+ // 注意: 0 也是有效数字
|
|
|
const handleNoneValue = (key: string) => {
|
|
|
- return goodsQuoteTik[key] ? goodsQuoteTik[key] : itemQuote[key]
|
|
|
+ return Reflect.has(goodsQuoteTik, key) ? goodsQuoteTik[key] : itemQuote[key]
|
|
|
}
|
|
|
|
|
|
const changeValue = () => {
|