Browse Source

2026-10-29

TID创建分卷控制;
TID结单控制;
master
fengyuan_yang 1 month ago
parent
commit
718f49d900
  1. 12
      src/views/common/theme.vue
  2. 4
      src/views/modules/yieldReport/com_finish_schedule.vue
  3. 15
      src/views/modules/yieldReport/com_process_inspection.vue
  4. 17
      src/views/modules/yieldReport/com_produce_material.vue
  5. 24
      src/views/modules/yieldReport/com_separate_roll.vue

12
src/views/common/theme.vue

@ -13,12 +13,12 @@
<el-radio label="dark" border>dark</el-radio> <el-radio label="dark" border>dark</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="特效" >
<el-radio-group v-model="effectsEnabled" >
<el-radio label="Y" border>开启</el-radio>
<el-radio label="N" border>关闭</el-radio>
</el-radio-group>
</el-form-item>
<!-- <el-form-item label="特效" >-->
<!-- <el-radio-group v-model="effectsEnabled" >-->
<!-- <el-radio label="Y" border>开启</el-radio>-->
<!-- <el-radio label="N" border>关闭</el-radio>-->
<!-- </el-radio-group>-->
<!-- </el-form-item>-->
</el-form> </el-form>
</template> </template>

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

@ -421,6 +421,8 @@
materialFinishedFlag: 'Y',//时间结束的标记 materialFinishedFlag: 'Y',//时间结束的标记
showNoFinishedMaterialFlag: 'Y',//显示未结束的时间记录标记 showNoFinishedMaterialFlag: 'Y',//显示未结束的时间记录标记
remark: '', remark: '',
workCenterNo: '',
resourceId: '',
bomList: [], // 材料清单备注列表 bomList: [], // 材料清单备注列表
exceptionFlag: 'N', exceptionFlag: 'N',
exceptionReason: '', exceptionReason: '',
@ -1293,6 +1295,8 @@
this.pageData.orderNo = scheduleData.orderNo; this.pageData.orderNo = scheduleData.orderNo;
this.pageData.itemNo = scheduleData.itemNo; this.pageData.itemNo = scheduleData.itemNo;
this.pageData.seqNo = scheduleData.seqNo; this.pageData.seqNo = scheduleData.seqNo;
this.pageData.workCenterNo = scheduleData.workCenterNo || '';
this.pageData.resourceId = scheduleData.resourceId || '';
this.pageData.operatorId = operatorData.operatorId; this.pageData.operatorId = operatorData.operatorId;
this.pageData.operatorName = operatorData.operatorName; this.pageData.operatorName = operatorData.operatorName;
//重置时间 //重置时间

15
src/views/modules/yieldReport/com_process_inspection.vue

