生产领料完成
This commit is contained in:
parent
2dca66e5da
commit
49c1f98939
10
src/api/warehouseManagement/materials_requisition.js
Normal file
10
src/api/warehouseManagement/materials_requisition.js
Normal file
@ -0,0 +1,10 @@
|
||||
import request from '@/utils/request'
|
||||
import { downFile } from '@/utils/request'
|
||||
|
||||
export function getMRlist(query) {
|
||||
return request({
|
||||
url: '/mes/wm/mr/getmaterialsRequisition',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
@ -39,6 +39,7 @@
|
||||
<th>预计排产开始时间</th>
|
||||
<th>预计排产结束时间</th>
|
||||
<th>预计工时</th>
|
||||
<th>零件号</th>
|
||||
<th>产品名称</th>
|
||||
<th>油漆缸号</th>
|
||||
<th>规格</th>
|
||||
@ -72,6 +73,7 @@
|
||||
<td>{{ item.arrangeStarttime }}</td>
|
||||
<td>{{ item.arrangeEndtime }}</td>
|
||||
<td>{{ item.productionTime }}</td>
|
||||
<td>{{ item.partnumber }}</td>
|
||||
<td>{{ item.productionName }}</td>
|
||||
<td>{{ item.paintCylinderNumber }}</td>
|
||||
<td>{{ item.specification }}</td>
|
||||
@ -120,6 +122,7 @@
|
||||
<vxe-column field="arrangeStarttime" title="预计排产开始时间" width="120"></vxe-column>
|
||||
<vxe-column field="arrangeEndtime" title="预计排产开始时间" width="120"></vxe-column>
|
||||
<vxe-column field="productionTime" title="预计工时" width="120"></vxe-column>
|
||||
<vxe-column field="partnumber" title="零件号" width="120"></vxe-column>
|
||||
<vxe-column field="productionName" title="产品名称" width="120"></vxe-column>
|
||||
<vxe-column field="paintCylinderNumber" title="油漆缸号" width="120"></vxe-column>
|
||||
<vxe-column field="specification" title="规格" width="120"></vxe-column>
|
||||
|
||||
@ -0,0 +1,85 @@
|
||||
<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="日期" style="float: right">
|
||||
<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>
|
||||
<vxe-column type="seq" width="60"></vxe-column>
|
||||
<vxe-column field="year" title="年"></vxe-column>
|
||||
<vxe-column field="week" title="周"></vxe-column>
|
||||
<vxe-column field="date" title="日"></vxe-column>
|
||||
<vxe-column field="id" title="流水号"></vxe-column>
|
||||
<vxe-column field="workblankpartnumber" title="毛坯零件号"></vxe-column>
|
||||
<vxe-column field="requirenum" title="需要的数量"></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>
|
||||
Loading…
x
Reference in New Issue
Block a user