|
@@ -1,19 +1,22 @@
|
|
|
<template>
|
|
|
+ <!-- 卡清单管理 -->
|
|
|
<div class="container">
|
|
|
<div class="head-title">
|
|
|
<span>{{ route.meta.title }} </span>
|
|
|
- <a-button type="primary" @click="handleDialog({})">查看卡</a-button>
|
|
|
- <a-button type="primary" @click="handleIssuedDialog({})">下发用户</a-button>
|
|
|
+ <span class="head-title-right">
|
|
|
+ <a-button class="m-r-10" type="primary" @click="handleDialog({})"> {{ $t('lotCard.titleSim') }}</a-button>
|
|
|
+ <a-button type="primary" @click="handleIssuedDialog({})">{{ $t('lotCard.titleOrder') }}</a-button>
|
|
|
+ </span>
|
|
|
</div>
|
|
|
<!-- 搜索条件区 -->
|
|
|
<div class="search-section">
|
|
|
- <a-form :model="searchForm" layout="inline">
|
|
|
- <a-form-item field="iccid" label="ICCID">
|
|
|
+ <a-form :model="searchForm" ref="formRef" layout="inline">
|
|
|
+ <a-form-item field="iccid" :label="$t('lotCard.iccid')" :validate-trigger="['change', 'input', 'blur']"
|
|
|
+ :rules="[{ required: true, message: $t('lotCard.please') + $t('lotCard.iccid') }]">
|
|
|
<a-input v-model="searchForm.iccid" :placeholder="$t('lotCard.please') + $t('lotCard.iccid')" allow-clear />
|
|
|
</a-form-item>
|
|
|
- <a-form-item field="hImsi" label="HIMSI">
|
|
|
- <a-input v-model="searchForm.cardNumber" :placeholder="$t('lotCard.please') + $t('lotCard.himsi')"
|
|
|
- allow-clear />
|
|
|
+ <a-form-item field="hImsi" :label="$t('lotCard.himsi')">
|
|
|
+ <a-input v-model="searchForm.hImsi" :placeholder="$t('lotCard.please') + $t('lotCard.himsi')" allow-clear />
|
|
|
</a-form-item>
|
|
|
<a-form-item>
|
|
|
<a-space>
|
|
@@ -27,22 +30,28 @@
|
|
|
<a-table row-key="iccid" :data="dataSource" :columns="columns" :pagination="pagination"
|
|
|
:row-selection="rowSelection" v-model:selectedKeys="selectedKeys" :scroll="{ x: 'auto' }">
|
|
|
<template #id="{ record }">
|
|
|
- <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="handleDialog(record)">查看卡</a>
|
|
|
- <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="handleOrderDialog(record)">订购套餐</a>
|
|
|
- <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="handleIssuedDialog(record)">下发用户</a>
|
|
|
+ <!-- 查询卡 -->
|
|
|
+ <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="handleDialog(record)">{{
|
|
|
+ $t('lotCard.titleSim') }}</a>
|
|
|
+ <!-- 订购套餐 -->
|
|
|
+ <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="handleOrderDialog(record)">{{
|
|
|
+ $t('lotCard.titleOrder') }}</a>
|
|
|
+ <!-- 下发用户 -->
|
|
|
+ <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="handleIssuedDialog(record)">{{
|
|
|
+ $t('lotCard.titleIssued') }}</a>
|
|
|
</template>
|
|
|
|
|
|
</a-table>
|
|
|
<cardDialog ref="dialogRef" />
|
|
|
<!-- 下发用户 -->
|
|
|
<issuedDialog ref="issuedDialogRef" />
|
|
|
- <!-- 下发用户 -->
|
|
|
+ <!-- 订购套餐 -->
|
|
|
<orderDialog ref="orderDialogRef" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { onMounted, ref, reactive } from "vue";
|
|
|
+import { onMounted, ref, reactive, getCurrentInstance } from "vue";
|
|
|
import { useRoute } from "vue-router";
|
|
|
import { columns } from "./config";
|
|
|
import { Message, Notification } from '@arco-design/web-vue'
|
|
@@ -50,9 +59,12 @@ import { cardInfoList } from "@/api/path/lotCard.api"
|
|
|
import cardDialog from "./cardDialog.vue";
|
|
|
import issuedDialog from "./issuedDialog.vue";
|
|
|
import orderDialog from "./orderDialog.vue";
|
|
|
+
|
|
|
+const { proxy } = getCurrentInstance()
|
|
|
+const formRef = ref()
|
|
|
const searchForm = ref({
|
|
|
"iccid": "",
|
|
|
- "imsi": "",
|
|
|
+ "himsi": "",
|
|
|
});
|
|
|
|
|
|
const dataSource = ref([]);
|
|
@@ -74,10 +86,6 @@ const dialogRef = ref()
|
|
|
const issuedDialogRef = ref()
|
|
|
const orderDialogRef = ref()
|
|
|
|
|
|
-const cardStatusOptions = [
|
|
|
- { label: '正常', value: 'normal' },
|
|
|
- { label: '停机', value: 'suspended' },
|
|
|
-];
|
|
|
|
|
|
const intData = async () => {
|
|
|
const param = {
|
|
@@ -111,9 +119,15 @@ const handleOrderDialog = (data) => {
|
|
|
}
|
|
|
|
|
|
const handleSearch = () => {
|
|
|
+ formRef.value.validate((errors) => {
|
|
|
+ if (!errors) {
|
|
|
+ intData()
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
const resetSearch = () => {
|
|
|
-
|
|
|
+ proxy.$refs.formRef.resetFields()
|
|
|
+ intData()
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
@@ -122,6 +136,13 @@ onMounted(() => {
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
+.head-title-right {
|
|
|
+ .m-r-10 {
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
.search-section {
|
|
|
margin-top: 20px;
|
|
|
margin-bottom: 20px;
|