@ -1129,6 +1129,7 @@ import {
saveIPQCSubDetailed, // 保存子明细信息 saveIPQCSubDetailed, // 保存子明细信息
} from "@/api/qc/qc.js" } from "@/api/qc/qc.js"
import {unwrapControl, isControlActive} from "../qc/controlScope" import {unwrapControl, isControlActive} from "../qc/controlScope"
import {mergeCollectCounts, validateCollectControl} from "../qc/qcCollectValidate"
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
import { getInspectionFile } from '@/api/eam/eam_object_list.js' import { getInspectionFile } from '@/api/eam/eam_object_list.js'
import { searchQcSopFileList, downloadSopFile } from '@/api/qc/qc.js' import { searchQcSopFileList, downloadSopFile } from '@/api/qc/qc.js'
@ -2808,7 +2809,7 @@ export default {
}, },
// 保存检验明细(应用/保存) // 保存检验明细(应用/保存)
Transfer(type) {
async Transfer(type) {
// 保存时校验 // 保存时校验
if (type === '2') { if (type === '2') {
if (this.detailData.inspectionResult === '' || this.detailData.inspectionResult == null) { if (this.detailData.inspectionResult === '' || this.detailData.inspectionResult == null) {
@ -2830,6 +2831,18 @@ export default {
this.detailData.disposalMeasures = '' this.detailData.disposalMeasures = ''
this.detailData.disposalRemark = '' this.detailData.disposalRemark = ''
} }
const detailRes = await ipqcDetailSearch(this.detailData)
if (detailRes.data && detailRes.data.code === 0) {
mergeCollectCounts(this.detailList, detailRes.data.rows)
}
const collectMessages = validateCollectControl(this.detailList)
if (collectMessages.length > 0) {
this.$alert(collectMessages.join('<br/>'), '提示', {
confirmButtonText: '确定',
dangerouslyUseHTMLString: true
})
return
}
} }
this.saveDetailInformation(type) this.saveDetailInformation(type)
}, },

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

@ -60,7 +60,8 @@
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<button class="action-btn secondary" @click="feedingMaterialRollFun">
<button class="action-btn secondary" :disabled="submitLoading" @click="feedingMaterialRollFun">
<i v-if="submitLoading" class="el-icon-loading"></i>
{{ buttons.confirmButton }} {{ buttons.confirmButton }}
</button> </button>
<button class="action-btn secondary" @click="closeDialog"> <button class="action-btn secondary" @click="closeDialog">
@ -96,6 +97,7 @@ export default {
data() { data() {
return { return {
titleCon: '材料上机', titleCon: '材料上机',
submitLoading: false,
showDefault: false, showDefault: false,
sfdcTimeList: [], sfdcTimeList: [],
selectFlag: true, selectFlag: true,
@ -393,6 +395,9 @@ export default {
/*保存材料上机的记录*/ /*保存材料上机的记录*/
feedingMaterialRollFun(){ feedingMaterialRollFun(){
if (this.submitLoading) {
return false
}
//判断卷号是否为空 //判断卷号是否为空
if (this.pageData.scanRmRollNo == null || this.pageData.scanRmRollNo == ''){ if (this.pageData.scanRmRollNo == null || this.pageData.scanRmRollNo == ''){
this.$message.error(this.labels.pleaseScanMaterialRollNo) this.$message.error(this.labels.pleaseScanMaterialRollNo)
@ -407,6 +412,7 @@ export default {
this.pageData.rmRollNo = this.pageData.scanRmRollNo; this.pageData.rmRollNo = this.pageData.scanRmRollNo;
//清空当前扫描卷属性值 防止重复点击确认 //清空当前扫描卷属性值 防止重复点击确认
this.pageData.scanRmRollNo = ''; this.pageData.scanRmRollNo = '';
this.submitLoading = true
//调用方法执行上材料 //调用方法执行上材料
feedingMaterialRoll(this.pageData).then(({data}) => { feedingMaterialRoll(this.pageData).then(({data}) => {
if(data.code == 500){ if(data.code == 500){
@ -421,6 +427,10 @@ export default {
// 通知父组件打开过程检验对话框 // 通知父组件打开过程检验对话框
this.$emit('openProcessInspection'); this.$emit('openProcessInspection');
} }
}).catch((error) => {
this.$message.error((error && error.message) || '材料上机失败')
}).finally(() => {
this.submitLoading = false
}); });
}, },
@ -681,6 +691,11 @@ export default {
&:active { &:active {
transform: scale(0.98); transform: scale(0.98);
} }
&:disabled {
cursor: not-allowed;
opacity: 0.7;
}
} }
} }
} }

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

@ -4,7 +4,7 @@
<el-form :inline="true" label-position="top" style="height: auto;"> <el-form :inline="true" label-position="top" style="height: auto;">
<!-- 时间和固定载具 --> <!-- 时间和固定载具 -->
<el-row style="margin-top: -10px;"> <el-row style="margin-top: -10px;">
<el-col :span="11">
<el-col :span="8">
<el-form-item :label=labels.currentTime> <el-form-item :label=labels.currentTime>
<el-date-picker style="width: 110px;" <el-date-picker style="width: 110px;"
v-model="pageData.reportDate" v-model="pageData.reportDate"
@ -22,7 +22,7 @@
</el-time-picker> </el-time-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-col :span="5">
<el-form-item> <el-form-item>
<span style="cursor: pointer" slot="label" @click="queryFixedCarrierList(true)"><a>固定载具</a></span> <span style="cursor: pointer" slot="label" @click="queryFixedCarrierList(true)"><a>固定载具</a></span>
<el-input v-model="pageData.fixture" readonly style="width: 120px;" placeholder="固定载具"> <el-input v-model="pageData.fixture" readonly style="width: 120px;" placeholder="固定载具">
@ -34,7 +34,7 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3">
<el-col :span="2">
<el-form-item label="排数"> <el-form-item label="排数">
<el-input-number :controls="false" :step="0" v-model="pageData.rowCount" @change="handleRowCountChange" style="width: 60px;"></el-input-number> <el-input-number :controls="false" :step="0" v-model="pageData.rowCount" @change="handleRowCountChange" style="width: 60px;"></el-input-number>
</el-form-item> </el-form-item>
@ -44,6 +44,14 @@
<el-input-number :controls="false" :step="0" v-model="pageData.rollCount" @change="handleRollCountChange" style="width: 60px;"></el-input-number> <el-input-number :controls="false" :step="0" v-model="pageData.rollCount" @change="handleRollCountChange" style="width: 60px;"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item label="TID卷类型">
<el-radio-group v-model="pageData.tidRollType" class="tid-roll-type-group">
<el-radio label="正常卷">正常卷</el-radio>
<el-radio label="修补卷">修补卷</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row> </el-row>
<!-- 排数据表格 --> <!-- 排数据表格 -->
@ -697,6 +705,7 @@ export default {
fixture: '', // 固定载具 fixture: '', // 固定载具
rowCount: 0, // 排数 rowCount: 0, // 排数
rollCount: 0, // 卷数 rollCount: 0, // 卷数
tidRollType: '正常卷',
carrierNo: '' carrierNo: ''
}, },
rowDataList: [], // 排数据列表 rowDataList: [], // 排数据列表
@ -911,6 +920,7 @@ export default {
this.pageData.rowCount = scheduleData.rowCount; this.pageData.rowCount = scheduleData.rowCount;
this.pageData.rollCount = scheduleData.rollCount; this.pageData.rollCount = scheduleData.rollCount;
this.pageData.fixture = scheduleData.carrierNo; this.pageData.fixture = scheduleData.carrierNo;
this.pageData.tidRollType = '正常卷';
// 重置异常规则锁定状态 // 重置异常规则锁定状态
this.exceptionRuleLocked = false; this.exceptionRuleLocked = false;
this.exceptionRuleLockMessage = ''; this.exceptionRuleLockMessage = '';
@ -1609,6 +1619,8 @@ export default {
const requestData = { const requestData = {
...this.pageData, ...this.pageData,
buNo: this.scheduleData.buNo, buNo: this.scheduleData.buNo,
workCenterNo: this.scheduleData.workCenterNo || '',
resourceId: this.scheduleData.resourceId || '',
rollQty: totalGoodQty, rollQty: totalGoodQty,
rollNums: 1, rollNums: 1,
defectQty: totalDefectQty, defectQty: totalDefectQty,
@ -2512,6 +2524,8 @@ export default {
const requestData = { const requestData = {
...this.pageData, ...this.pageData,
buNo: this.scheduleData.buNo, buNo: this.scheduleData.buNo,
workCenterNo: this.scheduleData.workCenterNo || '',
resourceId: this.scheduleData.resourceId || '',
rollQty: totalGoodQty, // 该卷的良品总数 rollQty: totalGoodQty, // 该卷的良品总数
rollNums: 1, // 固定为1 rollNums: 1, // 固定为1
defectQty: totalDefectQty, // 该卷的不良总数 defectQty: totalDefectQty, // 该卷的不良总数
@ -3494,6 +3508,10 @@ export default {
font-weight: 600; font-weight: 600;
} }
.tid-roll-type-group .el-radio {
margin-right: 12px;
}
</style> </style>
<style lang="scss"> <style lang="scss">

Loading…
Cancel
Save