分销等级配置商品券

main
ztt 8 months ago
parent de63eadc95
commit 29836f1554
  1. 16
      public/assets/js/backend/shopro/commission/level.js

@ -339,10 +339,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
}
function onSelectCoupon1() {
let ids = [];
form.model.coupon_rules.programme_1.forEach((i) => {
ids.push(i.id);
});
// let ids = [];
// form.model.coupon_rules.programme_1.forEach((i) => {
// ids.push(i.id);
// });
Fast.api.open(`shopro/coupon/select?multiple=true&status=normal`, "选择商品", {
callback(data) {
form.model.coupon_rules.programme_1 = data;
@ -351,10 +351,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
}
function onSelectCoupon2() {
let ids = [];
form.model.coupon_rules.programme_2.forEach((i) => {
ids.push(i.id);
});
// let ids = [];
// form.model.coupon_rules.programme_2.forEach((i) => {
// ids.push(i.id);
// });
Fast.api.open(`shopro/coupon/select?multiple=true&status=normal`, "选择商品", {
callback(data) {
form.model.coupon_rules.programme_2 = data;

Loading…
Cancel
Save