合并master1到0523
This commit is contained in:
@@ -162,7 +162,7 @@ public class ProductInstorServiceImpl implements ProductInstorService {
|
||||
//判断明细数组中箱号与扫码的箱子是否一致,不一致让客户重新扫码
|
||||
if (ObjectUtil.isNotEmpty(package_box_sn)) {
|
||||
if (!box_no.equals(package_box_sn)) {
|
||||
throw new BadRequestException("扫码箱号:"+box_no+"与明细数据中箱号:"+package_box_sn+"不一致,请重新扫码操作!");
|
||||
throw new BadRequestException("扫码箱号:" + box_no + "与明细数据中箱号:" + package_box_sn + "不一致,请重新扫码操作!");
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < box_rows.size(); i++) {
|
||||
@@ -216,36 +216,39 @@ public class ProductInstorServiceImpl implements ProductInstorService {
|
||||
double box_weight = sub_jo.getDoubleValue("box_weight");
|
||||
// 木箱实称重重量
|
||||
double real_weight = sub_jo.getDoubleValue("real_weight");
|
||||
|
||||
if (ObjectUtil.isEmpty(sub_jo.getString("real_weight"))) {
|
||||
throw new BadRequestException("请先进行木箱称重校验!");
|
||||
//一楼是否异常
|
||||
String one_exc_param = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode("one_exc_param").getValue();
|
||||
if (!"1".equals(one_exc_param)) {
|
||||
if (ObjectUtil.isEmpty(sub_jo.getString("real_weight"))) {
|
||||
throw new BadRequestException("请先进行木箱称重校验!");
|
||||
}
|
||||
}
|
||||
|
||||
// 判断木箱毛重是否超标
|
||||
if (NumberUtil.sub(box_weight, weight_sys) <= real_weight && NumberUtil.add(box_weight, weight_sys) >= real_weight) {
|
||||
} else {
|
||||
//调用ACS让对应蜂鸣器报警
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("code", "to_command");
|
||||
param.put("product_area", "LK");
|
||||
param.put("value", "99");
|
||||
param.put("device_code", point_code);
|
||||
JSONArray rows = new JSONArray();
|
||||
rows.add(param);
|
||||
WmsToAcsService wmsToAcsService = SpringContextHolder.getBean(WmsToAcsService.class);
|
||||
wmsToAcsService.action(rows);
|
||||
if (!"1".equals(one_exc_param)) {
|
||||
//调用ACS让对应蜂鸣器报警
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("code", "to_command");
|
||||
param.put("product_area", "LK");
|
||||
param.put("value", "99");
|
||||
param.put("device_code", point_code);
|
||||
JSONArray rows = new JSONArray();
|
||||
rows.add(param);
|
||||
WmsToAcsService wmsToAcsService = SpringContextHolder.getBean(WmsToAcsService.class);
|
||||
wmsToAcsService.action(rows);
|
||||
|
||||
//判断is_pass是否为空,如果为空则通知飞书,不为空判断:为0则不允许通过,为1则允许
|
||||
if (ObjectUtil.isEmpty(sub_jo.getString("is_pass")) || sub_jo.getString("is_pass").equals(IOSEnum.IS_NOTANDYES.code("否")) ) {
|
||||
// 通知飞书
|
||||
notifyMes(sub_jo);
|
||||
throw new BadRequestException("重量不合格!系统重量浮动超过" + weight_sys + "KG,当前木箱称重重量:" + real_weight + ",已通知飞书处理!");
|
||||
} else {
|
||||
if (sub_jo.getString("is_pass").equals(IOSEnum.IS_NOTANDYES.code("否"))) {
|
||||
throw new BadRequestException("请等待放行!");
|
||||
//判断is_pass是否为空,如果为空则通知飞书,不为空判断:为0则不允许通过,为1则允许
|
||||
if (ObjectUtil.isEmpty(sub_jo.getString("is_pass")) || sub_jo.getString("is_pass").equals(IOSEnum.IS_NOTANDYES.code("否"))) {
|
||||
// 通知飞书
|
||||
notifyMes(sub_jo);
|
||||
throw new BadRequestException("重量不合格!系统重量浮动超过" + weight_sys + "KG,当前木箱称重重量:" + real_weight + ",已通知飞书处理!");
|
||||
} else {
|
||||
if (sub_jo.getString("is_pass").equals(IOSEnum.IS_NOTANDYES.code("否"))) {
|
||||
throw new BadRequestException("请等待放行!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//判断是该包装计划是否存在长宽高
|
||||
@@ -371,7 +374,9 @@ public class ProductInstorServiceImpl implements ProductInstorService {
|
||||
|
||||
form.put("vehicle_code", box_no);
|
||||
form.put("task_type", "010507");
|
||||
cutConveyorTask.createTask(form);
|
||||
if (!"1".equals(one_exc_param)) {
|
||||
cutConveyorTask.createTask(form);
|
||||
}
|
||||
} else {
|
||||
/*
|
||||
* 如果有实际重量则需要判断重量是否超标
|
||||
@@ -413,13 +418,13 @@ public class ProductInstorServiceImpl implements ProductInstorService {
|
||||
.uniqueResult(0);
|
||||
|
||||
if ("XN01".equals(jsonObject.getString("sect_code"))) {
|
||||
whereJson.put("sect_id","1712667908095741952");
|
||||
whereJson.put("sect_id", "1712667908095741952");
|
||||
}
|
||||
if ("XN02".equals(jsonObject.getString("sect_code"))) {
|
||||
whereJson.put("sect_id","1760184056861036544");
|
||||
whereJson.put("sect_id", "1760184056861036544");
|
||||
}
|
||||
if ("TH01".equals(jsonObject.getString("sect_code"))) {
|
||||
whereJson.put("sect_id","1760183817781514240");
|
||||
whereJson.put("sect_id", "1760183817781514240");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -686,7 +691,7 @@ public class ProductInstorServiceImpl implements ProductInstorService {
|
||||
JSONObject data = jsonObject.getJSONArray("data").getJSONObject(0);
|
||||
double weight_now = NumberUtil.div(data.getDoubleValue("weight"), 10);
|
||||
if (data.getDoubleValue("weight") <= 0) {
|
||||
throw new BadRequestException("当前称重重量有误,请检查!当前称重重量为【"+weight_now+"】");
|
||||
throw new BadRequestException("当前称重重量有误,请检查!当前称重重量为【" + weight_now + "】");
|
||||
}
|
||||
|
||||
// 获取系统参数1
|
||||
|
||||
@@ -3149,7 +3149,8 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
+ "' and row_num = '" + jsonRow.getString("row_num") + "' and is_used = '1' and is_delete = '0' and lock_type not in ('1','6','3')").getResultJSONArray(0);
|
||||
|
||||
if (ObjectUtil.isNotEmpty(structArr)) {
|
||||
throw new BadRequestException("有其他任务正在执行中,请稍后在试!");
|
||||
JSONObject jsonObject = structArr.getJSONObject(0);
|
||||
throw new BadRequestException("当前排存在单据号为【"+jsonObject.getString("inv_code")+"】的仓位【"+jsonObject.getString("struct_code")+"】正在执行任务,请稍后在试!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -407,6 +407,8 @@ public class OutBillQueryServiceImpl implements OutBillQueryService {
|
||||
mp.put("物流公司", json.getString("cust_name"));
|
||||
mp.put("运费", json.getString("estimated_freight"));
|
||||
mp.put("木箱号", json.getString("box_no"));
|
||||
mp.put("木箱编码", json.getString("box_material_code"));
|
||||
mp.put("木箱描述", json.getString("box_material_name"));
|
||||
mp.put("物料编码", json.getString("material_code"));
|
||||
mp.put("物料名称", json.getString("material_name"));
|
||||
mp.put("子卷号", json.getString("pcsn"));
|
||||
|
||||
@@ -266,6 +266,8 @@
|
||||
base.cust_name,
|
||||
dis.sect_name,
|
||||
dis.box_no,
|
||||
sub.box_type box_material_code,
|
||||
mmm.material_name box_material_name,
|
||||
dis.qty_unit_name,
|
||||
mater.material_code,
|
||||
mater.material_name,
|
||||
@@ -327,6 +329,7 @@
|
||||
record.bill_code,
|
||||
record.container_name,
|
||||
record.package_box_sn,
|
||||
record.box_type,
|
||||
record.sap_pcsn,
|
||||
max(record.customer_name) as customer_name,
|
||||
max(record.customer_description) as customer_description,
|
||||
@@ -350,7 +353,9 @@
|
||||
record.bill_code,
|
||||
record.container_name,
|
||||
record.sap_pcsn,
|
||||
record.package_box_sn) sub ON (sub.container_name = dis.pcsn AND sub.package_box_sn = dis.box_no AND sub.bill_id = mst.iostorinv_id)
|
||||
record.package_box_sn,
|
||||
record.box_type) sub ON (sub.container_name = dis.pcsn AND sub.package_box_sn = dis.box_no AND sub.bill_id = mst.iostorinv_id)
|
||||
LEFT JOIN md_me_materialbase mmm ON sub.box_type = mmm.material_code
|
||||
LEFT JOIN md_cs_customerbase cust ON cust.cust_code = sub.customer_name
|
||||
LEFT JOIN (SELECT
|
||||
container_name,
|
||||
@@ -385,6 +390,8 @@
|
||||
base.cust_name,
|
||||
dis.sect_name,
|
||||
dis.box_no,
|
||||
sub.box_type box_material_code,
|
||||
mmm.material_name box_material_name,
|
||||
dis.qty_unit_name,
|
||||
mater.material_code,
|
||||
mater.material_name,
|
||||
@@ -446,6 +453,7 @@
|
||||
record.bill_code,
|
||||
record.container_name,
|
||||
record.package_box_sn,
|
||||
record.box_type,
|
||||
record.sap_pcsn,
|
||||
max(record.customer_name) as customer_name,
|
||||
max(record.customer_description) as customer_description,
|
||||
@@ -469,7 +477,9 @@
|
||||
record.bill_code,
|
||||
record.container_name,
|
||||
record.sap_pcsn,
|
||||
record.package_box_sn) sub ON (sub.container_name = dis.pcsn AND sub.package_box_sn = dis.box_no AND sub.bill_id = mst.iostorinv_id)
|
||||
record.package_box_sn,
|
||||
record.box_type) sub ON (sub.container_name = dis.pcsn AND sub.package_box_sn = dis.box_no AND sub.bill_id = mst.iostorinv_id)
|
||||
LEFT JOIN md_me_materialbase mmm ON sub.box_type = mmm.material_code
|
||||
LEFT JOIN md_cs_customerbase cust ON cust.cust_code = sub.customer_name
|
||||
LEFT JOIN (SELECT
|
||||
container_name,
|
||||
|
||||
@@ -178,53 +178,6 @@
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表单组件-->
|
||||
<el-dialog
|
||||
title="子卷步序信息"
|
||||
append-to-body
|
||||
:visible.sync="dtlVisible"
|
||||
destroy-on-close
|
||||
width="1000px"
|
||||
>
|
||||
<!--表格渲染-->
|
||||
<el-table
|
||||
:data="childrenList"
|
||||
>
|
||||
<el-table-column prop="container_name" label="子卷号" show-overflow-tooltip width="210px" />
|
||||
<el-table-column prop="spec" label="步序" show-overflow-tooltip width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.subSpec[scope.row.spec] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="result" label="执行结果" show-overflow-tooltip width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.result.toString() }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="param" label="执行参数" show-overflow-tooltip width="150" />
|
||||
<el-table-column prop="msg" label="备注" show-overflow-tooltip width="150" />
|
||||
<el-table-column prop="create_time" label="创建时间">
|
||||
<template slot-scope="scope">
|
||||
{{ new Date(scope.row.create_time).toLocaleString() }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作">
|
||||
<template scope="scope">
|
||||
<el-button
|
||||
v-if="scope.row.result==false && scope.row.url"
|
||||
type="danger"
|
||||
class="filter-item"
|
||||
size="mini"
|
||||
icon="el-icon-position"
|
||||
@click.native.prevent="syncMes(scope.row)"
|
||||
>同步</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dtlVisible = false">取 消</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
<el-dialog
|
||||
:close-on-click-modal="false"
|
||||
:before-close="crud.cancelCU"
|
||||
@@ -236,19 +189,31 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="木箱唯一码" prop="package_box_sn">
|
||||
<el-input v-model="form.package_box_sn" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.package_box_sn"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
style="width: 300px;"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="箱内子卷数量">
|
||||
<el-input v-model="form.quanlity_in_box" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.quanlity_in_box"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.box_weight"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
style="width: 300px;"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@@ -260,120 +225,200 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="客户编码" prop="customer_name">
|
||||
<el-input v-model="form.customer_name" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.customer_name"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.customer_description"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.product_name"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.product_description"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.date_of_fg_inbound"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.container_name"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.width"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
style="width: 300px;"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品厚度" prop="thickness">
|
||||
<el-input v-model="form.thickness" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.thickness"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.mass_per_unit_area"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.net_weight"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.length"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.date_of_production"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.is_un_plan_production"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.un_plan_product_property1"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.un_plan_product_property2"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.un_plan_product_property3"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.box_type"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.sap_pcsn"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.isreprintpackageboxlabel"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
style="width: 300px;"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="是否拆包重打子卷标签">
|
||||
<el-input v-model="form.isunpackbox" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.isunpackbox"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
style="width: 300px;"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -418,33 +463,56 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="销售订单及行号" prop="sale_order_name">
|
||||
<el-input v-model="form.sale_order_name" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.sale_order_name"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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" :disabled="crud.status.edit > 0 && form.status !== '0'" :controls="false" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.thickness_request"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
: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" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.width_standard"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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.quality_guaran_period" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;" />
|
||||
<el-input
|
||||
v-model="form.quality_guaran_period"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
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.remark" type="textarea" :rows="2" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 750px;" />
|
||||
<el-input
|
||||
v-model="form.remark"
|
||||
type="textarea"
|
||||
:rows="2"
|
||||
:disabled="crud.status.edit > 0 && form.status !== '0'"
|
||||
style="width: 750px;"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -476,7 +544,11 @@
|
||||
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_name"
|
||||
label="客户编码"
|
||||
:min-width="flexWidth('customer_name',crud.data,'客户编码')"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="customer_description"
|
||||
label="客户名称"
|
||||
@@ -492,20 +564,34 @@
|
||||
prop="container_name"
|
||||
label="子卷号"
|
||||
:min-width="flexWidth('container_name',crud.data,'子卷号')"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="warning" @click="toView(scope.row.container_name)">{{ scope.row.container_name }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="product_name" label="产品编码" :min-width="flexWidth('product_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="width_standard" :formatter="crud.formatNum1" label="客户要求幅宽" :min-width="flexWidth('width_standard',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="width_standard"
|
||||
:formatter="crud.formatNum0"
|
||||
label="客户要求幅宽"
|
||||
:min-width="flexWidth('width_standard',crud.data,'客户要求幅宽')"
|
||||
/>
|
||||
<el-table-column prop="thickness" label="产品厚度" :min-width="flexWidth('thickness',crud.data,'产品厚度')" />
|
||||
<el-table-column
|
||||
prop="mass_per_unit_area"
|
||||
@@ -584,9 +670,21 @@
|
||||
<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="demand_limit" label="客户需求抗拉下限" :min-width="flexWidth('demand_limit',crud.data,'客户需求抗拉下限')" />
|
||||
<el-table-column prop="standard_limit" label="内控标准抗拉下限" :min-width="flexWidth('standard_limit',crud.data,'内控标准抗拉下限')" />
|
||||
<el-table-column prop="actual_value" label="生产实际抗拉值" :min-width="flexWidth('actual_value',crud.data,'生产实际抗拉值')" />
|
||||
<el-table-column
|
||||
prop="demand_limit"
|
||||
label="客户需求抗拉下限"
|
||||
:min-width="flexWidth('demand_limit',crud.data,'客户需求抗拉下限')"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="standard_limit"
|
||||
label="内控标准抗拉下限"
|
||||
:min-width="flexWidth('standard_limit',crud.data,'内控标准抗拉下限')"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="actual_value"
|
||||
label="生产实际抗拉值"
|
||||
:min-width="flexWidth('actual_value',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,'来源交货单行')" />
|
||||
@@ -614,7 +712,11 @@
|
||||
</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
|
||||
prop="create_time"
|
||||
label="创建时间"
|
||||
:min-width="flexWidth('create_time',crud.data,'创建时间')"
|
||||
/>
|
||||
<el-table-column
|
||||
v-permission="['admin','sub:edit','sub:del']"
|
||||
label="操作"
|
||||
@@ -647,8 +749,6 @@ import pagination from '@crud/Pagination'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
|
||||
import crudPastivtquery from '@/views/wms/stat/pastivt/pastivtquery'
|
||||
import { format } from 'date-fns'
|
||||
|
||||
const defaultForm = {
|
||||
workorder_id: null,
|
||||
@@ -688,7 +788,7 @@ const defaultForm = {
|
||||
}
|
||||
export default {
|
||||
name: 'Subpackagerelation',
|
||||
dicts: ['sub_package_relation', 'IS_OR_NOT', 'subSpec'],
|
||||
dicts: ['sub_package_relation', 'IS_OR_NOT'],
|
||||
components: { pagination, crudOperation, rrOperation, udOperation },
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
cruds() {
|
||||
@@ -703,8 +803,6 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dtlVisible: false,
|
||||
childrenList: [],
|
||||
permission: {
|
||||
add: ['admin', 'sub:add'],
|
||||
edit: ['admin', 'sub:edit'],
|
||||
@@ -794,28 +892,10 @@ export default {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
return true
|
||||
},
|
||||
toView(data) {
|
||||
crudPastivtquery.subRecord(data).then(res => {
|
||||
if (res) {
|
||||
this.dtlVisible = true
|
||||
this.childrenList = res
|
||||
}
|
||||
})
|
||||
[CRUD.HOOK.beforeSubmit](row) {
|
||||
this.$delete(row.form, 'status')
|
||||
return true
|
||||
},
|
||||
async syncMes(row) {
|
||||
const url = 'http://10.1.3.36:8081/' + row.url
|
||||
const response = await fetch(url, {
|
||||
method: 'POST', // *GET, POST, PUT, DELETE, etc.
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
// 'Content-Type': 'application/x-www-form-urlencoded',
|
||||
},
|
||||
body: row.param // body 数据类型必须与“Content-Type”头匹配
|
||||
})
|
||||
const data = await response.json()
|
||||
window.alert(JSON.stringify(data))
|
||||
},
|
||||
|
||||
initQuery() {
|
||||
const end = new Date()
|
||||
const start = new Date()
|
||||
|
||||
@@ -183,8 +183,8 @@
|
||||
<el-checkbox v-if="mstrow.stor_id !== '1582991156504039455'" v-model="checked">是否异常出库</el-checkbox>
|
||||
</el-form-item>
|
||||
<el-form-item label="超期发货:" prop="is_overdue">
|
||||
<el-radio v-model="rowmst.is_overdue" label="1" :disabled="rowmst.bill_status === '40'" @change="updataIsOverdue">不发超期</el-radio>
|
||||
<el-radio v-model="rowmst.is_overdue" label="0" :disabled="rowmst.bill_status === '40'" @change="updataIsOverdue">发超期</el-radio>
|
||||
<el-radio v-model="rowmst.is_overdue" label="0" :disabled="rowmst.bill_status === '40'" @change="updataIsOverdue">不发超期</el-radio>
|
||||
<el-radio v-model="rowmst.is_overdue" label="1" :disabled="rowmst.bill_status === '40'" @change="updataIsOverdue">发超期</el-radio>
|
||||
</el-form-item>
|
||||
<!--<el-form-item label="超期数量:" prop="assign_qty" v-if="rowmst.is_overdue === '1'">
|
||||
<el-input-number
|
||||
|
||||
@@ -118,6 +118,8 @@
|
||||
<el-table-column show-overflow-tooltip prop="cust_name" label="物流公司" :min-width="flexWidth('cust_name',crud.data,'物流公司')" />
|
||||
<el-table-column show-overflow-tooltip prop="estimatedd_freight" label="运费" :formatter="crud.formatNum2" :min-width="flexWidth('estimated_freight',crud.data,'运费')" />
|
||||
<el-table-column show-overflow-tooltip prop="box_no" label="木箱号" :min-width="flexWidth('box_no',crud.data,'木箱号')" />
|
||||
<el-table-column show-overflow-tooltip prop="box_material_code" label="木箱编码" :min-width="flexWidth('box_material_code',crud.data,'木箱编码')" />
|
||||
<el-table-column show-overflow-tooltip prop="box_material_name" label="木箱描述" :min-width="flexWidth('box_material_name',crud.data,'木箱描述')" />
|
||||
<el-table-column show-overflow-tooltip prop="material_code" label="物料编码" :min-width="flexWidth('material_code',crud.data,'物料编码')" />
|
||||
<el-table-column show-overflow-tooltip prop="material_name" label="物料名称" :min-width="flexWidth('material_name',crud.data,'物料名称')" />
|
||||
<el-table-column show-overflow-tooltip prop="pcsn" label="子卷号" :min-width="flexWidth('pcsn',crud.data,'子卷号')" />
|
||||
|
||||
Reference in New Issue
Block a user