fix: update some files
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m20s

This commit is contained in:
luo
2026-08-19 15:53:55 +08:00
parent 4e3ea6c6d6
commit 2cb961fd1b
25 changed files with 131 additions and 75 deletions

View File

@@ -1,10 +1,10 @@
<template>
<ElDialog v-model="visible" title="批量修改实名顺序" width="520px" @closed="resetPolicy">
<ElForm label-width="110px">
<ElDialog v-model="visible" title="批量修改实名顺序" width="40%" @closed="resetPolicy">
<ElForm label-width="80px">
<ElFormItem label="已选数量">
<span class="selected-count">{{ selectedCount }} {{ assetUnit }}</span>
</ElFormItem>
<ElFormItem label="实名认证策略">
<ElFormItem label="认证策略">
<ElRadioGroup v-model="policy" :disabled="loading">
<ElRadio value="none">无需实名</ElRadio>
<ElRadio value="before_order">先实名后购买</ElRadio>

View File

@@ -1,6 +1,6 @@
<template>
<ElDialog v-model="dialogVisible" title="创建退款申请" width="40%" @closed="handleDialogClosed">
<ElForm ref="formRef" :model="formData" :rules="formRules" label-width="120px">
<ElForm ref="formRef" :model="formData" :rules="formRules" label-width="80px">
<ElFormItem label="订单号" prop="order_id">
<ElSelect
v-if="!hasInitialOrder"
@@ -23,7 +23,7 @@
</ElSelect>
<ElInput v-else :model-value="props.initialOrderNo" disabled style="width: 100%" />
</ElFormItem>
<ElFormItem label="申请退款金额" prop="requested_refund_amount">
<ElFormItem label="退款金额" prop="requested_refund_amount">
<ElInputNumber
v-model="formData.requested_refund_amount"
:min="0"

View File

@@ -1,10 +1,10 @@
<template>
<ElDialog v-model="visible" :title="title" width="520px" destroy-on-close>
<ElDialog v-model="visible" :title="title" width="40%" destroy-on-close>
<ElAlert type="info" :closable="false" show-icon class="export-rule-alert">
<template #title>{{ description }}</template>
</ElAlert>
<ElForm label-width="100px" class="export-task-form">
<ElForm label-width="80px" class="export-task-form">
<ElFormItem label="导出场景">
<ElTag>{{ sceneName }}</ElTag>
</ElFormItem>

View File

@@ -2,11 +2,11 @@
<ElDialog
v-model="dialogVisible"
title="手动更新卡实名状态"
width="400px"
width="30%"
modal-class="asset-information-dialog"
@closed="handleDialogClosed"
>
<ElForm ref="formRef" :model="formData" :rules="formRules" label-width="100px">
<ElForm ref="formRef" :model="formData" :rules="formRules" label-width="80px">
<ElFormItem label="资产标识">
<span style="font-weight: bold; color: #409eff">{{ assetIdentifier }}</span>
</ElFormItem>

View File

@@ -2,10 +2,10 @@
<ElDialog
v-model="visible"
title="设置实名认证策略"
width="35%"
width="40%"
modal-class="asset-information-dialog"
>
<ElForm ref="formRef" :model="form" :rules="rules" label-width="120px">
<ElForm ref="formRef" :model="form" :rules="rules" label-width="80px">
<ElFormItem label="资产标识">
<span style="font-weight: bold; color: #409eff">{{ assetIdentifier }}</span>
</ElFormItem>
@@ -14,7 +14,7 @@
{{ getPolicyName(currentPolicy) }}
</ElTag>
</ElFormItem>
<ElFormItem label="实名认证策略" prop="realname_policy">
<ElFormItem label="认证策略" prop="realname_policy">
<ElRadioGroup v-model="form.realname_policy">
<ElRadio value="none">无需实名</ElRadio>
<ElRadio value="before_order">先实名后充值/购买</ElRadio>

