opt: LMS解包区

This commit is contained in:
2025-08-13 20:31:19 +08:00
parent 0f2cb09f22
commit 29b7fcd03e
7 changed files with 76 additions and 166 deletions

View File

@@ -85,9 +85,11 @@
</el-table-column>
<el-table-column prop="material_code" label="物料编码" width="160" />
<el-table-column prop="material_name" label="物料名称" width="180" show-overflow-tooltip />
<el-table-column prop="pcsn" label="物料批次" width="180" show-overflow-tooltip />
<el-table-column prop="struct_code" label="仓位编码" width="160" />
<el-table-column prop="storagevehicle_code" label="载具编码" width="160" />
<el-table-column prop="qty_unit_name" label="单位" width="160" />
<el-table-column prop="supp_name" label="供应商" width="160" />
<!-- <el-table-column prop="raw_material_code" label="泥料编码" width="160" />-->
<!-- <el-table-column prop="material_spec" label="物料规格" width="140" />-->
<!-- <el-table-column prop="material_model" label="物料型号" width="140" />-->

View File

@@ -391,25 +391,26 @@
label="实际结束时间"
:min-width="flexWidth('realproduceend_date',crud.data,'实际结束时间')"
/>
<el-table-column
prop="standing_time"
label="静置时间(分钟)"
:min-width="flexWidth('standing_time',crud.data,'静置时间(分钟)')"
/>
<el-table-column
prop="is_needmove"
label="是否自动搬运"
:min-width="flexWidth('is_needmove',crud.data,'是否自动搬运')"
>
<template slot-scope="scope">
{{ scope.row.is_needmove ? '是' : '否' }}
</template>
</el-table-column>
<el-table-column prop="is_urgent" label="是否加急" :min-width="flexWidth('is_urgent',crud.data,'是否加急')">
<template slot-scope="scope">
{{ scope.row.is_urgent ? '是' : '否' }}
</template>
</el-table-column>
<!-- <el-table-column-->
<!-- prop="standing_time"-->
<!-- label="静置时间(分钟)"-->
<!-- :min-width="flexWidth('standing_time',crud.data,'静置时间(分钟)')"-->
<!-- />-->
<!-- <el-table-column-->
<!-- prop="is_needmove"-->
<!-- label="是否自动搬运"-->
<!-- :min-width="flexWidth('is_needmove',crud.data,'是否自动搬运')"-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.is_needmove ? '是' : '否' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="is_urgent" label="是否加急" :min-width="flexWidth('is_urgent',crud.data,'是否加急')">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.is_urgent ? '是' : '否' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column prop="operator" label="开工人" :min-width="flexWidth('operator',crud.data,'创建人')" />
<el-table-column prop="create_name" label="创建人" :min-width="flexWidth('create_name',crud.data,'创建人')" />
<el-table-column
prop="create_time"
@@ -491,7 +492,7 @@ const defaultForm = {
real_weight: 0,
plan_weight: 0,
guadansum: 0,
ext_data: 0,
ext_data: null,
priority: 1,
show: false
}
@@ -571,15 +572,6 @@ export default {
[CRUD.HOOK.beforeRefresh]() {
return true
},
[CRUD.HOOK.beforeToCU]() {
const extData = this.form.ext_data
if (extData !== undefined || extData !== null || extData !== '') {
const ext = JSON.parse(extData)
this.form.order_no = ext.order_no
this.form.order_subnum = ext.custer_no
this.form.custer_no = ext.custer_no
}
},
getWorkShopList() { // 获取车间列表
},
@@ -625,19 +617,25 @@ export default {
this.form.struct_code = row.struct_code
this.form.raw_material_code = row.storagevehicle_code
this.form.plan_weight = row.qty
const ext = {
pcsn: row.pcsn,
supp_code: row.supp_code,
supp_name: row.supp_name
}
this.form.ext_data = JSON.stringify(ext)
}
},
clearRecordMesOrder() {
this.form.order_no = null
this.form.order_subnum = 0
this.form.guadansum = 0
},
recordMesOrder(row) { // 操作mes工单
this.clearRecordMesOrder()
this.form.order_no = row.forder_NO
this.form.order_subnum = row.forder_SUBNUM
this.form.guadansum = row.guadansum
},
// clearRecordMesOrder() {
// this.form.order_no = null
// this.form.order_subnum = 0
// this.form.guadansum = 0
// },
// recordMesOrder(row) { // 操作mes工单
// this.clearRecordMesOrder()
// this.form.order_no = row.forder_NO
// this.form.order_subnum = row.forder_SUBNUM
// this.form.guadansum = row.guadansum
// },
setRegionName(data) {
// 清空
this.form.point_code = null
@@ -660,28 +658,28 @@ export default {
this.crud.toQuery()
},
// 下发
submits(row) {
this.fullscreenLoading = true
crudPdmBdWorkorder.submits(row).then(res => {
this.crud.notify('下发成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
}).catch(() => {
this.fullscreenLoading = false
}).finally(() => {
this.fullscreenLoading = false
})
},
synchronize() {
this.fullscreenLoading = true
crudPdmBdWorkorder.orderSynchronize(this.crud.query).then(res => {
this.fullscreenLoading = false
this.crud.notify('同步成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(() => {
this.fullscreenLoading = false
}).finally(() => {
this.fullscreenLoading = false
})
},
// submits(row) {
// this.fullscreenLoading = true
// crudPdmBdWorkorder.submits(row).then(res => {
// this.crud.notify('下发成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
// this.crud.toQuery()
// }).catch(() => {
// this.fullscreenLoading = false
// }).finally(() => {
// this.fullscreenLoading = false
// })
// },
// synchronize() {
// this.fullscreenLoading = true
// crudPdmBdWorkorder.orderSynchronize(this.crud.query).then(res => {
// this.fullscreenLoading = false
// this.crud.notify('同步成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
// }).catch(() => {
// this.fullscreenLoading = false
// }).finally(() => {
// this.fullscreenLoading = false
// })
// },
forceFinish(row) {
this.fullscreenLoading = true
crudPdmBdWorkorder.forceFinish(row).then(res => {