|
|
@@ -2552,6 +2552,23 @@
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
+ <!-- 理疗红包配置 -->
|
|
|
+ <el-tab-pane label="理疗红包配置" name="projectRedPacket.config">
|
|
|
+ <el-form ref="form32" :model="form32" :rules="rules32" label-width="200px">
|
|
|
+ <el-form-item label="每天可领取红包次数" prop="redPacketNum">
|
|
|
+ <el-input-number v-model="form32.redPacketNum" :min="1" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="红包金额" prop="amount">
|
|
|
+ <el-input-number v-model="form32.amount" :precision="1" :step="1" :min="0.1" :max="5" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <div class="footer">
|
|
|
+ <el-button type="primary" @click="submitForm32">提 交</el-button>
|
|
|
+ </div>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
@@ -2738,6 +2755,7 @@ export default {
|
|
|
isSalesProxyFill: false // 是否开启销售代填,默认关闭
|
|
|
},
|
|
|
form31: {},
|
|
|
+ form32: {},
|
|
|
storeProductScrmColumns:[],
|
|
|
storeScrmColumns: [],
|
|
|
photoArr: [],
|
|
|
@@ -2801,6 +2819,7 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
rules31: {},
|
|
|
+ rules32: {},
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -3316,6 +3335,10 @@ export default {
|
|
|
console.log("----------"+response.data.configValue)
|
|
|
this.form31 = JSON.parse(response.data.configValue)
|
|
|
}
|
|
|
+ if (key == 'projectRedPacket.config') {
|
|
|
+ console.log("----------"+response.data.configValue)
|
|
|
+ this.form32 = JSON.parse(response.data.configValue)
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
@@ -3639,6 +3662,14 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ submitForm32() {
|
|
|
+ var param={configId:this.configId,configValue:JSON.stringify(this.form32)}
|
|
|
+ updateConfigByKey(param).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
submitform2() {
|
|
|
// 将对象转换为JSON字符串并保留两位小数
|
|
|
var json_data = JSON.stringify(this.form2, function(key, value) {
|