소스 검색

物联网卡管理公共数据及删除无用代码

wanghairong 5 달 전
부모
커밋
0efab85403

+ 22 - 42
src/api/path/lotCard.api.js

@@ -1,61 +1,41 @@
+import service from "../axios";
 
-import service from '../axios'
-
-// 获取流量包信息
-export function packageInfo(param) {
-  return service.post('/sim/packageInfo', param)
-}
-
-// 订购套餐
-export function orderSync(param) {
-  return service.post('/sim/orderSync', param)
-}
-
-// 查询流量
-export function upccData(param) {
-  return service.post('/sim/upccData', param)
-}
-
-// 激活前-结束套餐
-export function release(param) {
-  return service.post('/sim/release', param)
-}
-
-// // 激活后-结束套餐
-export function unsubscribe(param) {
-  return service.post('/sim/unsubscribe', param)
-}
-
-// 订购套餐列表
-export function packageTariffPlan(param) {
-  return service.post('/sim/packageTariffPlan', param)
-}
 
+// ----------------------------流量管理---------------------------------
 // 流量列表
-export function packageDataPlanList(param) {
-  return service.post('/admin/sim/dataPlanList', param)
-}
-
-// sim卡
-export function simInfo(param) {
-  return service.post('/sim/simInfo', param)
+export function dataPlanList(param) {
+  return service.post("/admin/sim/dataPlanList", param);
 }
 
+// ----------------------------卡管理---------------------------------
 // 卡信息列表
 export function cardInfoList(param) {
-  return service.post('/admin/simCard/cardInfoList', param)
+  return service.post("/admin/sim/cardInfoList", param);
 }
 
 // 卡信息导入
 export function cardInfoImport(param) {
-  return service.post('/admin/simCard/cardInfoImport', param)
+  return service.post("/admin/sim/cardInfoImport", param);
 }
 
 // 卡-下发用户
 export function cardIssue(param) {
-  return service.post('/admin/simCard/cardIssue', param)
+  return service.post("/admin/sim/cardIssue", param);
 }
+
+// ----------------------------订单管理---------------------------------
 // 订单管理
 export function orderList(param) {
-  return service.post('/admin/simCard/orderList', param)
+  return service.post("/admin/sim/orderList", param);
+}
+
+
+// 订购生成订单
+export function setOrderDataPlan(param) {
+  return service.post("/admin/sim/setOrderDataPlan", param);
+}
+
+// 取消订单订单
+export function orderCancel(param) {
+  return service.post("/admin/sim/orderCancel", param);
 }

+ 56 - 52
src/i18n/zh/lotCard.js

@@ -1,6 +1,6 @@
 export default {
     // 搜索
-    please:"请输入",
+    please: "请输入",
     // 卡列表
     created_at: "创建时间",
     updated_at: "更新时间",
@@ -11,68 +11,72 @@ export default {
     CreateTime: "卡创建时间",
     ExpireTime: "到期时间",
     UserId: "用户ID",
-    iccid:"ICCID",
-    himsi:'HIMSI',
-    
+    iccid: "ICCID",
+    himsi: 'HIMSI',
+
     // 流量列表
-    activationMode:"激活方式",
-    lastModifyTime:"上次修改时间",
-    period:"流量包套餐时长",
-    periodType:"周期类型",
-    statusTraffic:"流量包状态",
-    type:"流量使用限制类型",
-    cardPools:"卡池ID",
-    desc:"描述",
-    ext:"扩展属性",
-    name:"流量包名",
-    refuelingPackage:"加油包",
+    superior_id: "流量包Id",
+    period: "流量包套餐时长",
+    periodType: "周期类型",
+    statusTraffic: "流量包状态",
+    type: "流量使用限制类型",
+    cardPools: "卡池ID",
+    desc: "描述",
+    ext: "扩展属性",
+    name: "流量包名",
+    refuelingPackage: "加油包",
+    sourcePlan: "供应商",// 流量套餐列表
 
     // 套餐列表
-    bundleDesc:"流量包说明",
-    dataBundleId:"流量包ID",
-    orderEndTime:"过期时间",
-    orderActiveTime:"套餐激活时间",
-    orderCreateTime:"订购时间",
-    orderExpireTime:"到期时间",
-    orderRemainTime:"套餐剩余可用时间",
-    isSupportFuelpack:"周期类型",
-    orderChannel:"订购渠道",
-    orderID:"平台订单ID",
-    packageType:"包类型",
-    subscriptionKey:"子订单标识",
-    packageStatus:"订阅关系状态",
-    price:"订单价格",
-    deductionModel:"套餐收费方式",
-    currency:"货币",
-    is_Refuel:"是否为附加包",
-    quantity:"采购数量",
-    totalAmount:"订单金额",
-    sendLang:"发送的购买短信语言",// 发送的购买短信的语言
+    bundleDesc: "流量包说明",
+    dataBundleId: "流量包ID",
+    orderEndTime: "过期时间",
+    orderActiveTime: "套餐激活时间",
+    orderCreateTime: "订购时间",
+    orderExpireTime: "到期时间",
+    orderRemainTime: "套餐剩余可用时间",
+    isSupportFuelpack: "周期类型",
+    orderChannel: "订购渠道",
+    orderID: "平台订单ID",
+    packageType: "包类型",
+    subscriptionKey: "子订单标识",
+    packageStatus: "订阅关系状态",
+    price: "订单价格",
+    deductionModel: "套餐收费方式",
+    currency: "货币",
+    is_Refuel: "是否为附加包",
+    quantity: "采购数量",
+    totalAmount: "订单金额",
+    sendLang: "发送的购买短信语言",// 发送的购买短信的语言
+
 
 
     // 弹窗查询卡
-    titleSim:"查询卡",
-    cardHlrId:"主卡HLR标记",
-    cardOtaId:"主卡的OTA设备",
-    realRuleListName:"实名制对象",
-    serviceUsageMode:"激活卡套餐",
-    statusSim:"主卡状态",
+    titleSim: "查询卡",
+    cardHlrId: "主卡HLR标记",
+    cardOtaId: "主卡的OTA设备",
+    realRuleListName: "实名制对象",
+    serviceUsageMode: "激活卡套餐",
+    statusSim: "主卡状态",
 
-    titleIssued:"下发用户",
-    confirmTitleIssued:"确认下发用户吗",
-    titleOrder:"订购套餐",
-    confirmTitleOrder:"确认订购套餐吗",
-    orderEnd:"结束套餐",
-    confirmOrderEnd:"确认结束套餐吗",
+    titleIssued: "下发用户",
+    confirmTitleIssued: "确认下发用户吗",
+    titleOrder: "订购套餐",
+    confirmTitleOrder: "确认订购套餐吗",
+    titleCancelOrder: "取消订单",
+    confirmTitleCancelOrder: "确认取消订单吗",
+    orderEnd: "退订",
+    confirmOrderEnd: "确认退订吗",
+    tipsOrder: "请选择数据",
 
 
     // 弹窗按钮
-    close:"关闭",
+    close: "关闭",
 
     // 查询流量历史配额
-    time:'使用时间',
-    qtaconsumption:'流量使用总量',
-    mcc:'国家',
-    appName:'应用程序名称',
+    time: '使用时间',
+    qtaconsumption: '流量使用总量',
+    mcc: '国家',
+    appName: '应用程序名称',
 
 }  

+ 0 - 122
src/views/lotCard/cardList/cardDialog.vue

@@ -1,122 +0,0 @@
-<template>
-    <a-modal width="70%" :visible="visible" :title="$t('lotCard.titleSim')" :hide-cancel='true'
-        :ok-text="$t('lotCard.close')" @ok="handleSubmit" @cancel="handleCancel">
-        <!-- 搜索条件区 -->
-        <div class="search-section">
-            <a-form :model="formData" 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="formData.iccid" :placeholder="$t('lotCard.please') + $t('lotCard.iccid')"
-                        allow-clear />
-                </a-form-item>
-                <a-form-item field="himsi" :label="$t('lotCard.himsi')">
-                    <a-input v-model="formData.himsi" :placeholder="$t('lotCard.please') + $t('lotCard.himsi')"
-                        allow-clear />
-                </a-form-item>
-                <a-form-item>
-                    <a-space>
-                        <a-button type="primary" @click="handleSearch">{{ $t('form.Search') }}</a-button>
-                        <a-button @click="resetSearch">{{ $t('form.Reset') }}</a-button>
-                    </a-space>
-                </a-form-item>
-            </a-form>
-        </div>
-        <a-table :data="dataSource" :columns="dialogColumns" :scroll="{ x: 'auto' }" @page-change="evChangePage">
-            <template #id="{ record }">
-                <!-- <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="evEdit(record)">编辑</a>
-            <a-popconfirm content="确认删除该信息?" ok-text="确定" cancel-text="取消" @ok="evDelete(record.id)">
-              <a href="javascript:;" class="a-link">删除</a>
-            </a-popconfirm> -->
-            </template>
-
-        </a-table>
-    </a-modal>
-</template>
-<script setup>
-import { onMounted, ref, getCurrentInstance } from "vue";
-import { dialogColumns } from "./config";
-import { Message, Notification } from '@arco-design/web-vue'
-import { simInfo } from "@/api/path/lotCard.api"
-
-const props = defineProps({
-});
-
-const emit = defineEmits(['submit']);
-
-const { proxy } = getCurrentInstance()
-const formRef = ref()
-const formData = ref({
-    "iccid": "",
-    "himsi": "",
-});
-const tableList = ref([])
-
-const dataSource = ref([]);
-const pagination = ref({
-    total: 0,
-    pageSize: 10,
-    current: 1,
-})
-
-const visible = ref(false)
-
-const open = (data) => {
-    if (data.length == 0) {
-        return
-    }
-    visible.value = true
-    tableList.value = data.map(item => {
-        return {
-            iccid: item,
-            current: pagination.value.current,
-            size: pagination.value.pageSize,
-        }
-    })
-    intData(tableList.value)
-}
-
-const intData = async (param) => {
-    const { data } = await simInfo(param)
-    dataSource.value = (data || []).map(item => {
-        const realRuleListName = (item.realRuleList.map(item => item.name) || []).join(',')
-        return {
-            ...item,
-            realRuleListName
-        }
-    })
-    pagination.value.total = data.length
-}
-
-const evChangePage = (page) => {
-    pagination.value.current = page
-}
-
-
-
-
-
-const resetSearch = () => {
-    proxy.$refs.formRef.resetFields()
-}
-
-const handleSearch = () => {
-    formRef.value.validate((errors) => {
-        if (!errors) {
-            intData()
-        }
-    });
-}
-
-const handleSubmit = () => {
-    emit('submit', { ...formData });
-    visible.value = false
-};
-
-const handleCancel = () => {
-    visible.value = false
-};
-
-defineExpose({ open })
-
-
-</script>

+ 0 - 162
src/views/lotCard/cardList/orderDialog copy.vue

@@ -1,162 +0,0 @@
-<template>
-    <a-modal width="70%" :visible="visible" :title="$t('lotCard.titleOrder')" :hide-cancel='true'
-        :ok-text="$t('lotCard.close')" @ok="handleSubmit" @cancel="handleCancel">
-        <!-- 搜索条件区 -->
-        <div class="search-section">
-            <a-form :model="formData" 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="formData.iccid" :placeholder="$t('lotCard.please') + $t('lotCard.iccid')"
-                        allow-clear />
-                </a-form-item>
-                <a-form-item field="hImsi" :label="$t('lotCard.himsi')">
-                    <a-input v-model="formData.hImsi" :placeholder="$t('lotCard.please') + $t('lotCard.himsi')"
-                        allow-clear />
-                </a-form-item>
-                <a-form-item>
-                    <a-space>
-                        <a-button type="primary" @click="handleSearch">{{ $t('form.Search') }}</a-button>
-                        <a-button @click="resetSearch">{{ $t('form.Reset') }}</a-button>
-                    </a-space>
-                </a-form-item>
-            </a-form>
-        </div>
-        <a-table :data="dataSource" :columns="columns" :scroll="{ x: 'auto' }" @page-change="evChangePage">
-            <template #roleList="{ record }">
-                <a-tag v-for="item in record.roleList" :key="item.id" style="margin:0 0 2px 4px;">{{ item.name
-                    }}</a-tag>
-            </template>
-            <template #state="{ record }">
-                <a-switch v-model="record.state" disabled style="pointer-events: none" checked-value="1"
-                    unchecked-value="0" />
-            </template>
-            <template #id="{ record }">
-                <a-popconfirm :content="$t('lotCard.confirmTitleOrder')" :ok-text="$t('form.Confirm')"
-                    :cancel-text="$t('form.Cancel')" @ok="evOrderDialog(record)">
-                    <a href="javascript:;" class="a-link">{{ $t('lotCard.titleOrder') }}</a>
-                </a-popconfirm>
-            </template>
-
-        </a-table>
-    </a-modal>
-</template>
-<script setup>
-import { onMounted, ref, getCurrentInstance } from "vue";
-import { columns } from "../trafficList/config";
-import { Message, Notification } from '@arco-design/web-vue'
-import { packageInfo, orderSync } from '@/api/path/lotCard.api'
-import { useRouter, useRoute } from 'vue-router'
-
-
-const props = defineProps({
-});
-const router = useRouter()
-const route = useRoute();
-
-const emit = defineEmits(['submit']);
-
-const { proxy } = getCurrentInstance()
-const formRef = ref()
-const formData = ref({
-    "iccid": "",
-    "imsi": "454120387374989",
-});
-const tableObj = ref({})
-
-const dataSource = ref([]);
-const pagination = ref({
-    total: 0,
-    pageSize: 10,
-    current: 1,
-})
-
-const visible = ref(false)
-
-const open = (data) => {
-    if (data.length == 0) {
-        return
-    }
-    visible.value = true
-    tableObj.value = data
-    intData()
-}
-
-const intData = async () => {
-    const param = {
-        current: pagination.value.current,
-        size: pagination.value.pageSize,
-        ...formData.value
-    }
-    const { data } = await packageInfo(param)
-    dataSource.value = data || []
-    pagination.value.total = dataSource.value.length
-}
-
-const evChangePage = (page) => {
-    pagination.value.current = page
-}
-
-
-
-
-
-const resetSearch = () => {
-    proxy.$refs.formRef.resetFields()
-}
-
-const handleSearch = () => {
-    formRef.value.validate((errors) => {
-        if (!errors) {
-            intData()
-        }
-    });
-}
-
-const handleSubmit = () => {
-    emit('submit', { ...formData });
-    visible.value = false
-};
-
-const handleCancel = () => {
-    visible.value = false
-};
-
-// 下发用户
-const evOrderDialog = async (record) => {
-    const param = {
-        "includeCard": 1,
-        "is_Refuel": "1",//是否为附加包
-        refuelingId: "",//is_Refuel为0需要附加包
-        "dataBundleId": record.id,// 流量包id
-        "quantity": 1, // 采购数量
-        "ICCID": tableObj.value.iccid,
-        "sendLang": "3", // 发送购买短信语言
-    }
-    const { code, data, message } = await orderSync(param)
-    if (code == 200) {
-        Message.success({
-            content: message,
-            duration: 2000,
-        })
-        const queryData = {
-            ...data,
-            ...param,
-        }
-        const timter = setTimeout(() => {
-            router.push({
-                name: "lotCard-packageMange",
-                query: queryData
-            }, 2000)
-            clearTimeout(timter)
-        })
-
-    }
-};
-
-
-
-
-defineExpose({ open })
-
-
-</script>

+ 0 - 162
src/views/lotCard/cardList/orderDialog.vue

@@ -1,162 +0,0 @@
-<template>
-    <a-modal width="70%" :visible="visible" :title="$t('lotCard.titleOrder')" :hide-cancel='true'
-        :ok-text="$t('lotCard.close')" @ok="handleSubmit" @cancel="handleCancel">
-        <!-- 搜索条件区 -->
-        <div class="search-section">
-            <a-form :model="formData" 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="formData.iccid" :placeholder="$t('lotCard.please') + $t('lotCard.iccid')"
-                        allow-clear />
-                </a-form-item>
-                <a-form-item field="hImsi" :label="$t('lotCard.himsi')">
-                    <a-input v-model="formData.hImsi" :placeholder="$t('lotCard.please') + $t('lotCard.himsi')"
-                        allow-clear />
-                </a-form-item>
-                <a-form-item>
-                    <a-space>
-                        <a-button type="primary" @click="handleSearch">{{ $t('form.Search') }}</a-button>
-                        <a-button @click="resetSearch">{{ $t('form.Reset') }}</a-button>
-                    </a-space>
-                </a-form-item>
-            </a-form>
-        </div>
-        <a-table :data="dataSource" :columns="columns" :scroll="{ x: 'auto' }" @page-change="evChangePage">
-            <template #roleList="{ record }">
-                <a-tag v-for="item in record.roleList" :key="item.id" style="margin:0 0 2px 4px;">{{ item.name
-                    }}</a-tag>
-            </template>
-            <template #state="{ record }">
-                <a-switch v-model="record.state" disabled style="pointer-events: none" checked-value="1"
-                    unchecked-value="0" />
-            </template>
-            <template #id="{ record }">
-                <a-popconfirm :content="$t('lotCard.confirmTitleOrder')" :ok-text="$t('form.Confirm')"
-                    :cancel-text="$t('form.Cancel')" @ok="evOrderDialog(record)">
-                    <a href="javascript:;" class="a-link">{{ $t('lotCard.titleOrder') }}</a>
-                </a-popconfirm>
-            </template>
-
-        </a-table>
-    </a-modal>
-</template>
-<script setup>
-import { onMounted, ref, getCurrentInstance } from "vue";
-import { columns } from "../trafficList/config";
-import { Message, Notification } from '@arco-design/web-vue'
-import { packageInfo, orderSync } from '@/api/path/lotCard.api'
-import { useRouter, useRoute } from 'vue-router'
-
-
-const props = defineProps({
-});
-const router = useRouter()
-const route = useRoute();
-
-const emit = defineEmits(['submit']);
-
-const { proxy } = getCurrentInstance()
-const formRef = ref()
-const formData = ref({
-    "iccid": "",
-    "imsi": "454120387374989",
-});
-const tableObj = ref({})
-
-const dataSource = ref([]);
-const pagination = ref({
-    total: 0,
-    pageSize: 10,
-    current: 1,
-})
-
-const visible = ref(false)
-
-const open = (data) => {
-    if (data.length == 0) {
-        return
-    }
-    visible.value = true
-    tableObj.value = data
-    intData()
-}
-
-const intData = async () => {
-    const param = {
-        current: pagination.value.current,
-        size: pagination.value.pageSize,
-        ...formData.value
-    }
-    const { data } = await packageInfo(param)
-    dataSource.value = data || []
-    pagination.value.total = dataSource.value.length
-}
-
-const evChangePage = (page) => {
-    pagination.value.current = page
-}
-
-
-
-
-
-const resetSearch = () => {
-    proxy.$refs.formRef.resetFields()
-}
-
-const handleSearch = () => {
-    formRef.value.validate((errors) => {
-        if (!errors) {
-            intData()
-        }
-    });
-}
-
-const handleSubmit = () => {
-    emit('submit', { ...formData });
-    visible.value = false
-};
-
-const handleCancel = () => {
-    visible.value = false
-};
-
-// 下发用户
-const evOrderDialog = async (record) => {
-    const param = {
-        "includeCard": 1,
-        "is_Refuel": "1",//是否为附加包
-        refuelingId: "",//is_Refuel为0需要附加包
-        "dataBundleId": record.id,// 流量包id
-        "quantity": 1, // 采购数量
-        "ICCID": tableObj.value.iccid,
-        "sendLang": "3", // 发送购买短信语言
-    }
-    const { code, data, message } = await orderSync(param)
-    if (code == 200) {
-        Message.success({
-            content: message,
-            duration: 2000,
-        })
-        const queryData = {
-            ...data,
-            ...param,
-        }
-        const timter = setTimeout(() => {
-            router.push({
-                name: "lotCard-packageMange",
-                query: queryData
-            }, 2000)
-            clearTimeout(timter)
-        })
-
-    }
-};
-
-
-
-
-defineExpose({ open })
-
-
-</script>

+ 0 - 162
src/views/lotCard/cardList/upccdata.vue

@@ -1,162 +0,0 @@
-<template>
-    <a-modal width="70%" :visible="visible" :title="$t('lotCard.titleOrder')" :hide-cancel='true'
-        :ok-text="$t('lotCard.close')" @ok="handleSubmit" @cancel="handleCancel">
-        <!-- 搜索条件区 -->
-        <!-- <div class="search-section">
-            <a-form :model="formData" 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="formData.iccid" :placeholder="$t('lotCard.please') + $t('lotCard.iccid')"
-                        allow-clear />
-                </a-form-item>
-                <a-form-item field="hImsi" :label="$t('lotCard.himsi')">
-                    <a-input v-model="formData.hImsi" :placeholder="$t('lotCard.please') + $t('lotCard.himsi')"
-                        allow-clear />
-                </a-form-item>
-                <a-form-item>
-                    <a-space>
-                        <a-button type="primary" @click="handleSearch">{{ $t('form.Search') }}</a-button>
-                        <a-button @click="resetSearch">{{ $t('form.Reset') }}</a-button>
-                    </a-space>
-                </a-form-item>
-            </a-form>
-        </div> -->
-        <a-table :data="dataSource" :columns="dialogColumns" :scroll="{ x: 'auto' }" @page-change="evChangePage">
-            <template #roleList="{ record }">
-                <a-tag v-for="item in record.roleList" :key="item.id" style="margin:0 0 2px 4px;">{{ item.name
-                    }}</a-tag>
-            </template>
-            <template #state="{ record }">
-                <a-switch v-model="record.state" disabled style="pointer-events: none" checked-value="1"
-                    unchecked-value="0" />
-            </template>
-            <template #id="{ record }">
-                <a-popconfirm :content="$t('lotCard.confirmTitleOrder')" :ok-text="$t('form.Confirm')"
-                    :cancel-text="$t('form.Cancel')" @ok="evOrderDialog(record)">
-                    <a href="javascript:;" class="a-link">{{ $t('lotCard.titleOrder') }}</a>
-                </a-popconfirm>
-            </template>
-
-        </a-table>
-    </a-modal>
-</template>
-<script setup>
-import { onMounted, ref, getCurrentInstance } from "vue";
-// import { columns } from "../trafficList/config";
-import { dialogColumns } from "./config";
-import { Message, Notification } from '@arco-design/web-vue'
-import { upccData } from '@/api/path/lotCard.api'
-import { useRouter, useRoute } from 'vue-router'
-
-
-const props = defineProps({
-});
-const router = useRouter()
-const route = useRoute();
-
-const emit = defineEmits(['submit']);
-
-const { proxy } = getCurrentInstance()
-const formRef = ref()
-const formData = ref({
-    "iccid": "",
-    "imsi": "454120387374989",
-});
-const tableObj = ref({})
-
-const dataSource = ref([]);
-const pagination = ref({
-    total: 0,
-    pageSize: 10,
-    current: 1,
-})
-
-const visible = ref(false)
-
-const open = (data) => {
-    if (data.length == 0) {
-        return
-    }
-    visible.value = true
-    tableObj.value = data
-    intData()
-}
-
-const intData = async () => {
-    const param = {
-        "iccid": "89852342022040149139",
-        "childOrderId": "1845700383613420930"
-    }
-    const { data } = await upccData(param)
-    dataSource.value = data || []
-    pagination.value.total = dataSource.value.length
-}
-
-const evChangePage = (page) => {
-    pagination.value.current = page
-}
-
-
-
-
-
-const resetSearch = () => {
-    proxy.$refs.formRef.resetFields()
-}
-
-const handleSearch = () => {
-    formRef.value.validate((errors) => {
-        if (!errors) {
-            intData()
-        }
-    });
-}
-
-const handleSubmit = () => {
-    emit('submit', { ...formData });
-    visible.value = false
-};
-
-const handleCancel = () => {
-    visible.value = false
-};
-
-// 下发用户
-const evOrderDialog = async (record) => {
-    const param = {
-        "includeCard": 1,
-        "is_Refuel": "1",//是否为附加包
-        refuelingId: "",//is_Refuel为0需要附加包
-        "dataBundleId": record.id,// 流量包id
-        "quantity": 1, // 采购数量
-        "ICCID": tableObj.value.iccid,
-        "sendLang": "3", // 发送购买短信语言
-    }
-    const { code, data, message } = await orderSync(param)
-    if (code == 200) {
-        Message.success({
-            content: message,
-            duration: 2000,
-        })
-        const queryData = {
-            ...data,
-            ...param,
-        }
-        const timter = setTimeout(() => {
-            router.push({
-                name: "lotCard-packageMange",
-                query: queryData
-            }, 2000)
-            clearTimeout(timter)
-        })
-
-    }
-};
-
-
-
-
-defineExpose({ open })
-
-
-</script>

+ 0 - 29
src/views/lotCard/packageMange/config.js

@@ -1,29 +0,0 @@
-export const columns = [
-  { title: window.$t('lotCard.dataBundleId'), dataIndex: 'dataBundleId', align: 'center', width:200   },
-  // { title: window.$t('lotCard.bundleDesc'), dataIndex: 'bundleDesc', align: 'center', width:200   },
-  { title: window.$t('lotCard.orderEndTime'), dataIndex: 'endTime', align: 'center' , width:200   },
-  { title: window.$t('lotCard.orderCreateTime'), dataIndex: 'createTime', align: 'center',  width:200   },
-  { title: window.$t('lotCard.orderExpireTime'), dataIndex: 'expireTime', align: 'center',width:200 },
-  {
-    title: window.$t('lotCard.orderRemainTime'),
-    dataIndex: 'remainTime',
-    align: 'center',
-    width:200 
-  },
-  { title: window.$t('lotCard.isSupportFuelpack'), dataIndex: 'isSupportFuelpack', align: 'center', width:200 },
-  { title: window.$t('lotCard.orderChannel'), dataIndex: 'orderChannel', align: 'center', width:200 },
-  { title: window.$t('lotCard.orderID'), dataIndex: 'orderID', align: 'center', width:200 },
-  { title: window.$t('lotCard.packageType'), dataIndex: 'packageType', align: 'center', width:200 },
-  { title: window.$t('lotCard.subscriptionKey'), dataIndex: 'subscriptionKey', align: 'center', width:200 },
-  { title: window.$t('lotCard.price'), dataIndex: 'prince', align: 'center', width:200 },
-  { title: window.$t('lotCard.deductionModel'), dataIndex: 'deductionModel', align: 'center', width:200 },
-  { title: window.$t('lotCard.packageStatus'), dataIndex: 'status', align: 'center',  width:200 },
-  // {
-  //   title: window.$t('global.common.operations'),
-  //   dataIndex: 'id',
-  //   slotName: 'id',
-  //   align: 'center',
-  //   width: 180,
-  //   fixed: "right",
-  // }
-]

+ 0 - 191
src/views/lotCard/packageMange/index.vue

@@ -1,191 +0,0 @@
-<template>
-  <div class="container">
-    <div class="head-title">
-      <span>{{ route.meta.title }} </span>
-    </div>
-
-    <!-- 搜索条件区 -->
-    <div class="search-section">
-      <a-form :model="formData" 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="formData.iccid" :placeholder="$t('lotCard.please') + $t('lotCard.iccid')" allow-clear />
-        </a-form-item>
-        <a-form-item field="orderChannel" :label="$t('lotCard.orderChannel')">
-          <a-input v-model="formData.orderChannel" :placeholder="$t('lotCard.please') + $t('lotCard.orderChannel')"
-            allow-clear />
-        </a-form-item>
-        <a-form-item>
-          <a-space>
-            <a-button type="primary" @click="handleSearch">{{ $t('form.Search') }}</a-button>
-            <a-button @click="resetSearch">{{ $t('form.Reset') }}</a-button>
-          </a-space>
-        </a-form-item>
-      </a-form>
-    </div>
-    <a-table :data="dataSource" :columns="columns" :scroll="{ x: 'auto' }" @page-change="evChangePage">
-      <template #id="{ record }">
-        <!-- 结束套餐 -->
-        <!-- <a-popconfirm :content="$t('lotCard.confirmOrderEnd')" :ok-text="$t('form.Confirm')"
-          :cancel-text="$t('form.Cancel')" @ok="handleUnsubscribeDialog(record)">
-          <a class="a-link" href="javascript:;" style="margin-right: 1rem">{{ $t('lotCard.orderEnd') }}</a>
-        </a-popconfirm> -->
-      </template>
-
-    </a-table>
-  </div>
-</template>
-
-<script setup>
-import { onMounted, ref, getCurrentInstance } from "vue";
-import { useRoute } from "vue-router";
-import { columns } from "./config";
-import { Message, Notification } from '@arco-design/web-vue'
-import { packageTariffPlan, unsubscribe, release, orderList } from "@/api/path/lotCard.api"
-
-const { proxy } = getCurrentInstance()
-const formRef = ref()
-const formData = ref({
-  "iccid": "",
-  "orderChannel": "",
-  "hImsi": "",
-  "status": "",
-  "language": "0",
-  // "beginIndex": 0,
-  // "count": 50
-});
-
-const dataSource = ref([]);
-const route = useRoute();
-const pagination = ref({
-  total: 0,
-  pageSize: 10,
-  current: 1,
-})
-
-// 拿取从卡清单管理的订购套餐成功后的数据查询套餐管理
-const cardRouteData = ref({});
-
-
-
-const intData = async () => {
-  const param = {
-    current: pagination.value.current,
-    size: pagination.value.pageSize,
-    ...formData.value,
-  }
-  const { data } = await packageTariffPlan(param)
-  dataSource.value = (data || []).map(item => {
-    return {
-      ...item,
-      prince: item.price.price
-    }
-  })
-  pagination.value.total = data.length
-}
-
-const evChangePage = (page) => {
-  pagination.value.current = page
-}
-
-
-
-
-const handleSearch = () => {
-  formRef.value.validate((errors) => {
-    if (!errors) {
-      intData()
-    }
-  });
-
-}
-const resetSearch = () => {
-  proxy.$refs.formRef.resetFields()
-}
-
-
-const handleUnsubscribeDialog = async (data) => {
-  // 订阅关系状态
-  // 1:未激活
-  // 2: 已过期
-  // 3: 已激活99:已退款
-  let info = {}
-  let param = {}
-  let thirdOrderId = ""
-  // TODO 入参获取不到,结束套餐可能位置存在错误
-  if (data.status == 1) {
-    // 获取订单id
-    const { data } = await orderList({
-      "orderId": cardRouteData.value.orderID,
-      "dataBundleId": cardRouteData.value.dataBundleId,
-      "ICCID": cardRouteData.value.ICCID,
-      "current": 1,
-      "size": 10
-    })
-    if (data.records && Array.isArray(data.records) && data.records.length > 0) {
-      thirdOrderId = data.records[0].id
-    }
-    console.log(data,)
-    param = {
-      "orderId": cardRouteData.value.orderID,
-      thirdOrderId
-    }
-    info = await unsubscribe(param)
-  }
-  if (data.status == 3) {
-    param = {
-      "iccidPackageList": [
-        {
-          "iccid": cardRouteData.value.ICCID,
-          "imsi": "",
-          "packageid": cardRouteData.value.dataBundleId
-        }
-      ]
-    }
-    info = await release(param)
-
-  }
-  if (info.code == 200) {
-    Message.success({
-      content: info.data.msg,
-      duration: 2000,
-    });
-  }
-};
-
-onMounted(() => {
-  cardRouteData.value = route.query
-  if (Object.keys(cardRouteData.value).length > 0) {
-    console.log(cardRouteData.value.orderID, 'cardRouteData.value')
-
-    formData.value.iccid = cardRouteData.value.ICCID
-    intData()
-  }
-
-})
-
-</script>
-
-<style scoped lang="less">
-.container {
-  .head-title {
-    display: flex;
-    justify-content: space-between;
-  }
-
-  .form-row {
-    display: flex;
-
-    .form-row-col {
-      width: 25%;
-      display: flex;
-      align-items: center;
-
-      .form-row-label {
-        width: 120px;
-        text-align: right;
-      }
-    }
-  }
-}
-</style>

+ 0 - 113
src/views/lotCard/trafficList/trafficDialog.vue

@@ -1,113 +0,0 @@
-<template>
-  <a-modal :visible="visible" :title="$t('lotCard.titleSim')" @ok="handleSubmit" @cancel="handleCancel">
-    <!-- 搜索条件区 -->
-    <div class="search-section">
-      <a-form :model="formData" layout="inline">
-        <a-form-item field="iccid" label="ICCID">
-          <a-input v-model="formData.iccid" :placeholder="$t('lotCard.please') + $t('lotCard.iccid')" allow-clear />
-        </a-form-item>
-        <a-form-item field="hImsi" label="HIMSI">
-          <a-input v-model="formData.cardNumber" :placeholder="$t('lotCard.please') + $t('lotCard.himsi')"
-            allow-clear />
-        </a-form-item>
-        <a-form-item>
-          <a-space>
-            <a-button type="primary" @click="handleSearch">{{ $t('form.Search') }}</a-button>
-            <a-button @click="resetSearch">{{ $t('form.Reset') }}</a-button>
-          </a-space>
-        </a-form-item>
-      </a-form>
-    </div>
-    <a-table :data="dataSource" :columns="columns" :scroll="{ x: 'auto' }" @page-change="evChangePage">
-      <template #id="{ record }">
-        <!-- <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="evEdit(record)">编辑</a>
-          <a-popconfirm content="确认删除该信息?" ok-text="确定" cancel-text="取消" @ok="evDelete(record.id)">
-            <a href="javascript:;" class="a-link">删除</a>
-          </a-popconfirm> -->
-      </template>
-
-    </a-table>
-  </a-modal>
-</template>
-<script setup>
-import { onMounted, ref, h } from "vue";
-import { columns } from "../packageMange/config";
-import { Message, Notification } from '@arco-design/web-vue'
-import { simInfo } from "@/api/path/lotCard.api"
-
-const props = defineProps({
-});
-
-const emit = defineEmits(['submit']);
-
-const formRef = ref(null);
-const formData = ref({
-  "iccid": "",
-  "imsi": "454120387374989",
-});
-
-const dataSource = ref([]);
-const pagination = ref({
-  total: 0,
-  pageSize: 10,
-  current: 1,
-})
-
-const visible = ref(false)
-
-const open = (data = {}) => {
-  visible.value = true
-  formData.value.iccid = data.iccid
-  intData()
-}
-
-const intData = async () => {
-  const param = {
-    current: pagination.value.current,
-    size: pagination.value.pageSize,
-    ...formData.value,
-  }
-  const { data } = await simInfo([param])
-  dataSource.value = (data || []).map(item => {
-    return {
-      ...item,
-      prince: item.price.price
-    }
-  })
-  pagination.value.total = data.length
-}
-
-const evChangePage = (page) => {
-  pagination.value.current = page
-}
-
-
-
-
-
-const resetSearch = () => {
-
-}
-
-const handleSearch = () => {
-}
-
-const handleSubmit = () => {
-  formRef.value.validate((errors) => {
-    if (!errors) {
-      emit('submit', { ...formData });
-      visible.value = false
-    } else {
-      console.error('Validation failed', errors);
-    }
-  });
-};
-
-const handleCancel = () => {
-  visible.value = false
-};
-
-defineExpose({ open })
-
-
-</script>