jufubao-admin-library 1.1.93 → 1.1.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -111,6 +111,19 @@ module.exports = {
111
111
  },
112
112
  disabled: true,
113
113
  "role": "FINANCE-PARTNER.WALLET_LIST_OPENAPI_WALLET"
114
- }
114
+ },
115
+ {
116
+ title: "渠道余额通知",
117
+ mapFn: "channelAmountNotice",
118
+ path: "/finance-partner/v1/wallet/update-wallet-threshold-amount",
119
+ isRule: false,
120
+ data: {
121
+ owner_id: ["供货商ID", "string", "必填"],
122
+ wallet_type: ["钱包类型", "string", "必填"],
123
+ remind_threshold_amount: ["提醒阈值", "string", "必填"],
124
+ },
125
+ disabled: true,
126
+ "role": "FINANCE-PARTNER.WALLET_GET_CHANNEL_AMOUNT"
127
+ },
115
128
  ]
116
129
  }
@@ -38,6 +38,23 @@
38
38
  ></xd-pagination>
39
39
  </div>
40
40
  </el-card>
41
+ <XdDialog
42
+ v-if="showNoticeSetting"
43
+ @onConfirm="handleNoticeSetting"
44
+ title=""
45
+ :show.sync="showNoticeSetting"
46
+ >
47
+ <div class="flex-start">
48
+ <span>低于 </span>
49
+ <XdInputUnit
50
+ v-model="remind_threshold_amount"
51
+ :default-value="remind_threshold_amount"
52
+ :setting="{ unit: '元', pos: 'append' }"
53
+ ></XdInputUnit>
54
+ <span> 触发预警报警</span>
55
+ </div>
56
+ <div class="flex-start notice">需在加盟商后台通知管理设置后才能接收到</div>
57
+ </XdDialog>
41
58
  </div>
42
59
  </template>
43
60
 
@@ -45,6 +62,8 @@
45
62
  <script>
46
63
  import XdSearch from "@/components/XdSearch";
47
64
  import XdPagination from "@/components/XdPagination.vue";
65
+ import XdInputUnit from "@/components/formItem/XdInputUnit";
66
+ import XdDialog from '@//components/XdDialog.vue'
48
67
  import XdTable from "@/components/XdTable";
49
68
  import { mapActions } from "vuex"
50
69
  import { getOptions } from "@/utils/options"
@@ -58,7 +77,9 @@ export default {
58
77
  components: {
59
78
  XdPagination, //翻译插件
60
79
  XdSearch, //搜查插件
61
- XdTable
80
+ XdTable,
81
+ XdDialog,
82
+ XdInputUnit
62
83
  },
63
84
  data() {
64
85
  return {
@@ -74,6 +95,10 @@ export default {
74
95
 
75
96
  //列表对象
76
97
  tables: [],
98
+ showNoticeSetting: false,
99
+ remind_threshold_amount: "",
100
+ wallet_type: '',
101
+ owner_id: ''
77
102
  }
78
103
  },
79
104
  computed: {
@@ -88,6 +113,7 @@ export default {
88
113
  "type": "operate", "align": "center", "label": "操作",
89
114
  "values": [
90
115
  { "ui": "text-button", "name": "对账", "type": "text", "event": "detail" },
116
+ { "ui": "text-button", "name": "余额通知", "type": "text", "event": "notice" },
91
117
  ]
92
118
  }
93
119
  ].filter(i=>i)
@@ -97,7 +123,7 @@ export default {
97
123
  this.initSearchForm();
98
124
  },
99
125
  methods: {
100
- ...mapActions("wallet", ["listChannelWallet", "getChannelAmount"]),
126
+ ...mapActions("wallet", ["listChannelWallet", "getChannelAmount",'channelAmountNotice']),
101
127
  //相除
102
128
  divide(price) {
103
129
  return this.$xdHelper.divisionFloatNumber(price, 100);
@@ -145,6 +171,20 @@ export default {
145
171
  })
146
172
  },
147
173
 
174
+ handleNoticeSetting() {
175
+ this.channelAmountNotice({
176
+ owner_id: this.owner_id+'',
177
+ wallet_type: this.wallet_type,
178
+ remind_threshold_amount: this.remind_threshold_amount*100+''
179
+ }).then(res=>{
180
+ this.$message.success("设置成功")
181
+ this.getList()
182
+ this.showNoticeSetting=false
183
+ }).catch(err=>{
184
+
185
+ })
186
+ },
187
+
148
188
  handleTableClick({value, row}){
149
189
  if(value.event === "detail"){
150
190
  if(!row.wallet_type) return this.$message.error("该渠道没有钱包");
@@ -156,6 +196,11 @@ export default {
156
196
  wallet_nnid: row.wallet_nnid,
157
197
  }
158
198
  })
199
+ }else if(value.event === "notice") {
200
+ this.wallet_type = row.wallet_type;
201
+ this.owner_id = row.supplier_id;
202
+ this.remind_threshold_amount = row.remind_threshold_amount/100;
203
+ this.showNoticeSetting=true
159
204
  }
160
205
  },
161
206
  getRemain(row){
@@ -216,5 +261,15 @@ export default {
216
261
  align-items: center;
217
262
  justify-content: center;
218
263
  }
264
+ .flex-start{
265
+ display: flex;
266
+ align-items: center;
267
+ justify-content: flex-start;
268
+ }
269
+ .notice {
270
+ font-size: 12px;
271
+ color: #999;
272
+ margin-top: 10px;
273
+ }
219
274
  </style>
220
275
 
@@ -177,6 +177,9 @@ export default {
177
177
  server: "thirdmall-partner",
178
178
  fn: "brand",
179
179
  path: "p1",
180
+ params:{
181
+ channel_code: this.$channelCode,
182
+ }
180
183
  },
181
184
  this.appConfigm(getConfigParams),
182
185
  // #endif
@@ -631,4 +634,4 @@ export default {
631
634
  }
632
635
  }
633
636
  }
634
- </style>
637
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.93",
3
+ "version": "1.1.95",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {