Browse Source

修改干线部分功能

dev-xx
qb 1 year ago
parent
commit
12c22970fd
  1. 11
      src/api/distribution/truckLoadingDetails.js
  2. 2
      src/api/waybill/orderPackageListDetails.js
  3. 12
      src/components/tablecmt/tablecmt.vue
  4. 16
      src/styles/common.scss
  5. 2
      src/views/distribution/artery/TripartiteTransfer.vue
  6. 10
      src/views/distribution/artery/VehicleStowage.vue
  7. 153
      src/views/distribution/artery/VehicleStowageDetails.vue
  8. 247
      src/views/distribution/artery/truckLoadingDetails.vue
  9. 4
      src/views/distribution/inventory/BookingNote.vue
  10. 2
      src/views/distribution/inventory/CreateOrder.vue
  11. 25
      src/views/waybill/TemporaryStorageList.vue
  12. 51
      src/views/waybill/orderPackageListDetails.vue

11
src/api/distribution/truckLoadingDetails.js

@ -54,3 +54,14 @@ export const postBatchTransferUnload = (data = {}) => {
data,
});
};
/**
* 批量删除
*/
export const postRemoveCarsLoadScan = (data = {}) => {
return request({
url: '/api/logpm-trunkline/api/carsLoad/removeCarsLoadScan',
method: 'post',
data,
});
};

2
src/api/waybill/orderPackageListDetails.js

@ -34,7 +34,7 @@ export const getopenOrderIncomingPackage = data => {
};
/**
* 直接入库
* 获取二维码
*/
export const getShowAdvancePackgeCode = params => {
return request({

12
src/components/tablecmt/tablecmt.vue

@ -389,6 +389,7 @@ onMounted(() => {
});
} */
let _checkSelect = props.checkselect;
console.log('_checkSelect :>> ', _checkSelect);
if (!_checkSelect) {
_checkSelect = [];
}
@ -396,8 +397,9 @@ onMounted(() => {
});
/** 勾选 */
function handleCheckSelect(select: []) {
console.log('select :>> ', select);
if (select.length !== 0) {
select.map(item => {
for (const item of select) {
if (props.isselectfun) {
if (props.isselectfun(item)) {
selecttable.value.toggleRowSelection(item, true);
@ -407,11 +409,15 @@ function handleCheckSelect(select: []) {
} else {
selecttable.value.toggleRowSelection(item, true);
}
});
}
} else {
selecttable.value.clearSelection();
}
}
/** 清空勾选 */
const handleClearSelect = () => {
selecttable.value.clearSelection();
};
function godowns(url) {
let a = document.createElement('a'); //a
a.href = url; //myurl
@ -639,7 +645,7 @@ function copyContent(content: string) {
}
}
defineExpose({ handleCheckSelect });
defineExpose({ handleCheckSelect, handleClearSelect });
</script>
<style lang="scss">
// :root{

16
src/styles/common.scss

@ -165,6 +165,22 @@ a {
height: 100%;
}
.ml10 {
margin-left: 10px;
}
.mr10 {
margin-right: 10px;
}
.mt10 {
margin-top: 10px;
}
.mb10 {
margin-bottom: 10px;
}
// 头部搜索
.search_container {
display: grid;

2
src/views/distribution/artery/TripartiteTransfer.vue

@ -455,7 +455,7 @@ const details = reactive<any>({
/** 选择目的地弹窗 */
chooseDestinationVisited: false,
/** 结算弹窗 */
closeAnAccountVisited: true,
closeAnAccountVisited: false,
},
/** 列表Dom节点 */
listNode: '',

10
src/views/distribution/artery/VehicleStowage.vue

@ -94,6 +94,7 @@
<!-- 表格 -->
<!-- 列表模块 -->
<tablecmt
:checkselect="details.selectionList"
:columnList="details.columnList"
:tableData="data"
:loading="loadingObj.list"
@ -682,6 +683,15 @@ const onLoad = async (params = {}) => {
val => Number(item.loadStatus) === val.code
).label;
item.NumberOfPiecesInTheCar = item.realLoadingNumber - item.unloadNumber;
for (let index = 0; index < details.selectionList.length; index++) {
const element = details.selectionList[index];
if (element.id === item.id) {
details.selectionList.splice(index, 1, element);
break;
}
}
}
details.page.total = data.total;

153
src/views/distribution/artery/VehicleStowageDetails.vue

@ -24,7 +24,6 @@
:teleported="false"
v-model="form.chargeType"
class="m-2"
placeholder="分摊方式"
size="default"
>
<el-option
@ -41,8 +40,8 @@
:teleported="false"
v-model="form.payMethod"
class="m-2"
placeholder="直发商家"
size="default"
placeholder="暂无数据"
>
<el-option
v-for="item in details.pageInfo.payMethod || []"
@ -58,7 +57,6 @@
:teleported="false"
v-model="form.loadingType"
class="m-2"
placeholder="装车方式"
size="default"
>
<el-option
@ -190,14 +188,56 @@
<el-tab-pane label="日 志 跟 踪" name="tab2">
<div style="min-height: 300px">
<el-steps direction="vertical" space="80px">
<el-step title="32131">
<template #description> {{ new Date() }} </template>
<template #icon>
<el-icon color="#172e60" size="20px"><HelpFilled /></el-icon>
<el-step title="装车" v-for="item in details.logList" :key="item">
<template #description>
<div>
<el-row>
<div class="flex-c-c mr10">
<el-icon color="#172e60" class="mr10" size="20px"><Grid /></el-icon>
<span>操作时间</span>
<span>{{ item.updateTime }}</span>
</div>
<div class="flex-c-c mr10">
<el-icon color="#172e60" class="mr10" size="20px"><Location /></el-icon>
<span>操作网点</span>
<span>{{ item.updateWarehouse }}</span>
</div>
<div class="flex-c-c mr10">
<el-icon color="#172e60" class="mr10" size="20px"><User /></el-icon>
<span>操作人</span>
<span>{{ item.user }}</span>
</div>
</el-row>
<el-row>
<div class="flex-c-c mr10">
<el-icon color="#172e60" class="mr10" size="20px"><Car /></el-icon>
<span>车次号</span>
<span>{{ form.carsNo }}</span>
</div>
<div class="flex-c-c mr10">
<span>车牌号</span>
<span>{{ form.updateWarehouse || '暂无数据' }}</span
>
</div>
<div class="flex-c-c mr10">
<span>司机</span>
<span>{{ form.driverName }}</span
>
</div>
<div class="flex-c-c mr10">
<span>计划装车数</span>
<span>{{ form.planLoadingNumber || 0 }}</span
>
</div>
<div class="flex-c-c mr10">
<span>实际装车数</span>
<span>{{ form.realLoadingNumber || 0 }}</span
>
</div>
</el-row>
</div>
</template>
</el-step>
<el-step title="32131">
<template #description> {{ new Date() }} </template>
<template #icon>
<el-icon color="#172e60" size="20px"><HelpFilled /></el-icon>
</template>
@ -207,98 +247,23 @@
</el-tab-pane>
<el-tab-pane label="车 辆 轨 迹" name="tab3">
<div style="min-height: 300px">
<el-steps direction="vertical" space="80px">
<el-step title="32131">
<template #description> {{ new Date() }} </template>
<template #icon>
<el-icon color="#172e60" size="20px"><HelpFilled /></el-icon>
</template>
</el-step>
<el-step title="32131">
<template #description> {{ new Date() }} </template>
<template #icon>
<el-icon color="#172e60" size="20px"><HelpFilled /></el-icon>
</template>
</el-step>
</el-steps>
</div>
<div style="min-height: 300px" class="flex-c-c"> ~</div>
</el-tab-pane>
<el-tab-pane label="财 务 记 录" name="tab4">
<div style="min-height: 300px">
<el-steps direction="vertical" space="80px">
<el-step title="32131">
<template #description> {{ new Date() }} </template>
<template #icon>
<el-icon color="#172e60" size="20px"><HelpFilled /></el-icon>
</template>
</el-step>
<el-step title="32131">
<template #description> {{ new Date() }} </template>
<template #icon>
<el-icon color="#172e60" size="20px"><HelpFilled /></el-icon>
</template>
</el-step>
</el-steps>
</div>
<div style="min-height: 300px" class="flex-c-c"> ~</div>
</el-tab-pane>
<el-tab-pane label="运 输 合 同" name="tab5">
<div style="min-height: 300px">
<el-steps direction="vertical" space="80px">
<el-step title="32131">
<template #description> {{ new Date() }} </template>
<template #icon>
<el-icon color="#172e60" size="20px"><HelpFilled /></el-icon>
</template>
</el-step>
<el-step title="32131">
<template #description> {{ new Date() }} </template>
<template #icon>
<el-icon color="#172e60" size="20px"><HelpFilled /></el-icon>
</template>
</el-step>
</el-steps>
</div>
<div style="min-height: 300px" class="flex-c-c"> ~</div>
</el-tab-pane>
<el-tab-pane label="回 单 跟 踪" name="tab6">
<div style="min-height: 300px">
<el-steps direction="vertical" space="80px">
<el-step title="32131">
<template #description> {{ new Date() }} </template>
<template #icon>
<el-icon color="#172e60" size="20px"><HelpFilled /></el-icon>
</template>
</el-step>
<el-step title="32131">
<template #description> {{ new Date() }} </template>
<template #icon>
<el-icon color="#172e60" size="20px"><HelpFilled /></el-icon>
</template>
</el-step>
</el-steps>
</div>
<div style="min-height: 300px" class="flex-c-c"> ~</div>
</el-tab-pane>
<el-tab-pane label="异 常 记 录" name="tab7">
<div style="min-height: 300px">
<el-steps direction="vertical" space="80px">
<el-step title="32131">
<template #description> {{ new Date() }} </template>
<template #icon>
<el-icon color="#172e60" size="20px"><HelpFilled /></el-icon>
</template>
</el-step>
<el-step title="32131">
<template #description> {{ new Date() }} </template>
<template #icon>
<el-icon color="#172e60" size="20px"><HelpFilled /></el-icon>
</template>
</el-step>
</el-steps>
</div>
<div style="min-height: 300px" class="flex-c-c"> ~</div>
</el-tab-pane>
</el-tabs>
</div>
@ -463,6 +428,14 @@ const details = reactive<any>({
customerType: [],
/** 送货司机 */
driverListByName: [],
/** 日志 */
logList: [
{
updateTime: dayjs(new Date()).format('YYYY-MM-DD HH:mm:DD'),
updateWarehouse: '龙泉仓',
user: 'admin',
},
],
});
const {

247
src/views/distribution/artery/truckLoadingDetails.vue

@ -40,47 +40,44 @@
</el-row>
<!-- 控件模块 -->
<el-row>
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<!-- 车辆配载 -->
<template v-if="details.pageInfo.type === 'VehicleStowage'">
<el-button type="primary" icon="Edit" @click="handleShowTransfer('add')"
>计划仓更改
</el-button>
<el-button type="primary" icon="List" @click="handleBatchUnLoad">批量卸车</el-button>
</template>
<!-- 三方中转 -->
<template v-if="details.pageInfo.type === 'TripartiteTransfer'">
<el-button type="primary" icon="Edit" @click="handleShowTransfer('add')">
中转批量签收
</el-button>
<el-button type="primary" icon="List" @click="handleBatchUnLoad">批量卸车</el-button>
</template>
<!-- 到车管理 -->
<template v-if="details.pageInfo.type === 'VehicleArrivalManagement'">
<el-button type="primary" icon="List" @click="handleBatchUnLoad">批量卸车</el-button>
</template>
<el-button type="primary" icon="Delete" @click="searchReset()">删除</el-button>
<el-button type="primary" icon="Printer" @click="searchReset()">二维码</el-button>
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="el-icon-search" @click="searchHide" circle></el-button>
</div>
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<!-- 车辆配载 -->
<template v-if="details.pageInfo.type === 'VehicleStowage'">
<el-button type="primary" icon="Edit" @click="handleShowTransfer('add')"
>计划仓更改
</el-button>
<el-button type="primary" icon="List" @click="handleBatchUnLoad">批量卸车</el-button>
</template>
<!-- 三方中转 -->
<template v-if="details.pageInfo.type === 'TripartiteTransfer'">
<el-button type="primary" icon="Edit" @click="handleShowTransfer('add')">
中转批量签收
</el-button>
<el-button type="primary" icon="List" @click="handleBatchUnLoad">批量卸车</el-button>
</template>
<!-- 到车管理 -->
<template v-if="details.pageInfo.type === 'VehicleArrivalManagement'">
<el-button type="primary" icon="List" @click="handleBatchUnLoad">批量卸车</el-button>
</template>
<el-button type="primary" icon="Delete" @click="handleBatchRemove">删除</el-button>
<el-button type="primary" icon="Printer" @click="handleBatchBarcode">二维码</el-button>
</div>
</el-row>
<!-- 表格 -->
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="el-icon-search" @click="searchHide" circle></el-button>
</div>
</div>
<!-- 列表模块 -->
<tablecmt
ref="tableNodeRef"
:columnList="details.detailsColumnList"
:tableData="data"
:loading="loadingObj.list"
@ -97,24 +94,29 @@
"
>
<template #default="slotProps">
<el-text
type="text"
@click="handleZeroUnLoad(slotProps.scope)"
v-if="
Number(slotProps.scope.row.scanStatus) === 1 && Number(slotProps.scope.row.type) === 2
"
>
零担卸车
</el-text>
<el-text
type="text"
@click="handleOrderUnLoad(slotProps.scope)"
v-if="
Number(slotProps.scope.row.scanStatus) === 1 && Number(slotProps.scope.row.type) === 1
"
>
包件卸车
</el-text>
<!-- 零担 -->
<template v-if="Number(slotProps.scope.row.type) === 2">
<el-text
type="text"
@click="handleZeroUnLoad(slotProps.scope)"
v-if="Number(slotProps.scope.row.scanStatus) === 1"
>
零担卸车
</el-text>
</template>
<!-- 包件 -->
<template v-else-if="Number(slotProps.scope.row.type) === 1">
<el-text
type="text"
@click="handleOrderUnLoad(slotProps.scope)"
v-if="Number(slotProps.scope.row.scanStatus) === 1"
>
包件卸车
</el-text>
<el-text @click="printOrder(slotProps.scope)"> 二维码 </el-text>
</template>
</template>
</tablecmt>
@ -166,6 +168,24 @@
</div>
</el-dialog>
<!-- 打印二维码 -->
<el-dialog
class="el-dialog-QRCode"
title="二维码"
:visible.sync="details.popUpShow.QRCodeVisible"
width="780px"
v-model="details.popUpShow.QRCodeVisible"
>
<div class="el-dialog-QRCode-container">
<div v-html="details.html"></div>
</div>
<span slot="footer" class="dialog-footer">
<!-- <el-button type="primary" @click="ddd"> </el-button>-->
<el-button type="primary" @click="printTemplate"> </el-button>
<el-button @click="details.popUpShow.QRCodeVisible = false"> </el-button>
</span>
</el-dialog>
<!-- 列表配置显示 -->
<edittablehead
@setcolum="setnewcolum"
@ -189,12 +209,15 @@ import {
postTransferUnloadPackage,
postTransferUnloadZero,
postBatchTransferUnload,
postRemoveCarsLoadScan,
} from '@/api/distribution/truckLoadingDetails';
import { getShowAdvancePackgeCode } from '@/api/waybill/orderPackageListDetails';
/** 获取字典 */
import { getDictionaryBiz } from '@/api/system/dict';
import { downloadXls } from '@/utils/util';
import { downloadXls, getHtmls } from '@/utils/util';
import { detailsColumnList } from '@/option/distribution/TripartiteTransfer';
import { useRouter, useRoute } from 'vue-router';
import print from '@/utils/print';
const details = reactive<any>({
/** 是否开启搜索 */
@ -243,6 +266,8 @@ const details = reactive<any>({
list: false,
/** 页面loading */
pageLoading: false,
/** 查看二维码 */
QRCodeVisible: false,
},
/** 列表复选框选中的数据 */
selectionList: [],
@ -310,6 +335,8 @@ const details = reactive<any>({
],
/** 个人仓库信息 */
myWarehouseData: {},
/** 打印的二维码 */
html: '',
});
const {
@ -333,6 +360,9 @@ const $route = useRoute();
const permission = computed(() => mapGetters(['permission', 'tagWel', 'tagList']));
console.log('permission :>> ', permission);
//
const tableNodeRef = ref();
/** 初始化表格表头 */
const initTableSelect = () => {
for (const iterator of details.detailsColumnList) {
@ -923,6 +953,101 @@ const handleZeroUnLoadSubmit = async () => {
}
};
/** 单列查看包条码 */
const printOrder = async ({ row }) => {
try {
details.loadingObj.pageLoading = true;
let qr = {
orderPackageCodes: row.scanCode,
};
const res = await getShowAdvancePackgeCode(qr);
if (res.data.code !== 200) return;
details.popUpShow.QRCodeVisible = true;
console.log(res.data);
details.html = '';
details.html = getHtmls(res.data.data.dataList, res.data.data.templateHtml);
} catch (error) {
console.log('error :>> ', error);
} finally {
details.loadingObj.pageLoading = false;
}
};
/** 批量查看二维码 */
const handleBatchBarcode = async () => {
if (details.selectionList.length === 0)
return ElMessage.warning({ message: '请选择需要查看的数据' });
const _arr = [];
for (const iterator of details.selectionList) {
if (Number(iterator.type) === 1) _arr.push(iterator);
}
tableNodeRef.value.handleClearSelect();
tableNodeRef.value.handleCheckSelect(_arr);
if (_arr.length === 0) return ElMessage.warning('零担无法查看二维码');
try {
details.loadingObj.pageLoading = true;
let qr = {
orderPackageCodes: _arr.map(val => val.scanCode).join(','),
};
const res = await getShowAdvancePackgeCode(qr);
if (res.data.code !== 200) return;
details.popUpShow.QRCodeVisible = true;
console.log(res.data);
details.html = '';
details.html = getHtmls(res.data.data.dataList, res.data.data.templateHtml);
} catch (error) {
console.log('error :>> ', error);
} finally {
details.loadingObj.pageLoading = false;
}
};
/** 打印包条码 */
const printTemplate = () => {
const orderNodeList = document.querySelectorAll('.el-dialog-QRCode .el-dialog__body>div>div>div');
print(orderNodeList);
};
/** 批量移除 */
const handleBatchRemove = async () => {
if (details.selectionList.length === 0) return ElMessage.warning('请选择需要删除的数据');
ElMessageBox.confirm('是否批量删除数据', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
center: true,
})
//
.then(async () => {
try {
details.loadingObj.pageLoading = true;
const submitData = { carsLoadScanIds: details.selectionList.map(val => val.id).join(',') };
const response = await postRemoveCarsLoadScan(submitData);
const { code, msg } = response.data;
if (code !== 200) return;
ElMessage.success({ message: msg });
onLoad();
} catch (error) {
console.log('error :>> ', error);
} finally {
details.loadingObj.pageLoading = false;
}
});
};
watch(
$route,
(newVal, oldVal) => {
@ -1020,11 +1145,12 @@ watch(
:deep(.el-table tr) {
&.Abnormal {
background: #dc2e2e;
background: #e54b4b;
.tabculconte,
.el-tooltip,
.el-button--text {
.el-button--text,
.el-text {
color: #fff !important;
}
}
@ -1037,4 +1163,9 @@ watch(
}
}
}
.el-dialog-QRCode-container {
max-height: 80vh;
overflow-y: scroll;
}
</style>

4
src/views/distribution/inventory/BookingNote.vue

@ -130,11 +130,11 @@
<div class="flex-c table-row-title">收货方</div>
<div>
<el-row>
<el-form-item label="货单位:" prop="consignee">
<el-form-item label="货单位:" prop="consignee">
<el-input
readonly
v-model="query.consignee"
placeholder="货单位"
placeholder="货单位"
></el-input>
</el-form-item>

2
src/views/distribution/inventory/CreateOrder.vue

@ -1569,6 +1569,8 @@ const onLoad = async (idsArr = []) => {
details.query.shipperAddress = data.shipperAddress || '';
details.query.consigneeAddress = data.consigneeAddress || '';
details.query.shipperId = data.shipperClientId || '';
details.query.consigneeId = data.consigneeClientId || '';
details.query.destination = data.destinationArray;
details.query.queryDestinationWarehouseName = data.destinationWarehouseName || '';

25
src/views/waybill/TemporaryStorageList.vue

@ -110,6 +110,7 @@
<!-- 表格 -->
<!-- 列表模块 -->
<tablecmt
ref="tableNodeRef"
:columnList="details.columnList"
:tableData="
details.orderStatus === 'haveData' ? details.haveDataData : details.notHaveDataData
@ -511,6 +512,9 @@ const $store = useStore();
//
const ruleFormRef = ref<FormInstance>();
/** 表格实例 */
const tableNodeRef = ref();
const details = reactive<any>({
/** 是否开启搜索 */
search: true,
@ -883,8 +887,11 @@ const onLoad = async (params = {} as any) => {
details.query.freezeStatus = '0';
params.hasPackage = status === 'haveData' ? 1 : 0;
console.log('details.selectionList :>> ', details.selectionList.length);
//
const res = await getopenOrderAdvancePageList(details.page, { ...details.query, ...params });
console.log('details.selectionList :>> ', details.selectionList.length);
console.log('res :>> ', res);
const { code, data } = res.data;
if (code !== 200) return;
@ -892,8 +899,25 @@ const onLoad = async (params = {} as any) => {
else details.notHaveDataData = data.records;
details.page.total = data.total;
const _arr = [...details.selectionList];
for (const item of data.records) {
for (let index = 0; index < _arr.length; index++) {
const element = _arr[index];
if (element.id === item.id) {
_arr.splice(index, 1, item);
break;
}
}
}
await nextTick();
tableNodeRef.value.handleCheckSelect(_arr);
return res.data;
} catch (error) {
console.log('error :>> ', error);
} finally {
// loading
if (status === 'haveData') details.loadingObj.haveDataList = false;
@ -967,6 +991,7 @@ const selectsc = (index, row) => {
/** 表格表头复选框选择 */
const selectionChange = (list: any) => {
details.selectionList = list;
console.log('list :>> ', list);
};
/** 每页数量改变执行的回调 */

51
src/views/waybill/orderPackageListDetails.vue

@ -107,7 +107,9 @@
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<el-button type="primary" icon="Printer" @click="editClientInfo">批量打印</el-button>
<el-button type="primary" icon="Printer" @click="handleBatchBarcode">
批量打印
</el-button>
<el-button type="primary" icon="Position" @click="handleBatchPutInStorage">
批量入库
</el-button>
@ -305,7 +307,7 @@
width="780px"
v-model="details.popUpShow.QRCodeVisible"
>
<div>
<div class="el-dialog-QRCode-container">
<div v-html="details.html"></div>
</div>
<span slot="footer" class="dialog-footer">
@ -337,7 +339,6 @@ import {
getShowAdvancePackgeCode,
postDeleteAdvanceDetail,
} from '@/api/waybill/orderPackageListDetails';
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle';
import { downloadXls, setNodeHeight, getHtmls } from '@/utils/util';
import {
packageListColumnList,
@ -681,20 +682,6 @@ const printOrder = ({ row }) => {
});
};
/** 批量查看包条码 */
const batchPrintOrder = ({ row }) => {
let qr = {
ids: row.id,
};
showOrderPackgeCode(qr).then(res => {
// this.orderPackageCode = res.data
if (res.data.code !== 200) return;
console.log(res.data);
details.html = '';
details.html = getHtmls(res.data.data.dataList, res.data.data.templateHtml);
});
};
/** 打印包条码 */
const printTemplate = () => {
const orderNodeList = document.querySelectorAll('.el-dialog-QRCode .el-dialog__body>div>div>div');
@ -820,6 +807,31 @@ const handleBatchDelete = () => {
}
});
};
/** 批量查看二维码 */
const handleBatchBarcode = async () => {
if (details.selectionList.length === 0)
return ElMessage.warning({ message: '请选择需要查看的数据' });
try {
details.loadingObj.pageLaoding = true;
let qr = {
orderPackageCodes: details.selectionList.map(val => val.orderPackageCode).join(','),
};
const res = await getShowAdvancePackgeCode(qr);
if (res.data.code !== 200) return;
details.popUpShow.QRCodeVisible = true;
console.log(res.data);
details.html = '';
details.html = getHtmls(res.data.data.dataList, res.data.data.templateHtml);
} catch (error) {
console.log('error :>> ', error);
} finally {
details.loadingObj.pageLaoding = false;
}
};
</script>
<style scoped lang="scss">
@ -891,4 +903,9 @@ const handleBatchDelete = () => {
}
}
}
.el-dialog-QRCode-container {
max-height: 80vh;
overflow-y: scroll;
}
</style>

Loading…
Cancel
Save