View File

@@ -2,7 +2,7 @@
<ElDialog
v-model="visible"
title="切换SIM卡"
width="600px"
width="40%"
modal-class="asset-information-dialog"
@close="handleClose"
>
@@ -30,7 +30,7 @@
ref="formRef"
:model="formData"
:rules="rules"
label-width="120px"
label-width="90px"
>
<ElFormItem label="设备信息">
<span style="font-weight: bold; color: #409eff">{{ deviceInfo }}</span>

View File

@@ -90,6 +90,58 @@ declare module 'vue' {
CreateRefundDialog: typeof import('./../components/business/CreateRefundDialog.vue')['default']
CustomerAccountDialog: typeof import('./../components/business/CustomerAccountDialog.vue')['default']
DetailPage: typeof import('./../components/common/DetailPage.vue')['default']
ElAlert: typeof import('element-plus/es')['ElAlert']
ElAvatar: typeof import('element-plus/es')['ElAvatar']
ElButton: typeof import('element-plus/es')['ElButton']
ElCalendar: typeof import('element-plus/es')['ElCalendar']
ElCard: typeof import('element-plus/es')['ElCard']
ElCascader: typeof import('element-plus/es')['ElCascader']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
ElCol: typeof import('element-plus/es')['ElCol']
ElCollapse: typeof import('element-plus/es')['ElCollapse']
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
ElDialog: typeof import('element-plus/es')['ElDialog']
ElDivider: typeof import('element-plus/es')['ElDivider']
ElDrawer: typeof import('element-plus/es')['ElDrawer']
ElDropdown: typeof import('element-plus/es')['ElDropdown']
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
ElEmpty: typeof import('element-plus/es')['ElEmpty']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElInput: typeof import('element-plus/es')['ElInput']
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopover: typeof import('element-plus/es')['ElPopover']
ElProgress: typeof import('element-plus/es')['ElProgress']
ElRadio: typeof import('element-plus/es')['ElRadio']
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow']
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTabPane: typeof import('element-plus/es')['ElTabPane']
ElTabs: typeof import('element-plus/es')['ElTabs']
ElTag: typeof import('element-plus/es')['ElTag']
ElTimeline: typeof import('element-plus/es')['ElTimeline']
ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
ElUpload: typeof import('element-plus/es')['ElUpload']
ElWatermark: typeof import('element-plus/es')['ElWatermark']
ExportTaskCreateDialog: typeof import('./../components/business/ExportTaskCreateDialog.vue')['default']
HorizontalSubmenu: typeof import('./../components/core/layouts/art-menus/art-horizontal-menu/widget/HorizontalSubmenu.vue')['default']
ImportDialog: typeof import('./../components/business/ImportDialog.vue')['default']
@@ -117,4 +169,7 @@ declare module 'vue' {
UpdateRealnameStatusDialog: typeof import('./../components/business/UpdateRealnameStatusDialog.vue')['default']
VoucherUpload: typeof import('./../components/business/VoucherUpload.vue')['default']
}
export interface ComponentCustomProperties {
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
}
}

View File

@@ -44,9 +44,7 @@
<!-- 卡专属字段 -->
<template v-if="cardInfo?.asset_type === 'card'">
<ElDescriptionsItem label="ICCID">{{ cardInfo?.iccid || '-' }}</ElDescriptionsItem>
<ElDescriptionsItem label="IMEI">{{
cardInfo?.gateway_card_imei || '-'
}}</ElDescriptionsItem>
<ElDescriptionsItem label="MSISDN">{{ cardInfo?.msisdn || '-' }}</ElDescriptionsItem>
<ElDescriptionsItem label="运营商账户">{{ carrierAccountDisplay }}</ElDescriptionsItem>
<ElDescriptionsItem label="实名状态">
<ElTag :type="getRealNameStatusType(cardInfo?.real_name_status)" size="small">
@@ -79,7 +77,9 @@
formatDateTime(cardInfo?.last_real_name_check_at) || '-'
}}</ElDescriptionsItem>
<ElDescriptionsItem label="MSISDN">{{ cardInfo?.msisdn || '-' }}</ElDescriptionsItem>
<ElDescriptionsItem label="IMEI">{{
cardInfo?.gateway_card_imei || '-'
}}</ElDescriptionsItem>
<ElDescriptionsItem label="资产状态">
<ElTag :type="getAssetStatusType(cardInfo?.status)" size="small">
{{ getAssetStatusName(cardInfo?.status) }}

