| | |
| | | <j-input placeholder="请输入物料编号" v-model="queryParam.materialNumber"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="物料名称"> |
| | | <j-input placeholder="请输入物料名称" v-model="queryParam.materialName"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="订单状态"> |
| | | <j-dict-select-tag dictCode="production_order_status" placeholder="请选择订单状态" |
| | | v-model="queryParam.orderStatus"></j-dict-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="物料名称"> |
| | | <j-input placeholder="请输入物料名称" v-model="queryParam.materialName"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="订单状态"> |
| | | <j-dict-select-tag dictCode="production_order_status" placeholder="请选择订单状态" |
| | | v-model="queryParam.orderStatus"></j-dict-select-tag> |
| | | </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="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> |
| | |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a-popconfirm title="确定同步最新数据吗?" @confirm="() => handleSync(record.id)"> |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleEdit(record)">编辑</a> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleDetail(record)">详情</a> |
| | |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import MesProductionOrderModal from './modules/MesProductionOrderModal' |
| | | import { getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: 'MesProductionOrderList', |
| | |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | fixed: 'left', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '生产订单号', |
| | | align: 'center', |
| | | dataIndex: 'orderCode', |
| | | fixed: 'left', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '订单类型', |
| | | align: 'center', |
| | | dataIndex: 'orderCategory_dictText', |
| | | fixed: 'left', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '物料编号', |
| | | align: 'center', |
| | | dataIndex: 'materialNumber', |
| | | fixed: 'left', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '物料名称', |
| | |
| | | ], |
| | | url: { |
| | | list: '/mes/productionOrder/list', |
| | | }, |
| | | dictOptions: {}, |
| | | syncSapProductionOrder: '/mes/productionOrder/syncSapProductionOrder' |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | handleSync(id) { |
| | | let that = this |
| | | getAction(that.url.syncSapProductionOrder, { id: id }).then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |