Bläddra i källkod

客户增加卡字段数量

wxy 3 månader sedan
förälder
incheckning
5a1209caa8

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

@@ -272,5 +272,6 @@ export default {
     startTime:'创建时间',
     platform:'平台',
     client:'客户',
-    note:'注:登录密码是明文加密,编辑并不会回显原密码,如无需修改密码,请直接保存信息即可!!'
+    note:'注:登录密码是明文加密,编辑并不会回显原密码,如无需修改密码,请直接保存信息即可!!',
+    cardNum:'卡数量'
 };

+ 1 - 1
src/views/flowPool/config.js

@@ -187,7 +187,7 @@ export const SearchFormList = [
     type: "range-picker",
     label: "更新日期",
     field: "updatedAt",
-    value: "", // 双向绑定的值
+    value: [], // 双向绑定的值
     width: "240",
   },
 ];

+ 1 - 1
src/views/lotCard/cardList/config.js

@@ -113,7 +113,7 @@ export const columns = [
   },
   {
     title: window.$t("lotCard.PoolName_Number"),
-    dataIndex: "poolNum",
+    dataIndex: "poolName",
     align: "center",
     width: 200,
     ellipsis: true,

+ 9 - 9
src/views/lotCard/cardList/index.vue

@@ -11,11 +11,11 @@
         <span>{{ record.dataUsageTotal }}MB</span>
       </template>
       <template #iccidStatus="{ record }">
-        <a-tag  color="#7bc616" v-if="record.iccidStatus=='正常'">{{ record.iccidStatus }}</a-tag>
+        <a-tag color="#7bc616" v-if="record.iccidStatus == '正常'">{{ record.iccidStatus }}</a-tag>
         <a-tag v-else>{{ record.iccidStatus }}</a-tag>
       </template>
       <template #DatapackageStatus="{ record }">
-        <a-tag  color="#7bc616" v-if="record.DatapackageStatus=='已激活'">{{ record.DatapackageStatus }}</a-tag>
+        <a-tag color="#7bc616" v-if="record.DatapackageStatus == '已激活'">{{ record.DatapackageStatus }}</a-tag>
         <a-tag v-else>{{ record.DatapackageStatus }}</a-tag>
       </template>
       <template #id="{ record }">
@@ -80,12 +80,13 @@ const intData = async (item) => {
     return {
       ...sanitizedItem,
       payType: payType,
-      SilenceEndtime: '一个月',
+      periodOfSilence: item.periodOfSilence + '/月',
       usedBg: '0',
       usableBg: '0',
       DatapackageStatus: item.dataPackage[0]?.status,
-      dataUsage: item.dataPackage[0]?.dataUsage ? item.dataPackage[0]?.dataUsage : '0' + '/MB',
-      dataTotal: item.dataPackage[0]?.dataTotal ? item.dataPackage[0]?.dataTotal : '0' + '/MB',
+      dataUsage: item.dataPackage[0]?.dataUsage ? item.dataPackage[0]?.dataUsage + '/MB' : '0' + '/MB',
+      dataTotal: item.dataPackage[0]?.dataTotal ? item.dataPackage[0]?.dataTotal + '/MB' : '0' + '/MB',
+
     }
   })
   pagination.value.total = data.total
@@ -115,15 +116,14 @@ const pagesChange = (size) => {
 
 // 获取字典
 const handleDictValue = async () => {
-  // sourceList.value = await Getdictionary('source')
   statusList.value = await Getdictionary('mainCardStatus')
   serviceList.value = await Getdictionary('activationPackageMethod')
 }
 
 
-onMounted(() => {
-  handleDictValue()
-  intData()
+onMounted(async () => {
+  await handleDictValue()
+  await intData()
 })
 </script>
 

+ 28 - 5
src/views/tariffManagement/SetMeal/index.vue

@@ -1,11 +1,24 @@
 <template>
   <div>
     <div class="search">
-        <Search :SearchForm="SetMealSearchForm"></Search>
+      <Search :SearchForm="SetMealSearchForm"></Search>
+    </div>
+
+    <div class="addSetMeal">
+      <a-button type="primary">新增套餐计划</a-button>
     </div>
 
     <div class="table">
-        
+      <a-table row-key="id" :data="data" :columns="columnsSetMeal" :pagination="pagination" :scroll="{ x: 'auto' }"
+        @page-change="evChangePage">
+        <template #Controls="{ record }">
+          <a-space>
+            <a-button type="text">设置套餐</a-button>
+            <a-button type="text">充值二维码</a-button>
+            <a-button type="text">下架</a-button>
+          </a-space>
+        </template>
+      </a-table>
     </div>
   </div>
 </template>
@@ -13,10 +26,20 @@
 <script setup>
 import { ref, onMounted, toRefs } from 'vue';
 import Search from '@/components/Search/index.vue'
-import {SetMealSearchForm} from '../config.js'
+import { SetMealSearchForm ,columnsSetMeal} from '../config.js'
+const state = ref({
+  data: [{labelName:'666',ID:'4884',userName:'张总',time:'2024',status:'正常'}],
+  pagination: {
+    total: 0,
+    pageSize: 10,
+    current: 1,
+  }
+})
+const {data,pagination} = toRefs(state.value)
 </script>
 <style lang="less" scoped>
-.search{
-    margin-top: 1rem;
+.search,
+.table {
+  margin-top: 1rem;
 }
 </style>

+ 54 - 2
src/views/tariffManagement/config.js

@@ -241,6 +241,12 @@ export const UserColumns = [
     align: "center",
     minWidth: "200",
   },
+  {
+    title: window.$t("customer.cardNum"),
+    dataIndex: "simcount",
+    align: "center",
+    minWidth: "200",
+  },
   {
     title: window.$t("customer.customerStatus"),
     slotName: "state",
@@ -275,7 +281,6 @@ export const UserColumns = [
   },
 ];
 
-
 export const SetMealSearchForm = [
   {
     type: "input",
@@ -315,4 +320,51 @@ export const SetMealSearchForm = [
     value: "", // 双向绑定的值
     width: "200",
   },
-]
+];
+
+export const columnsSetMeal = [
+  {
+    title: "序号",
+    dataIndex: "index",
+    align: "center",
+    ellipsis: true,
+    render: ({ rowIndex }) => rowIndex + 1,
+  },
+  {
+    title: "套餐计划",
+    dataIndex: "labelName",
+    align: "center",
+    ellipsis: true,
+  },
+  {
+    title: "套餐ID",
+    dataIndex: "ID",
+    align: "center",
+    ellipsis: true,
+  },
+  {
+    title: "所属客户",
+    dataIndex: "userName",
+    align: "center",
+    ellipsis: true,
+  },
+  {
+    title: "创建时间",
+    dataIndex: "time",
+    align: "center",
+    ellipsis: true,
+  },
+  {
+    title: "状态",
+    dataIndex: "status",
+    align: "center",
+    ellipsis: true,
+  },
+  {
+    title: "操作",
+    align: "center",
+    ellipsis: true,
+    slotName:'Controls',
+    fixed:'right'
+  },
+];