| | |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="订单类型"> |
| | | <j-dict-select-tag dictCode="orderCategory" placeholder="请输入订单类型" |
| | | <j-dict-select-tag dictCode="production_order_category" placeholder="请选择订单类型" |
| | | v-model="queryParam.orderCategory"></j-dict-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="订单状态"> |
| | | <j-dict-select-tag dictCode="order_status" placeholder="请输入订单状态" |
| | | v-model="queryParam.order_status"></j-dict-select-tag> |
| | | </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.processRoute"></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.materialListCode"></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.factoryCode"></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.factoryName"></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.customerOrderModel"></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.customer"></j-input> |
| | | <j-dict-select-tag dictCode="production_order_status" placeholder="请选择订单状态" |
| | | v-model="queryParam.orderStatus"></j-dict-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | | <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> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- 查询区域-END --> |
| | | |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
| | | <!-- 高级查询区域 --> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"> |
| | | <a-icon type="delete" /> |
| | | 删除 |
| | | </a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> 批量操作 |
| | | <a-icon type="down" /> |
| | | </a-button> |
| | | </a-dropdown> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | | <div> |
| | |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text,record"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span> |
| | | <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" |
| | | style="max-width:80px;font-size: 12px;font-style: italic;" /> |
| | | </template> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | 下载 |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">编辑</a> |
| | | |
| | | <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-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | <a @click="handleDetail(record)">详情</a> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | |
| | |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import MesProductionOrderModal from './modules/MesProductionOrderModal' |
| | | import { filterMultiDictText } from '@/components/dict/JDictSelectUtil' |
| | | |
| | | export default { |
| | | name: 'MesProductionOrderList', |
| | |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | title: '生产订单号', |
| | | align: 'center', |
| | | dataIndex: 'orderCode' |
| | | dataIndex: 'orderCode', |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | title: '订单类型', |
| | | align: 'center', |
| | | dataIndex: 'orderCategory' |
| | | dataIndex: 'orderCategory_dictText', |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | title: '物料编号', |
| | | align: 'center', |
| | | dataIndex: 'materialNumber' |
| | | dataIndex: 'materialNumber', |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | title: '物料名称', |
| | |
| | | dataIndex: 'orderQuantity' |
| | | }, |
| | | { |
| | | title: '产品单位', |
| | | title: '基本计量单位', |
| | | align: 'center', |
| | | dataIndex: 'productionUnit_dictText' |
| | | dataIndex: 'productionUnit' |
| | | }, |
| | | { |
| | | title: '订单状态', |
| | | align: 'center', |
| | | dataIndex: 'orderStatus_dictText' |
| | | dataIndex: 'orderStatus' |
| | | }, |
| | | { |
| | | title: '订单状态描述', |
| | | align: 'center', |
| | | dataIndex: 'orderStatusName' |
| | | }, |
| | | { |
| | | title: '优先级', |
| | | align: 'center', |
| | | dataIndex: 'priority_dictText' |
| | | dataIndex: 'priority' |
| | | }, |
| | | { |
| | | title: '计划工艺路线', |
| | |
| | | title: '工厂名称', |
| | | align: 'center', |
| | | dataIndex: 'factoryName' |
| | | }, |
| | | { |
| | | title: '调度员编号', |
| | | align: 'center', |
| | | dataIndex: 'dispatcherCode' |
| | | }, |
| | | { |
| | | title: '调度员名称', |
| | | align: 'center', |
| | | dataIndex: 'dispatcherName' |
| | | }, |
| | | { |
| | | title: '订单创建日期', |
| | | align: 'center', |
| | | dataIndex: 'orderCreateDate' |
| | | }, |
| | | { |
| | | title: '订单更新日期', |
| | | align: 'center', |
| | | dataIndex: 'orderUpdateDate' |
| | | }, |
| | | { |
| | | title: '订单更新时间', |
| | | align: 'center', |
| | | dataIndex: 'orderUpdateTime' |
| | | }, |
| | | { |
| | | title: '订单修改人', |
| | | align: 'center', |
| | | dataIndex: 'orderUpdateUser' |
| | | }, |
| | | { |
| | | title: '客户型号', |
| | |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/mesproductionwork/mesProductionOrder/list', |
| | | delete: '/mesproductionwork/mesProductionOrder/delete', |
| | | deleteBatch: '/mesproductionwork/mesProductionOrder/deleteBatch', |
| | | exportXlsUrl: '/mesproductionwork/mesProductionOrder/exportXls', |
| | | importExcelUrl: 'mesproductionwork/mesProductionOrder/importExcel' |
| | | |
| | | list: '/mes/productionOrder/list', |
| | | }, |
| | | dictOptions: {}, |
| | | superFieldList: [] |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList() |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}` |
| | | } |
| | | }, |
| | | methods: { |
| | | initDictConfig() { |
| | | }, |
| | | getSuperFieldList() { |
| | | let fieldList = [] |
| | | fieldList.push({ type: 'int', value: 'delFlag', text: '删除标记', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'orderCode', text: '生产订单号', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'orderCategory', text: '订单类型', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'materialNumber', text: '物料编号', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'materialName', text: '物料名称', dictCode: '' }) |
| | | fieldList.push({ type: 'datetime', value: 'planStart', text: '计划开始日期' }) |
| | | fieldList.push({ type: 'datetime', value: 'planEnd', text: '计划结束日期' }) |
| | | fieldList.push({ type: 'double', value: 'orderQuantity', text: '订单数量', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'productionUnit', text: '产品单位', dictCode: 'production_unit' }) |
| | | fieldList.push({ type: 'string', value: 'orderStatus', text: '订单状态', dictCode: 'order_status' }) |
| | | fieldList.push({ type: 'string', value: 'priority', text: '优先级', dictCode: 'priority' }) |
| | | fieldList.push({ type: 'string', value: 'processRoute', text: '计划工艺路线', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'materialListCode', text: '计划物料清单', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'factoryCode', text: '工厂编码', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'factoryName', text: '工厂名称', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'customerOrderModel', text: '客户型号', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'customer', text: '客户名称', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'remark', text: '备注', dictCode: '' }) |
| | | this.superFieldList = fieldList |
| | | } |
| | | } |
| | | } |
| | | </script> |