diff --git a/src/components/ArteryPrintTemplate/ArteryPrintTemplate.vue b/src/components/ArteryPrintTemplate/ArteryPrintTemplate.vue index 25ef3009..178e1af0 100644 --- a/src/components/ArteryPrintTemplate/ArteryPrintTemplate.vue +++ b/src/components/ArteryPrintTemplate/ArteryPrintTemplate.vue @@ -129,8 +129,8 @@ 小计 - + + + - - + + > ', error); + } finally { + this.loadingObj.pageLoading = false; + } + }, /** 查看日志 */ handleGoLogs({ row }) { this.$router.push({ diff --git a/src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue b/src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue index 3ba7403a..5d533fcf 100644 --- a/src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue +++ b/src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue @@ -40,48 +40,68 @@ + 批量转库存品 + >批量转库存品 + + + 修改客户信息 + 修改客户信息 + + + 修改收货单位 + 修改收货单位 + + + 修改服务类型 + 修改服务类型 + - 创建提货单 + + + 创建提货单 + + + 再次通知 + >再次通知 + + + 通知提货 + >通知提货 + + + + 批量打印 + + 导 出 @@ -127,9 +147,7 @@ + + @@ -257,6 +277,8 @@ + + @@ -282,6 +304,7 @@ + + > ', error); + } finally { + this.loadingObj.pageLoading = false; + } + }, /** 查看日志 */ handleGoLogs({ row }) { this.$router.push({ diff --git a/src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue b/src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue index 72ba3287..6525784e 100644 --- a/src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue +++ b/src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue @@ -38,34 +38,54 @@ + + 创建提货单 + >创建提货单 + + + 批量转库存品 + >批量转库存品 + + + 修改客户信息 + >修改客户信息 + + + 修改运单收货人 + >修改运单收货人 + + + 修改收货单位 + >修改收货单位 + + + 修改服务类型 - 通知提货 - 再次通知 + >修改服务类型 + + + + + 通知提货 + + + + + 再次通知 + + + + 批量打印 + 导 出 @@ -110,9 +130,7 @@ + + @@ -286,6 +306,8 @@ + + @@ -311,6 +333,7 @@ + + --> + + @@ -580,6 +606,7 @@ import { deepClone, getObjType, handleClearTableQuery, + handleSelectQuery, } from '@/utils/util'; import { columnList } from '@/option/distribution/distributionStockArticleSelf'; import { ElMessage, ElMessageBox } from 'element-plus'; @@ -870,26 +897,7 @@ export default { console.log(index, row); }, selectsc(index, row) { - console.log(index, row); - if (row.prop === 'freezeStatusName') { - this.query['freezeStatus'] = index; - } else if (row.prop === 'completeSetName') { - this.query['completeSet'] = index; - } else if (row.prop === 'reservationStatusName') { - this.query['reservationStatus'] = index; - } else if (row.prop === 'groundingStatusName') { - this.query['groundingStatus'] = index; - } else if (row.prop === 'stockupStatusName') { - this.query['stockupStatus'] = index; - } else if (row.prop === 'orderStatusName') { - this.query['orderStatus'] = index; - } else if (row.prop === 'typeName') { - this.query['typeService'] = index; - } else if (row.prop === 'orderReceiveStatusName') { - this.query['orderReceiveStatus'] = index; - } else { - this.query[row.prop] = index; - } + handleSelectQuery(index, row, this.query); this.onLoad(this.page); }, timesc(index, row) { @@ -909,8 +917,8 @@ export default { this.onLoad(this.page); }, InformationViewing(row) { - if(!row.notReceived || Number(row.isZero)) { - return + if (!row.notReceived || Number(row.isZero)) { + return; } this.$router.push({ path: '/distribution/inventory/delivery/Unstoreddetails', @@ -1642,6 +1650,34 @@ export default { this.loadingObj.pageLoading = false; } }, + /** 批量查看二维码 */ + async handleBatchPrinter() { + try { + if (this.selectionList.length === 0) return ElMessage.warning('请勾选需要打印的零担订单'); + + let _ids = ''; + for (let i = 0; i < this.selectionList.length; i++) { + const val = this.selectionList[i]; + _ids += i === this.selectionList.length - 1 ? val.id : val.id + ','; + + if (Number(val.isZero) === 1) continue; + return ElMessage.warning('仅支持零担订单的批量查看二维码'); + } + + this.loadingObj.pageLoading = true; + const res = await postShowOrderCode({ ids: _ids }); + + const { code, data } = res.data; + if (code !== 200) return; + + this.html = this.getHtmls(data.dataList, data.templateHtml); + this.popUpShow.printVisited = true; + } catch (error) { + console.log('error :>> ', error); + } finally { + this.loadingObj.pageLoading = false; + } + }, /** 查看日志 */ handleGoLogs({ row }) { this.$router.push({ diff --git a/src/views/distribution/inventory/delivery/distributionStockArticleWhole.vue b/src/views/distribution/inventory/delivery/distributionStockArticleWhole.vue index 38e5d289..b5438d18 100644 --- a/src/views/distribution/inventory/delivery/distributionStockArticleWhole.vue +++ b/src/views/distribution/inventory/delivery/distributionStockArticleWhole.vue @@ -170,6 +170,8 @@ + + @@ -199,6 +201,8 @@ + + @@ -233,6 +237,8 @@ + + @@ -403,7 +409,7 @@ import { mapGetters } from 'vuex'; import { getDictionaryBiz } from '@/api/system/dict'; import dayjs from 'dayjs'; import { getUser } from '@/api/system/user'; -import { handleClearTableQuery } from '@/utils/util'; +import { handleClearTableQuery, handleSelectQuery } from '@/utils/util'; export default { data() { @@ -974,26 +980,7 @@ export default { console.log(index, row); }, selectsc(index, row) { - console.log(index, row); - if (row.prop === 'freezeStatusName') { - this.query['freezeStatus'] = index; - } else if (row.prop === 'completeSetName') { - this.query['completeSet'] = index; - } else if (row.prop === 'reservationStatusName') { - this.query['reservationStatus'] = index; - } else if (row.prop === 'groundingStatusName') { - this.query['groundingStatus'] = index; - } else if (row.prop === 'stockupStatusName') { - this.query['stockupStatus'] = index; - } else if (row.prop === 'orderStatusName') { - this.query['orderStatus'] = index; - } else if (row.prop === 'typeServerName') { - this.query['typeService'] = index; - } else if (row.prop === 'orderReceiveStatusName') { - this.query['orderReceiveStatus'] = index; - } else { - this.query[row.prop] = index; - } + handleSelectQuery(index, row, this.query); this.onLoad(this.page); }, timesc(index, row) { diff --git a/src/views/waybill/orderPackageList.vue b/src/views/waybill/orderPackageList.vue index 8fe6f52d..cb414e0d 100644 --- a/src/views/waybill/orderPackageList.vue +++ b/src/views/waybill/orderPackageList.vue @@ -5,75 +5,33 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + @@ -392,15 +350,73 @@ const details = reactive({ return [start, end]; }, }, - // { - // text: '最近三个月', - // value: () => { - // const end = new Date(); - // const start = new Date(); - // start.setTime(start.getTime() - 3600 * 1000 * 24 * 90); - // return [start, end]; - // }, - // }, + { + text: '最近三个月', + value: () => { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 90); + return [start, end]; + }, + }, + ], + /** 头部搜索配置 */ + titleSearchOption: [ + { + label: '运单号', + prop: 'waybillNo', + type: 'input', + }, + { + label: '订单自编号', + prop: 'orderCode', + type: 'input', + }, + { + label: '一级品类', + prop: 'firsts', + type: 'input', + }, + { + label: '二级品类', + prop: 'sencods', + type: 'input', + }, + { + label: '三级品类', + prop: 'thirds', + type: 'input', + }, + { + label: '包条码', + prop: 'orderPackageCode', + type: 'input', + }, + { + label: '干线车次号', + prop: 'trunklineCarsNo', + type: 'input', + }, + { + label: '配送车次号', + prop: 'deliveryTrainNumber', + type: 'input', + }, + { + label: '客户车次号', + prop: 'trainNumber', + type: 'input', + }, + { + label: '服务号', + prop: 'serviceNumber', + type: 'input', + }, + { + label: '入库时间', + prop: 'incomingTimeArr', + type: 'time', + }, ], /** 包明细表头 */ packageListColumnList: deepClone(packageListColumnList), diff --git a/src/views/waybill/orderPackageListDetails.vue b/src/views/waybill/orderPackageListDetails.vue index 60c4ed0d..05f702e8 100644 --- a/src/views/waybill/orderPackageListDetails.vue +++ b/src/views/waybill/orderPackageListDetails.vue @@ -6,43 +6,67 @@ - + - + - + - + - + - +