Commit 07a7ee1d by liangjianmin

bug

parent da219d06
Showing with 4 additions and 1 deletions
......@@ -74,8 +74,10 @@
this.traySelectOption = res.data;
let token = uni.getStorageSync('token');
let tray_sn_index = uni.getStorageSync('tray_sn_index');
let tray_sn_value = uni.getStorageSync('tray_sn_value');
if (token) {
this.index = tray_sn_index;
this.form.tray_remark = tray_sn_value;
}
}
});
......@@ -83,6 +85,8 @@
bindPickerChange: function(e) {
this.index = e.target.value;
this.form.tray_remark = this.traySelectOption[e.target.value].wstylt_id;
uni.setStorageSync('tray_sn_index', this.index);
uni.setStorageSync('tray_sn_value', this.traySelectOption[e.target.value].wstylt_id);
},
submit() {
if (!this.form.erp_order_sn_pre) {
......@@ -133,7 +137,6 @@
this.request(API.printLabel, 'POST', this.form, false).then(res => {
if (res.err_code === 0) {
this.printLabelData = res.data;
uni.setStorageSync('tray_sn_index', this.index);
this.openBluetoothAdapter();
} else {
uni.showToast({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment