Browse Source

全局模态框样式修改

master
rui_li 4 years ago
parent
commit
670b7d06fc
  1. 2
      src/views/modules/yieldReport/com_defect_roll.vue
  2. 2
      src/views/modules/yieldReport/com_finish_roll.vue
  3. 2
      src/views/modules/yieldReport/com_merge_roll.vue
  4. 2
      src/views/modules/yieldReport/com_produce_material.vue
  5. 258
      src/views/modules/yieldReport/com_produce_report_normal.vue
  6. 2
      src/views/modules/yieldReport/com_produce_tool.vue
  7. 6
      src/views/modules/yieldReport/com_separate_roll.vue
  8. 2
      src/views/modules/yieldReport/com_switch_operator.vue
  9. 2
      src/views/modules/yieldReport/com_switch_roll.vue

2
src/views/modules/yieldReport/com_defect_roll.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="customer-css"> <div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners" <el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="630px" style="height: 680px;" class="customer-dialog">
width="610px" style="height: 680px;" class="customer-dialog">
<el-container> <el-container>
<el-container style="height: 140px;"> <el-container style="height: 140px;">
<el-form :inline="true" label-position="top" label-width="80px"> <el-form :inline="true" label-position="top" label-width="80px">

2
src/views/modules/yieldReport/com_finish_roll.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="customer-css"> <div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners" <el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="940px" style="height: 680px;" class="customer-dialog">
width="920px" style="height: 680px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 495px;" <el-form :inline="true" label-position="top" style="height: 495px;"
label-width="80px"> label-width="80px">
<!-- 菜单信息 --> <!-- 菜单信息 -->

2
src/views/modules/yieldReport/com_merge_roll.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="customer-css"> <div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners" <el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="360px" style="height: 680px;" class="customer-dialog">
width="300px" style="height: 680px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 100px;" <el-form :inline="true" label-position="top" style="height: 100px;"
label-width="80px"> label-width="80px">
<!-- 当前卷 --> <!-- 当前卷 -->

2
src/views/modules/yieldReport/com_produce_material.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="customer-css"> <div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners" <el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="205px" style="height: 580px;" class="customer-dialog">
width="200px" style="height: 580px;" class="customer-dialog">
<el-container style="height: 105px;"> <el-container style="height: 105px;">
<el-form :inline="true" label-position="top" label-width="80px"> <el-form :inline="true" label-position="top" label-width="80px">
<!-- 材料卷号和BOM序号 --> <!-- 材料卷号和BOM序号 -->

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

@ -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;
} }

2
src/views/modules/yieldReport/com_produce_tool.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="customer-css"> <div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners" <el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="325px" style="height: 680px;" class="customer-dialog">
width="305px" style="height: 680px;" class="customer-dialog">
<el-container style="height: 225px;"> <el-container style="height: 225px;">
<el-form :inline="true" label-position="top" label-width="80px"> <el-form :inline="true" label-position="top" label-width="80px">
<!-- 扫描工具实例编码 --> <!-- 扫描工具实例编码 -->

6
src/views/modules/yieldReport/com_separate_roll.vue

@ -1,12 +1,12 @@
<template> <template>
<div class="customer-css"> <div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners" <el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="360px" style="height: 680px;" class="customer-dialog">
width="270px" style="height: 680px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 100px;" <el-form :inline="true" label-position="top" style="height: 100px;"
label-width="80px"> label-width="80px">
<!-- 时间 --> <!-- 时间 -->
<el-row style="margin-top: -10px;"> <el-row style="margin-top: -10px;">
<el-col :span="8" >
<el-col :span="8">
<el-form-item :label="'当前时间:'"> <el-form-item :label="'当前时间:'">
<el-date-picker style="width: 100px;" <el-date-picker style="width: 100px;"
v-model="scheduleData.reportDate" v-model="scheduleData.reportDate"
@ -16,7 +16,7 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" style="margin-top: 27px;">
<el-col :span="8" style="margin-left: 20px; margin-top: 27px;">
<el-form-item :label="''"> <el-form-item :label="''">
<el-form-item :label="''"> <el-form-item :label="''">
<el-time-picker style="width: 80px;" <el-time-picker style="width: 80px;"

2
src/views/modules/yieldReport/com_switch_operator.vue

@ -1,6 +1,6 @@
<template> <template>
<!-- 展示员工切换的模块 --> <!-- 展示员工切换的模块 -->
<el-dialog :title="titleCon" v-bind="$attrs" v-on="$listeners" width="300px">
<el-dialog :title="titleCon" v-bind="$attrs" v-on="$listeners" width="280px">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -5px;"> <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -5px;">
<el-form-item :label="'操作员:'"> <el-form-item :label="'操作员:'">
<el-input ref="operatorId" @keyup.enter.native="saveOperatorData" <el-input ref="operatorId" @keyup.enter.native="saveOperatorData"

2
src/views/modules/yieldReport/com_switch_roll.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="customer-css"> <div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners" <el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="240px" style="height: 680px;" class="customer-dialog">
width="210px" style="height: 680px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 60px;" <el-form :inline="true" label-position="top" style="height: 60px;"
label-width="80px"> label-width="80px">
<!-- 半成品卷卷号 --> <!-- 半成品卷卷号 -->

Loading…
Cancel
Save