|
@@ -141,6 +141,22 @@
|
|
placeholder="回传付费最低金额"
|
|
placeholder="回传付费最低金额"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="hover-content">
|
|
|
|
+ <span class="label">浮动回传比例</span
|
|
|
|
+ ><a-input
|
|
|
|
+ v-model:value="popForm[currentTbs].float_rate"
|
|
|
|
+ size="small"
|
|
|
|
+ style="width: 150px"
|
|
|
|
+ type="number"
|
|
|
|
+ placeholder="浮动回传比例"
|
|
|
|
+ >
|
|
|
|
+ <template #suffix>
|
|
|
|
+ <a-tooltip title="浮动比例小于固定回传比例">
|
|
|
|
+ <info-circle-outlined style="color: rgba(0,0,0,.45)" />
|
|
|
|
+ </a-tooltip>
|
|
|
|
+ </template>
|
|
|
|
+ </a-input>
|
|
|
|
+ </div>
|
|
<div class="footer-slot">
|
|
<div class="footer-slot">
|
|
<a-popconfirm
|
|
<a-popconfirm
|
|
title="是否要修改回传配置?"
|
|
title="是否要修改回传配置?"
|
|
@@ -300,6 +316,7 @@ const PutAdPlan = defineComponent({
|
|
rate: 0,
|
|
rate: 0,
|
|
condition: "",
|
|
condition: "",
|
|
price: 0,
|
|
price: 0,
|
|
|
|
+ float_rate: 0,
|
|
},
|
|
},
|
|
],
|
|
],
|
|
cost_order: 0,
|
|
cost_order: 0,
|
|
@@ -353,7 +370,7 @@ const PutAdPlan = defineComponent({
|
|
},
|
|
},
|
|
query || {},
|
|
query || {},
|
|
{ begin_date, end_date, status: state.currentSelect },
|
|
{ begin_date, end_date, status: state.currentSelect },
|
|
- state.cost_order ? { cost_order:state.cost_order } : {}
|
|
|
|
|
|
+ state.cost_order ? { cost_order: state.cost_order } : {}
|
|
);
|
|
);
|
|
getADPlanlist(data).then((res) => {
|
|
getADPlanlist(data).then((res) => {
|
|
let newList: any[] = res.data.list.map((item) => {
|
|
let newList: any[] = res.data.list.map((item) => {
|
|
@@ -464,10 +481,23 @@ const PutAdPlan = defineComponent({
|
|
}
|
|
}
|
|
},
|
|
},
|
|
confirmEdit() {
|
|
confirmEdit() {
|
|
- let { id, back_on, rate, condition, price } = this.popForm[
|
|
|
|
|
|
+ let { id, back_on, rate, condition, price, float_rate } = this.popForm[
|
|
this.currentTbs
|
|
this.currentTbs
|
|
];
|
|
];
|
|
- let data = { id, back_on: Number(back_on), rate, condition, price };
|
|
|
|
|
|
+ if (float_rate && float_rate >= rate) {
|
|
|
|
+ this.$message.error("浮动比例必须小于固定回传比例");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ let data = {
|
|
|
|
+ id,
|
|
|
|
+ back_on: Number(back_on),
|
|
|
|
+ rate,
|
|
|
|
+ condition,
|
|
|
|
+ price,
|
|
|
|
+ float_rate,
|
|
|
|
+ };
|
|
|
|
+
|
|
setBackConfig(data).then((res) => {
|
|
setBackConfig(data).then((res) => {
|
|
this.$message.success("修改成功!");
|
|
this.$message.success("修改成功!");
|
|
});
|
|
});
|
|
@@ -537,6 +567,7 @@ const PutAdPlan = defineComponent({
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
let list = res.data.map((r: PlanBack) => {
|
|
let list = res.data.map((r: PlanBack) => {
|
|
r.price = r.extra?.price;
|
|
r.price = r.extra?.price;
|
|
|
|
+ r.float_rate = r.extra?.float_rate;
|
|
r.back_on = !!Number(r.back_on);
|
|
r.back_on = !!Number(r.back_on);
|
|
return r;
|
|
return r;
|
|
});
|
|
});
|