103 lines
3.7 KiB
Vue
103 lines
3.7 KiB
Vue
<template>
|
|
<div class="app-container">
|
|
<div>
|
|
<el-form :model="search" inline>
|
|
<el-form-item label="年">
|
|
<el-input v-model="search.year" placeholder="输入年份"></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="第">
|
|
<el-input v-model="search.week" placeholder="输入周"></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="周"></el-form-item>
|
|
<el-form-item label="日期">
|
|
<el-button-group>
|
|
<el-button type="primary" @click="searchDate(1)">周一</el-button>
|
|
<el-button type="primary" @click="searchDate(2)">周二</el-button>
|
|
<el-button type="primary" @click="searchDate(3)">周三</el-button>
|
|
<el-button type="primary" @click="searchDate(4)">周四</el-button>
|
|
<el-button type="primary" @click="searchDate(5)">周五</el-button>
|
|
<el-button type="primary" @click="searchDate(6)">周六</el-button>
|
|
<el-button type="primary" @click="searchDate(7)">周日</el-button>
|
|
</el-button-group>
|
|
</el-form-item>
|
|
</el-form>
|
|
</div>
|
|
|
|
<pagination
|
|
:total="pagination.total"
|
|
:page.sync="pagination.pageNum"
|
|
:limit.sync="pagination.pageSize"
|
|
@pagination="getMaterialRequisitionList"
|
|
/>
|
|
<vxe-table :data="MaterialRequisitionList" stripe border>
|
|
<vxe-column type="seq" width="60"></vxe-column>
|
|
<vxe-column field="id" title="流水号"></vxe-column>
|
|
<vxe-column field="year" title="年" width="60"></vxe-column>
|
|
<vxe-column field="week" title="周次" width="60"></vxe-column>
|
|
<vxe-column field="date" title="星期" width="60"></vxe-column>
|
|
<vxe-column field="workblankpartnumber" title="原材料零件号" width="120"></vxe-column>
|
|
<vxe-column field="supplierCode" title="供应商代码" width="70"></vxe-column>
|
|
<vxe-colgroup title="仓库" align="center">
|
|
<vxe-column field="warehouseNumber" title="仓库号" width="80"></vxe-column>
|
|
<vxe-column field="ShelfNumber" title="货架号"></vxe-column>
|
|
<vxe-column field="layerNumber" title="层号"></vxe-column>
|
|
<vxe-column field="warehouseLocationNumber" title="库位号"></vxe-column>
|
|
</vxe-colgroup>
|
|
|
|
<vxe-column field="demandQuantity" title="需求数量"></vxe-column>
|
|
<vxe-column field="receivedQuantity" title="已收数量"></vxe-column>
|
|
<vxe-column field="returnQuantity" title="退货数量"></vxe-column>
|
|
<vxe-column field="qualificationRate" title="合格率"></vxe-column>
|
|
|
|
<vxe-column title="状态" fixed="right">
|
|
<template>
|
|
<vxe-button type="text" status="warning" content="未入库"></vxe-button>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-table>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { getMRlist } from '@/api/warehouseManagement/materials_requisition.js'
|
|
export default {
|
|
name: 'materials_requisition',
|
|
data() {
|
|
return {
|
|
search: {
|
|
year: new Date().getFullYear(),
|
|
week: 1,
|
|
date: 0,
|
|
},
|
|
pagination: {
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
total: 0,
|
|
},
|
|
MaterialRequisitionList: [], //领料单list
|
|
}
|
|
},
|
|
mounted() {
|
|
this.getMaterialRequisitionList()
|
|
},
|
|
methods: {
|
|
//todo 获取领料单
|
|
getMaterialRequisitionList() {
|
|
const query = { ...this.search, ...this.pagination }
|
|
getMRlist(query).then((res) => {
|
|
if (res.code == 200) {
|
|
this.MaterialRequisitionList = res.data.item1
|
|
this.search.total = res.data.item2
|
|
}
|
|
})
|
|
},
|
|
searchDate(item) {
|
|
this.search.date = item
|
|
this.getMaterialRequisitionList()
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped></style>
|