| | |
| | | <el-input v-model="queryParams.packageCode" clearable="" placeholder="请输入包装号" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="6" class="mb10"> |
| | | <el-form-item label="批次"> |
| | | <el-input v-model="queryParams.planNo" clearable="" placeholder="请输入批次" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="6" class="mb10"> |
| | | <el-form-item label="订单号"> |
| | | <el-input v-model="queryParams.orderId" clearable="" placeholder="请输入订单号" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <!-- <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="4" class="mb10" v-if="showAdvanceQueryUI"> |
| | | <el-form-item label="PO单号"> |
| | | <el-input v-model="queryParams.purchaseNo" clearable="" placeholder="请输入PO单号" /> |
| | |
| | | <el-input v-model="queryParams.projectNo" clearable="" placeholder="请输入项目号" /> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | |
| | | |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="6" :xl="6" class="mb10"> |
| | | <el-form-item> |
| | | <el-button-group style="display: flex; align-items: center"> |
| | | <el-button type="primary" icon="ele-Search" @click="handleQuery"> 查询 </el-button> |
| | | <el-button icon="ele-Refresh" @click="() => (queryParams = {})"> 重置 </el-button> |
| | | |
| | | <el-button icon="ele-Select" @click="clickOutForQiBao"> 齐包出库 </el-button> |
| | | <el-button icon="ele-WarnTriangleFilled" @click="clickOut"> 强制出库 </el-button> |
| | | |
| | | <!-- <el-button icon="ele-ZoomIn" @click="changeAdvanceQueryUI" v-if="!showAdvanceQueryUI" style="margin-left: 5px"> 高级查询 </el-button> |
| | | <el-button icon="ele-ZoomOut" @click="changeAdvanceQueryUI" v-if="showAdvanceQueryUI" style="margin-left: 5px"> 隐藏 </el-button> --> |
| | | |
| | | </el-button-group> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <div class="left-table"> |
| | | <p class="text-xtiny">齐包列表</p> |
| | | |
| | | <el-table :data="tableData" style="width: 100%" v-loading="loading" tooltip-effect="light" ref="tableRef" row-key="id" @sort-change="sortChange" :summary-method="getExportTitle" border=""> |
| | | <el-table :data="tableData" style="width: 100%" v-loading="loading" tooltip-effect="light" |
| | | ref="tableRef" row-key="id" |
| | | @selection-change="handleSelectionChangeForQiBao" |
| | | @sort-change="sortChange" |
| | | :summary-method="getExportTitle" border=""> |
| | | <el-table-column align="center" width="60" type="selection" /> |
| | | <el-table-column type="index" label="序号" width="55" align="center" /> |
| | | <!-- <el-table-column prop="packageCode" label="包装号" show-overflow-tooltip="" /> --> |
| | | <el-table-column label="包装号" prop="packageCode" width="150" align="left" show-overflow-tooltip> |
| | |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="planNo" label="批次" show-overflow-tooltip="" /> |
| | | <el-table-column prop="orderId" label="订单号" show-overflow-tooltip="" /> |
| | | <el-table-column prop="mesTotalCount" label="总数" show-overflow-tooltip="" /> |
| | | <el-table-column prop="count" label="已有数量" show-overflow-tooltip="" /> |
| | | |
| | |
| | | row-key="newId" |
| | | @sort-change="newSortChange" |
| | | :summary-method="getNewExportTitle" |
| | | @selection-change="handleSelectionChange" |
| | | border="" |
| | | > |
| | | <el-table-column align="center" width="60" type="selection" /> |
| | | |
| | | <el-table-column type="index" label="序号" width="55" align="center" /> |
| | | <!-- <el-table-column prop="packageCode" label="包装号" show-overflow-tooltip="" /> --> |
| | | <el-table-column label="包装号" prop="packageCode" width="150" align="left" show-overflow-tooltip> |
| | |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="planNo" label="批次" show-overflow-tooltip="" /> |
| | | <el-table-column prop="orderId" label="订单号" show-overflow-tooltip="" /> |
| | | <el-table-column prop="mesTotalCount" label="总数" show-overflow-tooltip="" /> |
| | | <el-table-column prop="count" label="已有数量" show-overflow-tooltip="" /> |
| | | <el-table-column prop="lackCount" label="缺少数量" show-overflow-tooltip="" /> |
| | |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | | |
| | | |
| | | |
| | | <editDialogWmsOrderDeliver ref="editDialogRefWmsOrderDeliver" :title="editWmsOrderDeliverTitle" @reloadTable="handleQuery" /> |
| | | <importExcelDialog |
| | |
| | | downloadExcelTemplateWmsOrderPurchase, |
| | | downloadExcelTemplateWmsOrderPurchaseAll, |
| | | packList, |
| | | ForceOutbound, |
| | | PersonOutbound |
| | | } from '/@/api/main/WmsOrder/wmsOrderPurchase'; |
| | | import { handleSlectDataWmsBusinessType } from '/@/utils/selectData'; |
| | | import { getAPI } from '/@/utils/axios-utils'; |
| | |
| | | // 88888888查询操作 |
| | | const handleQuery = async () => { |
| | | loading.value = true; |
| | | var res = await packList(Object.assign(queryParams.value, { |
| | | ...tableParams.value, |
| | | IsPack:true |
| | | })); |
| | | var res = await packList( |
| | | Object.assign(queryParams.value, { |
| | | ...tableParams.value, |
| | | IsPack: true, |
| | | }) |
| | | ); |
| | | tableData.value = res.data.result ?? []; |
| | | var res2 = await packList(Object.assign(queryParams.value, { |
| | | ...tableParams.value, |
| | | IsPack:false |
| | | })); |
| | | |
| | | var res2 = await packList( |
| | | Object.assign(queryParams.value, { |
| | | ...tableParams.value, |
| | | IsPack: false, |
| | | }) |
| | | ); |
| | | newTableData.value = res2.data.result ?? []; |
| | | |
| | | // tableParams.value.total = res.data.result?.total; |
| | | loading.value = false; |
| | | // getEnumOrderTypeData_Index.value = (await getAPI(SysEnumApi).apiSysEnumEnumDataListGet('OrderTypeEnum')).data.result ?? []; |
| | | |
| | | // getEnumPoStatusData_Index.value = (await getAPI(SysEnumApi).apiSysEnumEnumDataListGet('OrderStatusEnum')).data.result ?? []; |
| | | }; |
| | | |
| | | // 列排序 |
| | |
| | | } |
| | | }); |
| | | }; |
| | | |
| | | //选中的行 |
| | | const checkRowsForQiBao = ref<{ id: number }[]>([]); |
| | | |
| | | // 选择 |
| | | const handleSelectionChangeForQiBao = (val: any) => { |
| | | checkRowsForQiBao.value = val; |
| | | }; |
| | | |
| | | //选中的行 |
| | | const checkRows = ref<{ id: number }[]>([]); |
| | | |
| | | // 选择 |
| | | const handleSelectionChange = (val: any) => { |
| | | checkRows.value = val; |
| | | }; |
| | | |
| | | const clickOutForQiBao = () => { |
| | | var PackageCodeList = checkRowsForQiBao.value.map((x: any) => x.packageCode); |
| | | if (PackageCodeList.length == 0) { |
| | | ElMessage.error('请选择需要齐包出库的订单!'); |
| | | return; |
| | | } |
| | | ElMessageBox.confirm('是否确认齐包出库?', '提示', { |
| | | confirmButtonText: '确认', |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | | }) |
| | | .then(async () => { |
| | | loading.value = true; |
| | | var res = await PersonOutbound( |
| | | { |
| | | "PackageCodeList": PackageCodeList |
| | | } |
| | | ); |
| | | handleQuery(); |
| | | if(res.data.type=="success"){ |
| | | ElMessage.success('齐包出库请求成功'); |
| | | } |
| | | loading.value = false; |
| | | }) |
| | | .catch(() => ElMessage.info('已取消')); |
| | | }; |
| | | const clickOut = () => { |
| | | var PackageCodeList = checkRows.value.map((x: any) => x.packageCode); |
| | | if (PackageCodeList.length == 0) { |
| | | ElMessage.error('请选择需要出库的订单!'); |
| | | return; |
| | | } |
| | | ElMessageBox.confirm('是否确认强制出库?', '提示', { |
| | | confirmButtonText: '确认', |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | | }) |
| | | .then(async () => { |
| | | loading.value = true; |
| | | var res = await ForceOutbound( |
| | | { |
| | | "PackageCodeList": PackageCodeList |
| | | } |
| | | ); |
| | | handleQuery(); |
| | | if(res.data.type=="success"){ |
| | | ElMessage.success('强制出库请求成功'); |
| | | } |
| | | |
| | | loading.value = false; |
| | | }) |
| | | .catch(() => ElMessage.info('已取消')); |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | | :deep(.el-input), |