Merge branch 'master' of http://121.40.234.130:8899/root/lanzhouhailiang_one
This commit is contained in:
@@ -9,25 +9,19 @@ import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.modules.common.exception.BadRequestException;
|
||||
|
||||
import org.nl.modules.system.util.CodeUtil;
|
||||
import org.nl.modules.wql.WQL;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.nl.modules.wql.util.SpringContextHolder;
|
||||
import org.nl.system.service.param.ISysParamService;
|
||||
import org.nl.system.service.param.impl.SysParamServiceImpl;
|
||||
import org.nl.wms.ext.acs.service.AcsToWmsService;
|
||||
import org.nl.wms.log.LokiLog;
|
||||
import org.nl.wms.log.LokiLogType;
|
||||
import org.nl.wms.pda.mps.service.impl.BakingServiceImpl;
|
||||
import org.nl.wms.pda.st.service.PrintService;
|
||||
import org.nl.wms.sch.manage.TaskStatusEnum;
|
||||
import org.nl.wms.sch.service.TaskService;
|
||||
import org.nl.wms.sch.tasks.EmptyVehicleTask;
|
||||
import org.nl.wms.sch.tasks.SendOutTask;
|
||||
import org.nl.wms.st.inbill.service.RawAssistIStorService;
|
||||
import org.nl.wms.st.inbill.service.StorPublicService;
|
||||
import org.nl.wms.st.inbill.service.impl.RawAssistIStorServiceImpl;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -36,7 +30,6 @@ import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Service
|
||||
@@ -431,7 +424,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
throw new BadRequestException("未查询到该木箱对应的包装关系!");
|
||||
}
|
||||
//贴标申请
|
||||
String print_type = sub_jo.getString("print_type");
|
||||
String print_type = "1";
|
||||
if (StrUtil.isEmpty(print_type)) {
|
||||
throw new BadRequestException("请指定一台打印机进行打印!");
|
||||
}
|
||||
|
||||
@@ -157,6 +157,20 @@ public class ProductInstorServiceImpl implements ProductInstorService {
|
||||
if (StrUtil.isEmpty(box_length) || StrUtil.isEmpty(box_width) || StrUtil.isEmpty(box_high)){
|
||||
throw new BadRequestException("该木箱没有长宽高信息,无法入库,请到子卷包装关系中维护!");
|
||||
}
|
||||
JSONObject point_jo = WQLObject.getWQLObject("sch_base_point").query("point_code = '"+point_code+"'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(point_jo)){
|
||||
throw new BadRequestException("未查询到对应的点位!");
|
||||
}else {
|
||||
if (point_jo.getString("is_used").equals("0")){
|
||||
throw new BadRequestException("该点位已经被禁用!");
|
||||
}
|
||||
if (point_jo.getString("is_delete").equals("1")){
|
||||
throw new BadRequestException("该点位已经被删除!");
|
||||
}
|
||||
if (!point_jo.getString("region_code").equals("NBJ01")){
|
||||
throw new BadRequestException("请扫描内包间入库点位!");
|
||||
}
|
||||
}
|
||||
//创建二楼去一楼的任务
|
||||
JSONObject form = new JSONObject();
|
||||
form.put("point_code1", point_code);
|
||||
@@ -165,6 +179,11 @@ public class ProductInstorServiceImpl implements ProductInstorService {
|
||||
form.put("task_type", "010507");
|
||||
cutConveyorTask.createTask(form);
|
||||
} else {
|
||||
JSONArray now_dis_rows = WQL.getWO("QST_IVT_RAWASSISTISTOR").addParam("flag", "18").addParam("box_no", map.get("box_no")).process().getResultJSONArray(0);
|
||||
if (now_dis_rows.size() > 0) {
|
||||
throw new BadRequestException("该木箱已经分配过货位,无法继续分配!");
|
||||
}
|
||||
|
||||
String task_id = IdUtil.getSnowflake(1, 1).nextId() + "";
|
||||
//直接分配虚拟区货位,并确认
|
||||
JSONObject struct = WQL.getWO("PDA_ST_01").addParam("flag", "3").addParam("stor_id",stor.getString("stor_id")).process().uniqueResult(0);
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
LEFT JOIN st_ivt_iostorinv mst ON mst.iostorinv_id = dis.iostorinv_id
|
||||
LEFT JOIN pdm_bi_subpackagerelation sub ON sub.package_box_SN = dis.box_no
|
||||
AND sub.container_name = dis.pcsn
|
||||
LEFT JOIN sch_base_task task ON task.vehicle_code = dis.storagevehicle_code
|
||||
LEFT JOIN sch_base_task task ON task.vehicle_code = dis.storagevehicle_code AND task.task_status < '07' AND task.is_delete = '0'
|
||||
WHERE
|
||||
mst.bill_type = '0009'
|
||||
AND sub.STATUS = '1'
|
||||
@@ -152,24 +152,17 @@
|
||||
IF 输入.flag = "8"
|
||||
QUERY
|
||||
SELECT
|
||||
sub.package_box_SN,
|
||||
sub.container_name,
|
||||
sub.product_name,
|
||||
sub.product_description,
|
||||
sub.net_weight
|
||||
package_box_SN,
|
||||
container_name,
|
||||
product_name,
|
||||
product_description,
|
||||
net_weight
|
||||
FROM
|
||||
st_ivt_iostorinvdis dis
|
||||
LEFT JOIN st_ivt_iostorinv mst ON mst.iostorinv_id = dis.iostorinv_id
|
||||
LEFT JOIN pdm_bi_subpackagerelation sub ON sub.container_name = dis.pcsn
|
||||
LEFT JOIN sch_base_task task ON task.vehicle_code = dis.storagevehicle_code
|
||||
pdm_bi_subpackagerelation sub
|
||||
WHERE
|
||||
mst.bill_type = '1005'
|
||||
AND sub.STATUS = '0'
|
||||
AND mst.is_delete = '0'
|
||||
AND mst.bill_status = '99'
|
||||
AND dis.work_status = '99'
|
||||
AND task.task_id IS NULL
|
||||
AND sub.package_box_SN = 输入.box_no
|
||||
sub.status = '0'
|
||||
AND
|
||||
sub.package_box_SN = 输入.box_no
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -231,6 +231,7 @@ public class RawAssistIStorServiceImpl implements RawAssistIStorService {
|
||||
dis.put("material_id", row.get("material_id"));
|
||||
dis.put("pcsn", row.get("pcsn"));
|
||||
dis.put("box_no", row.get("box_no"));
|
||||
dis.put("storagevehicle_code", row.get("box_no"));
|
||||
dis.put("quality_scode", row.get("quality_scode"));
|
||||
dis.put("work_status", "00");
|
||||
dis.put("qty_unit_id", material.getString("base_unit_id"));
|
||||
|
||||
@@ -176,6 +176,8 @@
|
||||
OPTION 输入.open_flag = "2"
|
||||
dtl.bill_status IN ('30','40')
|
||||
ENDOPTION
|
||||
ORDER BY
|
||||
dtl.box_no
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -254,7 +254,7 @@ public class HandMoveStorServiceImpl implements HandMoveStorService {
|
||||
task.put("task_id", task_id);
|
||||
task.put("task_code", task_code);
|
||||
task.put("task_type", "010505");
|
||||
task.put("task_status", "01");
|
||||
task.put("task_status", TaskStatusEnum.START_AND_POINT.getCode());
|
||||
task.put("point_code1", jo.getString("start_point_code"));
|
||||
task.put("point_code2", point.getString("point_code"));
|
||||
task.put("vehicle_code", jo.getString("storagevehicle_code"));
|
||||
|
||||
@@ -86,7 +86,7 @@ public class HandMoveStorAcsTask extends AbstractAcsTask {
|
||||
if(task==null){
|
||||
throw new BadRequestException("查询不到操作的任务记录!");
|
||||
}
|
||||
if("1".equals(status)){
|
||||
if(TaskStatusEnum.EXECUTING.equals(status)){
|
||||
map.put("work_status","02");
|
||||
wo_dtl.update(map,"task_id='"+task_id+"'");
|
||||
map.put("task_status","03");
|
||||
@@ -94,7 +94,7 @@ public class HandMoveStorAcsTask extends AbstractAcsTask {
|
||||
map.put("update_optname",nickName);
|
||||
map.put("update_time",now);
|
||||
wo_Task.update(map,"task_id='"+task_id+"'");
|
||||
}else if("2".equals(status)){
|
||||
}else if(TaskStatusEnum.FINISHED.equals(status)){
|
||||
HandMoveStorServiceImpl handMoveStorServiceImpl = SpringContextHolder.getBean(HandMoveStorServiceImpl.class);
|
||||
handMoveStorServiceImpl.finishTask(task);
|
||||
}else if("0".equals(status)){
|
||||
|
||||
@@ -258,8 +258,11 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
// rows.clear();
|
||||
// 遍历
|
||||
for (String box_no : boxSet) {
|
||||
JSONObject jsonObject = WQL.getWO("QST_IVT_CHECKOUTBILL").addParam("flag", "7").addParam("box_no", box_no).process().uniqueResult(0);
|
||||
rows.add(jsonObject);
|
||||
JSONArray jsonArr = WQL.getWO("QST_IVT_CHECKOUTBILL").addParam("flag", "7").addParam("box_no", box_no).process().getResultJSONArray(0);
|
||||
for (int i = 0; i < jsonArr.size(); i++) {
|
||||
JSONObject jsonObject = jsonArr.getJSONObject(i);
|
||||
rows.add(jsonObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -340,8 +343,12 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
|
||||
// 判断此明细子卷是否存在,存在则将此木箱下的子卷全部生成明细
|
||||
String pcsn = row.getString("pcsn");
|
||||
String box_no = row.getString("box_no");
|
||||
//查询该箱子所在货位
|
||||
JSONObject struct_jo = WQLObject.getWQLObject("st_ivt_structattr").query("storagevehicle_code = '"+box_no+"'").uniqueResult(0);
|
||||
String struct_code = struct_jo.getString("struct_code");
|
||||
if (ObjectUtil.isNotEmpty(pcsn)) {
|
||||
JSONObject json = ivtTab.query("pcsn = '" + pcsn + "'").uniqueResult(0);
|
||||
JSONObject json = ivtTab.query("pcsn = '" + pcsn + "' AND struct_code = '"+struct_code+"'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(json)) continue;
|
||||
|
||||
JSONObject jsonMap = new JSONObject();
|
||||
@@ -3903,7 +3910,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
//查询对应明细
|
||||
JSONObject dtl_jo = WQLObject.getWQLObject("st_ivt_iostorinvdtl").query("iostorinvdtl_id = '" + dis.getString("iostorinvdtl_id") + "'").uniqueResult(0);
|
||||
// 更新子卷包装关系表 状态 - 3
|
||||
JSONObject jsonSub = subTab.query("container_name = '" + dis.getString("pcsn") + "' and status = '2'").uniqueResult(0);
|
||||
JSONObject jsonSub = subTab.query("container_name = '" + dis.getString("pcsn") + "' and package_box_sn = '"+dis.getString("box_no")+"' and status = '2'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonSub)) throw new BadRequestException("此子卷不存在或不为入库状态:" + dis.getString("pcsn"));
|
||||
// 如果是拆分入库则将包装关系改为生成状态
|
||||
if (jo_mst.getString("bill_type").equals("1005") || (jo_mst.getString("bill_type").equals("1009") && StrUtil.isEmpty(dtl_jo.getString("source_bill_code")))) {
|
||||
|
||||
@@ -137,6 +137,10 @@
|
||||
attr.block_num = 输入.block_num
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.stor_id <> ""
|
||||
attr.stor_id = 输入.stor_id
|
||||
ENDOPTION
|
||||
|
||||
group by attr.storagevehicle_code) a
|
||||
|
||||
order by a.instorage_time ASC
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>-->
|
||||
<rrOperation :crud="crud" />
|
||||
<rrOperation :crud="crud"/>
|
||||
</el-form>
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
@@ -179,192 +179,196 @@
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表单组件-->
|
||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="1000px">
|
||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0"
|
||||
:title="crud.status.title" width="1000px">
|
||||
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="160px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="木箱唯一码" prop="package_box_sn">
|
||||
<el-input v-model="form.package_box_sn" style="width: 300px;" />
|
||||
<el-input v-model="form.package_box_sn" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="箱内子卷数量">
|
||||
<el-input v-model="form.quanlity_in_box" style="width: 300px;" />
|
||||
<el-input v-model="form.quanlity_in_box" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="木箱自身重量">
|
||||
<el-input v-model="form.box_weight" style="width: 300px;" />
|
||||
<el-input v-model="form.box_weight" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="保质期">
|
||||
<el-input v-model="form.quality_guaran_period" style="width: 300px;" />
|
||||
<el-input v-model="form.quality_guaran_period" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="客户编码" prop="customer_name">
|
||||
<el-input v-model="form.customer_name" style="width: 300px;" />
|
||||
<el-input v-model="form.customer_name" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="客户名称" prop="customer_description">
|
||||
<el-input v-model="form.customer_description" style="width: 300px;" />
|
||||
<el-input v-model="form.customer_description" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品编码" prop="product_name">
|
||||
<el-input v-model="form.product_name" style="width: 300px;" />
|
||||
<el-input v-model="form.product_name" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品描述" prop="product_description">
|
||||
<el-input v-model="form.product_description" style="width: 300px;" />
|
||||
<el-input v-model="form.product_description" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="入库日期">
|
||||
<el-input v-model="form.date_of_fg_inbound" style="width: 300px;" />
|
||||
<el-input v-model="form.date_of_fg_inbound" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="子卷号" prop="container_name">
|
||||
<el-input v-model="form.container_name" style="width: 300px;" />
|
||||
<el-input v-model="form.container_name" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品规格(幅宽)" prop="width">
|
||||
<el-input v-model="form.width" style="width: 300px;" />
|
||||
<el-input v-model="form.width" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品厚度" prop="thickness">
|
||||
<el-input v-model="form.thickness" style="width: 300px;" />
|
||||
<el-input v-model="form.thickness" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="单位面积质量" prop="mass_per_unit_area">
|
||||
<el-input v-model="form.mass_per_unit_area" style="width: 300px;" />
|
||||
<el-input v-model="form.mass_per_unit_area" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="净重" prop="net_weight">
|
||||
<el-input v-model="form.net_weight" style="width: 300px;" />
|
||||
<el-input v-model="form.net_weight" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="长度" prop="length">
|
||||
<el-input v-model="form.length" style="width: 300px;" />
|
||||
<el-input v-model="form.length" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="制造完成日期" prop="date_of_production">
|
||||
<el-input v-model="form.date_of_production" style="width: 300px;" />
|
||||
<el-input v-model="form.date_of_production" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="计划外分切的子卷" prop="is_un_plan_production">
|
||||
<el-input v-model="form.is_un_plan_production" style="width: 300px;" />
|
||||
<el-input v-model="form.is_un_plan_production" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="子卷的物性值1">
|
||||
<el-input v-model="form.un_plan_product_property1" style="width: 300px;" />
|
||||
<el-input v-model="form.un_plan_product_property1" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="子卷的物性值2">
|
||||
<el-input v-model="form.un_plan_product_property2" style="width: 300px;" />
|
||||
<el-input v-model="form.un_plan_product_property2" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="子卷的物性值3">
|
||||
<el-input v-model="form.un_plan_product_property3" style="width: 300px;" />
|
||||
<el-input v-model="form.un_plan_product_property3" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="木箱料号">
|
||||
<el-input v-model="form.box_type" style="width: 300px;" />
|
||||
<el-input v-model="form.box_type" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="SAP批次" prop="sap_pcsn">
|
||||
<el-input v-model="form.sap_pcsn" style="width: 300px;" />
|
||||
<el-input v-model="form.sap_pcsn" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="是否重打外包装标签">
|
||||
<el-input v-model="form.isreprintpackageboxlabel" style="width: 300px;" />
|
||||
<el-input v-model="form.isreprintpackageboxlabel" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="是否拆包重打子卷标签">
|
||||
<el-input v-model="form.isunpackbox" style="width: 300px;" />
|
||||
<el-input v-model="form.isunpackbox" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="长" prop="box_length">
|
||||
<el-input-number v-model="form.box_length" :max="10000" :min="0" :precision="2" :controls="false" style="width: 300px;" />
|
||||
<el-input-number v-model="form.box_length" :max="10000" :min="0" :precision="2" :controls="false"
|
||||
style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="宽" prop="box_width">
|
||||
<el-input-number v-model="form.box_width" :max="10000" :min="0" :precision="2" :controls="false" style="width: 300px;" />
|
||||
<el-input-number v-model="form.box_width" :max="10000" :min="0" :precision="2" :controls="false"
|
||||
style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="高" prop="box_high">
|
||||
<el-input-number v-model="form.box_high" :max="10000" :min="0" :precision="2" :controls="false" style="width: 300px;" />
|
||||
<el-input-number v-model="form.box_high" :max="10000" :min="0" :precision="2" :controls="false"
|
||||
style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="销售订单及行号" prop="sale_order_name">
|
||||
<el-input v-model="form.sale_order_name" style="width: 300px;" />
|
||||
<el-input v-model="form.sale_order_name" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="物料主数据厚度" prop="thickness_request">
|
||||
<el-input v-model="form.thickness_request" :controls="false" style="width: 300px;" />
|
||||
<el-input v-model="form.thickness_request" :controls="false" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="要求幅宽" prop="width_standard">
|
||||
<el-input v-model="form.width_standard" style="width: 300px;" />
|
||||
<el-input v-model="form.width_standard" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="备注">
|
||||
<el-input type="textarea" :rows="2" v-model="form.remark" style="width: 750px;" />
|
||||
<el-input type="textarea" :rows="2" v-model="form.remark" style="width: 750px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -375,72 +379,94 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!--表格渲染-->
|
||||
<el-table ref="table" height v-loading="crud.loading" style="width: 100%" :data="crud.data" size="mini" @selection-change="crud.selectionChangeHandler">
|
||||
<el-table-column type="selection" />
|
||||
<el-table-column sortable prop="package_box_sn" label="木箱码" :min-width="flexWidth('package_box_sn',crud.data,'木箱码')" />
|
||||
<el-table-column prop="quanlity_in_box" label="箱内子卷数量" :min-width="flexWidth('quanlity_in_box',crud.data,'箱内子卷数量')" />
|
||||
<el-table-column prop="customer_name" label="客户编码" :min-width="flexWidth('customer_name',crud.data,'客户编码')" />
|
||||
<el-table-column prop="customer_description" label="客户名称" :min-width="flexWidth('customer_description',crud.data,'客户名称')" />
|
||||
<el-table-column prop="sale_order_name" label="销售订单及行号" :min-width="flexWidth('sale_order_name',crud.data,'销售订单及行号')" />
|
||||
<el-table-column sortable prop="container_name" label="子卷号" :min-width="flexWidth('container_name',crud.data,'子卷号')" />
|
||||
<el-table-column prop="product_name" label="产品编码" :min-width="flexWidth('product_name',crud.data,'产品描述')" />
|
||||
<el-table-column prop="product_description" label="产品描述" :min-width="flexWidth('product_description',crud.data,'产品描述')" />
|
||||
<el-table-column sortable prop="sap_pcsn" label="sap批次" :min-width="flexWidth('sap_pcsn',crud.data,'SAP批次')" />
|
||||
<el-table-column prop="width" label="产品规格(幅宽)" :min-width="flexWidth('width',crud.data,'产品规格(幅宽)')" />
|
||||
<el-table-column prop="thickness" label="产品厚度" :min-width="flexWidth('thickness',crud.data,'产品厚度')" />
|
||||
<el-table-column prop="mass_per_unit_area" label="单位面积质量" :formatter="crud.formatNum3" :min-width="flexWidth('mass_per_unit_area',crud.data,'单位面积质量')" />
|
||||
<el-table-column prop="net_weight" label="净重" :formatter="crud.formatNum3" :min-width="flexWidth('net_weight',crud.data,'净重')" />
|
||||
<el-table-column prop="length" label="长度" :formatter="crud.formatNum3" :min-width="flexWidth('length',crud.data,'长度')" />
|
||||
<el-table-column prop="date_of_production" label="制造完成日期" :min-width="flexWidth('date_of_production',crud.data,'制造完成日期')" />
|
||||
<el-table-column prop="date_of_fg_inbound" label="入库日期" :min-width="flexWidth('date_of_fg_inbound',crud.data,'入库日期')" />
|
||||
<el-table ref="table" height v-loading="crud.loading" style="width: 100%" :data="crud.data" size="mini"
|
||||
@selection-change="crud.selectionChangeHandler">
|
||||
<el-table-column type="selection"/>
|
||||
<el-table-column sortable prop="package_box_sn" label="木箱码"
|
||||
:min-width="flexWidth('package_box_sn',crud.data,'木箱码')"/>
|
||||
<el-table-column prop="quanlity_in_box" label="箱内子卷数量"
|
||||
:min-width="flexWidth('quanlity_in_box',crud.data,'箱内子卷数量')"/>
|
||||
<el-table-column prop="customer_name" label="客户编码" :min-width="flexWidth('customer_name',crud.data,'客户编码')"/>
|
||||
<el-table-column prop="customer_description" label="客户名称"
|
||||
:min-width="flexWidth('customer_description',crud.data,'客户名称')"/>
|
||||
<el-table-column prop="sale_order_name" label="销售订单及行号"
|
||||
:min-width="flexWidth('sale_order_name',crud.data,'销售订单及行号')"/>
|
||||
<el-table-column sortable prop="container_name" label="子卷号"
|
||||
:min-width="flexWidth('container_name',crud.data,'子卷号')"/>
|
||||
<el-table-column prop="product_name" label="产品编码" :min-width="flexWidth('product_name',crud.data,'产品描述')"/>
|
||||
<el-table-column prop="product_description" label="产品描述"
|
||||
:min-width="flexWidth('product_description',crud.data,'产品描述')"/>
|
||||
<el-table-column sortable prop="sap_pcsn" label="sap批次" :min-width="flexWidth('sap_pcsn',crud.data,'SAP批次')"/>
|
||||
<el-table-column prop="width" label="产品规格(幅宽)" :min-width="flexWidth('width',crud.data,'产品规格(幅宽)')"/>
|
||||
<el-table-column prop="thickness" label="产品厚度" :min-width="flexWidth('thickness',crud.data,'产品厚度')"/>
|
||||
<el-table-column prop="mass_per_unit_area" label="单位面积质量" :formatter="crud.formatNum3"
|
||||
:min-width="flexWidth('mass_per_unit_area',crud.data,'单位面积质量')"/>
|
||||
<el-table-column prop="net_weight" label="净重" :formatter="crud.formatNum3"
|
||||
:min-width="flexWidth('net_weight',crud.data,'净重')"/>
|
||||
<el-table-column prop="length" label="长度" :formatter="crud.formatNum3"
|
||||
:min-width="flexWidth('length',crud.data,'长度')"/>
|
||||
<el-table-column prop="date_of_production" label="制造完成日期"
|
||||
:min-width="flexWidth('date_of_production',crud.data,'制造完成日期')"/>
|
||||
<el-table-column prop="date_of_fg_inbound" label="入库日期"
|
||||
:min-width="flexWidth('date_of_fg_inbound',crud.data,'入库日期')"/>
|
||||
<el-table-column prop="status" label="状态" :min-width="flexWidth('status',crud.data,'状态')">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.sub_package_relation[scope.row.status] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="box_weight" label="木箱自身重量" :min-width="flexWidth('box_weight',crud.data,'木箱自身重量')" :formatter="crud.formatNum3" />
|
||||
<el-table-column prop="quality_guaran_period" label="保质期" :min-width="flexWidth('quality_guaran_period',crud.data,'保质期')" />
|
||||
<el-table-column prop="is_un_plan_production" label="计划外分切的子卷" :min-width="flexWidth('is_un_plan_production',crud.data,'计划外分切的子卷')">
|
||||
<el-table-column prop="box_weight" label="木箱自身重量" :min-width="flexWidth('box_weight',crud.data,'木箱自身重量')"
|
||||
:formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="quality_guaran_period" label="保质期"
|
||||
:min-width="flexWidth('quality_guaran_period',crud.data,'保质期')"/>
|
||||
<el-table-column prop="is_un_plan_production" label="计划外分切的子卷"
|
||||
:min-width="flexWidth('is_un_plan_production',crud.data,'计划外分切的子卷')">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.IS_OR_NOT[scope.row.is_un_plan_production] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="un_plan_product_property1" label="子卷的物性值1" :min-width="flexWidth('un_plan_product_property1',crud.data,'子卷的物性值1')" />
|
||||
<el-table-column prop="un_plan_product_property2" label="子卷的物性值2" :min-width="flexWidth('un_plan_product_property2',crud.data,'子卷的物性值2')" />
|
||||
<el-table-column prop="un_plan_product_property3" label="子卷的物性值3" :min-width="flexWidth('un_plan_product_property3',crud.data,'子卷的物性值3')" />
|
||||
<el-table-column prop="box_type" label="木箱料号" :min-width="flexWidth('box_type',crud.data,'木箱料号')" />
|
||||
<el-table-column prop="box_length" label="长" :min-width="flexWidth('box_length',crud.data,'长')" />
|
||||
<el-table-column prop="box_width" label="宽" :min-width="flexWidth('box_width',crud.data,'宽')" />
|
||||
<el-table-column prop="box_high" label="高" :min-width="flexWidth('box_high',crud.data,'高')" />
|
||||
<el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')" />
|
||||
<el-table-column prop="vbeln" label="来源交货单" :min-width="flexWidth('vbeln',crud.data,'来源交货单')" />
|
||||
<el-table-column prop="posnr" label="来源交货单行" :min-width="flexWidth('posnr',crud.data,'来源交货单行')" />
|
||||
<el-table-column prop="sale_order_description" label="销售订单描述" :min-width="flexWidth('sale_order_description',crud.data,'销售订单描述')" />
|
||||
<el-table-column prop="isreprintpackageboxlabel" label="是否需要重打外包装标签" :min-width="flexWidth('isreprintpackageboxlabel',crud.data,'是否需要重打外包装标签')">
|
||||
<el-table-column prop="un_plan_product_property1" label="子卷的物性值1"
|
||||
:min-width="flexWidth('un_plan_product_property1',crud.data,'子卷的物性值1')"/>
|
||||
<el-table-column prop="un_plan_product_property2" label="子卷的物性值2"
|
||||
:min-width="flexWidth('un_plan_product_property2',crud.data,'子卷的物性值2')"/>
|
||||
<el-table-column prop="un_plan_product_property3" label="子卷的物性值3"
|
||||
:min-width="flexWidth('un_plan_product_property3',crud.data,'子卷的物性值3')"/>
|
||||
<el-table-column prop="box_type" label="木箱料号" :min-width="flexWidth('box_type',crud.data,'木箱料号')"/>
|
||||
<el-table-column prop="box_length" label="长" :min-width="flexWidth('box_length',crud.data,'长')"/>
|
||||
<el-table-column prop="box_width" label="宽" :min-width="flexWidth('box_width',crud.data,'宽')"/>
|
||||
<el-table-column prop="box_high" label="高" :min-width="flexWidth('box_high',crud.data,'高')"/>
|
||||
<el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')"/>
|
||||
<el-table-column prop="vbeln" label="来源交货单" :min-width="flexWidth('vbeln',crud.data,'来源交货单')"/>
|
||||
<el-table-column prop="posnr" label="来源交货单行" :min-width="flexWidth('posnr',crud.data,'来源交货单行')"/>
|
||||
<el-table-column prop="sale_order_description" label="销售订单描述"
|
||||
:min-width="flexWidth('sale_order_description',crud.data,'销售订单描述')"/>
|
||||
<el-table-column prop="isreprintpackageboxlabel" label="是否需要重打外包装标签"
|
||||
:min-width="flexWidth('isreprintpackageboxlabel',crud.data,'是否需要重打外包装标签')">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.IS_OR_NOT[scope.row.isreprintpackageboxlabel] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="isunpackbox" label="是否需要拆包重打子卷标签" :min-width="flexWidth('isunpackbox',crud.data,'是否需要拆包重打子卷标签')">
|
||||
<el-table-column prop="isunpackbox" label="是否需要拆包重打子卷标签"
|
||||
:min-width="flexWidth('isunpackbox',crud.data,'是否需要拆包重打子卷标签')">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.IS_OR_NOT[scope.row.isunpackbox] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<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 v-permission="['admin','sub:edit','sub:del']" label="操作" align="center" fixed="right" min-width="120">
|
||||
<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 v-permission="['admin','sub:edit','sub:del']" label="操作" align="center" fixed="right"
|
||||
min-width="120">
|
||||
<template slot-scope="scope">
|
||||
<udOperation
|
||||
:data="scope.row"
|
||||
:permission="permission"
|
||||
:disabledEdit="scope.row.status !== '0'"
|
||||
:isVisiableDel = false
|
||||
:isVisiableDel="false"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
<pagination/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -455,14 +481,55 @@ import pagination from '@crud/Pagination'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
|
||||
const defaultForm = { workorder_id: null, package_box_sn: null, quanlity_in_box: null, box_weight: null, quality_guaran_period: null, sale_order_name: null, customer_name: null, customer_description: null, product_name: null, product_description: null, date_of_fg_inbound: null, container_name: null, width: null, thickness: null, mass_per_unit_area: null, net_weight: null, length: null, date_of_production: null, is_un_plan_production: null, un_plan_product_property1: null, un_plan_product_property2: null, un_plan_product_property3: null, box_type: null, sap_pcsn: null, remark: null, create_id: null, create_name: null, create_time: null, status: null, isreprintpackageboxlabel: null, isunpackbox: null, thickness_request: null, width_standard: null }
|
||||
const defaultForm = {
|
||||
workorder_id: null,
|
||||
package_box_sn: null,
|
||||
quanlity_in_box: null,
|
||||
box_weight: null,
|
||||
quality_guaran_period: null,
|
||||
sale_order_name: null,
|
||||
customer_name: null,
|
||||
customer_description: null,
|
||||
product_name: null,
|
||||
product_description: null,
|
||||
date_of_fg_inbound: null,
|
||||
container_name: null,
|
||||
width: null,
|
||||
thickness: null,
|
||||
mass_per_unit_area: null,
|
||||
net_weight: null,
|
||||
length: null,
|
||||
date_of_production: null,
|
||||
is_un_plan_production: null,
|
||||
un_plan_product_property1: null,
|
||||
un_plan_product_property2: null,
|
||||
un_plan_product_property3: null,
|
||||
box_type: null,
|
||||
sap_pcsn: null,
|
||||
remark: null,
|
||||
create_id: null,
|
||||
create_name: null,
|
||||
create_time: null,
|
||||
status: null,
|
||||
isreprintpackageboxlabel: null,
|
||||
isunpackbox: null,
|
||||
thickness_request: null,
|
||||
width_standard: null
|
||||
}
|
||||
export default {
|
||||
name: 'Subpackagerelation',
|
||||
dicts: ['sub_package_relation', 'IS_OR_NOT'],
|
||||
components: { pagination, crudOperation, rrOperation, udOperation },
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
cruds() {
|
||||
return CRUD({ title: '子卷包装关系', url: 'api/subpackagerelation', idField: 'workorder_id', sort: 'workorder_id,desc', crudMethod: { ...crudSubpackagerelation }})
|
||||
return CRUD({
|
||||
title: '子卷包装关系',
|
||||
optShow: { add: true, edit: false, del: false },
|
||||
url: 'api/subpackagerelation',
|
||||
idField: 'workorder_id',
|
||||
sort: 'workorder_id,desc',
|
||||
crudMethod: { ...crudSubpackagerelation }
|
||||
})
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -475,6 +542,7 @@ export default {
|
||||
{ 'label': '是', 'value': '1' },
|
||||
{ 'label': '否', 'value': '0' }
|
||||
],
|
||||
|
||||
rules: {
|
||||
customer_description: [
|
||||
{ required: true, message: '客户名称不能为空', trigger: 'blur' }
|
||||
@@ -539,7 +607,8 @@ export default {
|
||||
status: [
|
||||
{ required: true, message: '状态不能为空', trigger: 'blur' }
|
||||
]
|
||||
}}
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
|
||||
@@ -138,10 +138,10 @@
|
||||
<el-table-column prop="pcsn" label="批次号" align="center" />
|
||||
<el-table-column prop="box_no" label="载具号" align="center" />
|
||||
<el-table-column prop="plan_qty" :formatter="crud.formatNum3" label="重量" align="center" />
|
||||
<el-table-column prop="start_point_code" label="起始位置" align="center" />
|
||||
<el-table-column prop="next_point_code" label="目的位置" align="center" />
|
||||
<el-table-column prop="next_point_code" label="起始位置" align="center" />
|
||||
<el-table-column prop="struct_code" label="目的位置" align="center" />
|
||||
<el-table-column prop="task_code" label="任务号" align="center" />
|
||||
<el-table-column prop="taskdtl_type" label="任务类型" align="center" width="150px" :formatter="taskdtl_typeFormat" />
|
||||
<el-table-column prop="task_type_name" label="任务类型" align="center" width="150px" />
|
||||
</el-table>
|
||||
</el-card>
|
||||
</el-dialog>
|
||||
|
||||
Reference in New Issue
Block a user