Browse Source

fqc 报工 sxm 2022-3-8

master
[li_she] 4 years ago
parent
commit
849475985d
  1. 7
      src/api/yieldReport/com_separate_roll.js
  2. 8
      src/api/yieldReport/com_switch_roll.js
  3. 17
      src/api/yieldReport/produce_report_normal.js
  4. 6
      src/views/modules/common/Chooselist.vue
  5. 1
      src/views/modules/yieldReport/com_finish_part_roll.vue
  6. 3
      src/views/modules/yieldReport/com_separate_roll.vue
  7. 60
      src/views/modules/yieldReport/com_switch_operator.vue
  8. 219
      src/views/modules/yieldReport/otherReport/bulk_inspection.vue
  9. 218
      src/views/modules/yieldReport/otherReport/defectList.vue
  10. 3557
      src/views/modules/yieldReport/otherReport/fqc_produce_report_normal.vue
  11. 194
      src/views/modules/yieldReport/otherReport/other_switch_roll.vue
  12. 76
      src/views/modules/yieldReport/produce_order.vue

7
src/api/yieldReport/com_separate_roll.js

@ -5,3 +5,10 @@ export const checkCreateSplitSfdcRoll = data => createAPI('schedule/checkCreateS
// 执行创建分卷的操作
export const createSplitSfdcRoll = data => createAPI('schedule/createSplitSfdcRoll', 'POST', data)
// 校验fqc创建分卷的操作
export const otherCheckCreateSplitSfdcRoll = data => createAPI('schedule/otherCheckCreateSplitSfdcRoll', 'POST', data)
// 执行fqc创建分卷的操作
export const otherCreateSplitSfdcRoll = data => createAPI('schedule/otherCreateSplitSfdcRoll', 'POST', data)

8
src/api/yieldReport/com_switch_roll.js

@ -5,3 +5,11 @@ export const checkSwitchSfdcRoll = data => createAPI('schedule/checkSwitchSfdcRo
// 执行切换卷的操作
export const switchSfdcRoll = data => createAPI('schedule/switchSfdcRoll', 'POST', data)
// 其它报工校验切换卷的操作
export const otherCheckSwitchSfdcRoll = data => createAPI('schedule/otherCheckSwitchSfdcRoll', 'POST', data)
// 其它报工执行切换卷的操作
export const otherSwitchSfdcRoll = data => createAPI('schedule/otherSwitchSfdcRoll', 'POST', data)

17
src/api/yieldReport/produce_report_normal.js

@ -55,7 +55,22 @@ export const processFinishTool = data => createAPI('schedule/processFinishTool',
//执行材料结束使用 且未剩余的方法
export const finishMaterialWithNoRemainder = data => createAPI('schedule/processFinishMaterialWithNoRemainder', 'POST', data)
/*-------------------------------------------------------sxm 其它报工业务--------------------------------------------------------*/
//保存当前卷不良记录
export const saveSfdcDefect = data => createAPI('schedule/saveSfdcDefect', 'POST', data)
// 校验卷记录
export const checkSfdcDefect = data => createAPI('schedule/checkSfdcDefect', 'POST', data)
// 批量保存不良信息
export const saveSfdcDefectList = data => createAPI('schedule/saveSfdcDefectList','POST',data)
// 获取所有不良信息列表
export const inspectiondefectcode = data => createAPI('inspectiondefectcode/searchDefectList','POST',data)
// 批量送检卷列表
export const searchFqcSfdcRolls = data => createAPI('schedule/searchFqcSfdcRolls','POST',data)
// getScheduleDateShif
export const getScheduleDateShift = data => createAPI('schedule/getScheduleDateShift','POST',data)
// 批量送检
export const workbenchPostinspection = data => createAPI('schedule/workbenchPostinspection','POST',data)

6
src/views/modules/common/Chooselist.vue

@ -1,6 +1,6 @@
<template>
<el-dialog :title="baseListData.description" center
:close-on-click-modal="false" :show-close="false" :close-on-press-escape="false"
<el-dialog :title="baseListData.description"
:close-on-click-modal="false" :close-on-press-escape="false"
:visible.sync="visible"
width="685px" v-drag>
<el-form label-position="top"
@ -52,7 +52,7 @@
</el-table>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">关闭</el-button>
<el-button @click="visible = false" type="primary">关闭</el-button>
</span>
</el-dialog>

1
src/views/modules/yieldReport/com_finish_part_roll.vue

@ -746,6 +746,7 @@ export default {
checkValidApprovedQty(){
//
this.refreshSfdcData();
this.pageData.totalQty = parseFloat(this.pageData.approvedQty) + parseFloat(this.pageData.defectedQty);
},

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

@ -186,7 +186,8 @@ export default {
return false;
}
//
checkCreateSplitSfdcRoll(this.pageData).then(({data}) => {
checkCreateSplitSfdcRoll(this.pageData)
.then(({data}) => {
//
if (data.code == 500) {
this.$message.error(data.msg);

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

@ -1,7 +1,7 @@
<template>
<!-- 展示员工切换的模块 -->
<div class="customer-css">
<el-dialog :title="titleCon" v-bind="$attrs" v-on="$listeners" width="280px">
<el-dialog :title="titleCon" v-bind="$attrs" v-on="$listeners" width="280px">
<el-form :inline="true" @submit.native.prevent label-position="top" label-width="100px" style="margin-top: -5px;">
<el-row>
<el-form-item>
@ -14,7 +14,8 @@
</el-row>
<el-row>
<el-form-item :label="'操作员姓名:'">
<el-input class="customer-color" v-model="operatorData.operatorName" readonly="readonly" style="width: 110px;"></el-input>
<el-input class="customer-color" v-model="operatorData.operatorName" readonly="readonly"
style="width: 110px;"></el-input>
</el-form-item>
</el-row>
</el-form>
@ -31,7 +32,7 @@
</el-dialog>
<!--列表的组件-->
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div>
</template>
@ -40,20 +41,22 @@ import Chooselist from '@/views/modules/common/Chooselist';/*列表组件*/
import {
getOperatorData,
} from '@/api/yieldReport/produce_order.js'
import comOpenRoutingMenu from "../schedule/com_open_routing_menu";
import comOpenScheduleMenu from "../schedule/com_open_schedule_menu";
import comOpenRoutingMenu from "../schedule/com_open_routing_menu";
import comOpenScheduleMenu from "../schedule/com_open_schedule_menu";
export default {
name: "com_switch_operator",
data() {
return {
titleCon:'操作员切换',
titleCon: '操作员切换',
operatorFlag: false,
operatorData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
operatorId: '',
operatorName: '',
status: ''
status: '',
reportType: 0
},
}
},
@ -64,18 +67,19 @@ export default {
methods: {
/*关闭modal*/
closeDialog(){
closeDialog() {
//
this.$emit('notInitOperatorData');
this.$emit('notInitOperatorData', this.operatorData.reportType);
//
this.$emit('update:visible', false);
},
//
init() {
init(val) {
//
this.operatorData.operatorName = '';
this.operatorData.operatorId = '';
this.operatorData.reportType = val;
//
this.$nextTick(() => {
this.$refs.operatorId.focus();
@ -87,17 +91,17 @@ export default {
saveOperatorData() {
//
let operatorId = this.operatorData.operatorId.trim();
if(operatorId == null || '' === operatorId){
if (operatorId == null || '' === operatorId) {
this.$message.error('请输入操作员!');
return false;
}
getOperatorData(this.operatorData).then(({data}) => {
//
if(data.code === 500){
if (data.code === 500) {
this.operatorData.operatorName = '';
this.$message.error(data.msg);
return false;
}else if(!data.row){
} else if (!data.row) {
this.$message.error('账号有误!');
this.operatorData.operatorName = '';
return false;
@ -118,20 +122,23 @@ export default {
this.operatorData.operatorName = data.row.operatorName;
//
this.closeDialog();
// 0
//
this.$emit('initOperatorData', this.operatorData);
});
},
/*检查操作员的信息*/
checkOperatorId(){
checkOperatorId() {
getOperatorData(this.operatorData).then(({data}) => {
//
if(data.code === 500){
if (data.code === 500) {
//this.$message.error(data.msg);
this.operatorData.operatorName = '';
return false;
}else if(!data.row){
} else if (!data.row) {
//this.$message.error('!');
this.operatorData.operatorName = '';
return false;
@ -148,31 +155,34 @@ export default {
if (!this.operatorFlag) {
//this.$message.error('!');
this.operatorData.operatorName = '';
}else{
} else {
this.operatorData.operatorName = data.row.operatorName;
}
});
},
/*列表方法的回调*/
getBaseData(val){
if (this.tagNo === 26){
getBaseData(val) {
if (this.tagNo === 26) {
this.operatorData.operatorId = val.OperatorID;
this.operatorData.operatorName = val.OperatorName;
}
},
//
getBaseList(val){
getBaseList(val) {
this.tagNo = val
this.$nextTick(() => {
let strVal = "";
if (val === 26){
if (val === 26) {
strVal = this.operatorData.operatorId;
}
this.$refs.baseList.init(val, strVal)
})
},
},
created() {
}
@ -180,8 +190,8 @@ export default {
</script>
<style scoped lang="scss">
/*控制操作员的字体颜色*/
.customer-color /deep/ .el-input__inner{
color: red;
}
/*控制操作员的字体颜色*/
.customer-color /deep/ .el-input__inner {
color: red;
}
</style>

219
src/views/modules/yieldReport/otherReport/bulk_inspection.vue

@ -0,0 +1,219 @@
<template>
<el-dialog
width="800px"
title="批量直接送检"
:close-on-click-modal="false"
:visible.sync="visible">
<el-row>
<el-col :span="24">
<el-form :inline="true" label-position="top">
<el-form-item label="卷号:">
<el-input style="width: 120px" v-model="sfdcRolls.rollNo">
</el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" style="margin-top: 24px" @click="getDataList">查询</el-button>
</el-form-item>
</el-form>
</el-col>
<el-col :span="24">
<fieldset class="customer-fieldset" style="width: 400px; height: 60px">
<legend class="customer-legend">排程班次信息</legend>
<el-form style="margin-top: -10px" :inline="true" label-position="top">
<el-form-item label="排产日期:">
<el-date-picker style="width: 100px"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd hh:mm:ss" v-model="currentDate" readonly>
</el-date-picker>
</el-form-item>
<el-form-item label="班次:">
<el-input style="width: 120px" v-model="shift" readonly>
</el-input>
</el-form-item>
<el-form-item>
<!-- <el-button type="primary" style="margin-top: 24px">查询</el-button>-->
</el-form-item>
</el-form>
</fieldset>
</el-col>
<el-col :span="24">
<el-table
height="450"
:data="dataList"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in languageColumnList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="item.columnProp!='inspectqty'"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnProp=='inspectqty'"><input
class="sl-input"
oninput="value=value.replace(/[^0-9]/g,'')"
v-model="scope.row[item.columnProp]" type="text"
clearable></input></span>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForInspection">送检</el-button>
<el-button @click="visible = false" type="primary">关闭</el-button>
</span>
</el-dialog>
</template>
<script>
import {
searchFqcSfdcRolls,
getScheduleDateShift,
workbenchPostinspection
} from "@/api/yieldReport/produce_report_normal.js";
export default {
data() {
return {
currentDate: '',
shift: '',
visible: false,
operatorId: '',
dataList: [],
site: this.$store.state.user.site,
reportedBy: this.$store.state.user.name,
sfdcRolls: {
site: this.$store.state.user.site,
reportedBy: this.$store.state.user.name,
orderNo: '',
itemNo: '',
seqNo: '',
histSeqNo: '',
rollNo: '',
resourceId: ''
},
scheduleDateShiftDto: {
site: '',
resourceId: '',
currentDateTime: ''
},
dataListLoading: false,
languageColumnList: [
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5301ToolHistSeqNo',
tableId: "5303Tool",
tableName: "批量送卷",
columnProp: "rollNo",
headerAlign: "center",
align: "center",
columnLabel: "卷号",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
}
],
}
},
mounted() {
},
activated() {
},
methods: {
init(val) {
this.visible = true
this.sfdcRolls.site = val.site
this.sfdcRolls.orderNo = val.orderNo
this.sfdcRolls.itemNo = val.itemNo
this.sfdcRolls.seqNo = val.seqNo
this.sfdcRolls.resourceId = val.resourceId
this.scheduleDateShiftDto.site = val.site
this.operatorId = val.operatorId
this.scheduleDateShiftDto.resourceId = val.resourceId
this.scheduleDateShiftDto.currentDateTime = this.dayjs().format("YYYY-MM-DD hh:mm:ss")
this.searchScheduleDateShift()
},
//
getDataList() {
searchFqcSfdcRolls(this.sfdcRolls).then(({data}) => {
this.dataList = data.list
})
},
//
searchScheduleDateShift() {
getScheduleDateShift(this.scheduleDateShiftDto).then(({data}) => {
if (data.code == 0) {
this.currentDate = data.map.scheduleddate
this.shift = data.map.ShiftNo
}
})
},
//
submitForInspection() {
if (this.dataList.length == 0) {
return;
}
let paramData = this.dataList.map(item => {
item = {
site: this.sfdcRolls.site,
orderNo: this.sfdcRolls.orderNo,
itemNo: this.sfdcRolls.itemNo,
seqNo: this.sfdcRolls.seqNo,
shift: this.shift,
resourceId: this.sfdcRolls.resourceId,
scheduleDate: this.currentDate,
rollNo: item.rollNo,
repairOrderFlag: 'N',
operatorId: this.operatorId,
currentDatetime: this.scheduleDateShiftDto.currentDateTime ,
remark: ''
}
return item
})
this.$confirm(`确定要对选中的卷做“直接送检”处理?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
workbenchPostinspection(paramData).then(({data}) =>{
})
})
}
},
created() {
}
}
</script>
<style scoped>
.sl-input {
background-color: transparent;
border: 0 !important;
font-size: 12px !important;
height: 12px !important;
line-height: 14px !important;
background-color: transparent !important;
width: 140px;
}
.sl-input:focus, textarea:focus {
outline: none;
}
</style>

218
src/views/modules/yieldReport/otherReport/defectList.vue

@ -0,0 +1,218 @@
<template>
<el-dialog
width="800px"
title="批量录入不良"
:close-on-click-modal="false"
:visible.sync="visible">
<el-row >
<el-col :span="24">
<el-form :inline="true" label-position="top">
<el-form-item label="检验日期:">
<el-date-picker style="width: 120px"
format = "yyyy-MM-dd"
value-format="yyyy-MM-dd hh:mm:ss" v-model="harmful.reportedDate">
</el-date-picker>
</el-form-item>
</el-form>
</el-col>
<el-col :span="24">
<el-table
height="450"
:data="dataList"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in languageColumnList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="item.columnProp!='inspectqty'"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnProp=='inspectqty'"><input
class="sl-input"
oninput="value=value.replace(/[^0-9]/g,'')"
v-model="scope.row[item.columnProp]" type="text"
clearable></input></span>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="save" >保存</el-button>
<el-button @click="visible = false" type="primary">关闭</el-button>
</span>
</el-dialog>
</template>
<script>
import {
inspectiondefectcode,
saveSfdcDefectList
} from "@/api/yieldReport/produce_report_normal.js";
export default {
data() {
return {
visible: false,
dataList: [],
site: this.$store.state.user.site,
reportedBy: this.$store.state.user.name,
harmful: {
site: this.$store.state.user.site,
reportedBy: this.$store.state.user.name,
orderNo: '',
itemNo: '',
seqNo: '',
histSeqNo: '',
rollNo: '',
reportedDate: '',
defectCode: '',
defectQty: '',
defectDesc: ''
},
dataListLoading: false,
languageColumnList: [
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5301ToolHistSeqNo',
tableId: "5303Tool",
tableName: "不良信息列表",
columnProp: "defectcode",
headerAlign: "center",
align: "center",
columnLabel: "不良代码",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5301ToolHistSeqNo',
tableId: "5303Tool",
tableName: "工具记录表",
columnProp: "defectdesc",
headerAlign: "center",
align: "center",
columnLabel: "不良原因",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5301ToolHistSeqNo',
tableId: "5303Tool",
tableName: "工具记录表",
columnProp: "inspectqty",
headerAlign: "center",
align: "center",
columnLabel: "数量",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
],
}
},
mounted() {
},
activated() {
},
methods: {
init(val){
this.visible = true
this.harmful.reportedDate = this.dayjs().format("YYYY-MM-DD 00:00:00")
this.harmful.orderNo = val.orderNo
this.harmful.itemNo = val.itemNo
this.harmful.seqNo = val.seqNo
this.harmful.rollNo = val.rollNo
this.getDataList()
},
//
getDataList(){
inspectiondefectcode().then(({data}) =>{
data.list.map( item => {
if (item.inspectqty==null){
item.inspectqty = 0
}
return item
})
this.dataList = data.list
})
},
//
save(){
let data = this.dataList.map( item => {
item = {
defectCode: item.defectcode,
defectQty: Number(item.inspectqty),
reportedBy: this.harmful.reportedBy,
reportedDate: this.harmful.reportedDate,
site: this.harmful.site,
orderNo: this.harmful.orderNo ,
itemNo: this.harmful.itemNo ,
seqNo: this.harmful.seqNo ,
rollNo: this.harmful.rollNo
}
return item ;
}).filter( item => item.defectQty>0 )
saveSfdcDefectList(data).then(({data}) =>{
if (data.code==0){
this.$message.success(
{
message:data.msg,
duration:1000
})
this.visible = false
this.$emit('getSfdcDefectList')
}else{
this.$message.error(data.msg)
}
})
console.log(data)
}
},
created() {
}
}
</script>
<style scoped>
.sl-input {
background-color: transparent;
border: 0 !important;
font-size: 12px !important;
height: 12px !important;
line-height: 14px !important;
background-color: transparent !important;
width: 140px;
}
.sl-input:focus, textarea:focus {
outline: none;
}
</style>

3557
src/views/modules/yieldReport/otherReport/fqc_produce_report_normal.vue
File diff suppressed because it is too large
View File

194
src/views/modules/yieldReport/otherReport/other_switch_roll.vue

@ -0,0 +1,194 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="210px" style="height: 680px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 60px;"
label-width="80px">
<!-- 半成品卷卷号 -->
<el-row>
<el-col :span="24" style="margin-left: 35px;">
<el-form-item :label="'半成品卷卷号:'">
<el-input ref="newRollNo" v-model="pageData.newRollNo" style="width: 120px;" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="switchRollBun"> </el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
/*添加组件*/
import comExceptionReason from "../com_exception_reason";//
/*添加js的方法和请求*/
import {
otherCheckSwitchSfdcRoll,/*校验是否可以切换卷*/
otherSwitchSfdcRoll,/*执行切换卷的操作*/
} from '@/api/yieldReport/com_switch_roll.js'
export default {
name: "com_merge_roll",
data() {
return {
titleCon: '切换卷',
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: '',
planStartTime: '',
planFinishTime: '',
qtyRequiredOriginal: 0,
preItemDesc: '',
nextItemDesc: '',
nextItemNo: 0,
operatorId: '',
functionName: '',
currentRollFlag: false
},
pageData: {
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
seqNo: '',
orderNo: '',
itemNo: '',
newRollNo: '',
operatorId: '',
// fqc ,
repairOrderFlag: 'N',
checkMultipleRoll: 'Y',
directPass: 'N'
},
operatorData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
operatorId: '',
operatorName: '',
status: '',
seqNo: '',
showFlag: false
},
}
},
components: {
comExceptionReason,/*异常原因的组件*/
},
methods: {
//
init(scheduleData, operatorData) {
//
this.scheduleData = scheduleData;
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
//
this.pageData.orderNo = scheduleData.orderNo;
this.pageData.itemNo = scheduleData.orderNo;
this.pageData.seqNo = scheduleData.seqNo;
this.pageData.operatorId = operatorData.operatorId;
this.pageData.repairOrderFlag = scheduleData.repairOrderFlag;
this.pageData.checkMultipleRoll = scheduleData.checkMultipleRoll;
this.pageData.directPass = scheduleData.directPass;
//
this.$nextTick(() => {
this.$refs.newRollNo.focus();
});
},
/*关闭modal*/
closeDialog(){
this.$emit('update:visible', false);
},
switchRollBun() {
//
if (this.pageData.operatorId == '' || this.pageData.operatorId == null) {
this.$message.error('请先切换人员!');
return false;
}
//
let newRollNo = this.pageData.newRollNo;
if (newRollNo == null || newRollNo == '') {
this.$message.error('请输入半成品卷号!');
return false;
}
//
otherCheckSwitchSfdcRoll(this.pageData).then(({data}) => {
//
if (data.code == 400) {
this.$message.error(data.msg);
} else if (data.resultMap.resultCode == '201') {
//
this.$confirm(data.resultMap.resultMsg, '提示', {
confirmButtonText: '确认',
celButtonText: '取消',
type: 'warning'
}).then(() => {
//
this.switchRollOperation();
});
} else { //
this.switchRollOperation();
}
});
},
/*执行切换卷的操作*/
switchRollOperation() {
//
otherSwitchSfdcRoll(this.pageData).then(({data}) => {
//
if (data.code == 400) {
this.$message.error(data.msg);
} else {
//
this.$emit('refreshPageData');
//
this.closeDialog();
}
})
},
},
created() {
// this.factoryList()
// this.getLanguageList()
}
}
</script>
<style scoped lang="scss">
/*调节页面button和input的上下间距*/
.customer-css .customer-button{
margin-top: 25px;
}
/*调节fieldset下的样式*/
.customer-fieldset .customer-item{
margin-top: -15px;
}
/*fieldset下table的样式*/
.customer-fieldset /deep/ .el-table__header th.is-leaf{
line-height: 16px;
}
/deep/ .customer-tab .el-tabs__content{
padding: 0px !important;
}
</style>

76
src/views/modules/yieldReport/produce_order.vue

@ -18,7 +18,7 @@
</el-button>
</el-form-item>
<el-form-item :label="''">
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid"
<el-button type="primary" @click="fqcReport()" class="customer-bun-mid"
style="margin-left: 10px; margin-bottom: 5px;">FQC报工
</el-button>
</el-form-item>
@ -106,7 +106,8 @@
<!-- 切换操作员 -->
<comSwitchOperator ref="comSwitchOperator" :close-on-click-modal="false"
:visible.sync="showOperatorFlag"
@initOperatorData="initOperatorData" @notInitOperatorData="notInitOperatorData">
@initOperatorData="initOperatorData"
@notInitOperatorData="notInitOperatorData">
</comSwitchOperator>
@ -122,6 +123,10 @@
@processFinishScheduleOperation = "processFinishScheduleOperation">
</comFinishSchedule>
<!-- fqc报工的组件 -->
<fqcProduceReportNormal :close-on-click-modal="false"
:visible.sync="fqcShowReportFlag" ref="fqcProduceReportNormal">
</fqcProduceReportNormal>
</div>
</template>
@ -136,6 +141,7 @@ import {
import comSwitchOperator from "./com_switch_operator";/*切换操作员*/
import comProduceReportNormal from "./com_produce_report_normal";/* 报工的组件*/
import comFinishSchedule from "./com_finish_schedule";/*结束派工的组件*/
import fqcProduceReportNormal from "./otherReport/fqc_produce_report_normal";/*结束派工的组件*/
export default {
data() {
@ -143,6 +149,7 @@ export default {
height: 800,
showOperatorFlag: false,
showReportFlag: false,
fqcShowReportFlag:false,
showFinishScheduleFlag:false,
searchData: {
site: this.$store.state.user.site,
@ -952,6 +959,7 @@ export default {
comSwitchOperator,/*切换用户的组件*/
comProduceReportNormal,/*报工页面的组件*/
comFinishSchedule,/*结束派工单的组件*/
fqcProduceReportNormal, /*fqc报工*/
},
mounted() {
this.$nextTick(() => {
@ -959,7 +967,44 @@ export default {
})
},
methods: {
// FQC
fqcReport(){
//
if (JSON.stringify(this.currentRow) == '{}') {
this.$message.error('请先选择派工单!');
return false;
}
//
this.showOperatorFlag = true;
this.$nextTick(() => {
this.$refs.comSwitchOperator.init(1);
});
},
fqcReportModal(){
//
if (JSON.stringify(this.currentRow) == '{}') {
this.$message.error('请先选择派工单!');
return false;
}
//
this.fqcShowReportFlag = true;
this.$nextTick(() => {
this.$refs.fqcProduceReportNormal.init(this.currentRow.seqNo, this.operatorData);
});
},
// FQC
fqcSplitRoll(){
},
//
reworkInspect(){
},
//
changePackaging(){
},
/*查询派工单*/
getProduceScheduleList() {
//;
@ -983,15 +1028,30 @@ export default {
initOperatorData(operatorData){
this.showOperatorFlag = false;
this.operatorData = JSON.parse(JSON.stringify(operatorData));
//
this.switchProduceReportModal();
if (operatorData.reportType == 0){
//
this.switchProduceReportModal();
}
if (operatorData.reportType == 1){
//fqc
this.fqcReportModal();
}
},
notInitOperatorData(){
notInitOperatorData(val){
//
this.showOperatorFlag = false;
//
this.switchProduceReportModal();
if (val == 0){
//
this.switchProduceReportModal();
}
if (val == 1){
// FQC
this.fqcReportModal()
}
},
//modal
@ -1004,7 +1064,7 @@ export default {
//
this.showOperatorFlag = true;
this.$nextTick(() => {
this.$refs.comSwitchOperator.init();
this.$refs.comSwitchOperator.init(0);
});
},

Loading…
Cancel
Save