|
|
@ -7,7 +7,7 @@
|
|
|
|
<div class="chart">
|
|
|
|
<div class="chart">
|
|
|
|
<div class="form">
|
|
|
|
<div class="form">
|
|
|
|
|
|
|
|
|
|
|
|
<el-form :model="form" label-position="right" label-width="80px">
|
|
|
|
<el-form :model="form" label-position="right" label-width="80px" size="mini">
|
|
|
|
<el-form-item label="派工单号">
|
|
|
|
<el-form-item label="派工单号">
|
|
|
|
<el-input v-model="form.dispatchCode"></el-input>
|
|
|
|
<el-input v-model="form.dispatchCode"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -30,72 +30,72 @@
|
|
|
|
<el-input v-model="form.planDetailStatus"></el-input>
|
|
|
|
<el-input v-model="form.planDetailStatus"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div style="text-align: center">
|
|
|
|
|
|
|
|
<el-button type="success" v-if="(!$route.query || $route.query.id==='2')"
|
|
|
|
</div>
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
<div style="text-align: center;position: absolute;width: 70%;top: 81%">
|
|
|
|
@click="getMaterials('0')">领料
|
|
|
|
<el-button size="mini" type="success" v-if="(!$route.query || $route.query.id==='2')"
|
|
|
|
</el-button>
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
<el-button type="info" v-if="(!$route.query || $route.query.id==='2')"
|
|
|
|
@click="getMaterials('0')">领料
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
</el-button>
|
|
|
|
@click="completeCollectMaterials()">完成领料
|
|
|
|
<el-button size="mini" type="info" v-if="(!$route.query || $route.query.id==='2')"
|
|
|
|
</el-button>
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
<el-button type="warning" v-if="(!$route.query || $route.query.id==='2')"
|
|
|
|
@click="completeCollectMaterials()">完成领料
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
</el-button>
|
|
|
|
@click="handleMaterialConfirmForm()">扫描
|
|
|
|
<el-button size="mini" type="warning" v-if="(!$route.query || $route.query.id==='2')"
|
|
|
|
</el-button>
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
<el-button type="danger" @click="returnMaterial()" v-if="(!$route.query || $route.query.id==='2')"
|
|
|
|
@click="handleMaterialConfirmForm()">扫描
|
|
|
|
:disabled="!form.planDetailCode">退料
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button size="mini" type="danger" @click="returnMaterial()" v-if="(!$route.query || $route.query.id==='2')"
|
|
|
|
<el-button type="info" @click="completeReturnMaterials()" v-if="(!$route.query || $route.query.id==='2')"
|
|
|
|
:disabled="!form.planDetailCode">退料
|
|
|
|
:disabled="!form.planDetailCode">完成退料
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button size="mini" type="info" @click="completeReturnMaterials()" v-if="(!$route.query || $route.query.id==='2')"
|
|
|
|
<el-button type="primary" v-if="($route.query && $route.query.id) !== '2'"
|
|
|
|
:disabled="!form.planDetailCode">完成退料
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
</el-button>
|
|
|
|
@click="getMaterials('1')">
|
|
|
|
<el-button size="mini" type="primary" v-if="($route.query && $route.query.id) !== '2'"
|
|
|
|
领柜体
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
</el-button>
|
|
|
|
@click="getMaterials('1')">
|
|
|
|
<el-button type="danger" v-if="($route.query && $route.query.id) !== '2'"
|
|
|
|
领柜体
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
</el-button>
|
|
|
|
@click="print()">
|
|
|
|
<el-button size="mini" type="danger" v-if="($route.query && $route.query.id) !== '2'"
|
|
|
|
条码
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
</el-button>
|
|
|
|
@click="print()">
|
|
|
|
<!--el-button v-if="($route.query && $route.query.id) !== '2'" type="info"
|
|
|
|
条码
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
</el-button>
|
|
|
|
@click="handleBindBarcode">绑定
|
|
|
|
<!--el-button v-if="($route.query && $route.query.id) !== '2'" type="info"
|
|
|
|
|
|
|
|
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
|
|
|
|
|
|
|
|
@click="handleBindBarcode">绑定
|
|
|
|
|
|
|
|
</el-button-->
|
|
|
|
|
|
|
|
<el-button size="mini" v-if="($route.query && $route.query.id) !== '2'" type="warning"
|
|
|
|
|
|
|
|
:disabled="!form.planDetailCode" @click="handleRawBack">返库
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button size="mini" :disabled="form.planDetailStatus === '已完成' || !form.planDetailCode" type="success"
|
|
|
|
|
|
|
|
@click="finish">完成
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-popover
|
|
|
|
|
|
|
|
v-if="($route.query && $route.query.id) !== '2'"
|
|
|
|
|
|
|
|
v-model="assignModel"
|
|
|
|
|
|
|
|
placement="top"
|
|
|
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
|
|
|
trigger="click"
|
|
|
|
|
|
|
|
width="400">
|
|
|
|
|
|
|
|
<el-form ref="assignTaskForm" :model="assignTaskForm" :rules="assignTaskRules" label-width="80px">
|
|
|
|
|
|
|
|
<el-form-item label="成品条码" prop="materialBarcode">
|
|
|
|
|
|
|
|
<el-input v-model="assignTaskForm.materialBarcode"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="工位">
|
|
|
|
|
|
|
|
<el-radio-group v-model="assignTaskForm.stationId">
|
|
|
|
|
|
|
|
<el-radio v-for="i in stationData" :label="i.stationId" :value="i.stationId" :key="i.stationId">
|
|
|
|
|
|
|
|
{{ i.stationName }}
|
|
|
|
|
|
|
|
</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<div style="float:right;margin-top: 8px">
|
|
|
|
|
|
|
|
<el-button type="primary" :loading="submitAssignLoading" @click="completeStation">确 定</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--el-button slot="reference" type="success" :disabled="form.planDetailStatus === '已完成' || !form.planDetailCode">下发
|
|
|
|
</el-button-->
|
|
|
|
</el-button-->
|
|
|
|
<el-button v-if="($route.query && $route.query.id) !== '2'" type="warning"
|
|
|
|
</el-popover>
|
|
|
|
:disabled="!form.planDetailCode" @click="handleRawBack">返库
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button :disabled="form.planDetailStatus === '已完成' || !form.planDetailCode" type="success"
|
|
|
|
|
|
|
|
@click="finish">完成
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-popover
|
|
|
|
|
|
|
|
v-if="($route.query && $route.query.id) !== '2'"
|
|
|
|
|
|
|
|
v-model="assignModel"
|
|
|
|
|
|
|
|
placement="top"
|
|
|
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
|
|
|
trigger="click"
|
|
|
|
|
|
|
|
width="400">
|
|
|
|
|
|
|
|
<el-form ref="assignTaskForm" :model="assignTaskForm" :rules="assignTaskRules" label-width="80px">
|
|
|
|
|
|
|
|
<el-form-item label="成品条码" prop="materialBarcode">
|
|
|
|
|
|
|
|
<el-input v-model="assignTaskForm.materialBarcode"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="工位">
|
|
|
|
|
|
|
|
<el-radio-group v-model="assignTaskForm.stationId">
|
|
|
|
|
|
|
|
<el-radio v-for="i in stationData" :label="i.stationId" :value="i.stationId" :key="i.stationId">
|
|
|
|
|
|
|
|
{{ i.stationName }}
|
|
|
|
|
|
|
|
</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<div style="float:right;margin-top: 8px">
|
|
|
|
|
|
|
|
<el-button type="primary" :loading="submitAssignLoading" @click="completeStation">确 定</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--el-button slot="reference" type="success" :disabled="form.planDetailStatus === '已完成' || !form.planDetailCode">下发
|
|
|
|
|
|
|
|
</el-button-->
|
|
|
|
|
|
|
|
</el-popover>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -1827,7 +1827,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.chartBox1 {
|
|
|
|
.chartBox1 {
|
|
|
|
top: 10%;
|
|
|
|
top: 53%;
|
|
|
|
left: 2%;
|
|
|
|
left: 2%;
|
|
|
|
|
|
|
|
|
|
|
|
.chart1 {
|
|
|
|
.chart1 {
|
|
|
@ -1869,7 +1869,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.chartBox3 {
|
|
|
|
.chartBox3 {
|
|
|
|
top: 53%;
|
|
|
|
top: 10%;
|
|
|
|
left: 2%;
|
|
|
|
left: 2%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1881,7 +1881,7 @@ export default {
|
|
|
|
.bottom {
|
|
|
|
.bottom {
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 1.5%;
|
|
|
|
bottom: 1.5%;
|
|
|
|
left: 2%;
|
|
|
|
right: 2%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.form {
|
|
|
|
.form {
|
|
|
|