| | |
| | | <template> |
| | | <a-card :bordered="false" title="排产工单"> |
| | | <a-card :bordered="false"> |
| | | <!-- 查询区域 --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | |
| | | <j-input placeholder="请输入物料编号" v-model="queryParam.materialNumber"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="工单状态"> |
| | | <j-dict-select-tag dictCode="work_order_status" placeholder="请输入工单状态" |
| | |
| | | v-model="queryParam.republisher"></j-select-user-by-dep> |
| | | </a-form-item> |
| | | </a-col> |
| | | </template> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
| | | <a-button type="info" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
| | | <a @click="handleToggleSearch" style="margin-left: 8px"> |
| | | {{ toggleSearchStatus ? '收起' : '展开' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-button type="primary" @click="productionSchedule" icon="retweet" style="margin-bottom: 8px">排产</a-button> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">编辑</a> |
| | | |
| | | <a @click="handleDetail(record)">详情</a> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleRePublish(record)">重发布</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'NEW'"> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm title="确定发布吗?" @confirm="() => handlePublish(record.id)"> |
| | | <a>发布</a> |
| | | </a-popconfirm> |
| | | <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a @click="handleDetail(record)">详情</a> |
| | | <a @click="handleEdit(record)">编辑</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
| | |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | |
| | | <mes-production-order-modal ref="MesProductionOrderModal"></mes-production-order-modal> |
| | | <MesMaterialUnloadingList ref="MesMaterialUnloadingList"></MesMaterialUnloadingList> |
| | | <MesMaterialTransferDetailList ref="MesMaterialTransferDetailList"></MesMaterialTransferDetailList> |
| | | <MesProductionWorkOrderScheduleModal ref="MesProductionWorkOrderScheduleModal"></MesProductionWorkOrderScheduleModal> |
| | | <MesProductionWorkOrderRepublishModal ref="MesProductionWorkOrderRepublishModal" @ok="modalFormOk"></MesProductionWorkOrderRepublishModal> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import { JVXETypes } from '@/components/jeecg/JVxeTable' |
| | | import { filterMultiDictText } from '@/components/dict/JDictSelectUtil' |
| | | import { getAction } from '@api/manage' |
| | | import { getAction, requestPut } from '@api/manage' |
| | | import MesProductionOrderModal from '@views/mes/modules/MesProductionOrderModal.vue' |
| | | import MesMaterialUnloadingList from '@views/mes/MesMaterialUnloadingList.vue' |
| | | import MesMaterialTransferDetailList from '@views/mes/MesMaterialTransferDetailList.vue' |
| | | import MesProductionWorkOrderScheduleModal from '@views/mes/modules/MesProductionWorkOrderScheduleModal.vue' |
| | | import MesProductionWorkOrderRepublishModal from '@views/mes/modules/MesProductionWorkOrderRepublishModal.vue' |
| | | |
| | | export default { |
| | | name: 'MesProductionWorkOrderList', |
| | |
| | | MesProductionWorkOrderModal, |
| | | MesProductionOrderModal, |
| | | MesMaterialUnloadingList, |
| | | MesMaterialTransferDetailList |
| | | MesMaterialTransferDetailList, |
| | | MesProductionWorkOrderScheduleModal, |
| | | MesProductionWorkOrderRepublishModal |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | queryCompletenessCheckByWorkOrderId:'/meskittingcompletenesscheck/mesKittingCompletenessCheck/queryCompletenessCheckByWorkOrderId', |
| | | queryOrderById:'/mesproductionwork/mesProductionOrder/queryById', |
| | | queryUnloadingByLoadingId:'/mes/mesMaterialUnloading/queryUnloadingByLoadingId', |
| | | queryTransferDetailBy:'/mes/mesMaterialTransferDetail/queryTransferDetailBy' |
| | | queryTransferDetailBy:'/mes/mesMaterialTransferDetail/queryTransferDetailBy', |
| | | publish: '/mesproductionworkorder/mesProductionWorkOrder/publish' |
| | | }, |
| | | dictOptions: {}, |
| | | superFieldList: [] |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | productionSchedule() { |
| | | this.$refs.MesProductionWorkOrderScheduleModal.scheduleOpen() |
| | | }, |
| | | handlePublish(id) { |
| | | requestPut(this.url.publish, null, { ids: id }).then((res) => { |
| | | if (res.success) { |
| | | this.$message.success(res.message) |
| | | this.loadData() |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | handleRePublish(record) { |
| | | this.$refs.MesProductionWorkOrderRepublishModal.add(record) |
| | | }, |
| | | async handleTransferDetail(row){ |
| | | console.log('row---->',row) |
| | | const transferDetailResult = await getAction(this.url.queryTransferDetailBy,{'requestId':row.id}) |