|  |  |  | 
|---|
|  |  |  | //     list[j] = i; | 
|---|
|  |  |  | //     j++ | 
|---|
|  |  |  | // } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // for (var i = 1; i < 10; i++) { | 
|---|
|  |  |  | //     numList[i - 1] = i | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | 
|---|
|  |  |  | that.oneTimeData = 20 | 
|---|
|  |  |  | // that.printNum = numList | 
|---|
|  |  |  | // that.printerNum = numList[0] | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | async onLoad() { | 
|---|
|  |  |  | var t = this.$storage.getItem('cache_delivery_order_print') || '' | 
|---|
|  |  |  | if (t) { | 
|---|
|  |  |  | this.items = JSON.parse(t) | 
|---|
|  |  |  | var apitype = '' | 
|---|
|  |  |  | var requrl = '' | 
|---|
|  |  |  | // #ifdef PUB_SUPPLIER | 
|---|
|  |  |  | apitype = '/supplier' | 
|---|
|  |  |  | // #endif | 
|---|
|  |  |  | // #ifdef PUB_PARTNER | 
|---|
|  |  |  | // apitype = '/supplier' | 
|---|
|  |  |  | requrl = `/api/supplier/delivery/list/items/views/new` | 
|---|
|  |  |  | // #endif | 
|---|
|  |  |  | // #ifndef PUB_SUPPLIER | 
|---|
|  |  |  | requrl = `/api/delivery/list/items/views` | 
|---|
|  |  |  | // #endif | 
|---|
|  |  |  | //获取详情接口 | 
|---|
|  |  |  | var ids = [] | 
|---|
|  |  |  | 
|---|
|  |  |  | const { | 
|---|
|  |  |  | code, | 
|---|
|  |  |  | data | 
|---|
|  |  |  | } = await this.$http.request('post', `/api${apitype}/delivery/list/items/views`, { | 
|---|
|  |  |  | } = await this.$http.request('post', requrl, { | 
|---|
|  |  |  | data: { | 
|---|
|  |  |  | // id: this.item.id, | 
|---|
|  |  |  | ids: ids | 
|---|
|  |  |  | 
|---|
|  |  |  | that.currentTime = 1 | 
|---|
|  |  |  | // that.Send(that.buffs[that.currentPrint - 1]) | 
|---|
|  |  |  | that.prepareSend(that.buffs[that.currentPrint - 1]) | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }, 500) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|