rev:仓储
This commit is contained in:
@@ -21,13 +21,13 @@ import java.math.BigDecimal;
|
|||||||
@TableName("pdm_bi_subpackagerelation")
|
@TableName("pdm_bi_subpackagerelation")
|
||||||
public class PdmBiSubpackagerelation implements Serializable {
|
public class PdmBiSubpackagerelation implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final Long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 子卷包装标识
|
* 子卷包装标识
|
||||||
*/
|
*/
|
||||||
@TableId
|
@TableId
|
||||||
private Long workorder_id;
|
private String workorder_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 木箱唯一码
|
* 木箱唯一码
|
||||||
@@ -142,7 +142,7 @@ public class PdmBiSubpackagerelation implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
private Long create_id;
|
private String create_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人姓名
|
* 创建人姓名
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ public class StIvtIostorinvServiceImpl extends ServiceImpl<StIvtIostorinvMapper,
|
|||||||
// 组织主表数据
|
// 组织主表数据
|
||||||
StIvtIostorinv mstDao = StIvtIostorinv.builder()
|
StIvtIostorinv mstDao = StIvtIostorinv.builder()
|
||||||
.iostorinv_id(IdUtil.getStringId())
|
.iostorinv_id(IdUtil.getStringId())
|
||||||
.bill_code(CodeUtil.getNewCode("IO_CODE"))
|
.bill_code(CodeUtil.getNewCode("IN_IVN_CODE"))
|
||||||
.bill_status(IOSEnum.BILL_STATUS.code("生成"))
|
.bill_status(IOSEnum.BILL_STATUS.code("生成"))
|
||||||
.create_mode(IOSEnum.CREATE_MODE.code("PC产生"))
|
.create_mode(IOSEnum.CREATE_MODE.code("PC产生"))
|
||||||
.io_type(IOSEnum.IO_TYPE.code("入库"))
|
.io_type(IOSEnum.IO_TYPE.code("入库"))
|
||||||
|
|||||||
@@ -83,8 +83,8 @@ public class StIvtIostorinvdtlServiceImpl extends ServiceImpl<StIvtIostorinvdtlM
|
|||||||
|
|
||||||
MdBaseMaterial materDao = materialList.stream()
|
MdBaseMaterial materDao = materialList.stream()
|
||||||
.filter(row -> row.getMaterial_code().equals(json.getString("material_code")))
|
.filter(row -> row.getMaterial_code().equals(json.getString("material_code")))
|
||||||
.collect(Collectors.toList()).get(0);
|
.findFirst().orElse(null);
|
||||||
if (ObjectUtil.isEmpty(materDao)) throw new BadRequestException("物料不存在"+json.getString("material_code"));
|
if (ObjectUtil.isEmpty(materDao)) throw new BadRequestException("物料不存在:【"+json.getString("material_code") +"】");
|
||||||
|
|
||||||
StIvtIostorinvdtl dtlDao = StIvtIostorinvdtl.builder()
|
StIvtIostorinvdtl dtlDao = StIvtIostorinvdtl.builder()
|
||||||
.iostorinvdtl_id(IdUtil.getStringId())
|
.iostorinvdtl_id(IdUtil.getStringId())
|
||||||
|
|||||||
@@ -41,17 +41,6 @@
|
|||||||
<el-input v-model="form.simple_name" style="width: 200px;" />
|
<el-input v-model="form.simple_name" style="width: 200px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="所属部门" prop="sysdeptid">
|
|
||||||
<treeselect
|
|
||||||
v-model="form.sysdeptid"
|
|
||||||
:options="depts"
|
|
||||||
:load-options="loadDepts"
|
|
||||||
style="width: 200px"
|
|
||||||
placeholder="选择部门"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
@@ -369,31 +358,6 @@ export default {
|
|||||||
this.depts = date
|
this.depts = date
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
buildDepts(depts) {
|
|
||||||
depts.forEach(data => {
|
|
||||||
if (data.children) {
|
|
||||||
this.buildDepts(data.children)
|
|
||||||
}
|
|
||||||
if (data.hasChildren && !data.children) {
|
|
||||||
data.children = null
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
loadDepts({ action, parentNode, callback }) {
|
|
||||||
if (action === LOAD_CHILDREN_OPTIONS) {
|
|
||||||
getDepts({ enabled: true, pid: parentNode.id }).then(res => {
|
|
||||||
parentNode.children = res.content.map(function(obj) {
|
|
||||||
if (obj.hasChildren) {
|
|
||||||
obj.children = null
|
|
||||||
}
|
|
||||||
return obj
|
|
||||||
})
|
|
||||||
setTimeout(() => {
|
|
||||||
callback()
|
|
||||||
}, 200)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||||
[CRUD.HOOK.beforeRefresh]() {
|
[CRUD.HOOK.beforeRefresh]() {
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
disabled
|
disabled
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.io_bill_status"
|
v-for="item in dict.IO_BILL_STATUS"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
@@ -189,7 +189,7 @@ export default {
|
|||||||
name: 'AddDialog',
|
name: 'AddDialog',
|
||||||
components: { AddDtl },
|
components: { AddDtl },
|
||||||
mixins: [crud(), form(defaultForm)],
|
mixins: [crud(), form(defaultForm)],
|
||||||
dicts: ['io_bill_status', 'ST_INV_IN_TYPE'],
|
dicts: ['IO_BILL_STATUS', 'ST_INV_IN_TYPE'],
|
||||||
props: {
|
props: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
:disabled="true"
|
:disabled="true"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.io_bill_status"
|
v-for="item in dict.IO_BILL_STATUS"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
@@ -189,7 +189,7 @@ export default {
|
|||||||
name: 'DivDialog',
|
name: 'DivDialog',
|
||||||
components: { },
|
components: { },
|
||||||
mixins: [crud()],
|
mixins: [crud()],
|
||||||
dicts: ['io_bill_status'],
|
dicts: ['IO_BILL_STATUS'],
|
||||||
props: {
|
props: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ export default {
|
|||||||
name: 'TaskDialog',
|
name: 'TaskDialog',
|
||||||
components: {},
|
components: {},
|
||||||
mixins: [crud()],
|
mixins: [crud()],
|
||||||
dicts: ['io_bill_status', 'task_status'],
|
dicts: ['IO_BILL_STATUS', 'task_status'],
|
||||||
props: {
|
props: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
disabled
|
disabled
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.io_bill_status"
|
v-for="item in dict.IO_BILL_STATUS"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
@@ -160,7 +160,7 @@ export default {
|
|||||||
name: 'ViewDialog',
|
name: 'ViewDialog',
|
||||||
components: { },
|
components: { },
|
||||||
mixins: [crud()],
|
mixins: [crud()],
|
||||||
dicts: ['io_bill_status', 'work_status', 'task_status', 'ST_INV_IN_TYPE'],
|
dicts: ['IO_BILL_STATUS', 'work_status', 'task_status', 'ST_INV_IN_TYPE'],
|
||||||
props: {
|
props: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -215,7 +215,7 @@ export default {
|
|||||||
this.$emit('TaskChanged')
|
this.$emit('TaskChanged')
|
||||||
},
|
},
|
||||||
bill_statusFormat(row) {
|
bill_statusFormat(row) {
|
||||||
return this.dict.label.io_bill_status[row.bill_status]
|
return this.dict.label.IO_BILL_STATUS[row.bill_status]
|
||||||
},
|
},
|
||||||
task_statusFormat(row) {
|
task_statusFormat(row) {
|
||||||
return this.dict.label.task_status[row.task_status]
|
return this.dict.label.task_status[row.task_status]
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
@change="crud.toQuery"
|
@change="crud.toQuery"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.io_bill_status"
|
v-for="item in dict.IO_BILL_STATUS"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
@@ -249,7 +249,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mixins: [presenter(), header(), crud()],
|
mixins: [presenter(), header(), crud()],
|
||||||
// 数据字典
|
// 数据字典
|
||||||
dicts: ['io_bill_status', 'ST_CREATE_MODE', 'ST_INV_IN_TYPE'],
|
dicts: ['IO_BILL_STATUS', 'ST_CREATE_MODE', 'ST_INV_IN_TYPE'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
height: document.documentElement.clientHeight - 180 + 'px;',
|
height: document.documentElement.clientHeight - 180 + 'px;',
|
||||||
@@ -330,7 +330,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
stateFormat(row, column) {
|
stateFormat(row, column) {
|
||||||
return this.dict.label.io_bill_status[row.bill_status]
|
return this.dict.label.IO_BILL_STATUS[row.bill_status]
|
||||||
},
|
},
|
||||||
create_modeFormat(row, column) {
|
create_modeFormat(row, column) {
|
||||||
return this.dict.label.ST_CREATE_MODE[row.create_mode]
|
return this.dict.label.ST_CREATE_MODE[row.create_mode]
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
disabled
|
disabled
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.io_bill_status"
|
v-for="item in dict.IO_BILL_STATUS"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
@@ -208,7 +208,7 @@ export default {
|
|||||||
default: false
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dicts: ['io_bill_status', 'ST_INV_OUT_TYPE'],
|
dicts: ['IO_BILL_STATUS', 'ST_INV_OUT_TYPE'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ export default {
|
|||||||
name: 'DivDialog',
|
name: 'DivDialog',
|
||||||
components: { StructIvt },
|
components: { StructIvt },
|
||||||
mixins: [crud()],
|
mixins: [crud()],
|
||||||
dicts: ['io_bill_status', 'work_status'],
|
dicts: ['IO_BILL_STATUS', 'work_status'],
|
||||||
props: {
|
props: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -349,7 +349,7 @@ export default {
|
|||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
},
|
},
|
||||||
bill_statusFormat(row, column) {
|
bill_statusFormat(row, column) {
|
||||||
return this.dict.label.io_bill_status[row.bill_status]
|
return this.dict.label.IO_BILL_STATUS[row.bill_status]
|
||||||
},
|
},
|
||||||
invtypeFormat(row, column) {
|
invtypeFormat(row, column) {
|
||||||
for (const item of this.invtypelist) {
|
for (const item of this.invtypelist) {
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ export default {
|
|||||||
name: 'TaskDialog',
|
name: 'TaskDialog',
|
||||||
components: { },
|
components: { },
|
||||||
mixins: [crud()],
|
mixins: [crud()],
|
||||||
dicts: ['task_status', 'io_bill_status'],
|
dicts: ['task_status', 'IO_BILL_STATUS'],
|
||||||
props: {
|
props: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -185,7 +185,7 @@ export default {
|
|||||||
this.$emit('TaskChanged')
|
this.$emit('TaskChanged')
|
||||||
},
|
},
|
||||||
bill_statusFormat(row) {
|
bill_statusFormat(row) {
|
||||||
return this.dict.label.io_bill_status[row.bill_status]
|
return this.dict.label.IO_BILL_STATUS[row.bill_status]
|
||||||
},
|
},
|
||||||
task_statusFormat(row) {
|
task_statusFormat(row) {
|
||||||
return this.dict.label.task_status[row.task_status]
|
return this.dict.label.task_status[row.task_status]
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
disabled
|
disabled
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.io_bill_status"
|
v-for="item in dict.IO_BILL_STATUS"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
@@ -180,7 +180,7 @@ export default {
|
|||||||
name: 'ViewDialog',
|
name: 'ViewDialog',
|
||||||
components: { },
|
components: { },
|
||||||
mixins: [crud()],
|
mixins: [crud()],
|
||||||
dicts: ['io_bill_status', 'work_status', 'task_status', 'ST_INV_OUT_TYPE'],
|
dicts: ['IO_BILL_STATUS', 'work_status', 'task_status', 'ST_INV_OUT_TYPE'],
|
||||||
props: {
|
props: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -228,7 +228,7 @@ export default {
|
|||||||
this.$emit('AddChanged')
|
this.$emit('AddChanged')
|
||||||
},
|
},
|
||||||
bill_statusFormat(row) {
|
bill_statusFormat(row) {
|
||||||
return this.dict.label.io_bill_status[row.bill_status]
|
return this.dict.label.IO_BILL_STATUS[row.bill_status]
|
||||||
},
|
},
|
||||||
task_statusFormat(row) {
|
task_statusFormat(row) {
|
||||||
return this.dict.label.task_status[row.task_status]
|
return this.dict.label.task_status[row.task_status]
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
@change="crud.toQuery"
|
@change="crud.toQuery"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.io_bill_status"
|
v-for="item in dict.IO_BILL_STATUS"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
@@ -299,7 +299,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mixins: [presenter(), header(), crud()],
|
mixins: [presenter(), header(), crud()],
|
||||||
// 数据字典
|
// 数据字典
|
||||||
dicts: ['io_bill_status', 'ST_CREATE_MODE', 'ST_INV_OUT_TYPE', 'TrueOrFalse'],
|
dicts: ['IO_BILL_STATUS', 'ST_CREATE_MODE', 'ST_INV_OUT_TYPE', 'TrueOrFalse'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
height: document.documentElement.clientHeight - 180 + 'px;',
|
height: document.documentElement.clientHeight - 180 + 'px;',
|
||||||
@@ -391,7 +391,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
stateFormat(row) {
|
stateFormat(row) {
|
||||||
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) {
|
||||||
return this.dict.label.ST_INV_OUT_TYPE[row.bill_type]
|
return this.dict.label.ST_INV_OUT_TYPE[row.bill_type]
|
||||||
|
|||||||
Reference in New Issue
Block a user