|
@@ -6,7 +6,7 @@ $(function () {
|
|
colModel: [
|
|
colModel: [
|
|
{label: 'ID', name: 'id', index: 'id', hidden: true, key: true},
|
|
{label: 'ID', name: 'id', index: 'id', hidden: true, key: true},
|
|
{label: '商品商户编号', name: 'goods_merch_sn', index: 'goods_merch_sn', hidden: true},
|
|
{label: '商品商户编号', name: 'goods_merch_sn', index: 'goods_merch_sn', hidden: true},
|
|
- {label: '所属商户', name: 'merchName', index: 'merchName', width: 100, align: 'center'},
|
|
|
|
|
|
+ {label: '所属商户', name: 'merchName', index: 'merchName', width: 70, align: 'center'},
|
|
{label: '所属门店', name: 'storeName', index: 'storeName', width: 80, align: 'center'},
|
|
{label: '所属门店', name: 'storeName', index: 'storeName', width: 80, align: 'center'},
|
|
{label: '商品类型', name: 'categoryName', index: 'categoryName', width: 80, align: 'center'},
|
|
{label: '商品类型', name: 'categoryName', index: 'categoryName', width: 80, align: 'center'},
|
|
{
|
|
{
|
|
@@ -41,14 +41,14 @@ $(function () {
|
|
return '-';
|
|
return '-';
|
|
}},
|
|
}},
|
|
{label: '门店库存', name: 'stockNum', index: 'stockNum', width: 70, align: 'center'},
|
|
{label: '门店库存', name: 'stockNum', index: 'stockNum', width: 70, align: 'center'},
|
|
- {label: '零售价格', name: 'retailPrice', index: 'retailPrice', width: 70, align: 'center'},
|
|
|
|
|
|
+ {label: '零售价格', name: 'retailPrice', index: 'retailPrice', width: 60, align: 'center'},
|
|
// {label: '市场价', name: 'marketPrice', index: 'marketPrice', width: 80, align: 'center'},
|
|
// {label: '市场价', name: 'marketPrice', index: 'marketPrice', width: 80, align: 'center'},
|
|
// {label: '库存价格', name: 'stockPrice', index: 'stockPrice', width: 80},
|
|
// {label: '库存价格', name: 'stockPrice', index: 'stockPrice', width: 80},
|
|
{
|
|
{
|
|
label: '销售量',
|
|
label: '销售量',
|
|
name: 'sellVolume',
|
|
name: 'sellVolume',
|
|
index: 'a.sell_volume',
|
|
index: 'a.sell_volume',
|
|
- width: 70,
|
|
|
|
|
|
+ width: 60,
|
|
sortable: true, align: 'center',
|
|
sortable: true, align: 'center',
|
|
onSortCol: function (index, colindex, sortorder) {
|
|
onSortCol: function (index, colindex, sortorder) {
|
|
//列排序事件
|
|
//列排序事件
|
|
@@ -56,7 +56,7 @@ $(function () {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '操作', width: 70, align: 'center', sortable: false, formatter: function (value, col, row) {
|
|
|
|
|
|
+ label: '操作', width: 120, align: 'center', sortable: false, formatter: function (value, col, row) {
|
|
let htmlStr = '';
|
|
let htmlStr = '';
|
|
if (row.goodsBizType == '02' || row.goodsBizType == '10') {
|
|
if (row.goodsBizType == '02' || row.goodsBizType == '10') {
|
|
htmlStr = "<button class='btn btn-outline btn-primary' " +
|
|
htmlStr = "<button class='btn btn-outline btn-primary' " +
|
|
@@ -64,7 +64,9 @@ $(function () {
|
|
}
|
|
}
|
|
if (row.goodsBizType == '00') {
|
|
if (row.goodsBizType == '00') {
|
|
htmlStr = "<button class='btn btn-outline btn-primary' " +
|
|
htmlStr = "<button class='btn btn-outline btn-primary' " +
|
|
- "onclick='vm.putOn(" + row.id + ")'><i class='fa fa-qrcode'></i>二维码</button>";
|
|
|
|
|
|
+ "onclick='vm.qrcodeCanvas(" + row.goodsId + ",\""+ row.storeId +"\",\""+row.goodsMerchSn+"\",\""+row.merchSn+"\")'><i class='fa fa-qrcode'></i>二维码</button> "+
|
|
|
|
+ "<button class='btn btn-outline btn-primary' " +
|
|
|
|
+ "onclick='vm.putOn(" + row.id + ")'><i class='fa fa-qrcode'></i>投放</button>";
|
|
}
|
|
}
|
|
return htmlStr;
|
|
return htmlStr;
|
|
}
|
|
}
|
|
@@ -666,23 +668,23 @@ var vm = new Vue({
|
|
$("#qrcodeCanvas").html("");
|
|
$("#qrcodeCanvas").html("");
|
|
$.get("../productstorerela/qrcodeCanvas/" + id, function (r) {
|
|
$.get("../productstorerela/qrcodeCanvas/" + id, function (r) {
|
|
var qrcSrc = r.url;
|
|
var qrcSrc = r.url;
|
|
- $("#qrcImg .qrcImg").attr("src", qrcSrc);
|
|
|
|
- $("#qrcodeCanvas").html($("#qrcImg").html());
|
|
|
|
|
|
+ $("#qrcImg2 .qrcImg").attr("src", qrcSrc);
|
|
|
|
+ $("#qrcodeCanvas2").html($("#qrcImg2").html());
|
|
openWindow({
|
|
openWindow({
|
|
title: "二维码",
|
|
title: "二维码",
|
|
area: ['450px', '450px'],
|
|
area: ['450px', '450px'],
|
|
- content: jQuery("#qrcode"),
|
|
|
|
|
|
+ content: jQuery("#qrcode2"),
|
|
// btn: ["打印"],
|
|
// btn: ["打印"],
|
|
btn1: function (index) {
|
|
btn1: function (index) {
|
|
- $("#qrcImg").show();
|
|
|
|
|
|
+ $("#qrcImg2").show();
|
|
// $("#qrcImg").print({});
|
|
// $("#qrcImg").print({});
|
|
- $("#qrcImg").hide();
|
|
|
|
|
|
+ $("#qrcImg2").hide();
|
|
layer.close(index);
|
|
layer.close(index);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
- $("#qrcImg").hide();
|
|
|
|
|
|
+ $("#qrcImg2").hide();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|