mutiplePrintFn(pickId, self, ids, sumTotal, pageTotal, pageSize, current) {
return new Promise((resolve, reject) => {
self.bigIndex++ let startNum = (current - 1) * pageSize // 当前批次开始订单编号
current++
let obj = { pickIds: ids, start: startNum, count: pageSize }
doPrintExpressListNew(obj).then((res) => {
if (res.status !== 200) {
[self.$Notice.info](
http://self.%24notice.info/)({ title: this.$t(‘public.title.failTitle’), desc: res.message }) resolve(result)
} else {
if (sumTotal > pageSize && current < pageTotal) { resolve(this.mutiplePrintFn(pickId, self, ids, sumTotal, pageTotal, pageSize, current)) }
else {
let isMore = true
resolve(this.printMutipleBatch(pickId, self, ids, sumTotal, pageTotal, pageSize, current, true, isMore)) } } }) }) }
网友评论