|
|
|
@ -9,6 +9,14 @@ |
|
|
|
<el-option label="在库" value="Y"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<!-- 本期盘点筛选,空=全部不入 SQL - rqrq --> |
|
|
|
<el-form-item label="本期盘点"> |
|
|
|
<el-select v-model="queryHeaderData.countFlag" placeholder="请选择" style="width: 120px;"> |
|
|
|
<el-option label="全部(ALL)" value=""></el-option> |
|
|
|
<el-option label="Y" value="Y"></el-option> |
|
|
|
<el-option label="N" value="N"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料编号"> |
|
|
|
<el-input style="width: 120px;" v-model="queryHeaderData.partNo" placeholder="请输入物料编号" @keyup.enter.native="getDataList()"></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -74,6 +82,14 @@ |
|
|
|
<span v-if="item.columnProp === 'reserveFlag'"> |
|
|
|
{{ scope.row.reserveFlag === 'Y' ? '是' : '否' }} |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp === 'lastCountDate'"> |
|
|
|
{{ formatDate(scope.row.lastCountDate) }} |
|
|
|
</span> |
|
|
|
<span v-else-if="item.columnProp === 'countFlag'"> |
|
|
|
<span v-if="scope.row.countFlag === 'Y'">Y</span> |
|
|
|
<span v-else-if="scope.row.countFlag === 'N'">N</span> |
|
|
|
<span v-else>{{ scope.row.countFlag }}</span> |
|
|
|
</span> |
|
|
|
<span v-else>{{ scope.row[item.columnProp] }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -142,9 +158,12 @@ export default { |
|
|
|
{columnProp: "engChgLevel", headerAlign: "center", align: "center", columnLabel: "版本号", columnWidth: 80, columnSortable: false, showOverflowTooltip: true, fixed: ""}, |
|
|
|
{columnProp: "expiredDate", headerAlign: "center", align: "center", columnLabel: "失效日期", columnWidth: 120, columnSortable: false, showOverflowTooltip: true, fixed: ""}, |
|
|
|
{columnProp: "receiveDate", headerAlign: "center", align: "center", columnLabel: "接收日期", columnWidth: 120, columnSortable: false, showOverflowTooltip: true, fixed: ""}, |
|
|
|
{columnProp: "countFlag", headerAlign: "center", align: "center", columnLabel: "本期盘点", columnWidth: 90, columnSortable: false, showOverflowTooltip: true, fixed: ""}, |
|
|
|
{columnProp: "lastCountDate", headerAlign: "center", align: "center", columnLabel: "最后盘点日期", columnWidth: 150, columnSortable: false, showOverflowTooltip: true, fixed: ""}, |
|
|
|
], |
|
|
|
queryHeaderData: { |
|
|
|
inStockFlag: 'Y', |
|
|
|
countFlag: '', |
|
|
|
partNo: '', |
|
|
|
batchNo: '', |
|
|
|
locationId: '', |
|
|
|
@ -251,11 +270,14 @@ export default { |
|
|
|
resetQuery() { |
|
|
|
this.queryHeaderData = { |
|
|
|
inStockFlag: 'Y', |
|
|
|
countFlag: '', |
|
|
|
partNo: '', |
|
|
|
batchNo: '', |
|
|
|
locationId: '', |
|
|
|
unitId: '', |
|
|
|
partDesc: '' |
|
|
|
partDesc: '', |
|
|
|
stationArea: '', |
|
|
|
palletId: '' |
|
|
|
} |
|
|
|
this.pageIndex = 1 |
|
|
|
this.getDataList() |
|
|
|
@ -311,7 +333,8 @@ export default { |
|
|
|
return (data.page.list || []).map(item => { |
|
|
|
return { |
|
|
|
...item, |
|
|
|
reserveFlag: item.reserveFlag === 'Y' ? '是' : '否' |
|
|
|
reserveFlag: item.reserveFlag === 'Y' ? '是' : '否', |
|
|
|
lastCountDate: this.formatDate(item.lastCountDate) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|