|
|
@ -344,10 +344,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
form.model.coupon_rules.programme_1.forEach((i) => { |
|
|
|
form.model.coupon_rules.programme_1.forEach((i) => { |
|
|
|
ids.push(i.id); |
|
|
|
ids.push(i.id); |
|
|
|
}); |
|
|
|
}); |
|
|
|
Fast.api.open(`shopro/coupon/select?multiple=true&status=normal&use_scope=goods&ids=${ids.join(',')}`, "选择商品", { |
|
|
|
Fast.api.open(`shopro/coupon/select?multiple=true&status=normal&use_scope=goods&ids=${ids.join(',')}`, "选择商品券", { |
|
|
|
callback(data) { |
|
|
|
callback(data) { |
|
|
|
console.log(data.data) |
|
|
|
console.log(JSON.parse(data.data)) |
|
|
|
form.model.coupon_rules.programme_1 = data.data; |
|
|
|
form.model.coupon_rules.programme_1 = JSON.parse(data.data); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
@ -359,8 +359,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
}); |
|
|
|
}); |
|
|
|
Fast.api.open(`shopro/coupon/select?multiple=true&status=normal&use_scope=goods&ids=${ids.join(',')}`, "选择商品券", { |
|
|
|
Fast.api.open(`shopro/coupon/select?multiple=true&status=normal&use_scope=goods&ids=${ids.join(',')}`, "选择商品券", { |
|
|
|
callback(data) { |
|
|
|
callback(data) { |
|
|
|
console.log(data.data) |
|
|
|
console.log(JSON.parse(data.data)) |
|
|
|
form.model.coupon_rules.programme_2 = data.data; |
|
|
|
form.model.coupon_rules.programme_2 = JSON.parse(data.data); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|