|
|
|
@ -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}) => { |
|
|
|
// 设置查询数据 |
|
|
|
|