|
|
|
@ -1,11 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="page-container">
|
|
|
|
|
<div class="content-wrapper">
|
|
|
|
|
<!-- 左侧面板 -->
|
|
|
|
|
<div class="content-left">
|
|
|
|
|
<el-card style=" height: 800px;">
|
|
|
|
|
<el-descriptions :title="scanTip" :column="2" border style="margin-top: 15px"></el-descriptions>
|
|
|
|
|
<div>
|
|
|
|
|
<el-form :model="formData" class="order-el-form" ref="formData" label-width="120px" @submit.native.prevent>
|
|
|
|
|
<el-card>
|
|
|
|
|
|
|
|
|
|
<!-- <el-alert-->
|
|
|
|
|
<!-- style="margin-top: 15px"-->
|
|
|
|
@ -14,67 +10,67 @@
|
|
|
|
|
<!-- type="warning">-->
|
|
|
|
|
<!--</el-alert>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-row :gutter="0" style="margin-top: 15px">-->
|
|
|
|
|
<!-- <el-col :span="24" align="right">-->
|
|
|
|
|
<!-- <el-button-group>-->
|
|
|
|
|
<!-- <!– <el-button type="primary" @click.native="deleteCode"–>-->
|
|
|
|
|
<!-- <!– v-if="labelName == 1"–>-->
|
|
|
|
|
<!-- <!– :disabled="formData.billNo == null"–>-->
|
|
|
|
|
<!-- <!– >扫码剔除–>-->
|
|
|
|
|
<!-- <!– </el-button>–>-->
|
|
|
|
|
<!-- <!– <el-button size="mini" type="primary"–>-->
|
|
|
|
|
<!-- <!– v-if="labelName == 2"–>-->
|
|
|
|
|
<!-- <!– @click.native="overdeleteCode"–>-->
|
|
|
|
|
<!-- <!– >结束剔除–>-->
|
|
|
|
|
<!-- <!– </el-button>–>-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- :disabled="formData.billNo || (this.formDataVisible != null && this.formDataVisible.scanType == 1)"-->
|
|
|
|
|
<!-- @click.native="nextCollectOrder()"-->
|
|
|
|
|
<!-- >下一单-->
|
|
|
|
|
<el-row :gutter="0" style="margin-top: 15px">
|
|
|
|
|
<el-col :span="24" align="right">
|
|
|
|
|
<el-button-group>
|
|
|
|
|
<!-- <el-button type="primary" @click.native="deleteCode"-->
|
|
|
|
|
<!-- v-if="labelName == 1"-->
|
|
|
|
|
<!-- :disabled="formData.billNo == null"-->
|
|
|
|
|
<!-- >扫码剔除-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-button size="mini" type="primary"-->
|
|
|
|
|
<!-- v-if="labelName == 2"-->
|
|
|
|
|
<!-- @click.native="overdeleteCode"-->
|
|
|
|
|
<!-- >结束剔除-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
:disabled="formData.billNo || (this.formDataVisible != null && this.formDataVisible.scanType == 1)"
|
|
|
|
|
@click.native="nextCollectOrder()"
|
|
|
|
|
>下一单
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
:disabled="formData.billNo ||(this.formDataVisible != null && this.formDataVisible.scanType == 1)"
|
|
|
|
|
@click.native="selectPrescribe()"
|
|
|
|
|
>选单
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- :disabled="formData.billNo ||(this.formDataVisible != null && this.formDataVisible.scanType == 1)"-->
|
|
|
|
|
<!-- @click.native="selectPrescribe()"-->
|
|
|
|
|
<!-- >选单-->
|
|
|
|
|
<!-- :disabled="!formData.billNo"-->
|
|
|
|
|
<!-- @click.native="saveDraftOrder()"-->
|
|
|
|
|
<!-- >挂起-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <!– <el-button–>-->
|
|
|
|
|
<!-- <!– type="primary"–>-->
|
|
|
|
|
<!-- <!– :disabled="!formData.billNo"–>-->
|
|
|
|
|
<!-- <!– @click.native="saveDraftOrder()"–>-->
|
|
|
|
|
<!-- <!– >挂起–>-->
|
|
|
|
|
<!-- <!– </el-button>–>-->
|
|
|
|
|
<!-- <!– <el-button–>-->
|
|
|
|
|
<!-- <!– type="primary"–>-->
|
|
|
|
|
<!-- <!– :disabled="!formData.billNo"–>-->
|
|
|
|
|
<!-- <!– @click.native="cancelOrder()"–>-->
|
|
|
|
|
<!-- <!– >放弃–>-->
|
|
|
|
|
<!-- <!– </el-button>–>-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- :disabled="!formData.billNo"-->
|
|
|
|
|
<!-- @click.native="confirmFinishOrder()"-->
|
|
|
|
|
<!-- >完成-->
|
|
|
|
|
<!-- @click.native="cancelOrder()"-->
|
|
|
|
|
<!-- >放弃-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
:disabled="!formData.billNo"
|
|
|
|
|
@click.native="confirmFinishOrder()"
|
|
|
|
|
>完成
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<!-- <!– <el-dropdown @command="handleCommand">–>-->
|
|
|
|
|
<!-- <!– <el-button type="primary">–>-->
|
|
|
|
|
<!-- <!– 更多功能<i class="el-icon-arrow-down el-icon--right"></i>–>-->
|
|
|
|
|
<!-- <!– </el-button>–>-->
|
|
|
|
|
<!-- <!– <el-dropdown-menu slot="dropdown">–>-->
|
|
|
|
|
<!-- <!– <el-dropdown-item divided @click.native="handleClickOut('IoCreateOrderBlank')">工位上货</el-dropdown-item>–>-->
|
|
|
|
|
<!-- <!– <el-dropdown-item divided @click.native="handleClickReturn('IoCreateOrderBlank')">工位退货–>-->
|
|
|
|
|
<!-- <!– </el-dropdown-item>–>-->
|
|
|
|
|
<!-- <!– <el-dropdown-item divided @click.native="handleClick('ioSplitFifoCodeBlank')">工位存量</el-dropdown-item>–>-->
|
|
|
|
|
<!-- <!– <el-dropdown-item divided @click.native="handleClick('CollectOrderAllotBlank')">待处理单–>-->
|
|
|
|
|
<!-- <!– </el-dropdown-item>–>-->
|
|
|
|
|
<!-- <!– <el-dropdown-item divided @click.native="handleClick('CollectOrderEndBlank')">已完成单</el-dropdown-item>–>-->
|
|
|
|
|
<!-- <!– </el-dropdown-menu>–>-->
|
|
|
|
|
<!-- <!– </el-dropdown>–>-->
|
|
|
|
|
<!-- </el-button-group>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<!-- <el-dropdown @command="handleCommand">-->
|
|
|
|
|
<!-- <el-button type="primary">-->
|
|
|
|
|
<!-- 更多功能<i class="el-icon-arrow-down el-icon--right"></i>-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-dropdown-menu slot="dropdown">-->
|
|
|
|
|
<!-- <el-dropdown-item divided @click.native="handleClickOut('IoCreateOrderBlank')">工位上货</el-dropdown-item>-->
|
|
|
|
|
<!-- <el-dropdown-item divided @click.native="handleClickReturn('IoCreateOrderBlank')">工位退货-->
|
|
|
|
|
<!-- </el-dropdown-item>-->
|
|
|
|
|
<!-- <el-dropdown-item divided @click.native="handleClick('ioSplitFifoCodeBlank')">工位存量</el-dropdown-item>-->
|
|
|
|
|
<!-- <el-dropdown-item divided @click.native="handleClick('CollectOrderAllotBlank')">待处理单-->
|
|
|
|
|
<!-- </el-dropdown-item>-->
|
|
|
|
|
<!-- <el-dropdown-item divided @click.native="handleClick('CollectOrderEndBlank')">已完成单</el-dropdown-item>-->
|
|
|
|
|
<!-- </el-dropdown-menu>-->
|
|
|
|
|
<!-- </el-dropdown>-->
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row style="margin-top: 6px;margin-bottom: -6px;"
|
|
|
|
|
v-if="this.formDataVisible != null && this.formDataVisible.scanType == 1">
|
|
|
|
@ -168,8 +164,8 @@
|
|
|
|
|
|
|
|
|
|
<div style="border: 1px solid #ebeef5;border-radius: 2px;margin-top: 15px;padding: 15px">
|
|
|
|
|
<el-row :gutter="0" style="margin-top: 5px">
|
|
|
|
|
<el-col :span="18">
|
|
|
|
|
<el-form-item prop="code" label-width="0px">
|
|
|
|
|
<el-col :span="20">
|
|
|
|
|
<el-form-item prop="code" :label="scanTip" label-width="80px">
|
|
|
|
|
<el-input
|
|
|
|
|
id="inputer"
|
|
|
|
|
@focus="getInputFocus($event)"
|
|
|
|
@ -183,7 +179,7 @@
|
|
|
|
|
<!-- :disabled="scanDisabled"-->
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-button-group style="display: flex;">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
@ -239,70 +235,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="0" style="margin-top: 15px">
|
|
|
|
|
<el-col :span="24" align="right">
|
|
|
|
|
<el-button-group>
|
|
|
|
|
<!-- <el-button type="primary" @click.native="deleteCode"-->
|
|
|
|
|
<!-- v-if="labelName == 1"-->
|
|
|
|
|
<!-- :disabled="formData.billNo == null"-->
|
|
|
|
|
<!-- >扫码剔除-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-button size="mini" type="primary"-->
|
|
|
|
|
<!-- v-if="labelName == 2"-->
|
|
|
|
|
<!-- @click.native="overdeleteCode"-->
|
|
|
|
|
<!-- >结束剔除-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
:disabled="formData.billNo || (this.formDataVisible != null && this.formDataVisible.scanType == 1)"
|
|
|
|
|
@click.native="nextCollectOrder()"
|
|
|
|
|
>下一单
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
:disabled="formData.billNo ||(this.formDataVisible != null && this.formDataVisible.scanType == 1)"
|
|
|
|
|
@click.native="selectPrescribe()"
|
|
|
|
|
>选单
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- :disabled="!formData.billNo"-->
|
|
|
|
|
<!-- @click.native="saveDraftOrder()"-->
|
|
|
|
|
<!-- >挂起-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- :disabled="!formData.billNo"-->
|
|
|
|
|
<!-- @click.native="cancelOrder()"-->
|
|
|
|
|
<!-- >放弃-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
:disabled="!formData.billNo"
|
|
|
|
|
@click.native="confirmFinishOrder()"
|
|
|
|
|
>完成
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<!-- <el-dropdown @command="handleCommand">-->
|
|
|
|
|
<!-- <el-button type="primary">-->
|
|
|
|
|
<!-- 更多功能<i class="el-icon-arrow-down el-icon--right"></i>-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-dropdown-menu slot="dropdown">-->
|
|
|
|
|
<!-- <el-dropdown-item divided @click.native="handleClickOut('IoCreateOrderBlank')">工位上货</el-dropdown-item>-->
|
|
|
|
|
<!-- <el-dropdown-item divided @click.native="handleClickReturn('IoCreateOrderBlank')">工位退货-->
|
|
|
|
|
<!-- </el-dropdown-item>-->
|
|
|
|
|
<!-- <el-dropdown-item divided @click.native="handleClick('ioSplitFifoCodeBlank')">工位存量</el-dropdown-item>-->
|
|
|
|
|
<!-- <el-dropdown-item divided @click.native="handleClick('CollectOrderAllotBlank')">待处理单-->
|
|
|
|
|
<!-- </el-dropdown-item>-->
|
|
|
|
|
<!-- <el-dropdown-item divided @click.native="handleClick('CollectOrderEndBlank')">已完成单</el-dropdown-item>-->
|
|
|
|
|
<!-- </el-dropdown-menu>-->
|
|
|
|
|
<!-- </el-dropdown>-->
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-descriptions title="单据信息" :column="2" border style="margin-top: 15px">
|
|
|
|
|
<el-descriptions title="单据信息" :column="4" border style="margin-top: 15px">
|
|
|
|
|
<el-descriptions-item label="业务单号">{{ formData.billNo }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="发货方">{{ formData.shipperName }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="收货方">{{ formData.fromCorpName }}</el-descriptions-item>
|
|
|
|
@ -311,27 +244,16 @@
|
|
|
|
|
<el-descriptions-item label="单据时间">{{ formData.billTime }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="单据备注">{{ formData.remark }}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-descriptions title="灯组信息" :column="2" border style="margin-top: 15px">
|
|
|
|
|
<i class="el-icon-s-opportunity"></i>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</el-card>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 右侧面板 -->
|
|
|
|
|
<div class="content-right">
|
|
|
|
|
<!-- <el-tabs type="border-card" class="right-tabs" v-model="editableTabsValue">-->
|
|
|
|
|
<el-card type="border-card" class="right-tabs" v-model="editableTabsValue" style=" height: 800px;">
|
|
|
|
|
<!-- <el-tab-pane label="扫码详情" name="prescribeOriginPanel">-->
|
|
|
|
|
<el-tabs type="border-card" style="margin: 15px" v-model="editableTabsValue">
|
|
|
|
|
<el-tab-pane label="扫码详情" name="prescribeOriginPanel">
|
|
|
|
|
<prescribeOriginPanel
|
|
|
|
|
v-if="panelALive"
|
|
|
|
|
:prescribeData="curRow"
|
|
|
|
|
:fifoSplitResult="this.fifoSplitResult"
|
|
|
|
|
></prescribeOriginPanel>
|
|
|
|
|
<!-- <!– 在表格下方添加说明 –>-->
|
|
|
|
|
<!-- 在表格下方添加说明 -->
|
|
|
|
|
<!-- <el-row style="text-align: right;font-size: 12px;margin-top: 10px">-->
|
|
|
|
|
<!-- <el-col span="24">-->
|
|
|
|
|
<!-- <div style="float: right">-->
|
|
|
|
@ -358,7 +280,7 @@
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<!-- <el-tab-pane label="扫码明细">-->
|
|
|
|
|
<!-- <PanelOrderManuTagCode-->
|
|
|
|
|
<!-- v-if="panelALive"-->
|
|
|
|
@ -388,7 +310,7 @@
|
|
|
|
|
<!-- ></PanelOrderAllDetail>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="选入业务单据"
|
|
|
|
@ -460,8 +382,7 @@
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
@ -606,7 +527,7 @@ export default {
|
|
|
|
|
needSplitConfirm: false,
|
|
|
|
|
workplaceId: null,
|
|
|
|
|
ws: null,
|
|
|
|
|
scanTip: "单据录入",
|
|
|
|
|
scanTip: "单据录入:",
|
|
|
|
|
scanSplit: false,
|
|
|
|
|
info: {},
|
|
|
|
|
//
|
|
|
|
@ -648,18 +569,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
colorStyle(ledNum) {
|
|
|
|
|
switch (ledNum) {
|
|
|
|
|
case 1:
|
|
|
|
|
return { color: 'red' };
|
|
|
|
|
case 2:
|
|
|
|
|
return { color: '#ec951f' };
|
|
|
|
|
case 3:
|
|
|
|
|
return { color: 'blue' };
|
|
|
|
|
case 4:
|
|
|
|
|
return { color: 'green' };
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//是否拆零的组件调用父级方法
|
|
|
|
|
fifoSplitResult(data,info){
|
|
|
|
|
this.info = info
|
|
|
|
@ -668,7 +578,7 @@ export default {
|
|
|
|
|
if (data.needSplitConfirm){//需要
|
|
|
|
|
this.needSplitConfirm = data.needSplitConfirm
|
|
|
|
|
this.scanTitle = "拆零扫码结果:";
|
|
|
|
|
this.scanTip = "拆零扫码";
|
|
|
|
|
this.scanTip = "拆零扫码:";
|
|
|
|
|
this.result = "";
|
|
|
|
|
return;
|
|
|
|
|
}else {//不需要
|
|
|
|
@ -745,6 +655,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
})
|
|
|
|
@ -1763,62 +1674,20 @@ export default {
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.page-container {
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 15px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content-wrapper {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 15px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content-left {
|
|
|
|
|
flex: 0 0 40%;
|
|
|
|
|
min-width: 0; /* 防止内容溢出 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content-right {
|
|
|
|
|
flex: 0 0 60%;
|
|
|
|
|
min-width: 0; /* 防止内容溢出 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 保持卡片内容可滚动 */
|
|
|
|
|
.content-left :deep(.el-card__body) {
|
|
|
|
|
height: 100%;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 保持右侧标签页内容可滚动 */
|
|
|
|
|
.content-right :deep(.el-tabs__content) {
|
|
|
|
|
height: calc(100% - 40px);
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 其他现有样式保持不变 */
|
|
|
|
|
.el-col {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-alert {
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
margin-top: -5px;
|
|
|
|
|
margin-bottom: -5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-alert:last-child {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
.el-dropdown {
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-tabs--border-card {
|
|
|
|
|
height: 100%;
|
|
|
|
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
|
|
|
.el-dropdown + .el-dropdown {
|
|
|
|
|
margin-left: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.query-form-item :deep(.el-form-item__content) {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.el-icon-arrow-down {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|