吴sir 4 ماه پیش
والد
کامیت
4780001243
3فایلهای تغییر یافته به همراه14 افزوده شده و 2 حذف شده
  1. 2 1
      src/i18n/zh/tariffManagement.js
  2. 1 0
      src/views/tariffManagement/config.js
  3. 11 1
      src/views/tariffManagement/index.vue

+ 2 - 1
src/i18n/zh/tariffManagement.js

@@ -34,5 +34,6 @@ export default {
     ChargingCycle:'计费周期',
     userName:'客户名称',
     MRCName:'MRC费(月租)',
-    networkName:'网络接入费'
+    networkName:'网络接入费',
+    ActivatedNames:'流量总数'
 }

+ 1 - 0
src/views/tariffManagement/config.js

@@ -11,6 +11,7 @@ export let columns = [
     { title: window.$t('tariffManagement.pricing'), dataIndex: 'pricingName', align: 'center', width: 200 },
     // { title: window.$t('tariffManagement.billingMethod'), dataIndex: 'billing_method', align: 'center', width: 200 },
     { title: window.$t('tariffManagement.settlementCycleLabel'), dataIndex: 'settlementCycle', align: 'center', width: 200 },
+    { title: window.$t('tariffManagement.ActivatedNames'), dataIndex: 'Activated', align: 'center', width: 200 },
     { title: window.$t('tariffManagement.feeStatus'), dataIndex: 'status', align: 'center', width: 200 },
     {
         title: window.$t('global.common.operations'),

+ 11 - 1
src/views/tariffManagement/index.vue

@@ -253,12 +253,14 @@ const intData = async () => {
     const sourceName = sourceList.value.find(val => val.value == item.source)?.label
     const billingCycleName = cycleist.value.find(val => val.value == item.billingCycle)?.label
     const pricingCurrty = currency.value.find(val => val.value == item.currency)?.label
+    const Activated = item.trafficBilling+'/'+item.trafficBillingType
+
     return {
       ...item,
       sourceName,
       pricingName: item.pricing !== '' ? item.pricing + '/' + pricingCurrty : '',
       billingCycleName,
-      feeCode: "NR0" + (index + 1),
+      Activated:Activated,
       status: "正常"
     }
   })
@@ -509,6 +511,14 @@ watch(
     {immediate: true}
 );
 
+watch(()=>formState.value.billingMethod,val=>{
+   if(val==2){
+      formState.value.trafficBillingType = ''
+      formState.value.trafficBilling = ''
+      formState.value.trafficBillingAmount = ''
+   }
+})
+
 // -------------------------------------------------------
 // 获取字典
 const handleDictValue = async () => {