物料出库
This commit is contained in:
@@ -35,14 +35,14 @@ export function searchgroup(num) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 领料单查询
|
// 领料单查询
|
||||||
export function searchList(pageCurrent, pageSize, listNumber_check, listNumber) {
|
export function searchList(pageCurrent, pageSize, listPeople_check, listPeople, check1, time1, time2) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '车间装配管理_领料单_查询数据',
|
name: '车间装配管理_领料单_查询数据',
|
||||||
param: '领料单编号_check=' + listNumber_check + '&领料单编号=' + listNumber + '&是否审批=1',
|
param: '制单人_check=' + listPeople_check + '&制单人=' + listPeople + '&时间段_check=' + check1 + '&开始时间=' + time1 + '&结束时间=' + time2 + '&是否审批=1',
|
||||||
Pagination: pageCurrent + '&' + pageSize
|
Pagination: pageCurrent + '&' + pageSize
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -2,11 +2,21 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div style="margin-top: 8px;margin-bottom: 8px">
|
<div style="margin-top: 8px;margin-bottom: 8px">
|
||||||
<span style="margin: 5px">领料单编号:</span>
|
<el-date-picker
|
||||||
<el-input v-model="pickingListNumber" clearable size="small" style="width:200px" />
|
v-model="startTime"
|
||||||
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="searchList()">查询</el-button>
|
size="small"
|
||||||
|
type="daterange"
|
||||||
|
align="center"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
format="yyyy-MM-dd"
|
||||||
|
range-separator="~"
|
||||||
|
style="width:250px"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"/>
|
||||||
|
<el-input v-model="pickingListPeople" clearable size="small" placeholder="制单人" style="width:120px;margin-left: 10px" />
|
||||||
|
<el-button size="small" type="primary" plain icon="el-icon-search" style="margin: 0 0 0 10px" @click="searchList()">查询</el-button>
|
||||||
<!-- <el-button size="small" type="warning" style="float: right;margin-right: 10px" @click="prepareConfirm()">备料确认</el-button>-->
|
<!-- <el-button size="small" type="warning" style="float: right;margin-right: 10px" @click="prepareConfirm()">备料确认</el-button>-->
|
||||||
<el-button :disabled="审批未通过===true" size="small" type="primary" style="float: right; margin-right: 30px" @click="inputPassword()">领料确认</el-button>
|
<el-button :disabled="审批未通过===true" size="small" type="warning" plain style="float: right; margin-right: 30px" @click="inputPassword()">领料确认</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<div style="width: 27%;float: left;margin-right: 16px">
|
<div style="width: 27%;float: left;margin-right: 16px">
|
||||||
@@ -264,6 +274,8 @@ export default {
|
|||||||
pickingListNumber: '',
|
pickingListNumber: '',
|
||||||
pickingListNumberShow: '',
|
pickingListNumberShow: '',
|
||||||
pickListTable1: [],
|
pickListTable1: [],
|
||||||
|
startTime: '',
|
||||||
|
pickingListPeople: '', // 制单人
|
||||||
pageCurrent3: 1,
|
pageCurrent3: 1,
|
||||||
pageSize3: 10000,
|
pageSize3: 10000,
|
||||||
total3: 0,
|
total3: 0,
|
||||||
@@ -532,9 +544,10 @@ export default {
|
|||||||
},
|
},
|
||||||
// 查询领料单列表
|
// 查询领料单列表
|
||||||
searchList() {
|
searchList() {
|
||||||
let check
|
let check, check1
|
||||||
this.pickingListNumber ? check = 1 : check = 0
|
this.pickingListPeople ? check = 1 : check = 0
|
||||||
searchList(this.pageCurrent3, this.pageSize3, check, this.pickingListNumber).then(response => {
|
this.startTime ? check1 = 1 : (check1 = 0, this.startTime = '')
|
||||||
|
searchList(this.pageCurrent3, this.pageSize3, check, this.pickingListPeople, check1, this.startTime[0], this.startTime[1]).then(response => {
|
||||||
this.pickListTable1 = response.data.rows
|
this.pickListTable1 = response.data.rows
|
||||||
this.total3 = response.data.total
|
this.total3 = response.data.total
|
||||||
})
|
})
|
||||||
@@ -569,7 +582,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
tableRowClassName({ row }) {
|
tableRowClassName({ row }) {
|
||||||
if (parseInt(row.是否审批) === 0) {
|
if (parseInt(row.是否审批) === 1) {
|
||||||
return 'shenpi-row'
|
return 'shenpi-row'
|
||||||
} else {
|
} else {
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user