diff --git a/.env.development b/.env.development
index 6bbcb15..a151a59 100644
--- a/.env.development
+++ b/.env.development
@@ -3,11 +3,12 @@ ENV = 'development'
# http://192.168.1.43:8324/admin
# http://mer.crmeb.net/admin
# base api
+# www.shop.xyz
VUE_APP_BASE_API = 'http://test.tropjoin.com'
# VUE_APP_BASE_API = 'https://api.tropjoin.com'
# socket 连接地址
-VUE_APP_WS_URL = 'wss://test.tropjoin.com'
+VUE_APP_WS_URL = 'wss://www.shop.xyz'
# VUE_APP_WS_URL = 'ws://https://api.tropjoin.com'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
diff --git a/.env.production b/.env.production
index c7b3776..47ddd58 100644
--- a/.env.production
+++ b/.env.production
@@ -2,6 +2,6 @@
ENV = 'production'
# base api
-VUE_APP_BASE_API ='https://api.tropjoin.com'
+VUE_APP_BASE_API =''
# socket 连接地址
-VUE_APP_WS_URL ='wss://api.tropjoin.com'
+VUE_APP_WS_URL =''
diff --git a/src/api/lottery.js b/src/api/lottery.js
new file mode 100644
index 0000000..03b7376
--- /dev/null
+++ b/src/api/lottery.js
@@ -0,0 +1,32 @@
+import request from './request'
+
+/**
+ * @description 抽奖配置 -- 列表
+ */
+export function lotteryFactor_info(factor) {
+ return request.get(`store/lottery/factor_info/${factor}`)
+}
+/**
+ * @description 修改抽奖数据 -- post
+ */
+export function lotteryEdit(id, data) {
+ return request.put(`store/lottery/edit/${id}`, data)
+}
+/**
+ * @description 删除抽奖数据 -- del
+ */
+export function lotteryDel(id, data) {
+ return request.delete(`store/lottery/del/prize/${id}`, data)
+}
+/**
+ * @description 修改抽奖 -- put
+ */
+export function lotteryEditPrize(id, data) {
+ return request.put(`store/lottery/edit/prize/${id}`, data)
+}
+/**
+ * @description 添加抽奖数据
+ */
+export function addLottery(data) {
+ return request.post(`store/lottery/add/prize`, data)
+}
\ No newline at end of file
diff --git a/src/api/marketing.js b/src/api/marketing.js
index ae13ae0..8454250 100644
--- a/src/api/marketing.js
+++ b/src/api/marketing.js
@@ -373,12 +373,24 @@ export function integralLogTitle() {
export function integralLogLst(data) {
return request.get(`user/integral/lst`, data)
}
+/**
+ * @description 成长值 -- 列表
+ */
+export function brokerageLogLst(data) {
+ return request.get(`user/brokerage/lst/log`, data)
+}
/**
* @description 积分日志 -- 导出
*/
export function signLogExport(data) {
return request.get(`user/integral/excel`, data)
}
+/**
+ * @description 成长值 -- 导出
+ */
+export function brokerageLogExport(data) {
+ return request.get(`user/brokerage/excel`, data)
+}
/**
* @description 签到配置 -- 列表
*/
diff --git a/src/api/user.js b/src/api/user.js
index 0a38e3d..13118a1 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -207,6 +207,12 @@ export function userSignLogApi(uid, data) {
export function userHistoryApi(uid, data) {
return request.get(`user/history/${uid}`, data)
}
+/**
+ * @description 下级 -- 邀请人列表
+ */
+export function spreadListApi(uid, data) {
+ return request.get(`user/spread/list/${uid}`, data)
+}
/**
* @description 用户 -- 详情优惠券
*/
diff --git a/src/router/modules/accounts.js b/src/router/modules/accounts.js
index 7c562f6..049eef5 100644
--- a/src/router/modules/accounts.js
+++ b/src/router/modules/accounts.js
@@ -39,6 +39,24 @@ const accountsRouter =
},
component: () => import('@/views/accounts/capital/index')
},
+ {
+ path: 'userBill',
+ name: 'AccountsUserBill',
+ meta: {
+ title: '用户账单',
+ noCache: true
+ },
+ component: () => import('@/views/accounts/userBill/index')
+ },
+ {
+ path: 'applicationRecord',
+ name: 'AccountsApplicationRecord',
+ meta: {
+ title: '申请记录',
+ noCache: true
+ },
+ component: () => import('@/views/accounts/applicationRecord/index')
+ },
{
path: 'reconciliation',
name: 'AccountsReconciliation',
diff --git a/src/router/modules/marketing.js b/src/router/modules/marketing.js
index 894f778..f9c8b48 100644
--- a/src/router/modules/marketing.js
+++ b/src/router/modules/marketing.js
@@ -104,6 +104,29 @@ const marketingRouter =
}
]
},
+ {
+ path: 'lottery',
+ name: 'lottery',
+ meta: {
+ title: '抽奖管理',
+ noCache: true,
+
+ },
+ // redirect: 'noRedirect',
+ component: () => import('@/views/marketing/lottery/create'),
+ children: [
+ {
+ path: 'create',
+ name: 'create',
+ meta: {
+ title: '抽奖配置',
+ noCache: true,
+ activeMenu: `${roterPre}/marketing/lottery/create`
+ },
+ component: () => import('@/views/marketing/lottery/create')
+ },
+ ]
+ },
{
path: 'studio',
name: 'Studio',
diff --git a/src/router/modules/promoter.js b/src/router/modules/promoter.js
index be9862a..5ef607d 100644
--- a/src/router/modules/promoter.js
+++ b/src/router/modules/promoter.js
@@ -21,6 +21,15 @@ const promoterRouter =
},
component: () => import('@/views/promoter/config/index')
},
+ {
+ path: 'brokerage',
+ name: 'brokerage',
+ meta: {
+ title: '成长值列表',
+ noCache: true
+ },
+ component: () => import('@/views/promoter/brokerage/index')
+ },
{
path: 'user',
name: 'AccountsUser',
@@ -84,7 +93,6 @@ const promoterRouter =
},
component: () => import('@/views/promoter/distributionRules/index')
}
-
]
}
diff --git a/src/utils/newToExcel.js b/src/utils/newToExcel.js
index 0632510..3b931b9 100644
--- a/src/utils/newToExcel.js
+++ b/src/utils/newToExcel.js
@@ -172,7 +172,7 @@ export default function createWorkBook(header, title, data, foot, filename, shee
return letter[number];
} else {
let n = number % 26
- let l = Math.floor(number % 26)
+ let l = Math.floor(number / 26) - 1
return letter[l] + letter[n]
}
}
diff --git a/src/utils/validate.js b/src/utils/validate.js
index 23cb971..37905b2 100644
--- a/src/utils/validate.js
+++ b/src/utils/validate.js
@@ -10,7 +10,34 @@
export function isExternal(path) {
return /^(https?:|mailto:|tel:)/.test(path)
}
+export function formatDate(date, fmt) {
+ console.log(date, fmt);
+ if (/(y+)/.test(fmt)) {
+ fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
+ }
+ let o = {
+ 'M+': date.getMonth() + 1,
+ 'd+': date.getDate(),
+ 'h+': date.getHours(),
+ 'm+': date.getMinutes(),
+ 's+': date.getSeconds(),
+ };
+ console.log(o);
+
+ for (let k in o) {
+ if (new RegExp(`(${k})`).test(fmt)) {
+ let str = o[k] + '';
+ fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? str : padLeftZero(str));
+ }
+ }
+ console.log(fmt);
+
+ return fmt;
+}
+function padLeftZero(str) {
+ return ('00' + str).substr(str.length);
+}
/**
* @param {string} str
* @returns {Boolean}
diff --git a/src/views/accounts/applicationRecord/index.vue b/src/views/accounts/applicationRecord/index.vue
new file mode 100644
index 0000000..fd46270
--- /dev/null
+++ b/src/views/accounts/applicationRecord/index.vue
@@ -0,0 +1,935 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 导出列表
+ 批量审核
+ 批量转账
+
+
+
+
+
+
+ {{
+ scope.$index + (tableFrom.page - 1) * tableFrom.limit + 1
+ }}
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ scope.row.financial_type == 1
+ ? "银行"
+ : scope.row.financial_type == 2
+ ? "微信"
+ : "支付宝"
+ }}
+ --
+
+
+
+
+ {{
+ scope.row.status == 0
+ ? "待审核"
+ : scope.row.status == 1
+ ? "审核通过"
+ : "审核未通过"
+ }}
+
+
+ 原因:{{ scope.row.refusal }}
+
+
+
+
+
+ {{
+ scope.row.financial_status == 1 ? "已到账" : "未到账"
+ }}
+
+
+
+
+
+ 审核
+ 转账
+ 转账信息
+ 备注
+
+
+
+
+
+
+
+
+
+
+
+
+
商户信息
+
+
+ {{ transferData.merchant && transferData.merchant.mer_name }}
+
+
+ {{ transferData.merchant && transferData.merchant.mer_id }}
+
+
+ {{ transferData.mer_money }}
+
+
+ {{
+ transferData.financial_type == 1
+ ? "银行卡"
+ : transferData.financial_type == 2
+ ? "微信"
+ : "支付宝"
+ }}
+
+
+ {{ transferData.financial_account.bank }}
+
+
+ {{ transferData.financial_account.bank_code }}
+
+
+ {{ transferData.financial_account.name }}
+
+
+ {{ transferData.financial_account.name }}
+
+
+
+
+
收款信息
+
+
+ {{ transferData.financial_account.wechat }}
+
+
+
+
+
+ {{ transferData.financial_account.alipay }}
+
+
+
+
+
+ {{ transferData.extract_money }}
+
+
+ {{ getStatus(transferData.status) }}
+
+
+ {{ transferData.status_time }}
+
+
+ {{ transferData.refusal }}
+
+
+
+ 通过
+ 拒绝
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 通过
+ 拒绝
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/accounts/extract/index.vue b/src/views/accounts/extract/index.vue
index 184e026..d8d73d8 100644
--- a/src/views/accounts/extract/index.vue
+++ b/src/views/accounts/extract/index.vue
@@ -1,366 +1,492 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
-
- 导出列表
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.extract_type | extractTypeFilter }}
-
-
-
-
- {{ (scope.row.bank_name&&scope.row.bank_address) ? scope.row.bank_name+scope.row.bank_address : scope.row.bank_address }}
- -
-
-
-
-
- {{scope.row.bank_code }}
- {{scope.row.alipay_code }}
- {{scope.row.wechat }}
-
-
-
-
-
- {{ scope.row.status | extractStatusFilter }}
-
-
-
-
-
- {{ scope.row.fail_msg ? scope.row.fail_msg : '-' }}
-
-
-
-
-
- 审核
- 详情
-
-
-
-
-
-
+
+
+
+
+ {{
+ scope.row.fail_msg ? scope.row.fail_msg : "-"
+ }}
+
+
+
+
+
+ 审核
+ 详情
+
+
+
+
+
+
-
-
+
+
用户信息
-
{{ extractDetail.user.nickname }}
-
{{ extractDetail.user.uid }}
-
{{ extractDetail.extract_price }}
-
{{ extractDetail.create_time }}
-
{{ extractDetail.real_name }}
-
{{ extractDetail.bank_code }}
-
{{ extractDetail.bank_name }}
-
+
+ {{ extractDetail.user.nickname }}
+
+
+ {{ extractDetail.user.uid }}
+
+
+ {{ extractDetail.extract_price }}
+
+
+ {{ extractDetail.tx_price }}
+
+
+ {{ extractDetail.ratio_price }}
+
+
+ {{ extractDetail.create_time }}
+
+
+ {{ extractDetail.real_name }}
+
+
+ {{ extractDetail.bank_code }}
+
+
+ {{ extractDetail.bank_name }}
+
+
-
+ style="max-width: 150px; height: 80px"
+ :src="extractDetail.extract_pic"
+ />
+
提现方式
-
{{ extractDetail.status | extractStatusFilter }}
-
{{ extractDetail.status_time }}
-
{{ extractDetail.fail_msg }}
+
+ {{ extractDetail.status | extractStatusFilter }}
+
+
+ {{ extractDetail.status_time }}
+
+
+ {{ extractDetail.fail_msg }}
+
-
-
+
diff --git a/src/views/marketing/lottery/addGoods.vue b/src/views/marketing/lottery/addGoods.vue
new file mode 100644
index 0000000..315d5e5
--- /dev/null
+++ b/src/views/marketing/lottery/addGoods.vue
@@ -0,0 +1,571 @@
+
+
+
+
+
+ 未中奖
+ 免单
+ 实物
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ formValidate.type == 3
+ ? "用户领取余额后会自动到账余额账户"
+ : formValidate.type == 4
+ ? "用户领取红包后会自动到账微信零钱,添加此奖品需开通微信支付,并且账户中金额不能小于1元"
+ : ""
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 订单金额{{ formValidate.type == 10 ? "小于" : "大于" }}
+
+ 元
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/marketing/lottery/components/goodsList.vue b/src/views/marketing/lottery/components/goodsList.vue
new file mode 100644
index 0000000..add41d9
--- /dev/null
+++ b/src/views/marketing/lottery/components/goodsList.vue
@@ -0,0 +1,174 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/marketing/lottery/create.vue b/src/views/marketing/lottery/create.vue
new file mode 100644
index 0000000..a119ed1
--- /dev/null
+++ b/src/views/marketing/lottery/create.vue
@@ -0,0 +1,1166 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 三个条件都设置后,必须这些条件都满足的用户才能参加抽奖
+
+
+
+
+
+
+ 每天N次
+ 每人N次
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加商品
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+
+ {{ scope.row.type | typeName }}
+
+
+
+
+ {{ scope.row.prompt }}
+
+
+
+
+
+ {{ scope.row.total }}
+
+
+
+
+ {{ scope.row.chance }}
+
+
+
+
+
+ {{ scope.row.probability }}
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/marketing/lottery/formRule/lotteryFrom.js b/src/views/marketing/lottery/formRule/lotteryFrom.js
new file mode 100644
index 0000000..7311b95
--- /dev/null
+++ b/src/views/marketing/lottery/formRule/lotteryFrom.js
@@ -0,0 +1,68 @@
+const lotteryFrom = {
+ name: [{ required: true, message: '请输入活动名称', trigger: 'blur' }],
+ factor: [{ required: true, type: 'number', message: '请选择活动类型', trigger: 'change' }],
+ attends_user: [{ required: true, type: 'number', message: '请选择参与用户', trigger: 'change' }],
+ factor_num: [{ required: true, type: 'number', message: '请输入抽奖次数', trigger: 'blur' }],
+ // prize: [
+ // {
+ // required: true,
+ // type: 'array',
+ // message: '请添加抽奖奖品(8条)',
+ // trigger: 'change',
+ // },
+ // {
+ // type: 'array',
+ // min: 8,
+ // message: '请添加抽奖奖品(8条)',
+ // trigger: 'change',
+ // },
+ // ],
+ lottery_num: [
+ {
+ required: true,
+ type: 'number',
+ message: '请输入邀请新用户最多可获得抽奖多少次',
+ trigger: 'blur',
+ },
+ ],
+ spread_num: [
+ {
+ required: true,
+ type: 'number',
+ message: '请输入关注额外抽多少次',
+ trigger: 'blur',
+ },
+ ],
+ image: [
+ {
+ required: true,
+ message: '请上传活动背景图',
+ trigger: 'change',
+ },
+ ],
+ content: [
+ {
+ required: true,
+ message: '请填写活动规则',
+ trigger: 'blur',
+ },
+ ],
+};
+function validate(rule, value, callback) {
+ if (Array.isArray(value)) {
+ //格式为:daterange、datetimerange检测
+ value.map(function (item) {
+ if (item === '') {
+ return callback('日期不能为空');
+ }
+ });
+ } else {
+ //格式为:date、datetime、year、month 检测
+ if (value === '') {
+ return callback('日期不能为空');
+ }
+ }
+ return callback();
+}
+
+export { lotteryFrom };
diff --git a/src/views/marketing/lottery/formRule/ruleShip.js b/src/views/marketing/lottery/formRule/ruleShip.js
new file mode 100644
index 0000000..e09d9f9
--- /dev/null
+++ b/src/views/marketing/lottery/formRule/ruleShip.js
@@ -0,0 +1,27 @@
+const ruleShip = {
+ deliver_name: [
+ {
+ required: true,
+ type: 'string',
+ message: '请选择快递公司',
+ trigger: 'select',
+ },
+ ],
+ deliver_number: [
+ {
+ required: true,
+ message: '请输入快递单号',
+ trigger: 'blur',
+ },
+ ],
+};
+const ruleMark = {
+ mark: [
+ {
+ required: true,
+ message: '请输入备注信息',
+ trigger: 'blur',
+ },
+ ],
+};
+export { ruleShip, ruleMark };
diff --git a/src/views/marketing/lottery/index.vue b/src/views/marketing/lottery/index.vue
new file mode 100644
index 0000000..760e79b
--- /dev/null
+++ b/src/views/marketing/lottery/index.vue
@@ -0,0 +1,320 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加抽奖
+
+
+
+
+
+ {{ scope.row.id }}
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+
+ {{ scope.row.lottery_type }}
+
+
+
+
+ {{ scope.row.lottery_all }}
+
+
+
+
+ {{ scope.row.lottery_people }}
+
+
+
+
+ {{ scope.row.lottery_win }}
+
+
+
+
+ {{ scope.row.status_name }}
+
+
+
+
+
+
+
+
+
+
+ 起:{{ scope.row.start_time || '--' }}
+ 止:{{ scope.row.end_time || '--' }}
+
+
+
+
+ {{ scope.row.status_name }}
+
+
+
+
+ 编辑
+
+ 删除
+
+ 复制
+
+ 抽奖记录
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/marketing/lottery/recordingList.vue b/src/views/marketing/lottery/recordingList.vue
new file mode 100644
index 0000000..0c00b30
--- /dev/null
+++ b/src/views/marketing/lottery/recordingList.vue
@@ -0,0 +1,376 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+ {{ scope.row.id }}
+
+
+
+
+ {{ scope.row.user.nickname }}
+
+
+
+
+
+
+
{{ scope.row.prize.name }}
+
+
+
+
+
+ {{ scope.row.add_time }}
+
+
+
+
+
+
姓名:{{ scope.row.receive_info.name }}
+
电话:{{ scope.row.receive_info.phone }}
+
地址:{{ scope.row.receive_info.address }}
+
备注:{{ scope.row.receive_info.mark }}
+
+
+
+
+
+ {{ scope.row.deliver_info.mark }}
+
+
+
+
+ 发货
+ 配送信息
+
+ 备注
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
顺丰请输入单号 :收件人或寄件人手机号后四位
+
例如:SF000000000000:3941
+
+
+
+
+
+
+
+ 关闭
+ 提交
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/order/list/orderDetails.vue b/src/views/order/list/orderDetails.vue
index d34ea7c..397c1ca 100644
--- a/src/views/order/list/orderDetails.vue
+++ b/src/views/order/list/orderDetails.vue
@@ -12,10 +12,18 @@
-
{{ orderDetailList.order_type == 0 ? '普通订单' : '核销订单' }}
+
+ {{ orderDetailList.order_type == 0 ? "普通订单" : "核销订单" }}
+
- 订单编号:{{ orderDetailList.order_sn }}
- 总订单号:{{ orderDetailList.groupOrder.group_order_sn }}
+ 订单编号:{{ orderDetailList.order_sn }}
+ 总订单号:{{
+ orderDetailList.groupOrder.group_order_sn
+ }}
@@ -23,12 +31,26 @@
订单状态
-
待付款
-
+
+ 待付款
+
+
{{ orderDetailList.status | orderStatusFilter }}
-
-
{{ orderDetailList.status | cancelOrderStatusFilter }}
+
+ {{
+ orderDetailList.status | cancelOrderStatusFilter
+ }}
@@ -56,17 +78,31 @@
用户昵称:
{{
- orderDetailList.user.real_name ? orderDetailList.user.real_name : orderDetailList.user.nickname
+ orderDetailList.user.real_name
+ ? orderDetailList.user.real_name
+ : orderDetailList.user.nickname
}}
用户ID:
- {{ orderDetailList.user.uid ? orderDetailList.user.uid : '-' }}
+
+ {{
+ orderDetailList.user.uid
+ ? orderDetailList.user.uid
+ : "-"
+ }}
+
绑定电话:
- {{ orderDetailList.user.phone ? orderDetailList.user.phone : '-' }}
+
+ {{
+ orderDetailList.user.phone
+ ? orderDetailList.user.phone
+ : "-"
+ }}
+
@@ -75,15 +111,33 @@
-
收货人:
- {{ orderDetailList.real_name ? orderDetailList.real_name : '-' }}
+
+ {{
+ orderDetailList.real_name
+ ? orderDetailList.real_name
+ : "-"
+ }}
+
-
收货电话:
- {{ orderDetailList.user_phone ? orderDetailList.user_phone : '-' }}
+
+ {{
+ orderDetailList.user_phone
+ ? orderDetailList.user_phone
+ : "-"
+ }}
+
-
收货地址:
- {{ orderDetailList.user_address ? orderDetailList.user_address : '-' }}
+
+ {{
+ orderDetailList.user_address
+ ? orderDetailList.user_address
+ : "-"
+ }}
+
@@ -92,15 +146,34 @@
-
创建时间:
- {{ orderDetailList.create_time ? orderDetailList.create_time : '-' }}
+
+ {{
+ orderDetailList.create_time
+ ? orderDetailList.create_time
+ : "-"
+ }}
+
-
商品总数:
- {{ orderDetailList.total_num ? orderDetailList.total_num : '-' }}
+
+ {{
+ orderDetailList.total_num
+ ? orderDetailList.total_num
+ : "-"
+ }}
+
-
实际支付:
- {{ orderDetailList.finalOrder ? (parseFloat(orderDetailList.finalOrder.pay_price) + parseFloat(orderDetailList.pay_price)) : orderDetailList.pay_price }}
+
+ {{
+ orderDetailList.finalOrder
+ ? parseFloat(orderDetailList.finalOrder.pay_price) +
+ parseFloat(orderDetailList.pay_price)
+ : orderDetailList.pay_price
+ }}
+
-
铸源星抵扣:
- 使用了{{ orderDetailList.integral }}个铸源星,抵扣了{{ orderDetailList.integral_price }}元
+
+ 使用了{{ orderDetailList.integral }}个铸源星,抵扣了{{
+ orderDetailList.integral_price
+ }}元
+
- -
+
-
折扣:
- -{{ orderDetailList.amount_price }}元
+
+ -{{ orderDetailList.amount_price }}元
+
-
订单总价:
- {{ orderDetailList.total_price ? orderDetailList.total_price : '-' }}
+
+ {{
+ orderDetailList.total_price
+ ? orderDetailList.total_price
+ : "-"
+ }}
+
-
发货方式:
- 核销
- {{ orderDetailList.delivery_type | sendWay }}
+
+ 核销
+
+
+ {{ orderDetailList.delivery_type | sendWay }}
+
- -
-
活动折扣:
- 使用了{{ orderDetailList.platform_coupon_price }}个折扣,抵扣了{{ orderDetailList.platform_coupon_price }}元
+ -
+
活动折扣:
+
+ 使用了{{
+ orderDetailList.platform_coupon_price
+ }}个折扣,抵扣了{{
+ orderDetailList.platform_coupon_price
+ }}元
+
-
支付运费:
@@ -160,11 +270,39 @@
-->
-
商品类型:
- {{ orderDetailList.is_virtual==1 ? '虚拟商品' : orderDetailList.is_virtual==2 ? '卡密商品' : '普通商品' }}
+
+ {{
+ orderDetailList.is_virtual == 1
+ ? "虚拟商品"
+ : orderDetailList.is_virtual == 2
+ ? "卡密商品"
+ : "普通商品"
+ }}
+
-
活动类型:
- {{ orderDetailList.activity_type == 1 ? '秒杀' : orderDetailList.activity_type == 2 ? '预售' : orderDetailList.activity_type == 3 ? '助力' : orderDetailList.activity_type == 4 ? '拼团' : '普通' }}
+
+ {{
+ orderDetailList.activity_type == 1
+ ? "秒杀"
+ : orderDetailList.activity_type == 2
+ ? "预售"
+ : orderDetailList.activity_type == 3
+ ? "助力"
+ : orderDetailList.activity_type == 4
+ ? "拼团"
+ : "普通"
+ }}
+
+
+ -
+
自购成长值:
+ {{ orderDetailList.extension_one }}
+
+ -
+
上级成长值:
+ {{ orderDetailList.extension_two }}
@@ -173,12 +311,26 @@
-
快递公司:
- {{ orderDetailList.delivery_name ? orderDetailList.delivery_name : '-' }}
+
+ {{
+ orderDetailList.delivery_name
+ ? orderDetailList.delivery_name
+ : "-"
+ }}
+
-
快递单号:
- {{ orderDetailList.delivery_id ? orderDetailList.delivery_id : '-' }}
- 物流查询
+
+ {{
+ orderDetailList.delivery_id
+ ? orderDetailList.delivery_id
+ : "-"
+ }}
+
+ 物流查询
@@ -186,7 +338,9 @@
买家留言
@@ -194,12 +348,15 @@
商家备注
-
@@ -208,7 +365,11 @@
- {{ scope.row.cart_info.productAttr.product_id ? scope.row.cart_info.productAttr.product_id : '-' }}
+ {{
+ scope.row.cart_info.productAttr.product_id
+ ? scope.row.cart_info.productAttr.product_id
+ : "-"
+ }}
@@ -217,7 +378,11 @@
- {{ scope.row.cart_info.productAttr.bar_code ? scope.row.cart_info.productAttr.bar_code : '-' }}
+ {{
+ scope.row.cart_info.productAttr.bar_code
+ ? scope.row.cart_info.productAttr.bar_code
+ : "-"
+ }}
@@ -228,14 +393,20 @@
-
{{ scope.row.cart_info.product.store_name }}
+
+ {{ scope.row.cart_info.product.store_name }}
+
规格:{{
- scope.row.cart_info.productAttr.sku ? scope.row.cart_info.productAttr.sku : '默认'
+ scope.row.cart_info.productAttr.sku
+ ? scope.row.cart_info.productAttr.sku
+ : "默认"
}}
@@ -246,25 +417,37 @@
- {{ scope.row.cart_info.productAttr.price ? scope.row.cart_info.productAttr.price : '-' }}
+ {{
+ scope.row.cart_info.productAttr.price
+ ? scope.row.cart_info.productAttr.price
+ : "-"
+ }}
-
-
-
- {{ scope.row.cart_info.productAttr.cost ? scope.row.cart_info.productAttr.cost : '-' }}
+
+
+
+ {{
+ scope.row.cart_info.productAttr.cost
+ ? scope.row.cart_info.productAttr.cost
+ : "-"
+ }}
+
-
-
-
+
+
- {{ scope.row.product_price ? scope.row.product_price : '-' }}
+ {{
+ scope.row.product_price
+ ? scope.row.product_price
+ : "-"
+ }}
@@ -353,7 +536,14 @@
-
+
@@ -365,20 +555,20 @@
class="table"
highlight-current-row
>
-
-
+ label="序号"
+ min-width="90"
+ prop="bill_id"
+ >
+
+
- 未处理
- 已处理
+ 未处理
+ 已处理
-
+
-
+
-
-
+
+
{{ scope.row.order_sn }}
@@ -420,28 +614,47 @@
:preview-src-list="[val.cart_info.product.image]"
/>
- {{ val.cart_info.product.store_name + ' | ' }}{{ val.cart_info.productAttr.sku }}
+ {{ val.cart_info.product.store_name + " | "
+ }}{{ val.cart_info.productAttr.sku }}
- {{ '¥'+ val.cart_info.productAttr.price + ' x '+ val.product_num }}
+ {{
+ "¥" +
+ val.cart_info.productAttr.price +
+ " x " +
+ val.product_num
+ }}
(-{{ val.product_num - val.refund_num }})
+ v-if="
+ val.refund_num < val.product_num &&
+ val.refund_num > 0
+ "
+ style="color: red; font-style: normal"
+ >(-{{ val.product_num - val.refund_num }})
-
+
{{ scope.row.pay_price }}
-
+
- 详情
+ 详情
@@ -451,26 +664,36 @@
店铺信息
-
+
-
商户名称:
- {{ orderDetailList.merchant.mer_name }}
+
+ {{ orderDetailList.merchant.mer_name }}
+
-
商户类型:
- {{ orderDetailList.merchant.type_name }}
+
+ {{ orderDetailList.merchant.type_name }}
+
- -
+
-
商户类别:
- {{ orderDetailList.merchant.is_trader ? '自营' : '非自营' }}
+
+ {{
+ orderDetailList.merchant.is_trader ? "自营" : "非自营"
+ }}
+
- -
+
-
店铺电话:
- {{ orderDetailList.merchant.service_phone }}
+
+ {{ orderDetailList.merchant.service_phone }}
+
-
+
@@ -482,16 +705,21 @@
v-if="dialogLogistics"
>
-
+
+
+
物流公司:{{ orderDetailList.delivery_name }}
物流单号:{{ orderDetailList.delivery_id }}
-
+
-
+
@@ -502,15 +730,14 @@
+
diff --git a/src/views/user/list/userDetails.vue b/src/views/user/list/userDetails.vue
index 007fbba..d2c7d8a 100644
--- a/src/views/user/list/userDetails.vue
+++ b/src/views/user/list/userDetails.vue
@@ -5,88 +5,111 @@
:size="1000"
:visible.sync="drawer"
:direction="direction"
- :before-close="handleClose"
+ :before-close="handleClose"
>
-
-
-
-
-
-
{{psInfo.nickname}}
-
-
-
-
+
+
+
+
+
+
{{ psInfo.nickname }}
+
+
+
+
+
-
-
-
- 编辑
- 取消
- 完成
-
-
-
-
- 设置余额
- 设置分组
- 设置标签
-
- 修改密码
-
+ 设置余额
+ 设置分组
+ 设置标签
+
+ 修改密码
+
-
-
+
+
+
-
-
-
- -
-
余额
-
-
{{psInfo.now_money}}元
-
-
- -
-
总计订单
- {{psInfo.pay_count}}笔
-
- -
-
总消费金额
- {{psInfo.pay_price}}元
-
-
-
-
+
+
-
-
+
基本信息
@@ -101,7 +124,7 @@
-->
手机号码:
- {{ psInfo.phone || '-' }}
+ {{ psInfo.phone || "-" }}
- 用户账号:
- {{ psInfo.account || '-' }}
-
+
用户账号:
+
{{ psInfo.account || "-" }}
+
- 真实姓名:
- {{ psInfo.real_name || '-' }}
-
+
真实姓名:
+
{{ psInfo.real_name || "-" }}
+
@@ -130,7 +153,9 @@
-->
用户状态:
- {{psInfo.status == 1 ? '开启' : '关闭'}}
+
+ {{ psInfo.status == 1 ? "开启" : "关闭" }}
+
注册时间:
- {{psInfo.create_time}}
+ {{ psInfo.create_time }}
登录时间:
- {{psInfo.last_time}}
+ {{ psInfo.last_time }}
-
+
会员到期时间:
- {{psInfo.svip_endtime}}
-
+
{{ psInfo.svip_endtime }}
+
+
+
+
+
被邀请人信息
+
+ -
+
用户ID:
+ {{ psInfo.spread.uid }}
+
+ -
+
用户姓名:
+ {{ psInfo.spread.real_name }}
+
+ -
+
用户身份证:
+ {{ psInfo.spread.card_id }}
+
+ -
+
用户电话:
+ {{ psInfo.spread.phone }}
+
补充信息
- -
-
{{item.title}}:
-
-
- {{itm}}
+ -
+
{{ item.title }}:
+
+
+ {{
+ itm
+ }}
{{ item.value }}
@@ -190,9 +252,12 @@
-
-
+
+ >
基本信息
@@ -299,7 +364,7 @@
-->
-
+
全部
-
+
-
+
全部
-
+
@@ -338,9 +413,7 @@
-->
-
+
开启
关闭
@@ -358,91 +431,130 @@
placeholder="请填写备注"
class="selWidth"
/>
-
+
-
+
补充信息
-
-
+
+
+ />
-
+
+ />
-
+
+ />
-
-
+
-
+
+ />
-
+
+ />
-
-
-
- {{radio}}
+
+
+
+ {{ radio }}
-
+
+ />
-
-
+
-
+
-
-
+
+
-
+
-
{{scope.row.spu&&scope.row.spu.store_name}}
+
{{ scope.row.spu && scope.row.spu.store_name }}
- {{scope.row[item.key]}}
- {{scope.row.spu&&scope.row.spu[item.key]}}
-
-
+
{{
+ scope.row[item.key]
+ }}
+
{{
+ scope.row.spu && scope.row.spu[item.key]
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ scope.row[item.key] > 0 ? "已绑定" : "未绑定"
+ }}
+ {{ scope.row && scope.row[item.key] }}
+
+
@@ -665,18 +825,28 @@
-->
-
+
diff --git a/src/worker/calcWorker.js b/src/worker/calcWorker.js
index c6f7f21..8d5df0e 100644
--- a/src/worker/calcWorker.js
+++ b/src/worker/calcWorker.js
@@ -81,6 +81,9 @@ onmessage = (res) => {
} else {
//不是数组
lcomunNow.getCell(getLetter(sk)).value = data[h][l];
+ console.log(lcomunNow.getCell(getLetter(sk)).value);
+ console.log(data[h][l]);
+ console.log(h, l);
lcomunNow.getCell(getLetter(sk)).border = { top: { style: 'thin' }, left: { style: 'thin' }, bottom: { style: 'thin' }, right: { style: 'thin' } };
lcomunNow.alignment = { vertical: 'middle', horizontal: 'center' };
sk++
@@ -163,7 +166,7 @@ onmessage = (res) => {
return letter[number];
} else {
let n = number % 26
- let l = Math.floor(number % 26)
+ let l = Math.floor(number / 26) - 1
return letter[l] + letter[n]
}
}