jufubao-admin-library 1.1.158 → 1.1.160

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.
@@ -110,7 +110,10 @@
110
110
  width="460px"
111
111
  @onConfirm="handlePublicSet"
112
112
  >
113
- <el-form ref="setForm" :model="setForm" :rules="setRules" label-width="80px">
113
+ <el-form ref="setForm" :model="setForm" :rules="setRules" label-width="120px">
114
+ <el-form-item prop="product_name" label="商品名称">
115
+ {{ dialogRow['product_name'] }}
116
+ </el-form-item>
114
117
  <el-form-item prop="public" label="是否公开">
115
118
  <el-radio-group v-model="setForm.public">
116
119
  <el-radio
@@ -128,6 +131,9 @@
128
131
  <el-checkbox v-for="(item,index) in tagData" :label="item.value" :key="index">{{item.label}}</el-checkbox>
129
132
  </el-checkbox-group>
130
133
  </el-form-item>
134
+ <el-form-item prop="spider_url" label="产品来源地址">
135
+ <el-input v-model="setForm.spider_url" placeholder="请输入"></el-input>
136
+ </el-form-item>
131
137
  </el-form>
132
138
  </xd-dialog>
133
139
  <xd-dialog :show.sync="showOpen" title="发票名称设置" width="600px" @onConfirm="handleOpenConfirm">
