Browse Source

生产查询

master
常熟吴彦祖 4 months ago
parent
commit
ec14dc5c20
  1. 215
      src/views/modules/yieldReport/com_produce_report_normal.vue

215
src/views/modules/yieldReport/com_produce_report_normal.vue

@ -9,54 +9,54 @@
label-width="80px"> label-width="80px">
<!-- 第一行信息 --> <!-- 第一行信息 -->
<el-form style="margin-top: -10px;"> <el-form style="margin-top: -10px;">
<el-form-item :label=labels.orderNo class="customer-item">
<el-form-item label="订单号" class="customer-item">
<el-input v-model="scheduleData.orderNo" :readonly="true" style="width: 130px;"></el-input> <el-input v-model="scheduleData.orderNo" :readonly="true" style="width: 130px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label=labels.partNo class="customer-item">
<el-form-item label="物料编码" class="customer-item">
<el-input v-model="scheduleData.partNo" :readonly="true" style="width: 130px;"></el-input> <el-input v-model="scheduleData.partNo" :readonly="true" style="width: 130px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label=labels.partDesc class="customer-item">
<el-form-item label="物料名称/规格" class="customer-item">
<el-input v-model="scheduleData.partDesc" :readonly="true" style="width: 200px;"></el-input> <el-input v-model="scheduleData.partDesc" :readonly="true" style="width: 200px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label=labels.seqNo class="customer-item">
<el-form-item label="派工单号" class="customer-item">
<el-input v-model="scheduleData.seqNo" :readonly="true" style="width: 80px;"></el-input> <el-input v-model="scheduleData.seqNo" :readonly="true" style="width: 80px;"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- 第二行信息 --> <!-- 第二行信息 -->
<el-form> <el-form>
<el-form-item :label=labels.needDate class="customer-item">
<el-form-item label="要求完工日期" class="customer-item">
<el-input v-model="scheduleData.planFinishTime" :readonly="true" style="width: 130px;"></el-input> <el-input v-model="scheduleData.planFinishTime" :readonly="true" style="width: 130px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label=labels.planStartDate class="customer-item">
<el-form-item label="要求开工日期" class="customer-item">
<el-input v-model="scheduleData.planStartTime" :readonly="true" style="width: 130px;"></el-input> <el-input v-model="scheduleData.planStartTime" :readonly="true" style="width: 130px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label=labels.lotSize class="customer-item">
<el-form-item label="原始派工单需求数量" class="customer-item">
<el-input v-model="scheduleData.qtyRequiredOriginal" :readonly="true" style="width: 80px;"></el-input> <el-input v-model="scheduleData.qtyRequiredOriginal" :readonly="true" style="width: 80px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label=labels.scheduledDate class="customer-item">
<el-form-item label="排产日期" class="customer-item">
<el-input v-model="scheduleData.scheduledDate" :readonly="true" style="width: 80px;"></el-input> <el-input v-model="scheduleData.scheduledDate" :readonly="true" style="width: 80px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label=labels.shiftNo class="customer-item">
<el-form-item label="班次" class="customer-item">
<el-input v-model="scheduleData.shiftNo" :readonly="true" style="width: 80px;"></el-input> <el-input v-model="scheduleData.shiftNo" :readonly="true" style="width: 80px;"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- 第三行信息 --> <!-- 第三行信息 -->
<el-form> <el-form>
<el-form-item :label=labels.preItemNo class="customer-item">
<el-form-item label="前道工序" class="customer-item">
<el-input v-model="scheduleData.preItemDesc" :readonly="true" style="width: 180px;"></el-input> <el-input v-model="scheduleData.preItemDesc" :readonly="true" style="width: 180px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label=labels.nextItemNo prop="languageDefault" class="customer-item">
<el-form-item label="后道工序" prop="languageDefault" class="customer-item">
<el-input v-model="scheduleData.nextItemDesc" :readonly="true" style="width: 180px;"></el-input> <el-input v-model="scheduleData.nextItemDesc" :readonly="true" style="width: 180px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="''" style="margin-left: -5px;" class="customer-item"> <el-form-item :label="''" style="margin-left: -5px;" class="customer-item">
<el-checkbox style="margin-left: 30px; margin-top: 28px;" true-label="true" false-label="false" <el-checkbox style="margin-left: 30px; margin-top: 28px;" true-label="true" false-label="false"
v-model="scheduleData.currentRollFlag">{{ labels.onlyCurrentRoll }}
v-model="scheduleData.currentRollFlag">仅显示当前卷信息
</el-checkbox> </el-checkbox>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- 第四行菜单 --> <!-- 第四行菜单 -->
<fieldset class="customer-fieldset" style="width: 660px;"> <fieldset class="customer-fieldset" style="width: 660px;">
<legend class="customer-legend">{{ labels.rollButtons }}</legend>
<legend class="customer-legend">卷操作</legend>
<el-form> <el-form>
<el-form-item class="customer-roll-css" style="width: 130px; font-size: 16px; color: #387877;"> <el-form-item class="customer-roll-css" style="width: 130px; font-size: 16px; color: #387877;">
<el-input v-model="this.currentRollOps.rollNo" :readonly="true" style="width: 140px;"></el-input> <el-input v-model="this.currentRollOps.rollNo" :readonly="true" style="width: 140px;"></el-input>
@ -64,38 +64,38 @@
<el-form-item> <el-form-item>
<el-button class="customer-bun-mid" type="primary" @click="warnCreateNewRollConfirm" <el-button class="customer-bun-mid" type="primary" @click="warnCreateNewRollConfirm"
:disabled="buttonTags.createNewRollFlag" :disabled="buttonTags.createNewRollFlag"
style="margin-left: 5px; margin-bottom: 5px;">{{ buttons.newRollButton }}
style="margin-left: 5px; margin-bottom: 5px;">创建新卷
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button class="customer-bun-mid" type="primary" @click="switchRollModal" <el-button class="customer-bun-mid" type="primary" @click="switchRollModal"
:disabled="buttonTags.switchRollFlag" :disabled="buttonTags.switchRollFlag"
style="margin-left: 10px; margin-bottom: 5px;">{{ buttons.switchRoll }}
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 class="customer-bun-mid" type="primary" @click="separateRollModal" <el-button class="customer-bun-mid" type="primary" @click="separateRollModal"
:disabled="buttonTags.separateRollFlag" :disabled="buttonTags.separateRollFlag"
style="margin-left: 10px; margin-bottom: 5px;"> style="margin-left: 10px; margin-bottom: 5px;">
{{ buttons.separateRoll }}
创建分卷
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.finishRollFlag" <el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.finishRollFlag"
@click="finishRollModal" style="margin-left: 10px; margin-bottom: 5px;"> @click="finishRollModal" style="margin-left: 10px; margin-bottom: 5px;">
{{ buttons.finishRoll }}
结束卷
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.mergeRollFlag" <el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.mergeRollFlag"
@click="mergeRollModal" style="margin-left: 10px; margin-bottom: 5px;"> @click="mergeRollModal" style="margin-left: 10px; margin-bottom: 5px;">
{{ buttons.mergeRoll }}
合并卷
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.finishScheduleFlag" <el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.finishScheduleFlag"
@click="showFinishScheduleModal" style="margin-left: 10px; margin-bottom: 5px;"> @click="showFinishScheduleModal" style="margin-left: 10px; margin-bottom: 5px;">
{{ buttons.finishSchedule }}
结单
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -103,10 +103,10 @@
<!-- 列表展示区域 --> <!-- 列表展示区域 -->
<fieldset class="customer-fieldset" style="margin-bottom: 10px; width: 660px; height: 450px;"> <fieldset class="customer-fieldset" style="margin-bottom: 10px; width: 660px; height: 450px;">
<legend class="customer-legend">{{ labels.listDesc }}</legend>
<legend class="customer-legend">列表信息</legend>
<el-tabs v-model="activeTable" style="margin-top: -3px; width: 655px; height: 425px;" <el-tabs v-model="activeTable" style="margin-top: -3px; width: 655px; height: 425px;"
type="border-card" @tab-click="tabClick" class="customer-tab"> type="border-card" @tab-click="tabClick" class="customer-tab">
<el-tab-pane :label=labels.orderInfo name="order_info">
<el-tab-pane label="订单信息" name="order_info">
<div style="height: 400px; padding: 10px;"> <div style="height: 400px; padding: 10px;">
<!-- 技术注意事项 --> <!-- 技术注意事项 -->
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
@ -142,7 +142,7 @@
</div> </div>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label=labels.timeList name="sfdc_time">
<el-tab-pane label="时间" name="sfdc_time">
<el-table <el-table
height="400" height="400"
:data="sfdcTimeList" :data="sfdcTimeList"
@ -154,11 +154,9 @@
header-align="center" header-align="center"
align="center" align="center"
width="80" width="80"
:label=labels.rollListOperation>
label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="customer-a" @click="deleteSfdcTimeHist(scope.row)">{{
labels.deleteSfdcTime || '删除'
}}</a>
<a class="customer-a" @click="deleteSfdcTimeHist(scope.row)">删除</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -179,7 +177,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label=labels.toolList name="sfdc_tool">
<el-tab-pane label="刀模板记录" name="sfdc_tool">
<el-table <el-table
height="170" height="170"
:data="orderToolList" :data="orderToolList"
@ -214,16 +212,16 @@
header-align="center" header-align="center"
align="center" align="center"
width="75" width="75"
:label=labels.toolListOperation>
label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="customer-a" <a class="customer-a"
v-if="operatorData.operatorName != '' && scope.row.finishedFlag == 'N' && scope.row.rollNo != '*'" v-if="operatorData.operatorName != '' && scope.row.finishedFlag == 'N' && scope.row.rollNo != '*'"
@click="replaceToolModal(scope.row)" @click="replaceToolModal(scope.row)"
>{{ labels.toolListReplace }}</a>
>刀模替换</a>
<a class="customer-a" <a class="customer-a"
v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'Y' && scope.row.rollNo == '*'" v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'Y' && scope.row.rollNo == '*'"
@click="warnFinishToolConfirm(scope.row)" @click="warnFinishToolConfirm(scope.row)"
>{{ labels.toolListFinish }}</a>
>结束使用</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -244,7 +242,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label=labels.materialList name="sfdc_material">
<el-tab-pane label="材料" name="sfdc_material">
<el-table <el-table
height="170" height="170"
:data="orderBomList" :data="orderBomList"
@ -279,22 +277,20 @@
header-align="center" header-align="center"
align="center" align="center"
width="115" width="115"
:label=labels.materialListOperation>
label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <a class="customer-a" @click="deleteSfdcMaterialHist(scope.row)">{{-->
<!-- labels.deleteSfdcTime || '删除'-->
<!-- }} </a>-->
<!-- <a class="customer-a" @click="deleteSfdcMaterialHist(scope.row)">删除</a>-->
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.rollNo != '*' && scope.row.sAPBOMItemNo >= 0 <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.rollNo != '*' && scope.row.sAPBOMItemNo >= 0
&& scope.row.finishedFlag == 'N' && scope.row.histType == '发料'" && scope.row.finishedFlag == 'N' && scope.row.histType == '发料'"
@click="replaceMaterialModal(scope.row)">{{ labels.materialListReplace }}</a>
@click="replaceMaterialModal(scope.row)">换料</a>
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.rollNo == '*' && scope.row.sAPBOMItemNo >= 0 <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.rollNo == '*' && scope.row.sAPBOMItemNo >= 0
&& scope.row.finishedFlag == 'N' && scope.row.histType == '发料'" && scope.row.finishedFlag == 'N' && scope.row.histType == '发料'"
@click="cuttingMaterialModal(scope.row)" @click="cuttingMaterialModal(scope.row)"
>{{ labels.materialListCutting }}</a>
>下料</a>
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag == 'N' && scope.row.sAPBOMItemNo >= 0 <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag == 'N' && scope.row.sAPBOMItemNo >= 0
&& scope.row.histType == '发料' && scope.row.keyRMFlag == 'N'" && scope.row.histType == '发料' && scope.row.keyRMFlag == 'N'"
@click="warnFinishMaterialWithNoRemainderConfirm(scope.row)" @click="warnFinishMaterialWithNoRemainderConfirm(scope.row)"
>{{ labels.materialListFinish }}</a>
>结束生产</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -316,7 +312,7 @@
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label=labels.rollopsList name="sfdc_rollOps">
<el-tab-pane label="生产卷操作信息" name="sfdc_rollOps">
<el-table <el-table
height="400" height="400"
:data="sfdcRollOpsList" :data="sfdcRollOpsList"
@ -342,7 +338,7 @@
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<!-- 不良记录 --> <!-- 不良记录 -->
<el-tab-pane :label=labels.defectList name="sfdc_defect">
<el-tab-pane label="不良记录" name="sfdc_defect">
<el-table <el-table
height="400" height="400"
:data="sfdcDefectList" :data="sfdcDefectList"
@ -356,11 +352,9 @@
header-align="center" header-align="center"
align="center" align="center"
width="80" width="80"
:label=labels.rollListOperation>
label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="customer-a" @click="deleteSfdcDefect(scope.row)">{{
labels.deleteSfdcDefect || '删除'
}}</a>
<a class="customer-a" @click="deleteSfdcDefect(scope.row)">删除</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -381,7 +375,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label=labels.rollList name="sfdc_roll">
<el-tab-pane label="机器下机卷" name="sfdc_roll">
<el-table <el-table
height="400" height="400"
:data="sfdcRollList" :data="sfdcRollList"
@ -413,17 +407,17 @@
header-align="center" header-align="center"
align="center" align="center"
width="150" width="150"
:label=labels.rollListOperation>
label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'N'" <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'N'"
@click="warnReopenSfdcRollsConfirm(scope.row)" @click="warnReopenSfdcRollsConfirm(scope.row)"
>{{ labels.rollListReopen }}</a>
>重打开</a>
<a class="customer-a" v-if="operatorData.operatorName != ''" <a class="customer-a" v-if="operatorData.operatorName != ''"
@click="warnDeleteSfdcRollsConfirm(scope.row)" @click="warnDeleteSfdcRollsConfirm(scope.row)"
>{{ labels.rollListDelete }}</a>
>删除卷</a>
<a class="customer-a" v-if="operatorData.operatorName != ''" <a class="customer-a" v-if="operatorData.operatorName != ''"
@click="printSfdcFlowLabel(scope.row)" @click="printSfdcFlowLabel(scope.row)"
>{{ labels.rollListPrint }}</a>
>打印卷标签</a>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -435,37 +429,37 @@
<div style="margin-left: 680px; margin-top: -640px; width: 200px;"> <div style="margin-left: 680px; margin-top: -640px; width: 200px;">
<el-button class="customer-bun-mid controller-bun" type="primary" @click="refreshPageData" <el-button class="customer-bun-mid controller-bun" type="primary" @click="refreshPageData"
style="margin-left: 20px; margin-bottom: 10px; width: 60px;"> style="margin-left: 20px; margin-bottom: 10px; width: 60px;">
{{ buttons.refreshButton }}
刷新
</el-button> </el-button>
<el-button class="customer-bun-mid controller-bun" type="primary" @click="switchOperatorModal" <el-button class="customer-bun-mid controller-bun" type="primary" @click="switchOperatorModal"
style="margin-left: 28px; margin-bottom: 10px; width: 60px;"> style="margin-left: 28px; margin-bottom: 10px; width: 60px;">
{{ buttons.switchOperator }}
切换用户
</el-button> </el-button>
</div> </div>
<!-- 生产调机菜单 --> <!-- 生产调机菜单 -->
<fieldset class="customer-fieldset" <fieldset class="customer-fieldset"
style="margin-left: 680px; width: 200px; height: 100px;"> style="margin-left: 680px; width: 200px; height: 100px;">
<legend class="customer-legend">{{ labels.produceButtons }}</legend>
<legend class="customer-legend">生产调机</legend>
<el-form> <el-form>
<el-form-item style="margin-top: 10px;"> <el-form-item style="margin-top: 10px;">
<el-button class="customer-bun-mid controller-bun" type="primary" @click="startTuningModal" <el-button class="customer-bun-mid controller-bun" type="primary" @click="startTuningModal"
:disabled="buttonTags.tuningFlag" :disabled="buttonTags.tuningFlag"
style="margin-left: 15px; margin-bottom: 5px;"> style="margin-left: 15px; margin-bottom: 5px;">
{{ buttons.startTuning }}
开始调机
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button class="customer-bun-mid controller-bun" type="primary" @click="startProduceModal" <el-button class="customer-bun-mid controller-bun" type="primary" @click="startProduceModal"
:disabled="buttonTags.produceFlag" :disabled="buttonTags.produceFlag"
style="margin-left: 20px; margin-bottom: 5px;margin-top: 10px"> style="margin-left: 20px; margin-bottom: 5px;margin-top: 10px">
{{ buttons.startProduce }}
开始生产
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button class="customer-bun-mid" type="primary" @click="sopPreviewModal" <el-button class="customer-bun-mid" type="primary" @click="sopPreviewModal"
style="margin-left: 15px; margin-bottom: 5px;margin-top: 10px"> style="margin-left: 15px; margin-bottom: 5px;margin-top: 10px">
{{ buttons.sopView }}
SOP预览
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -474,32 +468,32 @@
<!-- 扫描 --> <!-- 扫描 -->
<fieldset class="customer-fieldset" style="margin-left: 680px; width: 200px; height: 80px;"> <fieldset class="customer-fieldset" style="margin-left: 680px; width: 200px; height: 80px;">
<legend class="customer-legend">{{ labels.scanButtons }}</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 class="customer-bun-mid controller-bun" type="primary" @click="produceToolModal" <el-button class="customer-bun-mid controller-bun" type="primary" @click="produceToolModal"
disabled="disabled" style="margin-left: 15px; margin-top: 20px;"> disabled="disabled" style="margin-left: 15px; margin-top: 20px;">
<!-- :disabled="buttonTags.toolFlag"--> <!-- :disabled="buttonTags.toolFlag"-->
{{ buttons.toolButton }}
刀模上机
</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 class="customer-bun-mid controller-bun" type="primary" @click="produceMaterialModal" <el-button class="customer-bun-mid controller-bun" type="primary" @click="produceMaterialModal"
:disabled="buttonTags.materialFlag" style="margin-left: 20px; margin-top: 20px;"> :disabled="buttonTags.materialFlag" style="margin-left: 20px; margin-top: 20px;">
{{ buttons.materialButton }}
材料上机
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</fieldset> </fieldset>
<!-- 不良 --> <!-- 不良 -->
<fieldset class="customer-fieldset" style="margin-left: 680px; width: 200px; height: 80px;"> <fieldset class="customer-fieldset" style="margin-left: 680px; width: 200px; height: 80px;">
<legend class="customer-legend">{{ labels.defectButtons }}</legend>
<legend class="customer-legend">过程不良</legend>
<el-form style="text-align: center;"> <el-form style="text-align: center;">
<el-form-item style="margin-top: 5px;"> <el-form-item style="margin-top: 5px;">
<el-button class="customer-bun-mid controller-bun" @click="defectRollModal" type="primary" <el-button class="customer-bun-mid controller-bun" @click="defectRollModal" type="primary"
:disabled="buttonTags.defectFlag" :disabled="buttonTags.defectFlag"
style="margin-left: 0px; margin-top: 10px;"> style="margin-left: 0px; margin-top: 10px;">
{{ buttons.reportDefect }}
报告不良
</el-button> </el-button>
</el-form-item> </el-form-item>
@ -511,12 +505,12 @@
<!-- 停机 --> <!-- 停机 -->
<fieldset class="customer-fieldset" <fieldset class="customer-fieldset"
style="margin-left: 680px; width: 200px; height: 80px;"> style="margin-left: 680px; width: 200px; height: 80px;">
<legend class="customer-legend">{{ labels.downTimeButtons }}</legend>
<legend class="customer-legend">过程异常</legend>
<el-form style="text-align: center;"> <el-form style="text-align: center;">
<el-form-item> <el-form-item>
<el-button class="customer-bunx-max controller-bun" type="primary" @click="produceDownModal" <el-button class="customer-bunx-max controller-bun" type="primary" @click="produceDownModal"
:disabled="buttonTags.downTimeFlag" style="margin-top: 10px;"> :disabled="buttonTags.downTimeFlag" style="margin-top: 10px;">
{{ buttons.downTime }}
异常停机
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -524,7 +518,7 @@
<!--其他操作--> <!--其他操作-->
<fieldset class="customer-fieldset" <fieldset class="customer-fieldset"
style="margin-left: 680px; margin-bottom: 10px; width: 200px; height: 80px;"> style="margin-left: 680px; margin-bottom: 10px; width: 200px; height: 80px;">
<legend class="customer-legend">{{ buttons.otherOperation }}</legend>
<legend class="customer-legend">其他操作</legend>
<el-form style="text-align: center;"> <el-form style="text-align: center;">
<el-form-item style="margin-top: 10px ; margin-left: 5px"> <el-form-item style="margin-top: 10px ; margin-left: 5px">
@ -537,26 +531,26 @@
<div style="text-align: right; margin: 0;width: 120px;"> <div style="text-align: right; margin: 0;width: 120px;">
<el-button type="primary" v-if="scheduleData.preItemNo <= 0" @click="finishPartRollModal" <el-button type="primary" v-if="scheduleData.preItemNo <= 0" @click="finishPartRollModal"
style=" width: 120px; margin-bottom: 5px; margin-left: 3PX"> style=" width: 120px; margin-bottom: 5px; margin-left: 3PX">
{{ buttons.preReport }}
产量报告
</el-button> </el-button>
<el-button type="primary" @click="switchRollReverse" <el-button type="primary" @click="switchRollReverse"
style=" width: 120px; margin-bottom: 5px;margin-left: 3PX; "> style=" width: 120px; margin-bottom: 5px;margin-left: 3PX; ">
{{ buttons.deleteRoll }}
删除卷
</el-button> </el-button>
<el-button type="primary" @click="notOverFinishRollModal" <el-button type="primary" @click="notOverFinishRollModal"
:disabled="!buttonTags.createNewRollFlag" :disabled="!buttonTags.createNewRollFlag"
style=" width: 120px; margin-bottom: 5px;margin-left: 3PX; "> style=" width: 120px; margin-bottom: 5px;margin-left: 3PX; ">
{{ buttons.notProduce }}
未生产下机拆卷
</el-button>
<el-button type="primary" @click="produceKeyMaterialModal"
:disabled="buttonTags.createNewRollFlag"
style=" width: 120px; margin-bottom: 5px;margin-left: 3PX; ">
扫描卷
</el-button> </el-button>
<!-- <el-button type="primary" @click="produceKeyMaterialModal"-->
<!-- :disabled="buttonTags.createNewRollFlag"-->
<!-- style=" width: 120px; margin-bottom: 5px;margin-left: 3PX; ">-->
<!-- {{ buttons.scannerRoll || '扫描卷' }}-->
<!-- </el-button>-->
</div> </div>
<el-button type="primary" class="controller-bun" :disabled="buttonTags.finishScheduleFlag" <el-button type="primary" class="controller-bun" :disabled="buttonTags.finishScheduleFlag"
style=" width: 80px; margin-bottom: 5px; " @click="popoverFlag=true" style=" width: 80px; margin-bottom: 5px; " @click="popoverFlag=true"
slot="reference">{{ labels.otherButtons }}
slot="reference">其他操作
</el-button> </el-button>
</el-popover> </el-popover>
</el-form-item> </el-form-item>
@ -570,17 +564,17 @@
<div style="text-align: right; margin: 0;width: 120px;"> <div style="text-align: right; margin: 0;width: 120px;">
<el-button type="primary" :disabled="rollSplitButton " @click="rollSplit()" <el-button type="primary" :disabled="rollSplitButton " @click="rollSplit()"
style=" width: 120px; margin-bottom: 5px; margin-left: 3PX"> style=" width: 120px; margin-bottom: 5px; margin-left: 3PX">
{{ labels.rollSplit }}
创建分卷
</el-button> </el-button>
<el-button type="primary" @click="malformedMaterialModal" <el-button type="primary" @click="malformedMaterialModal"
:disabled="malformedMaterialButtonFlag || rollSplitButton || scheduleData.closedFlag=='Y'" :disabled="malformedMaterialButtonFlag || rollSplitButton || scheduleData.closedFlag=='Y'"
style=" width: 120px; margin-bottom: 5px; margin-left: 3PX"> style=" width: 120px; margin-bottom: 5px; margin-left: 3PX">
{{ labels.scannerMaterial }}
扫描材料
</el-button> </el-button>
</div> </div>
<el-button type="primary" class="controller-bun" :disabled="buttonTags.materialMalformedFlag "
<el-button type="primary" class="controller-bun" :disabled="buttonTags.materialMalformedFlag"
style=" width: 80px; margin-bottom: 5px; " @click="popoverFlag2=true" style=" width: 80px; margin-bottom: 5px; " @click="popoverFlag2=true"
slot="reference">{{ labels.materialMalformed }}
slot="reference">材料异常处理
</el-button> </el-button>
</el-popover> </el-popover>
</el-form-item> </el-form-item>
@ -590,19 +584,19 @@
<!-- 质量检验 --> <!-- 质量检验 -->
<fieldset class="customer-fieldset" <fieldset class="customer-fieldset"
style="margin-left: 680px; margin-bottom: 10px; width: 200px; height: 80px;"> style="margin-left: 680px; margin-bottom: 10px; width: 200px; height: 80px;">
<legend class="customer-legend">{{ labels.qualityInspection }}</legend>
<legend class="customer-legend">质量检验</legend>
<el-form style="text-align: center;"> <el-form style="text-align: center;">
<el-form-item style="margin-top: 10px;"> <el-form-item style="margin-top: 10px;">
<el-button class="customer-bun-mid" type="primary" @click="qualityInspectionModal" <el-button class="customer-bun-mid" type="primary" @click="qualityInspectionModal"
style="margin-left: 15px; margin-bottom: 5px;"> style="margin-left: 15px; margin-bottom: 5px;">
{{ buttons.qualityInspection }}
过程检验
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button class="controller-bun" type="primary" @click="qualityInspectionModal" <el-button class="controller-bun" type="primary" @click="qualityInspectionModal"
style="margin-left: 15px; margin-bottom: 5px;margin-top: 10px;"> style="margin-left: 15px; margin-bottom: 5px;margin-top: 10px;">
{{ buttons.mrb }}
MRB异常单
</el-button> </el-button>
</el-form-item> </el-form-item>
@ -612,12 +606,12 @@
<!-- TID绑定 --> <!-- TID绑定 -->
<fieldset class="customer-fieldset" <fieldset class="customer-fieldset"
style="margin-left: 680px; margin-bottom: 10px; width: 200px; height: 80px;"> style="margin-left: 680px; margin-bottom: 10px; width: 200px; height: 80px;">
<legend class="customer-legend">{{ labels.tidBanding }}</legend>
<legend class="customer-legend">TID绑定</legend>
<el-form style="text-align: center;"> <el-form style="text-align: center;">
<el-form-item style="margin-top: 10px;"> <el-form-item style="margin-top: 10px;">
<el-button class="customer-bun-mid" type="primary" <el-button class="customer-bun-mid" type="primary"
style="margin-left: 15px; margin-bottom: 5px;"> style="margin-left: 15px; margin-bottom: 5px;">
{{ buttons.tidBand }}
TID文件
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -3163,6 +3157,7 @@ export default {
downTimeFlag: true, downTimeFlag: true,
finishScheduleFlag: true, finishScheduleFlag: true,
otherBunFlag: true, otherBunFlag: true,
materialMalformedFlag: true,
malformedMaterialFlag: true, malformedMaterialFlag: true,
}, },
dataListLoading: false, dataListLoading: false,
@ -3308,7 +3303,7 @@ export default {
componentTitle: '机台工作台', componentTitle: '机台工作台',
orderNo: '订单号', orderNo: '订单号',
partNo: '物料编码', partNo: '物料编码',
partDesc: '物料名称/规',
partDesc: '物料名称/规',
seqNo: '派工单号', seqNo: '派工单号',
needDate: '要求完工日期', needDate: '要求完工日期',
planStartDate: '刷新', planStartDate: '刷新',
@ -3386,7 +3381,7 @@ export default {
tableId: '*' tableId: '*'
}, { }, {
functionId: functionId, functionId: functionId,
languageValue: '物料名称/规',
languageValue: '物料名称/规',
objectId: 'partDesc', objectId: 'partDesc',
objectType: 'label', objectType: 'label',
tableId: '*' tableId: '*'
@ -3821,7 +3816,7 @@ export default {
const sums = []; const sums = [];
columns.forEach((column, index) => { columns.forEach((column, index) => {
if (index === 1) { if (index === 1) {
sums[index] = this.labels.totalSum;
sums[index] = '合计: ';
return; return;
} }
if (index == 4) { if (index == 4) {
@ -3849,7 +3844,7 @@ export default {
const sums = []; const sums = [];
columns.forEach((column, index) => { columns.forEach((column, index) => {
if (index === 0) { if (index === 0) {
sums[index] = this.labels.sfdcRollSum;
sums[index] = '下机卷总数:';
return; return;
} }
if (index == 14) { if (index == 14) {
@ -3875,13 +3870,13 @@ export default {
// //
switchRollReverse() { switchRollReverse() {
if (this.currentRollOps.rollNo === '暂无卷号') { if (this.currentRollOps.rollNo === '暂无卷号') {
this.$message.warning(this.labels.noneRollNo);
this.$message.warning('暂无卷号!');
this.popoverFlag = false this.popoverFlag = false
return; return;
} }
this.$confirm(this.labels.sureDeleteRoll + this.currentRollOps.rollNo + this.labels.currentRollNo, '提示', {
confirmButtonText: this.labels.confirmLabel,
celButtonText: this.labels.cancelLabel,
this.$confirm('确定要删除' + this.currentRollOps.rollNo + '当前卷?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
// //
@ -4088,7 +4083,7 @@ export default {
this.scheduleData.preItemNo = data.row.preItemNo; this.scheduleData.preItemNo = data.row.preItemNo;
this.scheduleData.closedFlag = data.row.closedFlag; this.scheduleData.closedFlag = data.row.closedFlag;
// //
this.titleCon = this.labels.componentTitle + ' - ' + data.row.itemDesc + ' '
this.titleCon = '机台工作台' + ' - ' + data.row.itemDesc + ' '
+ data.row.resourceDesc + ' (' + this.operatorData.operatorName + ')'; + data.row.resourceDesc + ' (' + this.operatorData.operatorName + ')';
}) })
// //
@ -4209,7 +4204,7 @@ export default {
this.operatorData = JSON.parse(JSON.stringify(operatorData)); this.operatorData = JSON.parse(JSON.stringify(operatorData));
// //
// //
this.titleCon = this.labels.componentTitle + ' - ' + this.scheduleData.workCenterDesc + ' '
this.titleCon = '机台工作台' + ' - ' + this.scheduleData.workCenterDesc + ' '
+ this.scheduleData.resourceDesc + ' (' + this.operatorData.operatorName + ')'; + this.scheduleData.resourceDesc + ' (' + this.operatorData.operatorName + ')';
// //
}, },
@ -4225,7 +4220,7 @@ export default {
this.operatorData.operatorName = ''; this.operatorData.operatorName = '';
this.operatorData.showFlag = false; this.operatorData.showFlag = false;
// //
this.titleCon = this.labels.componentTitle + ' - ' + this.scheduleData.workCenterDesc + ' '
this.titleCon = '机台工作台' + ' - ' + this.scheduleData.workCenterDesc + ' '
+ this.scheduleData.resourceDesc + ' (' + this.operatorData.operatorName + ')'; + this.scheduleData.resourceDesc + ' (' + this.operatorData.operatorName + ')';
}, },
@ -4233,7 +4228,7 @@ export default {
switchOperatorModal() { switchOperatorModal() {
// //
if (JSON.stringify(this.currentRow) == '{}') { if (JSON.stringify(this.currentRow) == '{}') {
this.$message.error(this.labels.pleaseSelectSeqNo);
this.$message.error('请先选择派工单!');
return false; return false;
} }
// //
@ -4248,9 +4243,9 @@ export default {
// //
this.buttonTags.createNewRollFlag = true; this.buttonTags.createNewRollFlag = true;
// //
this.$confirm(this.labels.sureCreateNewRoll, '提示', {
confirmButtonText: this.labels.confirmLabel,
celButtonText: this.labels.cancelLabel,
this.$confirm('确实要创建一个新卷吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
// //
@ -4326,7 +4321,7 @@ export default {
// //
let currentRollNo = this.currentRollOps.rollNo; let currentRollNo = this.currentRollOps.rollNo;
if (currentRollNo === '暂无卷号') { if (currentRollNo === '暂无卷号') {
this.$message.error(this.labels.noRollCantMerge);
this.$message.error('暂无卷号参与无法合并卷!');
return false; return false;
} }
// //
@ -4483,9 +4478,9 @@ export default {
/*提醒是否重新打开的提示*/ /*提醒是否重新打开的提示*/
warnReopenSfdcRollsConfirm(sfdcRollRow) { warnReopenSfdcRollsConfirm(sfdcRollRow) {
this.$confirm(this.labels.sureReopenSfdcRoll + sfdcRollRow.rollNo + this.labels.sureLabel, '提示', {
confirmButtonText: this.labels.confirmLabel,
celButtonText: this.labels.cancelLabel,
this.$confirm('确实要重新打开卷' + sfdcRollRow.rollNo + '吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
//sfdcRolls //sfdcRolls
@ -4514,9 +4509,9 @@ export default {
/*提醒是否删除的提示*/ /*提醒是否删除的提示*/
warnDeleteSfdcRollsConfirm(sfdcRollRow) { warnDeleteSfdcRollsConfirm(sfdcRollRow) {
this.$confirm(this.labels.sureDeleteCurrentRoll, '提示', {
confirmButtonText: this.labels.confirmLabel,
celButtonText: this.labels.cancelLabel,
this.$confirm('确实要删除该卷吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
//sfdcRolls //sfdcRolls
@ -4546,9 +4541,9 @@ export default {
/*结束使用 工具确认功能*/ /*结束使用 工具确认功能*/
warnFinishToolConfirm(toolRow) { warnFinishToolConfirm(toolRow) {
this.$confirm(this.labels.sureEndThisToolUsed, '提示', {
confirmButtonText: this.labels.confirmLabel,
celButtonText: this.labels.cancelLabel,
this.$confirm('确实要结束该工具的使用吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
//使 //使
@ -4578,9 +4573,9 @@ export default {
/*结束使用 材料确认功能*/ /*结束使用 材料确认功能*/
warnFinishMaterialWithNoRemainderConfirm(materialRow) { warnFinishMaterialWithNoRemainderConfirm(materialRow) {
this.$confirm(this.labels.sureEndThisToolUsed, '提示', {
confirmButtonText: this.labels.confirmLabel,
celButtonText: this.labels.cancelLabel,
this.$confirm('确实要结束该材料的使用吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
//使 //使
@ -4637,7 +4632,7 @@ export default {
// TODO: MRB // TODO: MRB
}, },
updateResultModal() {
updateResultModal() {
this.$message.info('更换结果功能'); this.$message.info('更换结果功能');
// TODO: // TODO:
}, },

Loading…
Cancel
Save