Explorar el Código

增加客户端原价字段

774078984@qq.com hace 2 meses
padre
commit
bdb6722700

+ 0 - 1
src/views/admin/tariffManagement/SetMeal/addSetMeal.vue

@@ -174,7 +174,6 @@ const processData = (data) => {
             billingMethod: filterDict(billingMethodList.value, item.billingMethod),
             costPrice: item.billingMethod == 1? item.trafficBilling+item.trafficBillingType+'/'+ item.trafficBillingAmount +item.trafficCurrency  : item.costPrice + item.trafficCurrency,
             oldPrice: item.billingMethod == 1 ? item.oldTrafficBilling+item.oldTrafficBillingType+'/'+ item.oldTrafficBillingAmount +item.trafficCurrency : item.oldPrice + item.trafficCurrency,
-            
         }
     })
 }

+ 3 - 3
src/views/user/SetMeal/addSetMeal.vue

@@ -26,7 +26,7 @@ import { defineEmits, defineProps, toRefs, ref, onMounted } from 'vue';
 import { CheckTariffPackages } from '@/api/path/tariffManagement.api'
 import { Getdictionary, tableFunction, filterDict } from '@/mixins/index.js'
 import Search from '@/components/Search/index.vue'
-import { columnsTarrit ,SetMealSearchForm} from './config'
+import { columnsTarrit, SetMealSearchForm } from './config'
 import { tariffList } from "@/api/path/tariffManagement.api"
 const props = defineProps({
     id: [Array, String]
@@ -55,8 +55,8 @@ const processData = (data) => {
             typeName: item.type == 1 ? '服务时长' : "购买流量",
             profitPrice: item.billingMethod == 1 ? '---' : item.profitPrice + item.currency,
             billingMethod: filterDict(billingMethodList.value, item.billingMethod),
-            costPrice: item.costPrice + item.trafficCurrency,
-            oldPrice: item.billingMethod == 1 ? '---' : item.oldPrice + item.trafficCurrency,
+            costPrice: item.billingMethod == 1 ? item.trafficBilling + item.trafficBillingType + '/' + item.trafficBillingAmount + item.trafficCurrency : item.costPrice + item.trafficCurrency,
+            oldPrice: item.billingMethod == 1 ? item.oldTrafficBilling + item.oldTrafficBillingType + '/' + item.oldTrafficBillingAmount + item.trafficCurrency : item.oldPrice + item.trafficCurrency,
         }
     })
 }