| | |
| | | </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 :model="detailForm"> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="物料编号"> |
| | | <el-input v-model="detailForm.materialCode" clearable placeholder="请输入物料编号" /> |
| | | <el-form-item label="包装号"> |
| | | <el-input v-model="detailForm.packageCode" clearable placeholder="请输入包装号" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <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> --> |
| | | <!-- :disabled="checkRows.length == 0" --> |
| | | <el-button type="primary" style="margin-left: 5px" icon="ele-Printer" @click="handleHtmlPrint"> |
| | | 打印 |
| | | </el-button> |
| | | |
| | | <el-button type="primary" icon="ele-Printer" @click="getPrint">打印</el-button> |
| | | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | </el-dialog> |
| | | |
| | | <printDialogTestStudent ref="printDialogRefTestStudent" :title="printTestStudentTitle" @reloadTable="handleQueryTestStudent" /> |
| | | |
| | | |
| | | <!-- 打印 --> |
| | | <print-table-ckd ref="printTableRef"></print-table-ckd> |
| | | |
| | | </div> |
| | | </template> |
| | | <script lang="ts" setup> |
| | |
| | | import { pageBaseCustomer } from '/@/api/main/WmsBase/baseCustomer'; |
| | | import { listWmsOrderPurchaseDetails, pageWmsOrderPurchaseDetails } from '/@/api/main/WmsOrder/wmsOrderPurchaseDetails'; |
| | | import { formatDate, formatDate_T_Date, formatDate_T_Time, defaultTimeRange } from '/@/utils/formatTime'; |
| | | import printTableCkd from '/@/components/printTableCkd.vue'; |
| | | import commonFunction from '/@/utils/commonFunction'; |
| | | import { handleSlectDataWmsBusinessType } from '/@/utils/selectData'; |
| | | // 推荐设置操作 width 为 200 |
| | | import { hiprint } from 'vue-plugin-hiprint'; |
| | | import { SysPrintApi } from '/@/api-services/api'; |
| | | import { SysPrint } from '/@/api-services/models'; |
| | | |
| | | const moveType = 10; //移动类型 入库 |
| | | const { proxy }: any = getCurrentInstance(); // 访问实例上下文 proxy同时支持开发 线上环境 |
| | | const getEnumOrderTypeData = ref<any>([]); |
| | |
| | | // const |
| | | //单号 |
| | | const purchaseNo = ref(''); |
| | | |
| | | const IsPack = ref(false); |
| | | //打开抽屉 |
| | | const openDrawer = async (type: number, scope: any = {}, entozhExcell?: any) => { |
| | | detailForm.value.Page = 1; //bug:点编辑-再点详情 |
| | |
| | | detailForm.value.poId = scope.id; |
| | | //入库单 |
| | | purchaseNo.value = scope.packageCode; |
| | | IsPack.value = scope.isPack; |
| | | debugger; |
| | | detailForm.value.poId = scope.id; |
| | | //获取物料列表 |
| | |
| | | printDialogRefTestStudent.value.showDialog(new hiprint.PrintTemplate({ template: template }), row, template.panels[0].width); |
| | | }; |
| | | |
| | | |
| | | |
| | | // 打印 |
| | | let itemSubTitle = ref<any[]>([]); |
| | | const handleHtmlPrint = () => { |
| | | var title = IsPack.value==true?"齐包清单":"缺包清单"; |
| | | proxy.$refs['printTableRef'].printHd(title, itemSubTitle.value, drawerList.value); //deltailList |
| | | }; |
| | | |
| | | // 暴露方法 |
| | | defineExpose({ openDialog, openDrawer }); |
| | | </script> |