add:叫料管理
This commit is contained in:
@@ -131,6 +131,8 @@
|
|||||||
ex.material_id = #{material_id}
|
ex.material_id = #{material_id}
|
||||||
AND
|
AND
|
||||||
st.lock_type = 0
|
st.lock_type = 0
|
||||||
|
AND
|
||||||
|
st.sect_code = 'HG01'
|
||||||
<if test="pcsn!= null and pcsn!= ''">
|
<if test="pcsn!= null and pcsn!= ''">
|
||||||
AND
|
AND
|
||||||
ex.pcsn = #{pcsn}
|
ex.pcsn = #{pcsn}
|
||||||
@@ -139,20 +141,34 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="queryOutAllocation" resultType="org.nl.wms.basedata_manage.service.dto.MdPbStoragevehicleextDto">
|
<select id="queryOutAllocation" resultType="org.nl.wms.basedata_manage.service.dto.MdPbStoragevehicleextDto">
|
||||||
SELECT ex.*,st.sect_id,st.sect_code,st.sect_name,st.struct_id,st.struct_code,st.struct_name
|
SELECT
|
||||||
FROM md_pb_storagevehicleext ex LEFT JOIN st_ivt_structattr st on ex.storagevehicle_code = st.storagevehicle_code
|
ex.*,
|
||||||
|
st.sect_id,
|
||||||
|
st.sect_code,
|
||||||
|
st.sect_name,
|
||||||
|
st.struct_id,
|
||||||
|
st.struct_code,
|
||||||
|
st.struct_name,
|
||||||
|
TIMESTAMPDIFF(DAY,CURDATE(),late.quality_time) AS quality_day
|
||||||
|
FROM
|
||||||
|
md_pb_storagevehicleext ex
|
||||||
|
INNER JOIN st_ivt_structattr st on ex.storagevehicle_code = st.storagevehicle_code
|
||||||
|
INNER JOIN md_pb_groupplate late on ex.storagevehicle_code = late.storagevehicle_code
|
||||||
|
AND ex.material_id = late.material_id AND ex.pcsn = late.pcsn AND late.status = '2'
|
||||||
<where>
|
<where>
|
||||||
material_id = #{material_id}
|
ex.material_id = #{material_id}
|
||||||
AND
|
AND
|
||||||
ex.canuse_qty > 0
|
ex.canuse_qty > 0
|
||||||
AND
|
AND
|
||||||
st.lock_type = 0
|
st.lock_type = 0
|
||||||
|
AND
|
||||||
|
st.sect_code = 'HG01'
|
||||||
<if test="pcsn!= null and pcsn!= ''">
|
<if test="pcsn!= null and pcsn!= ''">
|
||||||
AND
|
AND
|
||||||
pcsn = #{pcsn}
|
pcsn = #{pcsn}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY ex.insert_time,ex.canuse_qty
|
ORDER BY quality_day,ex.insert_time,ex.canuse_qty
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="erpQueryIvt" resultType="com.alibaba.fastjson.JSONObject">
|
<select id="erpQueryIvt" resultType="com.alibaba.fastjson.JSONObject">
|
||||||
|
|||||||
@@ -323,7 +323,7 @@ public class PdaIosInServiceImpl implements PdaIosInService {
|
|||||||
jsonMst.put("bill_status", IOSEnum.BILL_STATUS.code("生成"));
|
jsonMst.put("bill_status", IOSEnum.BILL_STATUS.code("生成"));
|
||||||
jsonMst.put("total_qty", total_qty);
|
jsonMst.put("total_qty", total_qty);
|
||||||
jsonMst.put("detail_count", 1);
|
jsonMst.put("detail_count", 1);
|
||||||
jsonMst.put("bill_type", IOSEnum.BILL_TYPE.code("生产入库"));
|
jsonMst.put("bill_type", IOSEnum.IN_BILL_TYPE.code("收货入库"));
|
||||||
jsonMst.put("biz_date", DateUtil.now());
|
jsonMst.put("biz_date", DateUtil.now());
|
||||||
|
|
||||||
// 组织明细数据
|
// 组织明细数据
|
||||||
|
|||||||
@@ -47,4 +47,11 @@ public interface IPdmBomCallMaterialService extends IService<PdmBomCallMaterial>
|
|||||||
* @param ids id集合
|
* @param ids id集合
|
||||||
*/
|
*/
|
||||||
void delete(Set<String> ids);
|
void delete(Set<String> ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据工单编码查询
|
||||||
|
* @param bom_code 工单编码
|
||||||
|
* @return PdmBomCallMaterial 实体类
|
||||||
|
*/
|
||||||
|
PdmBomCallMaterial findByCode (String bom_code);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,6 +34,11 @@ public class PdmBomCallMaterial implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String material_id;
|
private String material_id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 叫料单号
|
||||||
|
*/
|
||||||
|
private String bom_code;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备编码
|
* 设备编码
|
||||||
*/
|
*/
|
||||||
@@ -45,15 +50,30 @@ public class PdmBomCallMaterial implements Serializable {
|
|||||||
private BigDecimal call_qty;
|
private BigDecimal call_qty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实际重量
|
* 实际出库重量
|
||||||
*/
|
*/
|
||||||
private BigDecimal real_qty;
|
private BigDecimal real_qty;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实际用料总量
|
||||||
|
*/
|
||||||
|
private BigDecimal real_weigh_qty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 工单状态
|
* 工单状态
|
||||||
*/
|
*/
|
||||||
private String bom_status;
|
private String bom_status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 单位标识
|
||||||
|
*/
|
||||||
|
private String qty_unit_id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 单位名称
|
||||||
|
*/
|
||||||
|
private String qty_unit_name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -24,6 +24,11 @@
|
|||||||
bom.device_code LIKE #{param.device_code}
|
bom.device_code LIKE #{param.device_code}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
<if test="param.bom_code != null and param.bom_code != ''">
|
||||||
|
AND
|
||||||
|
bom.bom_code LIKE #{param.bom_code}
|
||||||
|
</if>
|
||||||
|
|
||||||
<if test="param.bom_status != null and param.bom_status != ''">
|
<if test="param.bom_status != null and param.bom_status != ''">
|
||||||
AND
|
AND
|
||||||
bom.bom_status = #{param.bom_status}
|
bom.bom_status = #{param.bom_status}
|
||||||
|
|||||||
@@ -1,17 +1,22 @@
|
|||||||
package org.nl.wms.pdm_manage.service.impl;
|
package org.nl.wms.pdm_manage.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import org.nl.common.domain.query.PageQuery;
|
import org.nl.common.domain.query.PageQuery;
|
||||||
|
import org.nl.common.utils.CodeUtil;
|
||||||
import org.nl.common.utils.IdUtil;
|
import org.nl.common.utils.IdUtil;
|
||||||
import org.nl.common.utils.SecurityUtils;
|
import org.nl.common.utils.SecurityUtils;
|
||||||
|
import org.nl.wms.basedata_manage.service.IMdPbMeasureunitService;
|
||||||
|
import org.nl.wms.basedata_manage.service.dao.MdPbMeasureunit;
|
||||||
import org.nl.wms.pdm_manage.enums.BomEnum;
|
import org.nl.wms.pdm_manage.enums.BomEnum;
|
||||||
import org.nl.wms.pdm_manage.service.IPdmBomCallMaterialService;
|
import org.nl.wms.pdm_manage.service.IPdmBomCallMaterialService;
|
||||||
import org.nl.wms.pdm_manage.service.dao.PdmBomCallMaterial;
|
import org.nl.wms.pdm_manage.service.dao.PdmBomCallMaterial;
|
||||||
import org.nl.wms.pdm_manage.service.dao.mapper.PdmBomCallMaterialMapper;
|
import org.nl.wms.pdm_manage.service.dao.mapper.PdmBomCallMaterialMapper;
|
||||||
import org.nl.wms.pdm_manage.service.dto.PdmBomCallMaterialDto;
|
import org.nl.wms.pdm_manage.service.dto.PdmBomCallMaterialDto;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
@@ -29,6 +34,12 @@ import java.util.Set;
|
|||||||
@Service
|
@Service
|
||||||
public class PdmBomCallMaterialServiceImpl extends ServiceImpl<PdmBomCallMaterialMapper, PdmBomCallMaterial> implements IPdmBomCallMaterialService {
|
public class PdmBomCallMaterialServiceImpl extends ServiceImpl<PdmBomCallMaterialMapper, PdmBomCallMaterial> implements IPdmBomCallMaterialService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计量单位服务
|
||||||
|
*/
|
||||||
|
@Autowired
|
||||||
|
private IMdPbMeasureunitService iMdPbMeasureunitService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IPage<PdmBomCallMaterialDto> queryAll(Map whereJson, PageQuery page) {
|
public IPage<PdmBomCallMaterialDto> queryAll(Map whereJson, PageQuery page) {
|
||||||
return this.baseMapper.queryAllByPage(new Page<>(page.getPage() + 1, page.getSize()),
|
return this.baseMapper.queryAllByPage(new Page<>(page.getPage() + 1, page.getSize()),
|
||||||
@@ -40,6 +51,11 @@ public class PdmBomCallMaterialServiceImpl extends ServiceImpl<PdmBomCallMateria
|
|||||||
public void create(PdmBomCallMaterial dto) {
|
public void create(PdmBomCallMaterial dto) {
|
||||||
dto.setBom_id(IdUtil.getStringId());
|
dto.setBom_id(IdUtil.getStringId());
|
||||||
dto.setBom_status(BomEnum.CALL_BOM_STATUS.code("生成"));
|
dto.setBom_status(BomEnum.CALL_BOM_STATUS.code("生成"));
|
||||||
|
dto.setBom_code(CodeUtil.getNewCode("BOM_CODE"));
|
||||||
|
// 计量单位默认重量KG
|
||||||
|
MdPbMeasureunit unitDao = iMdPbMeasureunitService.getByCode("KG");
|
||||||
|
dto.setQty_unit_id(unitDao.getMeasure_unit_id());
|
||||||
|
dto.setQty_unit_name(unitDao.getUnit_name());
|
||||||
dto.setCreate_id(SecurityUtils.getCurrentUserId());
|
dto.setCreate_id(SecurityUtils.getCurrentUserId());
|
||||||
dto.setCreate_name(SecurityUtils.getCurrentNickName());
|
dto.setCreate_name(SecurityUtils.getCurrentNickName());
|
||||||
dto.setCreate_time(DateUtil.now());
|
dto.setCreate_time(DateUtil.now());
|
||||||
@@ -57,4 +73,12 @@ public class PdmBomCallMaterialServiceImpl extends ServiceImpl<PdmBomCallMateria
|
|||||||
public void delete(Set<String> ids) {
|
public void delete(Set<String> ids) {
|
||||||
this.baseMapper.deleteBatchIds(ids);
|
this.baseMapper.deleteBatchIds(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PdmBomCallMaterial findByCode(String bom_code) {
|
||||||
|
return this.baseMapper.selectOne(
|
||||||
|
new QueryWrapper<PdmBomCallMaterial>().lambda()
|
||||||
|
.eq(PdmBomCallMaterial::getBom_code, bom_code)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,9 +27,12 @@ import org.springframework.transaction.annotation.Transactional;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: Liuxy
|
* <p>
|
||||||
* @Description: 退货入库任务类
|
* 收货入库任务类
|
||||||
* @Date: 2025/8/12
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Liuxy
|
||||||
|
* @since 2025-08-15
|
||||||
*/
|
*/
|
||||||
@Component(value = "DetainInTask")
|
@Component(value = "DetainInTask")
|
||||||
@TaskType("DetainInTask")
|
@TaskType("DetainInTask")
|
||||||
|
|||||||
@@ -4,12 +4,16 @@ import cn.hutool.core.date.DateUtil;
|
|||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||||
import org.nl.common.exception.BadRequestException;
|
import org.nl.common.exception.BadRequestException;
|
||||||
import org.nl.common.utils.SecurityUtils;
|
import org.nl.common.utils.SecurityUtils;
|
||||||
import org.nl.config.IdUtil;
|
import org.nl.config.IdUtil;
|
||||||
import org.nl.wms.basedata_manage.enums.BaseDataEnum;
|
import org.nl.wms.basedata_manage.enums.BaseDataEnum;
|
||||||
|
import org.nl.wms.sch_manage.enums.TaskEnum;
|
||||||
import org.nl.wms.sch_manage.enums.TaskStatus;
|
import org.nl.wms.sch_manage.enums.TaskStatus;
|
||||||
|
import org.nl.wms.sch_manage.service.ISchBasePointService;
|
||||||
import org.nl.wms.sch_manage.service.ISchBaseTaskService;
|
import org.nl.wms.sch_manage.service.ISchBaseTaskService;
|
||||||
|
import org.nl.wms.sch_manage.service.dao.SchBasePoint;
|
||||||
import org.nl.wms.sch_manage.service.dao.SchBaseTask;
|
import org.nl.wms.sch_manage.service.dao.SchBaseTask;
|
||||||
import org.nl.wms.sch_manage.service.util.AbstractTask;
|
import org.nl.wms.sch_manage.service.util.AbstractTask;
|
||||||
import org.nl.wms.sch_manage.service.util.AcsTaskDto;
|
import org.nl.wms.sch_manage.service.util.AcsTaskDto;
|
||||||
@@ -25,35 +29,57 @@ import org.springframework.transaction.annotation.Transactional;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: Liuxy
|
* <p>
|
||||||
* @Description: 入库任务类
|
* 领料出库任务类
|
||||||
* @Date: 2025/5/25
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Liuxy
|
||||||
|
* @since 2025-08-15
|
||||||
*/
|
*/
|
||||||
@Component(value = "STOutTask")
|
@Component(value = "ReceiveOutTask")
|
||||||
@TaskType("STOutTask")
|
@TaskType("ReceiveOutTask")
|
||||||
public class StOutTask extends AbstractTask {
|
public class ReceiveOutTask extends AbstractTask {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务服务
|
||||||
|
*/
|
||||||
@Autowired
|
@Autowired
|
||||||
private ISchBaseTaskService taskService;
|
private ISchBaseTaskService taskService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出库服务
|
||||||
|
*/
|
||||||
@Resource
|
@Resource
|
||||||
private IOutBillService outBillService;
|
private IOutBillService outBillService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分配明细mapper
|
||||||
|
*/
|
||||||
@Resource
|
@Resource
|
||||||
private IOStorInvDisMapper ioStorInvDisMapper;
|
private IOStorInvDisMapper ioStorInvDisMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 点位服务
|
||||||
|
*/
|
||||||
|
@Resource
|
||||||
|
private ISchBasePointService iSchBasePointService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String create(JSONObject json) {
|
public String create(JSONObject json) {
|
||||||
SchBaseTask task = new SchBaseTask();
|
SchBaseTask task = new SchBaseTask();
|
||||||
task.setTask_id(IdUtil.getStringId());
|
task.setTask_id(IdUtil.getStringId());
|
||||||
task.setTask_code(json.getString("TaskCode"));
|
task.setTask_code(json.getString("TaskCode"));
|
||||||
task.setTask_status(TaskStatus.CREATE.getCode());
|
task.setTask_status(TaskStatus.CREATE.getCode());
|
||||||
task.setConfig_code(json.getString("task_type"));
|
task.setConfig_code(ReceiveOutTask.class.getSimpleName());
|
||||||
task.setPoint_code1(json.getString("PickingLocation"));
|
task.setPoint_code1(json.getString("point_code1"));
|
||||||
task.setPoint_code2(json.getString("PlacedLocation"));
|
task.setPoint_code2(json.getString("point_code2"));
|
||||||
task.setVehicle_code(json.getString("vehicle_code"));
|
task.setVehicle_code(json.getString("vehicle_code"));
|
||||||
|
task.setMaterial_id(json.getString("material_id"));
|
||||||
|
task.setMaterial_qty(json.getBigDecimal("material_qty"));
|
||||||
task.setGroup_id(json.getString("group_id"));
|
task.setGroup_id(json.getString("group_id"));
|
||||||
task.setRequest_param(json.toString());
|
task.setRequest_param(json.toString());
|
||||||
task.setPriority(json.getString("Priority"));
|
task.setPriority(json.getString("Priority"));
|
||||||
|
task.setTask_type(TaskEnum.TASK_TYPE.code("料箱"));
|
||||||
task.setCreate_id(SecurityUtils.getCurrentUserId());
|
task.setCreate_id(SecurityUtils.getCurrentUserId());
|
||||||
task.setCreate_name(SecurityUtils.getCurrentNickName());
|
task.setCreate_name(SecurityUtils.getCurrentNickName());
|
||||||
task.setCreate_time(DateUtil.now());
|
task.setCreate_time(DateUtil.now());
|
||||||
@@ -98,10 +124,10 @@ public class StOutTask extends AbstractTask {
|
|||||||
taskService.updateById(taskObj);
|
taskService.updateById(taskObj);
|
||||||
}
|
}
|
||||||
if (status.equals(TaskStatus.FINISHED)) {
|
if (status.equals(TaskStatus.FINISHED)) {
|
||||||
this.finishTask(taskObj);
|
this.finishTask(taskObj);
|
||||||
}
|
}
|
||||||
if (status.equals(TaskStatus.CANCELED)) {
|
if (status.equals(TaskStatus.CANCELED)) {
|
||||||
this.cancelTask(taskObj);
|
this.cancelTask(taskObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +137,7 @@ public class StOutTask extends AbstractTask {
|
|||||||
if (ObjectUtil.isEmpty(taskObj)) {
|
if (ObjectUtil.isEmpty(taskObj)) {
|
||||||
throw new BadRequestException("该任务不存在");
|
throw new BadRequestException("该任务不存在");
|
||||||
}
|
}
|
||||||
this.finishTask(taskObj);
|
this.finishTask(taskObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -132,6 +158,13 @@ public class StOutTask extends AbstractTask {
|
|||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void finishTask(SchBaseTask taskObj) {
|
public void finishTask(SchBaseTask taskObj) {
|
||||||
|
// 更新终点
|
||||||
|
iSchBasePointService.update(
|
||||||
|
new UpdateWrapper<SchBasePoint>().lambda()
|
||||||
|
.eq(SchBasePoint::getPoint_code, taskObj.getPoint_code2())
|
||||||
|
.set(SchBasePoint::getVehicle_code, taskObj.getVehicle_code())
|
||||||
|
.set(SchBasePoint::getPoint_status, IOSEnum.POINT_STATUS.code("有箱有料"))
|
||||||
|
);
|
||||||
// 任务完成
|
// 任务完成
|
||||||
taskObj.setTask_status(TaskStatus.FINISHED.getCode());
|
taskObj.setTask_status(TaskStatus.FINISHED.getCode());
|
||||||
taskObj.setRemark("已完成");
|
taskObj.setRemark("已完成");
|
||||||
@@ -146,17 +179,17 @@ public class StOutTask extends AbstractTask {
|
|||||||
taskService.update(new LambdaUpdateWrapper<SchBaseTask>()
|
taskService.update(new LambdaUpdateWrapper<SchBaseTask>()
|
||||||
.set(SchBaseTask::getIs_delete, BaseDataEnum.IS_YES_NOT.code("是"))
|
.set(SchBaseTask::getIs_delete, BaseDataEnum.IS_YES_NOT.code("是"))
|
||||||
.set(SchBaseTask::getTask_status, TaskStatus.CANCELED.getCode())
|
.set(SchBaseTask::getTask_status, TaskStatus.CANCELED.getCode())
|
||||||
.set(SchBaseTask::getRemark,"已取消")
|
.set(SchBaseTask::getRemark, "已取消")
|
||||||
.eq(SchBaseTask::getTask_id,taskObj.getTask_id())
|
.eq(SchBaseTask::getTask_id, taskObj.getTask_id())
|
||||||
);
|
);
|
||||||
|
|
||||||
//分配表清除任务
|
//分配表清除任务
|
||||||
ioStorInvDisMapper.update(new IOStorInvDis(),new LambdaUpdateWrapper<>(IOStorInvDis.class)
|
ioStorInvDisMapper.update(new IOStorInvDis(), new LambdaUpdateWrapper<>(IOStorInvDis.class)
|
||||||
.set(IOStorInvDis::getTask_id,null)
|
.set(IOStorInvDis::getTask_id, null)
|
||||||
.set(IOStorInvDis::getPoint_code,null)
|
.set(IOStorInvDis::getPoint_code, null)
|
||||||
.set(IOStorInvDis::getIs_issued,0)
|
.set(IOStorInvDis::getIs_issued, 0)
|
||||||
.set(IOStorInvDis::getWork_status, IOSEnum.INBILL_DIS_STATUS.code("未生成"))
|
.set(IOStorInvDis::getWork_status, IOSEnum.INBILL_DIS_STATUS.code("未生成"))
|
||||||
.eq(IOStorInvDis::getTask_id,taskObj.getTask_id())
|
.eq(IOStorInvDis::getTask_id, taskObj.getTask_id())
|
||||||
);
|
);
|
||||||
|
|
||||||
// 更新任务状态
|
// 更新任务状态
|
||||||
@@ -17,6 +17,11 @@ public class IOSConstant {
|
|||||||
*/
|
*/
|
||||||
public final static String IS_DELETE_YES = "1";
|
public final static String IS_DELETE_YES = "1";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数字2
|
||||||
|
*/
|
||||||
|
public final static String TWO = "2";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 出入库 入库
|
* 出入库 入库
|
||||||
*/
|
*/
|
||||||
@@ -85,4 +90,9 @@ public class IOSConstant {
|
|||||||
* 称重位
|
* 称重位
|
||||||
*/
|
*/
|
||||||
public final static String CZW_POINT = "CZW01";
|
public final static String CZW_POINT = "CZW01";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 物料id:焊丝(盘状)
|
||||||
|
*/
|
||||||
|
public final static String MATERIAL_HS_PZ = "1945687018646409216";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,13 +28,25 @@ public enum IOSEnum {
|
|||||||
BILL_STATUS(MapOf.of("生成","10", "分配中", "20", "分配完", "30", "完成", "99")),
|
BILL_STATUS(MapOf.of("生成","10", "分配中", "20", "分配完", "30", "完成", "99")),
|
||||||
|
|
||||||
// 入库业务类型
|
// 入库业务类型
|
||||||
BILL_TYPE(MapOf.of("生产入库","0001", "手工入库", "0009")),
|
IN_BILL_TYPE(MapOf.of("收货入库","0001", "退料入库","0002" , "合箱入库","0003"
|
||||||
|
,"拼箱入库", "0004" ,"手工入库", "0009"
|
||||||
|
)),
|
||||||
|
|
||||||
|
// 入库业务类型
|
||||||
|
OUT_BILL_TYPE(MapOf.of("领料出库","1001", "质检出库","1002" , "退货出库","1003"
|
||||||
|
,"烘干出库", "1004" ,"手工出库", "1009"
|
||||||
|
)),
|
||||||
|
|
||||||
// 入库任务配置类编码
|
// 入库任务配置类编码
|
||||||
IN_CONFIG_CODE(MapOf.of("0001","DetainInTask", "0002", "BackInTask",
|
IN_CONFIG_CODE(MapOf.of("0001","DetainInTask", "0002", "BackInTask",
|
||||||
"0003", "GeBoxInTask", "0004", "PieceBoxInTask", "0009", "HandInTask"
|
"0003", "GeBoxInTask", "0004", "PieceBoxInTask", "0009", "HandInTask"
|
||||||
)),
|
)),
|
||||||
|
|
||||||
|
// 出库任务配置类编码
|
||||||
|
OUT_CONFIG_CODE(MapOf.of("1001","ReceiveOutTask", "1002", "QualityOutTask",
|
||||||
|
"1003", "BackOutTask", "1004", "HotOutTask", "1009", "HandOutTask"
|
||||||
|
)),
|
||||||
|
|
||||||
//入库分配明细状态
|
//入库分配明细状态
|
||||||
INBILL_DIS_STATUS(MapOf.of("未生成", "00", "生成", "01", "执行中", "02", "完成", "99")),
|
INBILL_DIS_STATUS(MapOf.of("未生成", "00", "生成", "01", "执行中", "02", "完成", "99")),
|
||||||
|
|
||||||
|
|||||||
@@ -101,4 +101,9 @@ public class IOStorInvDtl implements Serializable {
|
|||||||
* 未分配数量
|
* 未分配数量
|
||||||
*/
|
*/
|
||||||
private BigDecimal unassign_qty;
|
private BigDecimal unassign_qty;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否拣选:0-否 1-是
|
||||||
|
*/
|
||||||
|
private String is_check;
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -10,6 +10,15 @@
|
|||||||
label-width="80px"
|
label-width="80px"
|
||||||
label-suffix=":"
|
label-suffix=":"
|
||||||
>
|
>
|
||||||
|
<el-form-item label="单据编码">
|
||||||
|
<el-input
|
||||||
|
v-model="query.bom_code"
|
||||||
|
clearable
|
||||||
|
size="mini"
|
||||||
|
placeholder="单据编码"
|
||||||
|
@keyup.enter.native="crud.toQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="物料编码">
|
<el-form-item label="物料编码">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="query.material_code"
|
v-model="query.material_code"
|
||||||
@@ -108,12 +117,15 @@
|
|||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
|
<el-table-column prop="bom_code" label="工单单号" :min-width="flexWidth('bom_code',crud.data,'工单单号')" />
|
||||||
<el-table-column prop="bom_status" label="工单状态" :formatter="formattStatus" :min-width="flexWidth('bom_status',crud.data,'工单状态')" />
|
<el-table-column prop="bom_status" label="工单状态" :formatter="formattStatus" :min-width="flexWidth('bom_status',crud.data,'工单状态')" />
|
||||||
<el-table-column prop="material_code" label="物料编码" :min-width="flexWidth('material_code',crud.data,'物料编码')" />
|
<el-table-column prop="material_code" label="物料编码" :min-width="flexWidth('material_code',crud.data,'物料编码')" />
|
||||||
<el-table-column prop="material_name" label="物料名称" :min-width="flexWidth('material_name',crud.data,'物料名称')" />
|
<el-table-column prop="material_name" label="物料名称" :min-width="flexWidth('material_name',crud.data,'物料名称')" />
|
||||||
<el-table-column prop="device_code" label="机台编码" :min-width="flexWidth('device_code',crud.data,'机台编码')" />
|
<el-table-column prop="device_code" label="机台编码" :min-width="flexWidth('device_code',crud.data,'机台编码')" />
|
||||||
<el-table-column prop="call_qty" label="叫料重量" :formatter="crud.formatNum3" :min-width="100" />
|
<el-table-column prop="call_qty" label="计划叫料重量" :formatter="crud.formatNum3" :min-width="100" />
|
||||||
<el-table-column prop="real_qty" label="实际重量" :formatter="crud.formatNum3" :min-width="100" />
|
<el-table-column prop="real_qty" label="实际叫料重量" :formatter="crud.formatNum3" :min-width="100" />
|
||||||
|
<el-table-column prop="real_weigh_qty" label="实际用料重量" :formatter="crud.formatNum3" :min-width="100" />
|
||||||
|
<el-table-column prop="qty_unit_name" label="单位" :min-width="flexWidth('qty_unit_name',crud.data,'单位')" />
|
||||||
<el-table-column prop="create_name" label="叫料人" :min-width="flexWidth('create_name',crud.data,'叫料人')" />
|
<el-table-column prop="create_name" label="叫料人" :min-width="flexWidth('create_name',crud.data,'叫料人')" />
|
||||||
<el-table-column prop="create_time" label="叫料时间" :min-width="flexWidth('create_time',crud.data,'叫料时间')" />
|
<el-table-column prop="create_time" label="叫料时间" :min-width="flexWidth('create_time',crud.data,'叫料时间')" />
|
||||||
<el-table-column prop="confirm_time" label="结束时间" :min-width="flexWidth('confirm_time',crud.data,'结束时间')" />
|
<el-table-column prop="confirm_time" label="结束时间" :min-width="flexWidth('confirm_time',crud.data,'结束时间')" />
|
||||||
@@ -150,6 +162,7 @@ import rrOperation from '@crud/RR.operation'
|
|||||||
import crudGroup from '@/views/wms/basedata/group/group'
|
import crudGroup from '@/views/wms/basedata/group/group'
|
||||||
|
|
||||||
const defaultForm = {
|
const defaultForm = {
|
||||||
|
bom_code: null,
|
||||||
material_spec: null,
|
material_spec: null,
|
||||||
material_name: null,
|
material_name: null,
|
||||||
material_code: null,
|
material_code: null,
|
||||||
|
|||||||
@@ -118,7 +118,17 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@click="queryDtl()"
|
@click="queryDtl()"
|
||||||
>
|
>
|
||||||
添加物料
|
添加库内库存
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
slot="left"
|
||||||
|
class="filter-item"
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="queryDtlIos()"
|
||||||
|
>
|
||||||
|
添加叫料单据
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@@ -153,6 +163,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="qty_unit_name" label="单位" align="center" />
|
<el-table-column prop="qty_unit_name" label="单位" align="center" />
|
||||||
|
<el-table-column prop="source_bill_code" label="来源单据号" align="center" min-width="150px" show-overflow-tooltip />
|
||||||
<el-table-column show-overflow-tooltip prop="remark" label="明细备注" align="center">
|
<el-table-column show-overflow-tooltip prop="remark" label="明细备注" align="center">
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
<el-input v-model="scope.row.remark" size="mini" />
|
<el-input v-model="scope.row.remark" size="mini" />
|
||||||
@@ -167,14 +178,14 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<AddDtl :dialog-show.sync="dtlShow" :stor-id="storId" @tableChanged="tableChanged" />
|
<AddDtl :dialog-show.sync="dtlShow" :stor-id="storId" @tableChanged="tableChanged" />
|
||||||
<!-- <MaterDialog :dialog-show.sync="materShow" :mater-opt-code.sync="materType" @setMaterValue="setMaterValue" />-->
|
<AddDtlIos :dialog-show.sync="dtlIosShow" @tableChanged="tableChanged2" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import CRUD, { crud, form } from '@crud/crud'
|
import CRUD, { crud, form } from '@crud/crud'
|
||||||
import AddDtl from '@/views/wms/st/outbill/AddDtl'
|
import AddDtl from '@/views/wms/st/outbill/AddDtl'
|
||||||
import MaterDialog from '@/views/wms/pub/MaterDialog'
|
import AddDtlIos from '@/views/wms/st/outbill/AddDtlIos'
|
||||||
import checkoutbill from '@/views/wms/st/outbill/checkoutbill'
|
import checkoutbill from '@/views/wms/st/outbill/checkoutbill'
|
||||||
import crudBsrealstorattr from '@/views/wms/basedata/bsrealstorattr/bsrealstorattr'
|
import crudBsrealstorattr from '@/views/wms/basedata/bsrealstorattr/bsrealstorattr'
|
||||||
|
|
||||||
@@ -195,7 +206,7 @@ const defaultForm = {
|
|||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
name: 'AddDialog',
|
name: 'AddDialog',
|
||||||
components: { AddDtl, MaterDialog },
|
components: { AddDtl, AddDtlIos },
|
||||||
mixins: [crud(), form(defaultForm)],
|
mixins: [crud(), form(defaultForm)],
|
||||||
props: {
|
props: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
@@ -208,6 +219,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
dtlShow: false,
|
dtlShow: false,
|
||||||
|
dtlIosShow: false,
|
||||||
materType: '',
|
materType: '',
|
||||||
materShow: false,
|
materShow: false,
|
||||||
flagnow: false,
|
flagnow: false,
|
||||||
@@ -319,6 +331,17 @@ export default {
|
|||||||
this.storId = this.form.stor_id
|
this.storId = this.form.stor_id
|
||||||
this.dtlShow = true
|
this.dtlShow = true
|
||||||
},
|
},
|
||||||
|
queryDtlIos(index, row) {
|
||||||
|
if (this.form.bill_type === '') {
|
||||||
|
this.crud.notify('请选择业务类型!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (this.form.stor_id === '') {
|
||||||
|
this.crud.notify('请选择仓库!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.dtlIosShow = true
|
||||||
|
},
|
||||||
tableChanged(rows) {
|
tableChanged(rows) {
|
||||||
rows.forEach((item) => {
|
rows.forEach((item) => {
|
||||||
// 添加plan_qty
|
// 添加plan_qty
|
||||||
@@ -343,6 +366,31 @@ export default {
|
|||||||
})
|
})
|
||||||
this.form.detail_count = this.form.tableData.length
|
this.form.detail_count = this.form.tableData.length
|
||||||
},
|
},
|
||||||
|
tableChanged2(rows) {
|
||||||
|
rows.forEach((item) => {
|
||||||
|
// 添加plan_qty
|
||||||
|
item.plan_qty = item.call_qty
|
||||||
|
item.source_bill_code = item.bom_code
|
||||||
|
if (this.form.tableData.length !== 0) {
|
||||||
|
this.flagnow = false
|
||||||
|
for (let i = 0; i < this.form.tableData.length; i++) {
|
||||||
|
if (this.form.tableData[i].storagevehicle_code === item.storagevehicle_code && this.form.tableData[i].pcsn === item.pcsn) {
|
||||||
|
this.flagnow = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!this.flagnow) {
|
||||||
|
item.edit = true
|
||||||
|
this.form.tableData.splice(-1, 0, item)
|
||||||
|
this.form.total_qty = parseFloat(this.form.total_qty) + parseFloat(item.plan_qty)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
item.edit = true
|
||||||
|
this.form.tableData.splice(-1, 0, item)
|
||||||
|
this.form.total_qty = parseFloat(this.form.total_qty) + parseFloat(item.plan_qty)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.form.detail_count = this.form.tableData.length
|
||||||
|
},
|
||||||
setMaterValue(row) {
|
setMaterValue(row) {
|
||||||
for (let i = 0; i < this.form.tableData.length; i++) {
|
for (let i = 0; i < this.form.tableData.length; i++) {
|
||||||
if (this.form.tableData[i].material_id === row.material_id) {
|
if (this.form.tableData[i].material_id === row.material_id) {
|
||||||
|
|||||||
143
wms/nladmin-ui/src/views/wms/st/outbill/AddDtlIos.vue
Normal file
143
wms/nladmin-ui/src/views/wms/st/outbill/AddDtlIos.vue
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
title="单据选择"
|
||||||
|
append-to-body
|
||||||
|
:visible.sync="dialogVisible"
|
||||||
|
destroy-on-close
|
||||||
|
width="1000px"
|
||||||
|
@close="close"
|
||||||
|
@open="open"
|
||||||
|
>
|
||||||
|
<!-- 搜索 -->
|
||||||
|
<el-form
|
||||||
|
:inline="true"
|
||||||
|
class="demo-form-inline"
|
||||||
|
label-position="right"
|
||||||
|
label-width="80px"
|
||||||
|
label-suffix=":"
|
||||||
|
>
|
||||||
|
<el-form-item label="单据编码">
|
||||||
|
<el-input
|
||||||
|
v-model="query.bom_code"
|
||||||
|
clearable
|
||||||
|
size="mini"
|
||||||
|
placeholder="单据编码"
|
||||||
|
@keyup.enter.native="crud.toQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="物料编码">
|
||||||
|
<el-input
|
||||||
|
v-model="query.material_code"
|
||||||
|
clearable
|
||||||
|
size="mini"
|
||||||
|
placeholder="物料编码"
|
||||||
|
@keyup.enter.native="crud.toQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="机台编码">
|
||||||
|
<el-input
|
||||||
|
v-model="query.device_code"
|
||||||
|
clearable
|
||||||
|
size="mini"
|
||||||
|
placeholder="机台编码"
|
||||||
|
@keyup.enter.native="crud.toQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<rrOperation />
|
||||||
|
</el-form>
|
||||||
|
<!--表格渲染-->
|
||||||
|
<el-table
|
||||||
|
ref="table"
|
||||||
|
v-loading="crud.loading"
|
||||||
|
:data="crud.data"
|
||||||
|
style="width: 100%;"
|
||||||
|
border
|
||||||
|
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
|
||||||
|
>
|
||||||
|
<el-table-column type="selection" width="55" />
|
||||||
|
<el-table-column prop="bom_code" label="工单单号" :min-width="flexWidth('bom_code',crud.data,'工单单号')" />
|
||||||
|
<el-table-column prop="bom_status" label="工单状态" :formatter="formattStatus" :min-width="flexWidth('bom_status',crud.data,'工单状态')" />
|
||||||
|
<el-table-column prop="material_code" label="物料编码" :min-width="flexWidth('material_code',crud.data,'物料编码')" />
|
||||||
|
<el-table-column prop="material_name" label="物料名称" :min-width="flexWidth('material_name',crud.data,'物料名称')" />
|
||||||
|
<el-table-column prop="device_code" label="机台编码" :min-width="flexWidth('device_code',crud.data,'机台编码')" />
|
||||||
|
<el-table-column prop="call_qty" label="叫料重量" :formatter="crud.formatNum3" :min-width="100" />
|
||||||
|
<el-table-column prop="create_name" label="叫料人" :min-width="flexWidth('create_name',crud.data,'叫料人')" />
|
||||||
|
<el-table-column prop="qty_unit_name" label="单位" :min-width="flexWidth('qty_unit_name',crud.data,'单位')" />
|
||||||
|
<el-table-column prop="create_time" label="叫料时间" :min-width="flexWidth('create_time',crud.data,'叫料时间')" />
|
||||||
|
</el-table>
|
||||||
|
<!--分页组件-->
|
||||||
|
<pagination />
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="submit">确 定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import CRUD, { crud, header, presenter } from '@crud/crud'
|
||||||
|
import rrOperation from '@crud/RR.operation'
|
||||||
|
import crudOperation from '@crud/CRUD.operation'
|
||||||
|
import pagination from '@crud/Pagination'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'AddDtlIos',
|
||||||
|
components: { crudOperation, rrOperation, pagination },
|
||||||
|
cruds() {
|
||||||
|
return CRUD({
|
||||||
|
title: '叫料单据',
|
||||||
|
optShow: {
|
||||||
|
add: false,
|
||||||
|
edit: false,
|
||||||
|
del: false,
|
||||||
|
reset: true,
|
||||||
|
download: false
|
||||||
|
},
|
||||||
|
url: 'api/bomCallMaterial',
|
||||||
|
query: { 'bom_status': '1' },
|
||||||
|
idField: 'bom_id',
|
||||||
|
sort: 'bom_id,desc'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
mixins: [presenter(), header()],
|
||||||
|
dicts: ['BOM_STATUS'],
|
||||||
|
props: {
|
||||||
|
dialogShow: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dialogVisible: false,
|
||||||
|
rows: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
dialogShow: {
|
||||||
|
handler(newValue, oldValue) {
|
||||||
|
this.dialogVisible = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
formattStatus(row) {
|
||||||
|
return this.dict.label.BOM_STATUS[row.bom_status]
|
||||||
|
},
|
||||||
|
close() {
|
||||||
|
this.$emit('update:dialogShow', false)
|
||||||
|
},
|
||||||
|
submit() {
|
||||||
|
this.rows = this.$refs.table.selection
|
||||||
|
if (this.rows.length <= 0) {
|
||||||
|
this.$message('请先勾选仓位')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.$emit('update:dialogShow', false)
|
||||||
|
this.$emit('tableChanged', this.rows)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
<span class="role-span">出库明细</span>
|
<span class="role-span">出库明细</span>
|
||||||
<div class="crud-opts-form">
|
<div class="crud-opts-form">
|
||||||
<el-form ref="form" :inline="true" :model="form" size="mini">
|
<el-form ref="form" :inline="true" :model="form" size="mini">
|
||||||
<el-form-item label="库区" prop="gender2">
|
<!-- <el-form-item label="库区" prop="gender2">
|
||||||
<el-cascader
|
<el-cascader
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
:options="sects"
|
:options="sects"
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
clearable
|
clearable
|
||||||
@change="sectQueryChange"
|
@change="sectQueryChange"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>-->
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<span class="crud-opts-right2">
|
<span class="crud-opts-right2">
|
||||||
@@ -131,6 +131,8 @@
|
|||||||
<el-table-column show-overflow-tooltip prop="plan_qty" label="数量" :formatter="crud.formatNum3" align="center" />
|
<el-table-column show-overflow-tooltip prop="plan_qty" label="数量" :formatter="crud.formatNum3" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="assign_qty" label="已分配数量" :formatter="crud.formatNum3" align="center" />
|
<el-table-column show-overflow-tooltip prop="assign_qty" label="已分配数量" :formatter="crud.formatNum3" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="unassign_qty" label="未分配数量" :formatter="crud.formatNum3" align="center" />
|
<el-table-column show-overflow-tooltip prop="unassign_qty" label="未分配数量" :formatter="crud.formatNum3" align="center" />
|
||||||
|
<el-table-column prop="source_bill_code" label="来源单据号" align="center" min-width="150px" show-overflow-tooltip />
|
||||||
|
<el-table-column prop="is_check" label="是否拣选" align="center" min-width="100px" show-overflow-tooltip :formatter="isCheck" />
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-card>
|
</el-card>
|
||||||
<div class="crud-opts2">
|
<div class="crud-opts2">
|
||||||
@@ -297,7 +299,7 @@ export default {
|
|||||||
sects: [],
|
sects: [],
|
||||||
pointList: [],
|
pointList: [],
|
||||||
rules: {
|
rules: {
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -324,7 +326,7 @@ export default {
|
|||||||
this.sects = res.content
|
this.sects = res.content
|
||||||
})
|
})
|
||||||
|
|
||||||
const area_type = 'OUT01'
|
const area_type = 'INOUR01'
|
||||||
crudPoint.getPointList({ 'region_code': area_type }).then(res => {
|
crudPoint.getPointList({ 'region_code': area_type }).then(res => {
|
||||||
this.pointList = res
|
this.pointList = res
|
||||||
})
|
})
|
||||||
@@ -338,6 +340,9 @@ export default {
|
|||||||
bill_statusFormat(row, column) {
|
bill_statusFormat(row, column) {
|
||||||
return this.dict.label.io_bill_status[row.bill_status]
|
return this.dict.label.io_bill_status[row.bill_status]
|
||||||
},
|
},
|
||||||
|
isCheck(row, column) {
|
||||||
|
return this.dict.label.IS_OR_NOT[row.is_check]
|
||||||
|
},
|
||||||
PointChanged(row) {
|
PointChanged(row) {
|
||||||
this.form2.point_code = row.point_code
|
this.form2.point_code = row.point_code
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -134,6 +134,7 @@
|
|||||||
<el-table-column prop="unassign_qty" :formatter="crud.formatNum3" label="未分配数量" align="center" width="100px" />
|
<el-table-column prop="unassign_qty" :formatter="crud.formatNum3" label="未分配数量" align="center" width="100px" />
|
||||||
<el-table-column prop="qty_unit_name" label="单位" align="center" />
|
<el-table-column prop="qty_unit_name" label="单位" align="center" />
|
||||||
<el-table-column prop="source_bill_code" label="源单号" align="center" width="130px" />
|
<el-table-column prop="source_bill_code" label="源单号" align="center" width="130px" />
|
||||||
|
<el-table-column prop="is_check" label="是否拣选" align="center" min-width="100px" show-overflow-tooltip :formatter="isCheck" />
|
||||||
<el-table-column show-overflow-tooltip prop="remark" label="明细备注" align="center" />
|
<el-table-column show-overflow-tooltip prop="remark" label="明细备注" align="center" />
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -237,6 +238,9 @@ export default {
|
|||||||
taskdtl_typeFormat(row) {
|
taskdtl_typeFormat(row) {
|
||||||
return this.dict.label.SCH_TASK_TYPE_DTL[row.taskdtl_type]
|
return this.dict.label.SCH_TASK_TYPE_DTL[row.taskdtl_type]
|
||||||
},
|
},
|
||||||
|
isCheck(row, column) {
|
||||||
|
return this.dict.label.IS_OR_NOT[row.is_check]
|
||||||
|
},
|
||||||
formatOverdue(row, column) {
|
formatOverdue(row, column) {
|
||||||
return this.dict.label.IS_OR_NOT[row.is_overdue]
|
return this.dict.label.IS_OR_NOT[row.is_overdue]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user