|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="96px">
|
|
|
|
|
<el-form-item label="销售订单编号" prop="saleorderCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.saleorderCode"
|
|
|
|
@ -9,32 +9,7 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="单据状态" prop="documentStatus">
|
|
|
|
|
<el-select v-model="queryParams.documentStatus" placeholder="请选择单据状态" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.document_status"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="所属工厂" prop="factoryId">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.factoryId"
|
|
|
|
|
placeholder="请输入所属工厂"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="所属产线" prop="prodlineId">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.prodlineId"
|
|
|
|
|
placeholder="请输入所属产线"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="物料编码" prop="materialCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.materialCode"
|
|
|
|
@ -52,16 +27,6 @@
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="是否已下达计划" prop="isRelease">
|
|
|
|
|
<el-select v-model="queryParams.isRelease" placeholder="请选择是否已下达计划" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.is_release"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="完成日期" prop="completeDate">-->
|
|
|
|
|
<!-- <el-date-picker clearable-->
|
|
|
|
|
<!-- v-model="queryParams.completeDate"-->
|
|
|
|
@ -109,7 +74,7 @@
|
|
|
|
|
<!-- v-hasPermi="['mes:saleOrder:remove']"-->
|
|
|
|
|
<!-- >删除</el-button>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<!--el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
@ -119,7 +84,7 @@
|
|
|
|
|
v-hasPermi="['mes:saleOrder:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar-->
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="saleOrderList" @selection-change="handleSelectionChange">
|
|
|
|
@ -140,7 +105,7 @@
|
|
|
|
|
<el-table-column label="物料编码" align="center" prop="materialCode" v-if="columns[9].visible"/>
|
|
|
|
|
<el-table-column label="物料名称" align="center" prop="materialName" v-if="columns[10].visible"/>
|
|
|
|
|
<el-table-column label="物料组" align="center" prop="matkl" v-if="columns[11].visible"/>
|
|
|
|
|
<el-table-column label="订单计划数量" align="center" prop="orderAmount" v-if="columns[12].visible"/>
|
|
|
|
|
<el-table-column label="订单数量" align="center" prop="orderAmount" v-if="columns[12].visible"/>
|
|
|
|
|
<el-table-column label="完成数量" align="center" prop="completeAmount" v-if="columns[13].visible"/>
|
|
|
|
|
<el-table-column label="已发布数量" align="center" prop="releaseQty" v-if="columns[14].visible"/>
|
|
|
|
|
<el-table-column label="是否已下达计划" align="center" prop="isRelease" v-if="columns[15].visible" >
|
|
|
|
@ -184,7 +149,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" v-if="columns[23].visible"/>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<!--el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
@ -201,7 +166,7 @@
|
|
|
|
|
v-hasPermi="['mes:saleOrder:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table-column-->
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
@ -398,34 +363,34 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
columns: [
|
|
|
|
|
{ key: 0, label: `主键标识`, visible: true },
|
|
|
|
|
{ key: 1, label: `ERP主键`, visible: true },
|
|
|
|
|
{ key: 2, label: `ERP订单明细ID`, visible: true },
|
|
|
|
|
{ key: 0, label: `主键标识`, visible: false },
|
|
|
|
|
{ key: 1, label: `ERP主键`, visible: false },
|
|
|
|
|
{ key: 2, label: `ERP订单明细ID`, visible: false },
|
|
|
|
|
{ key: 3, label: `销售订单编号`, visible: true },
|
|
|
|
|
{ key: 4, label: `销售订单行号`, visible: true },
|
|
|
|
|
{ key: 5, label: `单据状态`, visible: true },
|
|
|
|
|
{ key: 6, label: `所属工厂`, visible: true },
|
|
|
|
|
{ key: 7, label: `所属产线`, visible: true },
|
|
|
|
|
{ key: 8, label: `物料ID`, visible: true },
|
|
|
|
|
{ key: 4, label: `销售订单行号`, visible: false },
|
|
|
|
|
{ key: 5, label: `单据状态`, visible: false },
|
|
|
|
|
{ key: 6, label: `所属工厂`, visible: false },
|
|
|
|
|
{ key: 7, label: `所属产线`, visible: false },
|
|
|
|
|
{ key: 8, label: `物料ID`, visible: false },
|
|
|
|
|
{ key: 9, label: `物料编码`, visible: true },
|
|
|
|
|
{ key: 10, label: `物料名称`, visible: true },
|
|
|
|
|
{ key: 11, label: `物料组`, visible: true },
|
|
|
|
|
{ key: 12, label: `订单计划数量`, visible: true },
|
|
|
|
|
{ key: 13, label: `完成数量`, visible: true },
|
|
|
|
|
{ key: 14, label: `已发布数量`, visible: true },
|
|
|
|
|
{ key: 15, label: `是否已下达计划`, visible: true },
|
|
|
|
|
{ key: 11, label: `物料组`, visible: false },
|
|
|
|
|
{ key: 12, label: `订单数量`, visible: true },
|
|
|
|
|
{ key: 13, label: `完成数量`, visible: false },
|
|
|
|
|
{ key: 14, label: `已发布数量`, visible: false },
|
|
|
|
|
{ key: 15, label: `是否已下达计划`, visible: false },
|
|
|
|
|
{ key: 16, label: `审核日期`, visible: true },
|
|
|
|
|
{ key: 17, label: `ERP最后修改日期`, visible: true },
|
|
|
|
|
{ key: 18, label: `计划交货日期`, visible: true },
|
|
|
|
|
{ key: 19, label: `计划开始日期`, visible: true },
|
|
|
|
|
{ key: 20, label: `计划结束日期`, visible: true },
|
|
|
|
|
{ key: 21, label: `完成日期`, visible: true },
|
|
|
|
|
{ key: 22, label: `是否标识:1-是;0-否`, visible: true },
|
|
|
|
|
{ key: 23, label: `备注`, visible: true },
|
|
|
|
|
{ key: 24, label: `创建人`, visible: true },
|
|
|
|
|
{ key: 25, label: `创建时间`, visible: true },
|
|
|
|
|
{ key: 26, label: `更新人`, visible: true },
|
|
|
|
|
{ key: 27, label: `更新时间`, visible: true },
|
|
|
|
|
{ key: 19, label: `计划开始日期`, visible: false },
|
|
|
|
|
{ key: 20, label: `计划结束日期`, visible: false },
|
|
|
|
|
{ key: 21, label: `完成日期`, visible: false },
|
|
|
|
|
{ key: 22, label: `是否标识:1-是;0-否`, visible: false },
|
|
|
|
|
{ key: 23, label: `备注`, visible: false },
|
|
|
|
|
{ key: 24, label: `创建人`, visible: false },
|
|
|
|
|
{ key: 25, label: `创建时间`, visible: false },
|
|
|
|
|
{ key: 26, label: `更新人`, visible: false },
|
|
|
|
|
{ key: 27, label: `更新时间`, visible: false },
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|