|
@@ -215,16 +215,14 @@ $(document).ready(function(){
|
|
|
var transport = $(this).parent().parent('.list_block').find('.order_id').data('transport');
|
|
|
var oid = $(this).parent().parent('.list_block').find('.order_id').html();
|
|
|
|
|
|
- var bctype = "code128";
|
|
|
var settings = {
|
|
|
- output: "css",
|
|
|
- bgColor: "#ffffff",
|
|
|
- color: "#000000",
|
|
|
- barWidth: "3.3",
|
|
|
- barHeight: "80",
|
|
|
- fontSize: 0
|
|
|
- };
|
|
|
- $('.barcode>.box').barcode(order_barcode, bctype, settings);
|
|
|
+ format: "CODE128",
|
|
|
+ width:3,
|
|
|
+ height:80,
|
|
|
+ displayValue: false,
|
|
|
+ margin:1
|
|
|
+ };
|
|
|
+ JsBarcode(".barcode>.box", order_barcode, settings);
|
|
|
let barcode = $('.barcode').html();
|
|
|
let html_str = '<div class="str_box">'+order_barcode + '*' + goods_info + '*' + transport + '*' + print_time+'</div>';
|
|
|
$('.yp').append('<div>'+barcode+html_str+'</div>').show();
|
|
@@ -259,15 +257,15 @@ $(document).ready(function(){
|
|
|
var html = '';
|
|
|
var bctype = "code128";
|
|
|
var settings = {
|
|
|
- output: "css",
|
|
|
- bgColor: "#ffffff",
|
|
|
- color: "#000000",
|
|
|
- barWidth: "3.3",
|
|
|
- barHeight: "90",
|
|
|
- fontSize: 0
|
|
|
- };
|
|
|
+ format: "CODE128",
|
|
|
+ width:3,
|
|
|
+ height:80,
|
|
|
+ displayValue: false,
|
|
|
+ margin:1
|
|
|
+ };
|
|
|
for(x in arr){
|
|
|
- $('.barcode>.box').barcode(arr[x].barcode, bctype, settings);
|
|
|
+ // $('.barcode>.box').barcode(arr[x].barcode, bctype, settings);
|
|
|
+ JsBarcode(".barcode>.box", arr[x].barcode, settings);
|
|
|
var barcode = $('.barcode').html();
|
|
|
html += '<div>'+barcode + arr[x].str+'</div>';
|
|
|
}
|