| | |
| | | import companyInfo from "@/stores/sd/companyInfo" |
| | | import {remove} from "xe-utils"; |
| | | import PrintProcess from "@/components/pp/PrintProcess.vue"; |
| | | import PrintProcessStraight from "@/components/pp/PrintProcessStraight.vue"; |
| | | //语言获取 |
| | | const {t} = useI18n() |
| | | |
| | | let router = useRouter() |
| | | const dialogTableVisible = ref(false) |
| | | const dialogTableVisibleLabelXJTwo = ref(false) |
| | | const dialogTableVisibleStraight = ref(false) |
| | | let rowClickIndex = ref(null) |
| | | |
| | | |
| | |
| | | list: null, |
| | | printMergeVal: null, |
| | | like: null, |
| | | project:null |
| | | project:null, |
| | | merge: null |
| | | }) |
| | | const getTableRow = (row, type) => { |
| | | switch (type) { |
| | |
| | | break |
| | | } |
| | | case 'edit1' :{ |
| | | router.push({path: '/main/processCard/PrintLabel', query: { projectNo: row.project_no,type:2 }}) |
| | | if(parseInt(print.value)==1){ |
| | | router.push({path: '/main/processCard/PrintLabel', query: { projectNo: row.project_no,type:2 }}) |
| | | }else{ |
| | | router.push({path: '/main/processCard/PrintCustomLabelSemi2', query: { projectNo: row.project_no,type:2 }}) |
| | | } |
| | | break |
| | | } |
| | | case 'edit2' :{ |
| | |
| | | } |
| | | case 'edit3' :{ |
| | | printRow.value.project=row.project_no |
| | | dialogTableVisible.value = true |
| | | printRow.value.merge = company.flowCardMerge |
| | | if(company.companyName=='常州市吉利玻璃有限公司'){ |
| | | dialogTableVisibleStraight.value = true |
| | | }else{ |
| | | dialogTableVisible.value = true |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | }, |
| | | { |
| | | field: 'labelPrintNum', |
| | | title: t('标签打印次数') |
| | | }, |
| | | { |
| | | field: 'processPrintNum', |
| | | title: t('流程卡打印次数') |
| | | }, |
| | | ],//表头按钮 |
| | | |
| | | toolbarConfig: { |
| | |
| | | id: 'child', |
| | | |
| | | }) |
| | | const printCount = ()=>{ |
| | | request.post(`/processCard/updateProjectProcessPrintCount/${printRow.value.project}`).then((res) => { |
| | | if(res.code==='200'){ |
| | | ElMessage.info(t('order.printingNumber')+':'+res.data) |
| | | getWorkOrder() |
| | | } |
| | | }) |
| | | } |
| | | |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | destroy-on-close |
| | | style="width: 80%;height:75%;overflow: auto "> |
| | | <template #header="{ close, titleId, titleClass }"> |
| | | <el-button v-print="printContentLabel" :icon="Printer" circle/> |
| | | <el-button |
| | | v-print="printContentLabel" |
| | | :icon="Printer" circle/> |
| | | </template> |
| | | <print-custom-label-x-j-two id="childLabel" |
| | | :faceOrientation="labelRow.faceOrientation" |
| | |
| | | destroy-on-close |
| | | style="width: 75%;height:75% "> |
| | | <template #header="{ close, titleId, titleClass }"> |
| | | <el-button v-print="printContent" :icon="Printer" circle /> |
| | | <el-button |
| | | v-print="printContent" |
| | | @click="printCount" |
| | | :icon="Printer" circle /> |
| | | </template> |
| | | <print-process |
| | | id="child" |
| | |
| | | :printList="printRow.list" |
| | | :printMerge="printRow.printMergeVal" |
| | | :printProject="printRow.project" |
| | | :merges="printRow.merge" |
| | | style="width: 100%;height: 100%"/> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | id="sizePrintCalrd" |
| | | v-model="dialogTableVisibleStraight" |
| | | :title="$t('processCard.print')" |
| | | destroy-on-close |
| | | style="width: 75%;height:75% "> |
| | | <template #header="{ close, titleId, titleClass }"> |
| | | <el-button v-print="printContent" :icon="Printer" circle @click="printNumber"/> |
| | | </template> |
| | | <print-process-straight |
| | | id="child" |
| | | :printLike="printRow.like" |
| | | :printList="printRow.list" |
| | | :printMerge="printRow.printMergeVal" |
| | | :printProject="printRow.project" |
| | | :merges="printRow.merge" |
| | | style="width: 100%;height: 100%"/> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | |
| | | </style> |