Commit 83bac40f by LJM

bug

parent 2579f01f
Showing with 1 additions and 9 deletions
...@@ -146,7 +146,6 @@ ...@@ -146,7 +146,6 @@
warehouse_index: 0, warehouse_index: 0,
formParams: { formParams: {
user_email: '', // 登录账号邮箱 user_email: '', // 登录账号邮箱
warehouse_id: '', // 登录仓库
sn: '', sn: '',
target_printer_ip: '', //模板打印机 target_printer_ip: '', //模板打印机
tally_qty: '', //打印数量 tally_qty: '', //打印数量
...@@ -160,7 +159,7 @@ ...@@ -160,7 +159,7 @@
onShow() { onShow() {
let company_id = uni.getStorageSync('company_id') || 1; let company_id = uni.getStorageSync('company_id') || 1;
if (company_id == 1) { if (company_id == 1) {
this.warehouse_arr = [{ name: '深圳现货仓', value: '7' }, { name: '深圳自营仓', value: 9 }]; this.warehouse_arr = [{ name: '深圳现货仓', value: 7 }, { name: '深圳自营仓', value: 9 }];
this.formParams.warehouse_id = 7; this.formParams.warehouse_id = 7;
} else if (company_id == 2) { } else if (company_id == 2) {
this.warehouse_arr = [{ name: '香港仓', value: '10' }]; this.warehouse_arr = [{ name: '香港仓', value: '10' }];
...@@ -245,13 +244,6 @@ ...@@ -245,13 +244,6 @@
// company_id == 1 ? '深圳市猎芯科技有限公司' : '深贸电子有限公司' // company_id == 1 ? '深圳市猎芯科技有限公司' : '深贸电子有限公司'
this.company_id = uni.getStorageSync('company_id') || 1; this.company_id = uni.getStorageSync('company_id') || 1;
// 7 深圳仓, 10 香港仓
if (this.company_id == 1) {
this.formParams.warehouse_id = 7;
} else {
this.formParams.warehouse_id = 10;
}
this.request(API.latePrint, 'POST', this.formParams, true).then(res => { this.request(API.latePrint, 'POST', this.formParams, true).then(res => {
if (res.code === 0) { if (res.code === 0) {
uni.showLoading({ uni.showLoading({
......
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