| | |
| | | var t = this.$storage.getItem('cache_delivery_order_print') || '' |
| | | if (t) { |
| | | this.item = JSON.parse(t) |
| | | var apitype = '' |
| | | // #ifdef PUB_SUPPLIER |
| | | apitype = '/supplier' |
| | | // #endif |
| | | // #ifdef PUB_PARTNER |
| | | // apitype = '/supplier' |
| | | // #endif |
| | | //获取详情接口 |
| | | this.$message.showLoading() |
| | | const { |
| | | code, |
| | | data |
| | | } = await this.$http.request('get', '/api/supplier/delivery/list/items/view', { |
| | | } = await this.$http.request('get', `/api${apitype}/delivery/list/items/view`, { |
| | | params: { |
| | | id: this.item.id |
| | | } |
| | |
| | | var flowerCategory = that.item.flowerCategory |
| | | if (flowerCategory) { |
| | | //只取二级分类 |
| | | var tarr = flowerCategory.splite("/") |
| | | var tarr = flowerCategory.split("/") |
| | | if (tarr.length >= 2) { |
| | | flowerCategory = tarr[tarr.length - 1] |
| | | } |
| | |
| | | characteristicId: that.writeCharaterId, |
| | | value: buf, |
| | | success: function(res) { |
| | | console.log(res) |
| | | // console.log(res) |
| | | }, |
| | | fail: function(e) { |
| | | console.log(e) |
| | | // wx.showToast({ |
| | | // title: '打印失败:' + e, |
| | | // }) |
| | | }, |
| | | complete: function() { |
| | | currentTime++ |