View File

@@ -316,7 +316,7 @@
<ElDialog
v-model="expiresAtDialogVisible"
title="修改过期时间"
width="420px"
width="40%"
@closed="resetExpiresAtForm"
>
<ElForm

View File

@@ -2,7 +2,7 @@
<ElDialog
v-model="visible"
title="套餐充值"
width="30%"
width="40%"
modal-class="asset-information-dialog"
@closed="handleDialogClosed"
>

View File

@@ -2,10 +2,10 @@
<ElDialog
v-model="visible"
title="设置切卡模式"
width="500px"
width="45%"
modal-class="asset-information-dialog"
>
<ElForm ref="formRef" :model="form" :rules="rules" label-width="96px">
<ElForm ref="formRef" :model="form" :rules="rules" label-width="80px">
<ElFormItem label="设备标识">
<span class="device-identifier">{{ deviceIdentifier || '-' }}</span>
</ElFormItem>

View File

@@ -2,7 +2,7 @@
<ElDialog
v-model="visible"
title="设置WiFi"
width="30%"
width="40%"
modal-class="asset-information-dialog"
:append-to-body="true"
>

View File

@@ -93,17 +93,17 @@
</ArtTable>
<!-- 批量分配对话框 -->
<ElDialog v-model="allocateDialogVisible" title="批量分配设备" width="600px">
<ElDialog v-model="allocateDialogVisible" title="批量分配设备" width="40%">
<ElForm
ref="allocateFormRef"
:model="allocateForm"
:rules="allocateRules"
label-width="120px"
label-width="90px"
>
<ElFormItem label="已选设备数">
<span style="font-weight: bold; color: #409eff">{{ selectedDevices.length }}</span>
</ElFormItem>
<ElFormItem label="店铺" prop="target_shop_id">
<ElFormItem label="目标店铺" prop="target_shop_id">
<ElCascader
v-model="allocateForm.target_shop_id"
:options="shopCascadeOptions"
@@ -166,8 +166,8 @@
</ElDialog>
<!-- 批量回收对话框 -->
<ElDialog v-model="recallDialogVisible" title="批量回收设备" width="600px">
<ElForm ref="recallFormRef" :model="recallForm" label-width="120px">
<ElDialog v-model="recallDialogVisible" title="批量回收设备" width="40%">
<ElForm ref="recallFormRef" :model="recallForm" label-width="90px">
<ElFormItem label="已选设备数">
<span style="font-weight: bold; color: #e6a23c">{{ selectedDevices.length }}</span>
</ElFormItem>
@@ -225,14 +225,14 @@
<ElDialog
v-model="seriesBindingDialogVisible"
title="批量设置设备套餐系列绑定"
width="35%"
width="40%"
@close="handleCloseSeriesBindingDialog"
>
<ElForm
ref="seriesBindingFormRef"
:model="seriesBindingForm"
:rules="seriesBindingRules"
label-width="120px"
label-width="100px"
>
<ElFormItem label="已选设备数">
<span style="font-weight: bold; color: #409eff">{{ selectedDevices.length }}</span>
@@ -406,10 +406,10 @@
/>
</ElFormItem>
<ElFormItem label="目标套餐系列" prop="series_id">
<ElFormItem label="套餐系列" prop="series_id">
<ElSelect
v-model="seriesBindingForm.series_id"
placeholder="请选择或搜索套餐系列"
placeholder="请选择或搜索目标套餐系列"
style="width: 100%"
filterable
remote
@@ -706,14 +706,14 @@
<ElDialog
v-model="enterpriseDeviceAuthorizeDialogVisible"
title="授权设备给企业"
width="620px"
width="40%"
@close="handleEnterpriseDeviceAuthorizeDialogClose"
>
<ElForm
ref="enterpriseDeviceAuthorizeFormRef"
:model="enterpriseDeviceAuthorizeForm"
:rules="enterpriseDeviceAuthorizeRules"
label-width="120px"
label-width="100px"
>
<ElFormItem label="授权企业" prop="enterprise_id">
<ElSelect
@@ -812,14 +812,14 @@
<ElDialog
v-model="enterpriseDeviceRecallDialogVisible"
title="撤销设备授权"
width="620px"
width="40%"
@close="handleEnterpriseDeviceRecallDialogClose"
>
<ElForm
ref="enterpriseDeviceRecallFormRef"
:model="enterpriseDeviceRecallForm"
:rules="enterpriseDeviceRecallRules"
label-width="120px"
label-width="100px"
>
<ElFormItem label="授权企业" prop="enterprise_id">
<ElSelect

