Browse Source

返工重检 ,fqc分卷 sxm 2022-3-8

master
[li_she] 4 years ago
parent
commit
d47e57a387
  1. 3
      src/api/yieldReport/produce_report_normal.js
  2. 1
      src/assets/scss/_base.scss
  3. 51
      src/element-ui/index.js
  4. 7
      src/views/modules/yieldReport/otherReport/bulk_inspection.vue
  5. 6
      src/views/modules/yieldReport/otherReport/fqc_produce_report_normal.vue
  6. 3487
      src/views/modules/yieldReport/otherReport/fqc_split_roll_report.vue
  7. 3560
      src/views/modules/yieldReport/otherReport/rework_inspect_report.vue
  8. 84
      src/views/modules/yieldReport/produce_order.vue

3
src/api/yieldReport/produce_report_normal.js

@ -72,6 +72,9 @@ export const getScheduleDateShift = data => createAPI('schedule/getScheduleDateS
// 批量送检 // 批量送检
export const workbenchPostinspection = data => createAPI('schedule/workbenchPostinspection','POST',data) export const workbenchPostinspection = data => createAPI('schedule/workbenchPostinspection','POST',data)
// 返工重检 下机卷列表
export const getReworkSfdcRollByCon = data => createAPI('schedule/getReworkSfdcRollByCon', 'POST', data)

1
src/assets/scss/_base.scss

@ -362,3 +362,4 @@ img {
vertical-align: middle; vertical-align: middle;
margin-right: 5px; margin-right: 5px;
} }

51
src/element-ui/index.js

@ -147,3 +147,54 @@ Vue.prototype.$message = Message;
Vue.prototype.$ELEMENT = { size: 'medium' } Vue.prototype.$ELEMENT = { size: 'medium' }
Vue.prototype.$message = function (msg) {
//根据msg对象中的type类型判断消息提示的类型
let msgObj = {
message: msg.message ? msg.message : msg,
duration: 3000
}
let msgType = msg.type || ""
switch (msgType) {
case 'success':
return Message.success(msgObj);
break;
case 'warning':
return Message.warning(msgObj);
break;
case 'error':
return Message.error(msgObj);
break;
default:
return Message(msgObj);
}
}
//分别对success、warning ,error info等样式进行设置
Vue.prototype.$message.success = function (msg) {
return Message.success({
message: msg,
duration: 1000
})
}
Vue.prototype.$message.warning = function (msg) {
return Message.warning({
message: msg,
duration: 1000
})
}
Vue.prototype.$message.error = function (msg) {
return Message.error({
message: msg,
duration: 1500
})
}
Vue.prototype.$message.info = function (msg) {
return Message.info({
message: msg,
duration: 1000
})
}

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

@ -82,6 +82,7 @@ export default {
data() { data() {
return { return {
currentDate: '', currentDate: '',
repairOrderFlag: '',
shift: '', shift: '',
visible: false, visible: false,
operatorId: '', operatorId: '',
@ -132,8 +133,10 @@ export default {
}, },
methods: { methods: {
init(val) {
init(val,val2) {
this.visible = true this.visible = true
this.repairOrderFlag = val2
console.log(this.repairOrderFlag)
this.sfdcRolls.site = val.site this.sfdcRolls.site = val.site
this.sfdcRolls.orderNo = val.orderNo this.sfdcRolls.orderNo = val.orderNo
this.sfdcRolls.itemNo = val.itemNo this.sfdcRolls.itemNo = val.itemNo
@ -175,7 +178,7 @@ export default {
resourceId: this.sfdcRolls.resourceId, resourceId: this.sfdcRolls.resourceId,
scheduleDate: this.currentDate, scheduleDate: this.currentDate,
rollNo: item.rollNo, rollNo: item.rollNo,
repairOrderFlag: 'N',
repairOrderFlag: this.repairOrderFlag ,
operatorId: this.operatorId, operatorId: this.operatorId,
currentDatetime: this.scheduleDateShiftDto.currentDateTime , currentDatetime: this.scheduleDateShiftDto.currentDateTime ,
remark: '' remark: ''

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

@ -2775,7 +2775,7 @@ export default {
// //
bulkInspection(){ bulkInspection(){
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.bulkInspection.init(this.scheduleData)
this.$refs.bulkInspection.init(this.scheduleData,'N')
}); });
}, },
// //
@ -2814,8 +2814,10 @@ export default {
if (data.code == 0) { if (data.code == 0) {
this.$message.success(data.msg) this.$message.success(data.msg)
this.getSfdcDefectList(); this.getSfdcDefectList();
} else {
} else if(data.code == 500){
this.$message.error(data.msg) this.$message.error(data.msg)
} else {
this.$message.warning(data.msg)
} }
}) })
}, },

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

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

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

@ -13,27 +13,27 @@
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item :label="''"> <el-form-item :label="''">
<el-button type="primary" @click="switchOperatorModal()" class="customer-bun-mid"
<el-button type="primary" @click="switchOperatorModal(0)" class="customer-bun-mid"
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 :label="''"> <el-form-item :label="''">
<el-button type="primary" @click="fqcReport()" class="customer-bun-mid"
<el-button type="primary" @click="switchOperatorModal(1)" class="customer-bun-mid"
style="margin-left: 10px; margin-bottom: 5px;">FQC报工 style="margin-left: 10px; margin-bottom: 5px;">FQC报工
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item :label="''"> <el-form-item :label="''">
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid"
<el-button type="primary" @click="switchOperatorModal(2)" class="customer-bun-mid"
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 :label="''"> <el-form-item :label="''">
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid"
<el-button type="primary" @click="switchOperatorModal(4)" class="customer-bun-mid"
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 :label="''"> <el-form-item :label="''">
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid"
<el-button type="primary" @click="switchOperatorModal(3)" class="customer-bun-mid"
style="margin-left: 10px; margin-bottom: 5px;">FQC分卷 style="margin-left: 10px; margin-bottom: 5px;">FQC分卷
</el-button> </el-button>
</el-form-item> </el-form-item>
@ -128,6 +128,12 @@
:visible.sync="fqcShowReportFlag" ref="fqcProduceReportNormal"> :visible.sync="fqcShowReportFlag" ref="fqcProduceReportNormal">
</fqcProduceReportNormal> </fqcProduceReportNormal>
<!-- 返工重检 -->
<reworkInspectReport :close-on-click-modal="false"
:visible.sync="reworkShowReportFlag" ref="reworkInspectReport"></reworkInspectReport>
<!-- FQC分卷 -->
<fqcSplitRollReport :close-on-click-modal="false"
:visible.sync="fqcRollShowReportFlag" ref="fqcSplitRollReport"></fqcSplitRollReport>
</div> </div>
</template> </template>
@ -142,6 +148,8 @@ import comSwitchOperator from "./com_switch_operator";/*切换操作员*/
import comProduceReportNormal from "./com_produce_report_normal";/* 报工的组件*/ import comProduceReportNormal from "./com_produce_report_normal";/* 报工的组件*/
import comFinishSchedule from "./com_finish_schedule";/*结束派工的组件*/ import comFinishSchedule from "./com_finish_schedule";/*结束派工的组件*/
import fqcProduceReportNormal from "./otherReport/fqc_produce_report_normal";/*结束派工的组件*/ import fqcProduceReportNormal from "./otherReport/fqc_produce_report_normal";/*结束派工的组件*/
import reworkInspectReport from "./otherReport/rework_inspect_report";/*结束派工的组件*/
import fqcSplitRollReport from "./otherReport/fqc_split_roll_report";/*结束派工的组件*/
export default { export default {
data() { data() {
@ -150,6 +158,8 @@ export default {
showOperatorFlag: false, showOperatorFlag: false,
showReportFlag: false, showReportFlag: false,
fqcShowReportFlag:false, fqcShowReportFlag:false,
reworkShowReportFlag:false,
fqcRollShowReportFlag: false,
showFinishScheduleFlag:false, showFinishScheduleFlag:false,
searchData: { searchData: {
site: this.$store.state.user.site, site: this.$store.state.user.site,
@ -959,7 +969,9 @@ export default {
comSwitchOperator,/*切换用户的组件*/ comSwitchOperator,/*切换用户的组件*/
comProduceReportNormal,/*报工页面的组件*/ comProduceReportNormal,/*报工页面的组件*/
comFinishSchedule,/*结束派工单的组件*/ comFinishSchedule,/*结束派工单的组件*/
fqcProduceReportNormal, /*fqc报工*/
fqcProduceReportNormal, /*FQC报工*/
reworkInspectReport, /*返工重建*/
fqcSplitRollReport, /*FQC分卷*/
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
@ -967,39 +979,44 @@ export default {
}) })
}, },
methods: { methods: {
// FQC // FQC
fqcReport(){
fqcReportModal(){
// //
if (JSON.stringify(this.currentRow) == '{}') { if (JSON.stringify(this.currentRow) == '{}') {
this.$message.error('请先选择派工单!'); this.$message.error('请先选择派工单!');
return false; return false;
} }
// //
this.showOperatorFlag = true;
this.fqcShowReportFlag = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.comSwitchOperator.init(1);
this.$refs.fqcProduceReportNormal.init(this.currentRow.seqNo, this.operatorData);
}); });
}, },
fqcReportModal(){
//
// FQC
fqcSplitRollModal(){
if (JSON.stringify(this.currentRow) == '{}') { if (JSON.stringify(this.currentRow) == '{}') {
this.$message.error('请先选择派工单!'); this.$message.error('请先选择派工单!');
return false; return false;
} }
// //
this.fqcShowReportFlag = true;
this.fqcRollShowReportFlag = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.fqcProduceReportNormal.init(this.currentRow.seqNo, this.operatorData);
this.$refs.fqcSplitRollReport.init(this.currentRow.seqNo, this.operatorData);
}); });
},
// FQC
fqcSplitRoll(){
}, },
// //
reworkInspect(){
reworkInspectModal(){
//
if (JSON.stringify(this.currentRow) == '{}') {
this.$message.error('请先选择派工单!');
return false;
}
//
this.reworkShowReportFlag = true;
this.$nextTick(() => {
this.$refs.reworkInspectReport.init(this.currentRow.seqNo, this.operatorData);
});
}, },
// //
changePackaging(){ changePackaging(){
@ -1038,6 +1055,14 @@ export default {
this.fqcReportModal(); this.fqcReportModal();
} }
if (operatorData.reportType == 2){
//
this.reworkInspectModal();
}
if (operatorData.reportType == 3){
//fqc
this.fqcSplitRollModal();
}
}, },
notInitOperatorData(val){ notInitOperatorData(val){
@ -1047,15 +1072,26 @@ export default {
// //
this.switchProduceReportModal(); this.switchProduceReportModal();
} }
if (val == 1){ if (val == 1){
// FQC
this.fqcReportModal()
//fqc
this.fqcReportModal();
}
if (val == 2){
//
this.reworkInspectModal();
}
if (val == 3){
//fqc
this.fqcSplitRollModal();
} }
}, },
//modal //modal
switchOperatorModal() {
switchOperatorModal(val) {
console.log(val)
// //
if (JSON.stringify(this.currentRow) == '{}') { if (JSON.stringify(this.currentRow) == '{}') {
this.$message.error('请先选择派工单!'); this.$message.error('请先选择派工单!');
@ -1064,7 +1100,7 @@ export default {
// //
this.showOperatorFlag = true; this.showOperatorFlag = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.comSwitchOperator.init(0);
this.$refs.comSwitchOperator.init(val);
}); });
}, },

Loading…
Cancel
Save