| | |
| | | <el-form :model="detailForm"> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="包装号"> |
| | | <el-input v-model="detailForm.packageCode" clearable placeholder="请输入包装号" /> |
| | | <el-form-item label="部件名称"> |
| | | <el-input v-model="detailForm.detailName" 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" style="margin-left: 5px" icon="ele-Printer" @click="handleHtmlPrint"> 打印 </el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | |
| | | <printDialogTestStudent ref="printDialogRefTestStudent" :title="printTestStudentTitle" @reloadTable="handleQueryTestStudent" /> |
| | | |
| | | |
| | | <!-- 打印 --> |
| | | <print-table-ckd ref="printTableRef"></print-table-ckd> |
| | | |
| | | </div> |
| | | </template> |
| | | <script lang="ts" setup> |
| | |
| | | // 是否显示核销按钮 |
| | | const hexiao = computed(() => props.hexiao); |
| | | const loading = ref(false); |
| | | |
| | | |
| | | |
| | | const getEnumStockStatusData_Index = ref<any>([]); |
| | | const getEnumLockStatusData_Index = ref<any>([]); |
| | |
| | | //列表的数据条数 |
| | | const totalItems = ref<number>(0); |
| | | |
| | | |
| | | |
| | | // .inEnumOrderType |
| | | |
| | | //获取PO单列表 |
| | |
| | | // -------------------获取PO单下物料详情----------------------------------- |
| | | //入库单下物料详情请求 |
| | | const detailForm = ref({ |
| | | poId: '', |
| | | materialCode: '', |
| | | packageCode: '', |
| | | detailName: '', |
| | | Page: 1, |
| | | PageSize: 10, |
| | | }); |
| | |
| | | } |
| | | drawerType.value = 'drawerAll'; |
| | | drawerVisible.value = true; |
| | | //当前入库单号id |
| | | detailForm.value.poId = scope.id; |
| | | //入库单 |
| | | purchaseNo.value = scope.packageCode; |
| | | IsPack.value = scope.isPack; |
| | | debugger; |
| | | detailForm.value.poId = scope.id; |
| | | detailForm.value.packageCode = scope.packageCode; |
| | | //获取物料列表 |
| | | if (detailForm.value.poId == '') { |
| | | if (detailForm.value.packageCode == '') { |
| | | drawerList.value = []; |
| | | detailCount.value = 0; |
| | | return; |
| | |
| | | //------------------获取物料列表物料明细 |
| | | getEnumStockStatusData_Index.value = (await getAPI(SysEnumApi).apiSysEnumEnumDataListGet('StockStatusEnum')).data.result ?? []; |
| | | getEnumLockStatusData_Index.value = (await getAPI(SysEnumApi).apiSysEnumEnumDataListGet('LockStatusEnum')).data.result ?? []; |
| | | // getBusinessTypeData_Index.value = await handleSlectDataWmsBusinessType(moveType); //下拉读取业务类型接口 create by liuwq |
| | | |
| | | // getEnumDockData.value = (await getAPI(SysEnumApi).apiSysEnumEnumDataListGet('DockEnum')).data.result ?? []; |
| | | |
| | | // getEnumPoDetailStatusData_Index.value = (await getAPI(SysEnumApi).apiSysEnumEnumDataListGet('OrderStatusEnum')).data.result ?? []; |
| | | // getEnumOrderTypeData_Index.value = (await getAPI(SysEnumApi).apiSysEnumEnumDataListGet('OrderTypeEnum')).data.result ?? []; |
| | | //----------------物料明细 |
| | | // 根据状态转中文 保留3位小数 |
| | | let scopetrans = JSON.parse(JSON.stringify(scope)); |
| | | // scopetrans.totalquantity = Number(scopetrans.totalquantity).toFixed(3); |
| | |
| | | //关闭抽屉 |
| | | const handleDrawerClose = () => { |
| | | detailForm.value = { |
| | | poId: '', |
| | | materialCode: '', |
| | | packageCode: '', |
| | | detailName: '', |
| | | Page: 1, |
| | | PageSize: 10, |
| | | }; |
| | |
| | | printDialogRefTestStudent.value.showDialog(new hiprint.PrintTemplate({ template: template }), row, template.panels[0].width); |
| | | }; |
| | | |
| | | |
| | | |
| | | // 打印 |
| | | let itemSubTitle = ref<any[]>([]); |
| | | const handleHtmlPrint = () => { |
| | | var title = IsPack.value==true?"齐包清单":"缺包清单"; |
| | | var title = IsPack.value == true ? '齐包清单' : '缺包清单'; |
| | | proxy.$refs['printTableRef'].printHd(title, itemSubTitle.value, drawerList.value); //deltailList |
| | | }; |
| | | |