Commit 6cb5bfe1 by wusiyi

Merge branch 'dev' into 'master'

Dev

See merge request !298
parents 2e91952b 18f72f82
......@@ -580,7 +580,7 @@
class="item"
>
<ElButton type="success" @click="handlePrintProductionOrder"
>打印操作</ElButton
>打印生产</ElButton
>
</span>
<span v-if="status === 'PENDING_PICK'" class="item">
......@@ -607,15 +607,18 @@
>补胚失败</ElButton
>
</span>
<span
v-if="status === 'PENDING_PACKING' && isEnableSorting"
class="item"
>
<span v-if="status === 'IN_PRODUCTION' && isEnableSorting" class="item">
<ElButton type="primary" @click="handleSeedingWall('sort')"
>配货分拣</ElButton
>
</span>
<span v-if="status === 'PENDING_PACKING'" class="item">
<span
v-if="
status === 'PENDING_PACKING' ||
(status === 'IN_PRODUCTION' && !isEnableSorting)
"
class="item"
>
<ElButton type="success" @click="handleSeedingWall('print')"
>配货打单</ElButton
>
......@@ -1523,7 +1526,7 @@ const getListQueryPayload = () => {
const getCraft = async () => {
const res = await getPodOrderCraftApi()
const data: CraftListData[] = res.data
podCraftList.value = data.map((item: CraftListData) => ({
podCraftList.value = data.map((item:CraftListData) => ({
id: item.craftCode,
name: item.craftName,
warehouseName: processTypeMap[item.craftType] ?? '其他',
......@@ -1927,19 +1930,19 @@ const mainColumns = computed(() => [
},
{
prop: 'statusName',
label: '挂起前状态',
label:'挂起前状态',
minWidth: 120,
hidden: status.value !== 'SUSPEND',
align: 'center',
hidden:status.value !== 'SUSPEND',
align: 'center'
},
{
prop: 'statusName',
hidden: status.value === 'SUSPEND',
hidden:status.value === 'SUSPEND',
label: '订单状态',
minWidth: 120,
align: 'center',
render: (row: FactoryOrderNewListData) => {
return <span>{row.pause ? '挂起' : row.statusName}</span>
return <span>{ row.pause ? '挂起' : row.statusName}</span>
},
},
{
......@@ -2924,7 +2927,10 @@ const handleSeedingWall = (type: 'print' | 'sort') => {
/** LODOP 单例不可并发,打印串行 */
let printOrderChain: Promise<void> = Promise.resolve()
const printOrder = (data: OrderData, callback: (status: boolean) => void) => {
const printOrder = (
data: OrderData,
callback: (status: boolean) => void,
) => {
const run = async () => {
const lodop = getCLodop(null, null)
if (!lodop) {
......
......@@ -815,6 +815,14 @@ const messageChange = (data: WebSocketMessage) => {
if (!data) return
const { code, ...more } = data
// 过滤非本配货区的数据
if (
sortingAreaId.value &&
JSON.parse(more.txt as string).packingId !== sortingAreaId.value
) {
return
}
// 扫码进箱
if (
(props.wallType === 'us' && code === 'POD_PRINT_ORDER') ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment