|
|
@ -1,20 +1,19 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="produce-report"> |
|
|
<div class="produce-report"> |
|
|
<el-dialog v-drag |
|
|
<el-dialog v-drag |
|
|
width="830px" class="customer-dialog" |
|
|
|
|
|
:title="titleCon" v-bind="$attrs" v-on="$listeners" |
|
|
|
|
|
> |
|
|
|
|
|
<el-form :inline="true" label-position="top" style="height: 480px;" |
|
|
|
|
|
|
|
|
width="820px" class="customer-dialog" |
|
|
|
|
|
:title="titleCon" v-bind="$attrs" v-on="$listeners"> |
|
|
|
|
|
<el-form :inline="true" label-position="top" style="height: 460px;" |
|
|
label-width="80px"> |
|
|
label-width="80px"> |
|
|
<!-- 第一行信息 --> |
|
|
<!-- 第一行信息 --> |
|
|
<el-form style="margin-top: -10px;"> |
|
|
<el-form style="margin-top: -10px;"> |
|
|
<el-form-item label="订单号:"> |
|
|
<el-form-item label="订单号:"> |
|
|
<el-input v-model="scheduleData.orderNo" readonly style="width: 130px;" ></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="scheduleData.orderNo" readonly style="width: 130px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="物料编码:"> |
|
|
<el-form-item label="物料编码:"> |
|
|
<el-input v-model="scheduleData.partNo" readonly style="width: 130px;"></el-input> |
|
|
<el-input v-model="scheduleData.partNo" readonly style="width: 130px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="物料名称/规则:" > |
|
|
|
|
|
|
|
|
<el-form-item label="物料名称/规则:"> |
|
|
<el-input v-model="scheduleData.partDesc" readonly style="width: 200px;"></el-input> |
|
|
<el-input v-model="scheduleData.partDesc" readonly style="width: 200px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="派工单号:"> |
|
|
<el-form-item label="派工单号:"> |
|
|
@ -41,14 +40,16 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
<!-- 第三行信息 --> |
|
|
<!-- 第三行信息 --> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-form-item label="前道工序" > |
|
|
|
|
|
|
|
|
<el-form-item label="前道工序"> |
|
|
<el-input v-model="scheduleData.preItemDesc" readonly style="width: 180px;"></el-input> |
|
|
<el-input v-model="scheduleData.preItemDesc" readonly style="width: 180px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="后道工序" prop="languageDefault"> |
|
|
<el-form-item label="后道工序" prop="languageDefault"> |
|
|
<el-input v-model="scheduleData.nextItemDesc" readonly style="width: 180px;"></el-input> |
|
|
<el-input v-model="scheduleData.nextItemDesc" readonly style="width: 180px;"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="''" style="margin-left: -5px;"> |
|
|
<el-form-item :label="''" style="margin-left: -5px;"> |
|
|
<el-checkbox style="margin-top: 28px;" true-label="true" false-label="false" v-model="scheduleData.currentRollFlag">仅显示当前卷信息</el-checkbox> |
|
|
|
|
|
|
|
|
<el-checkbox style="margin-top: 28px;" true-label="true" false-label="false" |
|
|
|
|
|
v-model="scheduleData.currentRollFlag">仅显示当前卷信息 |
|
|
|
|
|
</el-checkbox> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<!-- 第四行菜单 --> |
|
|
<!-- 第四行菜单 --> |
|
|
@ -56,30 +57,37 @@ |
|
|
<legend class="customer-legend">卷操作</legend> |
|
|
<legend class="customer-legend">卷操作</legend> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-form-item style="width: 90px;"> |
|
|
<el-form-item style="width: 90px;"> |
|
|
<span>{{this.currentRollOps.rollNo}}</span> |
|
|
|
|
|
|
|
|
<span>{{ this.currentRollOps.rollNo }}</span> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" @click="createNewRollFun" :disabled="buttonTags.createNewRollFlag" |
|
|
<el-button type="primary" @click="createNewRollFun" :disabled="buttonTags.createNewRollFlag" |
|
|
style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
创建新卷</el-button> |
|
|
|
|
|
|
|
|
创建新卷 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" @click="switchRollModal" :disabled="buttonTags.switchRollFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
切换卷</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="switchRollModal" :disabled="buttonTags.switchRollFlag" |
|
|
|
|
|
style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
切换卷 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" @click="separateRollModal" :disabled="buttonTags.separateRollFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
创建分卷</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="separateRollModal" :disabled="buttonTags.separateRollFlag" |
|
|
|
|
|
style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
创建分卷 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" :disabled="buttonTags.finishRollFlag" |
|
|
<el-button type="primary" :disabled="buttonTags.finishRollFlag" |
|
|
@click="finishRollModal" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
@click="finishRollModal" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
结束卷</el-button> |
|
|
|
|
|
|
|
|
结束卷 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" :disabled="buttonTags.mergeRollFlag" |
|
|
<el-button type="primary" :disabled="buttonTags.mergeRollFlag" |
|
|
@click="mergeRollModal" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
@click="mergeRollModal" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
合并卷</el-button> |
|
|
|
|
|
|
|
|
合并卷 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
@ -106,7 +114,7 @@ |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -131,7 +139,7 @@ |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -154,7 +162,7 @@ |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -179,7 +187,7 @@ |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -202,7 +210,7 @@ |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -227,7 +235,7 @@ |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -252,7 +260,7 @@ |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -277,7 +285,7 @@ |
|
|
:width="item.columnWidth" |
|
|
:width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -287,24 +295,32 @@ |
|
|
</el-tabs> |
|
|
</el-tabs> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
<!-- 生产调机菜单 --> |
|
|
<!-- 生产调机菜单 --> |
|
|
<fieldset class="customer-fieldset" style="margin-left: 600px; margin-top: -460px; width: 200px; height: 120px;"> |
|
|
|
|
|
|
|
|
<fieldset class="customer-fieldset" |
|
|
|
|
|
style="margin-left: 600px; margin-top: -460px; width: 200px; height: 120px;"> |
|
|
<legend class="customer-legend">生产调机</legend> |
|
|
<legend class="customer-legend">生产调机</legend> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" @click="refreshPageData" style="margin-left: 20px; margin-top: 20px; margin-bottom: 25px;"> |
|
|
|
|
|
刷新</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="refreshPageData" |
|
|
|
|
|
style="margin-left: 20px; margin-top: 20px; margin-bottom: 25px;"> |
|
|
|
|
|
刷新 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" @click="switchOperatorModal" style="margin-left: 25px; margin-top: 20px;"> |
|
|
<el-button type="primary" @click="switchOperatorModal" style="margin-left: 25px; margin-top: 20px;"> |
|
|
切换用户</el-button> |
|
|
|
|
|
|
|
|
切换用户 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item style="margin-top: 30px;"> |
|
|
<el-form-item style="margin-top: 30px;"> |
|
|
<el-button type="primary" @click="startTuningModal" :disabled="buttonTags.tuningFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
开始调机</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="startTuningModal" :disabled="buttonTags.tuningFlag" |
|
|
|
|
|
style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
开始调机 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item style="margin-top: 30px;"> |
|
|
<el-form-item style="margin-top: 30px;"> |
|
|
<el-button type="primary" @click="startProduceModal" :disabled="buttonTags.produceFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
开始生产</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="startProduceModal" :disabled="buttonTags.produceFlag" |
|
|
|
|
|
style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
开始生产 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
@ -313,8 +329,10 @@ |
|
|
<legend class="customer-legend">不良</legend> |
|
|
<legend class="customer-legend">不良</legend> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-form-item style="margin-top: -5px;"> |
|
|
<el-form-item style="margin-top: -5px;"> |
|
|
<el-button @click="defectRollModal" type="primary" :disabled="buttonTags.defectFlag" style="margin-left: 50px; margin-top: 10px;"> |
|
|
|
|
|
报告不良</el-button> |
|
|
|
|
|
|
|
|
<el-button @click="defectRollModal" type="primary" :disabled="buttonTags.defectFlag" |
|
|
|
|
|
style="margin-left: 50px; margin-top: 10px;"> |
|
|
|
|
|
报告不良 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
@ -326,24 +344,28 @@ |
|
|
<el-form-item style="margin-top: -5px;"> |
|
|
<el-form-item style="margin-top: -5px;"> |
|
|
<el-button type="primary" @click="produceToolModal" |
|
|
<el-button type="primary" @click="produceToolModal" |
|
|
:disabled="buttonTags.toolFlag" style="margin-left: 30px; margin-top: 20px;"> |
|
|
:disabled="buttonTags.toolFlag" style="margin-left: 30px; margin-top: 20px;"> |
|
|
刀模板</el-button> |
|
|
|
|
|
|
|
|
刀模板 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item style="margin-top: -5px;"> |
|
|
<el-form-item style="margin-top: -5px;"> |
|
|
<el-button type="primary" @click="produceMaterialModal" |
|
|
<el-button type="primary" @click="produceMaterialModal" |
|
|
:disabled="buttonTags.materialFlag" style="margin-left: 10px; margin-top: 20px;"> |
|
|
:disabled="buttonTags.materialFlag" style="margin-left: 10px; margin-top: 20px;"> |
|
|
材料</el-button> |
|
|
|
|
|
|
|
|
材料 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
|
|
|
|
|
|
<!-- 停机 --> |
|
|
<!-- 停机 --> |
|
|
<fieldset class="customer-fieldset" style="margin-left: 600px; margin-bottom: 10px; width: 200px; height: 190px;"> |
|
|
|
|
|
|
|
|
<fieldset class="customer-fieldset" |
|
|
|
|
|
style="margin-left: 600px; margin-bottom: 10px; width: 200px; height: 190px;"> |
|
|
<legend class="customer-legend">停机</legend> |
|
|
<legend class="customer-legend">停机</legend> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" @click="produceDownModal" |
|
|
<el-button type="primary" @click="produceDownModal" |
|
|
:disabled="buttonTags.downTimeFlag" style="margin-left: 30px; margin-top: 10px;"> |
|
|
:disabled="buttonTags.downTimeFlag" style="margin-left: 30px; margin-top: 10px;"> |
|
|
报告其他停机</el-button> |
|
|
|
|
|
|
|
|
报告其他停机 |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
@ -370,7 +392,7 @@ |
|
|
</comSeparateRoll> |
|
|
</comSeparateRoll> |
|
|
<!-- 结束卷的modal --> |
|
|
<!-- 结束卷的modal --> |
|
|
<comFinishRoll ref="comFinishRoll" :close-on-click-modal="false" |
|
|
<comFinishRoll ref="comFinishRoll" :close-on-click-modal="false" |
|
|
:visible.sync="showFinishFlag" > |
|
|
|
|
|
|
|
|
:visible.sync="showFinishFlag"> |
|
|
|
|
|
|
|
|
</comFinishRoll> |
|
|
</comFinishRoll> |
|
|
|
|
|
|
|
|
@ -452,7 +474,7 @@ export default { |
|
|
name: "com_produce_report_normal", |
|
|
name: "com_produce_report_normal", |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
titleCon:'', |
|
|
|
|
|
|
|
|
titleCon: '', |
|
|
showOperatorFlag: false, |
|
|
showOperatorFlag: false, |
|
|
showSwitchFlag: false, |
|
|
showSwitchFlag: false, |
|
|
showSeparateFlag: false, |
|
|
showSeparateFlag: false, |
|
|
@ -2651,7 +2673,7 @@ export default { |
|
|
status: '', |
|
|
status: '', |
|
|
showFlag: false |
|
|
showFlag: false |
|
|
}, |
|
|
}, |
|
|
buttonTags:{ |
|
|
|
|
|
|
|
|
buttonTags: { |
|
|
createNewRollFlag: false, |
|
|
createNewRollFlag: false, |
|
|
switchRollFlag: false, |
|
|
switchRollFlag: false, |
|
|
separateRollFlag: false, |
|
|
separateRollFlag: false, |
|
|
@ -2682,7 +2704,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
// 获取派工单的信息 |
|
|
// 获取派工单的信息 |
|
|
getScheduleDataBySeqNo(){ |
|
|
|
|
|
|
|
|
getScheduleDataBySeqNo() { |
|
|
getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => { |
|
|
getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => { |
|
|
this.scheduleData.seqNo = data.row.seqNo; |
|
|
this.scheduleData.seqNo = data.row.seqNo; |
|
|
this.scheduleData.orderNo = data.row.orderNo; |
|
|
this.scheduleData.orderNo = data.row.orderNo; |
|
|
@ -2702,7 +2724,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
// 获取当前卷的信息 |
|
|
// 获取当前卷的信息 |
|
|
getCurrentRollOpsBySeqNo(){ |
|
|
|
|
|
|
|
|
getCurrentRollOpsBySeqNo() { |
|
|
getCurrentRollOpsBySeqNo(this.currentRollOps).then(({data}) => { |
|
|
getCurrentRollOpsBySeqNo(this.currentRollOps).then(({data}) => { |
|
|
this.currentRollOps.rollNo = data.row.rollNo; |
|
|
this.currentRollOps.rollNo = data.row.rollNo; |
|
|
this.scheduleData.rollNo = data.row.rollNo; |
|
|
this.scheduleData.rollNo = data.row.rollNo; |
|
|
@ -2711,90 +2733,90 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//列表表格选择替换 |
|
|
//列表表格选择替换 |
|
|
tabClick(tab, event){ |
|
|
|
|
|
|
|
|
tabClick(tab, event) { |
|
|
//刷新列表数据 |
|
|
//刷新列表数据 |
|
|
this.refreshCurrentTabTable(); |
|
|
this.refreshCurrentTabTable(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//刷新派工单的时间的记录 |
|
|
//刷新派工单的时间的记录 |
|
|
getSfdcTimeList(){ |
|
|
|
|
|
|
|
|
getSfdcTimeList() { |
|
|
getSfdcTimeByCon(this.scheduleData).then(({data}) => { |
|
|
getSfdcTimeByCon(this.scheduleData).then(({data}) => { |
|
|
this.sfdcTimeList = data.rows; |
|
|
this.sfdcTimeList = data.rows; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//刷新工单的工具信息 |
|
|
//刷新工单的工具信息 |
|
|
getOrderToolList(){ |
|
|
|
|
|
|
|
|
getOrderToolList() { |
|
|
getOrderToolByCon(this.scheduleData).then(({data}) => { |
|
|
getOrderToolByCon(this.scheduleData).then(({data}) => { |
|
|
this.orderToolList = data.rows; |
|
|
this.orderToolList = data.rows; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//刷新派工单的刀模板的记录 |
|
|
//刷新派工单的刀模板的记录 |
|
|
getSfdcToolList(){ |
|
|
|
|
|
|
|
|
getSfdcToolList() { |
|
|
getSfdcToolByCon(this.scheduleData).then(({data}) => { |
|
|
getSfdcToolByCon(this.scheduleData).then(({data}) => { |
|
|
this.sfdcToolList = data.rows; |
|
|
this.sfdcToolList = data.rows; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//刷新工单的bom信息 |
|
|
//刷新工单的bom信息 |
|
|
getOrderBomList(){ |
|
|
|
|
|
|
|
|
getOrderBomList() { |
|
|
getOrderBomByCon(this.scheduleData).then(({data}) => { |
|
|
getOrderBomByCon(this.scheduleData).then(({data}) => { |
|
|
this.orderBomList = data.rows; |
|
|
this.orderBomList = data.rows; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//刷新派工单的材料表的记录 |
|
|
//刷新派工单的材料表的记录 |
|
|
getSfdcMaterialList(){ |
|
|
|
|
|
|
|
|
getSfdcMaterialList() { |
|
|
getSfdcMaterialByCon(this.scheduleData).then(({data}) => { |
|
|
getSfdcMaterialByCon(this.scheduleData).then(({data}) => { |
|
|
this.sfdcMaterialList = data.rows; |
|
|
this.sfdcMaterialList = data.rows; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//刷新派工单的下机卷的记录 |
|
|
//刷新派工单的下机卷的记录 |
|
|
getSfdcRollOpsList(){ |
|
|
|
|
|
|
|
|
getSfdcRollOpsList() { |
|
|
getSfdcRollOpsByCon(this.scheduleData).then(({data}) => { |
|
|
getSfdcRollOpsByCon(this.scheduleData).then(({data}) => { |
|
|
this.sfdcRollOpsList = data.rows; |
|
|
this.sfdcRollOpsList = data.rows; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//刷新派工单的不良标的记录 |
|
|
//刷新派工单的不良标的记录 |
|
|
getSfdcDefectList(){ |
|
|
|
|
|
|
|
|
getSfdcDefectList() { |
|
|
getSfdcDefectByCon(this.scheduleData).then(({data}) => { |
|
|
getSfdcDefectByCon(this.scheduleData).then(({data}) => { |
|
|
this.sfdcDefectList = data.rows; |
|
|
this.sfdcDefectList = data.rows; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//刷新派工单的下机卷的记录 |
|
|
//刷新派工单的下机卷的记录 |
|
|
getSfdcRollList(){ |
|
|
|
|
|
|
|
|
getSfdcRollList() { |
|
|
getSfdcRollByCon(this.scheduleData).then(({data}) => { |
|
|
getSfdcRollByCon(this.scheduleData).then(({data}) => { |
|
|
this.sfdcRollList = data.rows; |
|
|
this.sfdcRollList = data.rows; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//刷新页签的table数据 |
|
|
//刷新页签的table数据 |
|
|
refreshCurrentTabTable(){ |
|
|
|
|
|
|
|
|
refreshCurrentTabTable() { |
|
|
//判断是否按照当前卷来查询 |
|
|
//判断是否按照当前卷来查询 |
|
|
if(this.scheduleData.currentRollFlag){ |
|
|
|
|
|
|
|
|
if (this.scheduleData.currentRollFlag) { |
|
|
//设置相关的卷号 判断是否存在卷 |
|
|
//设置相关的卷号 判断是否存在卷 |
|
|
this.scheduleData.rollNo = this.currentRollOps.rollNo; |
|
|
this.scheduleData.rollNo = this.currentRollOps.rollNo; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.scheduleData.rollNo = ''; |
|
|
this.scheduleData.rollNo = ''; |
|
|
} |
|
|
} |
|
|
//区分不同的页签刷新不同的列表数据 |
|
|
//区分不同的页签刷新不同的列表数据 |
|
|
if(this.activeTable == 'sfdc_time'){ |
|
|
|
|
|
|
|
|
if (this.activeTable == 'sfdc_time') { |
|
|
this.getSfdcTimeList(); |
|
|
this.getSfdcTimeList(); |
|
|
}else if(this.activeTable == 'sfdc_tool'){ |
|
|
|
|
|
|
|
|
} else if (this.activeTable == 'sfdc_tool') { |
|
|
this.getOrderToolList(); |
|
|
this.getOrderToolList(); |
|
|
this.getSfdcToolList(); |
|
|
this.getSfdcToolList(); |
|
|
}else if(this.activeTable == 'sfdc_material'){ |
|
|
|
|
|
|
|
|
} else if (this.activeTable == 'sfdc_material') { |
|
|
this.getOrderBomList(); |
|
|
this.getOrderBomList(); |
|
|
this.getSfdcMaterialList(); |
|
|
this.getSfdcMaterialList(); |
|
|
}else if(this.activeTable == 'sfdc_rollOps'){ |
|
|
|
|
|
|
|
|
} else if (this.activeTable == 'sfdc_rollOps') { |
|
|
this.getSfdcRollOpsList(); |
|
|
this.getSfdcRollOpsList(); |
|
|
}else if(this.activeTable == 'sfdc_defect'){ |
|
|
|
|
|
|
|
|
} else if (this.activeTable == 'sfdc_defect') { |
|
|
this.getSfdcDefectList(); |
|
|
this.getSfdcDefectList(); |
|
|
}else if(this.activeTable == 'sfdc_roll'){ |
|
|
|
|
|
|
|
|
} else if (this.activeTable == 'sfdc_roll') { |
|
|
this.getSfdcRollList(); |
|
|
this.getSfdcRollList(); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -2808,26 +2830,26 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//刷新页面的数据 |
|
|
//刷新页面的数据 |
|
|
refreshPageData(){ |
|
|
|
|
|
|
|
|
refreshPageData() { |
|
|
getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => { |
|
|
getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => { |
|
|
this.scheduleData.seqNo= data.row.seqNo; |
|
|
|
|
|
this.scheduleData.orderNo= data.row.orderNo; |
|
|
|
|
|
|
|
|
this.scheduleData.seqNo = data.row.seqNo; |
|
|
|
|
|
this.scheduleData.orderNo = data.row.orderNo; |
|
|
this.scheduleData.itemNo = data.row.itemNo; |
|
|
this.scheduleData.itemNo = data.row.itemNo; |
|
|
this.scheduleData.partNo= data.row.partNo; |
|
|
|
|
|
this.scheduleData.partDesc= data.row.partDesc; |
|
|
|
|
|
this.scheduleData.planStartTime= data.row.planStartTime; |
|
|
|
|
|
this.scheduleData.planFinishTime= data.row.planFinishTime; |
|
|
|
|
|
this.scheduleData.qtyRequiredOriginal= data.row.qtyRequiredOriginal; |
|
|
|
|
|
this.scheduleData.scheduledDate= data.row.scheduledDate; |
|
|
|
|
|
this.scheduleData.shiftNo= data.row.shiftNo; |
|
|
|
|
|
this.scheduleData.preItemDesc= data.row.preItemDesc; |
|
|
|
|
|
this.scheduleData.nextItemDesc= data.row.nextItemDesc; |
|
|
|
|
|
|
|
|
this.scheduleData.partNo = data.row.partNo; |
|
|
|
|
|
this.scheduleData.partDesc = data.row.partDesc; |
|
|
|
|
|
this.scheduleData.planStartTime = data.row.planStartTime; |
|
|
|
|
|
this.scheduleData.planFinishTime = data.row.planFinishTime; |
|
|
|
|
|
this.scheduleData.qtyRequiredOriginal = data.row.qtyRequiredOriginal; |
|
|
|
|
|
this.scheduleData.scheduledDate = data.row.scheduledDate; |
|
|
|
|
|
this.scheduleData.shiftNo = data.row.shiftNo; |
|
|
|
|
|
this.scheduleData.preItemDesc = data.row.preItemDesc; |
|
|
|
|
|
this.scheduleData.nextItemDesc = data.row.nextItemDesc; |
|
|
this.scheduleData.workCenterNo = data.row.workCenterNo; |
|
|
this.scheduleData.workCenterNo = data.row.workCenterNo; |
|
|
this.scheduleData.workCenterDesc = data.row.workCenterDesc; |
|
|
this.scheduleData.workCenterDesc = data.row.workCenterDesc; |
|
|
this.scheduleData.resourceDesc = data.row.resourceDesc; |
|
|
this.scheduleData.resourceDesc = data.row.resourceDesc; |
|
|
//设置弹窗的标题 |
|
|
//设置弹窗的标题 |
|
|
this.titleCon = '机台工作台' + ' - ' + data.row.workCenterDesc + ' ' |
|
|
this.titleCon = '机台工作台' + ' - ' + data.row.workCenterDesc + ' ' |
|
|
+ data.row.resourceDesc + ' (' + this.operatorData.operatorName+ ')'; |
|
|
|
|
|
|
|
|
+ data.row.resourceDesc + ' (' + this.operatorData.operatorName + ')'; |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
//打开模态框 |
|
|
//打开模态框 |
|
|
this.visibleFlag = true; |
|
|
this.visibleFlag = true; |
|
|
@ -2840,14 +2862,14 @@ export default { |
|
|
this.refreshCurrentTabTable(); |
|
|
this.refreshCurrentTabTable(); |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
//刷新当前的菜单 |
|
|
//刷新当前的菜单 |
|
|
this.refreshPageButtons(); |
|
|
|
|
|
|
|
|
//this.refreshPageButtons(); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//刷新当前页面的菜单 |
|
|
//刷新当前页面的菜单 |
|
|
refreshPageButtons(){ |
|
|
|
|
|
|
|
|
refreshPageButtons() { |
|
|
//判断是否存在人员 |
|
|
//判断是否存在人员 |
|
|
if(this.operatorData.operatorId == null || this.operatorData.operatorId == ''){ |
|
|
|
|
|
|
|
|
if (this.operatorData.operatorId == null || this.operatorData.operatorId == '') { |
|
|
this.buttonTags.createNewRollFlag = true; |
|
|
this.buttonTags.createNewRollFlag = true; |
|
|
this.buttonTags.switchRollFlag = true; |
|
|
this.buttonTags.switchRollFlag = true; |
|
|
this.buttonTags.separateRollFlag = true; |
|
|
this.buttonTags.separateRollFlag = true; |
|
|
@ -2858,59 +2880,59 @@ export default { |
|
|
this.buttonTags.toolFlag = true; |
|
|
this.buttonTags.toolFlag = true; |
|
|
this.buttonTags.materialFlag = true; |
|
|
this.buttonTags.materialFlag = true; |
|
|
this.buttonTags.downTimeFlag = true; |
|
|
this.buttonTags.downTimeFlag = true; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
//存在人员既可以合并卷 |
|
|
//存在人员既可以合并卷 |
|
|
this.buttonTags.mergeRollFlag = false; |
|
|
this.buttonTags.mergeRollFlag = false; |
|
|
//刷新其他的菜单 |
|
|
//刷新其他的菜单 |
|
|
refreshWorkPlatformButtons(this.scheduleData).then(({data}) => { |
|
|
refreshWorkPlatformButtons(this.scheduleData).then(({data}) => { |
|
|
if(data.resultMap.createNewRollFlag == 'Y'){ |
|
|
|
|
|
|
|
|
if (data.resultMap.createNewRollFlag == 'Y') { |
|
|
this.buttonTags.createNewRollFlag = false; |
|
|
this.buttonTags.createNewRollFlag = false; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.buttonTags.createNewRollFlag = true; |
|
|
this.buttonTags.createNewRollFlag = true; |
|
|
} |
|
|
} |
|
|
if(data.resultMap.switchRollFlag == 'Y'){ |
|
|
|
|
|
|
|
|
if (data.resultMap.switchRollFlag == 'Y') { |
|
|
this.buttonTags.switchRollFlag = false; |
|
|
this.buttonTags.switchRollFlag = false; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.buttonTags.switchRollFlag = true; |
|
|
this.buttonTags.switchRollFlag = true; |
|
|
} |
|
|
} |
|
|
if(data.resultMap.separateRollFlag == 'Y'){ |
|
|
|
|
|
|
|
|
if (data.resultMap.separateRollFlag == 'Y') { |
|
|
this.buttonTags.separateRollFlag = false; |
|
|
this.buttonTags.separateRollFlag = false; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.buttonTags.separateRollFlag = true; |
|
|
this.buttonTags.separateRollFlag = true; |
|
|
} |
|
|
} |
|
|
if(data.resultMap.finishRollFlag == 'Y'){ |
|
|
|
|
|
|
|
|
if (data.resultMap.finishRollFlag == 'Y') { |
|
|
this.buttonTags.finishRollFlag = false; |
|
|
this.buttonTags.finishRollFlag = false; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.buttonTags.finishRollFlag = true; |
|
|
this.buttonTags.finishRollFlag = true; |
|
|
} |
|
|
} |
|
|
if(data.resultMap.tuningFlag == 'Y'){ |
|
|
|
|
|
|
|
|
if (data.resultMap.tuningFlag == 'Y') { |
|
|
this.buttonTags.tuningFlag = false; |
|
|
this.buttonTags.tuningFlag = false; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.buttonTags.tuningFlag = true; |
|
|
this.buttonTags.tuningFlag = true; |
|
|
} |
|
|
} |
|
|
if(data.resultMap.produceFlag == 'Y'){ |
|
|
|
|
|
|
|
|
if (data.resultMap.produceFlag == 'Y') { |
|
|
this.buttonTags.produceFlag = false; |
|
|
this.buttonTags.produceFlag = false; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.buttonTags.produceFlag = true; |
|
|
this.buttonTags.produceFlag = true; |
|
|
} |
|
|
} |
|
|
if(data.resultMap.defectFlag == 'Y'){ |
|
|
|
|
|
|
|
|
if (data.resultMap.defectFlag == 'Y') { |
|
|
this.buttonTags.defectFlag = false; |
|
|
this.buttonTags.defectFlag = false; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.buttonTags.defectFlag = true; |
|
|
this.buttonTags.defectFlag = true; |
|
|
} |
|
|
} |
|
|
if(data.resultMap.toolFlag == 'Y'){ |
|
|
|
|
|
|
|
|
if (data.resultMap.toolFlag == 'Y') { |
|
|
this.buttonTags.toolFlag = false; |
|
|
this.buttonTags.toolFlag = false; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.buttonTags.toolFlag = true; |
|
|
this.buttonTags.toolFlag = true; |
|
|
} |
|
|
} |
|
|
if(data.resultMap.materialFlag == 'Y'){ |
|
|
|
|
|
|
|
|
if (data.resultMap.materialFlag == 'Y') { |
|
|
this.buttonTags.materialFlag = false; |
|
|
this.buttonTags.materialFlag = false; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.buttonTags.materialFlag = true; |
|
|
this.buttonTags.materialFlag = true; |
|
|
} |
|
|
} |
|
|
if(data.resultMap.downTimeFlag == 'Y'){ |
|
|
|
|
|
|
|
|
if (data.resultMap.downTimeFlag == 'Y') { |
|
|
this.buttonTags.downTimeFlag = false; |
|
|
this.buttonTags.downTimeFlag = false; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.buttonTags.downTimeFlag = true; |
|
|
this.buttonTags.downTimeFlag = true; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -2918,18 +2940,18 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//设置参数 |
|
|
//设置参数 |
|
|
initOperatorData(operatorData){ |
|
|
|
|
|
|
|
|
initOperatorData(operatorData) { |
|
|
this.showOperatorFlag = false; |
|
|
this.showOperatorFlag = false; |
|
|
this.operatorData = JSON.parse(JSON.stringify(operatorData)); |
|
|
this.operatorData = JSON.parse(JSON.stringify(operatorData)); |
|
|
//切换当前账户的信息 |
|
|
//切换当前账户的信息 |
|
|
//设置弹窗的标题 |
|
|
//设置弹窗的标题 |
|
|
this.titleCon = '机台工作台' + ' - ' + this.scheduleData.workCenterDesc + ' ' |
|
|
this.titleCon = '机台工作台' + ' - ' + this.scheduleData.workCenterDesc + ' ' |
|
|
+ this.scheduleData.resourceDesc + ' (' + this.operatorData.operatorName+ ')'; |
|
|
|
|
|
|
|
|
+ this.scheduleData.resourceDesc + ' (' + this.operatorData.operatorName + ')'; |
|
|
//刷新菜单 |
|
|
//刷新菜单 |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*不初始化操作员的方法*/ |
|
|
/*不初始化操作员的方法*/ |
|
|
notInitOperatorData(){ |
|
|
|
|
|
|
|
|
notInitOperatorData() { |
|
|
//关闭切换用户的组件 |
|
|
//关闭切换用户的组件 |
|
|
this.showOperatorFlag = false; |
|
|
this.showOperatorFlag = false; |
|
|
}, |
|
|
}, |
|
|
@ -2949,7 +2971,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//创建新卷的功能 |
|
|
//创建新卷的功能 |
|
|
createNewRollFun(){ |
|
|
|
|
|
|
|
|
createNewRollFun() { |
|
|
//校验当前的功能是否可用 |
|
|
//校验当前的功能是否可用 |
|
|
this.scheduleData.functionName = 'createNewRollFlag'; |
|
|
this.scheduleData.functionName = 'createNewRollFlag'; |
|
|
this.scheduleData.operatorId = this.operatorData.operatorId; |
|
|
this.scheduleData.operatorId = this.operatorData.operatorId; |
|
|
@ -2957,17 +2979,17 @@ export default { |
|
|
//判断校验是否通过 |
|
|
//判断校验是否通过 |
|
|
let resultMap = data.resultMap; |
|
|
let resultMap = data.resultMap; |
|
|
//判断是否通过验证 |
|
|
//判断是否通过验证 |
|
|
if(resultMap.code == 200){ |
|
|
|
|
|
|
|
|
if (resultMap.code == 200) { |
|
|
//调用创建卷的方法 |
|
|
//调用创建卷的方法 |
|
|
this.createNewRollDo(); |
|
|
this.createNewRollDo(); |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.$message.error(resultMap.msg) |
|
|
this.$message.error(resultMap.msg) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*切换卷操作*/ |
|
|
/*切换卷操作*/ |
|
|
switchRollModal(){ |
|
|
|
|
|
|
|
|
switchRollModal() { |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//checkProduceButton('switchRollFlag'); |
|
|
//checkProduceButton('switchRollFlag'); |
|
|
//打开切换用户的页面 |
|
|
//打开切换用户的页面 |
|
|
@ -2978,7 +3000,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*创建分卷的modal调用*/ |
|
|
/*创建分卷的modal调用*/ |
|
|
separateRollModal(){ |
|
|
|
|
|
|
|
|
separateRollModal() { |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//checkProduceButton('separateRollFlag'); |
|
|
//checkProduceButton('separateRollFlag'); |
|
|
//打开创建分卷的页面 76一会还把 |
|
|
//打开创建分卷的页面 76一会还把 |
|
|
@ -2989,7 +3011,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*结束卷操作*/ |
|
|
/*结束卷操作*/ |
|
|
finishRollModal(){ |
|
|
|
|
|
|
|
|
finishRollModal() { |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//checkProduceButton('finishRollFlag'); |
|
|
//checkProduceButton('finishRollFlag'); |
|
|
//打开结束卷的页面 |
|
|
//打开结束卷的页面 |
|
|
@ -3000,7 +3022,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*合并卷modal*/ |
|
|
/*合并卷modal*/ |
|
|
mergeRollModal(){ |
|
|
|
|
|
|
|
|
mergeRollModal() { |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//checkProduceButton('mergeRollFlag'); |
|
|
//checkProduceButton('mergeRollFlag'); |
|
|
//打开合并卷的页面 |
|
|
//打开合并卷的页面 |
|
|
@ -3012,7 +3034,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*开始调机modal*/ |
|
|
/*开始调机modal*/ |
|
|
startTuningModal(){ |
|
|
|
|
|
|
|
|
startTuningModal() { |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//checkProduceButton('startTuningFlag'); |
|
|
//checkProduceButton('startTuningFlag'); |
|
|
//打开开始调机的页面 |
|
|
//打开开始调机的页面 |
|
|
@ -3024,7 +3046,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*开始调机modal*/ |
|
|
/*开始调机modal*/ |
|
|
startProduceModal(){ |
|
|
|
|
|
|
|
|
startProduceModal() { |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//checkProduceButton('startProduceFlag'); |
|
|
//checkProduceButton('startProduceFlag'); |
|
|
//打开开始生产的页面 |
|
|
//打开开始生产的页面 |
|
|
@ -3036,7 +3058,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*报告不良modal*/ |
|
|
/*报告不良modal*/ |
|
|
defectRollModal(){ |
|
|
|
|
|
|
|
|
defectRollModal() { |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
//checkProduceButton('defectRollFlag'); |
|
|
//checkProduceButton('defectRollFlag'); |
|
|
//打开不良卷的页面 |
|
|
//打开不良卷的页面 |
|
|
@ -3047,7 +3069,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*生产过程的工具组件*/ |
|
|
/*生产过程的工具组件*/ |
|
|
produceToolModal(){ |
|
|
|
|
|
|
|
|
produceToolModal() { |
|
|
//1.首先调用菜单判断方式 打开生产过程的工具的页面 |
|
|
//1.首先调用菜单判断方式 打开生产过程的工具的页面 |
|
|
//checkProduceButton('produceToolFlag'); |
|
|
//checkProduceButton('produceToolFlag'); |
|
|
//打开生产过程的工具的页面 |
|
|
//打开生产过程的工具的页面 |
|
|
@ -3058,7 +3080,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*生产过程的工具组件*/ |
|
|
/*生产过程的工具组件*/ |
|
|
produceMaterialModal(){ |
|
|
|
|
|
|
|
|
produceMaterialModal() { |
|
|
//1.首先调用菜单判断方式 打开生产过程的材料的页面 |
|
|
//1.首先调用菜单判断方式 打开生产过程的材料的页面 |
|
|
//checkProduceButton('produceMaterialFlag'); |
|
|
//checkProduceButton('produceMaterialFlag'); |
|
|
//打开生产过程的工具的页面 |
|
|
//打开生产过程的工具的页面 |
|
|
@ -3070,7 +3092,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*生产过程的停机组件*/ |
|
|
/*生产过程的停机组件*/ |
|
|
produceDownModal(){ |
|
|
|
|
|
|
|
|
produceDownModal() { |
|
|
//1.首先调用菜单判断方式 打开生产过程的停机的页面 |
|
|
//1.首先调用菜单判断方式 打开生产过程的停机的页面 |
|
|
//checkProduceButton('produceDownFlag'); |
|
|
//checkProduceButton('produceDownFlag'); |
|
|
//打开生产过程的工具的页面 |
|
|
//打开生产过程的工具的页面 |
|
|
@ -3081,14 +3103,14 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//创建新卷的方法 |
|
|
//创建新卷的方法 |
|
|
createNewRollDo(){ |
|
|
|
|
|
|
|
|
createNewRollDo() { |
|
|
createNewRoll(this.scheduleData).then(({data}) => { |
|
|
createNewRoll(this.scheduleData).then(({data}) => { |
|
|
//判断是否成功 |
|
|
//判断是否成功 |
|
|
if(data.success){ |
|
|
|
|
|
|
|
|
if (data.success) { |
|
|
this.$message.success(data.msg); |
|
|
this.$message.success(data.msg); |
|
|
//刷新当的按钮 |
|
|
//刷新当的按钮 |
|
|
this.refreshPageData(); |
|
|
this.refreshPageData(); |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.$message.error(data.msg); |
|
|
this.$message.error(data.msg); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -3105,7 +3127,7 @@ export default { |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"> |
|
|
/deep/ .customer-tab .el-tabs__content{ |
|
|
|
|
|
|
|
|
/deep/ .customer-tab .el-tabs__content { |
|
|
padding: 0px !important; |
|
|
padding: 0px !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|