wanghairong 5 місяців тому
батько
коміт
36c3ce28f5

+ 20 - 0
src/api/path/flowPool.api.js

@@ -0,0 +1,20 @@
+
+import service from '../axios'
+
+// 分销商
+// 新增
+export function addTrafficPool(param) {
+    return service.post('/admin/platform/addTrafficPool', param)
+}
+// list
+export function trafficPoolList(param) {
+    return service.post('/admin/platform/trafficPoolList', param)
+}
+// 编辑
+export function updateTrafficPool(param) {
+    return service.post('/admin/platform/updateTrafficPool', param)
+}
+// 删除
+export function deleteTrafficPool(params) {
+    return service.get('/admin/platform/deleteTrafficPool', { params })
+}

+ 3 - 3
src/api/path/tariffManagement.api.js

@@ -16,7 +16,7 @@ export function updateTariff(param) {
     return service.post('/admin/platform/updateTariff', param)
 }
 
-// 更新资费计划
-export function deleteTariff(param) {
-    return service.post('/admin/platform/deleteTariff', param)
+// 删除资费计划
+export function deleteTariff(params) {
+    return service.get('/admin/platform/deleteTariff', { params })
 }

+ 6 - 5
src/hooks/enum.js

@@ -5,10 +5,11 @@ export const enum_dict = {
     MAIN_CARD_STATUS: "main_card_status", // 主卡状态
     PACKAGE_TRIFF_PLAN_STATUS: "package_tariff_plan_status", // 套餐资费计划判断状态
     SUPPLIER_SOURCE: "supplier_source", // 来源(订单管理列表)
-    TRAFFICTYPE: "TrafficType", // 流量类型
+    TRAFFI_CTYPE: "TrafficType", // 流量类型
     SOURCE: "source", // 来源(资费列表)
-    BILLINGCYCLE: "Billingcycle", // 计费周期
-    BILLINGTYPE: "BillingType", // 计费分类
-    BILLINGMETHOD: "billingMethod", // 计费方式
-    SETTLEMENTCYCLE: "settlementCycle", // 结算周期
+    BILLING_CYCLE: "Billingcycle", // 计费周期
+    BILLING_TYPE: "BillingType", // 计费分类
+    BILLING_METHOD: "billingMethod", // 计费方式
+    SETTLEMENT_CYCLE: "settlementCycle", // 结算周期
+    TRAFFIC_POOL_TYPE: "trafficPoolType", // 流量池类型
 };

+ 22 - 16
src/i18n/zh/customer.js

@@ -21,7 +21,7 @@ export default {
   warningNumbers: "预警参数",
 
   // 表格列
-  id: "ID",
+  id: "序号",
   customerCode: "客户编码",
   accountNumber: "账号",
   accountBalance: "账户余额",
@@ -112,7 +112,7 @@ export default {
   enterWebsiteBackend: '请输入网站备案号',
   customerAddress: '客户地址',
   enterCustomerAddress: '请输入客户地址',
-  
+
   contactPerson: '联系人',
   enterContactPerson: '请输入联系人',
   contactPhone: '联系人手机号',
@@ -121,7 +121,7 @@ export default {
   enterContactEmail: '请输入联系人邮箱',
   contactQQ: '联系人QQ号',
   enterContactQQ: '请输入联系人QQ号',
-  
+
   billingPerson: '收件人',
   enterBillingPerson: '请输入收件人',
   billingPhone: '收件人手机号',
@@ -192,17 +192,23 @@ export default {
   telephoneApplicationFormDescription: '支持扩展名:.rar .zip .doc .docx .ppt .pptx .xls .xlsx .pdf .jpg .jpeg .png .txt\n最多上传10个文件,每个文件不超过2M',
   otherDocumentsDescription: '支持扩展名:.rar .zip .doc .docx .ppt .pptx .xls .xlsx .pdf .jpg .jpeg .png .txt\n最多上传10个文件,每个文件不超过2M',
 
-   // 预警参数相关翻译
-   warningNumbers: '预警参数',
-   accountBalanceWarning: '账号余额预警',
-   reachWarning: '达量预警',
-   stopSending: '达量停机',
-   networkDisconnection: '达量断网',
-   warningPhones: '预警手机',
-   warningEmails: '预警邮箱',
-   enterWarningPhones: '多个逗号隔开,最多3个',
-   enterWarningEmails: '多个逗号隔开,最多3个',
-   noRecovery: '不复机',
-   manualRecovery: '手工恢复',
-   autoRecovery: '自动恢复',
+  // 预警参数相关翻译
+  warningNumbers: '预警参数',
+  accountBalanceWarning: '账号余额预警',
+  reachWarning: '达量预警',
+  stopSending: '达量停机',
+  networkDisconnection: '达量断网',
+  warningPhones: '预警手机',
+  warningEmails: '预警邮箱',
+  enterWarningPhones: '多个逗号隔开,最多3个',
+  enterWarningEmails: '多个逗号隔开,最多3个',
+  noRecovery: '不复机',
+  manualRecovery: '手工恢复',
+  autoRecovery: '自动恢复',
+  // customerInvoice: {
+  //   businessLicenseFile: "营业执照扫描件(加盖公章)"
+  // },
+  // customerCardQualification: {
+  //   legalPersonIdCardFrontFile:
+  // }
 };

+ 55 - 55
src/i18n/zh/dataPackage.js

@@ -1,56 +1,56 @@
 export default {
-    // 数据包管理
-    addDataPackage: '添加数据包',
-    editDataPackage: '编辑数据包',
-    packageName: '套餐名称',
-    enterPackageName: '请输入套餐名称',
-    operatorType: '运营商类型',
-    selectOperatorType: '请选择运营商类型',
-    searchExecuted: '搜索已执行',
-    searchReset: '搜索条件已重置',
-    selectStatus: '请选择状态',
-    statusName: '状态',
-    
-    // 表格列
-    id: '序号',
-    packageCode: '套餐编码',
-    operatorName: '运营商名称',
-    packageSize: '套餐大小',
-    standardPrice: '标准价格',
-    status: '状态',
-    
-    // 操作提示
-    packageDeleted: '数据包 {name} 已删除',
-    packageUpdated: '数据包 {name} 已更新',
-    packageAdded: '数据包 {name} 已添加',
-    
-    // 表单字段
-    operatorPackageCode: '运营商套餐编码',
-    enterOperatorPackageCode: '请输入运营商套餐编码',
-    enterPackageSize: '请输入套餐大小',
-    enterStandardPrice: '请输入标准价格',
-    selectStatus: '请选择状态',
-    
-    // 状态选项
-    status: {
-      normal: '正常',
-      disabled: '停用',
-      offline: '下线'
-    },
-    
-    // 运营商类型选项
-    operatorTypes: {
-      chinamobile: '中国移动',
-      chinaunicom: '中国联通',
-      chinatelecom: '中国电信',
-      international: '国际通用',
-      foreign_local: '境外本地'
-    },
-    
-    // 表单验证消息
-    packageNameRequired: '请输入套餐名称',
-    operatorTypeRequired: '请选择运营商类型',
-    statusRequired: '请选择状态',
-    packageSizeRequired: '请输入套餐大小',
-    standardPriceRequired: '请输入标准价格'
-  };
+  // 数据包管理
+  addDataPackage: '添加数据包',
+  editDataPackage: '编辑数据包',
+  enterPackageName: '请输入流量包名称',
+  operatorType: '运营商类型',
+  selectOperatorType: '请选择运营商类型',
+  searchExecuted: '搜索已执行',
+  searchReset: '搜索条件已重置',
+  selectStatus: '请选择状态',
+
+  // 表格列
+  id: '序号',
+  packageCode: '流量包编码',
+  packageName: '流量包名称',
+  operatorName: '运营商名称',
+  packageSize: '流量包大小',
+  standardPrice: '标准价格',
+  statusName: '状态',
+
+  // 操作提示
+  packageDeleted: '数据包 {name} 已删除',
+  packageUpdated: '数据包 {name} 已更新',
+  packageAdded: '数据包 {name} 已添加',
+
+  // 表单字段
+  operatorPackageCode: '运营商流量包编码',
+  enterOperatorPackageCode: '请输入运营商流量包编码',
+  enterPackageSize: '请输入流量包大小',
+  enterStandardPrice: '请输入标准价格',
+  selectStatus: '请选择状态',
+  price: '资费',
+
+  // 状态选项
+  status: {
+    normal: '正常',
+    disabled: '停用',
+    offline: '下线'
+  },
+
+  // 运营商类型选项
+  operatorTypes: {
+    chinamobile: '中国移动',
+    chinaunicom: '中国联通',
+    chinatelecom: '中国电信',
+    international: '国际通用',
+    foreign_local: '境外本地'
+  },
+
+  // 表单验证消息
+  packageNameRequired: '请输入流量包名称',
+  operatorTypeRequired: '请选择运营商类型',
+  statusRequired: '请选择状态',
+  packageSizeRequired: '请输入流量包大小',
+  standardPriceRequired: '请输入标准价格'
+};

+ 23 - 0
src/i18n/zh/flowPool.js

@@ -0,0 +1,23 @@
+export default {
+    // 流量池
+    label: "流量池名称",// 流量池名称
+    source: "运营商名称",// 运营商名称
+    trafficPoolType: "流量池类型",
+    trafficPoolStatus: "流量池状态",
+    simRariffId: "资费ID",
+    expireTime: "过期时间",
+
+    poolNumber: "流量池编号",
+    cardRariffName: "卡资费名称",
+    cardFlow: "卡套餐",
+    cardNum: "已激活卡数/总卡数量",
+    UsedMonth: "本月已用",
+    surplusFlow: "剩余流量",
+    totalFlow: "总流量",
+    warnStatus: "预警状态",
+    exceededFlow: "已超流量",
+
+    // 按钮
+    Detail: "查看池",
+
+}

+ 3 - 1
src/i18n/zh/index.js

@@ -8,6 +8,7 @@ import customer from './customer'
 import customerPackage from './customerPackage'
 import lotCard from './lotCard'
 import tariffManagement from './tariffManagement'
+import flowPool from './flowPool'
 
 export default {
   login,
@@ -19,5 +20,6 @@ export default {
   customer,
   customerPackage,
   lotCard,
-  tariffManagement
+  tariffManagement,
+  flowPool
 }

+ 11 - 5
src/i18n/zh/tariffManagement.js

@@ -3,17 +3,23 @@ export default {
     simDataPlanId: "流量包ID",
     label: "资费名称",
     userId: "用户ID",
-    source: "来源",
+    source: "供应商名称",
     trafficType: "流量类型",
-    billingType: "计费类型",
-    bagSize: "流量包大小",
+    billingType: "计费分类",//计费方式
     billingCycle: "计费周期",
+    bagSize: "资费包大小",
+    pricing: "标准价格",
+    settlementCycle: "周期限制",// 结算周期
+
     billingMethod: "计费方式",
-    settlementCycle: "结算周期",
     sourcePrice: "来源价格",
-    pricing: "价格",
     currency: "币种",
 
+
+    id: '序号',
+    feeCode: '资费编码',
+    feeStatus: "状态",
+
     // 按钮
     addPlanBtn: "添加资费计划"
 }