delete replaxe
This commit is contained in:
parent
08a801ac0d
commit
247e935b14
|
@ -23,5 +23,4 @@ function bindShelving(barcode, shelving, level){
|
|||
})();
|
||||
})();
|
||||
}
|
||||
|
||||
exports.bindShelving = bindShelving;
|
29
replace.js
29
replace.js
|
@ -1,29 +0,0 @@
|
|||
function replaceTag(barcode, shelving, level){
|
||||
const got = require('got');
|
||||
const config = require('./config');
|
||||
(async() => {
|
||||
const info = await config.info
|
||||
let key = info.data.token;
|
||||
const { body } = await got.post('http://app.etiquetaselectronicas.com:9999/bind/batchBind', {
|
||||
json: {
|
||||
storeId: config.storeId,
|
||||
tagItemBinds: [{
|
||||
eslBarcode: barcode,
|
||||
itemBarcode: shelving + level
|
||||
}
|
||||
]
|
||||
},
|
||||
responseType: 'json',
|
||||
headers: {
|
||||
"Authorization": key
|
||||
}
|
||||
})
|
||||
console.log(body)
|
||||
})();
|
||||
}
|
||||
|
||||
var barcode = "A0A3B8207222";
|
||||
var shelving = "ABC";
|
||||
var level = "2";
|
||||
|
||||
replaceTag(barcode, shelving, level);
|
Reference in New Issue