diff --git a/src/components/BooleanTag/index.vue b/src/components/BooleanTag/index.vue
new file mode 100644
index 0000000..a6b6045
--- /dev/null
+++ b/src/components/BooleanTag/index.vue
@@ -0,0 +1,36 @@
+
+ {{value ? trueText : falseText}}
+
+
diff --git a/src/views/system/device/detail.vue b/src/views/system/device/detail.vue
index 1cef1b5..b4868ac 100644
--- a/src/views/system/device/detail.vue
+++ b/src/views/system/device/detail.vue
@@ -66,6 +66,13 @@
{{deviceData.totalElectriQuantity | money | defaultValue}} 度
+
+ {{deviceData.limitRechargeTime | defaultValue}}
+
+
+
+ {{deviceData.limitRechargeReason | defaultValue}}
+
@@ -147,11 +154,13 @@ import StoreLink from '@/components/Business/Store/StoreLink.vue'
import UserLink from '@/components/Business/SmUser/UserLink.vue'
import { $serviceType, $view } from '@/utils/mixins'
import Recharge from '@/views/system/recharge/index.vue'
+import BooleanTag from '@/components/BooleanTag/index.vue'
export default {
name: 'Device/:deviceId',
mixins: [$serviceType, $view],
components: {
+ BooleanTag,
Recharge,
UserLink,
StoreLink,
@@ -192,6 +201,13 @@ export default {
},
isOpen() {
return this.deviceData != null && this.deviceData.powerStatus === '1';
+ },
+ // 是否限制充值
+ isLimitRecharge() {
+ if (this.deviceData == null || this.deviceData.limitRechargeTime == null) {
+ return false;
+ }
+ return new Date(this.deviceData.limitRechargeTime).getTime() < new Date();
}
},
created() {
diff --git a/src/views/system/device/index.vue b/src/views/system/device/index.vue
index 5fcf34a..5582088 100644
--- a/src/views/system/device/index.vue
+++ b/src/views/system/device/index.vue
@@ -438,6 +438,11 @@ export default {
...this.query,
...this.$route.query
}
+
+ if (this.view != null) {
+ this.showSearch = false;
+ }
+
this.getList();
},
methods: {
diff --git a/src/views/system/smUser/detail.vue b/src/views/system/smUser/detail.vue
index 02a90af..82e5196 100644
--- a/src/views/system/smUser/detail.vue
+++ b/src/views/system/smUser/detail.vue
@@ -2,24 +2,30 @@
-
+
+
+
+
+
+
+
+
+
+
-
- {{userData.wxOpenId | defaultValue}}
- {{userData.storeCount | defaultValue}} 家
- {{userData.deviceCount | defaultValue}} 台
-
+
+
跟随渠道
@@ -33,16 +39,25 @@
{{userData.withdrawServiceRate}} {{serviceUnit(userData.withdrawServiceType)}}
- {{userData.balance | money | defaultValue}} 元
- {{userData.totalIncome | money | defaultValue}} 元
- {{userData.rechargeAmount | money | defaultValue}} 元
- {{userData.withDrawlAmount | money | defaultValue}} 元
+ {{userData.remark | defaultValue}}
+
+
+
+
+ {{userData.limitWithdrawReason | defaultValue}}
+
+
+
+
+
+ {{userData.limitRefundReason | defaultValue}}
+
-
+
@@ -66,6 +81,9 @@
+
+
+
@@ -96,11 +114,13 @@ import Account from '@/views/ss/account/index.vue'
import Suit from '@/views/ss/suit/index.vue'
import Device from '@/views/system/device/index.vue'
import Recharge from '@/views/system/recharge/index.vue'
+import BooleanTag from '@/components/BooleanTag/index.vue'
+import Withdraw from '@/views/system/withdraw/index.vue'
export default {
name: 'User/:userId',
mixins: [$view, $serviceType],
- components: { Recharge, Device, Suit, Account, RecordBalance, Store, Access, UserRechargeReport, UserAccount, UserDevice, LineChart},
+ components: { Withdraw, BooleanTag, Recharge, Device, Suit, Account, RecordBalance, Store, Access, UserRechargeReport, UserAccount, UserDevice, LineChart},
dicts: ['sm_user_type', 'service_type', 'withdraw_service_type'],
computed: {
serviceUnit() {
@@ -139,7 +159,6 @@ export default {
font-size: 18px;
line-height: 30px;
vertical-align: center;
- margin-right: 0.5em;
}
.phone-number {
font-size: 18px;
@@ -162,6 +181,6 @@ export default {
}
.user-detail .user-description {
flex: 1;
- margin-top: 32px;
+ margin-top: 16px;
}
diff --git a/src/views/system/smUser/index.vue b/src/views/system/smUser/index.vue
index aad3a1d..9d27755 100644
--- a/src/views/system/smUser/index.vue
+++ b/src/views/system/smUser/index.vue
@@ -217,10 +217,10 @@
-
-
+
+
-
+
-
+
-
-
-
-
-
+
+
+
+
+
@@ -76,12 +76,12 @@
-
+
{{d.row.billNo}}
-
+
@@ -176,11 +176,21 @@ import {
} from "@/api/system/withdraw";
import UserLink from '@/components/Business/SmUser/UserLink.vue'
import WithdrawDetail from '@/views/system/withdraw/detail.vue'
+import { $view } from '@/utils/mixins'
export default {
- name: "Bill",
- components: { WithdrawDetail, UserLink },
+ name: "Withdraw",
+ mixins: [$view],
dicts: ['withdraw_status', 'withdraw_type', 'channel_type'],
+ components: { WithdrawDetail, UserLink },
+ props: {
+ query: {
+ type: Object,
+ default: () => {
+ return {}
+ }
+ }
+ },
data() {
return {
showDetail: false,
@@ -230,8 +240,14 @@ export default {
created() {
this.queryParams = {
...this.queryParams,
+ ...this.query,
...this.$route.query
}
+
+ if (this.view != null) {
+ this.showSearch = false;
+ }
+
this.getList();
},
methods: {