Browse Source

合并卷 页面参数

master
Rui_Li 4 years ago
parent
commit
938b28519e
  1. 7
      src/api/yieldReport/com_merge_roll.js
  2. 106
      src/views/modules/yieldReport/com_merge_roll.vue
  3. 4
      src/views/modules/yieldReport/com_produce_report_normal.vue

7
src/api/yieldReport/com_merge_roll.js

@ -0,0 +1,7 @@
import { createAPI } from '@/utils/httpRequest.js'
// 获取合并卷页面的参数
export const getMergeRollPageData = data => createAPI('schedule/getMergeRollPageData', 'POST', data)
// 执行切换卷的操作
export const switchSfdcRoll = data => createAPI('schedule/switchSfdcRoll', 'POST', data)

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

@ -6,36 +6,36 @@
label-width="80px">
<!-- 当前卷 -->
<el-row>
<el-col :span="8">
<el-col :span="10">
<el-form-item class="customer-item" label="当前卷号:">
<el-input v-model="scheduleData.orderNo" readonly style="width: 80px;" ></el-input>
<el-input v-model="pageData.rollNo" readonly style="width: 100px;" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="customer-item" label="当前卷数量:">
<el-input v-model="scheduleData.partNo" readonly style="width: 80px;"></el-input>
<el-input v-model="pageData.rollQty" readonly style="width: 80px;"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="6">
<el-form-item class="customer-item" label="">
</el-form-item>
</el-col>
</el-row>
<!-- 新卷 -->
<el-row>
<el-col :span="8">
<el-col :span="10">
<el-form-item class="customer-item" label="新卷卷号:">
<el-input v-model="scheduleData.seqNo" readonly style="width: 80px;"></el-input>
<el-input ref="newRollNo" v-model="pageData.newRollNo" style="width: 100px;"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="customer-item" label="新卷数量:">
<el-input v-model="scheduleData.orderNo" readonly style="width: 80px;" ></el-input>
<el-input v-model="pageData.newRollQty" style="width: 80px;" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="6">
<el-form-item class="customer-item" label="总数量:">
<el-input v-model="scheduleData.partNo" readonly style="width: 80px;"></el-input>
<el-input v-model="pageData.totalQty" readonly style="width: 60px;"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -49,35 +49,58 @@
</template>
<script>
import {
getMergeRollPageData,
} from "@/api/yieldReport/com_merge_roll.js";
export default {
name: "com_merge_roll",
data() {
return {
titleCon: '合并卷',
sfdcTimeList: [],
scheduleData: {
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
seqNo: '',
orderNo: '',
itemNo: 0,
resourceId: '',
scheduledDate: '',
shiftNo: '',
partNo: '',
workCenterNo: '',
workCenterDesc: '',
resourceDesc: '',
rollNo: '',
partDesc: '',
reportTime: '',
reportedFlag: 'N',
planStartTime: '',
planFinishTime: '',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
preItemDesc: '',
nextItemDesc: '',
nextItemNo: 0,
operatorId: '',
functionName: '',
currentRollFlag: false
},
currentRollOps: {
pageData: {
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
orderNo: '',
itemNo: '',
seqNo: '',
rollNo: '',
finishedFlag: '',
rollQty: 0,
newRollNo: '',/*参与合并的新卷号*/
newRollQty: 0,/*参与合并的新卷号*/
reportTime: '',
reportedFlag: 'N',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
preItemDesc: '',
nextItemDesc: '',
nextItemNo: 0,
currentRollFlag: false
},
operatorData: {
site: this.$store.state.user.site,
@ -88,10 +111,37 @@ export default {
seqNo: '',
showFlag: false
},
dataListLoading: false,
}
},
methods: {
//
init(scheduleData, operatorData) {
//
this.scheduleData = scheduleData;
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
this.pageData.reportTime = this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss');
//
this.pageData.orderNo = scheduleData.orderNo;
this.pageData.itemNo = scheduleData.orderNo;
this.pageData.seqNo = scheduleData.seqNo;
this.pageData.rollNo = scheduleData.rollNo;
this.pageData.operatorId = operatorData.operatorId;
//
this.refreshPageData();
//
this.$nextTick(() => {
this.$refs.newRollNo.focus();
});
},
/*刷新页面的参数*/
refreshPageData() {
getMergeRollPageData(this.pageData).then(({data}) => {
this.pageData.rollQty = data.row.resultQty;//
this.pageData.totalQty = data.row.resultQty;//
});
},
/*关闭modal*/
closeDialog(){
@ -99,28 +149,6 @@ export default {
},
init(seqNo, operatorData) {
//
this.scheduleData.seqNo = seqNo;
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
this.pageData.reportTime = this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss');
// this.currentRollOps.seqNo = seqNo;
// this.currentRollOps.rollNo = rollNo;
//
//this.refreshPageData();
},
},
created() {
// this.factoryList()

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

@ -167,6 +167,8 @@
<template slot-scope="scope">
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag == 'N'" @click="replaceToolModal(scope.row)"
>刀模替换</a>
<a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'Y' && scope.row.rollNo == '*'" @click="replaceToolModal(scope.row)"
>结束使用</a>
</template>
</el-table-column>
<el-table-column
@ -3156,7 +3158,7 @@ export default {
//
this.$nextTick(() => {
this.showMergeFlag = true;
this.$refs.comMergeRoll.init(this.scheduleData.seqNo, this.operatorData)
this.$refs.comMergeRoll.init(this.scheduleData, this.operatorData)
});
},

Loading…
Cancel
Save