@@ -209,6 +215,7 @@ export default {
209
215
  setForm: {
210
216
  public: 'mall',
211
217
  partner_product_tags:['mall'],
218
+ spider_url:''
212
219
  },
213
220
  tagData:[],
214
221
  showOpen: false,
@@ -401,6 +408,7 @@ export default {
401
408
  this.is_allow_public_product = info.data['entity']['is_allow_public_product']
402
409
  this.setForm.partner_product_tags = info.data['entity']['partner_product_tags']
403
410
  this.setForm.public = info.data['entity']['is_public']
411
+ this.setForm.spider_url = info.data['entity']['spider_url']
404
412
  this.showPublicSet = true
405
413
  }
406
414
  //开票设置
@@ -851,6 +859,7 @@ export default {
851
859
  entity: {
852
860
  is_public: this.setForm.public,
853
861
  partner_product_tags:this.setForm.partner_product_tags,
862
+ spider_url:this.setForm.spider_url,
854
863
  }
855
864
  }).then(res => {
856
865
  console.log(res)
@@ -860,6 +869,7 @@ export default {
860
869
  })
861
870
  this.showPublicSet = false
862
871
  this.setForm.public = 'Y'
872
+ this.setForm.spider_url = ''
863
873
  this.handleDialogSuccess()
864
874
  loading.close()
865
875
  }).catch(err => {
@@ -50,6 +50,15 @@
50
50
  placeholder="选择时间范围">
51
51
  </el-time-picker>
52
52
  </el-form-item>
53
+ <el-form-item label="每日兑换步数上限:" prop="daily_max_exchange_type">
54
+ <el-radio-group v-model="customForm.daily_max_exchange_type">
55
+ <el-radio label="N">不限制</el-radio>
56
+ <el-radio label="S">自定义</el-radio>
57
+ </el-radio-group>
58
+ </el-form-item>
59
+ <el-form-item v-if="customForm.daily_max_exchange_type === 'S'" label="" prop="daily_max_exchange_step">
60
+ <el-input style="width: 40%" type="number" v-model="customForm.daily_max_exchange_step" placeholder="请输入每日兑换步数上限"></el-input>
61
+ </el-form-item>
53
62
  </el-form>
54
63
  </template>
55
64
  </xd-base-dynamic-field>
@@ -97,6 +106,8 @@ export default {
97
106
  exchange_ratio_step:'',
98
107
  exchange_ratio_mileage:'',
99
108
  daily_exchange_deadline:'',
109
+ daily_max_exchange_type:'N',
110
+ daily_max_exchange_step:''
100
111
  },
101
112
  customRules: {
102
113
  exchange_ratio_step: [
@@ -108,6 +119,12 @@ export default {
108
119
  daily_exchange_deadline: [
109
120
  { required: true, message: '请选择每日兑换截止时间', trigger: ['blur', 'change'] },
110
121
  ],
122
+ daily_max_exchange_type: [
123
+ { required: true, message: '请设置每日兑换步数上限', trigger: ['blur', 'change'] },
124
+ ],
125
+ daily_max_exchange_step: [
126
+ { required: true, message: '请输入每日兑换步数上限', trigger: ['blur', 'change'] },
127
+ ],
111
128
  },
112
129
  valueFormat: 'HH:mm:ss',
113
130
  pickerOptions: { format: 'HH:mm:ss' },
@@ -177,7 +194,7 @@ export default {
177
194
  server:'saas-app-public',
178
195
  fn:'exchange-ratio-step',
179
196
  path:'p1',
180
- },
197
+ },
181
198
  // #ifdef sms-walking
182
199
  {
183
200
  server:'saas-app-public',
@@ -191,7 +208,7 @@ export default {
191
208
  server:'saas-company',
192
209
  fn:'sub_company',
193
210
  path:'p1',
194
- },
211
+ },
195
212
  // #endif
196
213
  ]).then(result => {
197
214
  console.log(result, 'aaaaa')
@@ -219,7 +236,11 @@ export default {
219
236
  this.map_id = res.data.x_map_id
220
237
  this.customForm.exchange_ratio_step = res.data.exchange_ratio_step
221
238
  this.customForm.exchange_ratio_mileage = res.data.exchange_ratio_mileage
222
- this.customForm.daily_exchange_deadline = res.data.daily_exchange_deadline
239
+ this.customForm.daily_exchange_deadline = res.data.daily_exchange_deadline
240
+ this.customForm.daily_max_exchange_type = res.data.daily_max_exchange_type
241
+ if(res.data.daily_max_exchange_step !== undefined) {
242
+ this.customForm.daily_max_exchange_step = res.data.daily_max_exchange_step
243
+ }
223
244
  // #ifdef sms-walking
224
245
  if(res.data.activity_url_config){
225
246
  res.data.activity_url_config = JSON.parse(res.data.activity_url_config)
@@ -457,21 +478,21 @@ export default {
457
478
  ]
458
479
  },
459
480
  {
460
- label: '活动封面图:',
461
- ele: 'xd-upload',
462
- valueKey: 'activity_logo',
463
- value: {},
481
+ label: '活动封面图:',
482
+ ele: 'xd-upload',
483
+ valueKey: 'activity_logo',
484
+ value: {},
464
485
  defaultValue: {url:params.activity_logo}||null,
465
- slot: true,
486
+ slot: true,
466
487
  elinputClassName: 'input40',
467
488
  tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
468
489
  type: ['jpg', 'png', 'jpeg'],
469
- styleType: 'one',
490
+ styleType: 'one',
470
491
  uploadType: 'aliyun',
471
- size: 5,
492
+ size: 5,
472
493
  action: 'aliyun',
473
- sort: true,
474
- maxlen: 100,
494
+ sort: true,
495
+ maxlen: 100,
475
496
  rules: [
476
497
  {required: true, message: '请上传图片', trigger: ['blur', 'change']},
477
498
  ]
@@ -497,7 +518,7 @@ export default {
497
518
  { required: true, message: "请添加活动规则", trigger: "change" },
498
519
  ],
499
520
  },
500
-
521
+
501
522
  ]
502
523
  this.formList = formList.filter(i => i)
503
524
  this.renderFormKey = Date.now()
@@ -515,18 +536,28 @@ export default {
515
536
  if(this.formParams.activity_end_time){
516
537
  formParamsCopy.activity_end_time = this.formParams.activity_end_time/1000
517
538
  }
518
- // #ifdef sms-walking
539
+
540
+ // #ifdef sms-walking
519
541
  if(this.formParams.activity_url_config){
520
542
  formParamsCopy['activity_url'] = this.formParams.activity_url_config['app']['frontPath']
521
- formParamsCopy['activity_url_config'] = JSON.stringify(this.formParams.activity_url_config)
543
+ formParamsCopy['activity_url_config'] = JSON.stringify(this.formParams.activity_url_config)
522
544
  }
523
545
  if(this.formParams.activity_show_terminals){
524
- formParamsCopy['activity_show_terminals'] = JSON.stringify(this.formParams.activity_show_terminals)
546
+ formParamsCopy['activity_show_terminals'] = JSON.stringify(this.formParams.activity_show_terminals)
525
547
  }
526
548
  // #endif
527
- let needFilters = Object.assign({},formParamsCopy,this.customForm)
528
- console.log(needFilters,'need')
529
- this.$refs.form.submit().then(res => {
549
+ let needFilters = Object.assign({},formParamsCopy,this.customForm);
550
+
551
+ //每日兑换步数限制
552
+ if(needFilters.daily_max_exchange_type === 'N') {
553
+ delete needFilters.daily_max_exchange_step;
554
+ }
555
+ if(needFilters.daily_max_exchange_type === 'Y'){
556
+ needFilters.daily_max_exchange_step = Number(needFilters.daily_max_exchange_step);
557
+ }
558
+
559
+ console.log(needFilters,'need')
560
+ this.$refs.form.submitAll().then(res => {
530
561
  let data = {
531
562
  item: needFilters,
532
563
  }
@@ -563,7 +594,7 @@ export default {
563
594
  })
564
595
  }
565
596
  })
566
-
597
+
567
598
  },
568
599
  goBack () {
569
600
  this.$router.replace('/walking_activity/list')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.158",
3
+ "version": "1.1.160",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {