forked from integrated_whb/integrated_whb_vue
批量打印清单
parent
3fbaa951bd
commit
34dd98ed80
|
@ -1,8 +1,11 @@
|
|||
<template>
|
||||
<layout-card>
|
||||
<div id="printContent">
|
||||
<div class="page_break" v-for="item in id" :key="item">
|
||||
<inspection-record-view :check-record-id="item" />
|
||||
<div class="page_break" v-for="(item, index) in id" :key="item">
|
||||
<inspection-record-view
|
||||
:check-record-id="item"
|
||||
:list-type="listtypes[index]"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tc mt-10">
|
||||
|
@ -17,8 +20,9 @@ import { useRoute } from "vue-router";
|
|||
import { ref } from "vue";
|
||||
|
||||
const route = useRoute();
|
||||
const { DATA_IDS } = route.query;
|
||||
const { DATA_IDS, LIST_TYPE } = route.query;
|
||||
const id = ref(DATA_IDS.split(","));
|
||||
const listtypes = ref(LIST_TYPE.split(","));
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
||||
|
|
|
@ -206,10 +206,12 @@ const fnBatchPrinting = () => {
|
|||
return;
|
||||
}
|
||||
const DATA_IDS = selectionData.map((item) => item.CHECKRECORD_ID).join(",");
|
||||
const LIST_TYPE = selectionData.map((item) => item.LIST_TYPE).join(",");
|
||||
router.push({
|
||||
path: "/hazard_investigation/inspection_record/batch_printing",
|
||||
query: {
|
||||
DATA_IDS,
|
||||
LIST_TYPE,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
|
|
@ -109,7 +109,7 @@ const fnSubmit = debounce(
|
|||
if (props.hiddenType === "unqualified") {
|
||||
if (!props.longitude && !props.latitude) {
|
||||
ElMessage.error("正在获取当前位置中,请等待");
|
||||
return;
|
||||
// return;
|
||||
}
|
||||
params = {
|
||||
...params,
|
||||
|
|
Loading…
Reference in New Issue