Browse Source

2026-01-27

优化
master
fengyuan_yang 1 month ago
parent
commit
8892813b4b
  1. 2
      src/views/modules/schedule/searchMaterialOnMachineRecord.vue
  2. 26
      src/views/modules/yieldReport/produce_order.vue

2
src/views/modules/schedule/searchMaterialOnMachineRecord.vue

@ -196,7 +196,7 @@
label="操作">
<template slot-scope="scope">
<el-link style="cursor: pointer; margin-right: 8px" @click="printMaterialLabel(scope.row)">打印</el-link>
<el-link style="cursor: pointer" v-if="scope.row.finishedFlag == 'N' && scope.row.histType == '发料'" @click="showReturnMaterialDialog(scope.row)">异常退料</el-link>
<el-link style="cursor: pointer" @click="showReturnMaterialDialog(scope.row)">异常退料</el-link>
</template>
</el-table-column>
<el-table-column

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

@ -23,7 +23,7 @@
<el-input v-model="searchData.site" style="width: 85px"></el-input>
</el-form-item>
<el-form-item :label=labels.resourceId>
<span slot="label" @click="getBaseList(95)"><a herf="#"><span style="color: red;">*</span>机台编号:</a></span>
<span slot="label" @click="getBaseList(95)"><a herf="#">机台编号:</a></span>
<el-input v-model="searchData.resourceId" clearable style="width: 110px"></el-input>
</el-form-item>
<el-form-item :label=labels.planStartTime>
@ -46,7 +46,7 @@
<el-input v-model="searchData.orderNo" style="width: 120px" @keyup.enter.native="refreshPageTables"></el-input>
</el-form-item>
<el-form-item :label=labels.seqNo>
<el-input v-model="searchData.seqNo" style="width: 120px" @keyup.enter.native="refreshPageTables"></el-input>
<el-input v-model="searchData.seqNo" clearable style="width: 120px" @keyup.enter.native="refreshPageTables"></el-input>
</el-form-item>
<el-form-item :label="''" style="margin-left: -5px;">
<el-checkbox style="margin-top: 20px;" true-label="Y" false-label="N" v-model="searchData.closedFlag">{{ labels.showFinishedSeqNo }}
@ -1808,9 +1808,11 @@ export default {
/* 查询派工单 */
getProduceScheduleList() {
//
if (!this.searchData.resourceId || this.searchData.resourceId.trim() === '') {
this.$message.warning('请输入机台编号!')
//
const hasResourceId = this.searchData.resourceId && this.searchData.resourceId.trim() !== ''
const hasSeqNo = this.searchData.seqNo && this.searchData.seqNo.trim() !== ''
if (!hasResourceId && !hasSeqNo) {
this.$message.warning('派工单号和机台必须填一个!')
return
}
// ;
@ -2229,9 +2231,11 @@ export default {
//excel
async createExportData() {
//
if (!this.searchData.resourceId || this.searchData.resourceId.trim() === '') {
this.$message.warning('请输入机台编号!')
//
const hasResourceId = this.searchData.resourceId && this.searchData.resourceId.trim() !== ''
const hasSeqNo = this.searchData.seqNo && this.searchData.seqNo.trim() !== ''
if (!hasResourceId && !hasSeqNo) {
this.$message.warning('派工单号和机台必须填一个!')
return []
}
// ;
@ -2268,8 +2272,10 @@ export default {
}
// getResourceByUser
//
if (this.searchData.resourceId && this.searchData.resourceId.trim() !== '') {
//
const hasResourceId = this.searchData.resourceId && this.searchData.resourceId.trim() !== ''
const hasSeqNo = this.searchData.seqNo && this.searchData.seqNo.trim() !== ''
if (hasResourceId || hasSeqNo) {
this.searchData.searchFlag = true;
getProduceScheduleList(this.searchData).then(({data}) => {
//

Loading…
Cancel
Save