33.订单历史管理里面增加单据类型选项按钮、单据类型选项按钮
34.单据管理里面增加单据状态选项按钮
35.入库订单全部都入好了,单据状态还是作业中,现在作业中的单据是可以删除的,我不小心把这个单据删除了,怎么恢复?
36.每个界面点下一页都没反应,点第二页是有变化的,之后点任何页面都没反应
37.订单明细点开后的界面改大一点
38.新增出库订单的时候可以输入客户信息(客户名称、收件人、地址、电话等),现在拣货完成后连发给谁都不知道
39.大屏播种界面对应的数量和开单数量不一致
| | |
| | | orderDetlChild.value.orderId = formData.value.id;
|
| | | orderDetlChild.value.isAdd = isSave.value;
|
| | | orderNoQuery();
|
| | | }else {
|
| | | } else {
|
| | | orderDetlChild.value.orderId = null;
|
| | | }
|
| | | })
|
| | |
| | | orderNo: formData.value.orderNo,
|
| | | orderType: formData.value.orderType,
|
| | | orderSettle: formData.value.orderSettle,
|
| | | address: formData.value.address,
|
| | | phone: formData.value.phone,
|
| | | customer: formData.value.customer,
|
| | | list: orderDetlChild.value.tableData
|
| | | }
|
| | |
|
| | |
| | | optionLabelProp="label">
|
| | | </a-select>
|
| | | </a-form-item>
|
| | | <a-form-item v-if="!isSave" :label="formatMessage('db.man_order.order_settle', '单据状态')" name="orderSettle">
|
| | | <a-form-item v-if="!isSave" :label="formatMessage('db.man_order.order_settle', '单据状态')"
|
| | | name="orderSettle">
|
| | | <a-select v-model:value="formData.orderSettle" :placeholder="formatMessage('common.select', '请选择')"
|
| | | style="width: 100%" show-search :options="orderSettleQueryList" optionFilterProp="label"
|
| | | optionLabelProp="label">
|
| | | </a-select>
|
| | | </a-form-item>
|
| | | <div>
|
| | | <a-form-item :label="formatMessage('db.man_order.order_no', '客户名称')" name="customer">
|
| | | <a-input v-model:value="formData.customer" />
|
| | | </a-form-item>
|
| | | <a-form-item :label="formatMessage('db.man_order.order_no', '收货地址')" name="address">
|
| | | <a-input v-model:value="formData.address" />
|
| | | </a-form-item>
|
| | | <a-form-item :label="formatMessage('db.man_order.order_no', '电话')" name="phone">
|
| | | <a-input v-model:value="formData.phone" />
|
| | | </a-form-item>
|
| | | </div>
|
| | | <a-form-item :label="formatMessage('db.man_order.update_time', '订单明细')" name="orderDetl">
|
| | | <OrderDetlComponent ref="orderDetlChild" v-if="open" :ioModel="props.ioModel"/>
|
| | | <OrderDetlComponent ref="orderDetlChild" v-if="open" :ioModel="props.ioModel" />
|
| | | </a-form-item>
|
| | | <a-form-item>
|
| | | <a-button type="primary" html-type="submit" ref="submitButton"
|
| | |
| | |
|
| | | function getPage() {
|
| | | state.loading = true;
|
| | |
|
| | | let apiUrl = '/api/order/page';
|
| | | if (props.ioModel == 'in') {
|
| | | apiUrl = '/api/order/in/page';
|
| | |
| | |
|
| | | <template>
|
| | | <div>
|
| | | <a-modal v-model:open="openDetl" :width="showWidth" @ok="handleOk" @cancel="handleCancel">
|
| | | <a-modal v-model:open="openDetl" :width="showWidth" @ok="handleOk" @cancel="handleCancel" style="width: 80%;">
|
| | | <div class="component-header">
|
| | | <div>
|
| | | <h3>
|
| | |
| | | const state = reactive({
|
| | | selectedRowKeys: [],
|
| | | loading: false,
|
| | | orderType: 1
|
| | | });
|
| | |
|
| | | let tableData = ref([]);
|
| | |
| | | ...getColumnSearchProps('orderNo'),
|
| | | },
|
| | | {
|
| | | title: formatMessage('db.man_order_log.order_type', '单据类型'),
|
| | | dataIndex: 'orderType$',
|
| | | width: 140,
|
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('orderType$'),
|
| | | },
|
| | | {
|
| | | title: formatMessage('db.man_order_detl.mat_id', '物料'),
|
| | | dataIndex: 'matId$',
|
| | | width: 140,
|
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('matId$'),
|
| | | },
|
| | | {
|
| | | title: formatMessage('db.man_order_detl.maktx', '物料名称'),
|
| | | dataIndex: 'maktx',
|
| | | width: 140,
|
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('maktx'),
|
| | | },
|
| | | {
|
| | | title: formatMessage('db.man_order_detl.anfme', '数量'),
|
| | | dataIndex: 'anfme',
|
| | | width: 140,
|
| | |
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('workQty'),
|
| | | },
|
| | | {
|
| | | title: formatMessage('db.man_order_detl.mat_id', '物料'),
|
| | | dataIndex: 'matId$',
|
| | | width: 140,
|
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('matId$'),
|
| | | },
|
| | |
|
| | | {
|
| | | title: formatMessage('db.man_order_detl.batch', '批号'),
|
| | | dataIndex: 'batch',
|
| | |
| | |
|
| | | function getPage() {
|
| | | state.loading = true;
|
| | |
|
| | | post('/api/orderDetl/page', {
|
| | | current: currentPage,
|
| | | pageSize: pageSize,
|
| | | orderType: state.orderType,
|
| | | condition: searchInput.value
|
| | | }).then((resp) => {
|
| | | let result = resp.data;
|
| | |
| | | <div>
|
| | | <EditView ref="editChild" @tableReload="handleTableReload" />
|
| | | <div class="table-header">
|
| | | <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')"
|
| | | style="width: 200px;" @search="onSearch" />
|
| | | <div>
|
| | | <a-select v-model:value="state.orderType" :placeholder="formatMessage('page.locDetl.orderNo.input', '请选择单据类型')"
|
| | | :options="[
|
| | | { label: '手动入库单', value: 1 }, { label: '手动出库单', value: 2 },]" style="width: 160px;margin: 0 10px;">
|
| | | </a-select>
|
| | | <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')"
|
| | | style="width: 200px;" @search="onSearch" />
|
| | | </div>
|
| | | <div class="table-header-right">
|
| | | <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '添加') }}</a-button>
|
| | | <a-button @click="handleExport">{{ formatMessage('page.export', '导出') }}</a-button>
|
| | |
| | | <a-table :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
|
| | | :data-source="tableData.records" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id"
|
| | | :pagination="{ total: tableData.total, onChange: onPageChange }"
|
| | | :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns" @resizeColumn="handleResizeColumn" :loading="state.loading">
|
| | | :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns" @resizeColumn="handleResizeColumn"
|
| | | :loading="state.loading">
|
| | | <template #bodyCell="{ column, text, record }">
|
| | | <template v-if="column.dataIndex === 'oper'">
|
| | | <div style="display: flex;justify-content: space-evenly;">
|
| | | <a-button type="link" primary @click="handleEdit(record)">{{ formatMessage('page.edit', '编辑') }}</a-button>
|
| | | <a-button type="link" danger @click="handleDel([record])">{{ formatMessage('page.delete', '删除')
|
| | | }}</a-button>
|
| | | }}</a-button>
|
| | | </div>
|
| | | </template>
|
| | | </template>
|
| | |
| | | const state = reactive({
|
| | | selectedRowKeys: [],
|
| | | loading: false,
|
| | | orderType: 1
|
| | |
|
| | | });
|
| | |
|
| | | let tableData = ref([]);
|
| | |
| | | ...getColumnSearchProps('anfme'),
|
| | | },
|
| | | {
|
| | | title: formatMessage('db.man_order_log.order_type', '单据类型'),
|
| | | dataIndex: 'orderType$',
|
| | | width: 140,
|
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('orderType$'),
|
| | | },
|
| | | {
|
| | | title: formatMessage('db.man_order_detl_log.qty', '已完成数量'),
|
| | | dataIndex: 'qty',
|
| | | width: 140,
|
| | |
| | | width: 140,
|
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('matId$'),
|
| | | },
|
| | | {
|
| | | title: formatMessage('db.man_order_detl.maktx', '物料名称'),
|
| | | dataIndex: 'maktx',
|
| | | width: 140,
|
| | | ellipsis: true,
|
| | | ...getColumnSearchProps('maktx'),
|
| | | },
|
| | | {
|
| | | title: formatMessage('db.man_order_detl_log.batch', '批号'),
|
| | |
| | | post('/api/orderDetlLog/page', {
|
| | | current: currentPage,
|
| | | pageSize: pageSize,
|
| | | orderType: state.orderType,
|
| | | condition: searchInput.value
|
| | | }).then((resp) => {
|
| | | let result = resp.data;
|
| | |
| | | <div>
|
| | | <EditView ref="editChild" @tableReload="handleTableReload" />
|
| | | <div class="table-header">
|
| | | <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')"
|
| | | style="width: 200px;" @search="onSearch" />
|
| | | <div>
|
| | | <a-select v-model:value="state.orderType" :placeholder="formatMessage('page.locDetl.orderNo.input', '请选择单据类型')"
|
| | | :options="[
|
| | | { label: '手动入库单', value: 1 }, { label: '手动出库单', value: 2 },]" style="width: 160px;margin: 0 10px;">
|
| | | </a-select>
|
| | | <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')"
|
| | | style="width: 200px;" @search="onSearch" />
|
| | | </div>
|
| | | <div class="table-header-right">
|
| | | <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '添加') }}</a-button>
|
| | | <a-button @click="handleExport">{{ formatMessage('page.export', '导出') }}</a-button>
|
| | |
| | | <a-table :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
|
| | | :data-source="tableData.records" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id"
|
| | | :pagination="{ total: tableData.total, onChange: onPageChange }"
|
| | | :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns" @resizeColumn="handleResizeColumn" :loading="state.loading">
|
| | | :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns" @resizeColumn="handleResizeColumn"
|
| | | :loading="state.loading">
|
| | | <template #bodyCell="{ column, text, record }">
|
| | | <template v-if="column.dataIndex === 'oper'">
|
| | | <div style="display: flex;justify-content: space-evenly;">
|
| | | <a-button type="link" primary @click="handleEdit(record)">{{ formatMessage('page.edit', '编辑') }}</a-button>
|
| | | <a-button type="link" danger @click="handleDel([record])">{{ formatMessage('page.delete', '删除')
|
| | | }}</a-button>
|
| | | }}</a-button>
|
| | | </div>
|
| | | </template>
|
| | | </template>
|
| | |
| | |
|
| | | const state = reactive({
|
| | | selectedRowKeys: [],
|
| | | orderType: 1,
|
| | | loading: false,
|
| | | });
|
| | |
|
| | |
| | | post('/api/orderLog/page', {
|
| | | current: currentPage,
|
| | | pageSize: pageSize,
|
| | | orderType: state.orderType,
|
| | | condition: searchInput.value
|
| | | }).then((resp) => {
|
| | | let result = resp.data;
|
| | |
| | | <div>
|
| | | <EditView ref="editChild" @tableReload="handleTableReload" />
|
| | | <div class="table-header">
|
| | | <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')"
|
| | | style="width: 200px;" @search="onSearch" />
|
| | | <div>
|
| | | <a-select v-model:value="state.orderType" :placeholder="formatMessage('page.locDetl.orderNo.input', '请选择单据类型')"
|
| | | :options="[
|
| | | { label: '手动入库单', value: 1 }, { label: '手动出库单', value: 2 },]" style="width: 160px;margin: 0 10px;">
|
| | | </a-select>
|
| | | <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')"
|
| | | style="width: 200px;margin: 0 10px;" @search="onSearch" />
|
| | | </div>
|
| | | <div class="table-header-right">
|
| | | <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '添加') }}</a-button>
|
| | | <a-button @click="handleExport">{{ formatMessage('page.export', '导出') }}</a-button>
|
| | |
| | | <a-table :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
|
| | | :data-source="tableData.records" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id"
|
| | | :pagination="{ total: tableData.total, onChange: onPageChange }"
|
| | | :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns" @resizeColumn="handleResizeColumn" :loading="state.loading">
|
| | | :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns" @resizeColumn="handleResizeColumn"
|
| | | :loading="state.loading">
|
| | | <template #bodyCell="{ column, text, record }">
|
| | | <template v-if="column.dataIndex === 'oper'">
|
| | | <div style="display: flex;justify-content: space-evenly;">
|
| | | <a-button type="link" primary @click="handleEdit(record)">{{ formatMessage('page.edit', '编辑') }}</a-button>
|
| | | <a-button type="link" danger @click="handleDel([record])">{{ formatMessage('page.delete', '删除')
|
| | | }}</a-button>
|
| | | }}</a-button>
|
| | | </div>
|
| | | </template>
|
| | | </template>
|
| | |
| | | package com.zy.asrs.wms.asrs.controller;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.metadata.IPage;
|
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
| | | import com.zy.asrs.framework.common.Cools;
|
| | | import com.zy.asrs.framework.common.R;
|
| | |
| | | import org.springframework.web.bind.annotation.*;
|
| | |
|
| | | import javax.servlet.http.HttpServletResponse;
|
| | | import java.util.ArrayList;
|
| | | import java.util.Arrays;
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | | import java.util.*;
|
| | |
|
| | | @RestController
|
| | | @RequestMapping("/api")
|
| | |
| | | @PostMapping("/orderDetl/page")
|
| | | @CacheData(tableName = {"man_order_detl"})
|
| | | public R page(@RequestBody Map<String, Object> map) {
|
| | | BaseParam baseParam = buildParam(map, BaseParam.class);
|
| | | PageParam<OrderDetl, BaseParam> pageParam = new PageParam<>(baseParam, OrderDetl.class);
|
| | | return R.ok().add(orderDetlService.page(pageParam, pageParam.buildWrapper(true)));
|
| | | if (!Objects.isNull(map.get("orderType"))) {
|
| | | BaseParam baseParam = buildParam(map, BaseParam.class);
|
| | | PageParam<OrderDetl, BaseParam> pageParam = new PageParam<>(baseParam, OrderDetl.class);
|
| | | QueryWrapper<OrderDetl> queryWrapper = pageParam.buildWrapper(true);
|
| | | IPage<OrderDetl> detls = orderDetlService.pageByType(pageParam, queryWrapper);
|
| | | return R.ok().add(detls);
|
| | | } else {
|
| | | BaseParam baseParam = buildParam(map, BaseParam.class);
|
| | | PageParam<OrderDetl, BaseParam> pageParam = new PageParam<>(baseParam, OrderDetl.class);
|
| | | return R.ok().add(orderDetlService.page(pageParam, pageParam.buildWrapper(true)));
|
| | | }
|
| | | }
|
| | |
|
| | | @PreAuthorize("hasAuthority('asrs:orderDetl:list')")
|
| | |
| | | package com.zy.asrs.wms.asrs.controller;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.metadata.IPage;
|
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
| | | import com.zy.asrs.framework.common.Cools;
|
| | | import com.zy.asrs.framework.common.R;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetl;
|
| | | import com.zy.asrs.wms.common.annotation.CacheData;
|
| | | import com.zy.asrs.wms.common.annotation.OperationLog;
|
| | | import com.zy.asrs.wms.common.domain.BaseParam;
|
| | |
| | | import org.springframework.web.bind.annotation.*;
|
| | |
|
| | | import javax.servlet.http.HttpServletResponse;
|
| | | import java.util.ArrayList;
|
| | | import java.util.Arrays;
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | | import java.util.*;
|
| | |
|
| | | @RestController
|
| | | @RequestMapping("/api")
|
| | |
| | | @PostMapping("/orderDetlLog/page")
|
| | | @CacheData(tableName = {"man_order_detl_log"})
|
| | | public R page(@RequestBody Map<String, Object> map) {
|
| | | BaseParam baseParam = buildParam(map, BaseParam.class);
|
| | | PageParam<OrderDetlLog, BaseParam> pageParam = new PageParam<>(baseParam, OrderDetlLog.class);
|
| | | return R.ok().add(orderDetlLogService.page(pageParam, pageParam.buildWrapper(true)));
|
| | | if (!Objects.isNull(map.get("orderType"))) {
|
| | | BaseParam baseParam = buildParam(map, BaseParam.class);
|
| | | PageParam<OrderDetl, BaseParam> pageParam = new PageParam<>(baseParam, OrderDetl.class);
|
| | | QueryWrapper<OrderDetl> queryWrapper = pageParam.buildWrapper(true);
|
| | | IPage<OrderDetl> detls = orderDetlLogService.pageByType(pageParam, queryWrapper);
|
| | | return R.ok().add(detls);
|
| | | } else {
|
| | | BaseParam baseParam = buildParam(map, BaseParam.class);
|
| | | PageParam<OrderDetlLog, BaseParam> pageParam = new PageParam<>(baseParam, OrderDetlLog.class);
|
| | | return R.ok().add(orderDetlLogService.page(pageParam, pageParam.buildWrapper(true)));
|
| | | }
|
| | | }
|
| | |
|
| | | @PreAuthorize("hasAuthority('asrs:orderDetlLog:list')")
|
| | |
| | | package com.zy.asrs.wms.asrs.entity;
|
| | |
|
| | | import com.baomidou.mybatisplus.annotation.TableLogic;
|
| | | import com.baomidou.mybatisplus.annotation.*;
|
| | |
|
| | | import java.lang.reflect.Field;
|
| | | import java.text.SimpleDateFormat;
|
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
| | | import com.zy.asrs.common.utils.Synchro;
|
| | | import com.zy.asrs.wms.asrs.entity.enums.OrderType;
|
| | | import com.zy.asrs.wms.asrs.entity.param.FieldParam;
|
| | | import com.zy.asrs.wms.asrs.service.MatFieldService;
|
| | | import com.zy.asrs.wms.asrs.service.MatService;
|
| | |
| | | import org.springframework.format.annotation.DateTimeFormat;
|
| | | import java.util.Date;
|
| | |
|
| | | import com.baomidou.mybatisplus.annotation.IdType;
|
| | | import com.baomidou.mybatisplus.annotation.TableId;
|
| | | import com.baomidou.mybatisplus.annotation.TableName;
|
| | | import io.swagger.annotations.ApiModelProperty;
|
| | | import lombok.Data;
|
| | | import com.zy.asrs.framework.common.Cools;
|
| | |
| | | */
|
| | | @ApiModelProperty(value= "订单编号")
|
| | | private String orderNo;
|
| | |
|
| | | @ApiModelProperty("单据类型")
|
| | | @TableField(exist = false)
|
| | | private Integer orderType;
|
| | |
|
| | | @ApiModelProperty("物料名称")
|
| | | @TableField(exist = false)
|
| | | private String maktx;
|
| | |
|
| | | /**
|
| | | * 数量
|
| | |
| | | return qty;
|
| | | }
|
| | |
|
| | | public String getOrderType$() {
|
| | | if (orderType == null) {return null;}
|
| | | if (orderType == 1) {
|
| | | return OrderType.UTC_IN_ORDER.desc;
|
| | | } else if (orderType == 2) {
|
| | | return OrderType.UTC_OUT_ORDER.desc;
|
| | | } else {
|
| | | return OrderType.PK_IN_ORDER.desc;
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | public String getOrderId$(){
|
| | | OrderService service = SpringUtils.getBean(OrderService.class);
|
| | | Order order = service.getById(this.orderId);
|
| | |
| | | //单据状态
|
| | | private Long orderSettle;
|
| | |
|
| | | private String phone;
|
| | |
|
| | | private String address;
|
| | |
|
| | | private String customer;
|
| | |
|
| | | //单据明细
|
| | | private List<HashMap<String,Object>> list;
|
| | |
|
| | |
| | | package com.zy.asrs.wms.asrs.mapper;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.metadata.IPage;
|
| | | import com.baomidou.mybatisplus.core.toolkit.Constants;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetl;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetlLog;
|
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
| | | import com.zy.asrs.wms.common.domain.BaseParam;
|
| | | import com.zy.asrs.wms.common.domain.PageParam;
|
| | | import org.apache.ibatis.annotations.Mapper;
|
| | | import org.apache.ibatis.annotations.Param;
|
| | | import org.springframework.stereotype.Repository;
|
| | |
|
| | | @Mapper
|
| | | @Repository
|
| | | public interface OrderDetlLogMapper extends BaseMapper<OrderDetlLog> {
|
| | |
|
| | | IPage<OrderDetl> pageByType(PageParam<OrderDetl, BaseParam> pageParam, @Param(Constants.WRAPPER) QueryWrapper<OrderDetl> queryWrapper);
|
| | | }
|
| | |
| | | package com.zy.asrs.wms.asrs.mapper;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.metadata.IPage;
|
| | | import com.baomidou.mybatisplus.core.toolkit.Constants;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetl;
|
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
| | | import com.zy.asrs.wms.common.domain.BaseParam;
|
| | | import com.zy.asrs.wms.common.domain.PageParam;
|
| | | import org.apache.ibatis.annotations.Mapper;
|
| | | import org.apache.ibatis.annotations.Param;
|
| | | import org.springframework.stereotype.Repository;
|
| | |
|
| | | @Mapper
|
| | | @Repository
|
| | | public interface OrderDetlMapper extends BaseMapper<OrderDetl> {
|
| | |
|
| | | IPage<OrderDetl> pageByType(PageParam<OrderDetl, BaseParam> pageParam, @Param(Constants.WRAPPER) QueryWrapper<OrderDetl> queryWrapper);
|
| | | }
|
| | |
|
| | |
| | | package com.zy.asrs.wms.asrs.service;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.metadata.IPage;
|
| | | import com.baomidou.mybatisplus.extension.service.IService;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetl;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetlLog;
|
| | | import com.zy.asrs.wms.common.domain.BaseParam;
|
| | | import com.zy.asrs.wms.common.domain.PageParam;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | |
| | |
|
| | | List<OrderDetlLog> getOrderDetlByOrderId(String orderId);
|
| | |
|
| | | IPage<OrderDetl> pageByType(PageParam<OrderDetl, BaseParam> pageParam, QueryWrapper<OrderDetl> queryWrapper);
|
| | | }
|
| | |
| | | package com.zy.asrs.wms.asrs.service;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.metadata.IPage;
|
| | | import com.baomidou.mybatisplus.extension.service.IService;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetl;
|
| | | import com.zy.asrs.wms.common.domain.BaseParam;
|
| | | import com.zy.asrs.wms.common.domain.PageParam;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | |
| | |
|
| | | List<OrderDetl> parseDetl(List<OrderDetl> list);
|
| | |
|
| | | IPage<OrderDetl> pageByType(PageParam<OrderDetl, BaseParam> pageParam, QueryWrapper<OrderDetl> queryWrapper);
|
| | | }
|
| | |
| | | package com.zy.asrs.wms.asrs.service.impl;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.metadata.IPage;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetl;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetlField;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetlFieldLog;
|
| | |
| | | import com.zy.asrs.wms.asrs.service.OrderDetlFieldService;
|
| | | import com.zy.asrs.wms.asrs.service.OrderDetlLogService;
|
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
| | | import com.zy.asrs.wms.common.domain.BaseParam;
|
| | | import com.zy.asrs.wms.common.domain.PageParam;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | |
| | | }
|
| | | return orderDetlLogs;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public IPage<OrderDetl> pageByType(PageParam<OrderDetl, BaseParam> pageParam, QueryWrapper<OrderDetl> queryWrapper) {
|
| | | IPage<OrderDetl> orders = this.baseMapper.pageByType(pageParam, queryWrapper);
|
| | | return orders; }
|
| | | }
|
| | |
| | | package com.zy.asrs.wms.asrs.service.impl;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.metadata.IPage;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetlField;
|
| | | import com.zy.asrs.wms.asrs.mapper.OrderDetlMapper;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetl;
|
| | | import com.zy.asrs.wms.asrs.service.OrderDetlFieldService;
|
| | | import com.zy.asrs.wms.asrs.service.OrderDetlService;
|
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
| | | import com.zy.asrs.wms.common.domain.BaseParam;
|
| | | import com.zy.asrs.wms.common.domain.PageParam;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import java.util.Collections;
|
| | | import java.util.List;
|
| | |
|
| | | @Service("orderDetlService")
|
| | |
| | | }
|
| | | return orderDetls;
|
| | | }
|
| | |
|
| | | /**
|
| | | * @author Ryan
|
| | | * @date 2025/7/7
|
| | | * @description: 获取订单明细
|
| | | * @version 1.0
|
| | | */
|
| | | @Override
|
| | | public IPage<OrderDetl> pageByType(PageParam<OrderDetl, BaseParam> pageParam, QueryWrapper<OrderDetl> queryWrapper) {
|
| | | IPage<OrderDetl> orders = this.baseMapper.pageByType(pageParam, queryWrapper);
|
| | | return orders;
|
| | | }
|
| | | }
|
| | |
| | | Order order = new Order();
|
| | | order.setOrderNo(orderNo);
|
| | | order.setOrderType(param.getOrderType());
|
| | | order.setCustomer(param.getCustomer());
|
| | | order.setPhone(param.getPhone());
|
| | | order.setAddress(param.getAddress());
|
| | | order.setOrderSettle(OrderSettleType.INIT.val());
|
| | | order.setIoPri(orderUtils.getIoPri());
|
| | | order.setOrderTime(format.format(new Date()));
|
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | | <mapper namespace="com.zy.asrs.wms.asrs.mapper.OrderDetlLogMapper">
|
| | |
|
| | | <select id="pageByType" resultType="com.zy.asrs.wms.asrs.entity.OrderDetl">
|
| | | SELECT
|
| | | *
|
| | | FROM
|
| | | (
|
| | | SELECT
|
| | | od.id,
|
| | | o.order_type,
|
| | | od.order_id,
|
| | | od.order_no,
|
| | | od.anfme,
|
| | | od.qty,
|
| | | mt.maktx,
|
| | | od.work_qty,
|
| | | od.mat_id,
|
| | | od.batch,
|
| | | od.pick_status,
|
| | | od.create_time,
|
| | | od.create_by,
|
| | | od.`status`,
|
| | | od.memo
|
| | | FROM
|
| | | man_order_detl od
|
| | | LEFT JOIN man_order o ON od.order_id = o.id
|
| | | LEFT JOIN man_mat mt ON od.mat_id = mt.id
|
| | | )t
|
| | | ${ew.customSqlSegment}
|
| | | </select>
|
| | | </mapper>
|
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | | <mapper namespace="com.zy.asrs.wms.asrs.mapper.OrderDetlMapper">
|
| | |
|
| | | <select id="pageByType" resultType="com.zy.asrs.wms.asrs.entity.OrderDetl">
|
| | | SELECT
|
| | | *
|
| | | FROM
|
| | | (
|
| | | SELECT
|
| | | od.id,
|
| | | o.order_type,
|
| | | od.order_id,
|
| | | od.order_no,
|
| | | od.anfme,
|
| | | od.qty,
|
| | | mt.maktx,
|
| | | od.work_qty,
|
| | | od.mat_id,
|
| | | od.batch,
|
| | | od.pick_status,
|
| | | od.create_time,
|
| | | od.create_by,
|
| | | od.`status`,
|
| | | od.memo
|
| | | FROM
|
| | | man_order_detl od
|
| | | LEFT JOIN man_order o ON od.order_id = o.id
|
| | | LEFT JOIN man_mat mt ON od.mat_id = mt.id
|
| | | )t
|
| | | ${ew.customSqlSegment}
|
| | | </select>
|
| | | </mapper>
|