| | |
| | | </template> |
| | | </el-dialog> |
| | | <!-- 单详情 --> |
| | | <el-drawer v-model="drawerVisible" :title="`${detailForm.poId}物料详情`" direction="rtl" size="80%" @close="handleDrawerClose"> |
| | | <el-drawer v-model="drawerVisible" :title="`${detailForm.poId}详情`" direction="rtl" size="80%" @close="handleDrawerClose"> |
| | | <template #title> |
| | | <div class="slot_title"> |
| | | <div class="title_orderNo">{{ title }}</div> |
| | | <div>物料详情</div> |
| | | <div>详情</div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | <el-form-item label-width="20px"> |
| | | <el-button type="primary" icon="el-icon-search" @click="getDetail">查询</el-button> |
| | | |
| | | <el-button type="primary" icon="ele-Printer" @click="getPrint">打印</el-button> |
| | | <!-- <el-button type="primary" icon="ele-Printer" @click="getPrint">打印</el-button> --> |
| | | |
| | | <el-button type="primary" style="margin-left: 5px" icon="ele-Printer" @click="handleHtmlPrint"> 打印 </el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | </template> |
| | | </el-dialog> |
| | | |
| | | <!-- 打印 --> |
| | | <print-table-ckd ref="printTableRef"></print-table-ckd> |
| | | |
| | | <printDialogTestStudent ref="printDialogRefTestStudent" :title="printTestStudentTitle" @reloadTable="handleQueryTestStudent" /> |
| | | </div> |
| | | </template> |
| | |
| | | import { formatDate, formatDate_T_Date, formatDate_T_Time, defaultTimeRange } from '/@/utils/formatTime'; |
| | | import commonFunction from '/@/utils/commonFunction'; |
| | | import { handleSlectDataWmsBusinessType } from '/@/utils/selectData'; |
| | | import printTableCkd from '/@/components/printTableCkd.vue'; |
| | | // 推荐设置操作 width 为 200 |
| | | import { hiprint } from 'vue-plugin-hiprint'; |
| | | import { SysPrintApi } from '/@/api-services/api'; |
| | |
| | | // const enumList: any = cache.getCache('enumList'); |
| | | // console.log(enumList.inEnumOrderType); |
| | | |
| | | |
| | | //获取PO单列表 |
| | | const getTabelData = () => { |
| | | //判断创建时间是否有选择 |
| | |
| | | // const |
| | | //单号 |
| | | const purchaseNo = ref(''); |
| | | |
| | | const IsKitting = ref(false); |
| | | //打开抽屉 |
| | | const openDrawer = async (type: number, scope: any = {}, entozhExcell?: any) => { |
| | | detailForm.value.Page = 1; //bug:点编辑-再点详情 |
| | | detailForm.value.PageSize = 10; //bug:点编辑-再点详情 |
| | | if (scope.packageCode) { |
| | | title.value = `${scope.packageCode}`; |
| | | if (scope.orderId) { |
| | | title.value = `${scope.orderId}`; |
| | | } |
| | | drawerType.value = 'drawerAll'; |
| | | drawerVisible.value = true; |
| | | //当前入库单号id |
| | | detailForm.value.orderId = scope.orderId; |
| | | //入库单 |
| | | purchaseNo.value = scope.packageCode; |
| | | purchaseNo.value = scope.orderId; |
| | | debugger; |
| | | detailForm.value.packageCode = scope.packageCode; |
| | | detailForm.value.orderId = scope.orderId; |
| | | //获取物料列表 |
| | | if (detailForm.value.poId == '') { |
| | | drawerList.value = []; |
| | |
| | | }; |
| | | printDialogRefTestStudent.value.showDialog(new hiprint.PrintTemplate({ template: template }), row, template.panels[0].width); |
| | | }; |
| | | // 打印 |
| | | let itemSubTitle = ref<any[]>([]); |
| | | const handleHtmlPrint = () => { |
| | | var title = IsKitting.value == true ? '齐套清单' : '缺套清单'; |
| | | proxy.$refs['printTableRef'].printHd(title, itemSubTitle.value, drawerList.value); //deltailList |
| | | }; |
| | | |
| | | // 暴露方法 |
| | | defineExpose({ openDialog, openDrawer }); |