隐藏商品让利比例字段
This commit is contained in:
parent
da7bbeface
commit
6571815277
@ -197,19 +197,18 @@
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>商家利润比例</th>
|
||||
<th>商品让利比例</th>
|
||||
<th>商品全返比例</th>
|
||||
<th>商家折扣比例</th>
|
||||
<th>商品最高返补比例</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>${subsidy.profit}</td>
|
||||
<td>${subsidy.discount}</td>
|
||||
<td>${subsidy.subsidy}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="font-weight: bold">选择此条件是商家折扣比例</div>
|
||||
`
|
||||
$("#goods_subsidy_table").html(h);
|
||||
$("#subsidy_id").val(subsidy.id)
|
||||
@ -222,25 +221,24 @@
|
||||
,content: '{:url("goods.Goods/goodsSubsidy")}'
|
||||
,area: ['90%', '90%']
|
||||
,btn: ['确认', '取消']
|
||||
,yes: function(index, layero){
|
||||
,yes: function(index){
|
||||
var data = window["layui-layer-iframe" + index].callbackdata();
|
||||
const html = `
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>商家利润比例</th>
|
||||
<th>商品让利比例</th>
|
||||
<th>商品全返比例</th>
|
||||
<th>商家折扣比例</th>
|
||||
<th>商品最高返补比例</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>${data[0].profit}</td>
|
||||
<td>${data[0].discount}</td>
|
||||
<td>${data[0].subsidy}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="font-weight: bold">选择此条件是商家折扣比例</div>
|
||||
`
|
||||
$("#goods_subsidy_table").html(html);
|
||||
$("#subsidy_id").val(data[0]['id'])
|
||||
|
||||
@ -46,9 +46,9 @@
|
||||
, url: '{:url("goods.Goods/goodsSubsidy")}' //模拟接口
|
||||
, cols: [[
|
||||
{type: 'radio'}
|
||||
, {field: 'profit', title: '商家利润比例', align: "center"}
|
||||
, {field: 'discount', title: '商品让利比例', align: "center"}
|
||||
, {field: 'subsidy', title: '商品全返比例', align: "center"}
|
||||
, {field: 'profit', title: '商家折扣比例', align: "center"}
|
||||
// , {field: 'discount', title: '商品让利比例', align: "center"}
|
||||
, {field: 'subsidy', title: '商品最高返补比例', align: "center"}
|
||||
]]
|
||||
, page: true
|
||||
, text: {none: '暂无数据!'}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user