From e624eace6eb0d379c657d27d43b026e6463ebbb3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?=
<14103883+leaf-phos@user.noreply.gitee.com>
Date: Mon, 17 Mar 2025 10:12:07 +0800
Subject: [PATCH] modelChip
---
src/api/app/dashboard.js | 11 +
src/api/ss/hardVersion.js | 44 +++
src/api/system/model.js | 8 +
src/components/Business/Model/ModelInput.vue | 197 +++++++++++
src/components/Business/Model/modelDialog.vue | 18 +-
src/components/Business/Model/modelSelect.vue | 2 +-
.../mch/index/components/MchUserProfile.vue | 13 +-
src/views/ss/hardVersion/index.vue | 323 ++++++++++++++++++
src/views/ss/realName/index.vue | 5 +
src/views/system/model/index.vue | 16 +-
.../recharge/components/RechargeTable.vue | 16 +-
11 files changed, 640 insertions(+), 13 deletions(-)
create mode 100644 src/api/ss/hardVersion.js
create mode 100644 src/components/Business/Model/ModelInput.vue
create mode 100644 src/views/ss/hardVersion/index.vue
diff --git a/src/api/app/dashboard.js b/src/api/app/dashboard.js
index 59a0b7f..c48aca5 100644
--- a/src/api/app/dashboard.js
+++ b/src/api/app/dashboard.js
@@ -10,3 +10,14 @@ export function appGetBonusDailyAmount(params) {
params
})
}
+
+/**
+ * 获取商户收益统计
+ */
+export function appGetMchRevenue(params) {
+ return request({
+ url: '/app/dashboard/mchRevenue',
+ method: 'get',
+ params
+ })
+}
diff --git a/src/api/ss/hardVersion.js b/src/api/ss/hardVersion.js
new file mode 100644
index 0000000..3fd614a
--- /dev/null
+++ b/src/api/ss/hardVersion.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询硬件版本列表
+export function listHardVersion(query) {
+ return request({
+ url: '/ss/hardVersion/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询硬件版本详细
+export function getHardVersion(id) {
+ return request({
+ url: '/ss/hardVersion/' + id,
+ method: 'get'
+ })
+}
+
+// 新增硬件版本
+export function addHardVersion(data) {
+ return request({
+ url: '/ss/hardVersion',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改硬件版本
+export function updateHardVersion(data) {
+ return request({
+ url: '/ss/hardVersion',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除硬件版本
+export function delHardVersion(id) {
+ return request({
+ url: '/ss/hardVersion/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/system/model.js b/src/api/system/model.js
index 7b4c730..0587775 100644
--- a/src/api/system/model.js
+++ b/src/api/system/model.js
@@ -9,6 +9,14 @@ export function listModel(query) {
})
}
+// 通过ids查询型号列表
+export function listModelByIds(ids) {
+ return request({
+ url: `/system/model/listByIds/${ids}`,
+ method: 'get',
+ })
+}
+
// 查询型号列表详细
export function getModel(modelId) {
return request({
diff --git a/src/components/Business/Model/ModelInput.vue b/src/components/Business/Model/ModelInput.vue
new file mode 100644
index 0000000..fda7914
--- /dev/null
+++ b/src/components/Business/Model/ModelInput.vue
@@ -0,0 +1,197 @@
+
+
+
+
+
+
+ {{item.modelName}}
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/Business/Model/modelDialog.vue b/src/components/Business/Model/modelDialog.vue
index c1947f1..463c537 100644
--- a/src/components/Business/Model/modelDialog.vue
+++ b/src/components/Business/Model/modelDialog.vue
@@ -18,7 +18,7 @@
@row-click="changeSelection"
@row-dblclick="select"
@select-all="selectionAll"
- @select="changeSelection"
+ @select="handleSelect"
highlight-current-row
>
@@ -107,7 +107,7 @@ export default {
refreshTableSelection() {
if(this.multiple){
this.tableData.forEach(item => {
- if (this.selected.map(j => j.id).includes(item.id)) {
+ if (this.selected.map(j => j.modelId).includes(item.modelId)) {
this.$refs.multipleTable.toggleRowSelection(item, true);
} else {
this.$refs.multipleTable.toggleRowSelection(item, false);
@@ -119,10 +119,10 @@ export default {
selectionAll(val){
let flag = val.length > 0;
this.tableData.forEach(item => {
- if (flag && !this.selected.map(i => i.id).includes(item.id)){
+ if (flag && !this.selected.map(i => i.modelId).includes(item.modelId)){
this.selected.push(item);
- } else if (!flag && this.selected.map(i => i.id).includes(item.id)){
- this.selected = this.selected.filter(i => i.id !== item.id);
+ } else if (!flag && this.selected.map(i => i.modelId).includes(item.modelId)){
+ this.selected = this.selected.filter(i => i.modelId !== item.modelId);
}
})
},
@@ -134,12 +134,16 @@ export default {
this.select(this.row);
}
},
+ handleSelect(selection, row) {
+ this.changeSelection(row);
+ },
// 更换某一行的选中状态
changeSelection(row){
+ console.log(row);
if(this.multiple){
- if (this.selected.map(i => i.id).includes(row.id)){
+ if (this.selected.map(i => i.modelId).includes(row.modelId)){
this.$refs.multipleTable.toggleRowSelection(row, false);
- this.selected = this.selected.filter(i => i.id !== row.id);
+ this.selected = this.selected.filter(i => i.modelId !== row.modelId);
}else {
this.$refs.multipleTable.toggleRowSelection(row, true);
this.selected.push(row);
diff --git a/src/components/Business/Model/modelSelect.vue b/src/components/Business/Model/modelSelect.vue
index cbaaa26..d0d0800 100644
--- a/src/components/Business/Model/modelSelect.vue
+++ b/src/components/Business/Model/modelSelect.vue
@@ -5,7 +5,7 @@
v-if="!disabled"
:size="size"
readonly
- :placeholder="placeholder">
+ :placeholder="placeholder"/>
{{showValue}}
-
+
@@ -39,7 +39,7 @@ import { $serviceType, $withdrawServiceType } from '@/utils/mixins'
import LineField from '@/components/LineField/index.vue'
import SmUser from '@/views/system/smUser/index.vue'
import { SmUserType } from '@/utils/constants'
-
+import { appGetMchRevenue } from '@/api/app/dashboard'
export default {
name: "MchUserProfile",
mixins: [$serviceType, $withdrawServiceType],
@@ -48,7 +48,8 @@ export default {
data() {
return {
loading: false,
- user: {}
+ user: {},
+ mchRevenue: {}
}
},
computed: {
@@ -59,6 +60,7 @@ export default {
},
created() {
this.getUserInfo();
+ this.getMchRevenue();
},
methods: {
// 修改默认设备服务费
@@ -86,6 +88,11 @@ export default {
}).finally(() => {
this.loading = false;
})
+ },
+ getMchRevenue() {
+ appGetMchRevenue().then(res => {
+ this.mchRevenue = res.data;
+ })
}
}
}
diff --git a/src/views/ss/hardVersion/index.vue b/src/views/ss/hardVersion/index.vue
new file mode 100644
index 0000000..953c88f
--- /dev/null
+++ b/src/views/ss/hardVersion/index.vue
@@ -0,0 +1,323 @@
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+ {{d.row[column.key]}}
+
+
+
+ {{d.row.modelList.map(item => item.modelName).join(',') | dv}}
+
+
+
+ {{d.row[column.key]}}
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/ss/realName/index.vue b/src/views/ss/realName/index.vue
index de5203a..9e6df0c 100644
--- a/src/views/ss/realName/index.vue
+++ b/src/views/ss/realName/index.vue
@@ -122,6 +122,9 @@
+
+
+
{{d.row[column.key]}}
@@ -216,6 +219,8 @@ export default {
{key: 'mobile', visible: true, label: '手机号', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
{key: 'score', visible: true, label: '比对分数', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
{key: 'faceImage', visible: true, label: '人脸图像', minWidth: null, sortable: false, overflow: false, align: 'center', width: null},
+ {key: 'idCardFront', visible: true, label: '身份证正面', minWidth: null, sortable: false, overflow: false, align: 'center', width: null},
+ {key: 'idCardBack', visible: true, label: '身份证反面', minWidth: null, sortable: false, overflow: false, align: 'center', width: null},
],
// 排序方式
orderSorts: ['ascending', 'descending', null],
diff --git a/src/views/system/model/index.vue b/src/views/system/model/index.vue
index e41e3dc..5285eca 100644
--- a/src/views/system/model/index.vue
+++ b/src/views/system/model/index.vue
@@ -17,6 +17,11 @@
@keyup.enter.native="handleQuery"
/>
+
+
+
+
+
+
+
+
{{d.row[column.key]}}
@@ -158,6 +166,11 @@
{{option.label}}
+
+
+ {{option.label}}
+
+
@@ -188,7 +201,7 @@ const defaultSort = {
export default {
name: "Model",
mixins: [$serviceType, $showColumns],
- dicts: ['sm_model_tag', 'service_type'],
+ dicts: ['sm_model_tag', 'service_type', 'model_chip'],
components: { AppInput },
data() {
return {
@@ -207,6 +220,7 @@ export default {
{key: 'serviceRate', visible: false, label: '默认服务费', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
{key: 'snPrefix', visible: true, label: 'SN前缀', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
{key: 'sort', visible: true, label: '排序', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
+ {key: 'chip', visible: true, label: '芯片', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
],
// 排序方式
orderSorts: ['ascending', 'descending', null],
diff --git a/src/views/system/recharge/components/RechargeTable.vue b/src/views/system/recharge/components/RechargeTable.vue
index 0d3da3c..aa94057 100644
--- a/src/views/system/recharge/components/RechargeTable.vue
+++ b/src/views/system/recharge/components/RechargeTable.vue
@@ -120,6 +120,14 @@
@click="handleExport"
v-hasPermi="['system:bill:export']"
>导出
+ 导出
@@ -267,6 +275,7 @@ export default {
},
data() {
return {
+ UserType,
// 当前选中行
row: {},
defaultSort,
@@ -477,7 +486,12 @@ export default {
handleExport() {
this.download('system/bill/export', {
...this.queryParams
- }, `bill_${new Date().getTime()}.xlsx`)
+ }, `充值订单_${new Date().getTime()}.xlsx`)
+ },
+ handleExportApp() {
+ this.download('app/bill/export', {
+ ...this.queryParams
+ }, `充值订单_${new Date().getTime()}.xlsx`)
}
}
};