|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
- <a-modal width="70%" :visible="visible" :title="$t('lotCard.CardDetails') + Card_info.iccid" :hide-cancel='true' :okText="$t('form.Confirm')"
|
|
|
- :cancelText="$t('form.Cancel')" @ok="handleSubmit" @cancel="handleCancel" draggable>
|
|
|
+ <a-modal width="70%" :visible="visible" :title="$t('lotCard.CardDetails') + Card_info.iccid" :hide-cancel='true'
|
|
|
+ :okText="$t('form.Confirm')" :cancelText="$t('form.Cancel')" @ok="handleSubmit" @cancel="handleCancel" draggable>
|
|
|
<!-- 卡片信息 -->
|
|
|
<a-row class="grid-demo" :gutter="24">
|
|
|
<a-col :span="12">
|
|
@@ -39,9 +39,19 @@
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item :label="$t('lotCard.supplier')">
|
|
|
- {{ Card_info.currentImsiProvider }}
|
|
|
+ {{ Card_info.source }}
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <!-- <a-col :span="12">
|
|
|
+ <a-form-item :label="$t('lotCard.UsedpackFlow')">
|
|
|
+ {{ Card_info.source }}
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item :label="$t('lotCard.FuelPackFlowAvailable')">
|
|
|
+ {{ Card_info.source }}
|
|
|
+ </a-form-item>
|
|
|
+ </a-col> -->
|
|
|
</a-row>
|
|
|
</a-form>
|
|
|
<p>{{ $t('lotCard.CurrentPackageInformation') }}</p>
|
|
@@ -60,11 +70,11 @@
|
|
|
}}
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :span="12">
|
|
|
+ <!-- <a-col :span="12">
|
|
|
<a-form-item :label="$t('lotCard.validity')">
|
|
|
{{ dataPackage?.validDays }} {{ $t('lotCard.month') }}
|
|
|
</a-form-item>
|
|
|
- </a-col>
|
|
|
+ </a-col> -->
|
|
|
<a-col :span="12">
|
|
|
<a-form-item :label="$t('lotCard.WhetherToGive')">
|
|
|
{{ dataPackage?.present == 0 ? $t('lotCard.No') : $t('lotCard.Yes') }}
|
|
@@ -136,19 +146,20 @@
|
|
|
}}</a-button>
|
|
|
<a-button type="primary" status="warning" @click="SIMCardService(1)">{{ $t('lotCard.RestoreService')
|
|
|
}}</a-button>
|
|
|
- <a-button type="primary" status="warning">{{ $t('lotCard.CloseCard') }}</a-button>
|
|
|
+ <a-button type="primary" status="warning" @click="SIMCardService(2)">{{ $t('lotCard.CloseCard') }}</a-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</a-modal>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
-import { onMounted, ref } from "vue";
|
|
|
+import { onMounted, ref ,h} from "vue";
|
|
|
import { getDataCDR, PauseSIMService, RecoverSIMService, OperationRecord } from '@/api/path/lotCard.api'
|
|
|
import { Getdictionary } from '@/mixins/index'
|
|
|
-import { Message } from '@arco-design/web-vue'
|
|
|
+import { Message ,Modal} from '@arco-design/web-vue'
|
|
|
// 图表插件
|
|
|
import * as echarts from "echarts";
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
+import {columnsCard,columnsTopup,columnsAmount,columnsOperation} from './config'
|
|
|
const { t } = useI18n();
|
|
|
const props = defineProps({});
|
|
|
|
|
@@ -181,175 +192,17 @@ const option = ref({
|
|
|
})
|
|
|
|
|
|
// 卡套餐信息
|
|
|
-const columnsCard = [
|
|
|
- {
|
|
|
- title: t('lotCard.PackageName'),
|
|
|
- dataIndex: 'productName',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- }, {
|
|
|
- title: t('lotCard.PackageStatus'),
|
|
|
- dataIndex: 'status',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.validity')+(t('lotCard.month')),
|
|
|
- dataIndex: 'validMonth',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.AvailableFlow'),
|
|
|
- dataIndex: 'dataTotal',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.Usedflow'),
|
|
|
- dataIndex: 'dataUsage',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.TrafficUsedToday'),
|
|
|
- dataIndex: 'dataToday',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.PackageValidity'),
|
|
|
- dataIndex: 'validDays',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.ActivationDate'),
|
|
|
- dataIndex: 'activeTime',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.ExpirationDate'),
|
|
|
- dataIndex: 'expiryTime',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
-]
|
|
|
const dataCard = ref([])
|
|
|
|
|
|
// 充值信息
|
|
|
-const columnsTopup = [
|
|
|
- {
|
|
|
- title: t('lotCard.OrderNumber'),
|
|
|
- dataIndex: 'productName',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
- {
|
|
|
- title: 'ICCID',
|
|
|
- dataIndex: 'productName',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.PurchasePackage'),
|
|
|
- dataIndex: 'productName',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.OrderType'),
|
|
|
- dataIndex: 'productName',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.PackagePrice'),
|
|
|
- dataIndex: 'productName',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.operator'),
|
|
|
- dataIndex: 'productName',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.PaymentStatus'),
|
|
|
- dataIndex: 'productName',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.OrderDate'),
|
|
|
- dataIndex: 'productName',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
-]
|
|
|
+
|
|
|
const dataTopup = ref([])
|
|
|
// 使用量
|
|
|
-const columnsAmount = [
|
|
|
- {
|
|
|
- title: t('lotCard.ID'),
|
|
|
- dataIndex: 'productId',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: 'IMIS',
|
|
|
- dataIndex: 'imsi',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
|
|
|
- {
|
|
|
- title: t('lotCard.accountCard'),
|
|
|
- dataIndex: 'account',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: `${t('lotCard.FlowRate')}(MB)`,
|
|
|
- dataIndex: 'usage',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.CargoAreaCode'),
|
|
|
- dataIndex: 'countryNo',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.DetailDate'),
|
|
|
- dataIndex: 'date',
|
|
|
- align: 'center', ellipsis: true
|
|
|
- },
|
|
|
-]
|
|
|
const dataAmount = ref([])
|
|
|
|
|
|
// 操作记录
|
|
|
-const columnsOperation = [
|
|
|
- {
|
|
|
- title: t('lotCard.settingUser'),
|
|
|
- dataIndex: 'userId',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
- {
|
|
|
- title: 'iccid',
|
|
|
- dataIndex: 'iccid',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.source'),
|
|
|
- dataIndex: 'source',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.Controls'),
|
|
|
- dataIndex: 'operation',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('lotCard.remark'),
|
|
|
- dataIndex: 'remark',
|
|
|
- ellipsis: true,
|
|
|
- align: 'center',
|
|
|
- },
|
|
|
-]
|
|
|
+
|
|
|
const dataOperation = ref([])
|
|
|
const open = (data) => {
|
|
|
if (!data) {
|
|
@@ -428,17 +281,27 @@ const intData = async () => {
|
|
|
|
|
|
// SIM卡操作
|
|
|
const SIMCardService = async (index) => {
|
|
|
- const Inform = {
|
|
|
- iccid: Card_info.value.iccid, source: Card_info.value.source
|
|
|
- }
|
|
|
- // 暂停SIM卡
|
|
|
- let res = index == 0 ? await PauseSIMService(Inform) : (index == 1 ? await RecoverSIMService(Inform) : '')
|
|
|
- if (res.code === 200) {
|
|
|
- Message.success({
|
|
|
- content: res.message,
|
|
|
- duration: 2000,
|
|
|
- })
|
|
|
- handleSubmit()
|
|
|
+ if (index !== 2) {
|
|
|
+ const Inform = {
|
|
|
+ iccid: Card_info.value.iccid, source: Card_info.value.source
|
|
|
+ }
|
|
|
+ // 暂停SIM卡
|
|
|
+ let res = index == 0 ? await PauseSIMService(Inform) : (index == 1 ? await RecoverSIMService(Inform) : '')
|
|
|
+ if (res.code === 200) {
|
|
|
+ Message.success({
|
|
|
+ content: res.message,
|
|
|
+ duration: 2000,
|
|
|
+ })
|
|
|
+ handleSubmit()
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ Modal.info({
|
|
|
+ title: '关闭卡',
|
|
|
+ cancelText:'关闭',
|
|
|
+ content: ()=>{
|
|
|
+ return h('div',{style:'color:red;text-align: center;font-size:18px'},'当前操作不可逆,请确定是否关闭当前卡!!')
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
const handleSubmit = () => {
|