代码更新
This commit is contained in:
@@ -96,11 +96,9 @@
|
|||||||
IF 输入.flag = "3"
|
IF 输入.flag = "3"
|
||||||
PAGEQUERY
|
PAGEQUERY
|
||||||
SELECT
|
SELECT
|
||||||
point.*,
|
point.*
|
||||||
region.region_name
|
|
||||||
FROM
|
FROM
|
||||||
sch_base_point point
|
sch_base_point point
|
||||||
LEFT JOIN sch_base_region region ON point.region_id = region.region_id
|
|
||||||
WHERE
|
WHERE
|
||||||
point.lock_type = '00'
|
point.lock_type = '00'
|
||||||
AND point.is_used = '1'
|
AND point.is_used = '1'
|
||||||
|
|||||||
@@ -458,6 +458,7 @@ public class StorPublicServiceImpl implements StorPublicService {
|
|||||||
map.put("inv_type","");
|
map.put("inv_type","");
|
||||||
map.put("inv_id","");
|
map.put("inv_id","");
|
||||||
map.put("inv_code","");
|
map.put("inv_code","");
|
||||||
|
map.put("point_status","00");
|
||||||
//是否清空载具
|
//是否清空载具
|
||||||
if("1".equals(from.getString("is_free"))){
|
if("1".equals(from.getString("is_free"))){
|
||||||
map.put("storagevehicle_code","");
|
map.put("storagevehicle_code","");
|
||||||
|
|||||||
@@ -399,7 +399,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
dtl.put("storagevehicle_type", ivt.getString("storagevehicle_type"));
|
dtl.put("storagevehicle_type", ivt.getString("storagevehicle_type"));
|
||||||
dtl.put("is_issued", "0");
|
dtl.put("is_issued", "0");
|
||||||
dtl.put("plan_qty", ivt.getDoubleValue("change_qty"));
|
dtl.put("plan_qty", ivt.getDoubleValue("change_qty"));
|
||||||
dtl.put("real_qty", "0");
|
dtl.put("real_qty", ivt.getDoubleValue("change_qty"));
|
||||||
wo_dis.insert(dtl);
|
wo_dis.insert(dtl);
|
||||||
//记录需锁定的仓位
|
//记录需锁定的仓位
|
||||||
Struct_map.put(ivt.getString("struct_id"), ivt);
|
Struct_map.put(ivt.getString("struct_id"), ivt);
|
||||||
@@ -574,9 +574,9 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
}
|
}
|
||||||
JSONObject point = wo_Point.query("lock_type='00' and (vehicle_code='' or vehicle_code IS NULL) and point_code='" + point_code + "'").uniqueResult(0);
|
JSONObject point = wo_Point.query("lock_type='00' and (vehicle_code='' or vehicle_code IS NULL) and point_code='" + point_code + "'").uniqueResult(0);
|
||||||
//如果终点站点被锁定或者有载具号,则不允许设置点位
|
//如果终点站点被锁定或者有载具号,则不允许设置点位
|
||||||
if (ObjectUtil.isEmpty(point)) {
|
/* if (ObjectUtil.isEmpty(point)) {
|
||||||
throw new BadRequestException("该站点被锁定或者有载具号,不允许设置!");
|
throw new BadRequestException("该站点被锁定或者有载具号,不允许设置!");
|
||||||
}
|
}*/
|
||||||
//查询未生成和生成未下发的分配记录
|
//查询未生成和生成未下发的分配记录
|
||||||
JSONArray diss = WQL.getWO("QST_IVT_CHECKOUTBILL")
|
JSONArray diss = WQL.getWO("QST_IVT_CHECKOUTBILL")
|
||||||
.addParam("flag", "5")
|
.addParam("flag", "5")
|
||||||
@@ -619,22 +619,19 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
task = new JSONObject();
|
task = new JSONObject();
|
||||||
task_id = IdUtil.getSnowflake(1, 1).nextId() + "";
|
task_id = IdUtil.getSnowflake(1, 1).nextId() + "";
|
||||||
String task_code = CodeUtil.getNewCode("TASK_CODE");
|
String task_code = CodeUtil.getNewCode("TASK_CODE");
|
||||||
task.put("taskdtl_id", task_id);
|
|
||||||
task.put("task_id", task_id);
|
task.put("task_id", task_id);
|
||||||
task.put("task_code", task_code);
|
task.put("task_code", task_code);
|
||||||
task.put("task_type", "02");
|
task.put("task_type", "02");
|
||||||
//默认拣选
|
|
||||||
task.put("taskdtl_type", "05");
|
|
||||||
//根据可用数是否为0设置拣选还是全出
|
//根据可用数是否为0设置拣选还是全出
|
||||||
boolean flag = this.canuse_is_zero(dis.getString("struct_code"));
|
boolean flag = this.canuse_is_zero(dis.getString("struct_code"));
|
||||||
if (flag) {
|
if (flag) {
|
||||||
task.put("taskdtl_type", "02");
|
task.put("task_type", "02");
|
||||||
}
|
}
|
||||||
task.put("task_status", "01");
|
task.put("task_status", "01");
|
||||||
task.put("start_point_code", dis.getString("start_point_code"));
|
task.put("point_code1", dis.getString("struct_code"));
|
||||||
task.put("next_point_code", point.getString("point_code"));
|
task.put("point_code2", point.getString("point_code"));
|
||||||
task.put("vehicle_code", dis.getString("storagevehicle_code"));
|
// task.put("vehicle_code", dis.getString("storagevehicle_code"));
|
||||||
task.put("handle_class", "");
|
task.put("handle_class", CheckOutBillServiceImpl.class.getName());
|
||||||
task.put("finished_type", "");
|
task.put("finished_type", "");
|
||||||
task.put("is_delete", "0");
|
task.put("is_delete", "0");
|
||||||
task.put("create_id", currentUserId);
|
task.put("create_id", currentUserId);
|
||||||
@@ -650,20 +647,20 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
map.put("work_status", "01");
|
map.put("work_status", "01");
|
||||||
map.put("task_id", task_id);
|
map.put("task_id", task_id);
|
||||||
map.put("point_id", point.getString("point_id"));
|
map.put("point_id", point.getString("point_id"));
|
||||||
map.put("point_code", point.getString("point_code"));
|
// map.put("point_code", point.getString("point_code"));
|
||||||
map.put("point_name", point.getString("point_name"));
|
// map.put("point_name", point.getString("point_name"));
|
||||||
wo_dis.update(map, "iostorinv_id='" + iostorinv_id + "' and storagevehicle_code='" + storagevehicle_code + "'");
|
wo_dis.update(map, "iostorinv_id='" + iostorinv_id + "' and storagevehicle_code='" + storagevehicle_code + "'");
|
||||||
//锁定点位仓位
|
//锁定点位仓位
|
||||||
JSONObject from_end = new JSONObject();
|
/* JSONObject from_end = new JSONObject();
|
||||||
from_end.put("point_code", point.getString("point_code"));
|
from_end.put("point_code", point.getString("point_code"));
|
||||||
from_end.put("lock_type", "01");
|
from_end.put("lock_type", "01");
|
||||||
from_end.put("inv_type", jo_mst.getString("bill_type"));
|
from_end.put("inv_type", jo_mst.getString("bill_type"));
|
||||||
from_end.put("inv_id", jo_mst.getString("iostorinv_id"));
|
from_end.put("inv_id", jo_mst.getString("iostorinv_id"));
|
||||||
from_end.put("inv_code", jo_mst.getString("bill_code"));
|
from_end.put("inv_code", jo_mst.getString("bill_code"));
|
||||||
from_end.put("taskdtl_type", task.getString("taskdtl_type"));
|
from_end.put("taskdtl_type", task.getString("task_type"));
|
||||||
from_end.put("taskdtl_id", task.getString("taskdtl_id"));
|
from_end.put("taskdtl_id", task.getString("task_id"));
|
||||||
from_end.put("task_code", task.getString("task_code"));
|
from_end.put("task_code", task.getString("task_code"));
|
||||||
storPublicService.updateStructAndPoint(from_end);
|
storPublicService.updateStructAndPoint(from_end);*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -756,7 +753,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
dtl.put("storagevehicle_type", ivt.getString("storagevehicle_type"));
|
dtl.put("storagevehicle_type", ivt.getString("storagevehicle_type"));
|
||||||
dtl.put("is_issued", "0");
|
dtl.put("is_issued", "0");
|
||||||
dtl.put("plan_qty", ivt.getDoubleValue("change_qty"));
|
dtl.put("plan_qty", ivt.getDoubleValue("change_qty"));
|
||||||
dtl.put("real_qty", "0");
|
dtl.put("real_qty", ivt.getDoubleValue("change_qty"));
|
||||||
wo_dis.insert(dtl);
|
wo_dis.insert(dtl);
|
||||||
//记录需锁定的仓位
|
//记录需锁定的仓位
|
||||||
Struct_map.put(ivt.getString("struct_id"), ivt);
|
Struct_map.put(ivt.getString("struct_id"), ivt);
|
||||||
@@ -865,7 +862,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
double plan_qty = dis.getDoubleValue("plan_qty");
|
double plan_qty = dis.getDoubleValue("plan_qty");
|
||||||
double real_qty = dis.getDoubleValue("real_qty");
|
double real_qty = dis.getDoubleValue("real_qty");
|
||||||
//全出判断是否全出
|
//全出判断是否全出
|
||||||
if ("02".equals(dis.getString("taskdtl_type"))) {
|
if ("02".equals(dis.getString("task_type"))) {
|
||||||
if (plan_qty != real_qty) {
|
if (plan_qty != real_qty) {
|
||||||
throw new BadRequestException(dis.getString("storagevehicle_code") + "全出载具未完成出库!");
|
throw new BadRequestException(dis.getString("storagevehicle_code") + "全出载具未完成出库!");
|
||||||
}
|
}
|
||||||
@@ -897,10 +894,11 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
}
|
}
|
||||||
storPublicService.updateStructAndPoint(from_start);
|
storPublicService.updateStructAndPoint(from_start);
|
||||||
//解锁终点
|
//解锁终点
|
||||||
JSONObject from_end = new JSONObject();
|
/* JSONObject from_end = new JSONObject();
|
||||||
from_end.put("point_code", dis.getString("point_code"));
|
from_end.put("point_code", dis.getString("point_code"));
|
||||||
|
from_end.put("struct_id", dis.getString("source_id"));
|
||||||
from_end.put("lock_type", "00");
|
from_end.put("lock_type", "00");
|
||||||
storPublicService.updateStructAndPoint(from_end);
|
storPublicService.updateStructAndPoint(from_end);*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -950,20 +948,19 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
WQLObject wo_dtl = WQLObject.getWQLObject("st_ivt_iostorinvdtl");
|
WQLObject wo_dtl = WQLObject.getWQLObject("st_ivt_iostorinvdtl");
|
||||||
//任务表
|
//任务表
|
||||||
WQLObject wo_Task = WQLObject.getWQLObject("SCH_BASE_Task");
|
WQLObject wo_Task = WQLObject.getWQLObject("SCH_BASE_Task");
|
||||||
String taskdtl_id = whereJson.getString("taskdtl_id");
|
String task_id = whereJson.getString("task_id");
|
||||||
|
|
||||||
Long currentUserId = SecurityUtils.getCurrentUserId();
|
Long currentUserId = SecurityUtils.getCurrentUserId();
|
||||||
String nickName = SecurityUtils.getCurrentNickName();
|
String nickName = SecurityUtils.getCurrentNickName();
|
||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
|
|
||||||
JSONObject task = wo_Task.query("task_status<>'99' and taskdtl_id='" + taskdtl_id + "'").uniqueResult(0);
|
JSONObject task = wo_Task.query("task_status<>'99' and task_id='" + task_id + "'").uniqueResult(0);
|
||||||
|
|
||||||
if (task == null) {
|
if (task == null) {
|
||||||
throw new BadRequestException("查询不到操作的任务记录!");
|
throw new BadRequestException("查询不到操作的任务记录!");
|
||||||
}
|
}
|
||||||
|
|
||||||
String taskdtl_type = task.getString("taskdtl_type");
|
String task_type = task.getString("task_type");
|
||||||
String task_id = task.getString("task_id");
|
|
||||||
JSONObject dtljo = wo_dis.query("task_id='" + task_id + "'").uniqueResult(0);
|
JSONObject dtljo = wo_dis.query("task_id='" + task_id + "'").uniqueResult(0);
|
||||||
whereJson.put("iostorinv_id", dtljo.getString("iostorinv_id"));
|
whereJson.put("iostorinv_id", dtljo.getString("iostorinv_id"));
|
||||||
HashMap<String, String> map = new HashMap<>();
|
HashMap<String, String> map = new HashMap<>();
|
||||||
@@ -973,12 +970,12 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
map.put("update_optid", currentUserId + "");
|
map.put("update_optid", currentUserId + "");
|
||||||
map.put("update_optname", nickName);
|
map.put("update_optname", nickName);
|
||||||
map.put("update_time", now);
|
map.put("update_time", now);
|
||||||
wo_Task.update(map, "taskdtl_id='" + taskdtl_id + "'");
|
wo_Task.update(map, "task_id='" + task_id + "'");
|
||||||
if ("05".equals(taskdtl_type)) {//拣选出库
|
/* if ("05".equals(task_type)) {//拣选出库
|
||||||
//更新分配表
|
//更新分配表
|
||||||
map.put("work_status", "02");
|
map.put("work_status", "02");
|
||||||
wo_dis.update(map, "task_id='" + task_id + "'");
|
wo_dis.update(map, "task_id='" + task_id + "'");
|
||||||
} else if ("06".equals(taskdtl_type)) {//拣选回库
|
} else if ("06".equals(task_type)) {//拣选回库
|
||||||
map.put("work_status", "99");
|
map.put("work_status", "99");
|
||||||
wo_dis.update(map, "task_id='" + task_id + "'");
|
wo_dis.update(map, "task_id='" + task_id + "'");
|
||||||
//判断是否还有未完成的明细
|
//判断是否还有未完成的明细
|
||||||
@@ -994,6 +991,19 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
if (ja.size() == 0) {
|
if (ja.size() == 0) {
|
||||||
this.confirm(whereJson);
|
this.confirm(whereJson);
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
|
map.put("work_status", "99");
|
||||||
|
wo_dis.update(map, "task_id='" + task_id + "'");
|
||||||
|
|
||||||
|
// 更新明细为完成
|
||||||
|
/* JSONObject jsonDtl = wo_dtl.query("iostorinvdtl_id = '" + whereJson.getString("iostorinvdtl_id") + "'").uniqueResult(0);
|
||||||
|
jsonDtl.put("bill_status", "99");
|
||||||
|
wo_dtl.update(jsonDtl);*/
|
||||||
|
|
||||||
|
//判断是否还有未完成的明细
|
||||||
|
JSONArray ja = wo_dtl.query("bill_status<>'99' and iostorinv_id='" + whereJson.getString("iostorinv_id") + "'").getResultJSONArray(0);
|
||||||
|
if (ja.size() == 0) {
|
||||||
|
this.confirm(whereJson);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1245,6 +1255,9 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
jo_mst.put("update_optid", currentUserId + "");
|
jo_mst.put("update_optid", currentUserId + "");
|
||||||
jo_mst.put("update_optname", nickName);
|
jo_mst.put("update_optname", nickName);
|
||||||
jo_mst.put("update_time", now);
|
jo_mst.put("update_time", now);
|
||||||
|
jo_mst.put("dis_optid", currentUserId + "");
|
||||||
|
jo_mst.put("dis_optname", nickName);
|
||||||
|
jo_mst.put("dis_time", now);
|
||||||
//更新主表状态
|
//更新主表状态
|
||||||
JSONArray dtls_40 = wo_dtl.query("bill_status='40' and iostorinv_id = '" + iostorinv_id + "'").getResultJSONArray(0);
|
JSONArray dtls_40 = wo_dtl.query("bill_status='40' and iostorinv_id = '" + iostorinv_id + "'").getResultJSONArray(0);
|
||||||
//已分配完明细数小于总明细数
|
//已分配完明细数小于总明细数
|
||||||
|
|||||||
@@ -331,10 +331,10 @@
|
|||||||
mb.material_name,
|
mb.material_name,
|
||||||
task.task_code,
|
task.task_code,
|
||||||
task.task_status,
|
task.task_status,
|
||||||
task.taskdtl_type,
|
task.task_type,
|
||||||
point.point_code AS start_point_code,
|
point.point_code AS start_point_code,
|
||||||
point2.area_type,
|
point2.source_id,
|
||||||
point2.source_id
|
point2.point_code
|
||||||
FROM
|
FROM
|
||||||
ST_IVT_IOStorInvDis dis
|
ST_IVT_IOStorInvDis dis
|
||||||
LEFT JOIN md_me_materialbase mb ON mb.material_id = dis.material_id
|
LEFT JOIN md_me_materialbase mb ON mb.material_id = dis.material_id
|
||||||
@@ -342,7 +342,7 @@
|
|||||||
LEFT JOIN SCH_BASE_Point point ON point.source_id = dis.struct_id
|
LEFT JOIN SCH_BASE_Point point ON point.source_id = dis.struct_id
|
||||||
LEFT JOIN SCH_BASE_Point point2 ON point2.point_id = dis.point_id
|
LEFT JOIN SCH_BASE_Point point2 ON point2.point_id = dis.point_id
|
||||||
WHERE
|
WHERE
|
||||||
1 = 1 and task.taskdtl_type in('05','02')
|
1 = 1
|
||||||
OPTION 输入.iostorinvdtl_id <> ""
|
OPTION 输入.iostorinvdtl_id <> ""
|
||||||
dis.iostorinvdtl_id = 输入.iostorinvdtl_id
|
dis.iostorinvdtl_id = 输入.iostorinvdtl_id
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
|
|||||||
@@ -50,16 +50,16 @@
|
|||||||
<el-select
|
<el-select
|
||||||
v-model="form.bill_type"
|
v-model="form.bill_type"
|
||||||
clearable
|
clearable
|
||||||
|
filterable
|
||||||
|
size="mini"
|
||||||
placeholder="业务类型"
|
placeholder="业务类型"
|
||||||
style="width: 210px"
|
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
:disabled="crud.status.view > 0"
|
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in billtypelist"
|
v-for="item in dict.ST_INV_OUT_TYPE"
|
||||||
:key="item.code"
|
:key="item.value"
|
||||||
:label="item.name"
|
:label="item.label"
|
||||||
:value="item.code"
|
:value="item.value"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -266,7 +266,7 @@ export default {
|
|||||||
default: false
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dicts: ['io_bill_status', 'ST_QUALITY_SCODE', 'ST_IVT_LEVEL', 'is_used', 'QC_INV_TYPE'],
|
dicts: ['io_bill_status', 'ST_QUALITY_SCODE', 'ST_IVT_LEVEL', 'is_used', 'ST_INV_OUT_TYPE'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
@@ -277,9 +277,6 @@ export default {
|
|||||||
nowrow: {},
|
nowrow: {},
|
||||||
nowindex: '',
|
nowindex: '',
|
||||||
storlist: [],
|
storlist: [],
|
||||||
billtypelist: [
|
|
||||||
{ 'name': '发货出库', 'code': '111111' }
|
|
||||||
],
|
|
||||||
invtypelist: [],
|
invtypelist: [],
|
||||||
rules: {
|
rules: {
|
||||||
stor_id: [
|
stor_id: [
|
||||||
@@ -346,11 +343,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
invtypeFormat(row, column) {
|
invtypeFormat(row, column) {
|
||||||
for (const item of this.invtypelist) {
|
return this.dict.label.ST_INV_OUT_TYPE[row.source_bill_type]
|
||||||
if (item.code === row.source_bill_type) {
|
|
||||||
return item.name
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
storChange(row) {
|
storChange(row) {
|
||||||
this.storlist.forEach((item) => {
|
this.storlist.forEach((item) => {
|
||||||
|
|||||||
@@ -139,9 +139,24 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="站点选择" prop="point_code">
|
<el-form-item label="站点选择" prop="point_code">
|
||||||
<el-input v-model="form2.point_code" disabled class="input-with-select" style="width: 200px">
|
<!-- <el-input v-model="form2.point_code" disabled class="input-with-select" style="width: 200px">
|
||||||
<el-button slot="append" icon="el-icon-search" @click="openPoint" />
|
<el-button slot="append" icon="el-icon-search" @click="openPoint" />
|
||||||
</el-input>
|
</el-input>-->
|
||||||
|
<el-select
|
||||||
|
v-model="form2.point_code"
|
||||||
|
clearable
|
||||||
|
filterable
|
||||||
|
size="mini"
|
||||||
|
placeholder="业务类型"
|
||||||
|
class="filter-item"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in pointList"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -262,6 +277,10 @@ export default {
|
|||||||
},
|
},
|
||||||
sects: [],
|
sects: [],
|
||||||
invtypelist: [],
|
invtypelist: [],
|
||||||
|
pointList: [
|
||||||
|
{ 'label': '出入库站点1', 'value': 'IVN001' },
|
||||||
|
{ 'label': '出入库站点2', 'value': 'IVN002' }
|
||||||
|
],
|
||||||
rules: {
|
rules: {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,14 +108,13 @@
|
|||||||
>
|
>
|
||||||
<el-table-column show-overflow-tooltip prop="material_code" label="物料编码" align="center" />
|
<el-table-column show-overflow-tooltip prop="material_code" label="物料编码" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="material_name" label="物料名称" align="center" />
|
<el-table-column show-overflow-tooltip prop="material_name" label="物料名称" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="pcsn" label="批次号" align="center" />
|
<el-table-column show-overflow-tooltip prop="pcsn" label="子卷批次号" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="storagevehicle_code" label="载具号" align="center" />
|
<el-table-column show-overflow-tooltip prop="box_no" label="箱号" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="bucket_num" :formatter="crud.formatNum0" label="桶数" align="center" />
|
<el-table-column show-overflow-tooltip prop="plan_qty" :formatter="crud.formatNum3" label="重量" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="total_storage_qty" :formatter="crud.formatNum3" label="重量" align="center" />
|
<el-table-column show-overflow-tooltip prop="struct_code" label="起始位置" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="start_point_code" label="起始位置" align="center" />
|
|
||||||
<el-table-column show-overflow-tooltip prop="next_point_code" label="目的位置" align="center" />
|
<el-table-column show-overflow-tooltip prop="next_point_code" label="目的位置" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="task_code" label="任务号" align="center" />
|
<el-table-column show-overflow-tooltip 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" label="任务类型" align="center" width="150px" :formatter="taskdtl_typeFormat" />
|
||||||
<el-table-column prop="task_status" label="状态" align="center" width="110px" :formatter="task_statusFormat" />
|
<el-table-column prop="task_status" label="状态" align="center" width="110px" :formatter="task_statusFormat" />
|
||||||
<el-table-column align="center" label="操作" width="160" fixed="right">
|
<el-table-column align="center" label="操作" width="160" fixed="right">
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
|
|||||||
@@ -35,16 +35,17 @@
|
|||||||
<el-select
|
<el-select
|
||||||
v-model="form.bill_type"
|
v-model="form.bill_type"
|
||||||
clearable
|
clearable
|
||||||
|
filterable
|
||||||
|
size="mini"
|
||||||
placeholder="业务类型"
|
placeholder="业务类型"
|
||||||
style="width: 210px"
|
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
:disabled="true"
|
disabled
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in billtypelist"
|
v-for="item in dict.ST_INV_OUT_TYPE"
|
||||||
:key="item.code"
|
:key="item.value"
|
||||||
:label="item.name"
|
:label="item.label"
|
||||||
:value="item.code"
|
:value="item.value"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -138,11 +139,7 @@
|
|||||||
<el-table-column prop="pcsn" label="子卷批次号" align="center" />
|
<el-table-column prop="pcsn" label="子卷批次号" align="center" />
|
||||||
<el-table-column prop="storagevehicle_code" label="箱号" align="center" />
|
<el-table-column prop="storagevehicle_code" label="箱号" align="center" />
|
||||||
<el-table-column prop="plan_qty" :formatter="crud.formatNum3" label="重量" align="center" />
|
<el-table-column prop="plan_qty" :formatter="crud.formatNum3" label="重量" align="center" />
|
||||||
<<<<<<< HEAD
|
|
||||||
<el-table-column prop="struct_code" label="起始位置" align="center" />
|
<el-table-column prop="struct_code" label="起始位置" align="center" />
|
||||||
=======
|
|
||||||
<el-table-column prop="start_point_code" label="起始位置" align="center" />
|
|
||||||
>>>>>>> 695691a39c6d107f14dda8207696b91d671272a4
|
|
||||||
<el-table-column prop="next_point_code" label="目的位置" align="center" />
|
<el-table-column prop="next_point_code" label="目的位置" align="center" />
|
||||||
<el-table-column prop="task_code" label="任务号" align="center" />
|
<el-table-column prop="task_code" label="任务号" align="center" />
|
||||||
<el-table-column prop="task_type" label="任务类型" align="center" width="150px" :formatter="taskdtl_typeFormat" />
|
<el-table-column prop="task_type" label="任务类型" align="center" width="150px" :formatter="taskdtl_typeFormat" />
|
||||||
@@ -163,7 +160,7 @@ export default {
|
|||||||
name: 'ViewDialog',
|
name: 'ViewDialog',
|
||||||
components: { },
|
components: { },
|
||||||
mixins: [crud()],
|
mixins: [crud()],
|
||||||
dicts: ['io_bill_status', 'work_status', 'task_status', 'SCH_TASK_TYPE_DTL'],
|
dicts: ['io_bill_status', 'work_status', 'task_status', 'SCH_TASK_TYPE_DTL','ST_INV_OUT_TYPE'],
|
||||||
props: {
|
props: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -178,7 +175,6 @@ export default {
|
|||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
tableDtl: [],
|
tableDtl: [],
|
||||||
tabledis: [],
|
tabledis: [],
|
||||||
billtypelist: [],
|
|
||||||
storlist: [],
|
storlist: [],
|
||||||
currentdtl: null,
|
currentdtl: null,
|
||||||
currentDis: {},
|
currentDis: {},
|
||||||
|
|||||||
@@ -96,10 +96,10 @@
|
|||||||
@change="crud.toQuery"
|
@change="crud.toQuery"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in billtypelist"
|
v-for="item in dict.ST_INV_OUT_TYPE"
|
||||||
:key="item.code"
|
:key="item.value"
|
||||||
:label="item.name"
|
:label="item.label"
|
||||||
:value="item.code"
|
:value="item.value"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -179,11 +179,20 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column show-overflow-tooltip :formatter="stateFormat" width="100" prop="bill_status" label="单据状态" />
|
<el-table-column show-overflow-tooltip :formatter="stateFormat" width="100" prop="bill_status" label="单据状态" />
|
||||||
<el-table-column prop="stor_name" label="仓库" width="100" />
|
<el-table-column prop="stor_name" label="仓库" width="100" />
|
||||||
<el-table-column show-overflow-tooltip prop="bill_type" :formatter="bill_typeFormat" min-width="120" label="业务类型" />
|
<el-table-column show-overflow-tooltip prop="bill_type" :formatter="bill_typeFormat" label="业务类型" />
|
||||||
<el-table-column show-overflow-tooltip width="135" prop="biz_date" label="业务日期" />
|
<el-table-column show-overflow-tooltip width="135" prop="biz_date" label="业务日期" />
|
||||||
<el-table-column show-overflow-tooltip :formatter="create_modeFormat" prop="create_mode" label="生成方式" width="100" />
|
<el-table-column show-overflow-tooltip :formatter="create_modeFormat" prop="create_mode" label="生成方式" width="100" />
|
||||||
<el-table-column label="明细数" align="center" prop="detail_count" width="100" />
|
<el-table-column label="明细数" align="center" prop="detail_count" width="100" />
|
||||||
<el-table-column show-overflow-tooltip prop="input_time" width="135" label="创建日期" />
|
<el-table-column label="总重量" align="center" prop="total_qty" width="100" />
|
||||||
|
<el-table-column show-overflow-tooltip label="备注" align="center" prop="remark" width="100" />
|
||||||
|
<el-table-column show-overflow-tooltip label="制单人" align="center" prop="input_optname" />
|
||||||
|
<el-table-column show-overflow-tooltip label="制单时间" align="center" prop="input_time" width="140" />
|
||||||
|
<el-table-column show-overflow-tooltip label="修改人" align="center" prop="update_optname" />
|
||||||
|
<el-table-column show-overflow-tooltip label="修改时间" align="center" prop="update_time" width="140" />
|
||||||
|
<el-table-column show-overflow-tooltip label="分配人" align="center" prop="dis_optname" />
|
||||||
|
<el-table-column show-overflow-tooltip label="分配时间" align="center" prop="dis_time" width="140" />
|
||||||
|
<el-table-column show-overflow-tooltip label="确认人" align="center" prop="confirm_optname" />
|
||||||
|
<el-table-column show-overflow-tooltip label="确认时间" align="center" prop="confirm_time" width="140" />
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<pagination />
|
<pagination />
|
||||||
@@ -224,7 +233,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mixins: [presenter(), header(), crud()],
|
mixins: [presenter(), header(), crud()],
|
||||||
// 数据字典
|
// 数据字典
|
||||||
dicts: ['io_bill_status', 'ST_CREATE_MODE'],
|
dicts: ['io_bill_status', 'ST_CREATE_MODE','ST_INV_OUT_TYPE'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
height: document.documentElement.clientHeight - 180 + 'px;',
|
height: document.documentElement.clientHeight - 180 + 'px;',
|
||||||
@@ -311,11 +320,7 @@ export default {
|
|||||||
return this.dict.label.io_bill_status[row.bill_status]
|
return this.dict.label.io_bill_status[row.bill_status]
|
||||||
},
|
},
|
||||||
bill_typeFormat(row) {
|
bill_typeFormat(row) {
|
||||||
for (const item of this.billtypelist) {
|
return this.dict.label.ST_INV_OUT_TYPE[row.bill_type]
|
||||||
if (item.code === row.bill_type) {
|
|
||||||
return item.name
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
create_modeFormat(row) {
|
create_modeFormat(row) {
|
||||||
return this.dict.label.ST_CREATE_MODE[row.create_mode]
|
return this.dict.label.ST_CREATE_MODE[row.create_mode]
|
||||||
|
|||||||
Reference in New Issue
Block a user