diff --git a/src/option/distribution/abnormalList.js b/src/option/distribution/abnormalList.js new file mode 100644 index 00000000..260a6c75 --- /dev/null +++ b/src/option/distribution/abnormalList.js @@ -0,0 +1,170 @@ +/** 自提详情内表格 */ +export const columnList = [ + { + prop: '', + label: '复选框', + type: 0, + width: 55, + fixed: true, + }, + { + prop: '', + label: '序号', + type: 12, + values: '', + width: 55, + fixed: true, + }, + { + prop: 'billladingCode', + label: '类型', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: true, + sortable: true, + head: false, + }, + { + prop: 'orderPackageCode', + label: '异常状态', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: true, + sortable: true, + head: false, + }, + { + prop: 'driverName', + label: '车类型', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'carNumber', + label: '上报仓库', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'carsNo', + label: '车次号', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'waybillNo', + label: '运单号', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'orderCode', + label: '订单自编号', + type: 2, + values: '', + width: '180', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'orderPackageCode', + label: '包条码', + type: 2, + values: '', + width: '180', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: '', + label: '上报人', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'trayCode', + label: '状态', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'firstPickName', + label: '处理人', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'secondPickName', + label: '处理时间', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'remark', + label: '备注', + type: 2, + values: '', + width: '180', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'materialName', + label: '上报时间', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: '', + label: '操作', + type: 6, + values: '', + width: '200', + checkarr: [], + fixed: 'right', + sortable: true, + }, +]; diff --git a/src/views/distribution/artery/abnormalList.vue b/src/views/distribution/artery/abnormalList.vue new file mode 100644 index 00000000..922b4e82 --- /dev/null +++ b/src/views/distribution/artery/abnormalList.vue @@ -0,0 +1,394 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜 索 + 清 空 + + + + + + + + + + + + + + + + + + + + + + {{ slotProps.scope.row.waybillNo }} + + + + + 上传回单 + 查看订单 + + + + + + + 勾选数量: {{ selectionList.length }} + + + + + + + + + + + + + + diff --git a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue index 01322f0f..791ed442 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue @@ -2112,7 +2112,7 @@ export default { { prop: 'signingStatusName', label: '签收状态', - type: 2, + type: 1, values: '', width: '150', checkarr: [], @@ -2199,7 +2199,7 @@ export default { { prop: 'pallet', label: '托盘码', - type: 2, + type: 1, values: '', width: '150', checkarr: [], diff --git a/src/views/distribution/reservation/reservation.vue b/src/views/distribution/reservation/reservation.vue index ba12965a..85cfbcc9 100644 --- a/src/views/distribution/reservation/reservation.vue +++ b/src/views/distribution/reservation/reservation.vue @@ -1,5 +1,5 @@ - + @@ -136,15 +136,9 @@ 添加预约 - 批量转备货 - - 批量转配送 - - 批量打印 - + 批量转备货 + 批量转配送 + 批量打印 - + @@ -852,20 +846,10 @@ export default { /** loading */ loadingObj: { submitLoading: false, + pageLoading: false, }, }; }, - watch: { - // '$route.query.reservationId': { - // handler(newVal, oldVal) { - // console.log(newVal, oldVal); - // // this.fetchData(); - // this.onLoad(this.page); - // }, - // deep: false, - // immediate: true, - // } - }, mounted() { this.init(); this.onLoad(this.page); @@ -1587,17 +1571,24 @@ export default { }); return; } - const ids = this.selectionList.map(item => item.id); - this.html = ''; - const res = await this.batchPrint(ids); - const { code, data } = res.data; - if (code === 200) { - this.dialogVisible = true; - console.log('data :>> ', data); - data.forEach(item => { - return (this.html += item.templateHtml); - }); - this.html; + try { + this.loadingObj.pageLoading = true; + + const ids = this.selectionList.map(item => item.id); + this.html = ''; + const res = await this.batchPrint(ids); + const { code, data } = res.data; + if (code === 200) { + this.dialogVisible = true; + console.log('data :>> ', data); + data.forEach(item => { + return (this.html += item.templateHtml); + }); + } + } catch (error) { + console.log('error :>> ', error); + } finally { + this.loadingObj.pageLoading = false; } }, @@ -1605,16 +1596,35 @@ export default { * 单独打印 */ async printData(rowData) { - this.html = ''; - const res = await this.batchPrint([rowData.row.id]); - const { code, data } = res.data; - if (code === 200) { - this.dialogVisible = true; - console.log('data :>> ', data); - data.forEach(item => { - return (this.html += item.templateHtml); - }); - this.html; + // this.html = ''; + // const res = await this.batchPrint([rowData.row.id]); + // const { code, data } = res.data; + // if (code === 200) { + // this.dialogVisible = true; + // console.log('data :>> ', data); + // data.forEach(item => { + // return (this.html += item.templateHtml); + // }); + // } + + try { + this.loadingObj.pageLoading = true; + + this.html = ''; + const res = await this.batchPrint([rowData.row.id]); + + const { code, data } = res.data; + if (code === 200) { + this.dialogVisible = true; + console.log('data :>> ', data); + data.forEach(item => { + return (this.html += item.templateHtml); + }); + } + } catch (error) { + console.log('error :>> ', error); + } finally { + this.loadingObj.pageLoading = false; } }, @@ -1622,7 +1632,8 @@ export default { * 调用打印机 */ printTemplate() { - const orderNodeList = document.querySelectorAll('.el-dialog__body>div>div>div'); + // const orderNodeList = document.querySelectorAll('.el-dialog__body>div>div>div'); + const orderNodeList = document.querySelectorAll('.printQr>div>div'); print(orderNodeList); },