|
|
|
@ -43,7 +43,7 @@ |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label=labels.orderNo> |
|
|
|
<el-input v-model="searchData.orderNo" style="width: 120px" @keyup.enter.native="refreshPageTables"></el-input> |
|
|
|
<el-input v-model="searchData.orderNo" clearable style="width: 140px" @keyup.enter.native="refreshPageTables"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label=labels.seqNo> |
|
|
|
<el-input v-model="searchData.seqNo" clearable style="width: 120px" @keyup.enter.native="refreshPageTables"></el-input> |
|
|
|
@ -1808,11 +1808,12 @@ export default { |
|
|
|
|
|
|
|
/* 查询派工单 */ |
|
|
|
getProduceScheduleList() { |
|
|
|
// 校验:派工单号和机台必须填一个 |
|
|
|
// 校验:派工单号、机台、生产订单号必须填一个 |
|
|
|
const hasResourceId = this.searchData.resourceId && this.searchData.resourceId.trim() !== '' |
|
|
|
const hasSeqNo = this.searchData.seqNo && this.searchData.seqNo.trim() !== '' |
|
|
|
if (!hasResourceId && !hasSeqNo) { |
|
|
|
this.$message.warning('派工单号和机台必须填一个!') |
|
|
|
const hasOrderNo = this.searchData.orderNo && this.searchData.orderNo.trim() !== '' |
|
|
|
if (!hasResourceId && !hasSeqNo && !hasOrderNo) { |
|
|
|
this.$message.warning('派工单号、机台、生产订单号必须填一个!') |
|
|
|
return |
|
|
|
} |
|
|
|
// 开始真的查询; |
|
|
|
@ -2231,11 +2232,12 @@ export default { |
|
|
|
|
|
|
|
//导出excel |
|
|
|
async createExportData() { |
|
|
|
// 校验:派工单号和机台必须填一个 |
|
|
|
// 校验:派工单号、机台、生产订单号必须填一个 |
|
|
|
const hasResourceId = this.searchData.resourceId && this.searchData.resourceId.trim() !== '' |
|
|
|
const hasSeqNo = this.searchData.seqNo && this.searchData.seqNo.trim() !== '' |
|
|
|
if (!hasResourceId && !hasSeqNo) { |
|
|
|
this.$message.warning('派工单号和机台必须填一个!') |
|
|
|
const hasOrderNo = this.searchData.orderNo && this.searchData.orderNo.trim() !== '' |
|
|
|
if (!hasResourceId && !hasSeqNo && !hasOrderNo) { |
|
|
|
this.$message.warning('派工单号、机台、生产订单号必须填一个!') |
|
|
|
return [] |
|
|
|
} |
|
|
|
// 开始真的查询; |
|
|
|
@ -2279,10 +2281,11 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
// 等待getResourceByUser执行完成后,再查询生产排程列表 |
|
|
|
// 只有当机台编号或派工单号有值时才查询 |
|
|
|
// 只有当机台编号、派工单号或生产订单号有值时才查询 |
|
|
|
const hasResourceId = this.searchData.resourceId && this.searchData.resourceId.trim() !== '' |
|
|
|
const hasSeqNo = this.searchData.seqNo && this.searchData.seqNo.trim() !== '' |
|
|
|
if (hasResourceId || hasSeqNo) { |
|
|
|
const hasOrderNo = this.searchData.orderNo && this.searchData.orderNo.trim() !== '' |
|
|
|
if (hasResourceId || hasSeqNo || hasOrderNo) { |
|
|
|
this.searchData.searchFlag = true; |
|
|
|
getProduceScheduleList(this.searchData).then(({data}) => { |
|
|
|
// 设置查询数据 |
|
|
|
|