| | |
| | | import { saveAs } from "file-saver" |
| | | import companyInfo from "@/stores/sd/companyInfo"; |
| | | import PrintSheet3 from "@/components/sd/delivery/PrintSheet3.vue"; |
| | | import PrintSheet4 from "@/components/sd/delivery/PrintSheet4.vue"; |
| | | |
| | | //语言获取 |
| | | const { t } = useI18n() |
| | |
| | | break |
| | | |
| | | } |
| | | case 'sheet8': { |
| | | const selectRecords = $grid.getCheckboxRecords() |
| | | if (selectRecords.length === 0) { |
| | | if(rowClickIndex.value.deliveryState>0){ |
| | | ElMessage.warning(t('order.printingNumber')+rowClickIndex.value.printingNumber) |
| | | let delivery=([]) |
| | | delivery.push(rowClickIndex.value) |
| | | flowData.value.delivery=delivery |
| | | dialogTableVisible.value = true |
| | | sheetIndex.value=8 |
| | | }else{ |
| | | ElMessage.warning(t('order.orderNotApproved')) |
| | | } |
| | | }else{ |
| | | let a=0 |
| | | selectRecords.forEach((item) => { |
| | | if(item.deliveryState==0){ |
| | | ElMessage.warning(t('order.orderNotApproved')) |
| | | a=1 |
| | | } |
| | | }) |
| | | if(a==0){ |
| | | flowData.value.delivery=selectRecords |
| | | dialogTableVisible.value = true |
| | | sheetIndex.value=8 |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | break |
| | | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | { code: 'sheet5', name: t('delivery.print2'), prefixIcon: 'vxe-icon-file-txt', visible: false}, |
| | | { code: 'sheet6', name: t('delivery.print2')+ t('delivery.noMoney'), prefixIcon: 'vxe-icon-file-txt', visible: false}, |
| | | { code: 'sheet7', name: t('打印一行俩列'), prefixIcon: 'vxe-icon-file-txt', visible: true}, |
| | | { code: 'sheet8', name: t('打印一行俩列')+ t('delivery.noMoney'), prefixIcon: 'vxe-icon-file-txt', visible: true}, |
| | | ] |
| | | ] |
| | | } |
| | |
| | | <print-sheet-luoyang-details id="child" v-if="sheetIndex===5" :deliveryId="flowData.delivery" :type="3" :optionVal='optionVal'/> |
| | | <print-sheet-luoyang-details id="child" v-if="sheetIndex===6" :deliveryId="flowData.delivery" :type="4" :optionVal='optionVal'/> |
| | | <print-sheet3 id="child" v-if="sheetIndex===7" :deliveryId="flowData.delivery" /> |
| | | <print-sheet4 id="child" v-if="sheetIndex===8" :deliveryId="flowData.delivery" /> |
| | | |
| | | </el-dialog> |
| | | </div> |