提交 505628d0 编写于 作者: doc_wei's avatar doc_wei

套餐订单同步修改

上级 a8f6ff32
......@@ -24,7 +24,7 @@ layui.config({
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
method: 'GET',
url: shopBasePath + 'getMealListByShenke',
where: getTableParams(),
even: true,
......@@ -34,7 +34,7 @@ layui.config({
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'},
{ field: 'mealName', title: '套餐', align: 'left', width: 200 },
{ field: 'name', title: '规格', align: 'left', width: 200 },
{ field: 'mealNum', title: '可使用次数', width: 120 },
{ field: 'totalCount', title: '可使用次数', width: 120 },
{ field: 'showPrice', title: '展示价', width: 100 },
]],
done: function(res, curr, count){
......
......@@ -78,6 +78,7 @@ layui.config({
var mealMation = JSON.parse($("#mealId" + rowNum.toString()).attr("mealMaion"));
var row = {
mealId: mealMation.mealId,
skuId: mealMation.id,
memberCarId: $("#carId" + rowNum.toString()).val(),
mealName: mealMation.name,
mealNum: mealMation.totalCount,
......@@ -172,8 +173,8 @@ layui.config({
// 获取表格行号
var thisRowNum = trId.replace("tr", "");
$("#mealId" + thisRowNum.toString()).val(mealMation.title);
$("#num" + thisRowNum.toString()).html(mealMation.mealNum);
$("#mealId" + thisRowNum.toString()).val(mealMation.name);
$("#num" + thisRowNum.toString()).html(mealMation.totalCount);
$("#price" + thisRowNum.toString()).html(mealMation.showPrice);
$("#mealId" + thisRowNum.toString()).attr("mealMaion", JSON.stringify(mealMation));
calcAllPrice();
......
......@@ -29,7 +29,7 @@ layui.config({
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], fixed: 'left', type: 'numbers'},
{ field: 'name', title: '门店', align: 'left', width: 140, fixed: 'left', templet: function(d){
{ field: 'name', title: '门店', align: 'left', width: 270, fixed: 'left', templet: function(d){
return '<a lay-event="select" class="notice-title-click">' + d.name + '</a>';
}},
{ field: 'areaName', title: '所属区域', width: 120 },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册