|
|
|
@ -1,337 +1,259 @@
|
|
|
|
|
<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>
|
|
|
|
|
<el-form :model="formData" class="order-el-form" ref="formData" label-width="120px" @submit.native.prevent>
|
|
|
|
|
|
|
|
|
|
<!-- <el-alert-->
|
|
|
|
|
<!-- style="margin-top: 15px"-->
|
|
|
|
|
<!-- :title="msgTip"-->
|
|
|
|
|
<!-- :closable="false"-->
|
|
|
|
|
<!-- 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-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>-->
|
|
|
|
|
<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"-->
|
|
|
|
|
<!-- :title="msgTip"-->
|
|
|
|
|
<!-- :closable="false"-->
|
|
|
|
|
<!-- 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-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-row style="margin-top: 6px;margin-bottom: -6px;"
|
|
|
|
|
v-if="this.formDataVisible != null && this.formDataVisible.scanType == 1">
|
|
|
|
|
<!-- <el-col :span="6">-->
|
|
|
|
|
<!-- <el-form-item prop="workPlaceCode" class="query-form-item" label="当前工位:">-->
|
|
|
|
|
<!-- <el-select-->
|
|
|
|
|
<!-- v-model="formData.workPlaceCode"-->
|
|
|
|
|
<!-- placeholder="当前工位"-->
|
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
|
<!-- :disabled="corpOrderIdDisabled"-->
|
|
|
|
|
<!-- filterable-->
|
|
|
|
|
<!-- @change="workPlaceCodeChange"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in curWorkPlaces"-->
|
|
|
|
|
<!-- :key="item.workplaceId"-->
|
|
|
|
|
<!-- :label="item.workplaceName"-->
|
|
|
|
|
<!-- :value="item.workplaceId"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <span style="float: left">{{ item.workplaceName }}</span>-->
|
|
|
|
|
<!-- <span style="float: right; color: #8492a6; font-size: 13px">{{-->
|
|
|
|
|
<!-- item.workplaceId-->
|
|
|
|
|
<!-- }}</span>-->
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-col :span="6">-->
|
|
|
|
|
<!-- <el-form-item prop="busType" class="query-form-item" label="当前业务类型:">-->
|
|
|
|
|
<!-- <el-select v-model="formData.busType"-->
|
|
|
|
|
<!-- filterable-->
|
|
|
|
|
<!-- remote-->
|
|
|
|
|
<!-- @change="busTypeChange"-->
|
|
|
|
|
<!-- reserve-keyword-->
|
|
|
|
|
<!-- disabled-->
|
|
|
|
|
<!-- placeholder="请选择业务类型" clearable style="width: 55%">-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in busTypeList"-->
|
|
|
|
|
<!-- :key="item.documentTypeCode"-->
|
|
|
|
|
<!-- :label="item.busName"-->
|
|
|
|
|
<!-- :value="item.documentTypeCode"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <span style="float: left">{{ item.busName }}</span>-->
|
|
|
|
|
<!-- <span style="float: right; color: #8492a6; font-size: 13px">{{ item.documentTypeCode }}</span>-->
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- <el-button type="primary" @click="toggleBusType" style="margin-left: 5px">切换业务</el-button>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item prop="locInvCode" label="发货方:">
|
|
|
|
|
<el-select v-model="formData.shipper" placeholder="请选择发货方" clearable
|
|
|
|
|
:disabled="formData.billNo"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
<el-row style="margin-top: 6px;margin-bottom: -6px;"
|
|
|
|
|
v-if="this.formDataVisible != null && this.formDataVisible.scanType == 1">
|
|
|
|
|
<!-- <el-col :span="6">-->
|
|
|
|
|
<!-- <el-form-item prop="workPlaceCode" class="query-form-item" label="当前工位:">-->
|
|
|
|
|
<!-- <el-select-->
|
|
|
|
|
<!-- v-model="formData.workPlaceCode"-->
|
|
|
|
|
<!-- placeholder="当前工位"-->
|
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
|
<!-- :disabled="corpOrderIdDisabled"-->
|
|
|
|
|
<!-- filterable-->
|
|
|
|
|
<!-- @change="workPlaceCodeChange"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in curWorkPlaces"-->
|
|
|
|
|
<!-- :key="item.workplaceId"-->
|
|
|
|
|
<!-- :label="item.workplaceName"-->
|
|
|
|
|
<!-- :value="item.workplaceId"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <span style="float: left">{{ item.workplaceName }}</span>-->
|
|
|
|
|
<!-- <span style="float: right; color: #8492a6; font-size: 13px">{{-->
|
|
|
|
|
<!-- item.workplaceId-->
|
|
|
|
|
<!-- }}</span>-->
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-col :span="6">-->
|
|
|
|
|
<!-- <el-form-item prop="busType" class="query-form-item" label="当前业务类型:">-->
|
|
|
|
|
<!-- <el-select v-model="formData.busType"-->
|
|
|
|
|
<!-- filterable-->
|
|
|
|
|
<!-- remote-->
|
|
|
|
|
<!-- @change="busTypeChange"-->
|
|
|
|
|
<!-- reserve-keyword-->
|
|
|
|
|
<!-- disabled-->
|
|
|
|
|
<!-- placeholder="请选择业务类型" clearable style="width: 55%">-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in busTypeList"-->
|
|
|
|
|
<!-- :key="item.documentTypeCode"-->
|
|
|
|
|
<!-- :label="item.busName"-->
|
|
|
|
|
<!-- :value="item.documentTypeCode"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <span style="float: left">{{ item.busName }}</span>-->
|
|
|
|
|
<!-- <span style="float: right; color: #8492a6; font-size: 13px">{{ item.documentTypeCode }}</span>-->
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- <el-button type="primary" @click="toggleBusType" style="margin-left: 5px">切换业务</el-button>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item prop="locInvCode" label="发货方:">
|
|
|
|
|
<el-select v-model="formData.shipper" placeholder="请选择发货方" clearable
|
|
|
|
|
:disabled="formData.billNo"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in invList"
|
|
|
|
|
:key="item.name"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.code">
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<!-- :label="this.formDataVisible.unitTittle + ':'"-->
|
|
|
|
|
<el-form-item class="query-form-item" label="收货方">
|
|
|
|
|
<el-select v-model="formData.fromCorp"
|
|
|
|
|
filterable
|
|
|
|
|
:disabled="formData.billNo"
|
|
|
|
|
remote
|
|
|
|
|
reserve-keyword
|
|
|
|
|
@change="changeCorp"
|
|
|
|
|
placeholder="请选择收货方" clearable style="width: 90%">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in fromInvOptions"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.code"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in invList"
|
|
|
|
|
:key="item.name"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.code">
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<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="20">
|
|
|
|
|
<el-form-item prop="code" :label="scanTip" label-width="80px">
|
|
|
|
|
<el-input
|
|
|
|
|
id="inputer"
|
|
|
|
|
@focus="getInputFocus($event)"
|
|
|
|
|
@keypress.enter.native="enterKey($event)"
|
|
|
|
|
ref="inputRef"
|
|
|
|
|
style="ime-mode: disabled"
|
|
|
|
|
type="tel"
|
|
|
|
|
:placeholder="this.placeholder"
|
|
|
|
|
v-model="scanCode"
|
|
|
|
|
></el-input>
|
|
|
|
|
<!-- :disabled="scanDisabled"-->
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<!-- :label="this.formDataVisible.unitTittle + ':'"-->
|
|
|
|
|
<el-form-item class="query-form-item" label="收货方">
|
|
|
|
|
<el-select v-model="formData.fromCorp"
|
|
|
|
|
filterable
|
|
|
|
|
:disabled="formData.billNo"
|
|
|
|
|
remote
|
|
|
|
|
reserve-keyword
|
|
|
|
|
@change="changeCorp"
|
|
|
|
|
placeholder="请选择收货方" clearable style="width: 90%">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in fromInvOptions"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.code"
|
|
|
|
|
>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-button-group style="display: flex;">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="mini"
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
@click.native.stop="enterKey()"
|
|
|
|
|
style="margin-left: 15px"
|
|
|
|
|
>
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-- :disabled="!formData.billNo || (this.formDataVisible != null && this.formDataVisible.scanType == 1)"-->
|
|
|
|
|
<!-- <el-button type="primary"-->
|
|
|
|
|
<!-- @click="addGs">ALT+29-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="mini"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click.native.stop="clearCode()"
|
|
|
|
|
>清空
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<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-input
|
|
|
|
|
id="inputer"
|
|
|
|
|
@focus="getInputFocus($event)"
|
|
|
|
|
@keypress.enter.native="enterKey($event)"
|
|
|
|
|
ref="inputRef"
|
|
|
|
|
style="ime-mode: disabled"
|
|
|
|
|
type="tel"
|
|
|
|
|
:placeholder="this.placeholder"
|
|
|
|
|
v-model="scanCode"
|
|
|
|
|
></el-input>
|
|
|
|
|
<!-- :disabled="scanDisabled"-->
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-button-group style="display: flex;">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="mini"
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
@click.native.stop="enterKey()"
|
|
|
|
|
style="margin-left: 15px"
|
|
|
|
|
>
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-- :disabled="!formData.billNo || (this.formDataVisible != null && this.formDataVisible.scanType == 1)"-->
|
|
|
|
|
<!-- <el-button type="primary"-->
|
|
|
|
|
<!-- @click="addGs">ALT+29-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="mini"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click.native.stop="clearCode()"
|
|
|
|
|
>清空
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<!-- <el-row :gutter="0">-->
|
|
|
|
|
<!-- <el-col :span="20" style="margin-top: 0px;margin-bottom: 10px;margin-left: 80px">-->
|
|
|
|
|
<!-- <el-checkbox v-model="checked" v-if="!this.formData.billNo && this.formDataVisible.scanType != 1">定向查询-->
|
|
|
|
|
<!-- </el-checkbox>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<el-alert
|
|
|
|
|
:title="scanTitle"
|
|
|
|
|
:type="scanResultType"
|
|
|
|
|
:closable="false"
|
|
|
|
|
:dangerouslyUseHTMLString="true"
|
|
|
|
|
:description="result">
|
|
|
|
|
</el-alert>
|
|
|
|
|
<el-alert
|
|
|
|
|
v-if="warnVisible"
|
|
|
|
|
title="警告信息:"
|
|
|
|
|
type="warning"
|
|
|
|
|
:closable="true"
|
|
|
|
|
:dangerouslyUseHTMLString="true"
|
|
|
|
|
:description="warnResult">
|
|
|
|
|
</el-alert>
|
|
|
|
|
<el-alert
|
|
|
|
|
v-if="errVisible"
|
|
|
|
|
title="错误信息:"
|
|
|
|
|
type="warning"
|
|
|
|
|
:closable="true"
|
|
|
|
|
:dangerouslyUseHTMLString="true"
|
|
|
|
|
:description="errResult">
|
|
|
|
|
</el-alert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</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-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>
|
|
|
|
|
<el-descriptions-item label="单据类型">{{ formData.busTypeName }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="来源系统">{{ formData.fromType }}</el-descriptions-item>
|
|
|
|
|
<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-row :gutter="0">-->
|
|
|
|
|
<!-- <el-col :span="20" style="margin-top: 0px;margin-bottom: 10px;margin-left: 80px">-->
|
|
|
|
|
<!-- <el-checkbox v-model="checked" v-if="!this.formData.billNo && this.formDataVisible.scanType != 1">定向查询-->
|
|
|
|
|
<!-- </el-checkbox>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<el-alert
|
|
|
|
|
:title="scanTitle"
|
|
|
|
|
:type="scanResultType"
|
|
|
|
|
:closable="false"
|
|
|
|
|
:dangerouslyUseHTMLString="true"
|
|
|
|
|
:description="result">
|
|
|
|
|
</el-alert>
|
|
|
|
|
<el-alert
|
|
|
|
|
v-if="warnVisible"
|
|
|
|
|
title="警告信息:"
|
|
|
|
|
type="warning"
|
|
|
|
|
:closable="true"
|
|
|
|
|
:dangerouslyUseHTMLString="true"
|
|
|
|
|
:description="warnResult">
|
|
|
|
|
</el-alert>
|
|
|
|
|
<el-alert
|
|
|
|
|
v-if="errVisible"
|
|
|
|
|
title="错误信息:"
|
|
|
|
|
type="warning"
|
|
|
|
|
:closable="true"
|
|
|
|
|
:dangerouslyUseHTMLString="true"
|
|
|
|
|
:description="errResult">
|
|
|
|
|
</el-alert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
<el-descriptions-item label="单据类型">{{ formData.busTypeName }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="来源系统">{{ formData.fromType }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="单据时间">{{ formData.billTime }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="单据备注">{{ formData.remark }}</el-descriptions-item>
|
|
|
|
|
</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,9 +382,8 @@
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
</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>
|
|
|
|
|