Commit 07a7ee1d by liangjianmin

bug

parent da219d06
Showing with 4 additions and 1 deletions
...@@ -74,8 +74,10 @@ ...@@ -74,8 +74,10 @@
this.traySelectOption = res.data; this.traySelectOption = res.data;
let token = uni.getStorageSync('token'); let token = uni.getStorageSync('token');
let tray_sn_index = uni.getStorageSync('tray_sn_index'); let tray_sn_index = uni.getStorageSync('tray_sn_index');
let tray_sn_value = uni.getStorageSync('tray_sn_value');
if (token) { if (token) {
this.index = tray_sn_index; this.index = tray_sn_index;
this.form.tray_remark = tray_sn_value;
} }
} }
}); });
...@@ -83,6 +85,8 @@ ...@@ -83,6 +85,8 @@
bindPickerChange: function(e) { bindPickerChange: function(e) {
this.index = e.target.value; this.index = e.target.value;
this.form.tray_remark = this.traySelectOption[e.target.value].wstylt_id; 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() { submit() {
if (!this.form.erp_order_sn_pre) { if (!this.form.erp_order_sn_pre) {
...@@ -133,7 +137,6 @@ ...@@ -133,7 +137,6 @@
this.request(API.printLabel, 'POST', this.form, false).then(res => { this.request(API.printLabel, 'POST', this.form, false).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
this.printLabelData = res.data; this.printLabelData = res.data;
uni.setStorageSync('tray_sn_index', this.index);
this.openBluetoothAdapter(); this.openBluetoothAdapter();
} else { } else {
uni.showToast({ 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