View File

@@ -56,11 +56,11 @@
<ElDialog
v-model="createDialogVisible"
title="创建换货单"
width="600px"
width="40%"
:close-on-click-modal="false"
@closed="handleCloseCreateDialog"
>
<ElForm ref="createFormRef" :model="createForm" :rules="createRules" label-width="120px">
<ElForm ref="createFormRef" :model="createForm" :rules="createRules" label-width="110px">
<ElFormItem label="流程类型" prop="flow_type">
<ElSelect
v-model="createForm.flow_type"
@@ -121,7 +121,7 @@
</ElFormItem>
<ElFormItem
v-if="createForm.old_asset_type === 'iot_card'"
label="旧资产标识"
label="旧资产标识"
prop="old_identifier"
>
<ElSelect
@@ -193,7 +193,7 @@
{{ oldDeviceEmptyMessage }}
</div>
</ElFormItem>
<ElFormItem v-if="createOldAssetShopDisplay" label="旧资产所属店铺">
<ElFormItem v-if="createOldAssetShopDisplay" label="旧资产店铺">
<ElInput :model-value="createOldAssetShopDisplay" readonly disabled />
</ElFormItem>
<ElFormItem
@@ -303,14 +303,14 @@
<ElDialog
v-model="shipDialogVisible"
title="换货发货"
width="600px"
width="40%"
:close-on-click-modal="false"
@closed="handleCloseShipDialog"
>
<ElForm ref="shipFormRef" :model="shipForm" :rules="shipRules" label-width="120px">
<ElForm ref="shipFormRef" :model="shipForm" :rules="shipRules" label-width="100px">
<ElFormItem
v-if="shipAssetType === 'iot_card'"
label="新资产标识"
label="新资产标识"
prop="new_identifier"
>
<ElSelect
@@ -347,7 +347,7 @@
</ElFormItem>
<ElFormItem
v-else-if="shipAssetType === 'device'"
label="新资产标识"
label="新资产标识"
prop="new_identifier"
>
<ElSelect

View File

@@ -98,16 +98,16 @@
<ElDialog
v-model="allocateDialogVisible"
title="批量分配"
width="600px"
width="40%"
@close="handleAllocateDialogClose"
>
<ElForm
ref="allocateFormRef"
:model="allocateForm"
:rules="allocateRules"
label-width="120px"
label-width="100px"
>
<ElFormItem label="店铺" prop="to_shop_id">
<ElFormItem label="目标店铺" prop="to_shop_id">
<ElCascader
v-model="allocateForm.to_shop_id"
:options="shopCascadeOptions"
@@ -241,10 +241,10 @@
<ElDialog
v-model="recallDialogVisible"
title="批量回收"
width="600px"
width="40%"
@close="handleRecallDialogClose"
>
<ElForm ref="recallFormRef" :model="recallForm" :rules="recallRules" label-width="120px">
<ElForm ref="recallFormRef" :model="recallForm" :rules="recallRules" label-width="100px">
<ElFormItem label="选卡方式" prop="selection_type">
<ElRadioGroup v-model="recallForm.selection_type">
<ElRadio label="list">ICCID列表</ElRadio>
@@ -385,14 +385,14 @@
<ElDialog
v-model="enterpriseCardAuthorizeDialogVisible"
title="授权卡给企业"
width="640px"
width="40%"
@close="handleEnterpriseCardAuthorizeDialogClose"
>
<ElForm
ref="enterpriseCardAuthorizeFormRef"
:model="enterpriseCardAuthorizeForm"
:rules="enterpriseCardAuthorizeRules"
label-width="120px"
label-width="100px"
>
<ElFormItem label="授权企业" prop="enterprise_id">
<ElSelect
@@ -538,14 +538,14 @@
<ElDialog
v-model="enterpriseCardRecallDialogVisible"
title="回收卡授权"
width="640px"
width="40%"
@close="handleEnterpriseCardRecallDialogClose"
>
<ElForm
ref="enterpriseCardRecallFormRef"
:model="enterpriseCardRecallForm"
:rules="enterpriseCardRecallRules"
label-width="120px"
label-width="100px"
>
<ElFormItem label="授权企业" prop="enterprise_id">
<ElSelect

View File

@@ -39,8 +39,8 @@
</ArtTable>
<!-- 修改备注对话框 -->
<ElDialog v-model="remarkDialogVisible" title="修改备注" width="500px">
<ElForm ref="remarkFormRef" :model="remarkForm" :rules="remarkRules" label-width="80px">
<ElDialog v-model="remarkDialogVisible" title="修改备注" width="40%">
<ElForm ref="remarkFormRef" :model="remarkForm" :rules="remarkRules">
<ElFormItem label="备注" prop="remark">
<ElInput
v-model="remarkForm.remark"
@@ -311,7 +311,7 @@
if (hasAuth('authorization_records:update_remark')) {
actions.push({
label: '编辑',
label: '修改备注',
handler: () => showRemarkDialog(row),
type: 'primary'
})

View File

@@ -10,7 +10,7 @@
:close-on-press-escape="!createDrawerBusy"
@closed="handleCreateDrawerClosed"
>
<ElForm ref="formRef" :model="form" :rules="rules" label-width="100px" class="create-form">
<ElForm ref="formRef" :model="form" :rules="rules" class="create-form">
<ElFormItem label="套餐系列" prop="series_id">
<ElSelect
v-model="form.series_id"
@@ -33,7 +33,7 @@
</ElSelect>
</ElFormItem>
<ElFormItem label="套餐" prop="package_id">
<ElFormItem label="相关套餐" prop="package_id">
<ElSelect
v-model="form.package_id"
filterable

View File

@@ -10,7 +10,7 @@
:close-on-press-escape="!createDrawerBusy"
@closed="handleCreateDrawerClosed"
>
<ElForm ref="formRef" :model="form" label-width="100px" class="create-form">
<ElForm ref="formRef" :model="form" class="create-form">
<ElFormItem label="操作类型" prop="operation_type">
<ElSelect
v-model="form.operation_type"
@@ -286,7 +286,7 @@
form.operation_type === 'assign_shop' ? '请选择启用的目标店铺' : '请选择启用的套餐系列'
)
const targetLabel = computed(() =>
form.operation_type === 'assign_shop' ? '选择店铺' : '选择套餐系列'
form.operation_type === 'assign_shop' ? '选择店铺' : '套餐系列'
)
const createDrawerBusy = computed(() => submitting.value || fileUploading.value)

