Browse Source

其它报工打印 2022年10月20日 sxm

master
[li_she] 3 years ago
parent
commit
4893252600
  1. 3748
      src/views/modules/base/maintainProductRouting.vue
  2. 23
      src/views/modules/yieldReport/otherReport/change_packaging.vue
  3. 5
      src/views/modules/yieldReport/otherReport/fqc_produce_report_normal.vue
  4. 20
      src/views/modules/yieldReport/otherReport/fqc_split_roll_report.vue

3748
src/views/modules/base/maintainProductRouting.vue
File diff suppressed because it is too large
View File

23
src/views/modules/yieldReport/otherReport/change_packaging.vue

@ -305,6 +305,9 @@
width="115" width="115"
:label=labels.rollListOperation> :label=labels.rollListOperation>
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.virtualRollFlag=='N'" class="customer-a"
@click="rollPrintLabel(scope.row)"
>{{'打印'}}</a>
<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> >{{ labels.rollListReopen }}</a>
@ -453,6 +456,9 @@
<!-- 为生产下机拆卷 --> <!-- 为生产下机拆卷 -->
<notOverFinishRoll ref="notOverFinishRoll" :visible.sync="showNotOverFlag" <notOverFinishRoll ref="notOverFinishRoll" :visible.sync="showNotOverFlag"
@refreshPageData="refreshPageData"></notOverFinishRoll> @refreshPageData="refreshPageData"></notOverFinishRoll>
<!--打印卷标签-->
<com-roll-label ref="comRollLabel" ></com-roll-label>
</div> </div>
</template> </template>
@ -493,6 +499,7 @@ import {
checkSfdcDefect checkSfdcDefect
} from "@/api/yieldReport/produce_report_normal.js"; } from "@/api/yieldReport/produce_report_normal.js";
/*引入组件*/ /*引入组件*/
import comRollLabel from "../../common/com-roll-label";/*打印卷标签*/
import comSwitchOperator from "../com_switch_operator";/*切换操作员*/ import comSwitchOperator from "../com_switch_operator";/*切换操作员*/
import changeSwitchRoll from "./change_switch_roll";/*切换卷操作*/ import changeSwitchRoll from "./change_switch_roll";/*切换卷操作*/
import comSeparateRoll from "../com_separate_roll"; import comSeparateRoll from "../com_separate_roll";
@ -3275,6 +3282,7 @@ export default {
} }
}, },
components: { components: {
comRollLabel,
comSwitchOperator,/*切换用户的组件*/ comSwitchOperator,/*切换用户的组件*/
changeSwitchRoll,/*切换卷操作*/ changeSwitchRoll,/*切换卷操作*/
comSeparateRoll,/*創建分卷组件*/ comSeparateRoll,/*創建分卷组件*/
@ -3297,6 +3305,12 @@ export default {
comFinishPartRoll, comFinishPartRoll,
}, },
methods: { methods: {
//
rollPrintLabel(val){
this.$nextTick(() => {
this.$refs.comRollLabel.init(val.rollNo)
});
},
// //
sfdcDefectListSummaries(param){ sfdcDefectListSummaries(param){
const { columns, data } = param; const { columns, data } = param;
@ -3821,9 +3835,12 @@ export default {
this.createRoll.rollNums= '' this.createRoll.rollNums= ''
this.createRoll.rollQty= '' this.createRoll.rollQty= ''
// //
let printList = data.printList;
printSfdcLabel(printList);
// let printList = data.printList;
// printSfdcLabel(printList);
//
this.$nextTick(() => {
this.$refs.comRollLabel.init(data.rollNos)
});
// //
this.getSfdcRollList() this.getSfdcRollList()
}else { }else {

5
src/views/modules/yieldReport/otherReport/fqc_produce_report_normal.vue

@ -264,7 +264,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.virtualRollFlag=='N'" class="customer-a" <a v-if="scope.row.virtualRollFlag=='N'" class="customer-a"
@click="rollPrintLabel(scope.row)" @click="rollPrintLabel(scope.row)"
>{{labels.rollListPrint}}</a>
>{{'打印'}}</a>
<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> >{{labels.rollListReopen}}</a>
@ -457,6 +457,7 @@
<notOverFinishRoll ref="notOverFinishRoll" :visible.sync="showNotOverFlag" <notOverFinishRoll ref="notOverFinishRoll" :visible.sync="showNotOverFlag"
@refreshPageData="refreshPageData"></notOverFinishRoll> @refreshPageData="refreshPageData"></notOverFinishRoll>
<!--打印卷标签-->
<com-roll-label ref="comRollLabel" ></com-roll-label> <com-roll-label ref="comRollLabel" ></com-roll-label>
</div> </div>
@ -490,7 +491,7 @@ import {
checkSfdcDefect checkSfdcDefect
} from "@/api/yieldReport/produce_report_normal.js"; } from "@/api/yieldReport/produce_report_normal.js";
/*引入组件*/ /*引入组件*/
import comRollLabel from "../../common/com-roll-label";/*切换操作员*/
import comRollLabel from "../../common/com-roll-label";/*打印卷标签*/
import comSwitchOperator from "../com_switch_operator";/*切换操作员*/ import comSwitchOperator from "../com_switch_operator";/*切换操作员*/
import otherSwitchRoll from "./other_switch_roll";/*切换卷操作*/ import otherSwitchRoll from "./other_switch_roll";/*切换卷操作*/
import comSeparateRoll from "../com_separate_roll"; import comSeparateRoll from "../com_separate_roll";

20
src/views/modules/yieldReport/otherReport/fqc_split_roll_report.vue

@ -195,6 +195,9 @@
width="115" width="115"
:label=labels.rollListOperation> :label=labels.rollListOperation>
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.virtualRollFlag=='N'" class="customer-a"
@click="rollPrintLabel(scope.row)"
>{{'打印'}}</a>
<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> >{{ labels.rollListReopen }}</a>
@ -346,7 +349,8 @@
<defectList ref="defectList" @getSfdcDefectList='getSfdcDefectList' ></defectList> <defectList ref="defectList" @getSfdcDefectList='getSfdcDefectList' ></defectList>
<bulkInspection ref="bulkInspection" ></bulkInspection> <bulkInspection ref="bulkInspection" ></bulkInspection>
<!--打印卷标签-->
<com-roll-label ref="comRollLabel" ></com-roll-label>
</div> </div>
</template> </template>
@ -379,6 +383,7 @@ import {
checkSfdcDefect checkSfdcDefect
} from "@/api/yieldReport/produce_report_normal.js"; } from "@/api/yieldReport/produce_report_normal.js";
/*引入组件*/ /*引入组件*/
import comRollLabel from "../../common/com-roll-label";/*打印卷标签*/
import comSwitchOperator from "../com_switch_operator";/*切换操作员*/ import comSwitchOperator from "../com_switch_operator";/*切换操作员*/
import otherSwitchRoll from "./other_switch_roll";/*切换卷操作*/ import otherSwitchRoll from "./other_switch_roll";/*切换卷操作*/
import comSeparateRoll from "../com_separate_roll"; import comSeparateRoll from "../com_separate_roll";
@ -3040,6 +3045,7 @@ export default {
} }
}, },
components: { components: {
comRollLabel,//
comSwitchOperator,/*切换用户的组件*/ comSwitchOperator,/*切换用户的组件*/
otherSwitchRoll,/*切换卷操作*/ otherSwitchRoll,/*切换卷操作*/
comSeparateRoll,/*創建分卷组件*/ comSeparateRoll,/*創建分卷组件*/
@ -3060,6 +3066,12 @@ export default {
bulkInspection, /**/ bulkInspection, /**/
}, },
methods: { methods: {
//
rollPrintLabel(val){
this.$nextTick(() => {
this.$refs.comRollLabel.init(val.rollNo)
});
},
// //
sfdcRollListSummaries(param){ sfdcRollListSummaries(param){
const { columns, data } = param; const { columns, data } = param;
@ -3523,7 +3535,11 @@ export default {
// //
if (data.code == 500) { if (data.code == 500) {
this.$message(data.msg); this.$message(data.msg);
} else {
} else if(data.code == 200) {
//
this.$nextTick(() => {
this.$refs.comRollLabel.init(data.rollNos)
});
// //
this.$emit('refreshPageData'); this.$emit('refreshPageData');
// //

Loading…
Cancel
Save