修改五楼生产界面

master
夜笙歌 4 months ago
parent c1f7869a44
commit b3b0764876

@ -7,7 +7,7 @@
<div class="chart">
<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-input v-model="form.dispatchCode"></el-input>
</el-form-item>
@ -30,72 +30,72 @@
<el-input v-model="form.planDetailStatus"></el-input>
</el-form-item>
</el-form>
<div style="text-align: center">
<el-button type="success" v-if="(!$route.query || $route.query.id==='2')"
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
@click="getMaterials('0')">领料
</el-button>
<el-button type="info" v-if="(!$route.query || $route.query.id==='2')"
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
@click="completeCollectMaterials()">完成领料
</el-button>
<el-button type="warning" v-if="(!$route.query || $route.query.id==='2')"
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
@click="handleMaterialConfirmForm()">扫描
</el-button>
<el-button type="danger" @click="returnMaterial()" v-if="(!$route.query || $route.query.id==='2')"
:disabled="!form.planDetailCode">退料
</el-button>
<el-button type="info" @click="completeReturnMaterials()" v-if="(!$route.query || $route.query.id==='2')"
:disabled="!form.planDetailCode">完成退料
</el-button>
<el-button type="primary" v-if="($route.query && $route.query.id) !== '2'"
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
@click="getMaterials('1')">
领柜体
</el-button>
<el-button type="danger" v-if="($route.query && $route.query.id) !== '2'"
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
@click="print()">
条码
</el-button>
<!--el-button v-if="($route.query && $route.query.id) !== '2'" type="info"
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
@click="handleBindBarcode">绑定
</div>
<div style="text-align: center;position: absolute;width: 70%;top: 81%">
<el-button size="mini" type="success" v-if="(!$route.query || $route.query.id==='2')"
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
@click="getMaterials('0')">领料
</el-button>
<el-button size="mini" type="info" v-if="(!$route.query || $route.query.id==='2')"
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
@click="completeCollectMaterials()">完成领料
</el-button>
<el-button size="mini" type="warning" v-if="(!$route.query || $route.query.id==='2')"
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
@click="handleMaterialConfirmForm()">扫描
</el-button>
<el-button size="mini" type="danger" @click="returnMaterial()" v-if="(!$route.query || $route.query.id==='2')"
:disabled="!form.planDetailCode">退料
</el-button>
<el-button size="mini" type="info" @click="completeReturnMaterials()" v-if="(!$route.query || $route.query.id==='2')"
:disabled="!form.planDetailCode">完成退料
</el-button>
<el-button size="mini" type="primary" v-if="($route.query && $route.query.id) !== '2'"
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
@click="getMaterials('1')">
领柜体
</el-button>
<el-button size="mini" type="danger" v-if="($route.query && $route.query.id) !== '2'"
:disabled="form.planDetailStatus === '已完成' || !form.planDetailCode"
@click="print()">
条码
</el-button>
<!--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 v-if="($route.query && $route.query.id) !== '2'" type="warning"
: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>
</el-popover>
</div>
@ -1827,7 +1827,7 @@ export default {
}
.chartBox1 {
top: 10%;
top: 53%;
left: 2%;
.chart1 {
@ -1869,7 +1869,7 @@ export default {
}
.chartBox3 {
top: 53%;
top: 10%;
left: 2%;
}
@ -1881,7 +1881,7 @@ export default {
.bottom {
position: absolute;
bottom: 1.5%;
left: 2%;
right: 2%;
}
.form {

Loading…
Cancel
Save