View File

@@ -53,7 +53,7 @@
</ElCard>
</div>
<ElDialog v-model="importDialogVisible" title="批量导入设备" width="40%" align-center>
<ElDrawer v-model="importDialogVisible" title="批量导入设备" direction="rtl" size="50%">
<ElAlert type="info" :closable="false" style="margin-bottom: 20px">
<template #title>
<div style="line-height: 1.8">
@@ -135,7 +135,7 @@
开始导入
</ElButton>
</template>
</ElDialog>
</ElDrawer>
</ArtTableFullScreen>
</template>

View File

@@ -97,7 +97,7 @@
</ElDialog>
<!-- 导入对话框 -->
<ElDialog v-model="importDialogVisible" title="批量导入IoT卡" width="700px" align-center>
<ElDrawer v-model="importDialogVisible" title="批量导入IoT卡" direction="rtl" size="50%">
<ElAlert type="info" :closable="false" style="margin-bottom: 20px">
<template #title>
<div style="line-height: 1.8">
@@ -210,7 +210,7 @@
开始导入
</ElButton>
</template>
</ElDialog>
</ElDrawer>
</ArtTableFullScreen>
</template>

View File

@@ -49,12 +49,12 @@
v-model="createDialogVisible"
title="新建订单套餐作废任务"
direction="rtl"
size="520px"
size="40%"
:close-on-click-modal="!createDrawerBusy"
:close-on-press-escape="!createDrawerBusy"
@closed="handleCreateDialogClosed"
>
<ElForm ref="createFormRef" :model="createForm" :rules="createRules" label-width="100px">
<ElForm ref="createFormRef" :model="createForm" :rules="createRules">
<ElFormItem label="CSV文件" prop="file">
<VoucherUpload
ref="csvUploadRef"

View File

@@ -41,8 +41,8 @@
</ArtTable>
<!-- 拒绝提现对话框 -->
<ElDialog v-model="rejectDialogVisible" title="拒绝提现申请" width="500px">
<ElForm ref="rejectFormRef" :model="rejectForm" :rules="rejectRules" label-width="100px">
<ElDialog v-model="rejectDialogVisible" title="拒绝提现申请" width="40%">
<ElForm ref="rejectFormRef" :model="rejectForm" :rules="rejectRules">
<ElFormItem label="拒绝原因" prop="reject_reason">
<ElInput
v-model="rejectForm.reject_reason"
@@ -51,7 +51,7 @@
placeholder="请输入拒绝原因"
/>
</ElFormItem>
<ElFormItem label="备注" prop="remark">
<ElFormItem label="备注信息" prop="remark">
<ElInput
v-model="rejectForm.remark"
type="textarea"

View File

@@ -55,7 +55,7 @@
<ElDialog
v-model="createDialogVisible"
:title="createDialogTitle"
width="500px"
width="40%"
@closed="handleCreateDialogClosed"
>
<ElForm ref="createFormRef" :model="createForm" :rules="createRules" label-width="100px">

View File

@@ -59,7 +59,7 @@
<ElDialog
v-model="createDialogVisible"
:title="'创建订单'"
width="30%"
width="40%"
@closed="handleCreateDialogClosed"
>
<ElForm ref="createFormRef" :model="createForm" :rules="createRules" label-width="80px">

View File

@@ -49,11 +49,12 @@
</ArtTable>
<!-- 创建/编辑对话框 -->
<ElDialog
<ElDrawer
v-model="dialogVisible"
:title="dialogType === 'add' ? '新增支付配置' : '编辑支付配置'"
width="900px"
:close-on-click-modal="false"
direction="rtl"
size="55%"
:close-on-click-modal="true"
@closed="handleDialogClosed"
>
<ElForm
@@ -352,7 +353,7 @@
</ElButton>
</div>
</template>
</ElDialog>
</ElDrawer>
</ElCard>
</div>
</ArtTableFullScreen>